Browse Source

验证大箱途程

章政 8 years ago
parent
commit
f4ec0ef496
1 changed files with 5 additions and 0 deletions
  1. 5 0
      UAS-MES/FunctionCode/Make/Make_PalletCollection.cs

+ 5 - 0
UAS-MES/FunctionCode/Make/Make_PalletCollection.cs

@@ -117,6 +117,11 @@ namespace UAS_MES.Make
                         OperateResult.AppendText(">>箱号不能为空\n", Color.Red);
                         return;
                     }
+                    if (dh.getFieldDataByCondition("package", "pa_nextstep", "pa_outboxcode='"+outboxcode.Text+"'").ToString() != User.CurrentStepCode)
+                    {
+                        OperateResult.AppendText(">>箱号" + outboxcode.Text + "的下一工序不是当前岗位资源对应工序\n", Color.Red, outboxcode);
+                        return;
+                    }
                     if (pa_standardqty.Text == pa_currentqty.Text)
                     {
                         Packing_Click(new object(), new EventArgs());