|
@ -5,9 +5,9 @@ using Win_in.Sfs.Scp.v1.Domain; |
|
|
|
|
|
|
|
|
namespace Win_in.Sfs.Scp.WebApi |
|
|
namespace Win_in.Sfs.Scp.WebApi |
|
|
{ |
|
|
{ |
|
|
public class EventAutoMapperProfile : Profile |
|
|
public class ScpV1AutoMapperProfile : Profile |
|
|
{ |
|
|
{ |
|
|
public EventAutoMapperProfile() |
|
|
public ScpV1AutoMapperProfile() |
|
|
{ |
|
|
{ |
|
|
/* You can configure your AutoMapper mapping configuration here. |
|
|
/* You can configure your AutoMapper mapping configuration here. |
|
|
* Alternatively, you can split your mapping configurations |
|
|
* Alternatively, you can split your mapping configurations |
|
@ -38,6 +38,7 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
.ForMember(p => p.PartGroup, p => p.MapFrom(q => q.Group)) |
|
|
.ForMember(p => p.PartGroup, p => p.MapFrom(q => q.Group)) |
|
|
.ForMember(p => p.State, p => p.MapFrom(q => q.Status)) |
|
|
.ForMember(p => p.State, p => p.MapFrom(q => q.Status)) |
|
|
.ForMember(p => p.Configuration, p => p.MapFrom(q => q.Type))//TODO
|
|
|
.ForMember(p => p.Configuration, p => p.MapFrom(q => q.Type))//TODO
|
|
|
|
|
|
|
|
|
// .ForMember(p => p.ValidityDays, p => p.MapFrom(q => 0))//默认值
|
|
|
// .ForMember(p => p.ValidityDays, p => p.MapFrom(q => 0))//默认值
|
|
|
// .ForMember(p => p.ReceivePort, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.ReceivePort, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.PalletSize, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.PalletSize, p => p.MapFrom(q => ""))//默认值
|
|
@ -58,8 +59,8 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
.ForMember(p => p.Site, p => p.MapFrom(q => q.Company))//TODO 接口没有传入Site
|
|
|
.ForMember(p => p.Site, p => p.MapFrom(q => q.Company))//TODO 接口没有传入Site
|
|
|
.ForMember(p => p.VendId, p => p.MapFrom(q => q.Code)) |
|
|
.ForMember(p => p.VendId, p => p.MapFrom(q => q.Code)) |
|
|
.ForMember(p => p.VendName, p => p.MapFrom(q => q.Desc)) |
|
|
.ForMember(p => p.VendName, p => p.MapFrom(q => q.Desc)) |
|
|
.ForMember(p => p.VendAbbCode, p => p.MapFrom(q => q.Name)) |
|
|
.ForMember(p => p.VendAbbCode, p => p.MapFrom(q=>"0"))//未使用
|
|
|
.ForMember(p => p.VendType, p => p.MapFrom(q => ""))//TODO 默认值应该是什么?
|
|
|
.ForMember(p => p.VendType, p => p.MapFrom(q => ""))//默认值未空
|
|
|
.ForMember(p => p.Country, p => p.MapFrom(q => q.Country)) |
|
|
.ForMember(p => p.Country, p => p.MapFrom(q => q.Country)) |
|
|
.ForMember(p => p.City, p => p.MapFrom(q => q.City)) |
|
|
.ForMember(p => p.City, p => p.MapFrom(q => q.City)) |
|
|
.ForMember(p => p.Currency, p => p.MapFrom(q => q.Currency)) |
|
|
.ForMember(p => p.Currency, p => p.MapFrom(q => q.Currency)) |
|
@ -68,8 +69,8 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
.ForMember(p => p.Contacter, p => p.MapFrom(q => q.ContactName)) |
|
|
.ForMember(p => p.Contacter, p => p.MapFrom(q => q.ContactName)) |
|
|
.ForMember(p => p.Phone, p => p.MapFrom(q => q.Phone)) |
|
|
.ForMember(p => p.Phone, p => p.MapFrom(q => q.Phone)) |
|
|
.ForMember(p => p.Fax, p => p.MapFrom(q => q.Fax)) |
|
|
.ForMember(p => p.Fax, p => p.MapFrom(q => q.Fax)) |
|
|
// .ForMember(p => p.Email, p => p.MapFrom(q => ""))//TODO 接口没有传入Email
|
|
|
// .ForMember(p => p.Email, p => p.MapFrom(q => ""))//接口没有传入Email
|
|
|
.ForMember(p => p.State, p => p.MapFrom(q => q.IsActive ? 1 : 0))//TODO State 值应该是什么
|
|
|
.ForMember(p => p.State, p => p.MapFrom(q => q.IsActive ? 1 : 0))//1:有效,2:无效
|
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
// .ForMember(p => p.Tax, p => p.MapFrom(q => 0))//默认值
|
|
|
// .ForMember(p => p.Tax, p => p.MapFrom(q => 0))//默认值
|
|
|
// .ForMember(p => p.ReceiveTimeScope, p => p.MapFrom(q =>0))//默认值
|
|
|
// .ForMember(p => p.ReceiveTimeScope, p => p.MapFrom(q =>0))//默认值
|
|
@ -96,11 +97,14 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
.ForMember(p => p.State, p => p.MapFrom(q => 1))//默认值
|
|
|
.ForMember(p => p.State, p => p.MapFrom(q => 1))//默认值
|
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
.ForMember(p => p.CreateTime, p => p.MapFrom(q => q.ReceiveTime)) |
|
|
.ForMember(p => p.CreateTime, p => p.MapFrom(q => q.ReceiveTime)) |
|
|
.ForMember(p => p.CreateUser, p => p.MapFrom(q => q.CreatorId.ToString()))//TODO
|
|
|
.ForMember(p => p.CreateUser, p => p.MapFrom(q => "WebApi"))//固定值
|
|
|
|
|
|
|
|
|
// .ForMember(p => p.IsDeleted, p => p.MapFrom(q => false))//默认值
|
|
|
// .ForMember(p => p.IsDeleted, p => p.MapFrom(q => false))//默认值
|
|
|
.ForMember(p => p.GUID, p => p.MapFrom(q => Guid.NewGuid()))//默认值
|
|
|
.ForMember(p => p.GUID, p => p.MapFrom(q => Guid.NewGuid()))//默认值
|
|
|
|
|
|
|
|
|
// .ForMember(p => p.OperName, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.OperName, p => p.MapFrom(q => ""))//默认值
|
|
|
.ForMember(p => p.BillType, p => p.MapFrom(q => string.IsNullOrWhiteSpace(q.RcType) ? 1 : 0))//TODO SCP的BllType含义
|
|
|
.ForMember(p => p.BillType, p => p.MapFrom(q => string.IsNullOrWhiteSpace(q.RcType) ? 0 : 1))//0:收货 1:退货
|
|
|
|
|
|
|
|
|
// .ForMember(p => p.Tax, p => p.MapFrom(q => 0))//默认值
|
|
|
// .ForMember(p => p.Tax, p => p.MapFrom(q => 0))//默认值
|
|
|
; |
|
|
; |
|
|
|
|
|
|
|
@ -112,7 +116,7 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
.ForMember(p => p.ErpRecvBillNum, p => p.MapFrom(q => q.RcNumber)) |
|
|
.ForMember(p => p.ErpRecvBillNum, p => p.MapFrom(q => q.RcNumber)) |
|
|
.ForMember(p => p.RecvBillNum, p => p.MapFrom(q => q.RcNumber)) |
|
|
.ForMember(p => p.RecvBillNum, p => p.MapFrom(q => q.RcNumber)) |
|
|
.ForMember(p => p.PoBillNum, p => p.MapFrom(q => q.PoNumber)) |
|
|
.ForMember(p => p.PoBillNum, p => p.MapFrom(q => q.PoNumber)) |
|
|
.ForMember(p => p.PoLine, p => p.MapFrom(q =>int.TryParse(q.PoLine,out poLine)?poLine:0)) |
|
|
.ForMember(p => p.PoLine, p => p.MapFrom(q => int.TryParse(q.PoLine, out poLine) ? poLine : 0)) |
|
|
.ForMember(p => p.PartCode, p => p.MapFrom(q => q.PartCode)) |
|
|
.ForMember(p => p.PartCode, p => p.MapFrom(q => q.PartCode)) |
|
|
.ForMember(p => p.Batch, p => p.MapFrom(q => q.Lot)) |
|
|
.ForMember(p => p.Batch, p => p.MapFrom(q => q.Lot)) |
|
|
.ForMember(p => p.Qty, p => p.MapFrom(q => q.ReceiveQty)) |
|
|
.ForMember(p => p.Qty, p => p.MapFrom(q => q.ReceiveQty)) |
|
@ -120,10 +124,11 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
.ForMember(p => p.State, p => p.MapFrom(q => 1))//默认值
|
|
|
.ForMember(p => p.State, p => p.MapFrom(q => 1))//默认值
|
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
.ForMember(p => p.CreateTime, p => p.MapFrom(q => q.ReceiveTime)) |
|
|
.ForMember(p => p.CreateTime, p => p.MapFrom(q => q.ReceiveTime)) |
|
|
.ForMember(p => p.CreateUser, p => p.MapFrom(q => q.CreatorId.ToString()))//TODO
|
|
|
.ForMember(p => p.CreateUser, p => p.MapFrom(q => "WebApi")) |
|
|
|
|
|
|
|
|
// .ForMember(p => p.IsDeleted, p => p.MapFrom(q => false))//默认值
|
|
|
// .ForMember(p => p.IsDeleted, p => p.MapFrom(q => false))//默认值
|
|
|
.ForMember(p => p.GUID, p => p.MapFrom(q => Guid.NewGuid()))//默认值
|
|
|
.ForMember(p => p.GUID, p => p.MapFrom(q => Guid.NewGuid()))//默认值
|
|
|
.ForMember(p => p.BillType, p => p.MapFrom(q => string.IsNullOrWhiteSpace(q.RcType) ? 1 : 0))//TODO SCP的BllType含义
|
|
|
.ForMember(p => p.BillType, p => p.MapFrom(q => string.IsNullOrWhiteSpace(q.RcType) ? 0 : 1))//0:收货 1:退货
|
|
|
.ForMember(p => p.VendBatch, p => p.MapFrom(q => q.SupplierLot)) |
|
|
.ForMember(p => p.VendBatch, p => p.MapFrom(q => q.SupplierLot)) |
|
|
.ForMember(p => p.PoUnit, p => p.MapFrom(q => q.Uom)) |
|
|
.ForMember(p => p.PoUnit, p => p.MapFrom(q => q.Uom)) |
|
|
.ForMember(p => p.LocUnit, p => p.MapFrom(q => q.Uom)) |
|
|
.ForMember(p => p.LocUnit, p => p.MapFrom(q => q.Uom)) |
|
@ -154,22 +159,23 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
.ForMember(p => p.PoBillNum, p => p.MapFrom(q => q.PoNumber)) |
|
|
.ForMember(p => p.PoBillNum, p => p.MapFrom(q => q.PoNumber)) |
|
|
.ForMember(p => p.ErpBillNum, p => p.MapFrom(q => q.PoNumber)) |
|
|
.ForMember(p => p.ErpBillNum, p => p.MapFrom(q => q.PoNumber)) |
|
|
.ForMember(p => p.VendId, p => p.MapFrom(q => q.SupplierCode)) |
|
|
.ForMember(p => p.VendId, p => p.MapFrom(q => q.SupplierCode)) |
|
|
.ForMember(p => p.ModType, p => p.MapFrom(q => int.TryParse(q.PoType,out poType)?poType:0)) |
|
|
.ForMember(p => p.ModType, p => p.MapFrom(q => int.TryParse(q.PoType, out poType) ? poType : 1))//1:日程订单,2:离散订单
|
|
|
.ForMember(p => p.Contacter, p => p.MapFrom(q => q.ContactName))//TODO Contacter 和 Buyer 如何赋值
|
|
|
.ForMember(p => p.Contacter, p => p.MapFrom(q => q.ContactName))//TODO Contacter 和 Buyer 如何赋值
|
|
|
.ForMember(p => p.Buyer, p => p.MapFrom(q => q.ContactName)) |
|
|
.ForMember(p => p.Buyer, p => p.MapFrom(q => q.ContactName)) |
|
|
.ForMember(p => p.BuyerPhone, p => p.MapFrom(q => q.ContactPhone)) |
|
|
.ForMember(p => p.BuyerPhone, p => p.MapFrom(q => q.ContactPhone)) |
|
|
.ForMember(p => p.State, p => p.MapFrom(q => q.Status)) |
|
|
.ForMember(p => p.State, p => p.MapFrom(q => q.Status)) |
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
// .ForMember(p => p.BeginTime, p => p.MapFrom(q => new DateTime()))//默认值
|
|
|
.ForMember(p => p.BeginTime, p => p.MapFrom(q =>q.OrderDate)) |
|
|
// .ForMember(p => p.EndTime, p => p.MapFrom(q => new DateTime()))//默认值
|
|
|
.ForMember(p => p.EndTime, p => p.MapFrom(q =>q.DueDate)) |
|
|
// .ForMember(p => p.Extend1, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.Extend1, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.Extend2, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.Extend2, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.Extend3, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.Extend3, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.SubSite, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.SubSite, p => p.MapFrom(q => ""))//默认值
|
|
|
.ForMember(p => p.CreateTime, p => p.MapFrom(q => q.CreationTime)) |
|
|
.ForMember(p => p.CreateTime, p => p.MapFrom(q => q.CreationTime)) |
|
|
.ForMember(p => p.CreateUser, p => p.MapFrom(q => q.CreatorId.ToString()))//TODO
|
|
|
.ForMember(p => p.CreateUser, p => p.MapFrom(q => "WebApi")) |
|
|
.ForMember(p => p.UpdateTime, p => p.MapFrom(q => DateTime.Now)) |
|
|
.ForMember(p => p.UpdateTime, p => p.MapFrom(q => DateTime.Now)) |
|
|
.ForMember(p => p.UpdateUser, p => p.MapFrom(q => q.CreatorId.ToString()))//TODO
|
|
|
.ForMember(p => p.UpdateUser, p => p.MapFrom(q => "WebApi")) |
|
|
|
|
|
|
|
|
// .ForMember(p => p.UpdateInfo, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.UpdateInfo, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.IsDeleted, p => p.MapFrom(q => false))//默认值
|
|
|
// .ForMember(p => p.IsDeleted, p => p.MapFrom(q => false))//默认值
|
|
|
.ForMember(p => p.GUID, p => p.MapFrom(q => Guid.NewGuid()))//默认值
|
|
|
.ForMember(p => p.GUID, p => p.MapFrom(q => Guid.NewGuid()))//默认值
|
|
@ -196,16 +202,17 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
.ForMember(p => p.UnConv, p => p.MapFrom(q => q.SupplierPackConvertRate)) |
|
|
.ForMember(p => p.UnConv, p => p.MapFrom(q => q.SupplierPackConvertRate)) |
|
|
// .ForMember(p => p.DockCode, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.DockCode, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.BeginTime, p => p.MapFrom(q => DateTime.Now))//默认值
|
|
|
// .ForMember(p => p.BeginTime, p => p.MapFrom(q => DateTime.Now))//从主表获取
|
|
|
// .ForMember(p => p.EndTime, p => p.MapFrom(q => DateTime.Now))//默认值
|
|
|
// .ForMember(p => p.EndTime, p => p.MapFrom(q => DateTime.Now))//从主表获取
|
|
|
// .ForMember(p => p.Extend1, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.Extend1, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.Extend2, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.Extend2, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.Extend3, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.Extend3, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.SubSite, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.SubSite, p => p.MapFrom(q => ""))//默认值
|
|
|
.ForMember(p => p.CreateTime, p => p.MapFrom(q => q.CreationTime)) |
|
|
.ForMember(p => p.CreateTime, p => p.MapFrom(q => q.CreationTime)) |
|
|
.ForMember(p => p.CreateUser, p => p.MapFrom(q => q.CreatorId.ToString()))//TODO
|
|
|
.ForMember(p => p.CreateUser, p => p.MapFrom(q => "WebApi")) |
|
|
.ForMember(p => p.UpdateTime, p => p.MapFrom(q => DateTime.Now)) |
|
|
.ForMember(p => p.UpdateTime, p => p.MapFrom(q => DateTime.Now)) |
|
|
.ForMember(p => p.UpdateUser, p => p.MapFrom(q => q.CreatorId.ToString()))//TODO
|
|
|
.ForMember(p => p.UpdateUser, p => p.MapFrom(q => "WebApi")) |
|
|
|
|
|
|
|
|
// .ForMember(p => p.UpdateInfo, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.UpdateInfo, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.IsDeleted, p => p.MapFrom(q => false))//默认值
|
|
|
// .ForMember(p => p.IsDeleted, p => p.MapFrom(q => false))//默认值
|
|
|
.ForMember(p => p.GUID, p => p.MapFrom(q => Guid.NewGuid()))//默认值
|
|
|
.ForMember(p => p.GUID, p => p.MapFrom(q => Guid.NewGuid()))//默认值
|
|
@ -229,11 +236,14 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
.ForMember(p => p.State, p => p.MapFrom(q => 1))//TODO
|
|
|
.ForMember(p => p.State, p => p.MapFrom(q => 1))//TODO
|
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
.ForMember(p => p.CreateTime, p => p.MapFrom(q => q.EffectiveDate)) |
|
|
.ForMember(p => p.CreateTime, p => p.MapFrom(q => q.EffectiveDate)) |
|
|
.ForMember(p => p.CreateUser, p => p.MapFrom(q => q.CreatorId.ToString()))//TODO
|
|
|
.ForMember(p => p.CreateUser, p => p.MapFrom(q => "WebApi")) |
|
|
|
|
|
|
|
|
// .ForMember(p => p.IsDeleted, p => p.MapFrom(q => false))//默认值
|
|
|
// .ForMember(p => p.IsDeleted, p => p.MapFrom(q => false))//默认值
|
|
|
.ForMember(p => p.GUID, p => p.MapFrom(q => Guid.NewGuid()))//默认值
|
|
|
.ForMember(p => p.GUID, p => p.MapFrom(q => Guid.NewGuid()))//默认值
|
|
|
|
|
|
|
|
|
// .ForMember(p => p.OperName, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.OperName, p => p.MapFrom(q => ""))//默认值
|
|
|
.ForMember(p => p.BillType, p => p.MapFrom(q => string.IsNullOrWhiteSpace(q.TrType) ? 1 : 0))//TODO SCP的BllType含义
|
|
|
.ForMember(p => p.BillType, p => p.MapFrom(q => string.IsNullOrWhiteSpace(q.TrType) ? 0 : 1))//0:收货 1:退货
|
|
|
|
|
|
|
|
|
// .ForMember(p => p.Tax, p => p.MapFrom(q => 0))//默认值
|
|
|
// .ForMember(p => p.Tax, p => p.MapFrom(q => 0))//默认值
|
|
|
; |
|
|
; |
|
|
|
|
|
|
|
@ -251,13 +261,16 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
.ForMember(p => p.State, p => p.MapFrom(q => 1))//默认值
|
|
|
.ForMember(p => p.State, p => p.MapFrom(q => 1))//默认值
|
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Remark)) |
|
|
.ForMember(p => p.CreateTime, p => p.MapFrom(q => q.EffectiveDate)) |
|
|
.ForMember(p => p.CreateTime, p => p.MapFrom(q => q.EffectiveDate)) |
|
|
.ForMember(p => p.CreateUser, p => p.MapFrom(q => q.CreatorId.ToString()))//TODO
|
|
|
.ForMember(p => p.CreateUser, p => p.MapFrom(q => "WebApi")) |
|
|
|
|
|
|
|
|
// .ForMember(p => p.IsDeleted, p => p.MapFrom(q => false))//默认值
|
|
|
// .ForMember(p => p.IsDeleted, p => p.MapFrom(q => false))//默认值
|
|
|
.ForMember(p => p.GUID, p => p.MapFrom(q => Guid.NewGuid()))//默认值
|
|
|
.ForMember(p => p.GUID, p => p.MapFrom(q => Guid.NewGuid()))//默认值
|
|
|
.ForMember(p => p.BillType, p => p.MapFrom(q => string.IsNullOrWhiteSpace(q.TrType) ? 1 : 0))//TODO SCP的BllType含义
|
|
|
.ForMember(p => p.BillType, p => p.MapFrom(q => string.IsNullOrWhiteSpace(q.TrType) ? 0 : 1))//0:收货 1:退货
|
|
|
|
|
|
|
|
|
// .ForMember(p => p.VendBatch, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.VendBatch, p => p.MapFrom(q => ""))//默认值
|
|
|
.ForMember(p => p.PoUnit, p => p.MapFrom(q => q.Uom)) |
|
|
.ForMember(p => p.PoUnit, p => p.MapFrom(q => q.Uom)) |
|
|
.ForMember(p => p.LocUnit, p => p.MapFrom(q => q.Uom))//TODO 计划外入库单没有LocUnit
|
|
|
.ForMember(p => p.LocUnit, p => p.MapFrom(q => q.Uom))//TODO 计划外入库单没有LocUnit
|
|
|
|
|
|
|
|
|
// .ForMember(p => p.PurCost, p => p.MapFrom(q => 0))//默认值
|
|
|
// .ForMember(p => p.PurCost, p => p.MapFrom(q => 0))//默认值
|
|
|
// .ForMember(p => p.StdCost, p => p.MapFrom(q => 0))//默认值
|
|
|
// .ForMember(p => p.StdCost, p => p.MapFrom(q => 0))//默认值
|
|
|
// .ForMember(p => p.Rate, p => p.MapFrom(q => 0))//默认值
|
|
|
// .ForMember(p => p.Rate, p => p.MapFrom(q => 0))//默认值
|