2024-09-27 18:17:21 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2026-03-11 16:20:22 +08:00
|
|
|
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/29/2021 10:56:08" ReportInfo.Modified="03/11/2026 16:08:06" ReportInfo.CreatorVersion="2017.1.16.0">
|
2024-09-27 18:17:21 +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;
|
|
|
|
|
using FastReport.Utils;
|
|
|
|
|
|
|
|
|
|
namespace FastReport
|
|
|
|
|
{
|
|
|
|
|
public class ReportScript
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
private void Table3_ManualBuild(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
// get the data source by its name
|
|
|
|
|
DataSourceBase rowData = Report.GetDataSource("Data");
|
|
|
|
|
// init the data source
|
|
|
|
|
rowData.Init();
|
|
|
|
|
|
|
|
|
|
// print the first table row - it is a header
|
|
|
|
|
Tabel_Data.PrintRow(0);
|
|
|
|
|
// each PrintRow call must be followed by either PrintColumn or PrintColumns call
|
|
|
|
|
// to print cells on the row
|
|
|
|
|
Tabel_Data.PrintColumns();
|
|
|
|
|
|
|
|
|
|
// now enumerate the data source and print the table body
|
|
|
|
|
while (rowData.HasMoreRows)
|
|
|
|
|
{
|
|
|
|
|
// print the table body
|
|
|
|
|
Tabel_Data.PrintRow(0);
|
|
|
|
|
Tabel_Data.PrintColumns();
|
|
|
|
|
|
|
|
|
|
// go next data source row
|
|
|
|
|
rowData.Next();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// print the last table row - it is a footer
|
|
|
|
|
//Tabel_Data.PrintRow(2);
|
|
|
|
|
//Table3.PrintColumns();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void Table4_ManualBuild(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
DataSourceBase rowData = Report.GetDataSource("Table1");
|
|
|
|
|
// init the data source
|
|
|
|
|
rowData.Init();
|
|
|
|
|
|
|
|
|
|
// print the first table row - it is a header
|
|
|
|
|
Table4.PrintRow(0);
|
|
|
|
|
// each PrintRow call must be followed by either PrintColumn or PrintColumns call
|
|
|
|
|
// to print cells on the row
|
|
|
|
|
Table4.PrintColumns();
|
|
|
|
|
|
|
|
|
|
// now enumerate the data source and print the table body
|
|
|
|
|
|
|
|
|
|
// print the table body
|
|
|
|
|
Table4.PrintRow(1);
|
|
|
|
|
Table4.PrintColumns();
|
|
|
|
|
Table4.PrintRow(2);
|
|
|
|
|
Table4.PrintColumns();
|
|
|
|
|
Table4.PrintRow(3);
|
|
|
|
|
Table4.PrintColumns();
|
|
|
|
|
Table4.PrintRow(4);
|
|
|
|
|
Table4.PrintColumns();
|
|
|
|
|
Table4.PrintRow(5);
|
|
|
|
|
Table4.PrintColumns();
|
|
|
|
|
Table4.PrintRow(6);
|
|
|
|
|
Table4.PrintColumns();
|
|
|
|
|
// go next data source row
|
|
|
|
|
rowData.Next();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Table5_ManualBuild(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Table5.PrintRow(0);
|
|
|
|
|
Table5.PrintColumns();
|
|
|
|
|
Table5.PrintRow(1);
|
|
|
|
|
Table5.PrintColumns();
|
|
|
|
|
}
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</ScriptText>
|
|
|
|
|
<Dictionary>
|
2026-03-11 16:20:22 +08:00
|
|
|
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqvJIqZbrmqGn7L0P56UFhaUHihKXxbhpqie4wmZgM2ymDKry7UxzO5md9ybQlkfKpN2rHYbp9GtH1LDQPa7z2vVu/kEnNnTKeHt9obmaC7TQDh0IvsUBSuzhGZdfAIK7YyBqykCgeZm5rvA6K5b7zHGdA+7pUpJ/9ZLpp1NuxWRHdfEL3zoMqqXEOl38L7vmw"/>
|
2024-09-27 18:17:21 +08:00
|
|
|
<TableDataSource Name="Table1" ReferenceName="Table1" DataType="System.Int32" Enabled="true">
|
|
|
|
|
<Column Name="pipelineCode" DataType="System.String" PropName="PipelineComponentId"/>
|
|
|
|
|
<Column Name="Mat" DataType="System.String" PropName="PipelineComponentCode"/>
|
|
|
|
|
<Column Name="WeldJointId" DataType="System.String" PropName="BoxNumber"/>
|
|
|
|
|
<Column Name="Spec" DataType="System.String" PropName="UnitWorkName"/>
|
|
|
|
|
<Column Name="SortIndex" DataType="System.String" PropName="PipelineId"/>
|
|
|
|
|
<Column Name="PipelineCode" DataType="System.String"/>
|
2026-03-11 16:20:22 +08:00
|
|
|
<Column Name="WeldJointPoint" DataType="System.String"/>
|
2024-09-27 18:17:21 +08:00
|
|
|
</TableDataSource>
|
|
|
|
|
<TableDataSource Name="Data" ReferenceName="Data.Data" DataType="System.Int32" Enabled="true">
|
|
|
|
|
<Column Name="CH_TrustID" DataType="System.String"/>
|
|
|
|
|
<Column Name="ISO_IsoNo" DataType="System.Int32" PropName="Column" Calculated="true" Expression=""/>
|
|
|
|
|
<Column Name="ISO_IsoNumber" DataType="System.Int32" PropName="Column" Calculated="true" Expression=""/>
|
|
|
|
|
<Column Name="JOT_JointNo" DataType="System.Int32" PropName="Column1" Calculated="true" Expression=""/>
|
|
|
|
|
<Column Name="WED_Code2" DataType="System.Int32" PropName="Column2" Calculated="true" Expression=""/>
|
|
|
|
|
<Column Name="JOT_JointDesc" DataType="System.Int32" PropName="Column3" Calculated="true" Expression=""/>
|
|
|
|
|
<Column Name="STE_Name1" DataType="System.Int32" PropName="Column" Calculated="true" Expression=""/>
|
|
|
|
|
<Column Name="Remark" DataType="System.Int32" PropName="Column1" Calculated="true" Expression=""/>
|
|
|
|
|
</TableDataSource>
|
|
|
|
|
<TableDataSource Name="Products" ReferenceName="NorthWind.Products" DataType="System.Int32" Enabled="true">
|
|
|
|
|
<Column Name="ProductID" DataType="System.Int32"/>
|
|
|
|
|
<Column Name="ProductName" DataType="System.String"/>
|
|
|
|
|
<Column Name="SupplierID" DataType="System.Int32"/>
|
|
|
|
|
<Column Name="CategoryID" DataType="System.Int32"/>
|
|
|
|
|
<Column Name="QuantityPerUnit" DataType="System.String"/>
|
|
|
|
|
<Column Name="UnitPrice" DataType="System.Decimal"/>
|
|
|
|
|
<Column Name="UnitsInStock" DataType="System.Int16"/>
|
|
|
|
|
<Column Name="UnitsOnOrder" DataType="System.Int16"/>
|
|
|
|
|
<Column Name="ReorderLevel" DataType="System.Int16"/>
|
|
|
|
|
<Column Name="Discontinued" DataType="System.Boolean" BindableControl="CheckBox"/>
|
|
|
|
|
<Column Name="EAN13" DataType="System.String"/>
|
|
|
|
|
</TableDataSource>
|
|
|
|
|
<Parameter Name="CH_TrustID" DataType="System.Single"/>
|
|
|
|
|
<Parameter Name="supUnit" DataType="System.String"/>
|
|
|
|
|
<Parameter Name="totalUnit" DataType="System.String"/>
|
|
|
|
|
<Parameter Name="ConUnit" DataType="System.String"/>
|
|
|
|
|
<Parameter Name="CheckUnit" DataType="System.String"/>
|
|
|
|
|
</Dictionary>
|
2024-10-09 17:20:12 +08:00
|
|
|
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="0" TopMargin="0" RightMargin="0" BottomMargin="0" MirrorMargins="true" Columns.Count="2" Columns.Width="105" Columns.Positions="0,105">
|
|
|
|
|
<PageHeaderBand Name="PageHeader1" Width="793.8"/>
|
|
|
|
|
<DataBand Name="Data1" Top="4" Width="396.9" Height="224.53" Guides="198.45" DataSource="Table1" Columns.Count="1">
|
|
|
|
|
<TableObject Name="Table2" Left="18.9" Top="18.9" Width="359.1" Height="186.72" Border.Lines="All">
|
|
|
|
|
<TableColumn Name="Column3" Width="160.64"/>
|
|
|
|
|
<TableColumn Name="Column1" Width="198.46"/>
|
|
|
|
|
<TableRow Name="Row1" Height="21.71">
|
2024-09-27 18:17:21 +08:00
|
|
|
<TableCell Name="Cell23" Text="管线号:[Table1.pipelineCode]" VertAlign="Center" Font="宋体, 11pt" ColSpan="2"/>
|
|
|
|
|
<TableCell Name="Cell1" VertAlign="Center" Font="宋体, 11pt"/>
|
|
|
|
|
</TableRow>
|
2024-10-09 17:20:12 +08:00
|
|
|
<TableRow Name="Row2" Height="21.71">
|
2024-09-27 18:17:21 +08:00
|
|
|
<TableCell Name="Cell24" Text="规格:[Table1.Spec]" VertAlign="Center" Font="宋体, 11pt"/>
|
|
|
|
|
<TableCell Name="Cell6" Text="材质:[Table1.Mat]" VertAlign="Center" Font="宋体, 11pt"/>
|
|
|
|
|
</TableRow>
|
2024-10-09 17:20:12 +08:00
|
|
|
<TableRow Name="Row5" Height="143.3">
|
2024-09-27 18:17:21 +08:00
|
|
|
<TableCell Name="Cell35">
|
2024-10-09 17:20:12 +08:00
|
|
|
<BarcodeObject Name="Barcode1" Left="3.78" Width="141.75" Height="141.75" AutoSize="false" Text="https://sggl.sedin.com.cn/StaticPage/HJGL/index.html?id=[Table1.WeldJointId]&weldjoint=1" ShowText="false" AllowExpressions="true" Barcode="QR Code" Barcode.ErrorCorrection="L" Barcode.Encoding="UTF8" Barcode.QuietZone="true"/>
|
2024-09-27 18:17:21 +08:00
|
|
|
</TableCell>
|
|
|
|
|
<TableCell Name="Cell36" VertAlign="Center" Font="宋体, 11pt">
|
2024-10-12 15:17:49 +08:00
|
|
|
<TextObject Name="Text1" Left="9.45" Top="18.9" Width="217.35" Height="103.95" Text="[Table1.SortIndex]#" Font="黑体, 48pt, style=Bold"/>
|
2024-09-27 18:17:21 +08:00
|
|
|
</TableCell>
|
|
|
|
|
</TableRow>
|
|
|
|
|
</TableObject>
|
|
|
|
|
</DataBand>
|
|
|
|
|
</ReportPage>
|
|
|
|
|
</Report>
|