|
|
@ -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); |
|
|
|
|
|
|
|
//更新条码信息
|
|
|
|