Browse Source

添加提示错误后数据清除

章政 8 years ago
parent
commit
f86b20eb85
1 changed files with 3 additions and 3 deletions
  1. 3 3
      UAS-MES/FunctionCode/Make/Make_ColorBoxLabelPrint.cs

+ 3 - 3
UAS-MES/FunctionCode/Make/Make_ColorBoxLabelPrint.cs

@@ -211,7 +211,7 @@ namespace UAS_MES.Make
                         }
                         string ErrorMessage = "";
                         string result = "";
-                        if (int.Parse(mcd_remainqty.Text) <= 0 &&dt.Rows[0]["ma_unlimitin"].ToString()=="0")
+                        if (int.Parse(mcd_remainqty.Text) <= 0 && dt.Rows[0]["ma_unlimitin"].ToString() == "0")
                         {
                             macode = ma_code.Text;
                             ErrorMessage = "工单" + macode + "打印结束\n>请输入SN";
@@ -246,7 +246,7 @@ namespace UAS_MES.Make
                                     BaseUtil.SetFormValue(Controls, dt);
                                     sncode.Text = "";
                                     ms_id = null;
-                                    sncode.Focus(); 
+                                    sncode.Focus();
                                 }
                                 else
                                 {
@@ -257,7 +257,7 @@ namespace UAS_MES.Make
                             }
                             else
                             {
-                                OperateResult.AppendText(">>产品编号:" + pr_code.Text + "未维护彩盒标签\n", Color.Red);
+                                OperateResult.AppendText(">>产品编号:" + pr_code.Text + "未维护彩盒标签\n", Color.Red, sncode);
                                 return;
                             }
                             if (CheckTSN.Checked == true)