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.
33 lines
1.1 KiB
33 lines
1.1 KiB
using AutoMapper;
|
|
using Volo.Abp.AutoMapper;
|
|
using Win_in.Sfs.Basedata.Application.Contracts;
|
|
using Win_in.Sfs.Basedata.Domain;
|
|
|
|
namespace Win_in.Sfs.Basedata.Application;
|
|
|
|
public partial class BasedataApplicationAutoMapperProfile : Profile
|
|
{
|
|
private void SupplierItemAutoMapperProfile()
|
|
{
|
|
CreateMap<SupplierItem, SupplierItemDTO>()
|
|
.ReverseMap();
|
|
|
|
CreateMap<SupplierItemImportInput, SupplierItem>()
|
|
.IgnoreAuditedObjectProperties()
|
|
.Ignore(x => x.TenantId)
|
|
.Ignore(x => x.ExtraProperties)
|
|
.Ignore(x => x.ConcurrencyStamp)
|
|
.Ignore(x => x.SupplierPackQty)
|
|
.Ignore(x => x.ItemName)
|
|
;
|
|
|
|
CreateMap<SupplierItem, SupplierItemImportInput>()
|
|
.Ignore(x => x.ReportStatus)
|
|
.Ignore(x => x.ReportReason);
|
|
CreateMap<SupplierItemEditInput, SupplierItem>()
|
|
.IgnoreAuditedObjectProperties()
|
|
//.ForMember(x => x.SupplierPackQty, y => y.MapFrom(d => new UomQty(d.SupplierPackUom, d.SupplierPackQty)))
|
|
.Ignore(x => x.ConcurrencyStamp)
|
|
.Ignore(x => x.Id);
|
|
}
|
|
}
|
|
|