|
@ -9,47 +9,6 @@ public partial class StoreEventAutoMapperProfile : Profile |
|
|
{ |
|
|
{ |
|
|
private void TransferLibRequestAutoMapperProfile() |
|
|
private void TransferLibRequestAutoMapperProfile() |
|
|
{ |
|
|
{ |
|
|
CreateMap<TransferLibRequest, TransferLibNote>() |
|
|
|
|
|
.IgnoreAuditedObjectProperties() |
|
|
|
|
|
.ForMember(x => x.RequestNumber, y => y.MapFrom(d => d.Number)) |
|
|
|
|
|
.ForMember(x => x.Confirmed, y => y.MapFrom(d => !d.UseOnTheWayLocation)) |
|
|
|
|
|
.Ignore(x => x.ConfirmTime) |
|
|
|
|
|
.Ignore(x => x.JobNumber) |
|
|
|
|
|
.Ignore(x => x.Number) |
|
|
|
|
|
.Ignore(x => x.Id); |
|
|
|
|
|
|
|
|
|
|
|
CreateMap<TransferLibRequest, TransferLibJob>() |
|
|
|
|
|
.IgnoreAuditedObjectProperties() |
|
|
|
|
|
.ForMember(x => x.RequestNumber, y => y.MapFrom(d => d.Number)) |
|
|
|
|
|
.ForMember(x => x.Confirmed, y => y.MapFrom(d => !d.UseOnTheWayLocation)) |
|
|
|
|
|
.ForMember(dest => dest.Details, option => option.MapFrom(src => src.Details)) |
|
|
|
|
|
.Ignore(x => x.ConfirmTime) |
|
|
|
|
|
.Ignore(x => x.JobNumber) |
|
|
|
|
|
.Ignore(x => x.Number) |
|
|
|
|
|
.Ignore(x => x.Id) |
|
|
|
|
|
.Ignore(x => x.WarehouseCode) |
|
|
|
|
|
//.Ignore(x => x.Details)
|
|
|
|
|
|
.Ignore(x => x.IsAutoComplete) |
|
|
|
|
|
.Ignore(x => x.JobType) |
|
|
|
|
|
.Ignore(x => x.JobDescription) |
|
|
|
|
|
.Ignore(x => x.JobStatus) |
|
|
|
|
|
.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.UpStreamJobNumber) |
|
|
|
|
|
.BeforeMap((notice, input) => input.JobType = EnumJobType.Transfer) |
|
|
|
|
|
.BeforeMap((notice, input) => input.JobStatus = EnumJobStatus.Open) |
|
|
|
|
|
.BeforeMap((notice, input) => input.IsAutoComplete = false) |
|
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
CreateMap<TransferLibRequestDetail, TransferLibJobDetail>() |
|
|
|
|
|
.Ignore(x => x.OnTheWayLocationCode) |
|
|
|
|
|
; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|