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