sa010.cs
来自「C#简单练习进销存代码」· CS 代码 · 共 741 行 · 第 1/2 页
CS
741 行
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;namespace star.SA{ public class SA010 : star.Public.Single {
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox textBox7;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.TextBox textBox8;
private System.Windows.Forms.DateTimePicker dateTimePicker2;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.TextBox textBox12;
private System.Windows.Forms.TextBox textBox11;
private System.Windows.Forms.TextBox textBox10;
private System.Windows.Forms.TextBox textBox9;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.CheckBox checkBox1; private System.ComponentModel.IContainer components = null; public SA010() { // This call is required by the Windows Form Designer. InitializeComponent(); this.btSearch.Visible =true; this.Text="Sale Records"; this.BasSql ="select * from SA010"; this.SelSql =""; // TODO: Add any initialization after the InitializeComponent call } /// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(SA010));
this.textBox1 = new System.Windows.Forms.TextBox();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.textBox6 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.textBox4 = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.textBox5 = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.textBox7 = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.textBox8 = new System.Windows.Forms.TextBox();
this.textBox12 = new System.Windows.Forms.TextBox();
this.textBox11 = new System.Windows.Forms.TextBox();
this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker();
this.label19 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.textBox10 = new System.Windows.Forms.TextBox();
this.textBox9 = new System.Windows.Forms.TextBox();
this.label16 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.label12 = new System.Windows.Forms.Label();
this.checkBox1 = new System.Windows.Forms.CheckBox();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
this.panel3.SuspendLayout();
this.panel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.DsMast)).BeginInit();
//
// panel1
//
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(614, 405);
//
// dataGrid1
//
this.dataGrid1.Name = "dataGrid1";
this.dataGrid1.Size = new System.Drawing.Size(184, 403);
//
// panel2
//
this.panel2.Location = new System.Drawing.Point(184, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(428, 403);
//
// panel3
//
this.panel3.Controls.Add(this.label19);
this.panel3.Controls.Add(this.label18);
this.panel3.Controls.Add(this.label17);
this.panel3.Controls.Add(this.label12);
this.panel3.Controls.Add(this.label16);
this.panel3.Controls.Add(this.label15);
this.panel3.Controls.Add(this.label11);
this.panel3.Controls.Add(this.label10);
this.panel3.Controls.Add(this.label9);
this.panel3.Controls.Add(this.label8);
this.panel3.Controls.Add(this.label7);
this.panel3.Controls.Add(this.label6);
this.panel3.Controls.Add(this.label5);
this.panel3.Controls.Add(this.label4);
this.panel3.Controls.Add(this.label3);
this.panel3.Controls.Add(this.label2);
this.panel3.Controls.Add(this.label1);
this.panel3.DockPadding.All = 5;
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(144, 403);
//
// panel4
//
this.panel4.AutoScroll = true;
this.panel4.Controls.Add(this.dateTimePicker2);
this.panel4.Controls.Add(this.textBox12);
this.panel4.Controls.Add(this.textBox11);
this.panel4.Controls.Add(this.checkBox1);
this.panel4.Controls.Add(this.button1);
this.panel4.Controls.Add(this.textBox10);
this.panel4.Controls.Add(this.textBox9);
this.panel4.Controls.Add(this.textBox8);
this.panel4.Controls.Add(this.textBox7);
this.panel4.Controls.Add(this.textBox6);
this.panel4.Controls.Add(this.textBox5);
this.panel4.Controls.Add(this.textBox4);
this.panel4.Controls.Add(this.textBox3);
this.panel4.Controls.Add(this.textBox2);
this.panel4.Controls.Add(this.comboBox2);
this.panel4.Controls.Add(this.comboBox1);
this.panel4.Controls.Add(this.dateTimePicker1);
this.panel4.Controls.Add(this.textBox1);
this.panel4.DockPadding.All = 5;
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(284, 403);
//
// toolBar1
//
this.toolBar1.Name = "toolBar1";
this.toolBar1.Size = new System.Drawing.Size(616, 40);
//
// imageList1
//
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
//
// textBox1
//
this.textBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.textBox1.Location = new System.Drawing.Point(5, 5);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(274, 20);
this.textBox1.TabIndex = 32;
this.textBox1.Text = "textBox1";
//
// dateTimePicker1
//
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd";
this.dateTimePicker1.Dock = System.Windows.Forms.DockStyle.Top;
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker1.Location = new System.Drawing.Point(5, 25);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(274, 20);
this.dateTimePicker1.TabIndex = 35;
//
// comboBox2
//
this.comboBox2.Dock = System.Windows.Forms.DockStyle.Top;
this.comboBox2.Location = new System.Drawing.Point(5, 66);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(274, 21);
this.comboBox2.TabIndex = 34;
this.comboBox2.Text = "comboBox2";
//
// comboBox1
//
this.comboBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.comboBox1.Location = new System.Drawing.Point(5, 45);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(274, 21);
this.comboBox1.TabIndex = 33;
this.comboBox1.Text = "comboBox1";
//
// label4
//
this.label4.Dock = System.Windows.Forms.DockStyle.Top;
this.label4.Location = new System.Drawing.Point(5, 65);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(134, 20);
this.label4.TabIndex = 31;
this.label4.Text = "Product:";
this.label4.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
//
// label3
//
this.label3.Dock = System.Windows.Forms.DockStyle.Top;
this.label3.Location = new System.Drawing.Point(5, 45);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(134, 20);
this.label3.TabIndex = 30;
this.label3.Text = "Customer:";
this.label3.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
//
// label2
//
this.label2.Dock = System.Windows.Forms.DockStyle.Top;
this.label2.Location = new System.Drawing.Point(5, 25);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(134, 20);
this.label2.TabIndex = 1;
this.label2.Text = "Date:";
this.label2.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
this.label1.Location = new System.Drawing.Point(5, 5);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(134, 20);
this.label1.TabIndex = 37;
this.label1.Text = "Code:";
this.label1.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
//
// textBox6
//
this.textBox6.Dock = System.Windows.Forms.DockStyle.Top;
this.textBox6.Location = new System.Drawing.Point(5, 167);
this.textBox6.Name = "textBox6";
this.textBox6.ReadOnly = true;
this.textBox6.Size = new System.Drawing.Size(274, 20);
this.textBox6.TabIndex = 43;
this.textBox6.Text = "textBox6";
//
// textBox3
//
this.textBox3.Dock = System.Windows.Forms.DockStyle.Top;
this.textBox3.Location = new System.Drawing.Point(5, 107);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(274, 20);
this.textBox3.TabIndex = 42;
this.textBox3.Text = "textBox3";
//
// textBox2
//
this.textBox2.Dock = System.Windows.Forms.DockStyle.Top;
this.textBox2.Location = new System.Drawing.Point(5, 87);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(274, 20);
this.textBox2.TabIndex = 41;
this.textBox2.Text = "textBox2";
//
// label7
//
this.label7.Dock = System.Windows.Forms.DockStyle.Top;
this.label7.Location = new System.Drawing.Point(5, 125);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(134, 20);
this.label7.TabIndex = 40;
this.label7.Text = "Sold Price:";
this.label7.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
//
// label6
//
this.label6.Dock = System.Windows.Forms.DockStyle.Top;
this.label6.Location = new System.Drawing.Point(5, 105);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(134, 20);
this.label6.TabIndex = 39;
this.label6.Text = "Total Cost:";
this.label6.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
//
// label5
//
this.label5.Dock = System.Windows.Forms.DockStyle.Top;
this.label5.Location = new System.Drawing.Point(5, 85);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(134, 20);
this.label5.TabIndex = 38;
this.label5.Text = "Purchase Price:";
this.label5.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
//
// textBox4
//
this.textBox4.Dock = System.Windows.Forms.DockStyle.Top;
this.textBox4.Location = new System.Drawing.Point(5, 127);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(274, 20);
this.textBox4.TabIndex = 45;
this.textBox4.Text = "textBox4";
//
// label8
//
this.label8.Dock = System.Windows.Forms.DockStyle.Top;
this.label8.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.label8.Location = new System.Drawing.Point(5, 145);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(134, 20);
this.label8.TabIndex = 44;
this.label8.Text = "QTY";
this.label8.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
//
// textBox5
//
this.textBox5.Dock = System.Windows.Forms.DockStyle.Top;
this.textBox5.Location = new System.Drawing.Point(5, 147);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(274, 20);
this.textBox5.TabIndex = 46;
this.textBox5.Text = "textBox5";
//
// label9
//
this.label9.Dock = System.Windows.Forms.DockStyle.Top;
this.label9.Location = new System.Drawing.Point(5, 165);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(134, 20);
this.label9.TabIndex = 47;
this.label9.Text = "Total Amount:";
this.label9.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
//
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?