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

📄 reader.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>
	/// reader 的摘要说明。
	/// </summary>
	public class reader : 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.GroupBox groupBox1;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.RadioButton rB2;
		private System.Windows.Forms.RadioButton rB1;
		private System.Windows.Forms.TextBox texP1;
		private System.Windows.Forms.TextBox texN1;
		private System.Windows.Forms.TextBox texE1;
		private System.Windows.Forms.TextBox texPW1;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.RadioButton radioButton1;
		private System.Windows.Forms.RadioButton radioButton2;
		private System.Windows.Forms.GroupBox groupBox4;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.TextBox tex;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.Button button4;
		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.Button button5;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Button button6;
		private System.Windows.Forms.Label label20;
		private System.Windows.Forms.TabPage tabPage7;
		private System.Windows.Forms.TabPage tabPage8;
		private System.Windows.Forms.Label label21;
		private System.Windows.Forms.Button button7;
		private System.Windows.Forms.Button button8;
		private System.Windows.Forms.Label label22;
		private System.Windows.Forms.Label label23;
		private System.Windows.Forms.Label label24;
		private System.Windows.Forms.Button button9;
		private System.Windows.Forms.Label label25;
		private System.Windows.Forms.TextBox texN4;
		private System.Windows.Forms.TextBox texB5;
		private System.Windows.Forms.TextBox texBN6;
		private System.Windows.Forms.TextBox texB6;
		private System.Windows.Forms.TextBox texN7;
		private System.Windows.Forms.TextBox texBN7;
		private System.Windows.Forms.Label label26;
		private System.Windows.Forms.TextBox texBZ1;
		private System.Windows.Forms.Label label27;
		private System.Windows.Forms.DataGrid dG1;

		 LibClass lc=new LibClass();
		private System.Windows.Forms.TextBox texBZ2;
		private System.Windows.Forms.TextBox texID3;
		private System.Windows.Forms.TextBox texID2;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.TextBox texE2;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.TextBox texN2;
		private System.Windows.Forms.TextBox texS2;
		private System.Windows.Forms.Button button10;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public reader()
		{
			//
			// 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.texID3 = new System.Windows.Forms.TextBox();
			this.label7 = new System.Windows.Forms.Label();
			this.tabPage5 = new System.Windows.Forms.TabPage();
			this.button6 = new System.Windows.Forms.Button();
			this.texN4 = new System.Windows.Forms.TextBox();
			this.label20 = new System.Windows.Forms.Label();
			this.tabPage6 = new System.Windows.Forms.TabPage();
			this.button7 = new System.Windows.Forms.Button();
			this.texB5 = new System.Windows.Forms.TextBox();
			this.label21 = new System.Windows.Forms.Label();
			this.tabPage7 = new System.Windows.Forms.TabPage();
			this.texB6 = new System.Windows.Forms.TextBox();
			this.label23 = new System.Windows.Forms.Label();
			this.button8 = new System.Windows.Forms.Button();
			this.texBN6 = new System.Windows.Forms.TextBox();
			this.label22 = new System.Windows.Forms.Label();
			this.tabPage8 = new System.Windows.Forms.TabPage();
			this.texN7 = new System.Windows.Forms.TextBox();
			this.label24 = new System.Windows.Forms.Label();
			this.button9 = new System.Windows.Forms.Button();
			this.texBN7 = new System.Windows.Forms.TextBox();
			this.label25 = new System.Windows.Forms.Label();
			this.tabPage2 = new System.Windows.Forms.TabPage();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.radioButton2 = new System.Windows.Forms.RadioButton();
			this.radioButton1 = new System.Windows.Forms.RadioButton();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.button10 = new System.Windows.Forms.Button();
			this.texS2 = new System.Windows.Forms.TextBox();
			this.texBZ2 = new System.Windows.Forms.TextBox();
			this.label27 = new System.Windows.Forms.Label();
			this.button4 = new System.Windows.Forms.Button();
			this.texID2 = new System.Windows.Forms.TextBox();
			this.label11 = new System.Windows.Forms.Label();
			this.texE2 = new System.Windows.Forms.TextBox();
			this.label9 = new System.Windows.Forms.Label();
			this.label10 = new System.Windows.Forms.Label();
			this.texN2 = new System.Windows.Forms.TextBox();
			this.label8 = new System.Windows.Forms.Label();
			this.groupBox4 = new System.Windows.Forms.GroupBox();
			this.button3 = new System.Windows.Forms.Button();
			this.tex = new System.Windows.Forms.TextBox();
			this.label6 = 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.texBZ1 = new System.Windows.Forms.TextBox();
			this.label26 = new System.Windows.Forms.Label();
			this.rB2 = new System.Windows.Forms.RadioButton();
			this.rB1 = new System.Windows.Forms.RadioButton();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.texP1 = new System.Windows.Forms.TextBox();
			this.texN1 = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.texE1 = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.texPW1 = new System.Windows.Forms.TextBox();
			this.tabControl1.SuspendLayout();
			this.tabPage1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dG1)).BeginInit();
			this.tabControl2.SuspendLayout();
			this.tabPage4.SuspendLayout();
			this.tabPage5.SuspendLayout();
			this.tabPage6.SuspendLayout();
			this.tabPage7.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, 120);
			this.dG1.Name = "dG1";
			this.dG1.Size = new System.Drawing.Size(567, 280);
			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, 128);
			this.tabControl2.TabIndex = 0;
			// 
			// tabPage4
			// 
			this.tabPage4.Controls.Add(this.button5);
			this.tabPage4.Controls.Add(this.texID3);
			this.tabPage4.Controls.Add(this.label7);
			this.tabPage4.Location = new System.Drawing.Point(4, 21);
			this.tabPage4.Name = "tabPage4";
			this.tabPage4.Size = new System.Drawing.Size(559, 103);
			this.tabPage4.TabIndex = 0;
			this.tabPage4.Text = "按读者编号查询";
			// 
			// button5
			// 
			this.button5.Location = new System.Drawing.Point(352, 40);
			this.button5.Name = "button5";
			this.button5.Size = new System.Drawing.Size(40, 24);
			this.button5.TabIndex = 2;
			this.button5.Text = "查询";
			this.button5.Click += new System.EventHandler(this.button5_Click);
			// 
			// texID3
			// 
			this.texID3.Location = new System.Drawing.Point(160, 40);
			this.texID3.Name = "texID3";
			this.texID3.Size = new System.Drawing.Size(136, 21);
			this.texID3.TabIndex = 1;
			this.texID3.Text = "";
			// 
			// label7
			// 
			this.label7.AutoSize = true;
			this.label7.Location = new System.Drawing.Point(80, 40);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(79, 17);
			this.label7.TabIndex = 0;
			this.label7.Text = "请输入编号:";
			// 
			// tabPage5
			// 
			this.tabPage5.Controls.Add(this.button6);
			this.tabPage5.Controls.Add(this.texN4);
			this.tabPage5.Controls.Add(this.label20);
			this.tabPage5.Location = new System.Drawing.Point(4, 21);
			this.tabPage5.Name = "tabPage5";
			this.tabPage5.Size = new System.Drawing.Size(559, 103);
			this.tabPage5.TabIndex = 1;
			this.tabPage5.Text = "按读者姓名查询";
			// 
			// button6
			// 
			this.button6.Location = new System.Drawing.Point(352, 40);
			this.button6.Name = "button6";
			this.button6.Size = new System.Drawing.Size(40, 24);
			this.button6.TabIndex = 17;
			this.button6.Text = "查询";
			this.button6.Click += new System.EventHandler(this.button6_Click);
			// 
			// texN4
			// 
			this.texN4.Location = new System.Drawing.Point(160, 40);
			this.texN4.Name = "texN4";
			this.texN4.Size = new System.Drawing.Size(136, 21);
			this.texN4.TabIndex = 16;
			this.texN4.Text = "";
			// 
			// label20
			// 
			this.label20.AutoSize = true;
			this.label20.Location = new System.Drawing.Point(80, 40);
			this.label20.Name = "label20";
			this.label20.Size = new System.Drawing.Size(79, 17);
			this.label20.TabIndex = 15;
			this.label20.Text = "请输入姓名:";
			// 
			// tabPage6
			// 
			this.tabPage6.Controls.Add(this.button7);
			this.tabPage6.Controls.Add(this.texB5);
			this.tabPage6.Controls.Add(this.label21);
			this.tabPage6.Location = new System.Drawing.Point(4, 21);
			this.tabPage6.Name = "tabPage6";
			this.tabPage6.Size = new System.Drawing.Size(559, 103);
			this.tabPage6.TabIndex = 2;
			this.tabPage6.Text = "按借阅的书籍查询";
			// 
			// button7
			// 
			this.button7.Location = new System.Drawing.Point(384, 40);
			this.button7.Name = "button7";
			this.button7.Size = new System.Drawing.Size(40, 24);
			this.button7.TabIndex = 18;
			this.button7.Text = "查询";
			this.button7.Click += new System.EventHandler(this.button7_Click);
			// 
			// texB5

⌨️ 快捷键说明

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