|
@ -38,9 +38,8 @@ 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 => q.Desc2))//默认值
|
|
|
// .ForMember(p => p.ReceivePort, p => p.MapFrom(q => ""))//默认值
|
|
|
|
|
|
// .ForMember(p => p.PalletSize, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.PalletSize, p => p.MapFrom(q => ""))//默认值
|
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Version)) |
|
|
.ForMember(p => p.Remark, p => p.MapFrom(q => q.Version)) |
|
|
// .ForMember(p => p.Qlevel, p => p.MapFrom(q => ""))//默认值
|
|
|
// .ForMember(p => p.Qlevel, p => p.MapFrom(q => ""))//默认值
|
|
@ -69,10 +68,10 @@ 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 => ""))//接口没有传入Email
|
|
|
.ForMember(p => p.Email, p => p.MapFrom(q => ""))//接口没有传入Email
|
|
|
.ForMember(p => p.State, p => p.MapFrom(q => q.IsActive ? 1 : 0))//1:有效,2:无效
|
|
|
.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))//默认值
|
|
|
// .ForMember(p => p.Quota, p => p.MapFrom(q =>0))//默认值
|
|
|
// .ForMember(p => p.Quota, p => p.MapFrom(q =>0))//默认值
|
|
|
; |
|
|
; |
|
@ -105,7 +104,7 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
// .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) ? 0 : 1))//0:收货 1:退货
|
|
|
.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))//默认值
|
|
|
; |
|
|
; |
|
|
|
|
|
|
|
|
var poLine = 0; |
|
|
var poLine = 0; |
|
@ -118,7 +117,7 @@ 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.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 => string.IsNullOrEmpty(q.Lot)?"":q.Lot)) |
|
|
.ForMember(p => p.Qty, p => p.MapFrom(q => q.ReceiveQty)) |
|
|
.ForMember(p => p.Qty, p => p.MapFrom(q => q.ReceiveQty)) |
|
|
.ForMember(p => p.DockCode, p => p.MapFrom(q => q.Dock)) |
|
|
.ForMember(p => p.DockCode, p => p.MapFrom(q => q.Dock)) |
|
|
.ForMember(p => p.State, p => p.MapFrom(q => 0))//0:未处理
|
|
|
.ForMember(p => p.State, p => p.MapFrom(q => 0))//0:未处理
|
|
@ -129,14 +128,14 @@ namespace Win_in.Sfs.Scp.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) ? 0 : 1))//0:收货 1:退货
|
|
|
.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 => string.IsNullOrEmpty(q.SupplierLot)?"":q.Lot)) |
|
|
.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)) |
|
|
// .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 => q.SupplierPackConvertRate)) |
|
|
.ForMember(p => p.Rate, p => p.MapFrom(q => q.SupplierPackConvertRate)) |
|
|
// .ForMember(p => p.CurAmt, p => p.MapFrom(q => 0))//默认值
|
|
|
.ForMember(p => p.CurAmt, p => p.MapFrom(q => 0))//默认值
|
|
|
// .ForMember(p => p.Tax, p => p.MapFrom(q => 0))//默认值
|
|
|
.ForMember(p => p.Tax, p => p.MapFrom(q => 0))//默认值
|
|
|
// .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 => ""))//默认值
|
|
|