⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inputform.cs

📁 超市管理系统的完整版文档
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using SupDataBase;
using System.Data.SqlClient;
using System.Globalization;

namespace WindowsApplication1
{
	/// <summary>
	/// PurchaseForm 的摘要说明。
	/// </summary>
	public class InputForm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		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 label2;
		private System.Windows.Forms.TextBox m_txtGoodsCode;
		private System.Windows.Forms.TextBox m_txtInprice;
		private System.Windows.Forms.TextBox m_txtGoodsName;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.TextBox m_txtNumber;
		private System.Windows.Forms.TextBox m_txtSupplierID;
		private System.Windows.Forms.TextBox m_txtRemark;
		private System.Windows.Forms.Button m_bntInput;
		private System.Windows.Forms.Button m_bntExit;
		private System.Windows.Forms.Button m_bntCheck;
		private System.Windows.Forms.Button m_bntClear;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.ComboBox m_txtUnit;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public InputForm()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.m_txtGoodsCode = new System.Windows.Forms.TextBox();
			this.m_txtInprice = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.m_txtSupplierID = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.m_txtRemark = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.m_txtGoodsName = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.m_bntInput = new System.Windows.Forms.Button();
			this.m_bntExit = new System.Windows.Forms.Button();
			this.label7 = new System.Windows.Forms.Label();
			this.m_txtNumber = new System.Windows.Forms.TextBox();
			this.m_bntCheck = new System.Windows.Forms.Button();
			this.m_bntClear = new System.Windows.Forms.Button();
			this.label8 = new System.Windows.Forms.Label();
			this.m_txtUnit = new System.Windows.Forms.ComboBox();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(72, 96);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(56, 16);
			this.label1.TabIndex = 0;
			this.label1.Text = "商品条码";
			// 
			// m_txtGoodsCode
			// 
			this.m_txtGoodsCode.Location = new System.Drawing.Point(160, 88);
			this.m_txtGoodsCode.Name = "m_txtGoodsCode";
			this.m_txtGoodsCode.Size = new System.Drawing.Size(152, 21);
			this.m_txtGoodsCode.TabIndex = 2;
			this.m_txtGoodsCode.Text = "";
			this.m_txtGoodsCode.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.m_txtGoodsCode_KeyPress);
			// 
			// m_txtInprice
			// 
			this.m_txtInprice.Location = new System.Drawing.Point(160, 160);
			this.m_txtInprice.Name = "m_txtInprice";
			this.m_txtInprice.Size = new System.Drawing.Size(56, 21);
			this.m_txtInprice.TabIndex = 4;
			this.m_txtInprice.Text = "";
			this.m_txtInprice.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.m_txtInprice_KeyPress);
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(72, 168);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(48, 16);
			this.label3.TabIndex = 3;
			this.label3.Text = "进   价";
			this.label3.Click += new System.EventHandler(this.label3_Click);
			// 
			// m_txtSupplierID
			// 
			this.m_txtSupplierID.Location = new System.Drawing.Point(160, 264);
			this.m_txtSupplierID.Name = "m_txtSupplierID";
			this.m_txtSupplierID.Size = new System.Drawing.Size(88, 21);
			this.m_txtSupplierID.TabIndex = 6;
			this.m_txtSupplierID.Text = "";
			this.m_txtSupplierID.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.m_txtSupplierID_KeyPress);
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(72, 272);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(48, 16);
			this.label4.TabIndex = 5;
			this.label4.Text = "进货商";
			// 
			// m_txtRemark
			// 
			this.m_txtRemark.Location = new System.Drawing.Point(160, 304);
			this.m_txtRemark.Multiline = true;
			this.m_txtRemark.Name = "m_txtRemark";
			this.m_txtRemark.Size = new System.Drawing.Size(152, 64);
			this.m_txtRemark.TabIndex = 8;
			this.m_txtRemark.Text = "";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(72, 304);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(48, 16);
			this.label5.TabIndex = 7;
			this.label5.Text = "备   注";
			// 
			// m_txtGoodsName
			// 
			this.m_txtGoodsName.Location = new System.Drawing.Point(160, 128);
			this.m_txtGoodsName.Name = "m_txtGoodsName";
			this.m_txtGoodsName.Size = new System.Drawing.Size(152, 21);
			this.m_txtGoodsName.TabIndex = 10;
			this.m_txtGoodsName.Text = "";
			this.m_txtGoodsName.TextChanged += new System.EventHandler(this.textBox5_TextChanged);
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(72, 136);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(64, 16);
			this.label6.TabIndex = 9;
			this.label6.Text = "商品名称";
			// 
			// label2
			// 
			this.label2.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label2.Location = new System.Drawing.Point(160, 24);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(88, 23);
			this.label2.TabIndex = 11;
			this.label2.Text = "进   货";
			this.label2.Click += new System.EventHandler(this.label2_Click);
			// 
			// m_bntInput
			// 
			this.m_bntInput.Location = new System.Drawing.Point(32, 384);
			this.m_bntInput.Name = "m_bntInput";
			this.m_bntInput.TabIndex = 12;
			this.m_bntInput.Text = "录入";
			this.m_bntInput.Click += new System.EventHandler(this.m_bntInput_Click);
			// 
			// m_bntExit
			// 
			this.m_bntExit.Location = new System.Drawing.Point(264, 384);
			this.m_bntExit.Name = "m_bntExit";
			this.m_bntExit.TabIndex = 13;
			this.m_bntExit.Text = "退出";
			this.m_bntExit.Click += new System.EventHandler(this.m_bntExit_Click);
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(72, 200);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(48, 16);
			this.label7.TabIndex = 15;
			this.label7.Text = "数   量";
			// 
			// m_txtNumber
			// 
			this.m_txtNumber.Location = new System.Drawing.Point(160, 192);
			this.m_txtNumber.Name = "m_txtNumber";
			this.m_txtNumber.Size = new System.Drawing.Size(56, 21);
			this.m_txtNumber.TabIndex = 16;
			this.m_txtNumber.Text = "";
			this.m_txtNumber.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.m_txtNumber_KeyPress);
			// 
			// m_bntCheck
			// 
			this.m_bntCheck.Location = new System.Drawing.Point(256, 264);
			this.m_bntCheck.Name = "m_bntCheck";
			this.m_bntCheck.Size = new System.Drawing.Size(56, 23);
			this.m_bntCheck.TabIndex = 17;
			this.m_bntCheck.Text = "验证";
			this.m_bntCheck.Click += new System.EventHandler(this.m_bntCheck_Click);
			// 
			// m_bntClear
			// 
			this.m_bntClear.Location = new System.Drawing.Point(144, 384);
			this.m_bntClear.Name = "m_bntClear";
			this.m_bntClear.TabIndex = 18;
			this.m_bntClear.Text = "清空";
			this.m_bntClear.Click += new System.EventHandler(this.m_bntClear_Click);
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(72, 232);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(56, 16);
			this.label8.TabIndex = 19;
			this.label8.Text = "计量单位";
			this.label8.Click += new System.EventHandler(this.label8_Click);
			// 
			// m_txtUnit
			// 
			this.m_txtUnit.Items.AddRange(new object[] {
														   "个",
														   "只",
														   "斤",
														   "千克",
														   "袋",
														   "包",
														   "箱",
														   "盒",
														   "颗",
														   "粒",
														   "对",
														   "打"});
			this.m_txtUnit.Location = new System.Drawing.Point(160, 232);
			this.m_txtUnit.Name = "m_txtUnit";
			this.m_txtUnit.Size = new System.Drawing.Size(72, 20);
			this.m_txtUnit.TabIndex = 21;
			// 
			// PurchaseForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(416, 421);
			this.Controls.Add(this.m_txtUnit);
			this.Controls.Add(this.label8);
			this.Controls.Add(this.m_bntClear);
			this.Controls.Add(this.m_bntCheck);
			this.Controls.Add(this.m_txtNumber);
			this.Controls.Add(this.label7);
			this.Controls.Add(this.m_bntExit);
			this.Controls.Add(this.m_bntInput);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.m_txtGoodsName);
			this.Controls.Add(this.label6);
			this.Controls.Add(this.m_txtRemark);
			this.Controls.Add(this.label5);
			this.Controls.Add(this.m_txtSupplierID);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.m_txtInprice);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.m_txtGoodsCode);
			this.Controls.Add(this.label1);
			this.Name = "PurchaseForm";
			this.Text = "进货";
			this.ResumeLayout(false);

		}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -