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