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

📄 editlistitem.cs

📁 企业管理系统
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

using System.Data;
using System.Data.OleDb;

namespace Eboer.MIS.MF.WinForm.Sell
{
	/// <summary>
	/// EditListItem 的摘要说明。
	/// </summary>
	public class EditListItem : System.Windows.Forms.Form
	{
		private System.Windows.Forms.GroupBox groupBox1;
		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.Button button1;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.TextBox emmo;
		private System.Windows.Forms.TextBox bz;
		private System.Windows.Forms.TextBox pb;
		private System.Windows.Forms.TextBox zzd;
		private System.Windows.Forms.TextBox zj;
		private System.Windows.Forms.TextBox sl;
		private System.Windows.Forms.TextBox dj;
		private System.Windows.Forms.TextBox dw;
		private System.Windows.Forms.TextBox gg;
		private System.Windows.Forms.ComboBox proName;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		//需要被编辑的行,如果是新行则保存时将行返回主窗品的dataset中
		public DataRow row = null;

		public DataSet ds  = null;

		public EditListItem(DataRow row,DataSet ds)
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			this.row = row;
			this.ds  = ds;
		}

		/// <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.groupBox1 = new System.Windows.Forms.GroupBox();
			this.emmo = new System.Windows.Forms.TextBox();
			this.bz = new System.Windows.Forms.TextBox();
			this.pb = new System.Windows.Forms.TextBox();
			this.zzd = new System.Windows.Forms.TextBox();
			this.zj = new System.Windows.Forms.TextBox();
			this.sl = new System.Windows.Forms.TextBox();
			this.dj = new System.Windows.Forms.TextBox();
			this.dw = new System.Windows.Forms.TextBox();
			this.gg = new System.Windows.Forms.TextBox();
			this.proName = new System.Windows.Forms.ComboBox();
			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.button1 = new System.Windows.Forms.Button();
			this.button2 = new System.Windows.Forms.Button();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.emmo);
			this.groupBox1.Controls.Add(this.bz);
			this.groupBox1.Controls.Add(this.pb);
			this.groupBox1.Controls.Add(this.zzd);
			this.groupBox1.Controls.Add(this.zj);
			this.groupBox1.Controls.Add(this.sl);
			this.groupBox1.Controls.Add(this.dj);
			this.groupBox1.Controls.Add(this.dw);
			this.groupBox1.Controls.Add(this.gg);
			this.groupBox1.Controls.Add(this.proName);
			this.groupBox1.Controls.Add(this.label10);
			this.groupBox1.Controls.Add(this.label9);
			this.groupBox1.Controls.Add(this.label8);
			this.groupBox1.Controls.Add(this.label7);
			this.groupBox1.Controls.Add(this.label6);
			this.groupBox1.Controls.Add(this.label5);
			this.groupBox1.Controls.Add(this.label4);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Location = new System.Drawing.Point(8, 8);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(344, 224);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			// 
			// emmo
			// 
			this.emmo.Location = new System.Drawing.Point(64, 192);
			this.emmo.Name = "emmo";
			this.emmo.Size = new System.Drawing.Size(264, 21);
			this.emmo.TabIndex = 39;
			this.emmo.Text = "";
			// 
			// bz
			// 
			this.bz.Location = new System.Drawing.Point(64, 168);
			this.bz.Name = "bz";
			this.bz.Size = new System.Drawing.Size(264, 21);
			this.bz.TabIndex = 38;
			this.bz.Text = "";
			// 
			// pb
			// 
			this.pb.Location = new System.Drawing.Point(64, 144);
			this.pb.Name = "pb";
			this.pb.Size = new System.Drawing.Size(264, 21);
			this.pb.TabIndex = 37;
			this.pb.Text = "";
			// 
			// zzd
			// 
			this.zzd.Location = new System.Drawing.Point(64, 120);
			this.zzd.Name = "zzd";
			this.zzd.Size = new System.Drawing.Size(264, 21);
			this.zzd.TabIndex = 36;
			this.zzd.Text = "";
			// 
			// zj
			// 
			this.zj.Location = new System.Drawing.Point(64, 88);
			this.zj.Name = "zj";
			this.zj.TabIndex = 35;
			this.zj.Text = "";
			// 
			// sl
			// 
			this.sl.Location = new System.Drawing.Point(224, 64);
			this.sl.Name = "sl";
			this.sl.Size = new System.Drawing.Size(104, 21);
			this.sl.TabIndex = 34;
			this.sl.Text = "";
			// 
			// dj
			// 
			this.dj.Location = new System.Drawing.Point(64, 64);
			this.dj.Name = "dj";
			this.dj.TabIndex = 33;
			this.dj.Text = "";
			// 
			// dw
			// 
			this.dw.Location = new System.Drawing.Point(224, 40);
			this.dw.Name = "dw";
			this.dw.Size = new System.Drawing.Size(104, 21);
			this.dw.TabIndex = 32;
			this.dw.Text = "";
			// 
			// gg
			// 
			this.gg.Location = new System.Drawing.Point(64, 40);
			this.gg.Name = "gg";
			this.gg.TabIndex = 31;
			this.gg.Text = "";
			// 
			// proName
			// 
			this.proName.Location = new System.Drawing.Point(64, 16);
			this.proName.Name = "proName";
			this.proName.Size = new System.Drawing.Size(264, 20);
			this.proName.TabIndex = 30;
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(8, 200);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(56, 16);
			this.label10.TabIndex = 29;
			this.label10.Text = "备  注";
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(8, 176);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(56, 16);
			this.label9.TabIndex = 28;
			this.label9.Text = "包  装";
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(8, 152);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(56, 16);
			this.label8.TabIndex = 27;
			this.label8.Text = "品  牌";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(8, 128);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(56, 16);
			this.label7.TabIndex = 26;
			this.label7.Text = "制造地";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(8, 96);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(56, 16);
			this.label6.TabIndex = 25;
			this.label6.Text = "总  价";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(168, 72);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(56, 16);
			this.label5.TabIndex = 24;
			this.label5.Text = "数  量";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(8, 72);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(56, 16);
			this.label4.TabIndex = 23;
			this.label4.Text = "单  价";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(168, 48);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(56, 16);
			this.label3.TabIndex = 22;
			this.label3.Text = "单  位";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(8, 48);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(56, 16);
			this.label2.TabIndex = 21;
			this.label2.Text = "规  格";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(56, 16);
			this.label1.TabIndex = 20;
			this.label1.Text = "产品名称";
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(240, 240);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(56, 23);
			this.button1.TabIndex = 1;
			this.button1.Text = "保 存";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(296, 240);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(56, 23);
			this.button2.TabIndex = 2;
			this.button2.Text = "取 消";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// EditListItem
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(362, 279);
			this.Controls.Add(this.button2);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.groupBox1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "EditListItem";
			this.Text = "编辑销售单明细";
			this.groupBox1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// 保存明细内容
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void button1_Click(object sender, System.EventArgs e) {
			//
		}

		/// <summary>
		/// 关闭窗口
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void button2_Click(object sender, System.EventArgs e) {
			this.Close();
		}
	}
}

⌨️ 快捷键说明

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