Browse Source

栈板采集界面增加栈板类型判断

Hcsy 7 years ago
parent
commit
a58d1f1af5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      UAS-MES/FunctionCode/Make/Make_PalletCollection.cs

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

@@ -88,6 +88,10 @@ namespace UAS_MES.Make
         {
             if (e.KeyCode == Keys.Enter)
             {
+                string pa_type = dh.getFieldDataByCondition("package", "pa_type", "pa_outboxcode = '" + pa_outboxcode.Text + "'").ToString();
+                if(pa_type != "3")
+                    OperateResult.AppendText(">>箱号"+ pa_outboxcode.Text + "不是栈板,不可进行操作\n", Color.Red);
+                return;
                 LoadGridData();
                 sql.Clear();
                 sql.Append("select pa_makecode,pa_id,pa_status,nvl(pa_standardqty,PR_PALLETQTY)pa_standardqty,pa_prodcode,pa_packageqty,pa_totalqty,pa_salecode,pa_currentqty,pr_code pa_prodcode,pa_outboxcode,pa_totalqty,pa_custcode ");