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.
34 lines
1014 B
34 lines
1014 B
2 years ago
|
using AutoMapper;
|
||
|
using Volo.Abp.AutoMapper;
|
||
|
using Win_in.Sfs.Label.Application.Contracts;
|
||
|
using Win_in.Sfs.Label.Domain;
|
||
|
using Win_in.Sfs.Shared.Domain;
|
||
|
using Win_in.Sfs.Shared.Application;
|
||
|
|
||
|
namespace Win_in.Sfs.Label.Application
|
||
|
{
|
||
|
public class PurchaseLabelAutoMapperProfile : Profile
|
||
|
{
|
||
|
public PurchaseLabelAutoMapperProfile()
|
||
|
{
|
||
|
CreateMap<PurchaseLabel, PurchaseLabelDto>()
|
||
|
.MapItemBatchQtyStdPack()
|
||
|
.MapPurchaseInfo()
|
||
|
.MapQualityInfo()
|
||
|
.ReverseMap();
|
||
|
|
||
|
CreateMap<PurchaseLabelCreateInput, PurchaseLabel>()
|
||
|
.IgnoreAuditedObjectProperties()
|
||
|
.MapItemBatchQtyStdPackDto()
|
||
|
.MapPurchaseInfoDto()
|
||
|
.MapQualityInfoDto()
|
||
|
.Ignore(x => x.ConcurrencyStamp)
|
||
|
.Ignore(x => x.Id);
|
||
|
|
||
|
CreateMap<PurchaseLabelWithoutCodeCreateInput, PurchaseLabelCreateInput>()
|
||
|
.Ignore(x => x.Code);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|