?? buyfrm.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
namespace WindowsApplication4
{
/// <summary>
/// buyFrm 的摘要說明。
/// </summary>
public class buyFrm : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
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 label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox textNum;
private System.Windows.Forms.TextBox textNowNum;
private System.Windows.Forms.TextBox textMaxNum;
private System.Windows.Forms.TextBox textAccount;
private System.Windows.Forms.TextBox textSupply;
private System.Windows.Forms.TextBox textCost;
private System.Windows.Forms.TextBox textMan;
private System.Windows.Forms.TextBox textShow;
private System.Windows.Forms.TextBox textDate;
private System.Windows.Forms.Button creat_button;
private System.Windows.Forms.Button esc_button;
private System.Data.SqlClient.SqlDataAdapter buyAdapter;
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 SqlConnection MyConn = new SqlConnection("server=.;Trusted_Connection=yes;user=sa;pwd=1;database=storage");
private DataSet buySet=new DataSet();
/// <summary>
/// 必需的設計器變量。
/// </summary>
private System.ComponentModel.Container components = null;
public buyFrm()
{
//
// Windows 窗體設計器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 調(diào)用后添加任何構(gòu)造函數(shù)代碼
//
}
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗體設計器生成的代碼
/// <summary>
/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內(nèi)容。
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.textNum = new System.Windows.Forms.TextBox();
this.textNowNum = new System.Windows.Forms.TextBox();
this.textMaxNum = new System.Windows.Forms.TextBox();
this.textAccount = new System.Windows.Forms.TextBox();
this.textSupply = new System.Windows.Forms.TextBox();
this.textCost = new System.Windows.Forms.TextBox();
this.textMan = new System.Windows.Forms.TextBox();
this.textShow = new System.Windows.Forms.TextBox();
this.textDate = new System.Windows.Forms.TextBox();
this.creat_button = new System.Windows.Forms.Button();
this.esc_button = new System.Windows.Forms.Button();
this.buyAdapter = 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.SuspendLayout();
//
// label1
//
this.label1.Font = new System.Drawing.Font("宋體", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label1.Location = new System.Drawing.Point(128, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(208, 24);
this.label1.TabIndex = 0;
this.label1.Text = "設 備 采 購 計 劃 報 表:";
//
// label2
//
this.label2.Location = new System.Drawing.Point(16, 56);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(80, 24);
this.label2.TabIndex = 1;
this.label2.Text = "設備號:";
//
// label3
//
this.label3.Location = new System.Drawing.Point(248, 56);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(64, 24);
this.label3.TabIndex = 2;
this.label3.Text = "現(xiàn)有庫存:";
//
// label4
//
this.label4.Location = new System.Drawing.Point(16, 96);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(80, 32);
this.label4.TabIndex = 3;
this.label4.Text = "最大庫存:";
//
// label5
//
this.label5.Location = new System.Drawing.Point(248, 96);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(64, 24);
this.label5.TabIndex = 4;
this.label5.Text = "購買數(shù)量:";
//
// label6
//
this.label6.Location = new System.Drawing.Point(16, 128);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(80, 32);
this.label6.TabIndex = 5;
this.label6.Text = "供應商:";
//
// label7
//
this.label7.Location = new System.Drawing.Point(256, 128);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(64, 16);
this.label7.TabIndex = 6;
this.label7.Text = "價格:";
//
// label8
//
this.label8.Location = new System.Drawing.Point(16, 160);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(80, 32);
this.label8.TabIndex = 7;
this.label8.Text = "制表人:";
//
// label9
//
this.label9.Location = new System.Drawing.Point(256, 168);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(64, 16);
this.label9.TabIndex = 8;
this.label9.Text = "備注:";
//
// label10
//
this.label10.Location = new System.Drawing.Point(16, 208);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(64, 16);
this.label10.TabIndex = 9;
this.label10.Text = "報表時間:";
//
// textNum
//
this.textNum.Location = new System.Drawing.Point(104, 48);
this.textNum.Name = "textNum";
this.textNum.Size = new System.Drawing.Size(88, 21);
this.textNum.TabIndex = 10;
this.textNum.Text = "";
//
// textNowNum
//
this.textNowNum.Location = new System.Drawing.Point(336, 48);
this.textNowNum.Name = "textNowNum";
this.textNowNum.Size = new System.Drawing.Size(88, 21);
this.textNowNum.TabIndex = 11;
this.textNowNum.Text = "";
//
// textMaxNum
//
this.textMaxNum.Location = new System.Drawing.Point(104, 88);
this.textMaxNum.Name = "textMaxNum";
this.textMaxNum.Size = new System.Drawing.Size(88, 21);
this.textMaxNum.TabIndex = 12;
this.textMaxNum.Text = "";
//
// textAccount
//
this.textAccount.Location = new System.Drawing.Point(336, 88);
this.textAccount.Name = "textAccount";
this.textAccount.Size = new System.Drawing.Size(88, 21);
this.textAccount.TabIndex = 13;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -