Browse Source

调用货柜接口传输检验合格单增加日志

master
陆晔 2 years ago
parent
commit
ea2ff46d87
  1. 3
      ICSSoft.FromERP/ICSSoft.FromERP/ICSSAPDocGet.cs
  2. 14
      WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs

3
ICSSoft.FromERP/ICSSoft.FromERP/ICSSAPDocGet.cs

@ -602,6 +602,9 @@ namespace ICSSoft.FromERP
}
#endregion
#region 委外退料单同步(单据类型:06)
#endregion
#region 生产领料单同步(单据类型:01 03 17)
HeadInfo = HeadInfoList.Where(a => a.LEIXING == "01" || a.LEIXING == "03" || a.LEIXING == "17");
foreach (SAPGetDocInfoVPN.ZWMS_SK_HEAD Info in HeadInfo)

14
WMS-BS/NFine.Application/WMS/WMSCreateItemLotApp.cs

@ -1469,9 +1469,23 @@ insert into ICSInventoryLot
chkdt = SqlHelper.GetDataTableBySql(chksql);
}
#endregion
#region 货柜接口调用前日志
object logID = Guid.NewGuid();
string logsql = @"insert into ICSWMS_HGLog
values
('{0}',GETDATE(),'{1}','{2}','{3}','{4}','{5}')";
logsql = string.Format(logsql, logID, InspectJosn, "", WorkPoint, MUSER, MUSERNAME);
SqlHelper.CmdExecuteNonQueryLi(logsql);
#endregion
if (chkdt.Rows.Count > 0 && Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["UploadERP"]))
{
result = HTTPHelper.RestFulGet(InspectJosn, postUrlStr);
#region 货柜接口调用后日志
logsql = @"update ICSWMS_HGLog set ReturnResult='{0}'
where ID='{1}'";
logsql = string.Format(logsql, result, logID);
SqlHelper.CmdExecuteNonQueryLi(logsql);
#endregion
if (!result.Contains("successo"))
{
ICSHGResult hgresult = JsonConvert.DeserializeObject<ICSHGResult>(result.TrimStart('[').TrimEnd(']'));

Loading…
Cancel
Save