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);