From ce545ced9c677da953b08075bebc566fb146c812 Mon Sep 17 00:00:00 2001 From: lilili Date: Mon, 24 Jul 2023 12:03:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=A7=BB=E5=BA=93=E7=9A=84?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E9=80=BB=E8=BE=91=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=8B=A3=E6=96=99=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ICSSoft.DataProject/ICSSubmitService.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs index c3a924f..c84d31d 100644 --- a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs +++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs @@ -5865,6 +5865,7 @@ namespace ICSSoft.DataProject { throw new Exception(language.GetNameByCode("WMSAPIInfo005"));//"条码不能为空!" } + string errorMessage = string.Format(language.GetNameByCode("WMSAPIInfo470"), item.LotNo); //验证仓库库位信息 sql = @"IF NOT EXISTS(SELECT a.ID FROM ICSWareHouse a WHERE a.WarehouseCode='{0}' AND a.WorkPoint='{1}') @@ -5884,8 +5885,13 @@ namespace ICSSoft.DataProject BEGIN RAISERROR('" + language.GetNameByCode("WMSAPIInfo071") + @"',16,1); RETURN + END + IF NOT EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.WarehouseCode='{0}' AND a.WorkPoint='{1}' AND a.LockQuantity=0 AND a.LotNO='{4}') + BEGIN + RAISERROR('{3}',16,1); + RETURN END"; - sql = string.Format(sql, item.WarehouseCode, item.WorkPoint, item.LocationCode); + sql = string.Format(sql, item.WarehouseCode, item.WorkPoint, item.LocationCode, errorMessage,item.LotNo); DBHelper.ExecuteNonQuery(sql, cmd); //更新条码信息