sa011.cs
来自「C#简单练习进销存代码」· CS 代码 · 共 491 行 · 第 1/2 页
CS
491 行
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;namespace star.SA{ public class SA011 : star.Public.Single {
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
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 textBox9;
private System.Windows.Forms.TextBox textBox8;
private System.Windows.Forms.TextBox textBox7;
private System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.TextBox textBox1; private System.ComponentModel.IContainer components = null; // //1. define saId // private int saId; private System.Data.OleDb.OleDbConnection dbCon; public SA011() { // This call is required by the Windows Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitializeComponent call } // //2. construct the class; // public SA011(System.Data.OleDb.OleDbConnection dbCon,int saId) { // This call is required by the Windows Form Designer. InitializeComponent(); this.dbCon=dbCon; this.saId=saId; this.BasSql="select * from SA_CF " ; this.DaMast.RowUpdated +=new System.Data.OleDb.OleDbRowUpdatedEventHandler(DaMast_RowUpdated); // 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(SA011));
this.label10 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
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.textBox9 = new System.Windows.Forms.TextBox();
this.textBox8 = new System.Windows.Forms.TextBox();
this.textBox7 = new System.Windows.Forms.TextBox();
this.textBox6 = new System.Windows.Forms.TextBox();
this.textBox5 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.textBox1 = new System.Windows.Forms.TextBox();
((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(518, 309);
//
// dataGrid1
//
this.dataGrid1.Name = "dataGrid1";
this.dataGrid1.Size = new System.Drawing.Size(208, 307);
//
// panel2
//
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(308, 307);
//
// panel3
//
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(152, 307);
//
// panel4
//
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.dateTimePicker1);
this.panel4.Controls.Add(this.textBox1);
this.panel4.DockPadding.All = 5;
this.panel4.Location = new System.Drawing.Point(152, 0);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(156, 307);
//
// toolBar1
//
this.toolBar1.Name = "toolBar1";
this.toolBar1.Size = new System.Drawing.Size(520, 40);
//
// imageList1
//
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
//
// label10
//
this.label10.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label10.Location = new System.Drawing.Point(5, 178);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(142, 24);
this.label10.TabIndex = 19;
this.label10.Text = "Receivable from Customers:";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label9
//
this.label9.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label9.Location = new System.Drawing.Point(5, 202);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(142, 20);
this.label9.TabIndex = 18;
this.label9.Text = "Sum of Collection:";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label8
//
this.label8.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label8.Location = new System.Drawing.Point(5, 222);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(142, 20);
this.label8.TabIndex = 17;
this.label8.Text = "Balance of Collection";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label7
//
this.label7.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label7.Location = new System.Drawing.Point(5, 242);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(142, 20);
this.label7.TabIndex = 16;
this.label7.Text = "Payable to Others";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label6
//
this.label6.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label6.Location = new System.Drawing.Point(5, 262);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(142, 20);
this.label6.TabIndex = 15;
this.label6.Text = "Sum of Payment to OT:";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label5
//
this.label5.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label5.Location = new System.Drawing.Point(5, 282);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(142, 20);
this.label5.TabIndex = 14;
this.label5.Text = "Balance to Others";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// 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(142, 20);
this.label4.TabIndex = 13;
this.label4.Text = "Pay to Others";
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(142, 20);
this.label3.TabIndex = 12;
this.label3.Text = "Collection from Customers:";
this.label3.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
//
// label2
//
this.label2.Dock = System.Windows.Forms.DockStyle.Top;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?