shim 8 年之前
父节点
当前提交
8b00210b66
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      UAS-MES/FunctionCode/Packing/Packing_CartonSplit.cs

+ 13 - 0
UAS-MES/FunctionCode/Packing/Packing_CartonSplit.cs

@@ -168,6 +168,11 @@ namespace UAS_MES.Packing
             //验证mothercode是否为空,有没有装大箱
             if (dh.getFieldDataByCondition("package", "pa_mothercode", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString() != "")
             {
+                if (flag)
+                {
+                    MessageBox.Show("<<卡通箱:" + pa_outboxcode.Text + "已装箱,不允许拆箱\n");
+                    return false;
+                }
                 OperateResult.AppendText("<<卡通箱:" + pa_outboxcode.Text + "已装箱,不允许拆箱\n", Color.Red, sncode);
                 return false;
             }
@@ -241,5 +246,13 @@ namespace UAS_MES.Packing
             sncode.Focus();
             return true;
         }
+
+        private void pa_outboxcode_Leave(object sender, EventArgs e)
+        {
+            if (pa_outboxcode.Text != "")
+            {
+                lKeyDown(true);
+            }
+        }
     }
 }