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.
100 lines
3.8 KiB
100 lines
3.8 KiB
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<CountJob, CountJobDTO>()
|
|
.ReverseMap();
|
|
|
|
CreateMap<CountJobCreateRequestInput, CountPlanDTO>()
|
|
.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<CountJobCreateRequestInput, CountJob>()
|
|
.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<CountJobEditInput, CountJob>()
|
|
.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<CountJobDetail, CountJobDetailDTO>()
|
|
.IgnoreAuditedObjectProperties()
|
|
;
|
|
|
|
CreateMap<CountJobDetailDTO, CountJobDetail>()
|
|
.IgnoreAuditedObjectProperties()
|
|
;
|
|
|
|
CreateMap<CountJobDetailInput, CountJobDetail>()
|
|
.IgnoreAuditedObjectProperties()
|
|
.Ignore(x => x.MasterID)
|
|
.Ignore(x => x.TenantId)
|
|
.Ignore(x => x.Number)
|
|
.Ignore(x => x.Id)
|
|
;
|
|
|
|
}
|
|
}
|
|
|