|
|
|
@ -37,6 +37,7 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
{
|
|
|
|
|
public class CsbHandleBusiness
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static readonly Lazy<CsbHandleBusiness> _lazy = new Lazy<CsbHandleBusiness>(() => new CsbHandleBusiness());
|
|
|
|
|
|
|
|
|
@ -90,7 +91,7 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
string jsonString = jsonObject.ToString();
|
|
|
|
|
var str = webApiClientApp.UploadAsync(jsonString);
|
|
|
|
|
var str = webApiClientApp.UploadAsync(jsonString, "容器指定封发扫描接口");
|
|
|
|
|
CsbResult res = JsonConvert.DeserializeObject<CsbResult>(str);
|
|
|
|
|
logHelper.Info($"容器指定封发扫描接口返回信息:{jsonChange.ModeToJson(res)}");
|
|
|
|
|
}
|
|
|
|
@ -106,6 +107,7 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
public CsbResult scanAnyContainerCodeByCsb(string rqtm)
|
|
|
|
|
{
|
|
|
|
|
CsbResult res = new CsbResult();
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
var jsonObject = new JObject
|
|
|
|
@ -118,10 +120,13 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
["devicedId"] = appConfig.devicedId,
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
string jsonString = jsonObject.ToString();
|
|
|
|
|
var str = webApiClientApp.UploadAsync("scanAnyContainerCodeByCsb", "batchOpenQuery", jsonString);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var str = webApiClientApp.UploadAsync("scanAnyContainerCodeByCsb",
|
|
|
|
|
"batchOpenQuery", jsonString, "容器入库");
|
|
|
|
|
res = JsonConvert.DeserializeObject<CsbResult>(str);
|
|
|
|
|
logHelper.Info($"容器入库接口返回信息:{jsonChange.ModeToJson(res)}");
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
@ -153,10 +158,15 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string jsonString = jsonObject.ToString();
|
|
|
|
|
var str = webApiClientApp.UploadAsync("containerStorageQueryByCsb", "newContainerStorageQuery", jsonString);
|
|
|
|
|
|
|
|
|
|
var str = webApiClientApp.UploadAsync("containerStorageQueryByCsb", "newContainerStorageQuery",
|
|
|
|
|
jsonString, "新容器入库-调拨单号验证接口");
|
|
|
|
|
res = JsonConvert.DeserializeObject<CsbResult>(str);
|
|
|
|
|
logHelper.Info($"新容器入库-调拨单号验证接口返回信息:{jsonChange.ModeToJson(res)}");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
@ -185,9 +195,10 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
["rqtmEnd"] = rqtmEnd,
|
|
|
|
|
};
|
|
|
|
|
string jsonString = jsonObject.ToString();
|
|
|
|
|
var str = webApiClientApp.UploadAsync("containerStorageBatchQueryByCsb", "newContainerStorageBatchQuery", jsonString);
|
|
|
|
|
var str = webApiClientApp.UploadAsync("containerStorageBatchQueryByCsb",
|
|
|
|
|
"newContainerStorageBatchQuery", jsonString, "新容器入库-按送货单接收容器接口");
|
|
|
|
|
CsbResult res = JsonConvert.DeserializeObject<CsbResult>(str);
|
|
|
|
|
logHelper.Info($"新容器入库-按送货单接收容器接口返回信息:{jsonChange.ModeToJson(res)}");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
@ -209,9 +220,10 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
["msgType"] = msgType,
|
|
|
|
|
};
|
|
|
|
|
string jsonString = jsonObject.ToString();
|
|
|
|
|
var str = webApiClientApp.UploadAsync("receContainerStorageByCsb", "newContainerStorageQuery", jsonString);
|
|
|
|
|
var str = webApiClientApp.UploadAsync("receContainerStorageByCsb", "newContainerStorageQuery",
|
|
|
|
|
jsonString, "新容器入库-按送货单反馈接收结果接口");
|
|
|
|
|
CsbResult res = JsonConvert.DeserializeObject<CsbResult>(str);
|
|
|
|
|
logHelper.Info($"新容器入库-按送货单反馈接收结果接口返回信息:{jsonChange.ModeToJson(res)}");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
@ -236,9 +248,10 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
string jsonString = jsonObject.ToString();
|
|
|
|
|
var str = webApiClientApp.UploadAsync("transferOrderFfjhByCsb", "TdjStockTransferOrderQuery", jsonString);
|
|
|
|
|
var str = webApiClientApp.UploadAsync("transferOrderFfjhByCsb", "TdjStockTransferOrderQuery",
|
|
|
|
|
jsonString, "容器封发-获取调拨单和封发计划");
|
|
|
|
|
res = JsonConvert.DeserializeObject<CsbResult>(str);
|
|
|
|
|
logHelper.Info($"容器封发-获取调拨单和封发计划接口返回信息:{jsonChange.ModeToJson(res)}");
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
@ -267,9 +280,10 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
string jsonString = jsonObject.ToString();
|
|
|
|
|
var str = webApiClientApp.UploadAsync("transferOrderFfjhCheckByCsb", "TdjStockTransferOrderffjhCheckQuery", jsonString);
|
|
|
|
|
var str = webApiClientApp.UploadAsync("transferOrderFfjhCheckByCsb",
|
|
|
|
|
"TdjStockTransferOrderffjhCheckQuery", jsonString, " 容器封发-验证封发计划");
|
|
|
|
|
res = JsonConvert.DeserializeObject<CsbResult>(str);
|
|
|
|
|
logHelper.Info($"容器封发-验证封发计划接口返回信息:{jsonChange.ModeToJson(res)}");
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
@ -304,9 +318,12 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
string jsonString = jsonObject.ToString();
|
|
|
|
|
var str = webApiClientApp.UploadAsync("containerScanSealByCsb", "TdjContainerScanSealQuery", jsonString);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var str = webApiClientApp.UploadAsync("containerScanSealByCsb", "TdjContainerScanSealQuery",
|
|
|
|
|
jsonString, "容器封发-接收容器条码");
|
|
|
|
|
res = JsonConvert.DeserializeObject<CsbResult>(str);
|
|
|
|
|
logHelper.Info($"容器封发-接收容器条码接口返回信息:{jsonChange.ModeToJson(res)}");
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
@ -333,10 +350,14 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
["opBatch"] = opBatch,
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string jsonString = jsonObject.ToString();
|
|
|
|
|
var str = webApiClientApp.UploadAsync("containerScanSealResultByCsb", "TdjContainerScanSealQuery", jsonString);
|
|
|
|
|
|
|
|
|
|
var str = webApiClientApp.UploadAsync("containerScanSealResultByCsb", "TdjContainerScanSealQuery",
|
|
|
|
|
jsonString, "容器封发-反馈接收结果");
|
|
|
|
|
res = JsonConvert.DeserializeObject<CsbResult>(str);
|
|
|
|
|
logHelper.Info($"容器封发-反馈接收结果接口返回信息:{jsonChange.ModeToJson(res)}");
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
@ -366,9 +387,10 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
["opBatch"] = opBatch,
|
|
|
|
|
};
|
|
|
|
|
string jsonString = jsonObject.ToString();
|
|
|
|
|
var str = webApiClientApp.UploadAsync("findStationSequenceByCsb", "TdjContainerAllotQuery", jsonString);
|
|
|
|
|
var str = webApiClientApp.UploadAsync("findStationSequenceByCsb", "TdjContainerAllotQuery",
|
|
|
|
|
jsonString, " 容器直连配发-获取邮路卸交站");
|
|
|
|
|
res = JsonConvert.DeserializeObject<CsbResult>(str);
|
|
|
|
|
logHelper.Info($"容器直连配发-获取邮路卸交站接口返回信息:{jsonChange.ModeToJson(res)}");
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
@ -403,9 +425,9 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
string jsonString = jsonObject.ToString();
|
|
|
|
|
var str = webApiClientApp.UploadAsync("tranPlanCheckByCsb", "TdjContainerAllotQuery", jsonString);
|
|
|
|
|
var str = webApiClientApp.UploadAsync("tranPlanCheckByCsb", "TdjContainerAllotQuery", jsonString, "容器直连配发-校验发运计划");
|
|
|
|
|
res = JsonConvert.DeserializeObject<CsbResult>(str);
|
|
|
|
|
logHelper.Info($"容器直连配发-校验发运计划接口返回信息:{jsonChange.ModeToJson(res)}");
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
@ -438,10 +460,14 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
["groupName"] = iNIFile.IniReadValue("TdjContainerAllotQuery", "groupName"),
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string jsonString = jsonObject.ToString();
|
|
|
|
|
var str = webApiClientApp.UploadAsync("containerAllotByCsb", "containerAllotByCsb", jsonString);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var str = webApiClientApp.UploadAsync("containerAllotByCsb", "containerAllotByCsb", jsonString, "容器直连配发-开始配发");
|
|
|
|
|
res = JsonConvert.DeserializeObject<CsbResult>(str);
|
|
|
|
|
logHelper.Info($"容器直连配发-开始配发接口返回信息:{jsonChange.ModeToJson(res)}");
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
@ -469,10 +495,13 @@ namespace SlnMesnac.RfidUpload.Business
|
|
|
|
|
["opBatch"] = opBatch,
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
string jsonString = jsonObject.ToString();
|
|
|
|
|
var str = webApiClientApp.UploadAsync("containerAllotResultByCsb", "TdjContainerAllotQuery", jsonString);
|
|
|
|
|
|
|
|
|
|
var str = webApiClientApp.UploadAsync("containerAllotResultByCsb", "TdjContainerAllotQuery",
|
|
|
|
|
jsonString, "容器直连配发-反馈接收结果");
|
|
|
|
|
res = JsonConvert.DeserializeObject<CsbResult>(str);
|
|
|
|
|
logHelper.Info($"容器直连配发-反馈接收结果接口返回信息:{jsonChange.ModeToJson(res)}");
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|