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.
640 lines
29 KiB
640 lines
29 KiB
using Win_in.Sfs.Shared.Event;
|
|
using AutoMapper;
|
|
using Volo.Abp.AutoMapper;
|
|
using Win_in.Sfs.Shared.Domain;
|
|
using Win_in.Sfs.Wms.Store.Application.Contracts;
|
|
using Win_in.Sfs.Wms.Inventory.Application.Contracts;
|
|
using Win_in.Sfs.Wms.Job.Domain;
|
|
|
|
namespace Win_in.Sfs.Wms.Job.Domain
|
|
{
|
|
public class ETOAutoMapperProfile : Profile
|
|
{
|
|
public ETOAutoMapperProfile()
|
|
{
|
|
|
|
#region count 系列
|
|
|
|
//CreateMap<CountJob, CountAdjustNoteCreateInput>()
|
|
// .ForMember(x => x.CountJobNumber, y => y.MapFrom(d => d.Number))
|
|
// ;
|
|
|
|
//
|
|
//
|
|
// CreateMap<CountPlanUpdatedETO, CountPlanDTO>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.PlanTime)
|
|
// .Ignore(x => x.Worker)
|
|
// .Ignore(x => x.WarehouseCode)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.Id); //只有部分明细需要映射,所以在主表忽略掉;
|
|
//
|
|
//
|
|
//
|
|
// CreateMap<CountPlanStartedETO, CountPlanDTO>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.Id); //只有部分明细需要映射,所以在主表忽略掉;
|
|
// ;
|
|
//
|
|
// CreateMap<CountPlanDetailETO, CountPlanDetailDTO>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .ForMember(x => x.ItemId, y => y.MapFrom(d => d.Item.Id))
|
|
// .ForMember(x => x.ItemName, y => y.MapFrom(d => d.Item.Name))
|
|
// .ForMember(x => x.ItemDesc1, y => y.MapFrom(d => d.Item.Desc1))
|
|
// .ForMember(x => x.ItemDesc2, y => y.MapFrom(d => d.Item.Desc2))
|
|
// .ForMember(x => x.SupplierBatch, y => y.MapFrom(d => d.Batch.SupplierBatch)).ForMember(x => x.ArriveDate, y => y.MapFrom(d => d.Batch.ArriveDate))
|
|
// .ForMember(x => x.ProduceDate, y => y.MapFrom(d => d.Batch.ProduceDate))
|
|
// .ForMember(x => x.ExpireDate, y => y.MapFrom(d => d.Batch.ExpireDate))
|
|
// .ForMember(x => x.InventoryUom, y => y.MapFrom(d => d.InventoryQty.Uom))
|
|
// .ForMember(x => x.InventoryQty, y => y.MapFrom(d => d.InventoryQty.Qty))
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.Id);
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
//CreateMap<InspectJobETO, InspectJob>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.AcceptUserName)
|
|
// .Ignore(x => x.CompleteUserName)
|
|
// .Ignore(x => x.Worker)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.Id)
|
|
// ;
|
|
//CreateMap<InspectJobDetailETO, InspectJobDetail>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x=>x.re)
|
|
// .Ignore(x => x.Id)
|
|
// ;
|
|
//CreateMap<InspectJobSummaryDetailETO, InspectJobSummaryDetail>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.Id)
|
|
// ;
|
|
|
|
|
|
//CreateMap<InspectNoticeETO, InspectJob>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.Details)
|
|
// .Ignore(x => x.SummaryDetails)
|
|
// .Ignore(x => x.NextAction)
|
|
// .Ignore(x => x.UpStreamJobNumber)
|
|
// .Ignore(x => x.JobDescription)
|
|
// .Ignore(x => x.JobType)
|
|
// .Ignore(x => x.JobStatus)
|
|
// .Ignore(x => x.Priority)
|
|
// .Ignore(x => x.PriorityIncrement)
|
|
// .Ignore(x => x.WorkGroupCode)
|
|
// .Ignore(x => x.IsAutoComplete)
|
|
// .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.Remark)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.Id)
|
|
// .ForMember(x => x.InspectNumber, y => y.MapFrom(d => d.Number))
|
|
// ;
|
|
|
|
//CreateMap<InspectNoticeDetailETO, InspectJobDetail>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.Status)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.MasterID)
|
|
// .Ignore(x => x.Number)
|
|
// .Ignore(x => x.GoodQty)
|
|
// .Ignore(x => x.FailedReason)
|
|
// .Ignore(x => x.FailedQty)
|
|
// .Ignore(x => x.CrackQty)
|
|
// .Ignore(x => x.InspectUser)
|
|
// .Ignore(x => x.NotPassedQty)
|
|
// .Ignore(x => x.HandledLot)
|
|
// .Ignore(x => x.HandledPackingCode)
|
|
// .Ignore(x => x.HandledBatch)
|
|
// .Ignore(x => x.HandledLocationCode)
|
|
// .Ignore(x => x.HandledQty)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.HandledContainerCode)
|
|
// .Ignore(x => x.RecommendQty)
|
|
// .ForMember(x => x.RecommendLot, y => y.MapFrom(d => d.Lot))
|
|
// .ForMember(x => x.RecommendBatch, y => y.MapFrom(d => d.Batch))
|
|
// .ForMember(x => x.RecommendContainerCode, y => y.MapFrom(d => d.ContainerCode))
|
|
// .ForMember(x => x.RecommendPackingCode, y => y.MapFrom(d => d.PackingCode))
|
|
// .ForMember(x => x.RecommendLocationCode, y => y.MapFrom(d => d.LocationCode))
|
|
// ;
|
|
|
|
//CreateMap<InspectNoticeSummaryDetailETO, InspectJobSummaryDetail>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.Status)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.MasterID)
|
|
// .Ignore(x => x.Number)
|
|
// .Ignore(x => x.GoodQty)
|
|
// .Ignore(x => x.FailedReason)
|
|
// .Ignore(x => x.FailedQty)
|
|
// .Ignore(x => x.CrackQty)
|
|
// .Ignore(x => x.InspectUser)
|
|
// .Ignore(x => x.NotPassedQty)
|
|
// .Ignore(x => x.HandledLot)
|
|
// .Ignore(x => x.HandledPackingCode)
|
|
// .Ignore(x => x.HandledBatch)
|
|
// .Ignore(x => x.HandledLocationCode)
|
|
// .Ignore(x => x.HandledQty)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.HandledContainerCode)
|
|
// .Ignore(x => x.RecommendQty)
|
|
// .ForMember(x => x.RecommendLot, y => y.MapFrom(d => d.Lot))
|
|
// .ForMember(x => x.RecommendBatch, y => y.MapFrom(d => d.Batch))
|
|
// .ForMember(x => x.RecommendContainerCode, y => y.MapFrom(d => d.ContainerCode))
|
|
// .ForMember(x => x.RecommendPackingCode, y => y.MapFrom(d => d.PackingCode))
|
|
// .ForMember(x => x.RecommendLocationCode, y => y.MapFrom(d => d.LocationCode))
|
|
// ;
|
|
|
|
//CreateMap<IssueJob, IssueNoteCreateInput>()
|
|
// .ForMember(x => x.JobNumber, y => y.MapFrom(d => d.Number));
|
|
|
|
//CreateMap<IssueJobDetail, IssueNoteDetailInput>()
|
|
// .ForMember(x => x.Batch, y => y.MapFrom(d => d.HandledBatch))
|
|
// .ForMember(x => x.ToLot, y => y.MapFrom(d => d.HandledLot))
|
|
// .ForMember(x => x.FromLot, y => y.MapFrom(d => d.HandledLot))
|
|
// .ForMember(x => x.Qty, y => y.MapFrom(d => d.HandledQty))
|
|
// .ForMember(x => x.FromLocationCode, y => y.MapFrom(d => d.HandledLocationCode))
|
|
// .ForMember(x => x.ToPackingCode, y => y.MapFrom(d => d.HandledPackingCode))
|
|
// .ForMember(x => x.FromPackingCode, y => y.MapFrom(d => d.HandledPackingCode))
|
|
// .ForMember(x => x.FromContainerCode, y => y.MapFrom(d => d.HandledContainerCode))
|
|
// .ForMember(x => x.ToContainerCode, y => y.MapFrom(d => d.HandledContainerCode))
|
|
// .ForMember(x => x.FromWarehouseCode, y => y.MapFrom(d => d.WarehouseCode))
|
|
// .ForMember(x => x.ToWarehouseCode, y => y.MapFrom(d => d.WarehouseCode))
|
|
|
|
// .ForMember(x => x.FromWarehouseCode, y => y.MapFrom(d => d.WarehouseCode))
|
|
// .ForMember(x => x.FromStatus, y => y.MapFrom(d => d.Status))
|
|
// .ForMember(x => x.ToStatus, y => y.MapFrom(d => d.Status))
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.IssueTime)
|
|
// .Ignore(x => x.Remark)
|
|
// ;
|
|
|
|
|
|
|
|
//CreateMap<ArriveNoticeETO, PurchaseReceiptJob>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.ArriveNoticeNumber)
|
|
// .Ignore(x => x.UpStreamJobNumber)
|
|
// .Ignore(x => x.JobDescription)
|
|
// .Ignore(x => x.JobType)
|
|
// .Ignore(x => x.JobStatus)
|
|
// .Ignore(x => x.Priority)
|
|
// .Ignore(x => x.PriorityIncrement)
|
|
// .Ignore(x => x.WorkGroupCode)
|
|
// .Ignore(x => x.IsAutoComplete)
|
|
// .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.Remark)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.Type)
|
|
// ;
|
|
|
|
//CreateMap<ArriveNoticeDetailETO, PurchaseReceiptJobDetail>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.Status)
|
|
// .Ignore(x => x.RecommendLocationCode)
|
|
// .Ignore(x => x.HandledContainerCode)
|
|
// .Ignore(x => x.HandledLocationCode)
|
|
// .Ignore(x => x.HandledQty)
|
|
// .Ignore(x => x.MasterID)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.HandledPackingCode)
|
|
// .Ignore(x => x.HandledBatch)
|
|
// .Ignore(x => x.HandledLot)
|
|
// .Ignore(x => x.TenantId)
|
|
// .ForMember(x => x.RecommendLot, y => y.MapFrom(d => d.Lot))
|
|
// .ForMember(x => x.RecommendBatch, y => y.MapFrom(d => d.Batch))
|
|
// .ForMember(x => x.RecommendQty, y => y.MapFrom(d => d.Qty))
|
|
// .ForMember(x => x.RecommendContainerCode, y => y.MapFrom(d => d.ContainerCode))
|
|
// .ForMember(x => x.RecommendPackingCode, y => y.MapFrom(d => d.PackingCode))
|
|
// ;
|
|
|
|
|
|
|
|
|
|
|
|
//CreateMap<InspectPutawayJobETO, PutawayJob>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.PutawayJobType)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.AcceptUserName)
|
|
// .Ignore(x => x.CompleteUserName)
|
|
// ;
|
|
//CreateMap<PutawayJobDetailETO, PutawayJobDetail>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.Id)
|
|
// ;
|
|
|
|
//CreateMap<MaterialRequestOpenedETO, IssueJob>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .ForMember(x => x.MaterialRequestNumber, y => y.MapFrom(d => d.Number))
|
|
// .Ignore(x => x.UpStreamJobNumber)
|
|
// .Ignore(x => x.JobDescription)
|
|
// .Ignore(x => x.JobType)
|
|
// .Ignore(x => x.JobStatus)
|
|
// .Ignore(x => x.Priority)
|
|
// .Ignore(x => x.PriorityIncrement)
|
|
// .Ignore(x => x.WorkGroupCode)
|
|
// .Ignore(x => x.IsAutoComplete)
|
|
// .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.Remark)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.ProdLine)
|
|
// .Ignore(x => x.Details)
|
|
// ;
|
|
//CreateMap<MaterialRequestHandledETO, IssueJob>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .ForMember(x => x.MaterialRequestNumber, y => y.MapFrom(d => d.Number))
|
|
// .Ignore(x => x.UpStreamJobNumber)
|
|
// .Ignore(x => x.JobDescription)
|
|
// .Ignore(x => x.JobType)
|
|
// .Ignore(x => x.JobStatus)
|
|
// .Ignore(x => x.Priority)
|
|
// .Ignore(x => x.PriorityIncrement)
|
|
// .Ignore(x => x.WorkGroupCode)
|
|
// .Ignore(x => x.IsAutoComplete)
|
|
// .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.Remark)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.ProdLine)
|
|
// .Ignore(x => x.Details)
|
|
// ;
|
|
//CreateMap<MaterialRequestDetailETO, IssueJobDetail>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .ForMember(x => x.RequestLocationCode, y => y.MapFrom(d => d.ToLocationCode))
|
|
// .ForMember(x => x.Item, y => y.MapFrom(d => new Item(d.Item)))
|
|
// .Ignore(x => x.StdPack)
|
|
// .Ignore(x => x.RecommendContainerCode)
|
|
// .Ignore(x => x.RecommendPackingCode)
|
|
// .Ignore(x => x.RecommendBatch)
|
|
// .Ignore(x => x.RecommendLot)
|
|
// .Ignore(x => x.RecommendLocationCode)
|
|
// .Ignore(x => x.RecommendQty)
|
|
// .Ignore(x => x.HandledContainerCode)
|
|
// .Ignore(x => x.HandledPackingCode)
|
|
// .Ignore(x => x.HandledBatch)
|
|
// .Ignore(x => x.HandledLot)
|
|
// .Ignore(x => x.HandledLocationCode)
|
|
// .Ignore(x => x.HandledQty)
|
|
// .Ignore(x => x.MasterID)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.Remark)
|
|
// .Ignore(x => x.Operation)
|
|
// .Ignore(x => x.DistributionType)
|
|
// .Ignore(x => x.TruncType)
|
|
// .Ignore(x => x.RoundedQty)
|
|
// .Ignore(x => x.PlannedSplitRule)
|
|
// .Ignore(x => x.PlanBeginTime)
|
|
// .Ignore(x => x.DeliveryQty)
|
|
// .Ignore(x => x.ProdLine)
|
|
// ;
|
|
|
|
//CreateMap<ProductReceiptNoteETO, PutawayJob>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .ForMember(x => x.ProductReceiptNumber, y => y.MapFrom(d => d.Number))
|
|
// .Ignore(x => x.PutawayJobType)
|
|
// .Ignore(x => x.SupplierCode)
|
|
// .Ignore(x => x.InspectNumber)
|
|
// .Ignore(x => x.ReceiptNumber)
|
|
// .Ignore(x => x.ArriveNoticeNumber)
|
|
// .Ignore(x => x.AsnNumber)
|
|
// .Ignore(x => x.RpNumber)
|
|
// .Ignore(x => x.PoNumber)
|
|
// .Ignore(x => x.UpStreamJobNumber)
|
|
// .Ignore(x => x.JobDescription)
|
|
// .Ignore(x => x.JobType)
|
|
// .Ignore(x => x.JobStatus)
|
|
// .Ignore(x => x.Priority)
|
|
// .Ignore(x => x.PriorityIncrement)
|
|
// .Ignore(x => x.WorkGroupCode)
|
|
// .Ignore(x => x.IsAutoComplete)
|
|
// .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.Remark)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// ;
|
|
//CreateMap<ProductReceiptNoteDetailETO, PutawayJobDetail>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.PoNumber)
|
|
// .Ignore(x => x.PoLine)
|
|
// .Ignore(x => x.FromLocationCode)
|
|
// .Ignore(x => x.Status)
|
|
// .Ignore(x => x.StdPack)
|
|
// .Ignore(x => x.RecommendContainerCode)
|
|
// .Ignore(x => x.RecommendPackingCode)
|
|
// .Ignore(x => x.RecommendBatch)
|
|
// .Ignore(x => x.RecommendLot)
|
|
// .Ignore(x => x.RecommendLocationCode)
|
|
// .Ignore(x => x.RecommendQty)
|
|
// .Ignore(x => x.HandledContainerCode)
|
|
// .Ignore(x => x.HandledPackingCode)
|
|
// .Ignore(x => x.HandledBatch)
|
|
// .Ignore(x => x.HandledLot)
|
|
// .Ignore(x => x.HandledLocationCode)
|
|
// .Ignore(x => x.HandledQty)
|
|
// .Ignore(x => x.MasterID)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.Remark)
|
|
// .Ignore(x => x.LocationErpCode)
|
|
// ;
|
|
|
|
|
|
|
|
|
|
|
|
//CreateMap<ProductionPlanStartedETO, ProductReceiveJob>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .ForMember(x => x.ProductionPlanNumber, y => y.MapFrom(d => d.Number))
|
|
// .Ignore(x => x.Details)
|
|
// .Ignore(x => x.UpStreamJobNumber)
|
|
// .Ignore(x => x.JobDescription)
|
|
// .Ignore(x => x.JobType)
|
|
// .Ignore(x => x.JobStatus)
|
|
// .Ignore(x => x.Priority)
|
|
// .Ignore(x => x.PriorityIncrement)
|
|
// .Ignore(x => x.WorkGroupCode)
|
|
// .Ignore(x => x.IsAutoComplete)
|
|
// .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.Remark)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.Worker)
|
|
// .Ignore(x => x.WarehouseCode)
|
|
// ;
|
|
|
|
//CreateMap<ProductionPlanDetailETO, ProductReceiveJobDetail>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.ProdLine)
|
|
// .Ignore(x => x.RawLocation)
|
|
// .Ignore(x => x.WarehouseCode)
|
|
// .Ignore(x => x.StdPack)
|
|
// .Ignore(x => x.Status)
|
|
// .Ignore(x => x.RecommendContainerCode)
|
|
// .Ignore(x => x.RecommendPackingCode)
|
|
// .Ignore(x => x.RecommendBatch)
|
|
// .Ignore(x => x.RecommendLot)
|
|
// .Ignore(x => x.RecommendLocationCode)
|
|
// .Ignore(x => x.RecommendQty)
|
|
// .Ignore(x => x.HandledContainerCode)
|
|
// .Ignore(x => x.HandledPackingCode)
|
|
// .Ignore(x => x.HandledBatch)
|
|
// .Ignore(x => x.HandledLot)
|
|
// .Ignore(x => x.HandledLocationCode)
|
|
// .Ignore(x => x.HandledQty)
|
|
// .Ignore(x => x.MasterID)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.Remark)
|
|
// .Ignore(x => x.Id)
|
|
// ;
|
|
|
|
|
|
|
|
//CreateMap<DeliverRequestHandledETO, DeliverJob>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .ForMember(x => x.DeliverRequestNumber, y => y.MapFrom(d => d.Number))
|
|
// .Ignore(x => x.Details)
|
|
// .Ignore(x => x.Remark)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.UpStreamJobNumber)
|
|
// .Ignore(x => x.JobDescription)
|
|
// .Ignore(x => x.JobType)
|
|
// .Ignore(x => x.JobStatus)
|
|
// .Ignore(x => x.Priority)
|
|
// .Ignore(x => x.PriorityIncrement)
|
|
// .Ignore(x => x.WorkGroupCode)
|
|
// .Ignore(x => x.WarehouseCode)
|
|
// .Ignore(x => x.IsAutoComplete)
|
|
// .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.Worker)
|
|
// .Ignore(x => x.CustomerAddressCode)
|
|
// ;
|
|
|
|
//CreateMap<DeliverRequestOpenedETO, DeliverJob>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .ForMember(x => x.DeliverRequestNumber, y => y.MapFrom(d => d.Number))
|
|
// .Ignore(x => x.Details)
|
|
// .Ignore(x => x.Remark)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.UpStreamJobNumber)
|
|
// .Ignore(x => x.JobDescription)
|
|
// .Ignore(x => x.JobType)
|
|
// .Ignore(x => x.JobStatus)
|
|
// .Ignore(x => x.Priority)
|
|
// .Ignore(x => x.PriorityIncrement)
|
|
// .Ignore(x => x.WorkGroupCode)
|
|
// .Ignore(x => x.WarehouseCode)
|
|
// .Ignore(x => x.IsAutoComplete)
|
|
// .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.Worker)
|
|
// .Ignore(x => x.CustomerAddressCode)
|
|
// ;
|
|
|
|
|
|
#region 质检测试用
|
|
|
|
CreateMap<InspectNoticeSummaryDetailInputN, InspectJobSummaryDetail>()
|
|
.IgnoreAuditedObjectProperties()
|
|
.Ignore(x => x.Status)
|
|
.Ignore(x => x.Id)
|
|
.Ignore(x => x.MasterID)
|
|
.Ignore(x => x.Number)
|
|
.Ignore(x => x.GoodQty)
|
|
.Ignore(x => x.FailedReason)
|
|
.Ignore(x => x.FailedQty)
|
|
.Ignore(x => x.CrackQty)
|
|
.Ignore(x => x.InspectUser)
|
|
.Ignore(x => x.NotPassedQty)
|
|
.Ignore(x => x.HandledLot)
|
|
.Ignore(x => x.HandledPackingCode)
|
|
.Ignore(x => x.HandledBatch)
|
|
.Ignore(x => x.HandledLocationCode)
|
|
.Ignore(x => x.HandledQty)
|
|
.Ignore(x => x.TenantId)
|
|
.Ignore(x => x.HandledContainerCode)
|
|
.Ignore(x => x.RecommendQty)
|
|
.Ignore(x => x.RecommendLocation)
|
|
.Ignore(x => x.HandledLocation)
|
|
.ForMember(x => x.RecommendLot, y => y.MapFrom(d => d.Lot))
|
|
.ForMember(x => x.RecommendBatch, y => y.MapFrom(d => d.Batch))
|
|
.ForMember(x => x.RecommendContainerCode, y => y.MapFrom(d => d.ContainerCode))
|
|
.ForMember(x => x.RecommendPackingCode, y => y.MapFrom(d => d.PackingCode))
|
|
.ForMember(x => x.RecommendLocationCode, y => y.MapFrom(d => d.LocationCode))
|
|
;
|
|
|
|
CreateMap<InspectNoticeDetailInputN, InspectJobDetail>()
|
|
.IgnoreAuditedObjectProperties()
|
|
.Ignore(x => x.Status)
|
|
.Ignore(x => x.Id)
|
|
.Ignore(x => x.MasterID)
|
|
.Ignore(x => x.Number)
|
|
.Ignore(x => x.GoodQty)
|
|
.Ignore(x => x.FailedReason)
|
|
.Ignore(x => x.FailedQty)
|
|
.Ignore(x => x.CrackQty)
|
|
.Ignore(x => x.InspectUser)
|
|
.Ignore(x => x.NotPassedQty)
|
|
.Ignore(x => x.HandledLot)
|
|
.Ignore(x => x.HandledPackingCode)
|
|
.Ignore(x => x.HandledBatch)
|
|
.Ignore(x => x.HandledLocationCode)
|
|
.Ignore(x => x.HandledQty)
|
|
.Ignore(x => x.TenantId)
|
|
.Ignore(x => x.HandledContainerCode)
|
|
.Ignore(x => x.RecommendQty)
|
|
.Ignore(x => x.RecommendLocation)
|
|
.Ignore(x => x.HandledLocation)
|
|
.ForMember(x => x.RecommendLot, y => y.MapFrom(d => d.Lot))
|
|
.ForMember(x => x.RecommendBatch, y => y.MapFrom(d => d.Batch))
|
|
.ForMember(x => x.RecommendContainerCode, y => y.MapFrom(d => d.ContainerCode))
|
|
.ForMember(x => x.RecommendPackingCode, y => y.MapFrom(d => d.PackingCode))
|
|
.ForMember(x => x.RecommendLocationCode, y => y.MapFrom(d => d.LocationCode))
|
|
;
|
|
|
|
CreateMap<InspectNoticeInputN, InspectJob>()
|
|
.IgnoreAuditedObjectProperties()
|
|
.Ignore(x => x.Details)
|
|
.Ignore(x => x.SummaryDetails)
|
|
.Ignore(x => x.NextAction)
|
|
.Ignore(x => x.UpStreamJobNumber)
|
|
.Ignore(x => x.JobDescription)
|
|
.Ignore(x => x.JobType)
|
|
.Ignore(x => x.JobStatus)
|
|
.Ignore(x => x.Priority)
|
|
.Ignore(x => x.PriorityIncrement)
|
|
.Ignore(x => x.WorkGroupCode)
|
|
.Ignore(x => x.IsAutoComplete)
|
|
.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.Remark)
|
|
.Ignore(x => x.ExtraProperties)
|
|
.Ignore(x => x.ConcurrencyStamp)
|
|
.Ignore(x => x.Id)
|
|
.ForMember(x => x.InspectNumber, y => y.MapFrom(d => d.Number))
|
|
;
|
|
|
|
#endregion
|
|
|
|
|
|
//CreateMap<UnplannedIssueRequestHandledETO, UnplannedIssueJob>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .ForMember(x => x.UnplannedIssueRequestNumber, y => y.MapFrom(d => d.Number))
|
|
// .Ignore(x => x.UpStreamJobNumber)
|
|
// .Ignore(x => x.JobDescription)
|
|
// .Ignore(x => x.JobType)
|
|
// .Ignore(x => x.JobStatus)
|
|
// .Ignore(x => x.Priority)
|
|
// .Ignore(x => x.PriorityIncrement)
|
|
// .Ignore(x => x.WorkGroupCode)
|
|
// .Ignore(x => x.IsAutoComplete)
|
|
// .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.Remark)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.Details)
|
|
// .Ignore(x => x.)
|
|
// ;
|
|
|
|
//CreateMap<UnplannedIssueRequestDetailETO, UnplannedIssueJobDetail>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .ForMember(x => x.RecommendPackingCode, y => y.MapFrom(d => d.PackingCode))
|
|
// .ForMember(x => x.RecommendContainerCode, y => y.MapFrom(d => d.ContainerCode))
|
|
// .ForMember(x => x.Item, y => y.MapFrom(d => new Item(d.Item)))
|
|
// .ForMember(x => x.RecommendLot, y => y.MapFrom(d => d.Lot))
|
|
// .ForMember(x => x.RecommendBatch, y => y.MapFrom(d => new Batch(d.Batch.SupplierBatch, d.Batch.ArriveDate, d.Batch.ProduceDate, d.Batch.ExpireDate)))
|
|
// .ForMember(x => x.RecommendLocationCode, y => y.MapFrom(d => d.LocationCode))
|
|
// .ForMember(x => x.RecommendQty, y => y.MapFrom(d => new UomQty(d.Qty.Uom, d.Qty.Qty)))
|
|
// .ForMember(x => x.StdPack, y => y.MapFrom(d => new PackInfo(d.StdPack.PackUom, d.StdPack.PackQty)))
|
|
// .Ignore(x => x.HandledContainerCode)
|
|
// .Ignore(x => x.HandledPackingCode)
|
|
// .Ignore(x => x.HandledBatch)
|
|
// .Ignore(x => x.HandledLot)
|
|
// .Ignore(x => x.HandledLocationCode)
|
|
// .Ignore(x => x.HandledQty)
|
|
// .Ignore(x => x.MasterID)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.Id)
|
|
// .Ignore(x => x.Remark)
|
|
// ;
|
|
|
|
|
|
}
|
|
}
|
|
}
|