Browse Source

修改上料打印代码

章政 8 years ago
parent
commit
b5cf21c799
1 changed files with 4 additions and 1 deletions
  1. 4 1
      UAS-MES/FunctionCode/Make/Make_ColorBoxLoadPrint.cs

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

@@ -175,7 +175,10 @@ namespace UAS_MES.Make
                                     return;
                                 }
                             }
-                            else OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red);
+                            else {
+                                OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red);
+                                code.Clear();
+                            }
                         }
                     }
                 }