Browse Source

调整移库的验证逻辑,添加拣料验证

master
lilili 1 year ago
parent
commit
ce545ced9c
  1. 8
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs

8
ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs

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

Loading…
Cancel
Save