You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
308 lines
18 KiB
C#
308 lines
18 KiB
C#
using Mapster;
|
|
using Myshipping.Application.Entity;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Myshipping.Application
|
|
{
|
|
public class TaskManageMapper : IRegister
|
|
{
|
|
public void Register(TypeAdapterConfig config)
|
|
{
|
|
config.ForType<TaskManageOrderSIFeedBackInfo, TaskSIFeedBackInfo>()
|
|
.Map(dest => dest.SHIPPER, src => src.Shipper)
|
|
.Map(dest => dest.CONSIGNEE, src => src.Consignee)
|
|
.Map(dest => dest.NOTIFYPARTY, src => src.NotifyParty)
|
|
.Map(dest => dest.MARKS, src => src.Marks)
|
|
.Map(dest => dest.DESCRIPTION, src => src.Description)
|
|
.Map(dest => dest.REMARK, src => src.Remark)
|
|
.Map(dest => dest.BLFRT, src => src.BLFRT)
|
|
.Map(dest => dest.SERVICE, src => src.Service)
|
|
.Map(dest => dest.ISSUETYPE, src => src.IssueType)
|
|
.Map(dest => dest.PORT_LOADID, src => src.PortLoadId)
|
|
.Map(dest => dest.PORT_LOAD, src => src.PortLoad)
|
|
.Map(dest => dest.PORT_DISCHARGEID, src => src.PortDischargeId)
|
|
.Map(dest => dest.PORT_DISCHARGE, src => src.PortDischarge)
|
|
.Map(dest => dest.PORT_TRANSID, src => src.PortTransId)
|
|
.Map(dest => dest.PORT_TRANS, src => src.PortTrans)
|
|
.Map(dest => dest.DESTINATION_ID, src => src.DestinationId)
|
|
.Map(dest => dest.DESTINATION, src => src.Destination)
|
|
.Map(dest => dest.KIND_PKGS, src => src.KindPKGS)
|
|
.Map(dest => dest.PKGS, src => src.PKGS)
|
|
.Map(dest => dest.THIRDPAYADDR, src => src.ThirdPayAddr);
|
|
|
|
|
|
config.ForType<TaskManageOrderSIFeedBackContaInfo, TaskSIFeedBackContaInfo>()
|
|
.Map(dest => dest.CONTA_NO, src => src.ContaNo)
|
|
.Map(dest => dest.SEAL_NO, src => src.SealNo)
|
|
.Map(dest => dest.PKGS, src => src.PKGS)
|
|
.Map(dest => dest.KGS, src => src.KGS)
|
|
.Map(dest => dest.CBM, src => src.CBM)
|
|
.Map(dest => dest.CONTA_TYPE, src => src.ContaType)
|
|
.Map(dest => dest.CONTA_TYPE_NAME, src => src.ContaTypeName);
|
|
|
|
|
|
config.ForType<TaskManageOrderFeeInfo, TaskBillFeeDetailInfo>()
|
|
.Map(dest => dest.SORT_NO, src => src.SortNo)
|
|
.Map(dest => dest.FEE_CODE, src => src.FeeCode)
|
|
.Map(dest => dest.FEE_NAME, src => src.FeeName)
|
|
.Map(dest => dest.AMOUNT, src => src.Amount)
|
|
.Map(dest => dest.AMOUNT_USD, src => src.AmountUSD)
|
|
.Map(dest => dest.CURRENCY, src => src.Currency)
|
|
.Map(dest => dest.S20, src => src.S20)
|
|
.Map(dest => dest.S40, src => src.S40)
|
|
.Map(dest => dest.S45, src => src.S45)
|
|
.Map(dest => dest.CTNALL, src => src.Ctnall)
|
|
.Map(dest => dest.QTY, src => src.Qty)
|
|
.Map(dest => dest.UNIT, src => src.Unit)
|
|
.Map(dest => dest.TAX_TYPE, src => src.TaxType)
|
|
.Map(dest => dest.RATE, src => src.Rate)
|
|
.Map(dest => dest.TOTAL_AMOUNT, src => src.TotalAmount)
|
|
.Map(dest => dest.IS_DONGSHENG, src => src.IsDongSheng)
|
|
.Map(dest => dest.IS_TOTAL, src => src.IsTotal);
|
|
|
|
config.ForType<TaskManageOrderVGMFeedBackInfo, TaskVGMFeedBackInfo>()
|
|
.Map(dest => dest.CONTA_NO, src => src.ContaNo)
|
|
.Map(dest => dest.SEAL_NO, src => src.SealNo)
|
|
.Map(dest => dest.CONTA_TYPE, src => src.ContaType)
|
|
.Map(dest => dest.CONTA_TYPE_NAME, src => src.ContaTypeName)
|
|
.Map(dest => dest.KGS, src => src.KGS)
|
|
.Map(dest => dest.TAREWEIGHT, src => src.TAREWEIGHT)
|
|
.Map(dest => dest.WEIGHKGS, src => src.WEIGHKGS)
|
|
.Map(dest => dest.WEIGHTYPE, src => src.WEIGHTYPE);
|
|
|
|
|
|
config.ForType<TaskBaseInfo, TaskBaseInfoDto>()
|
|
.Map(dest => dest.PKId, src => src.PK_ID)
|
|
.Map(dest => dest.TaskNo, src => src.TASK_NO)
|
|
.Map(dest => dest.TaskType, src => src.TASK_TYPE)
|
|
.Map(dest => dest.TaskSource, src => src.TASK_SOURCE)
|
|
.Map(dest => dest.Status, src => src.STATUS)
|
|
.Map(dest => dest.StatusName, src => src.STATUS_NAME)
|
|
.Map(dest => dest.TaskTitle, src => src.TASK_TITLE)
|
|
.Map(dest => dest.TaskDesp, src => src.TASK_DESP)
|
|
.Map(dest => dest.OutBusiNo, src => src.OUT_BUSI_NO)
|
|
.Map(dest => dest.OutBusiType, src => src.OUT_BUSI_TYPE)
|
|
.Map(dest => dest.CarrierId, src => src.CARRIER_ID)
|
|
.Map(dest => dest.MblNo, src => src.MBL_NO)
|
|
.Map(dest => dest.Remark, src => src.REMARK)
|
|
.Map(dest => dest.IsExcept, src => src.IS_EXCEPT)
|
|
.Map(dest => dest.IsPublic, src => src.IS_PUBLIC)
|
|
.Map(dest => dest.IsComplete, src => src.IS_COMPLETE)
|
|
.Map(dest => dest.BeginDate, src => src.BEGIN_DATE)
|
|
.Map(dest => dest.CompleteDate, src => src.COMPLETE_DATE)
|
|
.Map(dest => dest.BookOrderNo, src => src.BOOK_ORDER_NO)
|
|
.Map(dest => dest.ResultNote, src => src.RESULT_NOTE)
|
|
.Map(dest => dest.ETD, src => src.ETD)
|
|
.Map(dest => dest.CreatedTime, src => src.CreatedTime)
|
|
.Map(dest => dest.UpdatedTime, src => src.UpdatedTime)
|
|
.Map(dest => dest.CreatedUserId, src => src.CreatedUserId)
|
|
.Map(dest => dest.CreatedUserName, src => src.CreatedUserName)
|
|
.Map(dest => dest.UpdatedUserId, src => src.UpdatedUserId)
|
|
.Map(dest => dest.UpdatedUserName, src => src.UpdatedUserName);
|
|
|
|
config.ForType<TaskBaseInfoDto, TaskBaseInfo>()
|
|
.Map(dest => dest.PK_ID, src => src.PKId)
|
|
.Map(dest => dest.TASK_NO, src => src.TaskNo)
|
|
.Map(dest => dest.TASK_TYPE, src => src.TaskType)
|
|
.Map(dest => dest.TASK_SOURCE, src => src.TaskSource)
|
|
.Map(dest => dest.TASK_TITLE, src => src.TaskTitle)
|
|
.Map(dest => dest.TASK_DESP, src => src.TaskDesp)
|
|
.Map(dest => dest.OUT_BUSI_NO, src => src.OutBusiNo)
|
|
.Map(dest => dest.OUT_BUSI_TYPE, src => src.OutBusiType)
|
|
.Map(dest => dest.CARRIER_ID, src => src.CarrierId)
|
|
.Map(dest => dest.MBL_NO, src => src.MblNo)
|
|
.Map(dest => dest.REMARK, src => src.Remark)
|
|
.Map(dest => dest.IS_EXCEPT, src => src.IsExcept)
|
|
.Map(dest => dest.IS_PUBLIC, src => src.IsPublic)
|
|
.Map(dest => dest.IS_COMPLETE, src => src.IsComplete)
|
|
.Map(dest => dest.BEGIN_DATE, src => src.BeginDate)
|
|
.Map(dest => dest.COMPLETE_DATE, src => src.CompleteDate)
|
|
.Map(dest => dest.BOOK_ORDER_NO, src => src.BookOrderNo)
|
|
.Map(dest => dest.RESULT_NOTE, src => src.ResultNote)
|
|
.Map(dest => dest.ETD, src => src.ETD)
|
|
.Map(dest => dest.CreatedTime, src => src.CreatedTime)
|
|
.Map(dest => dest.UpdatedTime, src => src.UpdatedTime)
|
|
.Map(dest => dest.CreatedUserId, src => src.CreatedUserId)
|
|
.Map(dest => dest.CreatedUserName, src => src.CreatedUserName)
|
|
.Map(dest => dest.UpdatedUserId, src => src.UpdatedUserId)
|
|
.Map(dest => dest.UpdatedUserName, src => src.UpdatedUserName);
|
|
|
|
|
|
config.ForType<BookingOrder, TaskBookingOrderDto>()
|
|
.Map(dest => dest.MasterBlNo, src => src.MBLNO)
|
|
.Map(dest => dest.HouseBlNo, src => src.HBLNO)
|
|
.Map(dest => dest.BookingNo, src => src.BOOKINGNO)
|
|
.Map(dest => dest.ContrNo, src => src.CONTRACTNO)
|
|
.Map(dest => dest.ServContrNo, src => src.SERVICECONTRACTNO)
|
|
.Map(dest => dest.ShipperId, src => src.SHIPPERID)
|
|
.Map(dest => dest.ConsigneeId, src => src.CONSIGNEEID)
|
|
.Map(dest => dest.NotifyPartyId, src => src.NOTIFYPARTYID)
|
|
.Map(dest => dest.Shipper, src => src.SHIPPER)
|
|
.Map(dest => dest.Consignee, src => src.CONSIGNEE)
|
|
.Map(dest => dest.NotifyParty, src => src.NOTIFYPARTY)
|
|
.Map(dest => dest.NotifyPrt2, src => src.NOTIFYPARTY2)
|
|
.Map(dest => dest.YardId, src => src.YARDID)
|
|
.Map(dest => dest.Yard, src => src.YARD)
|
|
.Map(dest => dest.VesselId, src => src.VESSELID)
|
|
.Map(dest => dest.Vessel, src => src.VESSEL)
|
|
.Map(dest => dest.Voyno, src => src.VOYNO)
|
|
.Map(dest => dest.VoynoIn, src => src.VOYNOINNER)
|
|
.Map(dest => dest.ETD, src => src.ETD)
|
|
.Map(dest => dest.ATD, src => src.ATD)
|
|
.Map(dest => dest.ETA, src => src.ETA)
|
|
.Map(dest => dest.ClosingDate, src => src.CLOSINGDATE.HasValue ? src.CLOSINGDATE.Value.ToString("yyyy-MM-dd HH:mm:ss") : "")
|
|
.Map(dest => dest.CloseDocDate, src => src.CLOSEDOCDATE.HasValue ? src.CLOSEDOCDATE.Value.ToString("yyyy-MM-dd HH:mm:ss") : "")
|
|
.Map(dest => dest.CloseVGMDate, src => src.CLOSEVGMDATE.HasValue ? src.CLOSEVGMDATE.Value.ToString("yyyy-MM-dd HH:mm:ss") : "")
|
|
.Map(dest => dest.PlaceReceiptId, src => src.PLACERECEIPTID)
|
|
.Map(dest => dest.PlaceReceipt, src => src.PLACERECEIPT)
|
|
.Map(dest => dest.PortLoadId, src => src.PORTLOAD)
|
|
.Map(dest => dest.PortLoad, src => src.PORTLOAD)
|
|
.Map(dest => dest.PortDischargeId, src => src.PORTDISCHARGEID)
|
|
.Map(dest => dest.PortDischarge, src => src.PORTDISCHARGE)
|
|
.Map(dest => dest.PlaceDeliveryId, src => src.PLACEDELIVERYID)
|
|
.Map(dest => dest.PlaceDelivery, src => src.PLACEDELIVERY)
|
|
.Map(dest => dest.DestinationId, src => src.DESTINATIONID)
|
|
.Map(dest => dest.Destination, src => src.DESTINATION)
|
|
.Map(dest => dest.NoBill, src => src.NOBILL)
|
|
.Map(dest => dest.CopyNoBill, src => src.COPYNOBILL)
|
|
.Map(dest => dest.IssueType, src => src.ISSUETYPE)
|
|
.Map(dest => dest.IssueDate, src => src.ISSUEDATE.HasValue ? src.ISSUEDATE.Value.ToString("yyyy-MM-dd HH:mm:ss") : "")
|
|
.Map(dest => dest.IssuePlaceId, src => src.ISSUEPLACEID)
|
|
.Map(dest => dest.IssuePlace, src => src.ISSUEPLACE)
|
|
.Map(dest => dest.Blfrt, src => src.BLFRT)
|
|
.Map(dest => dest.PrepardAt, src => src.PREPARDAT)
|
|
.Map(dest => dest.PayableAt, src => src.PAYABLEAT)
|
|
.Map(dest => dest.Service, src => src.SERVICE)
|
|
.Map(dest => dest.Marks, src => src.MARKS)
|
|
.Map(dest => dest.HsCode, src => src.HSCODE)
|
|
.Map(dest => dest.GoodsDescription, src => src.DESCRIPTION)
|
|
.Map(dest => dest.PKGs, src => src.PKGS)
|
|
.Map(dest => dest.KindPKGs, src => src.KINDPKGS)
|
|
.Map(dest => dest.KGs, src => src.KGS)
|
|
.Map(dest => dest.CBM, src => src.CBM)
|
|
.Map(dest => dest.TotalNO, src => src.TOTALNO)
|
|
.Map(dest => dest.CntrTotal, src => src.CNTRTOTAL)
|
|
.Map(dest => dest.CarrierId, src => src.CARRIERID)
|
|
.Map(dest => dest.Carrier, src => src.CARRIER)
|
|
.Map(dest => dest.CargoId, src => src.CARGOID)
|
|
.Map(dest => dest.DClass, src => src.DCLASS)
|
|
.Map(dest => dest.DUnno, src => src.DUNNO)
|
|
.Map(dest => dest.DPage, src => src.DPAGE)
|
|
.Map(dest => dest.DLabel, src => src.DLABEL)
|
|
.Map(dest => dest.DLinkMan, src => src.LINKMAN)
|
|
.Map(dest => dest.TempId, src => src.TEMPID)
|
|
.Map(dest => dest.TempSet, src => src.TEMPSET)
|
|
.Map(dest => dest.Reeferf, src => src.REEFERF)
|
|
.Map(dest => dest.Humidity, src => src.HUMIDITY)
|
|
.Map(dest => dest.TempMin, src => src.TEMPMIN)
|
|
.Map(dest => dest.TempMax, src => src.TEMPMAX)
|
|
.Map(dest => dest.IsContaSOC, src => src.ISCONTAINERSOC)
|
|
.Map(dest => dest.SORemark, src => src.SOREMARK)
|
|
.Map(dest => dest.SIRemark, src => src.SIREMARK)
|
|
.Map(dest => dest.YardRemark, src => src.YARDREMARK)
|
|
.Map(dest => dest.ShipperName, src => src.SHIPPERNAME)
|
|
.Map(dest => dest.ShipperAddr1, src => src.SHIPPERADDR1)
|
|
.Map(dest => dest.ShipperAddr2, src => src.SHIPPERADDR2)
|
|
.Map(dest => dest.ShipperAddr3, src => src.SHIPPERADDR3)
|
|
.Map(dest => dest.ShipperCity, src => src.SHIPPERCITY)
|
|
.Map(dest => dest.ShipperProvice, src => src.SHIPPERPROVINCE)
|
|
.Map(dest => dest.ShipperPostCode, src => src.SHIPPERPOSTCODE)
|
|
.Map(dest => dest.ShipperCountry, src => src.SHIPPERCOUNTRY)
|
|
.Map(dest => dest.ShipperAttn, src => src.SHIPPERATTN)
|
|
.Map(dest => dest.ShipperTel, src => src.SHIPPERTEL)
|
|
.Map(dest => dest.ConsigneeName, src => src.CONSIGNEENAME)
|
|
.Map(dest => dest.ConsigneeAddr1, src => src.CONSIGNEEADDR1)
|
|
.Map(dest => dest.ConsigneeAddr2, src => src.CONSIGNEEADDR2)
|
|
.Map(dest => dest.ConsigneeAddr3, src => src.CONSIGNEEADDR3)
|
|
.Map(dest => dest.ConsigneeCity, src => src.CONSIGNEECITY)
|
|
.Map(dest => dest.ConsigneeProvince, src => src.CONSIGNEEPROVINCE)
|
|
.Map(dest => dest.ConsigneePostCode, src => src.CONSIGNEEPOSTCODE)
|
|
.Map(dest => dest.ConsigneeCountry, src => src.CONSIGNEERCOUNTRY)
|
|
.Map(dest => dest.ConsigneeAttn, src => src.CONSIGNEEATTN)
|
|
.Map(dest => dest.ConsigneeTel, src => src.CONSIGNEETEL)
|
|
.Map(dest => dest.NotifyPartyName, src => src.NOTIFYPARTYNAME)
|
|
.Map(dest => dest.NotifyPartyAddr1, src => src.NOTIFYPARTYADDR1)
|
|
.Map(dest => dest.NotifyPartyAddr2, src => src.NOTIFYPARTYADDR2)
|
|
.Map(dest => dest.NotifyPartyAddr3, src => src.NOTIFYPARTYADDR3)
|
|
.Map(dest => dest.NotifyPartyCity, src => src.NOTIFYPARTYCITY)
|
|
.Map(dest => dest.NotifyPartyProvince, src => src.NOTIFYPARTYPROVINCE)
|
|
.Map(dest => dest.NotifyPartyPostCode, src => src.NOTIFYPARTYPOSTCODE)
|
|
.Map(dest => dest.NotifyPartyCountry, src => src.NOTIFYPARTYCOUNTRY)
|
|
.Map(dest => dest.NotifyPartyAttn, src => src.NOTIFYPARTYATTN)
|
|
.Map(dest => dest.NotifyPartyTel, src => src.NOTIFYPARTYTEL)
|
|
.Map(dest => dest.CustomsER, src => src.CUSTOMSER)
|
|
.Map(dest => dest.TruckER, src => src.TRUCKER)
|
|
.Map(dest => dest.AgentId, src => src.AGENTID)
|
|
.Map(dest => dest.ForwarderId, src => src.FORWARDERID)
|
|
.Map(dest => dest.ShipAgencyId, src => src.SHIPAGENCYID)
|
|
.Map(dest => dest.CustomsERId, src => src.CUSTOMSERID)
|
|
.Map(dest => dest.TruckERId, src => src.TRUCKERID)
|
|
.Map(dest => dest.AgentName, src => src.AGENTNAME)
|
|
.Map(dest => dest.ConsigneeDoorAddr, src => src.CONSIGNEEDOORADDR)
|
|
.Map(dest => dest.ShipperDoorAddr, src => src.SHIPPERDOORADDR)
|
|
.Map(dest => dest.SCACCode, src => src.SCACCODE)
|
|
.Map(dest => dest.ITNCode, src => src.ITNCODE)
|
|
.Map(dest => dest.PrePardAtId, src => src.PREPARDATID)
|
|
.Map(dest => dest.PayableAtId, src => src.PAYABLEATID)
|
|
.Map(dest => dest.CustNo, src => src.CUSTNO)
|
|
.Map(dest => dest.TransportId, src => src.TRANSPORTID)
|
|
.Map(dest => dest.Transport, src => src.TRANSPORT)
|
|
.Map(dest => dest.ThirdPayAddr, src => src.THIRDPAYADDR)
|
|
.Map(dest => dest.YardContractTel, src => src.YARDCONTRACTTEL)
|
|
.Map(dest => dest.YardContractEmail, src => src.YARDCONTRACTEMAIL)
|
|
.Map(dest => dest.FeeSelf, src => src.FEESELF)
|
|
.Map(dest => dest.LaneCode, src => src.LANECODE)
|
|
.Map(dest => dest.LaneName, src => src.LANENAME)
|
|
.Map(dest => dest.FreightPayer, src => src.FREIGHTPAYER);
|
|
|
|
config.ForType<BookingCtn, TaskBookingOrderContaDto>()
|
|
.Map(dest => dest.ContaType, src => src.CTNCODE)
|
|
.Map(dest => dest.ContaTypeName, src => src.CTNALL)
|
|
.Map(dest => dest.TEU, src => src.TEU)
|
|
.Map(dest => dest.ContaNo, src => src.CNTRNO)
|
|
.Map(dest => dest.SealNo, src => src.SEALNO)
|
|
.Map(dest => dest.PKGs, src => src.PKGS)
|
|
.Map(dest => dest.KindPKGs, src => src.KINDPKGS)
|
|
.Map(dest => dest.KGs, src => src.KGS)
|
|
.Map(dest => dest.CBM, src => src.CBM)
|
|
.Map(dest => dest.TareWeight, src => src.TAREWEIGHT)
|
|
.Map(dest => dest.ContaStatus, src => src.CTNSTATUS)
|
|
.Map(dest => dest.WeighType, src => src.WEIGHTYPE)
|
|
.Map(dest => dest.WeighKGs, src => src.WEIGHKGS)
|
|
.Map(dest => dest.WeighAttn, src => src.WEIGHATTN)
|
|
.Map(dest => dest.VGMConnCom, src => src.VGMCONNCOM)
|
|
.Map(dest => dest.WeighTel, src => src.WEIGHTEL)
|
|
.Map(dest => dest.WeighDate, src => src.WEIGHDATE)
|
|
.Map(dest => dest.VGMAddr, src => src.VGMADDR)
|
|
.Map(dest => dest.VGMEmail, src => src.VGMEMAIL)
|
|
.Map(dest => dest.Remark, src => src.REMARK);
|
|
|
|
|
|
config.ForType<BookingCtnDetail, TaskBookingOrderCargoDto>()
|
|
.Map(dest => dest.PKGs, src => src.PKGS)
|
|
.Map(dest => dest.KindPKGs, src => src.KINDPKGS)
|
|
.Map(dest => dest.KGs, src => src.KGS)
|
|
.Map(dest => dest.CBM, src => src.CBM)
|
|
.Map(dest => dest.HSCode, src => src.HSCODE)
|
|
.Map(dest => dest.Marks, src => src.MARKS)
|
|
.Map(dest => dest.Description, src => src.DESCRIPTION)
|
|
.Map(dest => dest.Remark, src => src.REMARK);
|
|
|
|
|
|
config.ForType<TaskBillFeeDetailInfo,TaskInvoiceBillFeeDto > ()
|
|
.Map(dest => dest.SortNo, src => src.SORT_NO)
|
|
.Map(dest => dest.FeeCode, src => src.FEE_CODE)
|
|
.Map(dest => dest.FeeName, src => src.FEE_NAME)
|
|
.Map(dest => dest.Amount, src => src.AMOUNT)
|
|
.Map(dest => dest.Currency, src => src.CURRENCY)
|
|
.Map(dest => dest.S20, src => src.S20)
|
|
.Map(dest => dest.S40, src => src.S40)
|
|
.Map(dest => dest.S45, src => src.S45);
|
|
}
|
|
}
|
|
}
|