Hcsy 8 жил өмнө
parent
commit
aaa2444771

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

@@ -130,6 +130,9 @@ namespace UAS_MES.Make
                             return;
                         }
                     }
+                    else {
+                        OperateResult.AppendText("<<产品" + ma_prodcode.Text + "未维护网标关联信息\n", Color.Red,sncode);
+                    }
                     #endregion
                     OperateResult.AppendText("<<" + sncode.Text + "\n", Color.Black);
                     string ErrorMessage = "";
@@ -216,7 +219,7 @@ namespace UAS_MES.Make
         private bool checkLengthOrPre(int psr_length, string psr_prefix, string TSNorSN)
         {
             //则判断输入转换前的序列号长度是否合法,不合法则提示
-            if (sncode.Text.Trim().Length != psr_length)
+            if (sncode.Text.Trim().Length != psr_length && psr_length != 0)
             {
                 //序列号校验错误,长度错误
                 OperateResult.AppendText("<<" + TSNorSN + ":" + sncode.Text + "校验错误,长度错误\n", Color.Red, sncode);