Browse Source

添加合批验证

master
lilili 1 year ago
parent
commit
007f4ab1ac
  1. 23
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSWareHouseLotInfoService.cs

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

Loading…
Cancel
Save