|
|
|
@ -117,6 +117,11 @@ namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
var ctn = item.Adapt<BookingOrderSeaeEdiCtn>();
|
|
|
|
|
ctn.PId = entity.Id;
|
|
|
|
|
if (ctn.CTNALL.Length==4) {
|
|
|
|
|
ctn.SIZE = ctn.CTNALL != null ? ctn.CTNALL.Substring(0, 2) : "";
|
|
|
|
|
ctn.SIZE = ctn.CTNALL != null ? ctn.CTNALL.Substring(2, 2) : "";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
await _seaeedictn.InsertAsync(ctn);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -143,6 +148,12 @@ namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
var ctn = item.Adapt<BookingOrderSeaeEdiCtn>();
|
|
|
|
|
ctn.PId = entity.Id;
|
|
|
|
|
if (ctn.CTNALL.Length == 4)
|
|
|
|
|
{
|
|
|
|
|
ctn.SIZE = ctn.CTNALL != null ? ctn.CTNALL.Substring(0, 2) : "";
|
|
|
|
|
ctn.SIZE = ctn.CTNALL != null ? ctn.CTNALL.Substring(2, 2) : "";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
await _seaeedictn.InsertAsync(ctn);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -169,6 +180,7 @@ namespace Myshipping.Application
|
|
|
|
|
/// <param name="Ids"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[SqlSugarUnitOfWork]
|
|
|
|
|
|
|
|
|
|
[HttpPost("/BookingOrderSeaeEdi/Delete")]
|
|
|
|
|
public async Task Delete(string Ids)
|
|
|
|
|
{
|
|
|
|
@ -234,7 +246,6 @@ namespace Myshipping.Application
|
|
|
|
|
List<CTNDATAItem> CTNDATA = new List<CTNDATAItem>();
|
|
|
|
|
mDATA = order.Adapt<MDATA>();
|
|
|
|
|
CTNDATA = ctns.Adapt<List<CTNDATAItem>>();
|
|
|
|
|
|
|
|
|
|
custEDIDtos.Add(
|
|
|
|
|
new CustEDIDto
|
|
|
|
|
{
|
|
|
|
@ -258,10 +269,10 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var jobjResp = JObject.Parse(strResp);
|
|
|
|
|
int respCode = jobjResp.GetIntValue("code");
|
|
|
|
|
if (respCode != 200)
|
|
|
|
|
bool respCode = jobjResp.GetBooleanValue("Success");
|
|
|
|
|
if (respCode== false)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah(BookingErrorCode.BOOK129, jobjResp.GetStringValue("message"));
|
|
|
|
|
throw Oops.Bah(jobjResp.GetStringValue("Message"));
|
|
|
|
|
}
|
|
|
|
|
//货运动态
|
|
|
|
|
var bsl = new BookingStatusLog();
|
|
|
|
|