|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.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.STATUS, src => src.Status)
|
|
|
|
|
.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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|