|
|
@ -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(']')); |
|
|
|