Browse Source

返工修改

callm 5 days ago
parent
commit
5e15f77938
1 changed files with 5 additions and 0 deletions
  1. 5 0
      UAS_MES_ZT/FunctionCode/Make/Make_RepairOk.cs

+ 5 - 0
UAS_MES_ZT/FunctionCode/Make/Make_RepairOk.cs

@@ -605,6 +605,11 @@ namespace UAS_MES_NEW.Make
                     return;
                 }
             }
+            if (dh.getFieldDataByCondition("product", "nvl(pr_isreturn,0)", "pr_code='" + ms_prodcode.Text + "'").ToString() == "-1")
+            {
+                OperatResult.AppendText(">>产品" + ms_prodcode.Text + "不允许回流\n", Color.Red);
+                return;
+            }
             ////查询拆解的物料
             //sql.Clear();
             //sql.Append("select distinct cm_soncode from craftmaterial where cm_sncode in (select '" + firstsn + "' from dual union ");