⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 book.cs

📁 数据库文件先要导入
💻 CS
📖 第 1 页 / 共 3 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;

namespace 图书管理系统
{
	/// <summary>
	/// book 的摘要说明。
	/// </summary>
	public class book : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TabControl tabControl1;
		private System.Windows.Forms.TabPage tabPage1;
		private System.Windows.Forms.TabPage tabPage2;
		private System.Windows.Forms.TabPage tabPage3;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.Button button4;
		private System.Windows.Forms.GroupBox groupBox4;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.TextBox tex;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.Label label14;
		private System.Windows.Forms.Label label15;
		private System.Windows.Forms.TabControl tabControl2;
		private System.Windows.Forms.TabPage tabPage4;
		private System.Windows.Forms.TabPage tabPage5;
		private System.Windows.Forms.TabPage tabPage6;
		private System.Windows.Forms.TabPage tabPage7;
		private System.Windows.Forms.TabPage tabPage8;
		private System.Windows.Forms.Button button5;
		private System.Windows.Forms.TextBox texI;
		private System.Windows.Forms.Label label16;
		private System.Windows.Forms.Button button6;
		private System.Windows.Forms.TextBox texBN;
		private System.Windows.Forms.Label label17;
		private System.Windows.Forms.Button button7;
		private System.Windows.Forms.TextBox texT;
		private System.Windows.Forms.Label label18;
		private System.Windows.Forms.Button button8;
		private System.Windows.Forms.TextBox texA;
		private System.Windows.Forms.Label label19;
		private System.Windows.Forms.Button button9;
		private System.Windows.Forms.TextBox texP;
		private System.Windows.Forms.Label label20;
		private System.Windows.Forms.DataGrid dG1;
		private System.Windows.Forms.TextBox texBZ1;
		private System.Windows.Forms.TextBox texC1;
		private System.Windows.Forms.TextBox texP1;
		private System.Windows.Forms.TextBox texA1;
		private System.Windows.Forms.TextBox texT1;
		private System.Windows.Forms.TextBox texN1;
		private System.Windows.Forms.TextBox texI1;
		private System.Windows.Forms.Label label21;
		private System.Windows.Forms.TextBox texPr1;


