88 lines
4.4 KiB
Plaintext
88 lines
4.4 KiB
Plaintext
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<Report ScriptLanguage="CSharp" ReportInfo.Created="04/19/2026 09:00:00" ReportInfo.Modified="04/19/2026 00:22:44" ReportInfo.CreatorVersion="2017.1.16.0">
|
||
|
|
<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.Table;
|
||
|
|
using FastReport.Utils;
|
||
|
|
|
||
|
|
namespace FastReport
|
||
|
|
{
|
||
|
|
public class ReportScript
|
||
|
|
{
|
||
|
|
private void TableData_ManualBuild(object sender, EventArgs e)
|
||
|
|
{
|
||
|
|
DataSourceBase rowData = Report.GetDataSource("Table1");
|
||
|
|
rowData.Init();
|
||
|
|
while (rowData.HasMoreRows)
|
||
|
|
{
|
||
|
|
TableData.PrintRow(0);
|
||
|
|
TableData.PrintColumns();
|
||
|
|
rowData.Next();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</ScriptText>
|
||
|
|
<Dictionary>
|
||
|
|
<TableDataSource Name="Table1" ReferenceName="Table1" DataType="System.Int32" Enabled="true">
|
||
|
|
<Column Name="PipelineCode" DataType="System.String"/>
|
||
|
|
<Column Name="SegmentCode" DataType="System.String"/>
|
||
|
|
<Column Name="WeldJointCode" DataType="System.String"/>
|
||
|
|
<Column Name="WeldJointMaterial" DataType="System.String"/>
|
||
|
|
<Column Name="DiaAndThickness" DataType="System.String"/>
|
||
|
|
</TableDataSource>
|
||
|
|
<Parameter Name="Code" DataType="System.String"/>
|
||
|
|
<Parameter Name="UnitWorkName" DataType="System.String"/>
|
||
|
|
</Dictionary>
|
||
|
|
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9">
|
||
|
|
<PageHeaderBand Name="PageHeader1" Width="1047.06" Height="97.33">
|
||
|
|
<TableObject Name="TableHeader" Left="9.45" Top="9.45" Width="1028.16" Height="87.88" Border.Lines="All" Fill.Color="255, 255, 255">
|
||
|
|
<TableColumn Name="Column1" Width="204.86"/>
|
||
|
|
<TableColumn Name="Column2" Width="204.86"/>
|
||
|
|
<TableColumn Name="Column3" Width="274.66"/>
|
||
|
|
<TableColumn Name="Column4" Width="343.78"/>
|
||
|
|
<TableRow Name="Row1" Height="31.18">
|
||
|
|
<TableCell Name="Cell1" Text="任务单焊口号(安装)" HorzAlign="Center" VertAlign="Center" Font="宋体, 18pt, style=Bold" ColSpan="4"/>
|
||
|
|
<TableCell Name="Cell2"/>
|
||
|
|
<TableCell Name="Cell3"/>
|
||
|
|
<TableCell Name="Cell4"/>
|
||
|
|
</TableRow>
|
||
|
|
<TableRow Name="Row2" Height="28.35">
|
||
|
|
<TableCell Name="Cell5" Text="装置名称:[UnitWorkName]" VertAlign="Center" Font="宋体, 12pt" ColSpan="2"/>
|
||
|
|
<TableCell Name="Cell6"/>
|
||
|
|
<TableCell Name="Cell7" Text="任务单编号:[Code]" VertAlign="Center" Font="宋体, 12pt" ColSpan="2"/>
|
||
|
|
<TableCell Name="Cell8"/>
|
||
|
|
</TableRow>
|
||
|
|
<TableRow Name="Row3" Height="28.35">
|
||
|
|
<TableCell Name="Cell9" Border.Lines="All" Text="管线号" HorzAlign="Center" VertAlign="Center" Font="宋体, 13pt"/>
|
||
|
|
<TableCell Name="Cell10" Border.Lines="All" Text="焊口号" HorzAlign="Center" VertAlign="Center" Font="宋体, 13pt"/>
|
||
|
|
<TableCell Name="Cell11" Border.Lines="All" Text="材质" HorzAlign="Center" VertAlign="Center" Font="宋体, 13pt"/>
|
||
|
|
<TableCell Name="Cell12" Border.Lines="All" Text="规格" HorzAlign="Center" VertAlign="Center" Font="宋体, 13pt"/>
|
||
|
|
</TableRow>
|
||
|
|
</TableObject>
|
||
|
|
</PageHeaderBand>
|
||
|
|
<DataBand Name="Data1" Top="101.54" Width="1047.06" Height="28.35">
|
||
|
|
<TableObject Name="TableData" Left="9.45" Width="1028.16" Height="28.35" Border.Lines="All" ManualBuildEvent="TableData_ManualBuild">
|
||
|
|
<TableColumn Name="DataColumn1" Width="204.86"/>
|
||
|
|
<TableColumn Name="DataColumn2" Width="204.86"/>
|
||
|
|
<TableColumn Name="DataColumn3" Width="274.66"/>
|
||
|
|
<TableColumn Name="DataColumn4" Width="343.78"/>
|
||
|
|
<TableRow Name="DataRow1" Height="28.35">
|
||
|
|
<TableCell Name="DataCell1" Border.Lines="All" Text="[Table1.PipelineCode]" HorzAlign="Center" VertAlign="Center" Font="宋体, 11pt"/>
|
||
|
|
<TableCell Name="DataCell2" Border.Lines="All" Text="[Table1.WeldJointCode]" HorzAlign="Center" VertAlign="Center" Font="宋体, 11pt"/>
|
||
|
|
<TableCell Name="DataCell3" Border.Lines="All" Text="[Table1.WeldJointMaterial]" HorzAlign="Center" VertAlign="Center" Font="宋体, 11pt"/>
|
||
|
|
<TableCell Name="DataCell4" Border.Lines="All" Text="[Table1.DiaAndThickness]" HorzAlign="Center" VertAlign="Center" Font="宋体, 11pt"/>
|
||
|
|
</TableRow>
|
||
|
|
</TableObject>
|
||
|
|
</DataBand>
|
||
|
|
</ReportPage>
|
||
|
|
</Report>
|