2026-02-06 16:28:36 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2026-03-25 16:30:59 +08:00
|
|
|
<Report ScriptLanguage="CSharp" DoublePass="true" ReportInfo.Created="02/09/2026 11:02:02" ReportInfo.Modified="03/20/2026 09:47:12" ReportInfo.CreatorVersion="2017.1.16.0">
|
2026-02-06 16:28:36 +08:00
|
|
|
<ScriptText>using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using FastReport;
|
|
|
|
|
using FastReport.Data;
|
|
|
|
|
using FastReport.Dialog;
|
|
|
|
|
using FastReport.Barcode;
|
|
|
|
|
using FastReport.Table;
|
2026-02-09 15:40:52 +08:00
|
|
|
using FastReport.Utils;
|
2026-02-06 16:28:36 +08:00
|
|
|
|
|
|
|
|
namespace FastReport
|
|
|
|
|
{
|
|
|
|
|
public class ReportScript
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
private void Table3_ManualBuild(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
DataSourceBase rowData = Report.GetDataSource("Data");
|
|
|
|
|
// init the data source
|
|
|
|
|
rowData.Init();
|
|
|
|
|
|
|
|
|
|
// print the first table row - it is a header
|
|
|
|
|
|
|
|
|
|
// now enumerate the data source and print the table body
|
|
|
|
|
while (rowData.HasMoreRows)
|
|
|
|
|
{
|
|
|
|
|
// print the table body
|
|
|
|
|
Table3.PrintRow(0);
|
|
|
|
|
Table3.PrintColumns();
|
|
|
|
|
|
|
|
|
|
// go next data source row
|
|
|
|
|
rowData.Next();
|
|
|
|
|
}
|
2026-02-09 15:40:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void PageFooter1_BeforePrint(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
// FastReport 2017版判断最后一页的正确写法(Options设置中Double pass勾选)
|
|
|
|
|
bool isLastPage = (Report.Engine.PageNo == Report.Engine.TotalPages);
|
|
|
|
|
|
|
|
|
|
// 仅最后一页显示页脚
|
|
|
|
|
PageFooter1.Visible =isLastPage;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-02-06 16:28:36 +08:00
|
|
|
}
|
|
|
|
|
</ScriptText>
|
|
|
|
|
<Dictionary>
|
2026-03-25 16:30:59 +08:00
|
|
|
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF+ZeeHqWx7GTHsZYv7jySOA==">
|
2026-02-06 16:28:36 +08:00
|
|
|
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
|
|
|
|
|
<Column Name="SerialNumber" DataType="System.String" PropName="attach_image_id"/>
|
|
|
|
|
<Column Name="FileCode" DataType="System.String" PropName="image_series"/>
|
|
|
|
|
<Column Name="FileName" DataType="System.String" PropName="file_name"/>
|
|
|
|
|
<Column Name="Remark" DataType="System.String" PropName="file_size"/>
|
|
|
|
|
</TableDataSource>
|
|
|
|
|
</MsSqlDataConnection>
|
|
|
|
|
<Parameter Name="ProjectName" DataType="System.String"/>
|
|
|
|
|
</Dictionary>
|
2026-02-07 11:38:12 +08:00
|
|
|
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.4,129.28,390.86,475.91,34.78,138.73,261.58,507.67,646.37,45.83,242.86,515.49,646.38,323.19">
|
2026-03-25 16:30:59 +08:00
|
|
|
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="103.95" Guides="0,103.95,66.15,9.45,28.35,37.8">
|
|
|
|
|
<TableObject Name="Table1" Width="646.4" Height="103.95" Border.Lines="Left">
|
2026-02-06 16:28:36 +08:00
|
|
|
<TableColumn Name="Column1" Width="129.28"/>
|
|
|
|
|
<TableColumn Name="Column2" Width="261.58"/>
|
|
|
|
|
<TableColumn Name="Column3" Width="82.03"/>
|
|
|
|
|
<TableColumn Name="Column4" Width="34.78"/>
|
|
|
|
|
<TableColumn Name="Column5" Width="138.73"/>
|
2026-03-25 16:30:59 +08:00
|
|
|
<TableRow Name="Row1" Height="66.15">
|
2026-02-06 16:28:36 +08:00
|
|
|
<TableCell Name="Cell1" Border.Lines="Top, Bottom" Text="SH/T 3503—J103" HorzAlign="Center" VertAlign="Center" Font="黑体, 10.5pt" RowSpan="2"/>
|
|
|
|
|
<TableCell Name="Cell2" Border.Lines="All" Text="交工技术文件目录" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 16pt, style=Bold" RowSpan="2"/>
|
|
|
|
|
<TableCell Name="Cell3" Border.Lines="Left, Right, Top" Text=" [ProjectName]" Padding="2, 10, 2, 1" Font="楷体, 10.5pt" ColSpan="3">
|
|
|
|
|
<TextObject Name="Text1" Top="9.45" Width="85.05" Height="18.9" Text="工程名称:" Font="宋体, 10.5pt"/>
|
|
|
|
|
</TableCell>
|
|
|
|
|
<TableCell Name="Cell4" Border.Lines="Left, Right, Top" Padding="2, 10, 2, 1" Font="楷体, 10.5pt"/>
|
|
|
|
|
<TableCell Name="Cell5" Border.Lines="Left" Font="宋体, 10.5pt"/>
|
|
|
|
|
</TableRow>
|
|
|
|
|
<TableRow Name="Row2" Height="37.8">
|
|
|
|
|
<TableCell Name="Cell6"/>
|
|
|
|
|
<TableCell Name="Cell7"/>
|
|
|
|
|
<TableCell Name="Cell8" Border.Lines="Left, Bottom" Text="单位工程名称:" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
|
|
|
|
|
<TableCell Name="Cell9" Border.Lines="Left" VertAlign="Center" Font="宋体, 10.5pt"/>
|
|
|
|
|
<TableCell Name="Cell10" Border.Lines="Right, Bottom" Text="管道安装工程" VertAlign="Center" Font="楷体, 10.5pt"/>
|
|
|
|
|
</TableRow>
|
|
|
|
|
</TableObject>
|
2026-03-25 16:30:59 +08:00
|
|
|
<ChildBand Name="Child1" Top="107.95" Width="646.38" Height="34.85" Guides="0,34.85">
|
2026-02-07 11:38:12 +08:00
|
|
|
<TableObject Name="Table2" Width="646.37" Height="34.85" Border.Lines="All">
|
|
|
|
|
<TableColumn Name="Column6" Width="45.83"/>
|
|
|
|
|
<TableColumn Name="Column7" Width="197.03"/>
|
|
|
|
|
<TableColumn Name="Column8" Width="272.63"/>
|
|
|
|
|
<TableColumn Name="Column9" Width="130.88"/>
|
|
|
|
|
<TableRow Name="Row3" Height="34.85">
|
|
|
|
|
<TableCell Name="Cell11" Border.Lines="All" Text="序号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
|
|
|
|
<TableCell Name="Cell12" Border.Lines="All" Text="文件编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
|
|
|
|
<TableCell Name="Cell13" Border.Lines="All" Text="文件名称" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
|
|
|
|
<TableCell Name="Cell14" Border.Lines="All" Text="页次" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
2026-02-06 16:28:36 +08:00
|
|
|
</TableRow>
|
|
|
|
|
</TableObject>
|
|
|
|
|
</ChildBand>
|
|
|
|
|
</PageHeaderBand>
|
2026-03-25 16:30:59 +08:00
|
|
|
<DataBand Name="Data1" Top="146.8" Width="646.38" Height="34.85" Guides="0,34.85">
|
2026-02-09 15:40:52 +08:00
|
|
|
<TableObject Name="Table3" Width="646.37" Height="34.85" Border.Lines="All" ManualBuildEvent="Table3_ManualBuild">
|
2026-02-06 16:28:36 +08:00
|
|
|
<TableColumn Name="Column10" Width="45.83"/>
|
|
|
|
|
<TableColumn Name="Column11" Width="197.03"/>
|
|
|
|
|
<TableColumn Name="Column12" Width="272.63"/>
|
|
|
|
|
<TableColumn Name="Column13" Width="130.88"/>
|
2026-02-09 15:40:52 +08:00
|
|
|
<TableRow Name="Row4" Height="34.85">
|
2026-02-06 16:28:36 +08:00
|
|
|
<TableCell Name="Cell15" Border.Lines="All" Text="[Data.SerialNumber]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
|
|
|
|
<TableCell Name="Cell16" Border.Lines="All" Text="[Data.FileCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
2026-02-09 15:40:52 +08:00
|
|
|
<TableCell Name="Cell17" Border.Lines="All" Text="[Data.FileName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
2026-02-06 16:28:36 +08:00
|
|
|
<TableCell Name="Cell18" Border.Lines="All" Text="[Data.Remark]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
|
|
|
|
|
</TableRow>
|
|
|
|
|
</TableObject>
|
|
|
|
|
</DataBand>
|
2026-03-25 16:30:59 +08:00
|
|
|
<ColumnFooterBand Name="ColumnFooter1" Top="224.5" Width="646.38">
|
|
|
|
|
<ChildBand Name="Child2" Top="185.65" Width="646.38" Height="34.85" Guides="0,34.85" FillUnusedSpace="true">
|
2026-02-09 15:40:52 +08:00
|
|
|
<TableObject Name="Table4" Width="646.37" Height="34.85" Border.Lines="All">
|
|
|
|
|
<TableColumn Name="Column14" Width="45.83"/>
|
|
|
|
|
<TableColumn Name="Column15" Width="197.03"/>
|
|
|
|
|
<TableColumn Name="Column16" Width="272.63"/>
|
|
|
|
|
<TableColumn Name="Column17" Width="130.88"/>
|
|
|
|
|
<TableRow Name="Row5" Height="34.85">
|
|
|
|
|
<TableCell Name="Cell19" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
|
|
|
|
<TableCell Name="Cell20" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
|
|
|
|
<TableCell Name="Cell21" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
|
|
|
|
<TableCell Name="Cell22" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
|
2026-02-07 17:01:31 +08:00
|
|
|
</TableRow>
|
|
|
|
|
</TableObject>
|
|
|
|
|
</ChildBand>
|
|
|
|
|
</ColumnFooterBand>
|
2026-03-25 16:30:59 +08:00
|
|
|
<PageFooterBand Name="PageFooter1" Top="228.5" Width="646.38" Height="103.95" PrintOn="LastPage" BeforePrintEvent="PageFooter1_BeforePrint" Guides="0,103.95,40.95,72.45">
|
|
|
|
|
<TableObject Name="Table5" Width="646.38" Height="103.95" Border.Lines="Left">
|
2026-02-09 15:40:52 +08:00
|
|
|
<TableColumn Name="Column18" Width="323.19"/>
|
|
|
|
|
<TableColumn Name="Column19" Width="323.19"/>
|
2026-03-25 16:30:59 +08:00
|
|
|
<TableRow Name="Row6" Height="40.95">
|
|
|
|
|
<TableCell Name="Cell23" Border.Lines="Right" Text="编制人:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
|
|
|
|
<TableCell Name="Cell24" Border.Lines="Right" Text="审核人:" VertAlign="Center" Font="宋体, 10.5pt"/>
|
2026-02-07 11:38:12 +08:00
|
|
|
</TableRow>
|
2026-02-09 15:40:52 +08:00
|
|
|
<TableRow Name="Row7" Height="31.5">
|
|
|
|
|
<TableCell Name="Cell28" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
|
|
|
|
|
<TableCell Name="Cell29" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
|
2026-02-07 11:38:12 +08:00
|
|
|
</TableRow>
|
2026-02-09 15:40:52 +08:00
|
|
|
<TableRow Name="Row8" Height="31.5">
|
|
|
|
|
<TableCell Name="Cell33" Border.Lines="Right, Bottom" Text="日 期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
|
|
|
|
<TableCell Name="Cell34" Border.Lines="Right, Bottom" Text="日 期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
|
2026-02-07 11:38:12 +08:00
|
|
|
</TableRow>
|
|
|
|
|
</TableObject>
|
2026-02-07 17:01:31 +08:00
|
|
|
</PageFooterBand>
|
2026-02-06 16:28:36 +08:00
|
|
|
</ReportPage>
|
|
|
|
|
</Report>
|