|
|
|
@ -0,0 +1,46 @@ |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Text; |
|
|
|
using BWP.B3Frameworks; |
|
|
|
using BWP.B3Frameworks.BO.MoneyTemplate; |
|
|
|
using BWP.Web.Pages.B3Sale.Bills.Gathering_; |
|
|
|
using Forks.EnterpriseServices; |
|
|
|
using Forks.EnterpriseServices.DataForm; |
|
|
|
using Forks.Utils; |
|
|
|
|
|
|
|
namespace BWP.Web.Pages.TypeIOCs |
|
|
|
{ |
|
|
|
[TypeIOC(typeof(GatheringPrint), typeof(GatheringPrint.AfterAddParameters))] |
|
|
|
class GatheringPrintTypeIOC : GatheringPrint.AfterAddParameters |
|
|
|
{ |
|
|
|
[DFClass] |
|
|
|
class GatheringDetail |
|
|
|
{ |
|
|
|
[LogicName("客户名称")] |
|
|
|
public string InvoiceName { get; set; } |
|
|
|
|
|
|
|
[LogicName("金额")] |
|
|
|
public Money<金额>? GatheringMoney { get; set; } |
|
|
|
|
|
|
|
[LogicName("收款单号")] |
|
|
|
public long ID { get; set; } |
|
|
|
|
|
|
|
[LogicName("备注")] |
|
|
|
public string Remark { get; set; } |
|
|
|
} |
|
|
|
|
|
|
|
public void Invoke(IDictionary<string, object> dic, BWP.B3Sale.BO.Gathering dmo) |
|
|
|
{ |
|
|
|
var detail = new GatheringDetail(); |
|
|
|
detail.InvoiceName = dmo.InvoiceName; |
|
|
|
detail.GatheringMoney = dmo.GatheringMoney; |
|
|
|
detail.ID = dmo.ID; |
|
|
|
detail.Remark = dmo.Remark; |
|
|
|
var details = new List<GatheringDetail>(); |
|
|
|
details.Add(detail); |
|
|
|
dic.Add("$GatheringDetails", details); |
|
|
|
dic.Add("$GatheringDetailType", typeof(GatheringDetail)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |