Browse Source

修改打印计数

章政 8 years ago
parent
commit
180ca340de

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

@@ -280,7 +280,7 @@
             this.pr_code.AutoSize = true;
             this.pr_code.CutLength = null;
             this.pr_code.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.pr_code.Location = new System.Drawing.Point(333, 16);
+            this.pr_code.Location = new System.Drawing.Point(331, 16);
             this.pr_code.MaximumSize = new System.Drawing.Size(150, 0);
             this.pr_code.Name = "pr_code";
             this.pr_code.Size = new System.Drawing.Size(0, 21);
@@ -292,7 +292,7 @@
             this.pr_detail.AutoSize = true;
             this.pr_detail.CutLength = null;
             this.pr_detail.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.pr_detail.Location = new System.Drawing.Point(554, 16);
+            this.pr_detail.Location = new System.Drawing.Point(550, 16);
             this.pr_detail.MaximumSize = new System.Drawing.Size(150, 0);
             this.pr_detail.Name = "pr_detail";
             this.pr_detail.Size = new System.Drawing.Size(0, 21);

+ 10 - 8
UAS-MES/FunctionCode/Make/Make_ColorBoxLoadPrint.cs

@@ -145,6 +145,7 @@ namespace UAS_MES.Make
                                     OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red);
                             }
                         }
+                        else  OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red);
                     }
                     else
                     {
@@ -177,17 +178,18 @@ namespace UAS_MES.Make
                                     OperateResult.AppendText(">>序列号" + ms_sncode.Text + "对应的工单已经采集完成\n", Color.Green);
                                     Print.CodeSoft(lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, code.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
                                     RemainIndex = 0;
-                                    code.Clear();
-                                    LoadCollectNum();
-                                    BaseUtil.CleanDataTableData(ListA);
+                                    if (LogicHandler.UpdateMakeMessage(ms_sncode.Text, ms_makecode.Text, "彩盒上料打印", User.UserSourceCode, User.UserCode, "上料成功", out ErrorMessage))
+                                    {
+                                        mcd_okqty.Text = int.Parse(mcd_okqty.Text) + 1 + "";
+                                        code.Clear();
+                                        LoadCollectNum();
+                                        BaseUtil.CleanDataTableData(ListA);
+                                    }
+                                    else OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red, code);
                                     return;
                                 }
                             }
-                            else
-                            {
-                                OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red);
-                                code.Clear();
-                            }
+                            else OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red, code);
                         }
                     }
                 }