|
|
@ -31,7 +31,7 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
|
.ForMember(p => p.Site, p => p.MapFrom(q => q.Site)) |
|
|
|
.ForMember(p => p.PartCode, p => p.MapFrom(q => q.Code)) |
|
|
|
.ForMember(p => p.ErpPartCode, p => p.MapFrom(q => q.Code)) |
|
|
|
.ForMember(p => p.PartDesc1, p => p.MapFrom(q =>string.IsNullOrEmpty(q.Desc2)?"":q.Desc2)) |
|
|
|
// .ForMember(p => p.PartDesc1, p => p.MapFrom(q => ""))//中文描述不要覆盖
|
|
|
|
.ForMember(p => p.PartDesc2, p => p.MapFrom(q => string.IsNullOrEmpty(q.Desc1) ? "" : q.Desc1)) |
|
|
|
.ForMember(p => p.ProjectId, p => p.MapFrom(q => q.ProductLine)) |
|
|
|
.ForMember(p => p.Unit, p => p.MapFrom(q => q.Uom)) |
|
|
@ -55,16 +55,15 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
|
{ |
|
|
|
CreateMap<Supplier, TA_VENDER>() |
|
|
|
.Ignore(p => p.Id) |
|
|
|
.ForMember(p => p.Site, p => p.MapFrom(q => q.Company))//TODO 接口没有传入Site
|
|
|
|
.ForMember(p => p.Site, p => p.MapFrom(q => q.Company))//接口没有传入Site
|
|
|
|
.ForMember(p => p.VendId, p => p.MapFrom(q => q.Code)) |
|
|
|
.ForMember(p => p.VendName, p => p.MapFrom(q => q.Desc)) |
|
|
|
.ForMember(p => p.ZipCode, p => p.MapFrom(q => q.Desc)) //英文描述放到ZipCode中
|
|
|
|
.ForMember(p => p.VendAbbCode, p => p.MapFrom(q => "0"))//未使用
|
|
|
|
.ForMember(p => p.VendType, p => p.MapFrom(q => ""))//默认值未空
|
|
|
|
.ForMember(p => p.Country, p => p.MapFrom(q => q.Country)) |
|
|
|
.ForMember(p => p.City, p => p.MapFrom(q => q.City)) |
|
|
|
.ForMember(p => p.Currency, p => p.MapFrom(q => q.Currency)) |
|
|
|
.ForMember(p => p.Address, p => p.MapFrom(q => q.Address)) |
|
|
|
.ForMember(p => p.ZipCode, p => p.MapFrom(q => q.PostId)) |
|
|
|
.ForMember(p => p.Contacter, p => p.MapFrom(q => q.ContactName)) |
|
|
|
.ForMember(p => p.Phone, p => p.MapFrom(q => q.Phone)) |
|
|
|
.ForMember(p => p.Fax, p => p.MapFrom(q => q.Fax)) |
|
|
|