|
@ -3430,7 +3430,7 @@ namespace ICSSoft.DataProject |
|
|
foreach (var itemInfo in JsonData.DATA.EXP_ORDINI_RIGHE_STO) |
|
|
foreach (var itemInfo in JsonData.DATA.EXP_ORDINI_RIGHE_STO) |
|
|
{ |
|
|
{ |
|
|
//更新源头单据数量
|
|
|
//更新源头单据数量
|
|
|
ICSPurchaseService.DeliveryNoticeInForHG(JsonData.DATA.EXP_ORDINI[0].ORD_ORDINE, itemInfo.STO_HOSTINF, JsonData.DATA.EXP_ORDINI[0].ORD_CLIENTE, cmd, language,itemInfo.STO_EFF_QTA); |
|
|
|
|
|
|
|
|
ICSPurchaseService.DeliveryNoticeInForHG(JsonData.DATA.EXP_ORDINI[0].ORD_ORDINE, itemInfo.STO_HOSTINF, JsonData.DATA.EXP_ORDINI[0].ORD_CLIENTE, cmd, language, itemInfo.STO_EFF_QTA); |
|
|
BusinessCode = TransTypeEnum.DeliveryNotice.GetDescription<DBValue>(); |
|
|
BusinessCode = TransTypeEnum.DeliveryNotice.GetDescription<DBValue>(); |
|
|
//生成条码的同时入库
|
|
|
//生成条码的同时入库
|
|
|
ICSWareHouseLotInfoService.WareHouseLotInfoUpForHG(Identification, JsonData.DATA.EXP_ORDINI[0].ORD_ORDINE, itemInfo.STO_HOSTINF |
|
|
ICSWareHouseLotInfoService.WareHouseLotInfoUpForHG(Identification, JsonData.DATA.EXP_ORDINI[0].ORD_ORDINE, itemInfo.STO_HOSTINF |
|
@ -5891,7 +5891,7 @@ namespace ICSSoft.DataProject |
|
|
RAISERROR('{3}',16,1); |
|
|
RAISERROR('{3}',16,1); |
|
|
RETURN |
|
|
RETURN |
|
|
END";
|
|
|
END";
|
|
|
sql = string.Format(sql, item.WarehouseCode, item.WorkPoint, item.LocationCode, errorMessage,item.LotNo); |
|
|
|
|
|
|
|
|
sql = string.Format(sql, item.WarehouseCode, item.WorkPoint, item.LocationCode, errorMessage, item.LotNo); |
|
|
DBHelper.ExecuteNonQuery(sql, cmd); |
|
|
DBHelper.ExecuteNonQuery(sql, cmd); |
|
|
|
|
|
|
|
|
//更新条码信息
|
|
|
//更新条码信息
|
|
@ -7113,10 +7113,10 @@ WHERE WorkPoint='{0}' AND Quantity>ISNULL(TransferQuantity, 0) order by Transfer |
|
|
//获取第一个数据的料架编码
|
|
|
//获取第一个数据的料架编码
|
|
|
string fistContainerCode = JsonData.FirstOrDefault().ContainerCode; |
|
|
string fistContainerCode = JsonData.FirstOrDefault().ContainerCode; |
|
|
//获取第一个条码数据
|
|
|
//获取第一个条码数据
|
|
|
string fistLotNO= JsonData.FirstOrDefault().LotNo; |
|
|
|
|
|
|
|
|
string fistLotNO = JsonData.FirstOrDefault().LotNo; |
|
|
//查询第一个条码的仓库和库位信息
|
|
|
//查询第一个条码的仓库和库位信息
|
|
|
var tableData=ICSWareHouseLotInfoService.GetWHCodeArea(fistLotNO, cmd); |
|
|
|
|
|
if (tableData.Rows.Count==0) |
|
|
|
|
|
|
|
|
var tableData = ICSWareHouseLotInfoService.GetWHCodeArea(fistLotNO, cmd); |
|
|
|
|
|
if (tableData.Rows.Count == 0) |
|
|
{ |
|
|
{ |
|
|
throw new Exception(string.Format(language.GetNameByCode("WMSAPIInfo038"), fistLotNO)); |
|
|
throw new Exception(string.Format(language.GetNameByCode("WMSAPIInfo038"), fistLotNO)); |
|
|
} |
|
|
} |
|
@ -7148,7 +7148,7 @@ WHERE WorkPoint='{0}' AND Quantity>ISNULL(TransferQuantity, 0) order by Transfer |
|
|
{ |
|
|
{ |
|
|
msg = string.Format(language.GetNameByCode("WMSAPIInfo206"));//"位置编码不能为空!"
|
|
|
msg = string.Format(language.GetNameByCode("WMSAPIInfo206"));//"位置编码不能为空!"
|
|
|
} |
|
|
} |
|
|
if (item.ContainerCode!=fistContainerCode) |
|
|
|
|
|
|
|
|
if (item.ContainerCode != fistContainerCode) |
|
|
{ |
|
|
{ |
|
|
msg = string.Format(language.GetNameByCode("WMSAPIInfo474"));//"所传的料架编码不一致,调用失败!"
|
|
|
msg = string.Format(language.GetNameByCode("WMSAPIInfo474"));//"所传的料架编码不一致,调用失败!"
|
|
|
} |
|
|
} |
|
@ -7167,7 +7167,7 @@ WHERE WorkPoint='{0}' AND Quantity>ISNULL(TransferQuantity, 0) order by Transfer |
|
|
{ |
|
|
{ |
|
|
throw new Exception(string.Format(language.GetNameByCode("WMSAPIInfo038"), item.LotNo)); |
|
|
throw new Exception(string.Format(language.GetNameByCode("WMSAPIInfo038"), item.LotNo)); |
|
|
} |
|
|
} |
|
|
else if (tableModel.Rows[0]["WHCode"].ToString()!= tableData.Rows[0]["WHCode"].ToString()) |
|
|
|
|
|
|
|
|
else if (tableModel.Rows[0]["WHCode"].ToString() != tableData.Rows[0]["WHCode"].ToString()) |
|
|
{ |
|
|
{ |
|
|
throw new Exception(string.Format(language.GetNameByCode("WMSAPIInfo475"), item.LotNo)); |
|
|
throw new Exception(string.Format(language.GetNameByCode("WMSAPIInfo475"), item.LotNo)); |
|
|
} |
|
|
} |
|
@ -7250,7 +7250,7 @@ WHERE WorkPoint='{0}' AND Quantity>ISNULL(TransferQuantity, 0) order by Transfer |
|
|
{ |
|
|
{ |
|
|
msg = string.Format(language.GetNameByCode("WMSAPIInfo197"));//"料架不能为空!"
|
|
|
msg = string.Format(language.GetNameByCode("WMSAPIInfo197"));//"料架不能为空!"
|
|
|
} |
|
|
} |
|
|
if (item.TransCode.Count<=0) |
|
|
|
|
|
|
|
|
if (item.TransCode.Count <= 0) |
|
|
{ |
|
|
{ |
|
|
msg = language.GetNameByCode("WMSAPIInfo001");//单据为空
|
|
|
msg = language.GetNameByCode("WMSAPIInfo001");//单据为空
|
|
|
} |
|
|
} |
|
@ -7614,7 +7614,7 @@ WHERE WorkPoint='{0}' AND Quantity>ISNULL(TransferQuantity, 0) order by Transfer |
|
|
} |
|
|
} |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
#region 叉车搬运结束后回调(入库)
|
|
|
|
|
|
|
|
|
#region 叉车搬运结束后回调(入库:PTWY上架 出库:PICK出库)
|
|
|
public static ForkLiftResult ForkLiftTaskEndIn(ForkLiftCallBackModel JsonData, string Jsonstr) |
|
|
public static ForkLiftResult ForkLiftTaskEndIn(ForkLiftCallBackModel JsonData, string Jsonstr) |
|
|
{ |
|
|
{ |
|
|
var language = LanguageHelper.GetName("WMSAPIInfo"); |
|
|
var language = LanguageHelper.GetName("WMSAPIInfo"); |
|
@ -7653,7 +7653,7 @@ WHERE WorkPoint='{0}' AND Quantity>ISNULL(TransferQuantity, 0) order by Transfer |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
ICSWareHouseLotInfoService.ActionForkLiftTaskEnd(JsonData.TaskID, cmd, language); |
|
|
|
|
|
|
|
|
ICSWareHouseLotInfoService.ActionForkLiftTaskEnd(JsonData.TaskID, JsonData.TaskType, JsonData.DestBin, cmd, language); |
|
|
} |
|
|
} |
|
|
res.Ret = 1; |
|
|
res.Ret = 1; |
|
|
res.RetMsg = "success";// "接口调用成功!";
|
|
|
res.RetMsg = "success";// "接口调用成功!";
|
|
@ -8424,7 +8424,7 @@ WHERE WorkPoint='{0}' AND Quantity>ISNULL(TransferQuantity, 0) order by Transfer |
|
|
if (!string.IsNullOrEmpty(JsonData.INVCode)) |
|
|
if (!string.IsNullOrEmpty(JsonData.INVCode)) |
|
|
{ |
|
|
{ |
|
|
string strInvCode = ""; |
|
|
string strInvCode = ""; |
|
|
string[] InvCodeList= JsonData.INVCode.Split(','); |
|
|
|
|
|
|
|
|
string[] InvCodeList = JsonData.INVCode.Split(','); |
|
|
foreach (string INVCode in InvCodeList) |
|
|
foreach (string INVCode in InvCodeList) |
|
|
{ |
|
|
{ |
|
|
if (strInvCode == "") |
|
|
if (strInvCode == "") |
|
|