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.
116 lines
3.5 KiB
116 lines
3.5 KiB
using AutoMapper;
|
|
using Volo.Abp.AutoMapper;
|
|
using Win_in.Sfs.Basedata.Application.Contracts;
|
|
using Win_in.Sfs.Basedata.Domain;
|
|
using Win_in.Sfs.Basedata.Kittings.Inputs;
|
|
|
|
namespace Win_in.Sfs.Basedata.Application;
|
|
|
|
public partial class BasedataApplicationAutoMapperProfile : Profile
|
|
{
|
|
private void KittingAutoMapperProfile()
|
|
{
|
|
CreateMap<Kitting, KittingDTO>()
|
|
.ReverseMap();
|
|
|
|
CreateMap<KittingDetail, KittingDetailDTO>()
|
|
.ReverseMap();
|
|
|
|
|
|
CreateMap<KittingImportInput, Kitting>()
|
|
.IgnoreAuditedObjectProperties()
|
|
.Ignore(x => x.Details)
|
|
.Ignore(x => x.TenantId)
|
|
.Ignore(x => x.ExtraProperties)
|
|
.Ignore(x => x.Remark)
|
|
.Ignore(x => x.ConcurrencyStamp)
|
|
.Ignore(x => x.Id);
|
|
|
|
|
|
CreateMap<KittingImportInput, KittingDetail>()
|
|
.IgnoreAuditedObjectProperties()
|
|
//.ForMember(x => x., y => y.MapFrom(t => t.Code))
|
|
.ForMember(x => x.PartCode, y => y.MapFrom(t => t.PartCode))
|
|
.ForMember(x => x.Desc1, y => y.MapFrom(t => t.Desc1))
|
|
.ForMember(x => x.Desc2, y => y.MapFrom(t => t.Desc2))
|
|
.Ignore(x => x.MasterId)
|
|
.Ignore(x => x.TenantId)
|
|
.Ignore(x => x.Remark)
|
|
.Ignore(x => x.Id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// CreateMap<DictImportInput, Dict>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.Items)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.Remark)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.Id);
|
|
|
|
//CreateMap<KittingDetailImportInput, DictItem>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
|
|
// .Ignore(x => x.MasterId)
|
|
// .Ignore(x => x.Enabled)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.Remark)
|
|
// .Ignore(x => x.Id);
|
|
|
|
CreateMap<KittingDetailInput, KittingDetail>()
|
|
.IgnoreAuditedObjectProperties();
|
|
// .ForMember(x => x.MasterId, y => y.MapFrom(t => t.MasterId))
|
|
|
|
|
|
CreateMap<KittingEditInput, Kitting>()
|
|
.IgnoreAuditedObjectProperties()
|
|
.Ignore(x => x.ConcurrencyStamp)
|
|
.Ignore(x => x.Id);
|
|
}
|
|
|
|
|
|
//CreateMap<Dict, DictDTO>()
|
|
// ;
|
|
|
|
// CreateMap<DictItem, DictItemDTO>()
|
|
// ;
|
|
|
|
// CreateMap<DictImportInput, Dict>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.Items)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.ExtraProperties)
|
|
// .Ignore(x => x.Remark)
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
// .Ignore(x => x.Id);
|
|
|
|
//CreateMap<DictImportInput, DictItem>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .ForMember(x => x.Code, y => y.MapFrom(t => t.Item_Code))
|
|
// .ForMember(x => x.Name, y => y.MapFrom(t => t.Item_Name))
|
|
// .ForMember(x => x.Description, y => y.MapFrom(t => t.Item_Description))
|
|
// .ForMember(x => x.Value, y => y.MapFrom(t => t.Item_Value))
|
|
// .Ignore(x => x.MasterId)
|
|
// .Ignore(x => x.Enabled)
|
|
// .Ignore(x => x.TenantId)
|
|
// .Ignore(x => x.Remark)
|
|
// .Ignore(x => x.Id);
|
|
|
|
//CreateMap<DictItemInput, DictItem>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// ;
|
|
|
|
//CreateMap<DictEditInput, Dict>()
|
|
// .IgnoreAuditedObjectProperties()
|
|
// .Ignore(x => x.ConcurrencyStamp)
|
|
//.Ignore(x => x.Id);
|
|
|
|
|
|
|
|
}
|
|
|