?? reborrowbooks.cs
字號:
//
this.textBox4.Location = new System.Drawing.Point(96, 114);
this.textBox4.Name = "textBox4";
this.textBox4.ReadOnly = true;
this.textBox4.Size = new System.Drawing.Size(136, 21);
this.textBox4.TabIndex = 7;
this.textBox4.Text = "";
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(96, 80);
this.textBox3.Name = "textBox3";
this.textBox3.ReadOnly = true;
this.textBox3.Size = new System.Drawing.Size(136, 21);
this.textBox3.TabIndex = 6;
this.textBox3.Text = "";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(96, 40);
this.textBox2.Name = "textBox2";
this.textBox2.ReadOnly = true;
this.textBox2.Size = new System.Drawing.Size(136, 21);
this.textBox2.TabIndex = 5;
this.textBox2.Text = "";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(24, 192);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(54, 17);
this.label7.TabIndex = 4;
this.label7.Text = "當前剩余";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(24, 154);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(66, 17);
this.label6.TabIndex = 3;
this.label6.Text = "可借閱數量";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(24, 116);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(29, 17);
this.label5.TabIndex = 2;
this.label5.Text = "類型";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(24, 78);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(29, 17);
this.label4.TabIndex = 1;
this.label4.Text = "性別";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(24, 40);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(29, 17);
this.label3.TabIndex = 0;
this.label3.Text = "姓名";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.groupBox1.Location = new System.Drawing.Point(40, 56);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(264, 104);
this.groupBox1.TabIndex = 6;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "讀者驗證";
//
// label10
//
this.label10.AutoSize = true;
this.label10.ForeColor = System.Drawing.Color.Red;
this.label10.Location = new System.Drawing.Point(200, 58);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(48, 17);
this.label10.TabIndex = 4;
this.label10.Text = "<Enter>";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(34, 32);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(66, 17);
this.label2.TabIndex = 3;
this.label2.Text = "借書證號碼";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(34, 56);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(166, 21);
this.textBox1.TabIndex = 2;
this.textBox1.Text = "";
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
//
// groupBox6
//
this.groupBox6.Controls.Add(this.groupBox3);
this.groupBox6.Controls.Add(this.label21);
this.groupBox6.Controls.Add(this.label20);
this.groupBox6.Controls.Add(this.label19);
this.groupBox6.Controls.Add(this.label17);
this.groupBox6.Controls.Add(this.label16);
this.groupBox6.Controls.Add(this.label15);
this.groupBox6.Controls.Add(this.label13);
this.groupBox6.Controls.Add(this.label12);
this.groupBox6.Controls.Add(this.label11);
this.groupBox6.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.groupBox6.Location = new System.Drawing.Point(336, 264);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(416, 152);
this.groupBox6.TabIndex = 11;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "罰款信息";
//
// groupBox3
//
this.groupBox3.Controls.Add(this.listView2);
this.groupBox3.Location = new System.Drawing.Point(176, 16);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(232, 128);
this.groupBox3.TabIndex = 16;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "超期圖書";
//
// listView2
//
this.listView2.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader2,
this.columnHeader3,
this.columnHeader4});
this.listView2.Dock = System.Windows.Forms.DockStyle.Fill;
this.listView2.FullRowSelect = true;
this.listView2.Location = new System.Drawing.Point(3, 17);
this.listView2.MultiSelect = false;
this.listView2.Name = "listView2";
this.listView2.Size = new System.Drawing.Size(226, 108);
this.listView2.TabIndex = 0;
this.listView2.View = System.Windows.Forms.View.Details;
this.listView2.Click += new System.EventHandler(this.listView2_Click);
//
// columnHeader1
//
this.columnHeader1.Text = "圖書條碼號";
this.columnHeader1.Width = 72;
//
// columnHeader2
//
this.columnHeader2.Text = "借書日期";
//
// columnHeader3
//
this.columnHeader3.Text = "還書日期";
this.columnHeader3.Width = 70;
//
// columnHeader4
//
this.columnHeader4.Text = "超期天數";
//
// label21
//
this.label21.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label21.Location = new System.Drawing.Point(88, 96);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(64, 17);
this.label21.TabIndex = 15;
this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label20
//
this.label20.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label20.Location = new System.Drawing.Point(88, 64);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(64, 17);
this.label20.TabIndex = 14;
this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label19
//
this.label19.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label19.Location = new System.Drawing.Point(88, 30);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(64, 17);
this.label19.TabIndex = 13;
this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label17
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(152, 96);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(17, 17);
this.label17.TabIndex = 11;
this.label17.Text = "元";
//
// label16
//
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(152, 64);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(17, 17);
this.label16.TabIndex = 10;
this.label16.Text = "天";
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(152, 32);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(17, 17);
this.label15.TabIndex = 9;
this.label15.Text = "本";
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(24, 96);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(54, 17);
this.label13.TabIndex = 7;
this.label13.Text = "應交罰款";
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(24, 64);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(54, 17);
this.label12.TabIndex = 6;
this.label12.Text = "超期天數";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(24, 32);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(54, 17);
this.label11.TabIndex = 5;
this.label11.Text = "超期圖書";
//
// ReborrowBooks
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(790, 503);
this.ControlBox = false;
this.Controls.Add(this.groupBox6);
this.Controls.Add(this.groupBox5);
this.Controls.Add(this.groupBox4);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "ReborrowBooks";
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "續借圖書";
this.Load += new System.EventHandler(this.ReborrowBooks_Load);
this.groupBox5.ResumeLayout(false);
this.groupBox4.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox6.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// 定義方法GetData(),返回一個數據表
/// </summary>
/// <returns>返回DataTable</returns>
public System.Data.DataTable GetData(string sel)
{
SqlDataAdapter adapter = new SqlDataAdapter(sel,Global.conn);
DataSet ds= new DataSet();
try
{
adapter.Fill(ds);
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
return ds.Tables[0];
}
/// <summary>
/// 初始化
/// </summary>
private void initializeScreen()
{
i = 0;
rc = 0;
textBox1.Text = "";
textBox2.Text = "";
textBox3.Text = "";
textBox4.Text = "";
textBox5.Text = "";
textBox6.Text = "";
strReturnDate = "";
CanBDays = 0;
button1.Enabled = false;
button4.Enabled = false;
listView1.Items.Clear();
listView2.Items.Clear();
}
/// <summary>
/// 根據借書證號初始化
/// </summary>
private void initializeReader()
{
i = 0;
rc = 0;
int count = 0;
double pay = 0;
int days = 0;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -