From 54fe87af2149e0a5e2ba38ca9164e5504cef871d Mon Sep 17 00:00:00 2001 From: yangtm Date: Wed, 24 Apr 2024 17:05:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=A3=E6=96=99=E5=A2=9E=E5=8A=A0=E5=8D=A1?= =?UTF-8?q?=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WMS-BS/NFine.Application/WMS/PickMaterialApp.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/WMS-BS/NFine.Application/WMS/PickMaterialApp.cs b/WMS-BS/NFine.Application/WMS/PickMaterialApp.cs index 5285f42..b326fc6 100644 --- a/WMS-BS/NFine.Application/WMS/PickMaterialApp.cs +++ b/WMS-BS/NFine.Application/WMS/PickMaterialApp.cs @@ -2542,6 +2542,16 @@ a.Sequence, throw new Exception("物料:" + chkdr["InvCode"].ToString() + "实际拣料数量小于单据需求数量,单据必须整单拣料,请先核对库存。"); } } + + string sql1 = @" SELECT * from ICSWareHouseLotInfoLog WHERE TransType='15' AND TransCode in ({0}) AND WorkPoint='{1}' "; + sql1 = string.Format(sql1, ID, WorkPoint); + var chkdata1 = Repository().FindDataSetBySql(sql1); + DataTable chktable1 = chkdata1.Tables[0]; + if (chktable1 != null && chktable1.Rows.Count > 0) + { + throw new Exception("工单:" + ID + "已拣料完成,请确认。"); + } + #endregion if (table.Rows.Count != 0) {