|
|
@ -2,6 +2,7 @@ using AngleSharp.Dom;
|
|
|
|
using DS.Module.Core;
|
|
|
|
using DS.Module.Core;
|
|
|
|
using DS.Module.Core.Data;
|
|
|
|
using DS.Module.Core.Data;
|
|
|
|
using DS.Module.Core.Extensions;
|
|
|
|
using DS.Module.Core.Extensions;
|
|
|
|
|
|
|
|
using DS.Module.DjyRulesEngine;
|
|
|
|
using DS.Module.DjyServiceStatus;
|
|
|
|
using DS.Module.DjyServiceStatus;
|
|
|
|
using DS.Module.SqlSugar;
|
|
|
|
using DS.Module.SqlSugar;
|
|
|
|
using DS.Module.UserModule;
|
|
|
|
using DS.Module.UserModule;
|
|
|
@ -35,7 +36,7 @@ public partial class SeaExportService : ISeaExportService
|
|
|
|
private readonly ISeaExportCommonService seaComService;
|
|
|
|
private readonly ISeaExportCommonService seaComService;
|
|
|
|
private readonly IWebHostEnvironment _environment;
|
|
|
|
private readonly IWebHostEnvironment _environment;
|
|
|
|
private readonly IDjyServiceStatusService _djyServiceStatusService;
|
|
|
|
private readonly IDjyServiceStatusService _djyServiceStatusService;
|
|
|
|
|
|
|
|
private readonly IRuleEngineService _ruleEngineService;
|
|
|
|
const string CONST_MAPPING_MODULE = "BOOK_OR_CLOSING";
|
|
|
|
const string CONST_MAPPING_MODULE = "BOOK_OR_CLOSING";
|
|
|
|
const string CONST_MAPPING_MODULE_ROUTE = "BOOK_OR_CLOSING_RT";
|
|
|
|
const string CONST_MAPPING_MODULE_ROUTE = "BOOK_OR_CLOSING_RT";
|
|
|
|
const string CONST_MAPPING_MODULE_VOLTA = "BOOK_CLOSING_VOLTA";
|
|
|
|
const string CONST_MAPPING_MODULE_VOLTA = "BOOK_CLOSING_VOLTA";
|
|
|
@ -63,6 +64,7 @@ public partial class SeaExportService : ISeaExportService
|
|
|
|
//_printService = _serviceProvider.GetRequiredService<IPrintService>();
|
|
|
|
//_printService = _serviceProvider.GetRequiredService<IPrintService>();
|
|
|
|
|
|
|
|
|
|
|
|
_djyServiceStatusService = _serviceProvider.GetRequiredService<IDjyServiceStatusService>();
|
|
|
|
_djyServiceStatusService = _serviceProvider.GetRequiredService<IDjyServiceStatusService>();
|
|
|
|
|
|
|
|
_ruleEngineService = _serviceProvider.GetRequiredService<IRuleEngineService>();
|
|
|
|
|
|
|
|
|
|
|
|
#region 设置对象映射
|
|
|
|
#region 设置对象映射
|
|
|
|
TypeAdapterConfig<SeaExportEdi, SeaExportEDIBaseModel>
|
|
|
|
TypeAdapterConfig<SeaExportEdi, SeaExportEDIBaseModel>
|
|
|
@ -199,6 +201,121 @@ public partial class SeaExportService : ISeaExportService
|
|
|
|
.Map(dto => dto.KGS, poco => poco.KGS)
|
|
|
|
.Map(dto => dto.KGS, poco => poco.KGS)
|
|
|
|
.Map(dto => dto.CBM, poco => poco.CBM);
|
|
|
|
.Map(dto => dto.CBM, poco => poco.CBM);
|
|
|
|
//.IgnoreNonMapped(true);//只映射Map指定的属性,其他属性都排除;
|
|
|
|
//.IgnoreNonMapped(true);//只映射Map指定的属性,其他属性都排除;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//映射规则引擎
|
|
|
|
|
|
|
|
TypeAdapterConfig<SeaExport, RulesEngineOrderBookingMainBusinessInfo>
|
|
|
|
|
|
|
|
.NewConfig()
|
|
|
|
|
|
|
|
.Map(dto => dto.MasterBlNo, poco => poco.MBLNO)
|
|
|
|
|
|
|
|
.Map(dto => dto.HouseBlNo, poco => poco.HBLNO)
|
|
|
|
|
|
|
|
.Map(dto => dto.BookingNo, poco => poco.BookingNo)
|
|
|
|
|
|
|
|
.Map(dto => dto.ServContrNo, poco => poco.ServiceContractNo)
|
|
|
|
|
|
|
|
.Map(dto => dto.Shipper, poco => poco.Shipper)
|
|
|
|
|
|
|
|
.Map(dto => dto.ShipperId, poco => poco.ShipperId)
|
|
|
|
|
|
|
|
.Map(dto => dto.Consignee, poco => poco.Consignee)
|
|
|
|
|
|
|
|
.Map(dto => dto.ConsigneeId, poco => poco.ConsigneeId)
|
|
|
|
|
|
|
|
.Map(dto => dto.NotifyParty, poco => poco.NotifyParty)
|
|
|
|
|
|
|
|
.Map(dto => dto.NotifyPartyId, poco => poco.NotifyPartyId)
|
|
|
|
|
|
|
|
.Map(dto => dto.NotifyPrt2, poco => poco.SecondNotifyParty)
|
|
|
|
|
|
|
|
.Map(dto => dto.Yard, poco => poco.Yard)
|
|
|
|
|
|
|
|
.Map(dto => dto.YardId, poco => poco.YardId)
|
|
|
|
|
|
|
|
.Map(dto => dto.Vessel, poco => poco.Vessel)
|
|
|
|
|
|
|
|
.Map(dto => dto.VesselId, poco => poco.VesselId)
|
|
|
|
|
|
|
|
.Map(dto => dto.Voyno, poco => poco.Voyno)
|
|
|
|
|
|
|
|
.Map(dto => dto.VoynoIn, poco => poco.InnerVoyno)
|
|
|
|
|
|
|
|
.Map(dto => dto.ETD, poco => poco.ETD)
|
|
|
|
|
|
|
|
.Map(dto => dto.ATD, poco => poco.ATD)
|
|
|
|
|
|
|
|
.Map(dto => dto.ETA, poco => poco.ETA)
|
|
|
|
|
|
|
|
.Map(dto => dto.ClosingDate, poco => poco.ClosingDate)
|
|
|
|
|
|
|
|
.Map(dto => dto.CloseDocDate, poco => poco.CloseDocDate)
|
|
|
|
|
|
|
|
.Map(dto => dto.CloseVGMDate, poco => poco.CloseVgmDate)
|
|
|
|
|
|
|
|
.Map(dto => dto.PortLoad, poco => poco.LoadPort)
|
|
|
|
|
|
|
|
.Map(dto => dto.PortLoadId, poco => poco.LoadPortId)
|
|
|
|
|
|
|
|
.Map(dto => dto.PlaceReceipt, poco => poco.ReceiptPlace)
|
|
|
|
|
|
|
|
.Map(dto => dto.PlaceReceiptId, poco => poco.ReceiptPlaceId)
|
|
|
|
|
|
|
|
.Map(dto => dto.PortDischarge, poco => poco.DischargePort)
|
|
|
|
|
|
|
|
.Map(dto => dto.PortDischargeId, poco => poco.DischargePortId)
|
|
|
|
|
|
|
|
.Map(dto => dto.PlaceDelivery, poco => poco.DeliveryPlace)
|
|
|
|
|
|
|
|
.Map(dto => dto.PlaceDeliveryId, poco => poco.DeliveryPlaceId)
|
|
|
|
|
|
|
|
.Map(dto => dto.Destination, poco => poco.Destination)
|
|
|
|
|
|
|
|
.Map(dto => dto.DestinationId, poco => poco.DestinationId)
|
|
|
|
|
|
|
|
.Map(dto => dto.NoBill, poco => poco.NoBill)
|
|
|
|
|
|
|
|
.Map(dto => dto.CopyNoBill, poco => poco.CopyNoBill)
|
|
|
|
|
|
|
|
.Map(dto => dto.IssueType, poco => poco.IssueType)
|
|
|
|
|
|
|
|
.Map(dto => dto.IssueDate, poco => poco.IssueDate)
|
|
|
|
|
|
|
|
.Map(dto => dto.IssuePlace, poco => poco.IssuePlace)
|
|
|
|
|
|
|
|
.Map(dto => dto.Blfrt, poco => poco.MBLFrt)
|
|
|
|
|
|
|
|
.Map(dto => dto.PrepardAt, poco => poco.PrepareAt)
|
|
|
|
|
|
|
|
.Map(dto => dto.PayableAt, poco => poco.PayableAt)
|
|
|
|
|
|
|
|
.Map(dto => dto.Service, poco => poco.Service)
|
|
|
|
|
|
|
|
.Map(dto => dto.Marks, poco => poco.Marks)
|
|
|
|
|
|
|
|
.Map(dto => dto.HsCode, poco => poco.HSCode)
|
|
|
|
|
|
|
|
.Map(dto => dto.GoodsDescription, poco => poco.Description)
|
|
|
|
|
|
|
|
.Map(dto => dto.PKGs, poco => poco.PKGS)
|
|
|
|
|
|
|
|
.Map(dto => dto.KindPKGs, poco => poco.KindPkgs)
|
|
|
|
|
|
|
|
.Map(dto => dto.KGs, poco => poco.KGS)
|
|
|
|
|
|
|
|
.Map(dto => dto.CBM, poco => poco.CBM)
|
|
|
|
|
|
|
|
.Map(dto => dto.TotalNO, poco => poco.TotalNo)
|
|
|
|
|
|
|
|
.Map(dto => dto.CntrTotal, poco => poco.CntrTotal)
|
|
|
|
|
|
|
|
.Map(dto => dto.Carrier, poco => poco.Carrier)
|
|
|
|
|
|
|
|
//.Map(dto => dto.CarrierId, poco => poco.Carrier)
|
|
|
|
|
|
|
|
.Map(dto => dto.CargoId, poco => poco.CargoId)
|
|
|
|
|
|
|
|
.Map(dto => dto.DClass, poco => poco.DangerClass)
|
|
|
|
|
|
|
|
.Map(dto => dto.DUnno, poco => poco.DangerNo)
|
|
|
|
|
|
|
|
.Map(dto => dto.DPage, poco => poco.DangerPage)
|
|
|
|
|
|
|
|
.Map(dto => dto.DLabel, poco => poco.DangerLabel)
|
|
|
|
|
|
|
|
//.Map(dto => dto.DLinkMan, poco => poco.dan)
|
|
|
|
|
|
|
|
.Map(dto => dto.TempId, poco => poco.TemperatureUnit)
|
|
|
|
|
|
|
|
.Map(dto => dto.TempSet, poco => poco.TemperatureSet)
|
|
|
|
|
|
|
|
.Map(dto => dto.Reeferf, poco => poco.ReeferQuantity)
|
|
|
|
|
|
|
|
.Map(dto => dto.Humidity, poco => poco.Humidity)
|
|
|
|
|
|
|
|
.Map(dto => dto.TempMin, poco => poco.TemperatureMin)
|
|
|
|
|
|
|
|
.Map(dto => dto.TempMax, poco => poco.TemperatureMax)
|
|
|
|
|
|
|
|
.Map(dto => dto.IsContaSOC, poco => poco.IsContainerSoc)
|
|
|
|
|
|
|
|
.Map(dto => dto.YardRemark, poco => poco.YardRemark)
|
|
|
|
|
|
|
|
//.Map(dto => dto.CompId, poco => poco.OrgId.ToString())
|
|
|
|
|
|
|
|
//.Map(dto => dto.CompName, poco => poco.OrgId.ToString())
|
|
|
|
|
|
|
|
//.Map(dto => dto.CustserviceName, poco => poco.CustserviceName)
|
|
|
|
|
|
|
|
.Map(dto => dto.Forwarder, poco => poco.Forwarder)
|
|
|
|
|
|
|
|
.Map(dto => dto.ShipAgency, poco => poco.ShipAgency)
|
|
|
|
|
|
|
|
.Map(dto => dto.CustomsER, poco => poco.Customser)
|
|
|
|
|
|
|
|
.Map(dto => dto.TruckER, poco => poco.Trucker)
|
|
|
|
|
|
|
|
.Map(dto => dto.AgentId, poco => poco.AgentId)
|
|
|
|
|
|
|
|
.Map(dto => dto.CustomerId, poco => poco.CustomerId)
|
|
|
|
|
|
|
|
.Map(dto => dto.ForwarderId, poco => poco.ForwarderId)
|
|
|
|
|
|
|
|
.Map(dto => dto.ShipAgencyId, poco => poco.ShipAgencyId)
|
|
|
|
|
|
|
|
.Map(dto => dto.CustomsERId, poco => poco.CustomserId)
|
|
|
|
|
|
|
|
.Map(dto => dto.TruckERId, poco => poco.TruckerId)
|
|
|
|
|
|
|
|
//.Map(dto => dto.AgentName, poco => poco.Agent)
|
|
|
|
|
|
|
|
.Map(dto => dto.WeiTo, poco => poco.CustomerName)
|
|
|
|
|
|
|
|
//.Map(dto => dto.SCACCode, poco => poco.sca)
|
|
|
|
|
|
|
|
//.Map(dto => dto.ITNCode, poco => poco.it)
|
|
|
|
|
|
|
|
.Map(dto => dto.PrePardAtId, poco => poco.PrepareAtId)
|
|
|
|
|
|
|
|
//.Map(dto => dto.PayableAtId, poco => poco.pa)
|
|
|
|
|
|
|
|
.Map(dto => dto.CustNo, poco => poco.CustomNo)
|
|
|
|
|
|
|
|
.Map(dto => dto.TransportId, poco => poco.TransportCode)
|
|
|
|
|
|
|
|
.Map(dto => dto.Transport, poco => poco.Transport)
|
|
|
|
|
|
|
|
.Map(dto => dto.IsMutipleGoods, poco => poco.IsMoreGood);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TypeAdapterConfig<OpCtn, RulesEngineOrderBookingContaInfo>
|
|
|
|
|
|
|
|
.NewConfig()
|
|
|
|
|
|
|
|
.Map(dto => dto.ContaType, poco => poco.CtnCode)
|
|
|
|
|
|
|
|
.Map(dto => dto.ContaTypeName, poco => poco.CtnAll)
|
|
|
|
|
|
|
|
.Map(dto => dto.ContaNo, poco => poco.CntrNo)
|
|
|
|
|
|
|
|
.Map(dto => dto.TEU, poco => poco.TEU)
|
|
|
|
|
|
|
|
.Map(dto => dto.SealNo, poco => poco.SealNo)
|
|
|
|
|
|
|
|
.Map(dto => dto.PKGs, poco => poco.PKGS)
|
|
|
|
|
|
|
|
.Map(dto => dto.KindPKGs, poco => poco.KindPkgs)
|
|
|
|
|
|
|
|
.Map(dto => dto.KGs, poco => poco.KGS)
|
|
|
|
|
|
|
|
.Map(dto => dto.CBM, poco => poco.CBM)
|
|
|
|
|
|
|
|
.Map(dto => dto.TareWeight, poco => poco.TareWeight)
|
|
|
|
|
|
|
|
.Map(dto => dto.WeighKGs, poco => poco.WeightKGS)
|
|
|
|
|
|
|
|
.Map(dto => dto.WeighType, poco => poco.WeightType)
|
|
|
|
|
|
|
|
.Map(dto => dto.ContaStatus, poco => poco.CtnStatus)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
#endregion 设置对象映射
|
|
|
|
#endregion 设置对象映射
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|