From b0fe0853913a0a1c0383d041923365b47479a0e8 Mon Sep 17 00:00:00 2001 From: Juj <1005539536@qq.com> Date: Mon, 17 Jul 2023 11:39:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95=E7=94=9F=E6=88=90=E6=9D=A1?= =?UTF-8?q?=E7=A0=81=20=20=E8=B0=83=E7=94=A8=E6=8E=A5=E5=8F=A3=E5=AD=90?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=BA=E7=A9=BA=E6=97=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8D=A1=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs b/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs index bacfa98..0484985 100644 --- a/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs +++ b/WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs @@ -2582,7 +2582,7 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu DataTable dtLotBC = SqlCommandHelper.SQlReturnData(sqlLotBC, cmd); if (dtLotBC.Rows.Count<=0) { - throw new Exception("该工单行,暂无可上传批次!"); + throw new Exception("该工单,暂无可上传批次!"); } // DataTable dtLotBC = Repository().FindTableBySql(sqlLotBC.ToString()); var BCNum = dtLotBC.Rows.Count; @@ -2614,7 +2614,11 @@ CAST( (a.Quantity-ISNULL(c.LOTQTY,0)) as DECIMAL(18,{0})) as thisCreateQty,isnu where a.MOCode='{0}' and a.Sequence='{1}' and a.WorkPoint='{2}'"; sqlSubject = string.Format(sqlSubject, Code, Sequence, WorkPoint); DataTable dtSubject = SqlCommandHelper.SQlReturnData(sqlSubject, cmd); - // DataTable dtSubject = Repository().FindTableBySql(sqlSubject.ToString()); + if (dtSubject.Rows.Count <= 0) + { + throw new Exception("该工单下暂无可上传的子行!"); + } + // DataTable dtSubject = Repository().FindTableBySql(sqlSubject.ToString()); var Identification = Guid.NewGuid().ToString(); foreach (DataRow item in dtSubject.Rows) {