		LibClass lc=new LibClass();
		private System.Windows.Forms.Button button10;
		private System.Windows.Forms.Label label22;
		private System.Windows.Forms.TextBox texPr2;
		private System.Windows.Forms.TextBox texBZ2;
		private System.Windows.Forms.TextBox texBC2;
		private System.Windows.Forms.TextBox texP2;
		private System.Windows.Forms.TextBox texA2;
		private System.Windows.Forms.TextBox texT2;
		private System.Windows.Forms.TextBox texBN2;
		private System.Windows.Forms.TextBox texI2;
		private System.Windows.Forms.RadioButton rB2;
		private System.Windows.Forms.RadioButton rB1;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public book()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.tabPage1 = new System.Windows.Forms.TabPage();
			this.dG1 = new System.Windows.Forms.DataGrid();
			this.tabControl2 = new System.Windows.Forms.TabControl();
			this.tabPage4 = new System.Windows.Forms.TabPage();
			this.button5 = new System.Windows.Forms.Button();
			this.texI = new System.Windows.Forms.TextBox();
			this.label16 = new System.Windows.Forms.Label();
			this.tabPage7 = new System.Windows.Forms.TabPage();
			this.button8 = new System.Windows.Forms.Button();
			this.texA = new System.Windows.Forms.TextBox();
			this.label19 = new System.Windows.Forms.Label();
			this.tabPage6 = new System.Windows.Forms.TabPage();
			this.button7 = new System.Windows.Forms.Button();
			this.texT = new System.Windows.Forms.TextBox();
			this.label18 = new System.Windows.Forms.Label();
			this.tabPage5 = new System.Windows.Forms.TabPage();
			this.button6 = new System.Windows.Forms.Button();
			this.texBN = new System.Windows.Forms.TextBox();
			this.label17 = new System.Windows.Forms.Label();
			this.tabPage8 = new System.Windows.Forms.TabPage();
			this.button9 = new System.Windows.Forms.Button();
			this.texP = new System.Windows.Forms.TextBox();
			this.label20 = new System.Windows.Forms.Label();
			this.tabPage2 = new System.Windows.Forms.TabPage();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.rB2 = new System.Windows.Forms.RadioButton();
			this.rB1 = new System.Windows.Forms.RadioButton();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.texPr2 = new System.Windows.Forms.TextBox();
			this.label22 = new System.Windows.Forms.Label();
			this.button10 = new System.Windows.Forms.Button();
			this.texBZ2 = new System.Windows.Forms.TextBox();
			this.texBC2 = new System.Windows.Forms.TextBox();
			this.texP2 = new System.Windows.Forms.TextBox();
			this.texA2 = new System.Windows.Forms.TextBox();
			this.texT2 = new System.Windows.Forms.TextBox();
			this.texBN2 = new System.Windows.Forms.TextBox();
			this.texI2 = new System.Windows.Forms.TextBox();
			this.label8 = new System.Windows.Forms.Label();
			this.label9 = new System.Windows.Forms.Label();
			this.label10 = new System.Windows.Forms.Label();
			this.label11 = new System.Windows.Forms.Label();
			this.label13 = new System.Windows.Forms.Label();
			this.label14 = new System.Windows.Forms.Label();
			this.label15 = new System.Windows.Forms.Label();
			this.button4 = new System.Windows.Forms.Button();
			this.groupBox4 = new System.Windows.Forms.GroupBox();
			this.button3 = new System.Windows.Forms.Button();
			this.tex = new System.Windows.Forms.TextBox();
			this.label12 = new System.Windows.Forms.Label();
			this.tabPage3 = new System.Windows.Forms.TabPage();
			this.button2 = new System.Windows.Forms.Button();
			this.button1 = new System.Windows.Forms.Button();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.texPr1 = new System.Windows.Forms.TextBox();
			this.label21 = new System.Windows.Forms.Label();
			this.texBZ1 = new System.Windows.Forms.TextBox();
			this.texC1 = new System.Windows.Forms.TextBox();
			this.texP1 = new System.Windows.Forms.TextBox();
			this.texA1 = new System.Windows.Forms.TextBox();
			this.texT1 = new System.Windows.Forms.TextBox();
			this.texN1 = new System.Windows.Forms.TextBox();
			this.texI1 = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.tabControl1.SuspendLayout();
			this.tabPage1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dG1)).BeginInit();
			this.tabControl2.SuspendLayout();
			this.tabPage4.SuspendLayout();
			this.tabPage7.SuspendLayout();
			this.tabPage6.SuspendLayout();
			this.tabPage5.SuspendLayout();
			this.tabPage8.SuspendLayout();
			this.tabPage2.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.groupBox4.SuspendLayout();
			this.tabPage3.SuspendLayout();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// tabControl1
			// 
			this.tabControl1.Controls.Add(this.tabPage1);
			this.tabControl1.Controls.Add(this.tabPage2);
			this.tabControl1.Controls.Add(this.tabPage3);
			this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.tabControl1.Location = new System.Drawing.Point(0, 0);
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(575, 421);
			this.tabControl1.TabIndex = 0;
			// 
			// tabPage1
			// 
			this.tabPage1.Controls.Add(this.dG1);
			this.tabPage1.Controls.Add(this.tabControl2);
			this.tabPage1.Location = new System.Drawing.Point(4, 21);
			this.tabPage1.Name = "tabPage1";
			this.tabPage1.Size = new System.Drawing.Size(567, 396);
			this.tabPage1.TabIndex = 0;
			this.tabPage1.Text = "书籍信息查询";
			// 
			// dG1
			// 
			this.dG1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.dG1.DataMember = "";
			this.dG1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dG1.Location = new System.Drawing.Point(0, 104);
			this.dG1.Name = "dG1";
			this.dG1.Size = new System.Drawing.Size(567, 296);
			this.dG1.TabIndex = 1;
			// 
			// tabControl2
			// 
			this.tabControl2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.tabControl2.Controls.Add(this.tabPage4);
			this.tabControl2.Controls.Add(this.tabPage5);
			this.tabControl2.Controls.Add(this.tabPage6);
			this.tabControl2.Controls.Add(this.tabPage7);
			this.tabControl2.Controls.Add(this.tabPage8);
			this.tabControl2.Location = new System.Drawing.Point(0, 0);
			this.tabControl2.Name = "tabControl2";
			this.tabControl2.SelectedIndex = 0;
			this.tabControl2.Size = new System.Drawing.Size(567, 112);
			this.tabControl2.TabIndex = 0;
			// 
			// tabPage4
			// 
			this.tabPage4.Controls.Add(this.button5);
			this.tabPage4.Controls.Add(this.texI);
			this.tabPage4.Controls.Add(this.label16);
			this.tabPage4.Location = new System.Drawing.Point(4, 21);
			this.tabPage4.Name = "tabPage4";
			this.tabPage4.Size = new System.Drawing.Size(559, 87);
			this.tabPage4.TabIndex = 0;
			this.tabPage4.Text = "按ISBN查询";
			// 
			// button5
			// 
			this.button5.Location = new System.Drawing.Point(336, 34);
			this.button5.Name = "button5";
			this.button5.Size = new System.Drawing.Size(40, 24);
			this.button5.TabIndex = 5;
			this.button5.Text = "查询";
			this.button5.Click += new System.EventHandler(this.button5_Click);
			// 
			// texI
			// 
			this.texI.Location = new System.Drawing.Point(168, 34);
			this.texI.Name = "texI";
			this.texI.Size = new System.Drawing.Size(136, 21);
			this.texI.TabIndex = 4;
			this.texI.Text = "";
			// 
			// label16
			// 
			this.label16.AutoSize = true;
			this.label16.Location = new System.Drawing.Point(56, 34);
			this.label16.Name = "label16";
			this.label16.Size = new System.Drawing.Size(79, 17);
			this.label16.TabIndex = 3;
			this.label16.Text = "请输入ISBN:";
			// 
			// tabPage7
			// 
			this.tabPage7.Controls.Add(this.button8);
			this.tabPage7.Controls.Add(this.texA);
			this.tabPage7.Controls.Add(this.label19);
			this.tabPage7.Location = new System.Drawing.Point(4, 21);
			this.tabPage7.Name = "tabPage7";
			this.tabPage7.Size = new System.Drawing.Size(559, 87);
			this.tabPage7.TabIndex = 3;
			this.tabPage7.Text = "按作者查询";
			// 
			// button8
			// 
			this.button8.Location = new System.Drawing.Point(336, 34);
			this.button8.Name = "button8";
			this.button8.Size = new System.Drawing.Size(40, 24);
			this.button8.TabIndex = 13;
			this.button8.Text = "查询";
			this.button8.Click += new System.EventHandler(this.button8_Click);
			// 
			// texA
			// 
			this.texA.Location = new System.Drawing.Point(168, 34);
			this.texA.Name = "texA";
			this.texA.Size = new System.Drawing.Size(136, 21);
			this.texA.TabIndex = 12;
			this.texA.Text = "";
			// 
			// label19
			// 
			this.label19.AutoSize = true;
			this.label19.Location = new System.Drawing.Point(55, 34);
			this.label19.Name = "label19";
			this.label19.Size = new System.Drawing.Size(79, 17);
			this.label19.TabIndex = 11;
			this.label19.Text = "请输入作者:";
			// 
			// tabPage6
			// 
			this.tabPage6.Controls.Add(this.button7);
			this.tabPage6.Controls.Add(this.texT);
			this.tabPage6.Controls.Add(this.label18);
			this.tabPage6.Location = new System.Drawing.Point(4, 21);
			this.tabPage6.Name = "tabPage6";
			this.tabPage6.Size = new System.Drawing.Size(559, 87);
			this.tabPage6.TabIndex = 2;
			this.tabPage6.Text = "按类别查询";
			// 
			// button7
			// 
			this.button7.Location = new System.Drawing.Point(336, 34);
			this.button7.Name = "button7";
			this.button7.Size = new System.Drawing.Size(40, 24);
			this.button7.TabIndex = 13;
			this.button7.Text = "查询";
			this.button7.Click += new System.EventHandler(this.button7_Click);
			// 
			// texT
			// 
			this.texT.Location = new System.Drawing.Point(168, 34);
			this.texT.Name = "texT";
			this.texT.Size = new System.Drawing.Size(136, 21);
			this.texT.TabIndex = 12;
			this.texT.Text = "";
			// 
			// label18
			// 
			this.label18.AutoSize = true;
			this.label18.Location = new System.Drawing.Point(55, 34);
			this.label18.Name = "label18";
			this.label18.Size = new System.Drawing.Size(79, 17);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -