You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
157 lines
6.6 KiB
157 lines
6.6 KiB
using Win_in.Sfs.Shared.Event;
|
|
using AutoMapper;
|
|
using Volo.Abp.AutoMapper;
|
|
using Win_in.Sfs.Shared.Domain;
|
|
|
|
namespace Win_in.Sfs.Wms.Store.Domain;
|
|
|
|
public class ETOAutoMapperProfile : Profile
|
|
{
|
|
public ETOAutoMapperProfile()
|
|
{
|
|
|
|
|
|
// CreateMap<CountPlan, CountPlanETO>() ;
|
|
// CreateMap<CountPlan, CountPlanUpdatedETO>();
|
|
// CreateMap<CountPlan, CountPlanClosedETO>();
|
|
// CreateMap<CountPlan, CountPlanStartedETO>();
|
|
// CreateMap<CountPlanDetail, CountPlanDetailETO>()
|
|
// .ForMember(x => x.InventoryStatus, y => y.MapFrom(d => d.Status))
|
|
// ;
|
|
//
|
|
//
|
|
// CreateMap<CountPlanDetailETO, CountNoteDetail>()
|
|
// .ForMember(x => x.CountPlanNumber, y => y.MapFrom(d => d.Number))
|
|
// .ForMember(x => x.Status, y => y.MapFrom(d => d.InventoryStatus))
|
|
// .Ignore(x => x.MasterID)
|
|
// .Ignore(x => x.LastModificationTime)
|
|
// .Ignore(x => x.LastModifierId)
|
|
// .Ignore(x => x.CreationTime)
|
|
// .Ignore(x => x.CreatorId)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.WarehouseCode)
|
|
// ;
|
|
|
|
|
|
CreateMap<UnplannedIssueRequest, UnplannedIssueJobCreateInput>
|
|
|
|
//
|
|
// CreateMap<PurchaseReceiptNote, PurchaseReceiptNoteETO>();
|
|
//
|
|
// CreateMap<PurchaseReceiptNoteDetail, PurchaseReceiptNoteDetailETO>()
|
|
// .Ignore(x => x.Status
|
|
// );
|
|
//
|
|
//
|
|
// CreateMap<PurchaseReceiptNoteETO, InspectNotice>()
|
|
// .ForMember(x => x.ReceiptNumber, y => y.MapFrom(d => d.Number))
|
|
// .Ignore(x => x.Remark)
|
|
// .Ignore(x => x.LastModificationTime)
|
|
// .Ignore(x => x.LastModifierId)
|
|
// .Ignore(x => x.CreationTime)
|
|
// .Ignore(x => x.CreatorId)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.SummaryDetails)
|
|
// ;
|
|
// CreateMap<PurchaseReceiptNoteDetailETO, InspectNoticeDetail>()
|
|
// .ForMember(x => x.ReceiveQty, y => y.MapFrom(d => d.Qty))
|
|
// .Ignore(x => x.InspectType)
|
|
// .Ignore(x => x.SamplePercent)
|
|
// .Ignore(x => x.InspectQty)
|
|
// .Ignore(x => x.MasterID)
|
|
// .Ignore(x => x.LastModificationTime)
|
|
// .Ignore(x => x.LastModifierId)
|
|
// .Ignore(x => x.CreationTime)
|
|
// .Ignore(x => x.CreatorId)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x=>x.Attributes)
|
|
// ;
|
|
|
|
|
|
|
|
// CreateMap<InspectNoteDetail, PutawayJobDetailETO>()
|
|
// .Ignore(x => x.FromLocationCode)
|
|
// .Ignore(x => x.RecommendContainerCode)
|
|
// .Ignore(x => x.HandledContainerCode)
|
|
// .Ignore(x => x.RecommendPackingCode)
|
|
// .Ignore(x => x.HandledPackingCode)
|
|
// .Ignore(x => x.RecommendBatch)
|
|
// .Ignore(x => x.RecommendLot)
|
|
// .Ignore(x => x.HandledBatch)
|
|
// .Ignore(x => x.HandledLot)
|
|
// .Ignore(x => x.RecommendLocationCode)
|
|
// .Ignore(x => x.RecommendQty)
|
|
// .Ignore(x => x.HandledLocationCode)
|
|
// .Ignore(x => x.HandledQty)
|
|
// .Ignore(x => x.Status)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// ;
|
|
|
|
// CreateMap<InspectNotice, InspectNoticeETO>()
|
|
// ;
|
|
// CreateMap<InspectNoticeDetail, InspectNoticeDetailETO>()
|
|
// .ForMember(x => x.Item, y => y.MapFrom(d => new Item(d.Item)))
|
|
// .ForMember(x => x.Batch, y => y.MapFrom(d => new Batch(d.Batch)))
|
|
// .ForMember(x => x.ReceiveQty, y => y.MapFrom(d => new UomQty(d.ReceiveQty)))
|
|
// .ForMember(x => x.StdPack, y => y.MapFrom(d => new PackInfo(d.StdPack)))
|
|
// ;
|
|
// CreateMap<InspectNoticeSummaryDetail, InspectNoticeSummaryDetailETO>()
|
|
// .ForMember(x => x.Item, y => y.MapFrom(d => new Item(d.Item)))
|
|
// .ForMember(x => x.Batch, y => y.MapFrom(d => new Batch(d.Batch)))
|
|
// .ForMember(x => x.ReceiveQty, y => y.MapFrom(d => new UomQty(d.ReceiveQty)))
|
|
// .ForMember(x => x.StdPack, y => y.MapFrom(d => new PackInfo(d.StdPack)))
|
|
// ;
|
|
|
|
/*CreateMap<ArriveNotice, ArriveNoticeETO>()
|
|
;
|
|
CreateMap<ArriveNoticeDetail, ArriveNoticeDetailETO>()
|
|
.ForMember(x => x.Item, y => y.MapFrom(d => new Item(d.Item)))
|
|
.ForMember(x => x.Batch, y => y.MapFrom(d => new Batch(d.Batch)))
|
|
.ForMember(x => x.Qty, y => y.MapFrom(d => new UomQty(d.Qty)))
|
|
.ForMember(x => x.StdPack, y => y.MapFrom(d => new PackInfo(d.StdPack)))
|
|
;*/
|
|
|
|
// CreateMap<ProductReceiptNote, ProductReceiptNoteETO>();
|
|
// CreateMap<ProductReceiptNoteDetail, ProductReceiptNoteDetailETO>()
|
|
// .ForMember(x => x.Item, y => y.MapFrom(d => new Item(d.Item)))
|
|
// .ForMember(x => x.Batch, y => y.MapFrom(d => new Batch(d.Batch)))
|
|
// .ForMember(x => x.Qty, y => y.MapFrom(d => new UomQty(d.Qty)))
|
|
// .ForMember(x => x.StdPack, y => y.MapFrom(d => new PackInfo(d.StdPack)))
|
|
// ;
|
|
|
|
// CreateMap<InspectNote, InspectNoteETO>()
|
|
// ;
|
|
//
|
|
// CreateMap<InspectNoteDetail, InspectNoteDetailETO>()
|
|
// .ForMember(x => x.Item, y => y.MapFrom(d => new Item(d.Item)))
|
|
// .ForMember(x => x.Batch, y => y.MapFrom(d => new Batch(d.Batch)))
|
|
// .ForMember(x => x.ReceiveQty, y => y.MapFrom(d => new UomQty(d.ReceiveQty)))
|
|
// .ForMember(x => x.StdPack, y => y.MapFrom(d => new PackInfo(d.StdPack)))
|
|
// ;
|
|
|
|
//CreateMap<PutawayNote, PutawayNoteETO>()
|
|
// ;
|
|
//CreateMap<PutawayNoteDetail, PutawayNoteDetailETO>()
|
|
// ;
|
|
|
|
// //要料申请
|
|
// CreateMap<MaterialRequest, MaterialRequestHandledETO>()
|
|
// ;
|
|
// CreateMap<MaterialRequestDetail, MaterialRequestDetailETO>()
|
|
// .Ignore(x => x.WarehouseCode)
|
|
// .Ignore(x => x.RequestLocationCode)
|
|
// ;
|
|
|
|
// CreateMap<ProductionPlan, ProductionPlanStartedETO>();
|
|
// CreateMap<ProductionPlanDetail, ProductionPlanDetailETO>();
|
|
|
|
// CreateMap<DeliverRequest, DeliverRequestHandledETO>();
|
|
// CreateMap<DeliverRequest, DeliverRequestOpenedETO>();
|
|
// CreateMap<DeliverRequest, DeliverRequestClosedETO>();
|
|
// CreateMap<DeliverRequestDetail, DeliverRequestDetailETO>();
|
|
}
|
|
}
|