10 changed files with 90 additions and 24 deletions
@ -0,0 +1,44 @@ |
|||||
|
using AutoMapper; |
||||
|
using Volo.Abp.AutoMapper; |
||||
|
using Win_in.Sfs.Shared.Application; |
||||
|
using Win_in.Sfs.Wms.Inventory.Application.Contracts; |
||||
|
using Win_in.Sfs.Wms.Store.Domain; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Event; |
||||
|
|
||||
|
public partial class StoreEventAutoMapperProfile : Profile |
||||
|
{ |
||||
|
private void MesNoteAutoMapperProfile() |
||||
|
{ |
||||
|
CreateMap<MesNoteDetail, TransferLogEditInput>() |
||||
|
.Ignore(x => x.ExtraProperties) |
||||
|
.Ignore(x => x.DocNumber) |
||||
|
.Ignore(x => x.JobNumber) |
||||
|
.Ignore(x => x.Worker) |
||||
|
.Ignore(x => x.TransType) |
||||
|
.Ignore(x => x.TransSubType) |
||||
|
; |
||||
|
|
||||
|
CreateMap<MesNoteDetail, TransactionEditInput>() |
||||
|
.MapNegativeQty() |
||||
|
.ForMember(x => x.PackingCode, y => y.MapFrom(d => d.FromPackingCode)) |
||||
|
.ForMember(x => x.ContainerCode, y => y.MapFrom(d => d.FromContainerCode)) |
||||
|
.ForMember(x => x.Lot, y => y.MapFrom(d => d.FromLot)) |
||||
|
.ForMember(x => x.Status, y => y.MapFrom(d => d.FromStatus)) |
||||
|
.ForMember(x => x.LocationCode, y => y.MapFrom(d => d.FromLocationCode)) |
||||
|
.ForMember(x => x.LocationArea, y => y.MapFrom(d => d.FromLocationArea)) |
||||
|
.ForMember(x => x.LocationGroup, y => y.MapFrom(d => d.FromLocationGroup)) |
||||
|
.ForMember(x => x.LocationErpCode, y => y.MapFrom(d => d.FromLocationErpCode)) |
||||
|
.ForMember(x => x.WarehouseCode, y => y.MapFrom(d => d.FromWarehouseCode)) |
||||
|
.Ignore(x => x.ExtraProperties) |
||||
|
.Ignore(x => x.DocNumber) |
||||
|
.Ignore(x => x.JobNumber) |
||||
|
.Ignore(x => x.Worker) |
||||
|
.Ignore(x => x.ManageType) |
||||
|
.Ignore(x => x.TransType) |
||||
|
.Ignore(x => x.TransSubType) |
||||
|
.Ignore(x => x.TransInOut) |
||||
|
; |
||||
|
} |
||||
|
|
||||
|
} |
Loading…
Reference in new issue