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

📄 readerinfo.cs

📁 简单的图书管理系统1、系统功能的基本要求: (1)图书信息的输入
💻 CS
📖 第 1 页 / 共 4 页
字号:
			this.cmb1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "读者信息.性别"));
			this.cmb1.Enabled = false;
			this.cmb1.Items.AddRange(new object[] {
													  "男",
													  "女"});
			this.cmb1.Location = new System.Drawing.Point(416, 352);
			this.cmb1.Name = "cmb1";
			this.cmb1.Size = new System.Drawing.Size(80, 20);
			this.cmb1.TabIndex = 35;
			// 
			// cmb2
			// 
			this.cmb2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "读者信息.类型"));
			this.cmb2.Enabled = false;
			this.cmb2.Location = new System.Drawing.Point(528, 352);
			this.cmb2.Name = "cmb2";
			this.cmb2.Size = new System.Drawing.Size(112, 20);
			this.cmb2.TabIndex = 35;
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(32, 384);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(56, 16);
			this.label9.TabIndex = 1;
			this.label9.Text = "联系方式";
			// 
			// cmb3
			// 
			this.cmb3.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "读者信息.有效证件"));
			this.cmb3.Enabled = false;
			this.cmb3.Items.AddRange(new object[] {
													  "身份证",
													  "学生证",
													  "教师证",
													  "公务员证",
													  "其他证件"});
			this.cmb3.Location = new System.Drawing.Point(160, 400);
			this.cmb3.Name = "cmb3";
			this.cmb3.Size = new System.Drawing.Size(96, 20);
			this.cmb3.TabIndex = 35;
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(160, 384);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(56, 16);
			this.label10.TabIndex = 1;
			this.label10.Text = "有效证件";
			// 
			// label11
			// 
			this.label11.Location = new System.Drawing.Point(408, 384);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(88, 16);
			this.label11.TabIndex = 1;
			this.label11.Text = "图书借阅次数";
			// 
			// txt8
			// 
			this.txt8.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "读者信息.证件号码"));
			this.txt8.Location = new System.Drawing.Point(280, 400);
			this.txt8.Name = "txt8";
			this.txt8.ReadOnly = true;
			this.txt8.TabIndex = 2;
			this.txt8.Text = "";
			// 
			// label12
			// 
			this.label12.Location = new System.Drawing.Point(280, 384);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(56, 16);
			this.label12.TabIndex = 1;
			this.label12.Text = "证件号码";
			// 
			// txt9
			// 
			this.txt9.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "读者信息.图书借阅次数"));
			this.txt9.Location = new System.Drawing.Point(408, 400);
			this.txt9.Name = "txt9";
			this.txt9.ReadOnly = true;
			this.txt9.Size = new System.Drawing.Size(96, 21);
			this.txt9.TabIndex = 2;
			this.txt9.Text = "";
			// 
			// label13
			// 
			this.label13.Location = new System.Drawing.Point(32, 432);
			this.label13.Name = "label13";
			this.label13.Size = new System.Drawing.Size(56, 16);
			this.label13.TabIndex = 1;
			this.label13.Text = "出生日期";
			// 
			// cmb4
			// 
			this.cmb4.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "读者信息.出生日期"));
			this.cmb4.Enabled = false;
			this.cmb4.Location = new System.Drawing.Point(32, 448);
			this.cmb4.Name = "cmb4";
			this.cmb4.Size = new System.Drawing.Size(112, 20);
			this.cmb4.TabIndex = 35;
			this.cmb4.DropDown += new System.EventHandler(this.cmb4_DropDown);
			this.cmb4.Leave += new System.EventHandler(this.cmb4_Leave);
			// 
			// label14
			// 
			this.label14.Location = new System.Drawing.Point(160, 432);
			this.label14.Name = "label14";
			this.label14.Size = new System.Drawing.Size(56, 16);
			this.label14.TabIndex = 1;
			this.label14.Text = "登记日期";
			// 
			// cmb5
			// 
			this.cmb5.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "读者信息.登记日期"));
			this.cmb5.Enabled = false;
			this.cmb5.Location = new System.Drawing.Point(160, 448);
			this.cmb5.Name = "cmb5";
			this.cmb5.Size = new System.Drawing.Size(112, 20);
			this.cmb5.TabIndex = 35;
			this.cmb5.DropDown += new System.EventHandler(this.cmb5_DropDown);
			this.cmb5.Leave += new System.EventHandler(this.cmb5_Leave);
			// 
			// label15
			// 
			this.label15.Location = new System.Drawing.Point(288, 432);
			this.label15.Name = "label15";
			this.label15.Size = new System.Drawing.Size(56, 16);
			this.label15.TabIndex = 1;
			this.label15.Text = "有效期至";
			// 
			// cmb6
			// 
			this.cmb6.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "读者信息.有限期至"));
			this.cmb6.Enabled = false;
			this.cmb6.Location = new System.Drawing.Point(288, 448);
			this.cmb6.Name = "cmb6";
			this.cmb6.Size = new System.Drawing.Size(112, 20);
			this.cmb6.TabIndex = 35;
			this.cmb6.DropDown += new System.EventHandler(this.cmb6_DropDown);
			this.cmb6.Leave += new System.EventHandler(this.cmb6_Leave);
			// 
			// label17
			// 
			this.label17.Location = new System.Drawing.Point(528, 384);
			this.label17.Name = "label17";
			this.label17.Size = new System.Drawing.Size(88, 16);
			this.label17.TabIndex = 1;
			this.label17.Text = "期刊借阅次数";
			// 
			// txt10
			// 
			this.txt10.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "读者信息.期刊借阅次数"));
			this.txt10.Location = new System.Drawing.Point(528, 400);
			this.txt10.Name = "txt10";
			this.txt10.ReadOnly = true;
			this.txt10.Size = new System.Drawing.Size(112, 21);
			this.txt10.TabIndex = 2;
			this.txt10.Text = "";
			// 
			// label16
			// 
			this.label16.Location = new System.Drawing.Point(416, 432);
			this.label16.Name = "label16";
			this.label16.Size = new System.Drawing.Size(88, 16);
			this.label16.TabIndex = 1;
			this.label16.Text = "操作员";
			// 
			// txt11
			// 
			this.txt11.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "读者信息.操作员"));
			this.txt11.Location = new System.Drawing.Point(416, 448);
			this.txt11.Name = "txt11";
			this.txt11.ReadOnly = true;
			this.txt11.Size = new System.Drawing.Size(96, 21);
			this.txt11.TabIndex = 2;
			this.txt11.Text = "";
			// 
			// label18
			// 
			this.label18.Location = new System.Drawing.Point(32, 480);
			this.label18.Name = "label18";
			this.label18.Size = new System.Drawing.Size(88, 16);
			this.label18.TabIndex = 1;
			this.label18.Text = "备注";
			// 
			// txt12
			// 
			this.txt12.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "读者信息.备注"));
			this.txt12.Location = new System.Drawing.Point(32, 496);
			this.txt12.Name = "txt12";
			this.txt12.ReadOnly = true;
			this.txt12.Size = new System.Drawing.Size(608, 21);
			this.txt12.TabIndex = 2;
			this.txt12.Text = "";
			// 
			// checkBox1
			// 
			this.checkBox1.Checked = true;
			this.checkBox1.CheckState = System.Windows.Forms.CheckState.Indeterminate;
			this.checkBox1.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.dataSet11, "读者信息.是否挂失"));
			this.checkBox1.Enabled = false;
			this.checkBox1.Location = new System.Drawing.Point(528, 448);
			this.checkBox1.Name = "checkBox1";
			this.checkBox1.TabIndex = 36;
			this.checkBox1.Text = "是否挂失";
			this.checkBox1.ThreeState = true;
			// 
			// calen1
			// 
			this.calen1.Location = new System.Drawing.Point(96, 192);
			this.calen1.Name = "calen1";
			this.calen1.TabIndex = 37;
			this.calen1.Visible = false;
			this.calen1.DateSelected += new System.Windows.Forms.DateRangeEventHandler(this.calen1_DateSelected);
			// 
			// ReaderInfo
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(704, 525);
			this.Controls.Add(this.calen1);
			this.Controls.Add(this.checkBox1);
			this.Controls.Add(this.cmb1);
			this.Controls.Add(this.dataGrid1);
			this.Controls.Add(this.groupBox1);
			this.Controls.Add(this.toolBar1);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.txt4);
			this.Controls.Add(this.txt5);
			this.Controls.Add(this.txt6);
			this.Controls.Add(this.txt7);
			this.Controls.Add(this.txt8);
			this.Controls.Add(this.txt9);
			this.Controls.Add(this.txt10);
			this.Controls.Add(this.txt11);
			this.Controls.Add(this.txt12);
			this.Controls.Add(this.label5);
			this.Controls.Add(this.label6);
			this.Controls.Add(this.label7);
			this.Controls.Add(this.label8);
			this.Controls.Add(this.cmb2);
			this.Controls.Add(this.label9);
			this.Controls.Add(this.cmb3);
			this.Controls.Add(this.label10);
			this.Controls.Add(this.label11);
			this.Controls.Add(this.label12);
			this.Controls.Add(this.label13);
			this.Controls.Add(this.cmb4);
			this.Controls.Add(this.label14);
			this.Controls.Add(this.cmb5);
			this.Controls.Add(this.label15);
			this.Controls.Add(this.cmb6);
			this.Controls.Add(this.label17);
			this.Controls.Add(this.label16);
			this.Controls.Add(this.label18);
			this.Name = "ReaderInfo";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "【读者档案管理】";
			this.Load += new System.EventHandler(this.ReaderInfo_Load);
			this.groupBox1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dataSet11)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		//------------创建窗体时读入数据和设置下拉列表------------
		private void ReaderInfo_Load(object sender, System.EventArgs e)
		{
			da1.SelectCommand.Parameters[0].Value="%%";
			da1.SelectCommand.Parameters[1].Value="%%";
			da1.SelectCommand.Parameters[2].Value="%%";
			da1.Fill(dataSet11);
            //绑定数据导航
			cmOrders=(CurrencyManager) BindingContext[dataSet11,"读者信息"];

⌨️ 快捷键说明

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