|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|