📄 frmbuybook.cs
字号:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;using System.Data;using System.Data.SqlClient;namespace 图书馆管理系统{ public class frmBuyBook : 图书馆管理系统.frmBase {
internal System.Windows.Forms.GroupBox GroupBox1;
internal System.Windows.Forms.DateTimePicker tmDate;
internal System.Windows.Forms.Label Label13;
internal System.Windows.Forms.Button btnOpen;
internal System.Windows.Forms.TextBox txbContact;
internal System.Windows.Forms.Label Label12;
internal System.Windows.Forms.Label Label11;
internal System.Windows.Forms.TextBox txbPrice;
internal System.Windows.Forms.Label Label10;
internal System.Windows.Forms.TextBox txbCount;
internal System.Windows.Forms.Label Label9;
internal System.Windows.Forms.TextBox txbWorker;
internal System.Windows.Forms.Label Label8;
internal System.Windows.Forms.TextBox txbSubscriber;
internal System.Windows.Forms.Label Label7;
internal System.Windows.Forms.TextBox txbBookName;
internal System.Windows.Forms.Label Label6;
internal System.Windows.Forms.TextBox txbBookNumber;
internal System.Windows.Forms.Label Label5;
internal System.Windows.Forms.TextBox txbNumber;
internal System.Windows.Forms.Label Label4;
internal System.Windows.Forms.Button btnSubmit;
private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1;
private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
private System.Data.SqlClient.SqlConnection sqlConnection1;
private 图书馆管理系统.DataSet1 dataSet11; private System.ComponentModel.IContainer components = null; public frmBuyBook() { // 该调用是 Windows 窗体设计器所必需的。 InitializeComponent(); // TODO: 在 InitializeComponent 调用后添加任何初始化 } /// <summary> /// 清理所有正在使用的资源。 /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region 设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmBuyBook));
this.GroupBox1 = new System.Windows.Forms.GroupBox();
this.tmDate = new System.Windows.Forms.DateTimePicker();
this.Label13 = new System.Windows.Forms.Label();
this.btnOpen = new System.Windows.Forms.Button();
this.txbContact = new System.Windows.Forms.TextBox();
this.Label12 = new System.Windows.Forms.Label();
this.Label11 = new System.Windows.Forms.Label();
this.txbPrice = new System.Windows.Forms.TextBox();
this.Label10 = new System.Windows.Forms.Label();
this.txbCount = new System.Windows.Forms.TextBox();
this.Label9 = new System.Windows.Forms.Label();
this.txbWorker = new System.Windows.Forms.TextBox();
this.Label8 = new System.Windows.Forms.Label();
this.txbSubscriber = new System.Windows.Forms.TextBox();
this.Label7 = new System.Windows.Forms.Label();
this.txbBookName = new System.Windows.Forms.TextBox();
this.Label6 = new System.Windows.Forms.Label();
this.txbBookNumber = new System.Windows.Forms.TextBox();
this.Label5 = new System.Windows.Forms.Label();
this.txbNumber = new System.Windows.Forms.TextBox();
this.Label4 = new System.Windows.Forms.Label();
this.btnSubmit = new System.Windows.Forms.Button();
this.sqlDataAdapter1 = new System.Data.SqlClient.SqlDataAdapter();
this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
this.dataSet11 = new 图书馆管理系统.DataSet1();
((System.ComponentModel.ISupportInitialize)(this.dgdList)).BeginInit();
this.GroupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
this.SuspendLayout();
//
// dgdList
//
this.dgdList.Location = new System.Drawing.Point(6, 76);
this.dgdList.Name = "dgdList";
this.dgdList.Size = new System.Drawing.Size(560, 74);
//
// GroupBox1
//
this.GroupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.GroupBox1.Controls.Add(this.tmDate);
this.GroupBox1.Controls.Add(this.Label13);
this.GroupBox1.Controls.Add(this.btnOpen);
this.GroupBox1.Controls.Add(this.txbContact);
this.GroupBox1.Controls.Add(this.Label12);
this.GroupBox1.Controls.Add(this.Label11);
this.GroupBox1.Controls.Add(this.txbPrice);
this.GroupBox1.Controls.Add(this.Label10);
this.GroupBox1.Controls.Add(this.txbCount);
this.GroupBox1.Controls.Add(this.Label9);
this.GroupBox1.Controls.Add(this.txbWorker);
this.GroupBox1.Controls.Add(this.Label8);
this.GroupBox1.Controls.Add(this.txbSubscriber);
this.GroupBox1.Controls.Add(this.Label7);
this.GroupBox1.Controls.Add(this.txbBookName);
this.GroupBox1.Controls.Add(this.Label6);
this.GroupBox1.Controls.Add(this.txbBookNumber);
this.GroupBox1.Controls.Add(this.Label5);
this.GroupBox1.Controls.Add(this.txbNumber);
this.GroupBox1.Controls.Add(this.Label4);
this.GroupBox1.Location = new System.Drawing.Point(-3, 153);
this.GroupBox1.Name = "GroupBox1";
this.GroupBox1.Size = new System.Drawing.Size(575, 106);
this.GroupBox1.TabIndex = 21;
this.GroupBox1.TabStop = false;
//
// tmDate
//
this.tmDate.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.tmDate.Location = new System.Drawing.Point(206, 74);
this.tmDate.Name = "tmDate";
this.tmDate.Size = new System.Drawing.Size(74, 20);
this.tmDate.TabIndex = 21;
//
// Label13
//
this.Label13.Location = new System.Drawing.Point(400, 24);
this.Label13.Name = "Label13";
this.Label13.Size = new System.Drawing.Size(165, 64);
this.Label13.TabIndex = 19;
this.Label13.Text = "说明:填写的的征订记录保存在\"图书征订\"表中,\"是否验收\"字段为0(false),单击【提交征订】按钮,调用\"sf_图书征订\"存储过程处理";
//
// btnOpen
//
this.btnOpen.Image = ((System.Drawing.Image)(resources.GetObject("btnOpen.Image")));
this.btnOpen.Location = new System.Drawing.Point(137, 29);
this.btnOpen.Name = "btnOpen";
this.btnOpen.Size = new System.Drawing.Size(23, 22);
this.btnOpen.TabIndex = 18;
this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
//
// txbContact
//
this.txbContact.Location = new System.Drawing.Point(287, 74);
this.txbContact.Name = "txbContact";
this.txbContact.Size = new System.Drawing.Size(93, 20);
this.txbContact.TabIndex = 17;
this.txbContact.Text = "";
//
// Label12
//
this.Label12.Location = new System.Drawing.Point(285, 59);
this.Label12.Name = "Label12";
this.Label12.Size = new System.Drawing.Size(83, 15);
this.Label12.TabIndex = 16;
this.Label12.Text = "订购者联系方式";
//
// Label11
//
this.Label11.Location = new System.Drawing.Point(205, 59);
this.Label11.Name = "Label11";
this.Label11.Size = new System.Drawing.Size(47, 15);
this.Label11.TabIndex = 14;
this.Label11.Text = "订购日期";
//
// txbPrice
//
this.txbPrice.Location = new System.Drawing.Point(140, 74);
this.txbPrice.Name = "txbPrice";
this.txbPrice.Size = new System.Drawing.Size(60, 20);
this.txbPrice.TabIndex = 13;
this.txbPrice.Text = "";
//
// Label10
//
this.Label10.Location = new System.Drawing.Point(140, 59);
this.Label10.Name = "Label10";
this.Label10.Size = new System.Drawing.Size(47, 15);
this.Label10.TabIndex = 12;
this.Label10.Text = "订购单价";
//
// txbCount
//
this.txbCount.Location = new System.Drawing.Point(73, 74);
this.txbCount.Name = "txbCount";
this.txbCount.Size = new System.Drawing.Size(60, 20);
this.txbCount.TabIndex = 11;
this.txbCount.Text = "";
//
// Label9
//
this.Label9.Location = new System.Drawing.Point(73, 59);
this.Label9.Name = "Label9";
this.Label9.Size = new System.Drawing.Size(47, 15);
this.Label9.TabIndex = 10;
this.Label9.Text = "订购数量";
//
// txbWorker
//
this.txbWorker.Location = new System.Drawing.Point(7, 74);
this.txbWorker.Name = "txbWorker";
this.txbWorker.Size = new System.Drawing.Size(60, 20);
this.txbWorker.TabIndex = 9;
this.txbWorker.Text = "";
//
// Label8
//
this.Label8.Location = new System.Drawing.Point(7, 59);
this.Label8.Name = "Label8";
this.Label8.Size = new System.Drawing.Size(46, 15);
this.Label8.TabIndex = 8;
this.Label8.Text = "操作员";
//
// txbSubscriber
//
this.txbSubscriber.Location = new System.Drawing.Point(320, 30);
this.txbSubscriber.Name = "txbSubscriber";
this.txbSubscriber.Size = new System.Drawing.Size(60, 20);
this.txbSubscriber.TabIndex = 7;
this.txbSubscriber.Text = "";
//
// Label7
//
this.Label7.Location = new System.Drawing.Point(318, 15);
this.Label7.Name = "Label7";
this.Label7.Size = new System.Drawing.Size(47, 15);
this.Label7.TabIndex = 6;
this.Label7.Text = "订购者";
//
// txbBookName
//
this.txbBookName.Location = new System.Drawing.Point(167, 30);
this.txbBookName.Name = "txbBookName";
this.txbBookName.ReadOnly = true;
this.txbBookName.Size = new System.Drawing.Size(146, 20);
this.txbBookName.TabIndex = 5;
this.txbBookName.Text = "";
//
// Label6
//
this.Label6.Location = new System.Drawing.Point(167, 15);
this.Label6.Name = "Label6";
this.Label6.Size = new System.Drawing.Size(46, 15);
this.Label6.TabIndex = 4;
this.Label6.Text = "图书名称";
//
// txbBookNumber
//
this.txbBookNumber.Location = new System.Drawing.Point(73, 30);
this.txbBookNumber.Name = "txbBookNumber";
this.txbBookNumber.Size = new System.Drawing.Size(60, 20);
this.txbBookNumber.TabIndex = 3;
this.txbBookNumber.Text = "";
this.txbBookNumber.TextChanged += new System.EventHandler(this.txbBookNumber_TextChanged);
//
// Label5
//
this.Label5.Location = new System.Drawing.Point(73, 15);
this.Label5.Name = "Label5";
this.Label5.Size = new System.Drawing.Size(47, 15);
this.Label5.TabIndex = 2;
this.Label5.Text = "图书编号";
//
// txbNumber
//
this.txbNumber.Location = new System.Drawing.Point(7, 30);
this.txbNumber.Name = "txbNumber";
this.txbNumber.ReadOnly = true;
this.txbNumber.Size = new System.Drawing.Size(60, 20);
this.txbNumber.TabIndex = 1;
this.txbNumber.Text = "";
//
// Label4
//
this.Label4.Location = new System.Drawing.Point(7, 15);
this.Label4.Name = "Label4";
this.Label4.Size = new System.Drawing.Size(46, 15);
this.Label4.TabIndex = 0;
this.Label4.Text = "征订编号";
//
// btnSubmit
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -