|
|
@ -7171,6 +7171,10 @@ namespace Myshipping.Application
|
|
|
|
throw Oops.Bah($"收货地{primaryModel.PLACERECEIPTID}的EDI代码未找到");
|
|
|
|
throw Oops.Bah($"收货地{primaryModel.PLACERECEIPTID}的EDI代码未找到");
|
|
|
|
|
|
|
|
|
|
|
|
primaryModel.PLACERECEIPTID = currPortInfo.MapCode?.Trim();
|
|
|
|
primaryModel.PLACERECEIPTID = currPortInfo.MapCode?.Trim();
|
|
|
|
|
|
|
|
if (ediRouteEnum == EDIRouteEnum.SITC)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
primaryModel.PLACERECEIPT = currPortInfo.MapName?.Trim();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//装货港
|
|
|
|
//装货港
|
|
|
@ -7183,6 +7187,10 @@ namespace Myshipping.Application
|
|
|
|
throw Oops.Bah($"装货港{primaryModel.PORTLOADID}的EDI代码未找到");
|
|
|
|
throw Oops.Bah($"装货港{primaryModel.PORTLOADID}的EDI代码未找到");
|
|
|
|
|
|
|
|
|
|
|
|
primaryModel.PORTLOADID = currPortInfo.MapCode?.Trim();
|
|
|
|
primaryModel.PORTLOADID = currPortInfo.MapCode?.Trim();
|
|
|
|
|
|
|
|
if (ediRouteEnum == EDIRouteEnum.SITC)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
primaryModel.PORTLOAD = currPortInfo.MapName?.Trim();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//签单地点
|
|
|
|
//签单地点
|
|
|
@ -7246,6 +7254,10 @@ namespace Myshipping.Application
|
|
|
|
throw Oops.Bah($"卸货港{primaryModel.PORTDISCHARGEID}的EDI代码未找到");
|
|
|
|
throw Oops.Bah($"卸货港{primaryModel.PORTDISCHARGEID}的EDI代码未找到");
|
|
|
|
|
|
|
|
|
|
|
|
primaryModel.PORTDISCHARGEID = currPortInfo.MapCode?.Trim();
|
|
|
|
primaryModel.PORTDISCHARGEID = currPortInfo.MapCode?.Trim();
|
|
|
|
|
|
|
|
if (ediRouteEnum == EDIRouteEnum.SITC)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
primaryModel.PORTDISCHARGE = currPortInfo.MapName?.Trim();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//中转港
|
|
|
|
//中转港
|
|
|
@ -7274,6 +7286,10 @@ namespace Myshipping.Application
|
|
|
|
throw Oops.Bah($"中转港{primaryModel.TRANSPORTID}的EDI代码未找到");
|
|
|
|
throw Oops.Bah($"中转港{primaryModel.TRANSPORTID}的EDI代码未找到");
|
|
|
|
|
|
|
|
|
|
|
|
primaryModel.TRANSPORTID = currPortInfo.MapCode?.Trim();
|
|
|
|
primaryModel.TRANSPORTID = currPortInfo.MapCode?.Trim();
|
|
|
|
|
|
|
|
if (ediRouteEnum == EDIRouteEnum.SITC)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
primaryModel.TRANSPORT = currPortInfo.MapName?.Trim();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//目的地
|
|
|
|
//目的地
|
|
|
@ -7302,6 +7318,10 @@ namespace Myshipping.Application
|
|
|
|
throw Oops.Bah($"目的地{primaryModel.DESTINATIONID}的EDI代码未找到");
|
|
|
|
throw Oops.Bah($"目的地{primaryModel.DESTINATIONID}的EDI代码未找到");
|
|
|
|
|
|
|
|
|
|
|
|
primaryModel.DESTINATIONID = currPortInfo.MapCode?.Trim();
|
|
|
|
primaryModel.DESTINATIONID = currPortInfo.MapCode?.Trim();
|
|
|
|
|
|
|
|
if (ediRouteEnum == EDIRouteEnum.SITC)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
primaryModel.DESTINATION = currPortInfo.MapName?.Trim();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//交货地
|
|
|
|
//交货地
|
|
|
@ -7801,7 +7821,7 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
|
|
var jRtn = JObject.Parse(rtn);
|
|
|
|
var jRtn = JObject.Parse(rtn);
|
|
|
|
_logger.LogInformation($"SITC接口返回:{rtn}");
|
|
|
|
_logger.LogInformation($"SITC接口返回:{rtn}");
|
|
|
|
if (jRtn.GetIntValue("code") == 200)
|
|
|
|
if (jRtn.GetBooleanValue("success"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var token = jRtn.GetJObjectValue("data").GetStringValue("accessToken");
|
|
|
|
var token = jRtn.GetJObjectValue("data").GetStringValue("accessToken");
|
|
|
|
_logger.LogInformation($"调用SITC接口获取token:{token}");
|
|
|
|
_logger.LogInformation($"调用SITC接口获取token:{token}");
|
|
|
@ -7813,7 +7833,7 @@ namespace Myshipping.Application
|
|
|
|
.PostAsStringAsync();
|
|
|
|
.PostAsStringAsync();
|
|
|
|
jRtn = JObject.Parse(rtn);
|
|
|
|
jRtn = JObject.Parse(rtn);
|
|
|
|
_logger.LogInformation($"SITC接口返回:{rtn}");
|
|
|
|
_logger.LogInformation($"SITC接口返回:{rtn}");
|
|
|
|
if (jRtn.GetIntValue("code") == 200)
|
|
|
|
if (jRtn.GetBooleanValue("success"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var bkNO = jRtn.GetJObjectValue("data").GetStringValue("bkNo");
|
|
|
|
var bkNO = jRtn.GetJObjectValue("data").GetStringValue("bkNo");
|
|
|
|
_logger.LogInformation($"SITC接口返回订舱编号:{bkNO}");
|
|
|
|
_logger.LogInformation($"SITC接口返回订舱编号:{bkNO}");
|
|
|
|