callm 1 неделя назад
Родитель
Сommit
9cc7d58dc6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      UAS_MES_XMW/FunctionCode/Make/Make_BoxLotBind.cs

+ 1 - 1
UAS_MES_XMW/FunctionCode/Make/Make_BoxLotBind.cs

@@ -64,7 +64,7 @@ namespace UAS_MES_NEW.Make
                     OperateResult.AppendText(">>该岗位资源对应的工序不是当前工单途程中的第一道工序,请切换资源编号\n", Color.Red);
                     return;
                 }
-                DataTable dt1 = (DataTable)dh.ExecuteSql("select mm_code from makematerial where mm_code='" + ma_code.Text + "' and mm_prodcode=(select BI_PRODUCTSPECNAME from boxinfo_package_view where BI_BOXNAME='" + boxcode.Text + "')", "select");
+                DataTable dt1 = (DataTable)dh.ExecuteSql("select mm_code from makematerial where mm_code='" + ma_code.Text + "' and mm_prodcode in (select BI_PRODUCTSPECNAME from boxinfo_package_view where BI_BOXNAME='" + boxcode.Text + "')", "select");
                 if (dt1.Rows.Count == 0)
                 {
                     OperateResult.AppendText(">>箱号" + boxcode.Text + "不在用工单" + ma_code.Text + "用料清单中,不允许采集\n", Color.Red, boxcode);