20 changed files with 115 additions and 45 deletions
@ -0,0 +1,39 @@ |
|||||
|
using AutoMapper; |
||||
|
using Volo.Abp.AutoMapper; |
||||
|
using Win_in.Sfs.Wms.Inventory.Application.Contracts; |
||||
|
using Win_in.Sfs.Wms.Store.Domain; |
||||
|
|
||||
|
namespace Win_in.Sfs.Wms.Store.Event; |
||||
|
|
||||
|
using Win_in.Sfs.Shared.Application; |
||||
|
using Win_in.Sfs.Shared.Domain.Shared; |
||||
|
using Win_in.Sfs.Wms.Store.Application.Contracts; |
||||
|
|
||||
|
public partial class StoreEventAutoMapperProfile : Profile |
||||
|
{ |
||||
|
private void ContainerRequestMapperProfile() |
||||
|
{ |
||||
|
CreateMap<ContainerRequest, ContainerJobEditInput>() |
||||
|
.ForMember(x => x.ContainerRequestNumber, y => y.MapFrom(d => d.Number)) |
||||
|
.ForMember(x => x.ContainerType, y => y.MapFrom(d => d.ContainerType)) |
||||
|
.ForMember(x => x.SpecificationsType, y => y.MapFrom(d => d.SpecificationsType)) |
||||
|
.ForMember(x => x.IsAutoComplete, y => y.MapFrom(d => d.AutoCompleteJob)) |
||||
|
.ForMember(x => x.JobType, y => y.MapFrom(d => EnumJobType.ContainerTransferJob)) |
||||
|
.ForMember(x => x.JobStatus, y => y.MapFrom(d => EnumJobStatus.Open)) |
||||
|
.Ignore(x => x.WarehouseCode) |
||||
|
.Ignore(x => x.UpStreamJobNumber) |
||||
|
.Ignore(x => x.JobDescription) |
||||
|
.Ignore(x => x.WorkGroupCode) |
||||
|
.Ignore(x => x.Priority) |
||||
|
.Ignore(x => x.PriorityIncrement) |
||||
|
.Ignore(x => x.AcceptUserId) |
||||
|
.Ignore(x => x.AcceptUserName) |
||||
|
.Ignore(x => x.AcceptTime) |
||||
|
.Ignore(x => x.CompleteUserId) |
||||
|
.Ignore(x => x.CompleteUserName) |
||||
|
.Ignore(x => x.CompleteTime) |
||||
|
.Ignore(x => x.Details) |
||||
|
; |
||||
|
|
||||
|
} |
||||
|
} |
Loading…
Reference in new issue