From 007f4ab1ac5adf0f4a563f0d0eb5536d83b484d3 Mon Sep 17 00:00:00 2001 From: lilili Date: Tue, 4 Jul 2023 17:15:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=88=E6=89=B9=E9=AA=8C?= =?UTF-8?q?=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ICSWareHouseLotInfoService.cs | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseLotInfoService.cs b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseLotInfoService.cs index 8b28457..ca37ddd 100644 --- a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseLotInfoService.cs +++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseLotInfoService.cs @@ -1889,6 +1889,29 @@ namespace ICSSoft.DataProject RAISERROR('" + language.GetNameByCode("WMSAPIInfo170") + @"',16,1); RETURN END + + IF NOT EXISTS (SELECT a.LotNo FROM ICSInventoryLot a,ICSInventoryLot b WHERE + a.LotNo= '{0}' AND b.LotNo= '{3}' + AND a.WorkPoint= '{1}' AND a.ExtensionID= b.ExtensionID ) + BEGIN + RAISERROR ('" + language.GetNameByCode("WMSAPIInfo467") + @"',16,1 ); + RETURN + END + IF NOT EXISTS (SELECT a.LotNo FROM ICSWareHouseLotInfo a,ICSWareHouseLotInfo b WHERE + a.LotNo= '{0}' AND b.LotNo= '{3}' + AND a.WorkPoint= '{1}' AND a.WarehouseCode= b.WarehouseCode ) + BEGIN + RAISERROR ( '" + language.GetNameByCode("WMSAPIInfo468") + @"', 16, 1 ); + RETURN + END + IF NOT EXISTS (SELECT a.LotNo FROM ICSWareHouseLotInfo a,ICSWareHouseLotInfo b WHERE + a.LotNo= '{0}' AND b.LotNo= '{3}' + AND a.WorkPoint= '{1}' AND a.LocationCode= b.LocationCode ) + BEGIN + RAISERROR ( '" + language.GetNameByCode("WMSAPIInfo469") + @"', 16, 1 ); + RETURN + END + IF NOT EXISTS(SELECT a.LotNo FROM ICSWareHouseLotInfo a WHERE a.LotNo='{0}' AND a.WorkPoint='{1}') BEGIN RAISERROR('" + language.GetNameByCode("WMSAPIInfo171") + @"',16,1);