Browse Source

增加打印

master
luanhui 8 years ago
parent
commit
20c7bd207d
3 changed files with 56 additions and 0 deletions
  1. +3
    -0
      B3_DongFangWanQi.Web/B3_DongFangWanQi.Web.csproj
  2. +20
    -0
      B3_DongFangWanQi.Web/Pages/B3_DongFangWanQi/Bills/ProductionNotification_/ProductionNotificationPrint.cs
  3. +33
    -0
      WebFolder/Config/billreports/B3_DongFangWanQi/ProductionNotificationPrint.xml

+ 3
- 0
B3_DongFangWanQi.Web/B3_DongFangWanQi.Web.csproj View File

@ -140,6 +140,9 @@
<Compile Include="Pages\B3_DongFangWanQi\Bills\ProductionNotification_\ProductionNotificationList.cs"> <Compile Include="Pages\B3_DongFangWanQi\Bills\ProductionNotification_\ProductionNotificationList.cs">
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="Pages\B3_DongFangWanQi\Bills\ProductionNotification_\ProductionNotificationPrint.cs">
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Pages\B3_DongFangWanQi\Bills\ProductionNotification_\SelectOrderDialog.cs"> <Compile Include="Pages\B3_DongFangWanQi\Bills\ProductionNotification_\SelectOrderDialog.cs">
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>


+ 20
- 0
B3_DongFangWanQi.Web/Pages/B3_DongFangWanQi/Bills/ProductionNotification_/ProductionNotificationPrint.cs View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using B3_DongFangWanQi.BL;
using B3_DongFangWanQi.BO;
using BWP.B3Sale.BO;
namespace BWP.Web.Pages.B3_DongFangWanQi.Bills.ProductionNotification_
{
class ProductionNotificationPrint : DomainTemplatePrintPage<ProductionNotification, IProductionNotificationBL>
{
protected override void AddParameters(IDictionary<string, object> dic)
{
dic.Add("$Details", Dmo.Details);
dic.Add("$DetailType", typeof(ProductionNotification_Detail));
}
}
}

+ 33
- 0
WebFolder/Config/billreports/B3_DongFangWanQi/ProductionNotificationPrint.xml View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<BillReports xmlns="urn:BillReports" version="1.0" displayName="生产通知" phyName="生产通知">
<Report phyName="标准格式">
<BillReport xmlns="urn:BillReport" version="1" displayName="标准格式" >
<Bands>
<TextBand fontName="黑体" fontSize="15" align="Center">生产通知№$Dmo.ID</TextBand>
<DFInfoBand object="$Dmo" cols="4">
<Field name="AccountingUnit_Name" lblWidth="4"/>
<Field name="Department_Name" lblWidth="4"/>
<Field name="Employee_Name" lblWidth="4"/>
<Field name="Date" lblWidth="4"/>
<Field name="Remark" lblWidth="4"/>
</DFInfoBand>
<HtmlBand>
<![CDATA[<h2>明细清单</h2>]]>
</HtmlBand>
<DFListBand collection="$Details" itemType="$DetailType" enablePaging="true" >
<Field name="Order_ID"/>
<Field name="OrderDate"/>
<Field name="LoadTime"/>
<Field name="Customer_Name" />
<Field name="Goods_Name" />
<Field name="UnitNumber" sum="true"/>
<Field name="SendNumber" sum="true"/>
<Field name="LoadCarNumber" sum="true"/>
<Field name="Price"/>
<Field name="Money" sum="true"/>
</DFListBand>
</Bands>
</BillReport>
</Report>
</BillReports>

Loading…
Cancel
Save