修改EDIRemark赋值

booking_auth_dev
jianghaiqing 2 years ago
parent 110d739901
commit 52c76540db

@ -1732,11 +1732,16 @@ namespace Myshipping.Application
primaryModel.KINDPKGS_EDI_CODE = ediPkgs.MapCode?.Trim();
//这里是订舱时,默认取SOREMARK赋值到EDIREMARK
if (model.sendType == "B")
primaryModel.EDIREMARK = order.SOREMARK;
//箱信息
var contaList = _repCtn.AsQueryable().Where(t => t.BILLID == order.Id).ToList();
primaryModel.CTNLIST = new List<MsOpSeaeCtnEDIBaseModel>();
//集装箱
foreach (var conta in contaList)
{
@ -1782,6 +1787,8 @@ namespace Myshipping.Application
primaryModel.CTNGOODSLIST.Add(cargoModel);
}
//这里临时赋值,等明确对应的扩展表字段后赋值
#if DEBUG
@ -1791,7 +1798,7 @@ namespace Myshipping.Application
primaryModel.SalesRepCode = "SALE1";
primaryModel.ACIHBL = String.Empty;
primaryModel.S0CC0C = String.Empty;
primaryModel.EDIREMARK = String.Empty;
primaryModel.AMSCONSIGNEE = String.Empty;
primaryModel.AMSNOTIFYPARTY = String.Empty;
primaryModel.EDIATTN = "CEE1";

@ -24,7 +24,7 @@ namespace Myshipping.Application
.Map(dest => dest.VESSEL, src => src.VESSEL)
.Map(dest => dest.VOYNO, src => src.VOYNO)
.Map(dest => dest.ETD, src => src.ETD.HasValue? src.ETD.Value.ToString("yyyy-MM-dd"):"")
//.Map(dest => dest.EDIREMARK, src => src.EDIREMARK)
//.Map(dest => dest.EDIREMARK, src => src.SOREMARK)
.Map(dest => dest.SIREMARK, src => src.SIREMARK)
.Map(dest => dest.SHIPPER, src => src.SHIPPER)
.Map(dest => dest.CONSIGNEE, src => src.CONSIGNEE)

Loading…
Cancel
Save