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.

49 lines
2.2 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);
}
}
}