浏览代码

是否归属工单判断

Hcsy 8 年之前
父节点
当前提交
28ee994126
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      UAS-MES/FunctionCode/Make/Make_ColorBoxLabelPrint.cs

+ 9 - 0
UAS-MES/FunctionCode/Make/Make_ColorBoxLabelPrint.cs

@@ -168,6 +168,15 @@ namespace UAS_MES.Make
                 string oMakeCode;
                 if (LogicHandler.CheckStepAttribute(Tag.ToString(), User.UserSourceCode, out ErrorMessage2))
                 {
+                    //判断界面工单是否为空时的序列号是否自动归属工单
+                    if (!LogicHandler.GetMakeInfo(sncode.Text, out oMakeCode, out ErrorMessage2))
+                    {
+                        if (ma_code.Text == "")
+                        {
+                            OperateResult.AppendText(">>" + ErrorMessage2 + "\n", Color.Red, sncode);
+                            return;
+                        }
+                    }
                     // 获取工单归属工单下一工序是否正确
                     if (LogicHandler.CheckStepSNAndMacode(ma_code.Text, User.UserSourceCode, sncode.Text, User.UserCode, out oMakeCode, out oMsID, out ErrorMessage2))
                     {