|
|
@ -6,6 +6,8 @@ using Win_in.Sfs.Wms.Store.Domain; |
|
|
|
|
|
|
|
namespace Win_in.Sfs.Wms.Store.Event; |
|
|
|
|
|
|
|
using DocumentFormat.OpenXml.Wordprocessing; |
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
|
using Win_in.Sfs.Shared.Domain.Shared; |
|
|
|
using Win_in.Sfs.Wms.Inventory.Application.Contracts; |
|
|
|
|
|
|
@ -33,6 +35,27 @@ public partial class StoreEventAutoMapperProfile : Profile |
|
|
|
.Ignore(x => x.CompleteTime) |
|
|
|
.Ignore(x => x.UpStreamJobNumber) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.Ignore(x => x.ItemCode ) |
|
|
|
.Ignore(x => x.ItemName ) |
|
|
|
.Ignore(x => x.ItemDesc1 ) |
|
|
|
.Ignore(x => x.ItemDesc2 ) |
|
|
|
.Ignore(x => x.FromErpLocationCode ) |
|
|
|
.Ignore(x => x.Qty ) |
|
|
|
.Ignore(x => x.IsHasPackingCode ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.Ignore(x => x.CompleteUserId) |
|
|
|
.Ignore(x => x.CompleteUserName) |
|
|
|
.Ignore(x => x.CompleteTime) |
|
|
|
.Ignore(x => x.UpStreamJobNumber) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.BeforeMap((notice, input) => input.JobType = EnumJobType.UnplannedIssueJob) |
|
|
|
.BeforeMap((notice, input) => input.JobStatus = EnumJobStatus.Open) |
|
|
|
.BeforeMap((notice, input) => input.IsAutoComplete = false) |
|
|
@ -61,7 +84,7 @@ public partial class StoreEventAutoMapperProfile : Profile |
|
|
|
|
|
|
|
CreateMap<UnplannedIssueRequest, UnplannedIssueNoteEditInput>() |
|
|
|
.ForMember(x => x.UnplannedIssueRequestNumber, y => y.MapFrom(d => d.Number)).Ignore(x => x.JobNumber) |
|
|
|
; |
|
|
|
.Ignore(x => x.ItemCode).Ignore(x=>x.ItemDesc1).Ignore(x=>x.ItemDesc2).Ignore(x=>x.Qty).Ignore(x=>x.FromErpLocationCode).Ignore(x=>x.ItemName); |
|
|
|
|
|
|
|
CreateMap<UnplannedIssueRequestDetail, UnplannedIssueNoteDetailInput>() |
|
|
|
.Ignore(x => x.ReasonCode) |
|
|
|