Browse Source

Merge branch 'master' of ssh://10.10.101.21/source/mes-client

章政 8 years ago
parent
commit
0d8dd264ad

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_BigBoxCollection.Designer.cs

@@ -583,7 +583,7 @@
             this.SizeChanged += new System.EventHandler(this.栈板称重_SizeChanged);
             this.SizeChanged += new System.EventHandler(this.栈板称重_SizeChanged);
             ((System.ComponentModel.ISupportInitialize)(this.PrintNum)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.PrintNum)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.PackageInf)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.PackageInf)).EndInit();
-            this.ResumeLayout(false);
+            this.ResumeLayout(true);
             this.PerformLayout();
             this.PerformLayout();
 
 
         }
         }

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_CheckNoRelpace.Designer.cs

@@ -192,7 +192,7 @@
             this.Tag = "Make!CheckNoRelpace";
             this.Tag = "Make!CheckNoRelpace";
             this.Text = "序列替换";
             this.Text = "序列替换";
             this.Load += new System.EventHandler(this.序列替换_Load);
             this.Load += new System.EventHandler(this.序列替换_Load);
-            this.ResumeLayout(false);
+            this.ResumeLayout(true);
             this.PerformLayout();
             this.PerformLayout();
 
 
         }
         }

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_CollectBTMAC.Designer.cs

@@ -234,7 +234,7 @@
             this.Activated += new System.EventHandler(this.Make_CollectBTMAC_Activated);
             this.Activated += new System.EventHandler(this.Make_CollectBTMAC_Activated);
             this.Load += new System.EventHandler(this.Make_CollectBTMAC_Load);
             this.Load += new System.EventHandler(this.Make_CollectBTMAC_Load);
             this.SizeChanged += new System.EventHandler(this.Make_CollectBTMAC_SizeChanged);
             this.SizeChanged += new System.EventHandler(this.Make_CollectBTMAC_SizeChanged);
-            this.ResumeLayout(false);
+            this.ResumeLayout(true);
             this.PerformLayout();
             this.PerformLayout();
 
 
         }
         }

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_CollectNetCode.Designer.cs

@@ -234,7 +234,7 @@
             this.Activated += new System.EventHandler(this.Make_CollectNetCode_Activated);
             this.Activated += new System.EventHandler(this.Make_CollectNetCode_Activated);
             this.Load += new System.EventHandler(this.Make_CollectNetCode_Load);
             this.Load += new System.EventHandler(this.Make_CollectNetCode_Load);
             this.SizeChanged += new System.EventHandler(this.Make_CollectNetCode_SizeChanged);
             this.SizeChanged += new System.EventHandler(this.Make_CollectNetCode_SizeChanged);
-            this.ResumeLayout(false);
+            this.ResumeLayout(true);
             this.PerformLayout();
             this.PerformLayout();
 
 
         }
         }

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_ColorBoxLoadPrint.Designer.cs

@@ -407,7 +407,7 @@
             this.SizeChanged += new System.EventHandler(this.标签打印_SizeChanged);
             this.SizeChanged += new System.EventHandler(this.标签打印_SizeChanged);
             ((System.ComponentModel.ISupportInitialize)(this.PrintNum)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.PrintNum)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.ClearSn_code)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.ClearSn_code)).EndInit();
-            this.ResumeLayout(false);
+            this.ResumeLayout(true);
             this.PerformLayout();
             this.PerformLayout();
 
 
         }
         }

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_Decompose.Designer.cs

@@ -840,7 +840,7 @@
             this.Load += new System.EventHandler(this.Make_Decompose_Load);
             this.Load += new System.EventHandler(this.Make_Decompose_Load);
             this.SizeChanged += new System.EventHandler(this.Make_Decompose_SizeChanged);
             this.SizeChanged += new System.EventHandler(this.Make_Decompose_SizeChanged);
             ((System.ComponentModel.ISupportInitialize)(this.LabelDataGridView)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.LabelDataGridView)).EndInit();
-            this.ResumeLayout(false);
+            this.ResumeLayout(true);
             this.PerformLayout();
             this.PerformLayout();
 
 
         }
         }

+ 2 - 2
UAS-MES/FunctionCode/Make/Make_FeedingCollection.Designer.cs

@@ -541,10 +541,10 @@
             this.Text = "上料采集";
             this.Text = "上料采集";
             this.Load += new System.EventHandler(this.上料采集_Load);
             this.Load += new System.EventHandler(this.上料采集_Load);
             this.SizeChanged += new System.EventHandler(this.上料采集_SizeChanged);
             this.SizeChanged += new System.EventHandler(this.上料采集_SizeChanged);
-            this.panel2.ResumeLayout(false);
+            this.panel2.ResumeLayout(true);
             this.panel2.PerformLayout();
             this.panel2.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.ClearSn_code)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.ClearSn_code)).EndInit();
-            this.ResumeLayout(false);
+            this.ResumeLayout(true);
             this.PerformLayout();
             this.PerformLayout();
 
 
         }
         }

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_LabelCheck.Designer.cs

@@ -239,7 +239,7 @@
             this.Text = "标签核对";
             this.Text = "标签核对";
             this.Load += new System.EventHandler(this.Make_LabelCheck_Load);
             this.Load += new System.EventHandler(this.Make_LabelCheck_Load);
             this.SizeChanged += new System.EventHandler(this.Make_LabelCheck_SizeChanged);
             this.SizeChanged += new System.EventHandler(this.Make_LabelCheck_SizeChanged);
-            this.ResumeLayout(false);
+            this.ResumeLayout(true);
             this.PerformLayout();
             this.PerformLayout();
 
 
         }
         }

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_MakeCancelDown.Designer.cs

@@ -440,7 +440,7 @@
             this.Load += new System.EventHandler(this.Make_MakeCancelDown_Load);
             this.Load += new System.EventHandler(this.Make_MakeCancelDown_Load);
             this.SizeChanged += new System.EventHandler(this.Make_MakeCancelDown_SizeChanged);
             this.SizeChanged += new System.EventHandler(this.Make_MakeCancelDown_SizeChanged);
             ((System.ComponentModel.ISupportInitialize)(this.LabelDataGridView)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.LabelDataGridView)).EndInit();
-            this.ResumeLayout(false);
+            this.ResumeLayout(true);
             this.PerformLayout();
             this.PerformLayout();
 
 
         }
         }

+ 2 - 2
UAS-MES/FunctionCode/Make/Make_NewBadCode.Designer.cs

@@ -369,9 +369,9 @@
             this.Tag = "ShowDialogWindow";
             this.Tag = "ShowDialogWindow";
             this.Text = "新增不良代码";
             this.Text = "新增不良代码";
             this.Load += new System.EventHandler(this.Make_NewBadCode_Load);
             this.Load += new System.EventHandler(this.Make_NewBadCode_Load);
-            this.groupBoxWithBorder1.ResumeLayout(false);
+            this.groupBoxWithBorder1.ResumeLayout(true);
             this.groupBoxWithBorder1.PerformLayout();
             this.groupBoxWithBorder1.PerformLayout();
-            this.ResumeLayout(false);
+            this.ResumeLayout(true);
             this.PerformLayout();
             this.PerformLayout();
 
 
         }
         }

+ 3 - 0
UAS-MES/FunctionCode/Packing/Packing_CartonTransfer.cs

@@ -325,6 +325,7 @@ namespace UAS_MES.Packing
                 if (new_pa_downstatus != "0")
                 if (new_pa_downstatus != "0")
                 {
                 {
                     OperateResult.AppendText(">>该目标箱号" + pa_outboxcode.Text + "处于下地状态,不允许操作\n", Color.Red, pa_outboxcode);
                     OperateResult.AppendText(">>该目标箱号" + pa_outboxcode.Text + "处于下地状态,不允许操作\n", Color.Red, pa_outboxcode);
+                    BaseUtil.CleanControls(groupBoxWithBorder2.Controls);
                     OperateResult.AppendText(">>请输入目标箱号\n", Color.Black);
                     OperateResult.AppendText(">>请输入目标箱号\n", Color.Black);
                     pa_outboxcode.Focus();
                     pa_outboxcode.Focus();
                     return false;
                     return false;
@@ -333,6 +334,7 @@ namespace UAS_MES.Packing
                 else if (new_pa_currentqty == new_pa_standardqty)
                 else if (new_pa_currentqty == new_pa_standardqty)
                 {
                 {
                     OperateResult.AppendText(">>目标箱号" + pa_outboxcode.Text + "已装满\n", Color.Red, pa_outboxcode);
                     OperateResult.AppendText(">>目标箱号" + pa_outboxcode.Text + "已装满\n", Color.Red, pa_outboxcode);
+                    BaseUtil.CleanControls(groupBoxWithBorder2.Controls);
                     OperateResult.AppendText(">>请输入目标箱号\n", Color.Black);
                     OperateResult.AppendText(">>请输入目标箱号\n", Color.Black);
                     pa_outboxcode.Focus();
                     pa_outboxcode.Focus();
                     return false;
                     return false;
@@ -340,6 +342,7 @@ namespace UAS_MES.Packing
                 else if (new_pa_mothercode != "")
                 else if (new_pa_mothercode != "")
                 {
                 {
                     OperateResult.AppendText(">>目标箱号" + pa_outboxcode.Text + "装入大箱\n", Color.Red, pa_outboxcode);
                     OperateResult.AppendText(">>目标箱号" + pa_outboxcode.Text + "装入大箱\n", Color.Red, pa_outboxcode);
+                    BaseUtil.CleanControls(groupBoxWithBorder2.Controls);
                     OperateResult.AppendText(">>请输入目标箱号\n", Color.Black);
                     OperateResult.AppendText(">>请输入目标箱号\n", Color.Black);
                     pa_outboxcode.Focus();
                     pa_outboxcode.Focus();
                     return false;
                     return false;

+ 4 - 4
UAS-MES/FunctionCode/Warehouse/Warehouse_FinishedProductOut.Designer.cs

@@ -44,6 +44,7 @@
             this.input = new System.Windows.Forms.TextBox();
             this.input = new System.Windows.Forms.TextBox();
             this.pi_id = new System.Windows.Forms.Label();
             this.pi_id = new System.Windows.Forms.Label();
             this.pi_type = new System.Windows.Forms.Label();
             this.pi_type = new System.Windows.Forms.Label();
+            this.bindingSource = new System.Windows.Forms.BindingSource(this.components);
             this.OperateResult = new UAS_MES.CustomControl.RichText.RichTextAutoBottom();
             this.OperateResult = new UAS_MES.CustomControl.RichText.RichTextAutoBottom();
             this.pi_type_check = new UAS_MES.CustomControl.CustomCheckBox.CustomCheckBox();
             this.pi_type_check = new UAS_MES.CustomControl.CustomCheckBox.CustomCheckBox();
             this.Clean = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
             this.Clean = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
@@ -62,10 +63,9 @@
             this.NewProdInOut = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
             this.NewProdInOut = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
             this.ProdDetail = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
             this.ProdDetail = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
             this.pi_inoutno = new UAS_MES.CustomControl.TextBoxWithIcon.SearchTextBox();
             this.pi_inoutno = new UAS_MES.CustomControl.TextBoxWithIcon.SearchTextBox();
-            this.bindingSource = new System.Windows.Forms.BindingSource(this.components);
             this.panel1.SuspendLayout();
             this.panel1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.InOutDetailDGV)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.bindingSource)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.bindingSource)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.InOutDetailDGV)).BeginInit();
             this.SuspendLayout();
             this.SuspendLayout();
             // 
             // 
             // pi_inoutno_label
             // pi_inoutno_label
@@ -456,7 +456,7 @@
             this.pi_inoutno.Size = new System.Drawing.Size(158, 20);
             this.pi_inoutno.Size = new System.Drawing.Size(158, 20);
             this.pi_inoutno.TabIndex = 0;
             this.pi_inoutno.TabIndex = 0;
             this.pi_inoutno.TableName = null;
             this.pi_inoutno.TableName = null;
-            this.pi_inoutno.TextBoxEnable = false;
+            this.pi_inoutno.TextBoxEnable = true;
             // 
             // 
             // Warehouse_FinishedProductOut
             // Warehouse_FinishedProductOut
             // 
             // 
@@ -491,8 +491,8 @@
             this.SizeChanged += new System.EventHandler(this.Warehouse_FinishedProductOut_SizeChanged);
             this.SizeChanged += new System.EventHandler(this.Warehouse_FinishedProductOut_SizeChanged);
             this.panel1.ResumeLayout(true);
             this.panel1.ResumeLayout(true);
             this.panel1.PerformLayout();
             this.panel1.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.InOutDetailDGV)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.bindingSource)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.bindingSource)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.InOutDetailDGV)).EndInit();
             this.ResumeLayout(true);
             this.ResumeLayout(true);
             this.PerformLayout();
             this.PerformLayout();
 
 

+ 12 - 6
UAS-MES/FunctionCode/Warehouse/Warehouse_FinishedProductOut.cs

@@ -240,13 +240,15 @@ namespace UAS_MES.Warehouse
                     {
                     {
                         if (palletBtn.Checked)
                         if (palletBtn.Checked)
                         {
                         {
+                            string pa_makecode = "";
                             sql.Clear();
                             sql.Clear();
-                            sql.Append("select pa_outboxcode,pa_status,pa_iostatus,pa_makecode,nvl(pa_downstatus,0)pa_downstatus,pa_outno from package where pa_outboxcode='" + input.Text + "' and pa_type=3");
+                            sql.Append("select pa_outboxcode,pa_status,nvl(pa_iostatus,0) pa_iostatus,pa_makecode,nvl(pa_downstatus,0)pa_downstatus,pa_outno from package where pa_outboxcode='" + input.Text + "' and pa_type=3");
                             dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
                             dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
                             if (dt.Rows.Count > 0)
                             if (dt.Rows.Count > 0)
                             {
                             {
                                 if (!checkinput(dt, "栈板号"))
                                 if (!checkinput(dt, "栈板号"))
                                     return;
                                     return;
+                                pa_makecode = dt.Rows[0]["pa_makecode"].ToString();
                             }
                             }
                             else
                             else
                             {
                             {
@@ -257,20 +259,22 @@ namespace UAS_MES.Warehouse
                                 return;
                                 return;
                             //更新箱号对应的出货单号
                             //更新箱号对应的出货单号
                             dh.UpdateByCondition("package", "pa_outno = '" + pi_inoutno.Text + "'", "pa_outboxcode = '" + input.Text + "'");
                             dh.UpdateByCondition("package", "pa_outno = '" + pi_inoutno.Text + "'", "pa_outboxcode = '" + input.Text + "'");
-                            LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, dt.Rows[0]["pa_makecode"].ToString(), User.UserLineCode, User.UserSourceCode, "栈板" + input.Text + "出货备货", "栈板" + input.Text + "出货备货成功", "", input.Text);
+                            LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode, User.UserLineCode, User.UserSourceCode, "栈板" + input.Text + "出货备货", "栈板" + input.Text + "出货备货成功", "", input.Text);
                         }
                         }
                         else if (bigboxBtn.Checked)
                         else if (bigboxBtn.Checked)
                         {
                         {
                             string outboxcode = dh.getFieldDataByCondition("makeserial", "ms_outboxcode", "ms_sncode = '" + input.Text + "'").ToString();
                             string outboxcode = dh.getFieldDataByCondition("makeserial", "ms_outboxcode", "ms_sncode = '" + input.Text + "'").ToString();
+                            string pa_makecode = "";
                             if (outboxcode != "")
                             if (outboxcode != "")
                             {
                             {
                                 input.Text = outboxcode;
                                 input.Text = outboxcode;
                             }
                             }
                             sql.Clear();
                             sql.Clear();
-                            sql.Append("select pa_outboxcode,pa_makecode,pa_status,nvl(pa_downstatus,0)pa_downstatus,pa_outno, pa_mothercode from package where pa_outboxcode='" + input.Text + "' and pa_type in(1,2)");
+                            sql.Append("select pa_outboxcode,pa_makecode,pa_status,nvl(pa_iostatus,0) pa_iostatus,nvl(pa_downstatus,0)pa_downstatus,pa_outno, pa_mothercode from package where pa_outboxcode='" + input.Text + "' and pa_type in(1,2)");
                             dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
                             dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
                             if (dt.Rows.Count > 0)
                             if (dt.Rows.Count > 0)
                             {
                             {
+                                pa_makecode = dt.Rows[0]["pa_makecode"].ToString();
                                 if (dt.Rows[0]["pa_mothercode"].ToString() != "")
                                 if (dt.Rows[0]["pa_mothercode"].ToString() != "")
                                 {
                                 {
                                     OperateResult.AppendText("箱号" + input.Text + "已经装大箱或者栈板" + dt.Rows[0]["pa_mothercode"].ToString() + ",不允许单独出货\n", Color.Red, input);
                                     OperateResult.AppendText("箱号" + input.Text + "已经装大箱或者栈板" + dt.Rows[0]["pa_mothercode"].ToString() + ",不允许单独出货\n", Color.Red, input);
@@ -288,7 +292,7 @@ namespace UAS_MES.Warehouse
                                 return;
                                 return;
                             //更新箱号对应的出货单号
                             //更新箱号对应的出货单号
                             dh.UpdateByCondition("package", "pa_outno = '" + pi_inoutno.Text + "'", "pa_outboxcode = '" + input.Text + "'");
                             dh.UpdateByCondition("package", "pa_outno = '" + pi_inoutno.Text + "'", "pa_outboxcode = '" + input.Text + "'");
-                            LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, dt.Rows[0]["pa_makecode"].ToString(), User.UserLineCode, User.UserSourceCode, "箱号" + input.Text + "出货备货", "箱号" + input.Text + "出货备货成功", "", input.Text);
+                            LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode, User.UserLineCode, User.UserSourceCode, "箱号" + input.Text + "出货备货", "箱号" + input.Text + "出货备货成功", "", input.Text);
                         }
                         }
                         else if (serBtn.Checked)
                         else if (serBtn.Checked)
                         {
                         {
@@ -424,6 +428,7 @@ namespace UAS_MES.Warehouse
                             {
                             {
                                 string pa_iostatus = dt.Rows[0]["pa_iostatus"].ToString();
                                 string pa_iostatus = dt.Rows[0]["pa_iostatus"].ToString();
                                 string pa_outno = dt.Rows[0]["pa_outno"].ToString();
                                 string pa_outno = dt.Rows[0]["pa_outno"].ToString();
+                                string pa_makecode = dt.Rows[0]["pa_makecode"].ToString();
                                 if (pa_iostatus != "0" && pa_iostatus != "1")
                                 if (pa_iostatus != "0" && pa_iostatus != "1")
                                 {
                                 {
                                     OperateResult.AppendText("栈板号" + input.Text + "不是备货状态,无法取消备货\n", Color.Red, input);
                                     OperateResult.AppendText("栈板号" + input.Text + "不是备货状态,无法取消备货\n", Color.Red, input);
@@ -442,7 +447,7 @@ namespace UAS_MES.Warehouse
                                 dh.ExecuteSql("delete from prodiomac where pim_inoutno='" + pi_inoutno.Text + "' and pim_outboxcode='" + input.Text + "' and pim_type='PALLET' and pim_inorout='OUT'  AND pim_class='出货'", "delete");
                                 dh.ExecuteSql("delete from prodiomac where pim_inoutno='" + pi_inoutno.Text + "' and pim_outboxcode='" + input.Text + "' and pim_type='PALLET' and pim_inorout='OUT'  AND pim_class='出货'", "delete");
                                 dh.UpdateByCondition("package", "pa_outno=''", "pa_outboxcode='" + input.Text + "'");
                                 dh.UpdateByCondition("package", "pa_outno=''", "pa_outboxcode='" + input.Text + "'");
                                 OperateResult.AppendText("栈板号" + input.Text + "取消备货成功\n", Color.Black, input);
                                 OperateResult.AppendText("栈板号" + input.Text + "取消备货成功\n", Color.Black, input);
-                                LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, dt.Rows[0]["pa_makecode"].ToString(), User.UserLineCode, User.UserSourceCode, "栈板" + input.Text + "取消出货备货", "栈板" + input.Text + "取消出货备货成功", "", input.Text);
+                                LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode, User.UserLineCode, User.UserSourceCode, "栈板" + input.Text + "取消出货备货", "栈板" + input.Text + "取消出货备货成功", "", input.Text);
                             }
                             }
                             else
                             else
                             {
                             {
@@ -467,6 +472,7 @@ namespace UAS_MES.Warehouse
                                 string pa_iostatus = dt.Rows[0]["pa_iostatus"].ToString();
                                 string pa_iostatus = dt.Rows[0]["pa_iostatus"].ToString();
                                 string pa_outno = dt.Rows[0]["pa_outno"].ToString();
                                 string pa_outno = dt.Rows[0]["pa_outno"].ToString();
                                 string pa_mothercode = dt.Rows[0]["pa_mothercode"].ToString();
                                 string pa_mothercode = dt.Rows[0]["pa_mothercode"].ToString();
+                                string pa_makecode = dt.Rows[0]["pa_makecode"].ToString();
                                 if (pa_iostatus != "0" && pa_iostatus != "1")
                                 if (pa_iostatus != "0" && pa_iostatus != "1")
                                 {
                                 {
                                     OperateResult.AppendText("箱号" + input.Text + "不是备货状态,无法取消备货\n", Color.Red, input);
                                     OperateResult.AppendText("箱号" + input.Text + "不是备货状态,无法取消备货\n", Color.Red, input);
@@ -490,7 +496,7 @@ namespace UAS_MES.Warehouse
                                 dh.ExecuteSql("delete from prodiomac where pim_inoutno='" + pi_inoutno.Text + "' and pim_outboxcode='" + input.Text + "' and pim_type='BOX' and pim_inorout='OUT'  AND pim_class='出货'", "delete");
                                 dh.ExecuteSql("delete from prodiomac where pim_inoutno='" + pi_inoutno.Text + "' and pim_outboxcode='" + input.Text + "' and pim_type='BOX' and pim_inorout='OUT'  AND pim_class='出货'", "delete");
                                 dh.UpdateByCondition("package", "pa_outno=''", "pa_outboxcode='" + input.Text + "'");
                                 dh.UpdateByCondition("package", "pa_outno=''", "pa_outboxcode='" + input.Text + "'");
                                 OperateResult.AppendText("箱号" + input.Text + "取消备货成功\n", Color.Black, input);
                                 OperateResult.AppendText("箱号" + input.Text + "取消备货成功\n", Color.Black, input);
-                                LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, dt.Rows[0]["pa_makecode"].ToString(), User.UserLineCode, User.UserSourceCode, "箱号" + input.Text + "取消出货备货", "箱号" + input.Text + "取消出货备货成功", "", input.Text);
+                                LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, pa_makecode, User.UserLineCode, User.UserSourceCode, "箱号" + input.Text + "取消出货备货", "箱号" + input.Text + "取消出货备货成功", "", input.Text);
                             }
                             }
                             else
                             else
                             {
                             {

+ 3 - 18
UAS-MES/FunctionCode/Warehouse/Warehouse_FinishedProductOut.resx

@@ -117,6 +117,9 @@
   <resheader name="writer">
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
   </resheader>
+  <metadata name="bindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <data name="Clean.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
   <data name="Clean.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>
     <value>
@@ -171,21 +174,6 @@
   <metadata name="pr_spec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
   <metadata name="pr_spec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
     <value>True</value>
   </metadata>
   </metadata>
-  <metadata name="pim_outboxcode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="pim_mac.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="pim_prodcode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="pr_detail.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="pr_spec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
   <data name="ConfirmOut.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
   <data name="ConfirmOut.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>
     <value>
         iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
         iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
@@ -300,7 +288,4 @@
         ROJSU3qXjMKwG/vjzEz/skOI3Zqgv7AAAAAASUVORK5CYII=
         ROJSU3qXjMKwG/vjzEz/skOI3Zqgv7AAAAAASUVORK5CYII=
 </value>
 </value>
   </data>
   </data>
-  <metadata name="bindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 17</value>
-  </metadata>
 </root>
 </root>