using AutoMapper; using Volo.Abp.AutoMapper; using Win_in.Sfs.Shared.Application; using Win_in.Sfs.Shared.Domain; using Win_in.Sfs.Wms.Job.Application.Contracts; using Win_in.Sfs.Wms.Job.Domain; using Win_in.Sfs.Wms.Store.Application.Contracts; using CountJobCreateRequestInput = Win_in.Sfs.Wms.Job.Application.Contracts.CountJobCreateRequestInput; using CountJobDetailDTO = Win_in.Sfs.Wms.Job.Application.Contracts.CountJobDetailDTO; using CountJobDetailInput = Win_in.Sfs.Wms.Job.Application.Contracts.CountJobDetailInput; using CountJobDTO = Win_in.Sfs.Wms.Job.Application.Contracts.CountJobDTO; using CountJobEditInput = Win_in.Sfs.Wms.Job.Application.Contracts.CountJobEditInput; namespace Win_in.Sfs.Wms.Job.Application; public partial class JobApplicationAutoMapperProfile : Profile { private void CountJobAutoMapperProfile() { CreateMap() .ReverseMap(); CreateMap() .IgnoreAuditedObjectProperties() .ForMember(x => x.Stage, y => y.MapFrom(d => d.CountStage)) .Ignore(x => x.ActiveDate) .Ignore(x => x.ConcurrencyStamp) .Ignore(x => x.BeginTime) .Ignore(x => x.EndTime) .Ignore(x => x.PlanTime) .Ignore(x => x.Number) .Ignore(x => x.Number) .Ignore(x => x.RequestStatus) .Ignore(x => x.AutoAgree) .Ignore(x => x.AutoSubmit) .Ignore(x => x.AutoHandle) .Ignore(x => x.AutoCompleteJob) .Ignore(x => x.TenantId) .Ignore(x => x.ExtraProperties) .Ignore(x => x.Id) .Ignore(x => x.DirectCreateNote) .Ignore(x => x.Details); //只有部分明细需要映射,所以在主表忽略掉 CreateMap() .IgnoreAuditedObjectProperties() .Ignore(x => x.ItemCode) .Ignore(x => x.LocationCode) .Ignore(x => x.ConcurrencyStamp) .Ignore(x => x.CountPlanNumber) .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.Number) .Ignore(x => x.TenantId) .Ignore(x => x.ExtraProperties) .Ignore(x => x.Id) .Ignore(x => x.Details); //只有部分明细需要映射,所以在主表忽略掉 ; CreateMap() .IgnoreAuditedObjectProperties() .Ignore(x => x.Number) .Ignore(x => x.Id) .Ignore(x => x.UpStreamJobNumber) .Ignore(x => x.CountPlanNumber) .Ignore(x => x.CountStage) .Ignore(x => x.JobType) .Ignore(x => x.WorkGroupCode) .Ignore(x => x.IsAutoComplete) .Ignore(x => x.Details); CreateMap() .IgnoreAuditedObjectProperties() ; CreateMap() .IgnoreAuditedObjectProperties() ; CreateMap() .IgnoreAuditedObjectProperties() .Ignore(x => x.MasterID) .Ignore(x => x.TenantId) .Ignore(x => x.Number) .Ignore(x => x.Id) ; } }