Browse Source

需求单No.137664

master
wugang 8 years ago
parent
commit
d71036d150
2 changed files with 50 additions and 1 deletions
  1. +4
    -1
      BWP.B3_YunKen.Web/BWP.B3_YunKen.Web.csproj
  2. +46
    -0
      BWP.B3_YunKen.Web/Pages/TypeIOCs/GatheringPrintTypeIOC.cs

+ 4
- 1
BWP.B3_YunKen.Web/BWP.B3_YunKen.Web.csproj View File

@ -137,6 +137,7 @@
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Pages\MainToSecondConvertRowManger.cs" />
<Compile Include="Pages\TypeIOCs\GatheringPrintTypeIOC.cs" />
<Compile Include="Pages\TypeIOCs\GoodsApplyBasePropertiesIOC.cs" />
<Compile Include="Pages\Utils\Second_ConvertRatioRowManager.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
@ -190,7 +191,9 @@
</ItemGroup>
<ItemGroup>
<Content Include="Pages\B3YunKen\Dialogs\ProductionCompletionDialog.xml" />
<EmbeddedResource Include="Pages\B3YunKen\Reports\ProduceFinishDiffReport.xml" />
<EmbeddedResource Include="Pages\B3YunKen\Reports\ProduceFinishDiffReport.xml">
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.


+ 46
- 0
BWP.B3_YunKen.Web/Pages/TypeIOCs/GatheringPrintTypeIOC.cs View File

@ -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));
}
}
}

Loading…
Cancel
Save