فهرست منبع

Merge branch 'master' of ssh://10.10.100.21/source/mes-client

Hcsy 8 سال پیش
والد
کامیت
f36c6ebc90
1فایلهای تغییر یافته به همراه3 افزوده شده و 9 حذف شده
  1. 3 9
      UAS-MES/FunctionCode/Make/Make_PalletCollection.cs

+ 3 - 9
UAS-MES/FunctionCode/Make/Make_PalletCollection.cs

@@ -143,8 +143,9 @@ namespace UAS_MES.Make
                                 palletcode_KeyDown(sender, e);
                             }
                         }
+                        string unfinpack = dh.getFieldDataByCondition("Line", "nvl(li_allowUnFinPack,0)", "li_code='" + User.UserLineCode + "'").ToString();
                         pa_nextstep = dt.Rows[0]["pa_nextstep"].ToString();
-                        if (pa_nextstep != User.CurrentStepCode && pa_nextstep != "")
+                        if (pa_nextstep != User.CurrentStepCode && pa_nextstep != "" && unfinpack == "0")
                         {
                             OperateResult.AppendText(">>箱号" + outboxcode.Text + "的下一工序不是当前岗位资源对应工序\n", Color.Red, outboxcode);
                             return;
@@ -170,15 +171,8 @@ namespace UAS_MES.Make
                         {
                             //判断线外,必须已完工并且未入库
                             dt = (DataTable)dh.ExecuteSql("select wm_concat(ms_sncode) from mes_package_view  left join makeserial on v_barcode=ms_sncode where  v_outboxcode='" + outboxcode.Text + "' and ms_status<>2", "select");
-                            if (dt.Rows[0][0].ToString() != "")
+                            if (dt.Rows[0][0].ToString() != "" || unfinpack != "0")
                             {
-                                ////判断箱未入库
-                                //dt = (DataTable)dh.ExecuteSql("select count(1) from package where pa_outboxcode='" + outboxcode.Text + "' and nvl(pa_iostatus,0)<>0", "select");
-                                //if (dt.Rows[0][0].ToString() != "0")
-                                //{
-                                //    OperateResult.AppendText(">>箱号" + outboxcode.Text + "已入库,不允许装箱\n", Color.Red);
-                                //    return;
-                                //}
                                 OperateResult.AppendText(">>序列号" + dt.Rows[0][0].ToString() + "尚未完工\n", Color.Red);
                                 return;
                             }