48 lines
1.7 KiB
C#
48 lines
1.7 KiB
C#
using AutoMapper;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using WMS.Web.Core.Dto.Erp.OutStock;
|
|
using WMS.Web.Core.Dto.OutStock;
|
|
using WMS.Web.Core.Dto.OutStockTask;
|
|
using WMS.Web.Domain.Entitys;
|
|
|
|
namespace WMS.Web.Domain.Mappers
|
|
{
|
|
public class OutStockMapper : Profile
|
|
{
|
|
public OutStockMapper()
|
|
{
|
|
CreateMap<OutStockTask, OutStockTask>();
|
|
CreateMap<OutStockTaskDetails, OutStockTaskDetails>();
|
|
CreateMap<OutStockTaskErpDetails, OutStockTaskErpDetails>();
|
|
|
|
CreateMap<OutStock, OutStock>();
|
|
CreateMap<OutStockDetails, OutStockDetails>();
|
|
CreateMap<OutStockErpDetails, OutStockErpDetails>();
|
|
|
|
|
|
CreateMap<SaveOutStockRequest, OutStockDetails>();
|
|
|
|
CreateMap<OutStockTaskDetails, OutStockDetails>()
|
|
.ForMember(x => x.Id, ops => ops.Ignore())
|
|
.ForMember(x => x.Fid, ops => ops.Ignore())
|
|
.ForMember(x => x.Qty, ops => ops.Ignore());
|
|
CreateMap<OutStockTaskErpDetails, OutStockErpDetails>()
|
|
.ForMember(x => x.Id, ops => ops.Ignore())
|
|
.ForMember(x => x.DetailId, ops => ops.Ignore())
|
|
.ForMember(x => x.Qty, ops => ops.Ignore());
|
|
CreateMap<SaveOutStockDetailsRequest, OutStockBoxsDetails>();
|
|
|
|
CreateMap<BoxInventoryDetails, SaveOutStockDetailsRequest>();
|
|
|
|
|
|
CreateMap<OutStockTask, GetOutStockTaskByNoResponse>();
|
|
CreateMap<OutStockTaskDetails, GetOutStockTaskByNoDetailsResponse>();
|
|
|
|
CreateMap<ErpDeliveryNoticeOutStockResultDto, OutStockTaskDetails>();
|
|
CreateMap<ErpDeliveryNoticeOutStockResultDto, OutStockTaskErpDetails>();
|
|
}
|
|
}
|
|
}
|