|
|
|
@ -9759,7 +9759,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
|
|
|
|
|
if (OpseaeHead.CARRIER == "ONE")
|
|
|
|
|
{
|
|
|
|
|
_result.Add("PLACERECEIPTCODE", OpseaeDjyOrderHead.PLACERECEIPTID);
|
|
|
|
|
_result.Add("PLACERECEIPTCODE", OpseaeHead.PLACERECEIPTID);
|
|
|
|
|
_result.Add("ShipInfoJson", OpseaeDjyOrderHead.ShipInfoJson);
|
|
|
|
|
_result.Add("bookingAddr", OpseaeDjyOrderHead.bookingAddr);
|
|
|
|
|
}
|
|
|
|
@ -10581,9 +10581,11 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
|
|
|
|
|
//var 中远港口EDINAME = "COSCOPORT";
|
|
|
|
|
|
|
|
|
|
var 装货港大简云code = OpseaeDjyOrderHead.PORTLOADID;
|
|
|
|
|
var 装货港大简云code = OpseaeHead.PORTLOADID;
|
|
|
|
|
|
|
|
|
|
var 目的地大简云code = OpseaeDjyOrderHead.DESTINATIONID;
|
|
|
|
|
var 目的地大简云code = OpseaeHead.DESTINATIONID;
|
|
|
|
|
|
|
|
|
|
var 收货地大简云code = OpseaeHead.PLACERECEIPTID;
|
|
|
|
|
|
|
|
|
|
//20240507 如果两港均为空 不进行判断 直接返回true
|
|
|
|
|
if (string.IsNullOrWhiteSpace(装货港大简云code) && string.IsNullOrWhiteSpace(目的地大简云code))
|
|
|
|
@ -10591,11 +10593,13 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
return result.OK();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var 装货港大简云EDICODEItem = cdc.code_disport_edi.FirstOrDefault(x => x.EDINAME == 大简云EDINAME && x.PORTID == 装货港大简云code);
|
|
|
|
|
var 目的地大简云EDICODEItem = cdc.code_disport_edi.FirstOrDefault(x => x.EDINAME == 大简云EDINAME && x.PORTID == 目的地大简云code);
|
|
|
|
|
//var 装货港大简云EDICODEItem = cdc.code_disport_edi.FirstOrDefault(x => x.EDINAME == 大简云EDINAME && x.PORTID == 装货港大简云code);
|
|
|
|
|
//var 目的地大简云EDICODEItem = cdc.code_disport_edi.FirstOrDefault(x => x.EDINAME == 大简云EDINAME && x.PORTID == 目的地大简云code);
|
|
|
|
|
//var 收货地大简云EDICODEItem = cdc.code_disport_edi.FirstOrDefault(x => x.EDINAME == 大简云EDINAME && x.PORTID == 收货地大简云code);
|
|
|
|
|
|
|
|
|
|
var 装货港ONEcode = "";
|
|
|
|
|
var 目的地ONEcode = "";
|
|
|
|
|
var 收货地ONEcode = "";
|
|
|
|
|
|
|
|
|
|
//var 装货港中远codeItem = cdc.code_disport_edi.FirstOrDefault(x => x.EDINAME == 中远港口代码EDINAME && x.PORTID == 装货港大简云EDICODEItem.EDICODE);
|
|
|
|
|
//if (装货港中远codeItem != null)
|
|
|
|
@ -10615,22 +10619,34 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(装货港ONEcode))
|
|
|
|
|
{
|
|
|
|
|
装货港ONEcode = GetDjyMapping(装货港大简云EDICODEItem.EDICODE, "PORTLOAD", "ONE");
|
|
|
|
|
装货港ONEcode = GetDjyMapping(装货港大简云code, "PORTLOAD", "ONE");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(目的地ONEcode))
|
|
|
|
|
{
|
|
|
|
|
目的地ONEcode = GetDjyMapping(目的地大简云EDICODEItem.EDICODE, "PORTDISCHARGE", "ONE");
|
|
|
|
|
目的地ONEcode = GetDjyMapping(目的地大简云code, "PORTDISCHARGE", "ONE");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(收货地ONEcode))
|
|
|
|
|
{
|
|
|
|
|
收货地ONEcode = GetDjyMapping(收货地大简云code, "PORTLOAD", "ONE");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(装货港ONEcode))
|
|
|
|
|
{
|
|
|
|
|
return result.SetErrorInfo($"{装货港大简云EDICODEItem.PORTID} 没有在大简云设置其ONE港口代码");
|
|
|
|
|
return result.SetErrorInfo($"{装货港大简云code} 没有在大简云设置其ONE港口代码");
|
|
|
|
|
}
|
|
|
|
|
if (string.IsNullOrWhiteSpace(目的地ONEcode))
|
|
|
|
|
{
|
|
|
|
|
return result.SetErrorInfo($"{目的地大简云EDICODEItem.PORTID} 没有在大简云设置其ONE港口代码");
|
|
|
|
|
return result.SetErrorInfo($"{目的地大简云code} 没有在大简云设置其ONE港口代码");
|
|
|
|
|
}
|
|
|
|
|
if (string.IsNullOrWhiteSpace(收货地ONEcode))
|
|
|
|
|
{
|
|
|
|
|
return result.SetErrorInfo($"{收货地大简云code} 没有在大简云设置其ONE港口代码");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//3:从吴广的中远接口依据启运港目的港 当前日期+1 五周 查询船名航次
|
|
|
|
|
//20240507 日期改为 ETD-3
|
|
|
|
|
var _r1 = GetOneVoyno(装货港ONEcode, 目的地ONEcode);
|
|
|
|
@ -10915,7 +10931,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
|
|
|
|
|
var rtn = "";
|
|
|
|
|
BasicDataRefDAL.SaveLog(JsonConvert.Serialize(sendParam), "", "查中远船期", "发送");
|
|
|
|
|
rtn = WebRequestHelper.DoPost(_IURL, sendParam, 10000);
|
|
|
|
|
rtn = WebRequestHelper.DoPost(_IURL, sendParam, 30000);
|
|
|
|
|
BasicDataRefDAL.SaveLog(rtn, "", "查中远船期", "返回");
|
|
|
|
|
|
|
|
|
|
var _r = JsonConvert.Deserialize<中远船期查询结果>(rtn);
|
|
|
|
@ -11036,7 +11052,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
|
|
|
|
|
var rtn = "";
|
|
|
|
|
BasicDataRefDAL.SaveLog(JsonConvert.Serialize(sendParam), "", "查长荣船期", "发送");
|
|
|
|
|
rtn = WebRequestHelper.DoPost(_IURL, sendParam, 10000);
|
|
|
|
|
rtn = WebRequestHelper.DoPost(_IURL, sendParam, 30000);
|
|
|
|
|
BasicDataRefDAL.SaveLog(rtn, "", "查长荣船期", "返回");
|
|
|
|
|
|
|
|
|
|
var _r = JsonConvert.Deserialize<长荣船期查询结果>(rtn);
|
|
|
|
@ -11094,7 +11110,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
|
|
|
|
|
var rtn = "";
|
|
|
|
|
BasicDataRefDAL.SaveLog(JsonConvert.Serialize(sendParam), "", "查ONE船期", "发送");
|
|
|
|
|
rtn = WebRequestHelper.DoPost(_IURL, sendParam, 10000);
|
|
|
|
|
rtn = WebRequestHelper.DoPost(_IURL, sendParam, 30000);
|
|
|
|
|
BasicDataRefDAL.SaveLog(rtn, "", "查ONE船期", "返回");
|
|
|
|
|
|
|
|
|
|
var _r = JsonConvert.Deserialize<ONE船期查询结果>(rtn);
|
|
|
|
|