|
|
|
|
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
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class TrackingSystemMapper : IRegister
|
|
|
|
|
{
|
|
|
|
|
public void Register(TypeAdapterConfig config)
|
|
|
|
|
{
|
|
|
|
|
config.ForType<ServiceProjectBaseDto, ServiceProjectBaseInfo>()
|
|
|
|
|
.Map(dest => dest.PK_ID, src => src.PKId)
|
|
|
|
|
.Map(dest => dest.SERVICE_PROJECT_CODE, src => src.ServiceProjectCode)
|
|
|
|
|
.Map(dest => dest.SERVICE_PROJECT_NAME, src => src.ServiceProjectName)
|
|
|
|
|
.Map(dest => dest.SORT_NO, src => src.SortNo)
|
|
|
|
|
.Map(dest => dest.SERVICE_PROJECT_NOTE, src => src.ServiceProjectNote);
|
|
|
|
|
|
|
|
|
|
config.ForType<ServiceProjectBaseInfo, ServiceProjectBaseShowDto>()
|
|
|
|
|
.Map(dest => dest.PKId, src => src.PK_ID)
|
|
|
|
|
.Map(dest => dest.ServiceProjectCode, src => src.SERVICE_PROJECT_CODE)
|
|
|
|
|
.Map(dest => dest.ServiceProjectName, src => src.SERVICE_PROJECT_NAME)
|
|
|
|
|
.Map(dest => dest.SortNo, src => src.SORT_NO)
|
|
|
|
|
.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)
|
|
|
|
|
.Map(dest => dest.ServiceProjectNote, src => src.SERVICE_PROJECT_NOTE);
|
|
|
|
|
|
|
|
|
|
config.ForType<ServiceProjectBaseInfo, ServiceProjectBasePageDto>()
|
|
|
|
|
.Map(dest => dest.PKId, src => src.PK_ID)
|
|
|
|
|
.Map(dest => dest.ServiceProjectCode, src => src.SERVICE_PROJECT_CODE)
|
|
|
|
|
.Map(dest => dest.ServiceProjectName, src => src.SERVICE_PROJECT_NAME)
|
|
|
|
|
.Map(dest => dest.SortNo, src => src.SORT_NO)
|
|
|
|
|
.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)
|
|
|
|
|
.Map(dest => dest.ServiceProjectNote, src => src.SERVICE_PROJECT_NOTE);
|
|
|
|
|
|
|
|
|
|
config.ForType<StatusSkuBaseDto, StatusSkuBaseInfo>()
|
|
|
|
|
.Map(dest => dest.PK_ID, src => src.PKId)
|
|
|
|
|
.Map(dest => dest.STATUS_SKU_CODE, src => src.StatusSKUCode)
|
|
|
|
|
.Map(dest => dest.STATUS_SKU_NAME, src => src.StatusSKUName)
|
|
|
|
|
.Map(dest => dest.SORT_NO, src => src.SortNo)
|
|
|
|
|
.Map(dest => dest.STATUS_SKU_NOTE, src => src.StatusSKUNote)
|
|
|
|
|
.Map(dest => dest.BACKGROUND_COLOR, src => src.BackgroundColor);
|
|
|
|
|
|
|
|
|
|
config.ForType<StatusSkuBaseInfo, StatusSkuBaseShowDto>()
|
|
|
|
|
.Map(dest => dest.PKId, src => src.PK_ID)
|
|
|
|
|
.Map(dest => dest.StatusSKUCode, src => src.STATUS_SKU_CODE)
|
|
|
|
|
.Map(dest => dest.StatusSKUName, src => src.STATUS_SKU_NAME)
|
|
|
|
|
.Map(dest => dest.SortNo, src => src.SORT_NO)
|
|
|
|
|
.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)
|
|
|
|
|
.Map(dest => dest.StatusSKUNote, src => src.STATUS_SKU_NOTE)
|
|
|
|
|
.Map(dest => dest.BackgroundColor, src => src.BACKGROUND_COLOR);
|
|
|
|
|
|
|
|
|
|
config.ForType<StatusSkuBaseInfo, StatusSkuBasePageDto>()
|
|
|
|
|
.Map(dest => dest.PKId, src => src.PK_ID)
|
|
|
|
|
.Map(dest => dest.StatusSKUCode, src => src.STATUS_SKU_CODE)
|
|
|
|
|
.Map(dest => dest.StatusSKUName, src => src.STATUS_SKU_NAME)
|
|
|
|
|
.Map(dest => dest.SortNo, src => src.SORT_NO)
|
|
|
|
|
.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)
|
|
|
|
|
.Map(dest => dest.StatusSKUNote, src => src.STATUS_SKU_NOTE)
|
|
|
|
|
.Map(dest => dest.BackgroundColor, src => src.BACKGROUND_COLOR);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|