瀏覽代碼

添加功能

章政 8 年之前
父節點
當前提交
c5c7ea492f

+ 1 - 0
UAS-MES/FunctionCode/Warehouse/Warehouse_FinishedProductOut.Designer.cs

@@ -169,6 +169,7 @@
             this.ConfirmOut.TabIndex = 216;
             this.ConfirmOut.Text = "确认出货";
             this.ConfirmOut.UseVisualStyleBackColor = false;
+            this.ConfirmOut.Click += new System.EventHandler(this.ConfirmOut_Click);
             // 
             // panel1
             // 

+ 7 - 0
UAS-MES/FunctionCode/Warehouse/Warehouse_FinishedProductOut.cs

@@ -96,6 +96,13 @@ namespace UAS_MES.Warehouse
         }
 
         private void ProdDetail_Click(object sender, EventArgs e)
+        {
+            Warehouse_ProdDetail newpd = new Warehouse_ProdDetail();
+            BaseUtil.SetFormCenter(newpd);
+            newpd.ShowDialog();
+        }
+
+        private void ConfirmOut_Click(object sender, EventArgs e)
         {
 
         }

+ 31 - 29
UAS-MES/FunctionCode/Warehouse/Warehouse_NewPiInOut.Designer.cs

@@ -31,13 +31,13 @@
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Warehouse_NewPiInOut));
             this.headBar1 = new UAS_MES.CustomControl.HeadBar();
             this.Confirm = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
-            this.searchTextBox1 = new UAS_MES.CustomControl.TextBoxWithIcon.SearchTextBox();
+            this.cu_code = new UAS_MES.CustomControl.TextBoxWithIcon.SearchTextBox();
             this.pi_titile_label = new System.Windows.Forms.Label();
             this.pi_inoutno_label = new System.Windows.Forms.Label();
             this.pi_inoutno = new System.Windows.Forms.TextBox();
             this.label1 = new System.Windows.Forms.Label();
             this.textBox1 = new System.Windows.Forms.TextBox();
-            this.textBox2 = new System.Windows.Forms.TextBox();
+            this.cu_name = new System.Windows.Forms.TextBox();
             this.SuspendLayout();
             // 
             // headBar1
@@ -67,24 +67,25 @@
             this.Confirm.TabIndex = 1;
             this.Confirm.Text = "确认";
             this.Confirm.UseVisualStyleBackColor = false;
-            // 
-            // searchTextBox1
-            // 
-            this.searchTextBox1.AllPower = null;
-            this.searchTextBox1.Caller = null;
-            this.searchTextBox1.Condition = null;
-            this.searchTextBox1.DBTitle = null;
-            this.searchTextBox1.FormName = null;
-            this.searchTextBox1.Location = new System.Drawing.Point(111, 110);
-            this.searchTextBox1.Name = "searchTextBox1";
-            this.searchTextBox1.Power = null;
-            this.searchTextBox1.ReturnData = null;
-            this.searchTextBox1.SelectField = null;
-            this.searchTextBox1.SetValueField = null;
-            this.searchTextBox1.Size = new System.Drawing.Size(130, 25);
-            this.searchTextBox1.TabIndex = 2;
-            this.searchTextBox1.TableName = null;
-            this.searchTextBox1.TextBoxEnable = false;
+            this.Confirm.Click += new System.EventHandler(this.Confirm_Click);
+            // 
+            // cu_code
+            // 
+            this.cu_code.AllPower = null;
+            this.cu_code.Caller = null;
+            this.cu_code.Condition = null;
+            this.cu_code.DBTitle = null;
+            this.cu_code.FormName = null;
+            this.cu_code.Location = new System.Drawing.Point(111, 110);
+            this.cu_code.Name = "cu_code";
+            this.cu_code.Power = null;
+            this.cu_code.ReturnData = null;
+            this.cu_code.SelectField = null;
+            this.cu_code.SetValueField = null;
+            this.cu_code.Size = new System.Drawing.Size(130, 25);
+            this.cu_code.TabIndex = 2;
+            this.cu_code.TableName = null;
+            this.cu_code.TextBoxEnable = false;
             // 
             // pi_titile_label
             // 
@@ -133,31 +134,32 @@
             this.textBox1.Size = new System.Drawing.Size(266, 25);
             this.textBox1.TabIndex = 225;
             // 
-            // textBox2
+            // cu_name
             // 
-            this.textBox2.Location = new System.Drawing.Point(259, 110);
-            this.textBox2.Name = "textBox2";
-            this.textBox2.Size = new System.Drawing.Size(118, 25);
-            this.textBox2.TabIndex = 226;
+            this.cu_name.Location = new System.Drawing.Point(259, 110);
+            this.cu_name.Name = "cu_name";
+            this.cu_name.Size = new System.Drawing.Size(118, 25);
+            this.cu_name.TabIndex = 226;
             // 
             // Warehouse_NewPiInOut
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(405, 259);
-            this.Controls.Add(this.textBox2);
+            this.Controls.Add(this.cu_name);
             this.Controls.Add(this.textBox1);
             this.Controls.Add(this.label1);
             this.Controls.Add(this.pi_inoutno);
             this.Controls.Add(this.pi_inoutno_label);
             this.Controls.Add(this.pi_titile_label);
-            this.Controls.Add(this.searchTextBox1);
+            this.Controls.Add(this.cu_code);
             this.Controls.Add(this.Confirm);
             this.Controls.Add(this.headBar1);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
             this.Name = "Warehouse_NewPiInOut";
             this.Tag = "ShowDialogWindow";
             this.Text = "Warehouse_NewPiInOut";
+            this.Load += new System.EventHandler(this.Warehouse_NewPiInOut_Load);
             this.ResumeLayout(false);
             this.PerformLayout();
 
@@ -167,12 +169,12 @@
 
         private CustomControl.HeadBar headBar1;
         private CustomControl.ButtonUtil.NormalButton Confirm;
-        private CustomControl.TextBoxWithIcon.SearchTextBox searchTextBox1;
+        private CustomControl.TextBoxWithIcon.SearchTextBox cu_code;
         private System.Windows.Forms.Label pi_titile_label;
         private System.Windows.Forms.Label pi_inoutno_label;
         private System.Windows.Forms.TextBox pi_inoutno;
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.TextBox textBox1;
-        private System.Windows.Forms.TextBox textBox2;
+        private System.Windows.Forms.TextBox cu_name;
     }
 }

+ 25 - 1
UAS-MES/FunctionCode/Warehouse/Warehouse_NewPiInOut.cs

@@ -6,14 +6,38 @@ using System.Drawing;
 using System.Linq;
 using System.Text;
 using System.Windows.Forms;
+using UAS_MES.PublicMethod;
 
 namespace UAS_MES.Warehouse
 {
     public partial class Warehouse_NewPiInOut : Form
     {
+        DataTable dbfind;
+
         public Warehouse_NewPiInOut()
         {
             InitializeComponent();
         }
+
+        private void Confirm_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void Warehouse_NewPiInOut_Load(object sender, EventArgs e)
+        {
+            cu_code.TableName = "customer";
+            cu_code.DBTitle = "出货单查询";
+            cu_code.SelectField = "cu_code # 编号,cu_name # 名称";
+            cu_code.SetValueField = new string[] { "cu_code", "cu_name" };
+            cu_code.FormName = Name;
+            cu_code.DbChange += Cu_code_DbChange;
+        }
+
+        private void Cu_code_DbChange(object sender, EventArgs e)
+        {
+            dbfind = cu_code.ReturnData;
+            BaseUtil.SetFormValue(this.Controls, dbfind);
+        }
     }
-}
+}