20261013 交工资料样式

This commit is contained in:
2026-10-13 14:54:49 +08:00
parent db7cd6870c
commit b2ea7df94d
28 changed files with 1165 additions and 1022 deletions
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" DoublePass="true" ReportInfo.Created="02/09/2026 11:02:02" ReportInfo.Modified="04/22/2026 16:39:05" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" DoublePass="true" ReportInfo.Created="02/09/2026 11:02:02" ReportInfo.Modified="10/10/2026 09:10:07" ReportInfo.CreatorVersion="2017.1.16.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
@@ -51,7 +51,7 @@ namespace FastReport
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFg1qRjSswFxgpEVsc1cd7Ug==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFTnSgiTjxVXJT4iSckTJclA==">
<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"/>
@@ -61,7 +61,7 @@ namespace FastReport
</MsSqlDataConnection>
<Parameter Name="ProjectName" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.4,129.28,390.86,472.89,507.67,261.58,34.78,646.37,45.83,242.86,515.49,646.38,323.19">
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.4,129.28,390.86,472.89,138.73,261.58,507.67,34.78,646.37,45.83,242.86,515.49,646.38,323.19">
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="103.95" Guides="0,103.95,66.15,37.8">
<TableObject Name="Table1" Width="646.4" Height="103.95" Border.Lines="Left">
<TableColumn Name="Column1" Width="129.28"/>
@@ -72,16 +72,16 @@ namespace FastReport
<TableRow Name="Row1" Height="66.15">
<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, Top" Text="工程名称:" Padding="2, 15, 2, 1" Font="宋体, 10.5pt"/>
<TableCell Name="Cell4" Border.Lines="Right, Top" Text="[ProjectName]" Padding="2, 10, 2, 1" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell3" Border.Lines="Left, Top" Text="工程名称:" Padding="2, 15, 1, 1" Font="宋体, 10.5pt"/>
<TableCell Name="Cell4" Border.Lines="Right, Top" Text="[ProjectName]" Padding="1, 15, 2, 1" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell5" 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="Cell8" Border.Lines="Left, Bottom" Text="单位工程名称:" Padding="2, 1, 1, 1" 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"/>
<TableCell Name="Cell10" Border.Lines="Right, Bottom" Text="管道安装工程" Padding="1, 1, 2, 1" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
</TableObject>
<ChildBand Name="Child1" Top="107.95" Width="646.38" Height="34.85" Guides="0,34.85">
@@ -99,13 +99,13 @@ namespace FastReport
</TableObject>
</ChildBand>
</PageHeaderBand>
<DataBand Name="Data1" Top="146.8" Width="646.38" Height="34.85" Guides="0,34.85">
<TableObject Name="Table3" Width="646.37" Height="34.85" Border.Lines="All" ManualBuildEvent="Table3_ManualBuild">
<DataBand Name="Data1" Top="146.8" Width="646.38" Height="25.4" Guides="0,25.4">
<TableObject Name="Table3" Width="646.37" Height="25.4" Border.Lines="All" ManualBuildEvent="Table3_ManualBuild">
<TableColumn Name="Column10" Width="45.83"/>
<TableColumn Name="Column11" Width="197.03"/>
<TableColumn Name="Column12" Width="272.63"/>
<TableColumn Name="Column13" Width="130.88"/>
<TableRow Name="Row4" Height="34.85">
<TableRow Name="Row4" Height="25.4">
<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"/>
<TableCell Name="Cell17" Border.Lines="All" Text="[Data.FileName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
@@ -113,14 +113,14 @@ namespace FastReport
</TableRow>
</TableObject>
</DataBand>
<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">
<TableObject Name="Table4" Width="646.37" Height="34.85" Border.Lines="All">
<ColumnFooterBand Name="ColumnFooter1" Top="205.6" Width="646.38">
<ChildBand Name="Child2" Top="176.2" Width="646.38" Height="25.4" Guides="0,25.4" FillUnusedSpace="true">
<TableObject Name="Table4" Width="646.37" Height="25.4" 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">
<TableRow Name="Row5" Height="25.4">
<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"/>
@@ -129,15 +129,15 @@ namespace FastReport
</TableObject>
</ChildBand>
</ColumnFooterBand>
<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">
<PageFooterBand Name="PageFooter1" Top="209.6" Width="646.38" Height="109.12" PrintOn="LastPage" BeforePrintEvent="PageFooter1_BeforePrint" Guides="0,109.12,40.95,77.62">
<TableObject Name="Table5" Width="646.38" Height="109.12" Border.Lines="Left">
<TableColumn Name="Column18" Width="323.19"/>
<TableColumn Name="Column19" Width="323.19"/>
<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"/>
<TableCell Name="Cell23" Border.Lines="Right, Top" Text="编制人:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell24" Border.Lines="Right, Top" Text="审核人:" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row7" Height="31.5">
<TableRow Name="Row7" Height="36.67">
<TableCell Name="Cell28" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell29" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/29/2026 16:26:38" ReportInfo.Modified="04/22/2026 16:42:34" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/29/2026 16:26:38" ReportInfo.Modified="10/10/2026 09:15:26" ReportInfo.CreatorVersion="2017.1.16.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
@@ -33,7 +33,7 @@ namespace FastReport
<Parameter Name="MainContent" DataType="System.String"/>
<Parameter Name="CopiesNum" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.38,149.31,383.67,468.72,418.23,228.15,323.19">
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.38,149.31,383.67,468.72,228.15,418.23,323.19">
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="94.5" Guides="0,94.5">
<TableObject Name="Table1" Width="646.38" Height="94.5" Border.Lines="Left">
<TableColumn Name="Column1" Width="149.31"/>
@@ -48,14 +48,18 @@ namespace FastReport
</TableRow>
</TableObject>
</PageHeaderBand>
<DataBand Name="Data1" Top="98.5" Width="646.38" Height="830.2" Guides="0,830.2,194.11,227.57,33.46,327.95,361.41,394.87,428.33,461.79,495.25,528.71,642.88,42.91,37.8,676.34,709.8,749.49">
<DataBand Name="Data1" Top="98.5" Width="646.38" Height="830.2" Guides="0,830.2,24.01,194.11,227.57,33.46,327.95,361.41,394.87,428.33,461.79,495.25,528.71,642.88,42.91,37.8,676.34,709.8,749.49">
<TableObject Name="Table2" Width="646.38" Height="830.2" Border.Lines="Left, Right, Bottom">
<TableColumn Name="Column4" Width="228.15"/>
<TableColumn Name="Column5" Width="418.23"/>
<TableRow Name="Row2" Height="194.11">
<TableCell Name="Cell4" Text="一、工程概况:[ProjectOverview]" Font="楷体, 10.5pt" ColSpan="2"/>
<TableRow Name="Row2" Height="24.01">
<TableCell Name="Cell4" Text="一、工程概况:" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell5" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row22" Height="170.1">
<TableCell Name="Cell60" Text="[ProjectOverview]" Padding="50, 1, 2, 1" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell61"/>
</TableRow>
<TableRow Name="Row3" Height="33.46">
<TableCell Name="Cell9" Text="二、编制依据" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell10" VertAlign="Center" Font="楷体, 10.5pt"/>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/26/2026 11:18:50" ReportInfo.Modified="10/09/2026 09:24:39" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" DoublePass="true" ReportInfo.Created="01/26/2026 11:18:50" ReportInfo.Modified="10/12/2026 16:09:37" ReportInfo.CreatorVersion="2017.1.16.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
@@ -42,7 +42,7 @@ namespace FastReport
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFzsQOzZJGNfutOS1d36ZVeQ==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF/J7hkNTyMxeqnl8XIPwd9A==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="Num" DataType="System.String" PropName="attach_image_id"/>
<Column Name="PipelineCode" DataType="System.String" PropName="image_series"/>
@@ -75,115 +75,144 @@ namespace FastReport
<Parameter Name="DeliveryUnit" DataType="System.String"/>
<Parameter Name="DeliveryUnitCode" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16" TopMargin="22" RightMargin="13.2" BottomMargin="17" Guides="718.2,1001.7,311.85,670.95,0,141.75,132.3,463.05,1009.26,151.2,85.05,9.45,37.8,538.65,28.35,56.7,47.25,66.15,669.0601,54.81,113.4,207.9,264.6,349.65,406.35,472.5,510.3,567,621.81,716.31,773.01,820.26,867.51,914.76,962.01,18.9,179.55,75.6,103.95,274.05,368.55,803.25,897.75,633.15,387.45">
<PageHeaderBand Name="PageHeader1" Width="1012.28" Height="236.25" Guides="0,18.9,56.7,85.05,236.25,37.8,151.2,94.5">
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16" TopMargin="22" RightMargin="13.2" BottomMargin="17" Guides="718.2,1001.7,311.85,670.95,0,141.75,132.3,463.05,1009.26,151.2,85.05,9.45,37.8,538.65,28.35,56.7,47.25,66.15,669.0601,54.81,113.4,207.9,264.6,349.65,406.35,472.5,510.3,567,621.81,716.31,773.01,820.26,867.51,914.76,962.01,18.9,179.55,75.6,103.95,274.05,368.55,803.25,897.75,633.15,378,661.5">
<PageHeaderBand Name="PageHeader1" Width="1012.28" Height="85.05" Guides="0,18.9,56.7,85.05">
<TextObject Name="Text1" Left="718.2" Width="283.5" Height="18.9" Text="ZDS-T6.38.047.A/1.2025" HorzAlign="Center" VertAlign="Center" Font="宋体, 14pt"/>
<TextObject Name="Text2" Left="311.85" Top="18.9" Width="359.1" Height="37.8" Text="工业管道安装汇总表" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 16pt, style=Bold"/>
<TextObject Name="Text3" Top="56.7" Width="141.75" Height="28.35" Text="质量证明书编号:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TextObject Name="Text4" Left="132.3" Top="56.7" Width="330.75" Height="28.35" Text="[CertificateCode]" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableObject Name="Table1" Top="85.05" Width="1009.26" Height="151.2" Border.Lines="Bottom">
<TableColumn Name="Column1" Width="18.9"/>
<TableColumn Name="Column23" Width="85.05"/>
<TableColumn Name="Column2" Width="9.45"/>
<TableColumn Name="Column3" Width="37.8"/>
<TableColumn Name="Column71" Width="28.35"/>
<TableColumn Name="Column70" Width="28.35"/>
<TableColumn Name="Column4" Width="56.7"/>
<TableColumn Name="Column5" Width="47.25"/>
<TableColumn Name="Column7" Width="37.8"/>
<TableColumn Name="Column8" Width="56.7"/>
<TableColumn Name="Column9"/>
<TableColumn Name="Column10" Width="37.8"/>
<TableColumn Name="Column11" Width="28.35"/>
<TableColumn Name="Column12" Width="28.35"/>
<TableColumn Name="Column13" Width="54.81"/>
<TableColumn Name="Column14" Width="47.25"/>
<TableColumn Name="Column15" Width="47.25"/>
<TableColumn Name="Column16" Width="56.7"/>
<TableColumn Name="Column17" Width="47.25"/>
<TableColumn Name="Column18" Width="47.25"/>
<TableColumn Name="Column20" Width="47.25"/>
<TableColumn Name="Column21" Width="47.25"/>
<TableColumn Name="Column22" Width="47.25"/>
<TableRow Name="Row1" Height="37.8">
<TableCell Name="Cell1" Border.Lines="Left, Top, Bottom" Text="交工单元名称:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell77" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell2" Border.Lines="Right, Top, Bottom" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell3" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell175" Border.Lines="Top" Text="[DeliveryUnit]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="9"/>
<TableCell Name="Cell172" Border.Lines="Top" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell4" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell5" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell27" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell28" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell29" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell30" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell31" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell32" Border.Lines="Left, Top, Bottom" Text="交工单元编号:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell33" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell34" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell35" Border.Lines="Right, Top, Bottom" Text="[DeliveryUnitCode]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="7"/>
<TableCell Name="Cell36" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell37" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell41" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell42" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
</TableRow>
<TableRow Name="Row2" Height="56.7">
<TableCell Name="Cell6" Border.Lines="All" Text="管道编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3" RowSpan="2"/>
<TableCell Name="Cell78" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell7" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell8" Border.Lines="All" Text="管道&#13;&#10;级别" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell176" Border.Lines="All" Text="起止点" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell173" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell9" Border.Lines="All" Text="设计&#13;&#10;压力&#13;&#10;(MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell10" Border.Lines="All" Text="设计温度(℃)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell44" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell45" Border.Lines="All" Text="材质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell46" Border.Lines="All" Text="规格&#13;&#10;(mm)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell47" Border.Lines="All" Text="长度(m)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell48" Border.Lines="All" Text="铺设方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell49" Border.Lines="All" Text="焊口&#13;&#10;数量&#13;&#10;" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell50" Border.Lines="All" Text="无损检测方法/比例(%)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell51" Border.Lines="All" Text="耐压试验方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell52" Border.Lines="All" Text="耐压试验介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell53" Border.Lines="All" Text="耐压试验压力(MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell54" Border.Lines="All" Text="泄漏试验介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell55" Border.Lines="All" Text="泄漏试验压力(MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell57" Border.Lines="All" Text="吹扫、清洗方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell58" Border.Lines="All" Text="腐蚀控制方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell59" Border.Lines="All" Text="保温(绝热)方式&#13;&#10;" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
</TableRow>
<TableRow Name="Row3" Height="56.7">
<TableCell Name="Cell11" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell79" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell12" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell13" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell177" Border.Lines="All" Text="起&#13;&#10;点" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell174" Border.Lines="All" Text="终&#13;&#10;点" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell14" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell15" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell61" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell62" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell63" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell64" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell65" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell66" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell67" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell68" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell69" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell70" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell71" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell72" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell74" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell75" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell76" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
<ChildBand Name="Child2" Top="89.05" Width="1012.28" Height="37.8" PrintOn="FirstPage" Guides="0,37.8">
<TableObject Name="Table1" Width="1009.26" Height="37.8" Border.Lines="Bottom">
<TableColumn Name="Column1" Width="18.9"/>
<TableColumn Name="Column23" Width="85.05"/>
<TableColumn Name="Column2" Width="9.45"/>
<TableColumn Name="Column3" Width="37.8"/>
<TableColumn Name="Column71" Width="28.35"/>
<TableColumn Name="Column70" Width="28.35"/>
<TableColumn Name="Column4" Width="56.7"/>
<TableColumn Name="Column5" Width="47.25"/>
<TableColumn Name="Column7" Width="37.8"/>
<TableColumn Name="Column8" Width="56.7"/>
<TableColumn Name="Column9"/>
<TableColumn Name="Column10" Width="37.8"/>
<TableColumn Name="Column11" Width="28.35"/>
<TableColumn Name="Column12" Width="28.35"/>
<TableColumn Name="Column13" Width="54.81"/>
<TableColumn Name="Column14" Width="47.25"/>
<TableColumn Name="Column15" Width="47.25"/>
<TableColumn Name="Column16" Width="56.7"/>
<TableColumn Name="Column17" Width="47.25"/>
<TableColumn Name="Column18" Width="47.25"/>
<TableColumn Name="Column20" Width="47.25"/>
<TableColumn Name="Column21" Width="47.25"/>
<TableColumn Name="Column22" Width="47.25"/>
<TableRow Name="Row1" Height="37.8">
<TableCell Name="Cell1" Border.Lines="Left, Top, Bottom" Text="交工单元名称:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell77" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell2" Border.Lines="Right, Top, Bottom" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell3" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell175" Border.Lines="Top" Text="[DeliveryUnit]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="9"/>
<TableCell Name="Cell172" Border.Lines="Top" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell4" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell5" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell27" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell28" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell29" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell30" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell31" Border.Lines="All" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell32" Border.Lines="Left, Top, Bottom" Text="交工单元编号:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell33" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell34" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell35" Border.Lines="Right, Top, Bottom" Text="[DeliveryUnitCode]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="7"/>
<TableCell Name="Cell36" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell37" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell41" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell42" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
</TableRow>
</TableObject>
<ChildBand Name="Child3" Top="130.85" Width="1012.28" Height="113.4" Guides="0,113.4,56.7">
<TableObject Name="Table4" Width="1009.26" Height="113.4" Border.Lines="Bottom">
<TableColumn Name="Column76" Width="18.9"/>
<TableColumn Name="Column77" Width="85.05"/>
<TableColumn Name="Column78" Width="9.45"/>
<TableColumn Name="Column79" Width="37.8"/>
<TableColumn Name="Column80" Width="28.35"/>
<TableColumn Name="Column81" Width="28.35"/>
<TableColumn Name="Column82" Width="56.7"/>
<TableColumn Name="Column83" Width="47.25"/>
<TableColumn Name="Column84" Width="37.8"/>
<TableColumn Name="Column85" Width="56.7"/>
<TableColumn Name="Column86"/>
<TableColumn Name="Column87" Width="37.8"/>
<TableColumn Name="Column88" Width="28.35"/>
<TableColumn Name="Column89" Width="28.35"/>
<TableColumn Name="Column90" Width="54.81"/>
<TableColumn Name="Column91" Width="47.25"/>
<TableColumn Name="Column92" Width="47.25"/>
<TableColumn Name="Column93" Width="56.7"/>
<TableColumn Name="Column94" Width="47.25"/>
<TableColumn Name="Column95" Width="47.25"/>
<TableColumn Name="Column96" Width="47.25"/>
<TableColumn Name="Column97" Width="47.25"/>
<TableColumn Name="Column98" Width="47.25"/>
<TableRow Name="Row9" Height="56.7">
<TableCell Name="Cell205" Border.Lines="All" Text="管道编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3" RowSpan="2"/>
<TableCell Name="Cell206" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell207" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell208" Border.Lines="All" Text="管道&#13;&#10;级别" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell209" Border.Lines="All" Text="起止点" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell210" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell211" Border.Lines="All" Text="设计&#13;&#10;压力&#13;&#10;(MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell212" Border.Lines="All" Text="设计温度(℃)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell213" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell214" Border.Lines="All" Text="材质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell215" Border.Lines="All" Text="规格&#13;&#10;(mm)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell216" Border.Lines="All" Text="长度(m)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell217" Border.Lines="All" Text="铺设方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell218" Border.Lines="All" Text="焊口&#13;&#10;数量&#13;&#10;" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell219" Border.Lines="All" Text="无损检测方法/比例(%)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell220" Border.Lines="All" Text="耐压试验方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell221" Border.Lines="All" Text="耐压试验介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell222" Border.Lines="All" Text="耐压试验压力(MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell223" Border.Lines="All" Text="泄漏试验介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell224" Border.Lines="All" Text="泄漏试验压力(MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell225" Border.Lines="All" Text="吹扫、清洗方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell226" Border.Lines="All" Text="腐蚀控制方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell227" Border.Lines="All" Text="保温(绝热)方式&#13;&#10;" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
</TableRow>
<TableRow Name="Row10" Height="56.7">
<TableCell Name="Cell228" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell229" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell230" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell231" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell232" Border.Lines="All" Text="起&#13;&#10;点" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell233" Border.Lines="All" Text="终&#13;&#10;点" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell234" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell235" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell236" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell237" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell238" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell239" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell240" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell241" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell242" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell243" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell244" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell245" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell246" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell247" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell248" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell249" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell250" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</ChildBand>
</ChildBand>
</PageHeaderBand>
<DataBand Name="Data1" Top="240.25" Width="1012.28" Height="85.05" Guides="0,85.05">
<TableObject Name="Table2" Width="1009.26" Height="85.05" Border.Lines="Bottom" ManualBuildEvent="Table2_ManualBuild">
<DataBand Name="Data1" Top="248.25" Width="1012.28" Height="75.6" Guides="0,75.6">
<TableObject Name="Table2" Width="1009.26" Height="75.6" Border.Lines="Bottom" ManualBuildEvent="Table2_ManualBuild">
<TableColumn Name="Column24" Width="18.9"/>
<TableColumn Name="Column25" Width="75.6"/>
<TableColumn Name="Column26" Width="18.9"/>
@@ -207,7 +236,7 @@ namespace FastReport
<TableColumn Name="Column44" Width="47.25"/>
<TableColumn Name="Column45" Width="47.25"/>
<TableColumn Name="Column46" Width="47.25"/>
<TableRow Name="Row6" Height="85.05">
<TableRow Name="Row6" Height="75.6">
<TableCell Name="Cell126" Border.Lines="All" Text="[Data.PipelineCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell127" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell128" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
@@ -234,9 +263,9 @@ namespace FastReport
</TableRow>
</TableObject>
</DataBand>
<ColumnFooterBand Name="ColumnFooter1" Top="418.35" Width="1012.28">
<ChildBand Name="Child1" Top="329.3" Width="1012.28" Height="85.05" Guides="0,85.05" FillUnusedSpace="true">
<TableObject Name="Table3" Width="1009.26" Height="85.05" Border.Lines="Bottom">
<ColumnFooterBand Name="ColumnFooter1" Top="407.45" Width="1012.28">
<ChildBand Name="Child1" Top="327.85" Width="1012.28" Height="75.6" Guides="0,75.6" FillUnusedSpace="true">
<TableObject Name="Table3" Width="1009.26" Height="75.6" Border.Lines="Bottom">
<TableColumn Name="Column47" Width="18.9"/>
<TableColumn Name="Column48" Width="75.6"/>
<TableColumn Name="Column49" Width="18.9"/>
@@ -260,7 +289,7 @@ namespace FastReport
<TableColumn Name="Column67" Width="47.25"/>
<TableColumn Name="Column68" Width="47.25"/>
<TableColumn Name="Column69" Width="47.25"/>
<TableRow Name="Row7" Height="85.05">
<TableRow Name="Row7" Height="75.6">
<TableCell Name="Cell149" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
<TableCell Name="Cell150" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell151" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
@@ -288,12 +317,14 @@ namespace FastReport
</TableObject>
</ChildBand>
</ColumnFooterBand>
<PageFooterBand Name="PageFooter1" Top="422.35" Width="1012.28" Height="56.7" Guides="9.45,28.35,37.8,56.7">
<PageFooterBand Name="PageFooter1" Top="411.45" Width="1012.28" Height="28.35" PrintOn="LastPage" Guides="9.45,28.35">
<TextObject Name="Text5" Left="9.45" Top="9.45" Width="94.5" Height="18.9" Text="填表:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TextObject Name="Text6" Left="274.05" Top="9.45" Width="94.5" Height="18.9" Text="日期:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TextObject Name="Text7" Left="803.25" Top="9.45" Width="94.5" Height="18.9" Text="日期:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TextObject Name="Text8" Left="538.65" Top="9.45" Width="94.5" Height="18.9" Text="审核:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TextObject Name="Text9" Left="387.45" Top="37.8" Width="283.5" Height="18.9" Text="共[TotalPages#]页 第[Page#]页" Font="宋体, 12pt"/>
<ChildBand Name="Child4" Top="443.8" Width="1012.28" Height="28.35" Guides="9.45,28.35">
<TextObject Name="Text9" Left="378" Top="9.45" Width="283.5" Height="18.9" Text="共[TotalPages#]页 第[Page#]页" Font="宋体, 12pt"/>
</ChildBand>
</PageFooterBand>
</ReportPage>
</Report>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/26/2026 11:18:50" ReportInfo.Modified="10/09/2026 09:24:54" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" DoublePass="true" ReportInfo.Created="01/26/2026 11:18:50" ReportInfo.Modified="10/13/2026 14:40:54" ReportInfo.CreatorVersion="2017.1.16.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
@@ -17,8 +17,7 @@ using FastReport.Utils;
namespace FastReport
{
public class ReportScript
{
{
private void Table2_ManualBuild(object sender, EventArgs e)
{
DataSourceBase rowData = Report.GetDataSource(&quot;Data&quot;);
@@ -36,13 +35,13 @@ namespace FastReport
// go next data source row
rowData.Next();
}
}
}
}
}
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF8J+BXWHdtZvMXnZn54GHNw==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFseSRJtXaQbOUCyymXaQv1w==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="Num" DataType="System.String" PropName="attach_image_id"/>
<Column Name="PipelineCode" DataType="System.String" PropName="image_series"/>
@@ -75,118 +74,147 @@ namespace FastReport
<Parameter Name="DeliveryUnit" DataType="System.String"/>
<Parameter Name="DeliveryUnitCode" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16" TopMargin="22" RightMargin="13.2" BottomMargin="17" Guides="718.2,1001.7,311.85,670.95,500.85,642.6,973.35,0,1009.26,151.2,85.05,9.45,37.8,56.7,66.15,28.35,631.26,54.81,47.25,18.9,113.4,198.45,236.25,274.05,368.55,434.7,472.5,529.2,584.01,735.21,886.41,924.21,962.01,669.06,782.46,820.26,103.95,803.25,897.75,538.65,633.15">
<PageHeaderBand Name="PageHeader1" Width="1012.28" Height="236.25" Guides="0,18.9,56.7,85.05,236.25,37.8,151.2,75.6">
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" LeftMargin="16" TopMargin="22" RightMargin="13.2" BottomMargin="17" Guides="718.2,1001.7,311.85,670.95,500.85,642.6,973.35,0,1010.26,152.2,75.6,1,37.8,501.85,56.7,66.15,28.35,632.26,54.81,47.25,114.4,199.45,237.25,275.05,312.85,369.55,435.7,473.5,530.2,585.01,736.21,887.41,925.21,963.01,670.06,783.46,821.26,9.45,103.95,274.05,368.55,803.25,897.75,538.65,633.15">
<PageHeaderBand Name="PageHeader1" Width="1012.28" Height="85.05" Guides="0,18.9,56.7,85.05">
<TextObject Name="Text1" Left="718.2" Width="283.5" Height="18.9" Text="ZDS-T6.38.047.A/0.2020" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 15pt"/>
<TextObject Name="Text2" Left="311.85" Top="18.9" Width="359.1" Height="37.8" Text="二、压力管道安装汇总表" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 16pt, style=Bold"/>
<TextObject Name="Text3" Left="500.85" Top="56.7" Width="141.75" Height="28.35" Text="质量证明书编号:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TextObject Name="Text4" Left="642.6" Top="56.7" Width="330.75" Height="28.35" Text="[CertificateCode]" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableObject Name="Table1" Top="85.05" Width="1009.26" Height="151.2" Border.Lines="Bottom">
<TableColumn Name="Column1" Width="18.9"/>
<TableColumn Name="Column23" Width="85.05"/>
<TableColumn Name="Column2" Width="9.45"/>
<TableColumn Name="Column3" Width="37.8"/>
<TableColumn Name="Column4" Width="47.25"/>
<TableColumn Name="Column5" Width="37.8"/>
<TableColumn Name="Column70" Width="37.8"/>
<TableColumn Name="Column7" Width="37.8"/>
<TableColumn Name="Column8" Width="56.7"/>
<TableColumn Name="Column9"/>
<TableColumn Name="Column10" Width="37.8"/>
<TableColumn Name="Column11" Width="28.35"/>
<TableColumn Name="Column12" Width="28.35"/>
<TableColumn Name="Column13" Width="54.81"/>
<TableColumn Name="Column14" Width="47.25"/>
<TableColumn Name="Column15" Width="37.8"/>
<TableColumn Name="Column16"/>
<TableColumn Name="Column17" Width="47.25"/>
<TableColumn Name="Column18" Width="37.8"/>
<TableColumn Name="Column73"/>
<TableColumn Name="Column20" Width="37.8"/>
<TableColumn Name="Column21" Width="37.8"/>
<TableColumn Name="Column22" Width="47.25"/>
<TableRow Name="Row1" Height="37.8">
<TableCell Name="Cell1" Border.Lines="Left, Top, Bottom" Text="交工单元名称:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell77" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell2" Border.Lines="Right, Top, Bottom" VertAlign="Center"/>
<TableCell Name="Cell3" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell4" Border.Lines="All" Text="[DeliveryUnit]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="8"/>
<TableCell Name="Cell5" Border.Lines="All" VertAlign="Center"/>
<TableCell Name="Cell172"/>
<TableCell Name="Cell27" Border.Lines="All" VertAlign="Center"/>
<TableCell Name="Cell28" Border.Lines="All" VertAlign="Center"/>
<TableCell Name="Cell29" Border.Lines="All" VertAlign="Center"/>
<TableCell Name="Cell30" Border.Lines="All" VertAlign="Center"/>
<TableCell Name="Cell31" Border.Lines="All" VertAlign="Center"/>
<TableCell Name="Cell32" Border.Lines="Left, Top, Bottom" Text="交工单元编号:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell33" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell34" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell35" Border.Lines="Right, Top, Bottom" Text="[DeliveryUnitCode]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="8"/>
<TableCell Name="Cell36" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell37" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell177"/>
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell41" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell42" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
</TableRow>
<TableRow Name="Row2" Height="37.8">
<TableCell Name="Cell6" Border.Lines="All" Text="序号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell78" Border.Lines="All" Text="单线号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2" RowSpan="2"/>
<TableCell Name="Cell7" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell8" Border.Lines="All" Text="管道&#13;&#10;级别" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell9" Border.Lines="All" Text="设计&#13;&#10;压力&#13;&#10;(MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell10" Border.Lines="All" Text="设计温度(℃)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell173" Text="操作温度℃" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell44" Border.Lines="All" Text="输送介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell45" Border.Lines="All" Text="管道材质牌号及标准" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell46" Border.Lines="All" Text="管道规格&#13;&#10;(外径×壁厚mm)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell47" Border.Lines="All" Text="管道长度(m)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell48" Border.Lines="All" Text="铺设方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell49" Border.Lines="All" Text="焊口&#13;&#10;数量&#13;&#10;" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell50" Border.Lines="All" Text="检测方法/比例(%)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell51" Border.Lines="All" Text="压力试验" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell52" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell53" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell54" Border.Lines="All" Text="泄漏性试验" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell55" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell178" Font="宋体, 10.5pt"/>
<TableCell Name="Cell57" Border.Lines="All" Text="吹洗方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell58" Border.Lines="All" Text="防腐方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell59" Border.Lines="All" Text="保温(绝热)方式&#13;&#10;" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
</TableRow>
<TableRow Name="Row3" Height="75.6">
<TableCell Name="Cell11" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell79" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell12" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell13" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell14" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell15" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell174" Font="宋体, 10.5pt"/>
<TableCell Name="Cell61" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell62" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell63" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell64" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell65" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell66" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell67" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell68" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell69" Border.Lines="All" Text="压力(Mpa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell70" Border.Lines="All" Text="日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell71" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell72" Border.Lines="All" Text="压力(Mpa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell179" Text="日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell74" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell75" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell76" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
<TextObject Name="Text4" Left="642.6" Top="56.7" Width="330.75" Height="28.35" Text="[CertificateCode]" VertAlign="Center" Font="宋体, 10.5pt"/>
<ChildBand Name="Child2" Top="89.05" Width="1012.28" Height="37.8" PrintOn="FirstPage" Guides="0,37.8">
<TableObject Name="Table1" Width="1010.26" Height="37.8" Border.Lines="Bottom">
<TableColumn Name="Column1" Width="37.8"/>
<TableColumn Name="Column23" Width="75.6"/>
<TableColumn Name="Column2" Width="1"/>
<TableColumn Name="Column3" Width="37.8"/>
<TableColumn Name="Column4" Width="47.25"/>
<TableColumn Name="Column5" Width="37.8"/>
<TableColumn Name="Column70" Width="37.8"/>
<TableColumn Name="Column7" Width="37.8"/>
<TableColumn Name="Column8" Width="56.7"/>
<TableColumn Name="Column9"/>
<TableColumn Name="Column10" Width="37.8"/>
<TableColumn Name="Column11" Width="28.35"/>
<TableColumn Name="Column12" Width="28.35"/>
<TableColumn Name="Column13" Width="54.81"/>
<TableColumn Name="Column14" Width="47.25"/>
<TableColumn Name="Column15" Width="37.8"/>
<TableColumn Name="Column16"/>
<TableColumn Name="Column17" Width="47.25"/>
<TableColumn Name="Column18" Width="37.8"/>
<TableColumn Name="Column73"/>
<TableColumn Name="Column20" Width="37.8"/>
<TableColumn Name="Column21" Width="37.8"/>
<TableColumn Name="Column22" Width="47.25"/>
<TableRow Name="Row1" Height="37.8">
<TableCell Name="Cell1" Border.Lines="Left, Top, Bottom" Text="交工单元名称:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell77" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell2" Border.Lines="Right, Top, Bottom" VertAlign="Center"/>
<TableCell Name="Cell3" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell4" Border.Lines="All" Text="[DeliveryUnit]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="8"/>
<TableCell Name="Cell5" Border.Lines="All" VertAlign="Center"/>
<TableCell Name="Cell172"/>
<TableCell Name="Cell27" Border.Lines="All" VertAlign="Center"/>
<TableCell Name="Cell28" Border.Lines="All" VertAlign="Center"/>
<TableCell Name="Cell29" Border.Lines="All" VertAlign="Center"/>
<TableCell Name="Cell30" Border.Lines="All" VertAlign="Center"/>
<TableCell Name="Cell31" Border.Lines="All" VertAlign="Center"/>
<TableCell Name="Cell32" Border.Lines="Left, Top, Bottom" Text="交工单元编号:" HorzAlign="Right" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell33" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell34" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell35" Border.Lines="Right, Top, Bottom" Text="[DeliveryUnitCode]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="8"/>
<TableCell Name="Cell36" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell37" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell177"/>
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell41" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell42" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
</TableRow>
</TableObject>
<ChildBand Name="Child3" Top="130.85" Width="1012.28" Height="94.5" Guides="0,94.5,37.8,56.7">
<TableObject Name="Table4" Width="1010.26" Height="94.5" Border.Lines="Bottom">
<TableColumn Name="Column76" Width="37.8"/>
<TableColumn Name="Column77" Width="75.6"/>
<TableColumn Name="Column78" Width="1"/>
<TableColumn Name="Column79" Width="37.8"/>
<TableColumn Name="Column80" Width="47.25"/>
<TableColumn Name="Column81" Width="37.8"/>
<TableColumn Name="Column82" Width="37.8"/>
<TableColumn Name="Column83" Width="37.8"/>
<TableColumn Name="Column84" Width="56.7"/>
<TableColumn Name="Column85"/>
<TableColumn Name="Column86" Width="37.8"/>
<TableColumn Name="Column87" Width="28.35"/>
<TableColumn Name="Column88" Width="28.35"/>
<TableColumn Name="Column89" Width="54.81"/>
<TableColumn Name="Column90" Width="47.25"/>
<TableColumn Name="Column91" Width="37.8"/>
<TableColumn Name="Column92"/>
<TableColumn Name="Column93" Width="47.25"/>
<TableColumn Name="Column94" Width="37.8"/>
<TableColumn Name="Column95"/>
<TableColumn Name="Column96" Width="37.8"/>
<TableColumn Name="Column97" Width="37.8"/>
<TableColumn Name="Column98" Width="47.25"/>
<TableRow Name="Row9" Height="37.8">
<TableCell Name="Cell205" Border.Lines="All" Text="序号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell206" Border.Lines="All" Text="单线号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2" RowSpan="2"/>
<TableCell Name="Cell207" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell208" Border.Lines="All" Text="管道&#13;&#10;级别" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell209" Border.Lines="All" Text="设计&#13;&#10;压力&#13;&#10;(MPa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell210" Border.Lines="All" Text="设计温度(℃)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell211" Border.Lines="Top" Text="操作温度℃" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell212" Border.Lines="All" Text="输送介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell213" Border.Lines="All" Text="管道材质牌号及标准" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell214" Border.Lines="All" Text="管道规格&#13;&#10;(外径×壁厚mm)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell215" Border.Lines="All" Text="管道长度(m)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell216" Border.Lines="All" Text="铺设方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell217" Border.Lines="All" Text="焊口&#13;&#10;数量&#13;&#10;" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell218" Border.Lines="All" Text="检测方法/比例(%)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell219" Border.Lines="All" Text="压力试验" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell220" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell221" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell222" Border.Lines="All" Text="泄漏性试验" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell223" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell224" Font="宋体, 10.5pt"/>
<TableCell Name="Cell225" Border.Lines="All" Text="吹洗方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell226" Border.Lines="All" Text="防腐方式" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell227" Border.Lines="All" Text="保温(绝热)方式&#13;&#10;" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
</TableRow>
<TableRow Name="Row10" Height="56.7">
<TableCell Name="Cell228" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell229" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell230" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell231" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell232" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell233" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell234" Font="宋体, 10.5pt"/>
<TableCell Name="Cell235" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell236" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell237" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell238" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell239" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell240" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell241" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell242" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell243" Border.Lines="All" Text="压力(Mpa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell244" Border.Lines="All" Text="日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell245" Border.Lines="All" Text="介质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell246" Border.Lines="All" Text="压力(Mpa)" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell247" Text="日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell248" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell249" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell250" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</ChildBand>
</ChildBand>
</PageHeaderBand>
<DataBand Name="Data1" Top="240.25" Width="1012.28" Height="85.05" Guides="0,85.05">
<TableObject Name="Table2" Width="1009.26" Height="85.05" Border.Lines="Bottom" ManualBuildEvent="Table2_ManualBuild">
<TableColumn Name="Column24" Width="18.9"/>
<DataBand Name="Data1" Top="229.35" Width="1012.28" Height="56.7" Guides="0,56.7">
<TableObject Name="Table2" Width="1010.26" Height="56.7" Border.Lines="Bottom" ManualBuildEvent="Table2_ManualBuild">
<TableColumn Name="Column24" Width="37.8"/>
<TableColumn Name="Column25" Width="75.6"/>
<TableColumn Name="Column26" Width="18.9"/>
<TableColumn Name="Column26" Width="1"/>
<TableColumn Name="Column27" Width="37.8"/>
<TableColumn Name="Column28" Width="47.25"/>
<TableColumn Name="Column29" Width="37.8"/>
@@ -207,39 +235,39 @@ namespace FastReport
<TableColumn Name="Column44" Width="37.8"/>
<TableColumn Name="Column45" Width="37.8"/>
<TableColumn Name="Column46" Width="47.25"/>
<TableRow Name="Row6" Height="85.05">
<TableCell Name="Cell126" Border.Lines="All" Text="[Data.Num]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell127" Border.Lines="All" Text="[Data.PipelineCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell128" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell129" Border.Lines="All" Text="[Data.PipelineLevel]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell130" Border.Lines="All" Text="[Data.DesignPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell131" Border.Lines="All" Text="[Data.DesignTemperature]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell175" Border.Lines="All" Text="[Data.OperatingTemperature]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell133" Border.Lines="All" Text="[Data.Medium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell134" Border.Lines="All" Text="[Data.Material]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell135" Border.Lines="All" Text="[Data.Specifications]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell136" Border.Lines="All" Text="[Data.Length]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell137" Border.Lines="All" Text="[Data.LayingMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell138" Border.Lines="All" Text="[Data.WeldsNum]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell139" Border.Lines="All" Text="[Data.LosslessRatio]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell140" Border.Lines="All" Text="[Data.VoltageResistantTestMedium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell141" Border.Lines="All" Text="[Data.VoltageResistantTestPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell142" Border.Lines="All" Text="[Data.VoltageResistantTestDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell143" Border.Lines="All" Text="[Data.LeakageTestMedium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell144" Border.Lines="All" Text="[Data.LeakageTestPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell180" Border.Lines="All" Text="[Data.LeakageTestDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell146" Border.Lines="All" Text="[Data.CleaningMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell147" Border.Lines="All" Text="[Data.CorrosionControlMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell148" Border.Lines="All" Text="[Data.InsulationMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableRow Name="Row6" Height="56.7">
<TableCell Name="Cell126" Border.Lines="All" Text="[Data.Num]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell127" Border.Lines="All" Text="[Data.PipelineCode]" Padding="1, 1, 1, 1" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell128" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell129" Border.Lines="All" Text="[Data.PipelineLevel]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell130" Border.Lines="All" Text="[Data.DesignPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell131" Border.Lines="All" Text="[Data.DesignTemperature]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell175" Border.Lines="All" Text="[Data.OperatingTemperature]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell133" Border.Lines="All" Text="[Data.Medium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell134" Border.Lines="All" Text="[Data.Material]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell135" Border.Lines="All" Text="[Data.Specifications]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell136" Border.Lines="All" Text="[Data.Length]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell137" Border.Lines="All" Text="[Data.LayingMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell138" Border.Lines="All" Text="[Data.WeldsNum]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell139" Border.Lines="All" Text="[Data.LosslessRatio]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell140" Border.Lines="All" Text="[Data.VoltageResistantTestMedium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell141" Border.Lines="All" Text="[Data.VoltageResistantTestPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell142" Border.Lines="All" Text="[Data.VoltageResistantTestDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell143" Border.Lines="All" Text="[Data.LeakageTestMedium]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell144" Border.Lines="All" Text="[Data.LeakageTestPressure]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell180" Border.Lines="All" Text="[Data.LeakageTestDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell146" Border.Lines="All" Text="[Data.CleaningMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell147" Border.Lines="All" Text="[Data.CorrosionControlMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell148" Border.Lines="All" Text="[Data.InsulationMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
</TableObject>
</DataBand>
<ColumnFooterBand Name="ColumnFooter1" Top="418.35" Width="1012.28">
<ChildBand Name="Child1" Top="329.3" Width="1012.28" Height="85.05" Guides="0,85.05" FillUnusedSpace="true">
<TableObject Name="Table3" Width="1009.26" Height="85.05" Border.Lines="Bottom">
<TableColumn Name="Column47" Width="18.9"/>
<ColumnFooterBand Name="ColumnFooter1" Top="350.75" Width="1012.28">
<ChildBand Name="Child1" Top="290.05" Width="1012.28" Height="56.7" Guides="0,56.7" FillUnusedSpace="true">
<TableObject Name="Table3" Width="1010.26" Height="56.7" Border.Lines="Bottom">
<TableColumn Name="Column47" Width="37.8"/>
<TableColumn Name="Column48" Width="75.6"/>
<TableColumn Name="Column49" Width="18.9"/>
<TableColumn Name="Column49" Width="1"/>
<TableColumn Name="Column50" Width="37.8"/>
<TableColumn Name="Column51" Width="47.25"/>
<TableColumn Name="Column52" Width="37.8"/>
@@ -260,7 +288,7 @@ namespace FastReport
<TableColumn Name="Column67" Width="37.8"/>
<TableColumn Name="Column68" Width="37.8"/>
<TableColumn Name="Column69" Width="47.25"/>
<TableRow Name="Row7" Height="85.05">
<TableRow Name="Row7" Height="56.7">
<TableCell Name="Cell149" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell150" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell151" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
@@ -288,11 +316,11 @@ namespace FastReport
</TableObject>
</ChildBand>
</ColumnFooterBand>
<PageFooterBand Name="PageFooter1" Top="422.35" Width="1012.28" Height="56.7" Guides="9.45,28.35">
<TextObject Name="Text5" Left="9.45" Top="9.45" Width="94.5" Height="18.9" Text="填表:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TextObject Name="Text6" Left="274.05" Top="9.45" Width="94.5" Height="18.9" Text="日期:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TextObject Name="Text7" Left="803.25" Top="9.45" Width="94.5" Height="18.9" Text="日期:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TextObject Name="Text8" Left="538.65" Top="9.45" Width="94.5" Height="18.9" Text="审核:" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<PageFooterBand Name="PageFooter1" Top="354.75" Width="1012.28" Height="28.35" PrintOn="LastPage" Guides="0,28.35">
<TextObject Name="Text5" Left="9.45" Width="94.5" Height="28.35" Text="填表:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TextObject Name="Text6" Left="274.05" Width="94.5" Height="28.35" Text="日期:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TextObject Name="Text7" Left="803.25" Width="94.5" Height="28.35" Text="日期:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TextObject Name="Text8" Left="538.65" Width="94.5" Height="28.35" Text="审核:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</PageFooterBand>
</ReportPage>
</Report>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="09/10/2026 11:10:02" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="10/10/2026 14:32:26" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFRLE3fVb1N0D74ri9q0f0Mg==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFWqDDMaPXqV/z/brFfXz69A==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="CertificateCode" DataType="System.String" PropName="attach_image_id"/>
<Column Name="EngineeringName" DataType="System.String" PropName="image_series"/>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="10/08/2026 14:03:50" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="10/12/2026 16:12:50" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF433RPidlV17rLTooM9L7Rg==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFDbN1Q7UYiQPLPu1xuNqgnQ==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="CertificateCode" DataType="System.String" PropName="attach_image_id"/>
<Column Name="EngineeringName" DataType="System.String" PropName="image_series"/>
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/29/2026 15:42:03" ReportInfo.Modified="02/07/2026 10:37:06" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/29/2026 15:42:03" ReportInfo.Modified="10/09/2026 17:13:41" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary>
<Parameter Name="ProjectName" DataType="System.String"/>
<Parameter Name="Code" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.37,178.38,394.56,459.55,500,146.37,646.38,212.31,424.62">
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="0,646.37,178.38,394.56,459.55,396.05,580.22,684.17,146.37,542.42,646.38,212.31,424.62">
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="88.83" Guides="0,88.83">
<TableObject Name="Table1" Width="646.37" Height="88.83" Border.Lines="Right">
<TableColumn Name="Column1" Width="178.38"/>
@@ -19,25 +19,30 @@
</TableRow>
</TableObject>
</PageHeaderBand>
<DataBand Name="Data1" Top="92.83" Width="646.38" Height="694.37" Guides="0,694.37,173.12,251.74,330.36">
<DataBand Name="Data1" Top="92.83" Width="646.38" Height="694.37" Guides="0,694.37,173.12,232.84,311.46">
<TableObject Name="Table2" Width="646.37" Height="694.37" Border.Lines="Left, Right">
<TableColumn Name="Column4" Width="146.37"/>
<TableColumn Name="Column5" Width="500"/>
<TableColumn Name="Column5" Width="396.05"/>
<TableColumn Name="Column10" Width="103.95"/>
<TableRow Name="Row2" Height="173.12">
<TableCell Name="Cell4" Border.Lines="Left" Text="石油化工建设工程项目交工技术文件" HorzAlign="Center" VertAlign="Center" Font="黑体, 22pt, style=Bold" ColSpan="2"/>
<TableCell Name="Cell4" Border.Lines="Left" Text="石油化工建设工程项目交工技术文件" HorzAlign="Center" VertAlign="Center" Font="黑体, 22pt, style=Bold" ColSpan="3"/>
<TableCell Name="Cell20" HorzAlign="Center" VertAlign="Center" Font="黑体, 22pt"/>
<TableCell Name="Cell48"/>
</TableRow>
<TableRow Name="Row3" Height="78.62">
<TableCell Name="Cell9" Border.Lines="Left" Text="工程名称:" HorzAlign="Right" VertAlign="Bottom" Font="宋体, 14pt"/>
<TableCell Name="Cell21" Text="[ProjectName]" VertAlign="Bottom" Font="楷体, 14pt"/>
<TableRow Name="Row3" Height="59.72">
<TableCell Name="Cell9" Border.Lines="Left" Text="工程名称:" HorzAlign="Right" Font="宋体, 14pt"/>
<TableCell Name="Cell21" Text="[ProjectName]" Font="楷体, 14pt"/>
<TableCell Name="Cell49"/>
</TableRow>
<TableRow Name="Row4" Height="78.62">
<TableCell Name="Cell14" Border.Lines="Left" Text="卷名:" HorzAlign="Right" VertAlign="Center" Font="宋体, 14pt"/>
<TableCell Name="Cell22" Text="管道安装工程卷" VertAlign="Center" Font="楷体, 14pt"/>
<TableCell Name="Cell14" Border.Lines="Left" Text="卷 名:" HorzAlign="Right" Font="宋体, 14pt"/>
<TableCell Name="Cell22" Text="管道安装工程卷" Font="楷体, 14pt"/>
<TableCell Name="Cell50"/>
</TableRow>
<TableRow Name="Row5" Height="364.01">
<TableRow Name="Row5" Height="382.91">
<TableCell Name="Cell19" Border.Lines="Left"/>
<TableCell Name="Cell23"/>
<TableCell Name="Cell51"/>
</TableRow>
</TableObject>
</DataBand>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="09/11/2026 14:43:51" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/23/2026 17:12:17" ReportInfo.Modified="10/12/2026 16:13:11" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFaSQGGfp0C04d0yi9F5iJBg==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFthogzLLWZLLsLiHjss2ZTA==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="QualityCertificateCode" DataType="System.String" PropName="attach_image_id"/>
<Column Name="ConUnit" DataType="System.String" PropName="image_series"/>
@@ -30,7 +30,7 @@
<Parameter Name="chkZhongDaWeiXiu" DataType="System.String"/>
<Parameter Name="chkWeiXiu" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="368.55,642.6,9.45,0,311.85,646.4,112.27,337.94,431.31,140.62,93.37,74.47,440.76,452.1,497.46,508.8,582.51,593.85,506.91,591.96,639.21,450.21,225.67,505.78,508.04">
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="22" TopMargin="13.3" RightMargin="17" BottomMargin="16.5" Guides="368.55,642.6,9.45,0,311.85,646.4,112.27,337.94,431.31,140.62,93.37,74.47,440.76,452.1,497.46,508.8,582.51,593.85,506.91,591.96,639.21,450.21,225.67,505.78">
<PageHeaderBand Name="PageHeader1" Width="646.38" Height="122.85" Guides="9.45,37.8,66.15,94.5,122.85">
<TextObject Name="Text1" Left="368.55" Top="9.45" Width="274.05" Height="28.35" Text="ZDS-T6.38.048.A/0.2020" HorzAlign="Right" VertAlign="Center" Font="Calibri, 15pt, style=Bold"/>
<TextObject Name="Text2" Left="9.45" Top="66.15" Width="633.15" Height="28.35" Text="压力管道改造维修质量证明书" HorzAlign="Center" VertAlign="Center" Font="思源宋体 CN, 22pt, style=Bold"/>
@@ -90,19 +90,19 @@
<TableCell Name="Cell31" Border.Lines="All" Text="使用单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell32" Border.Lines="All" Text="[Data.UseUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell33" Border.Lines="All" Text="统一社会信用代码" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell34" Border.Lines="All" Text="[Data.UseUSCC]" HorzAlign="Center" VertAlign="Center" Font="楷体, 12pt" ColSpan="2"/>
<TableCell Name="Cell34" Border.Lines="All" Text="[Data.UseUSCC]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell35" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row8" Height="43.46">
<TableCell Name="Cell36" Border.Lines="All" Text="使用地点" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell37" Border.Lines="All" Text="[Data.UseAddress]" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell37" Border.Lines="All" Text="[Data.UseAddress]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell39" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell40" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row9" Height="43.46">
<TableCell Name="Cell41" Border.Lines="All" Text="设计单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell42" Border.Lines="All" Text="[Data.DesignUnit]" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell42" Border.Lines="All" Text="[Data.DesignUnit]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell43" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell44" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell45" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
@@ -145,18 +145,14 @@
<TableRow Name="Row13" Height="52.91">
<TableCell Name="Cell61" Border.Lines="Left" Text="质检员(签章):" Padding="50, 1, 2, 1" HorzAlign="Right" VertAlign="Center" Font="黑体, 12pt" ColSpan="2"/>
<TableCell Name="Cell62" HorzAlign="Right" VertAlign="Center" Font="黑体, 10.5pt"/>
<TableCell Name="Cell63" Border.Lines="Right" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3">
<TextObject Name="Text3" Top="9.45" Width="170.1" Height="28.35" Border.Lines="Bottom" Text="[Data.QC_Inspector]" VertAlign="Center" Font="黑体, 12pt"/>
</TableCell>
<TableCell Name="Cell63" Border.Lines="Right" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell64" Border.Lines="Right" HorzAlign="Right" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell65" Border.Lines="Right" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row14" Height="71.81">
<TableCell Name="Cell66" Border.Lines="Left" Padding="2, 1, 50, 1" HorzAlign="Right" VertAlign="Center" Font="宋体, 12pt"/>
<TableCell Name="Cell67" Text="质量保证工程师(签章):" HorzAlign="Right" VertAlign="Center" Font="黑体, 12pt"/>
<TableCell Name="Cell68" Border.Lines="Right" VertAlign="Center" Font="楷体, 12pt" ColSpan="3">
<TextObject Name="Text5" Top="18.9" Width="170.1" Height="28.35" Border.Lines="Bottom" Text="[Data.QA_Engineer]" VertAlign="Center" Font="黑体, 12pt"/>
</TableCell>
<TableCell Name="Cell68" Border.Lines="Right" VertAlign="Center" Font="楷体, 12pt" ColSpan="3"/>
<TableCell Name="Cell69" Border.Lines="Right" HorzAlign="Center" VertAlign="Center" Font="楷体, 12pt"/>
<TableCell Name="Cell70" Border.Lines="Right" HorzAlign="Center" VertAlign="Center" Font="楷体, 12pt"/>
</TableRow>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/22/2025 14:15:28" ReportInfo.Modified="04/22/2026 16:42:54" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/22/2025 14:15:28" ReportInfo.Modified="10/10/2026 10:27:55" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFtUIxFNKm2jviWjofgJksTw==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QF089YVQm2WmvoAT9oe8vufw==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="MaintenanceCode" DataType="System.String" PropName="attach_image_id"/>
<Column Name="ConUnit" DataType="System.String" PropName="image_series"/>
+16 -16
View File
@@ -1404,7 +1404,9 @@
<Content Include="JGZL\ElectrodeRecovery.aspx" />
<Content Include="JGZL\EWeldRHRecord.aspx" />
<Content Include="JGZL\FileDirectory.aspx" />
<Content Include="JGZL\IndustrialPipelineInstallationQualityCertificateEdit.aspx" />
<Content Include="JGZL\IndustrialPipelineInstallationSummary2020.aspx" />
<Content Include="JGZL\IndustrialPipelineInstallationSummaryEdit.aspx" />
<Content Include="JGZL\IndustrialPipelineQualityCertificate2020.aspx" />
<Content Include="JGZL\InsulationAcceptanceRecord.aspx" />
<Content Include="JGZL\InsulationAcceptanceRecordEdit.aspx" />
@@ -1434,9 +1436,7 @@
<Content Include="JGZL\HandoverCertificate.aspx" />
<Content Include="JGZL\HandoverCertificateEdit.aspx" />
<Content Include="JGZL\IndustrialPipelineInstallationQualityCertificate.aspx" />
<Content Include="JGZL\IndustrialPipelineInstallationQualityCertificateEdit.aspx" />
<Content Include="JGZL\IndustrialPipelineInstallationSummary.aspx" />
<Content Include="JGZL\IndustrialPipelineInstallationSummaryEdit.aspx" />
<Content Include="JGZL\MaterialIdentificationInspectionRecord.aspx" />
<Content Include="JGZL\MaterialIdentificationInspectionRecordEdit.aspx" />
<Content Include="JGZL\MaterialIdentificationInspectionRecordSearch.aspx" />
@@ -7063,6 +7063,13 @@
<Compile Include="JGZL\FileDirectory.aspx.designer.cs">
<DependentUpon>FileDirectory.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\IndustrialPipelineInstallationQualityCertificateEdit.aspx.cs">
<DependentUpon>IndustrialPipelineInstallationQualityCertificateEdit.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JGZL\IndustrialPipelineInstallationQualityCertificateEdit.aspx.designer.cs">
<DependentUpon>IndustrialPipelineInstallationQualityCertificateEdit.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\IndustrialPipelineInstallationSummary2020.aspx.cs">
<DependentUpon>IndustrialPipelineInstallationSummary2020.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -7070,6 +7077,13 @@
<Compile Include="JGZL\IndustrialPipelineInstallationSummary2020.aspx.designer.cs">
<DependentUpon>IndustrialPipelineInstallationSummary2020.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\IndustrialPipelineInstallationSummaryEdit.aspx.cs">
<DependentUpon>IndustrialPipelineInstallationSummaryEdit.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JGZL\IndustrialPipelineInstallationSummaryEdit.aspx.designer.cs">
<DependentUpon>IndustrialPipelineInstallationSummaryEdit.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\IndustrialPipelineQualityCertificate2020.aspx.cs">
<DependentUpon>IndustrialPipelineQualityCertificate2020.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -7273,13 +7287,6 @@
<Compile Include="JGZL\IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs">
<DependentUpon>IndustrialPipelineInstallationQualityCertificate.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\IndustrialPipelineInstallationQualityCertificateEdit.aspx.cs">
<SubType>ASPXCodeBehind</SubType>
<DependentUpon>IndustrialPipelineInstallationQualityCertificateEdit.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\IndustrialPipelineInstallationQualityCertificateEdit.aspx.designer.cs">
<DependentUpon>IndustrialPipelineInstallationQualityCertificateEdit.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\IndustrialPipelineInstallationSummary.aspx.cs">
<SubType>ASPXCodeBehind</SubType>
<DependentUpon>IndustrialPipelineInstallationSummary.aspx</DependentUpon>
@@ -7287,13 +7294,6 @@
<Compile Include="JGZL\IndustrialPipelineInstallationSummary.aspx.designer.cs">
<DependentUpon>IndustrialPipelineInstallationSummary.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\IndustrialPipelineInstallationSummaryEdit.aspx.cs">
<SubType>ASPXCodeBehind</SubType>
<DependentUpon>IndustrialPipelineInstallationSummaryEdit.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\IndustrialPipelineInstallationSummaryEdit.aspx.designer.cs">
<DependentUpon>IndustrialPipelineInstallationSummaryEdit.aspx</DependentUpon>
</Compile>
<Compile Include="JGZL\MaterialIdentificationInspectionRecord.aspx.cs">
<SubType>ASPXCodeBehind</SubType>
<DependentUpon>MaterialIdentificationInspectionRecord.aspx</DependentUpon>
@@ -42,7 +42,7 @@
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnPrint" Text="交工技术文件说明打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
@@ -39,7 +39,7 @@
<Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnPrint" Text="交工技术文件目录打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
@@ -309,7 +309,7 @@ namespace FineUIPro.Web.JGZL
string filePath = string.Empty;
//每页显示的固定数据行数
int rowsPerPage = 36;
int rowsPerPage = 33;
string projectId = this.tvControlItem.SelectedNodeID;
if (!string.IsNullOrEmpty(projectId))
@@ -352,7 +352,9 @@ namespace FineUIPro.Web.JGZL
for (int i = 0; i < tb.Rows.Count; i++)
{
//创建行
Row row = new Row(doc);
Row row = new Row(doc);
row.RowFormat.Height = 18;
row.RowFormat.HeightRule = HeightRule.Exactly;
row.Cells.Add(CreateCell((i + 1).ToString(), doc, 27, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["FileCode"].ToString(), doc, 118, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["FileName"].ToString(), doc, 261.3, "", ""));
@@ -370,6 +372,8 @@ namespace FineUIPro.Web.JGZL
for (int i = 0; i < needBlankRows - 1; i++)
{
Row blankRow = new Row(doc);
blankRow.RowFormat.Height = 18;
blankRow.RowFormat.HeightRule = HeightRule.Exactly;
// 空白行的单元格宽度和数据行保持一致
blankRow.Cells.Add(CreateCell("", doc, 27, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 118, "", ""));
@@ -431,6 +435,11 @@ namespace FineUIPro.Web.JGZL
//序号
value = " " + value;
}
Run run = new Run(doc, value);
run.Font.Size = 10.5;
run.Font.Name = "楷体";
if (!string.IsNullOrEmpty(cellUnitLeft))
{
p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左
@@ -441,7 +450,7 @@ namespace FineUIPro.Web.JGZL
}
p.AppendChild(new Run(doc, value));
p.AppendChild(run);
cell.CellFormat.Width = cellWidth;
@@ -42,8 +42,7 @@
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<%--<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>--%>
<f:Button ID="btnPrint" Text="工业管道安装质量证明书(安装)打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
@@ -60,12 +59,6 @@
<f:TextBox ID="txtCertificateCode" runat="server" Label="编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<%--<f:FormRow>
<Items>
<f:TextBox ID="txtEngineeringName" runat="server" Label="工程名称" LabelAlign="Right" LabelWidth="170px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
<f:TextBox ID="txtEngineeringCode" runat="server" Label="工程编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
</Items>
</f:FormRow>--%>
<f:FormRow>
<Items>
<f:TextBox ID="txtDeliveryUnit" runat="server" Label="交工单元名称" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
@@ -81,30 +74,15 @@
<f:FormRow>
<Items>
<f:DropDownList ID="drpPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="170px" EnableEdit="true"></f:DropDownList>
<%--<f:DropDownList ID="drpPipelineLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="170px" EnableEdit="true"></f:DropDownList>--%>
<%--<f:TextBox ID="txtPipelineLevel" runat="server" Label="管道级别" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>--%>
<f:TextBox ID="txtPipelineLength" runat="server" Label="管道长度" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<%--<f:FormRow>
<Items>
<f:TextBox ID="txtDesignLicenseCode" runat="server" Label="压力管道设计许可证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtQualificationCertificateCode" runat="server" Label="资质证书编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>--%>
<f:FormRow>
<Items>
<%--<f:TextBox ID="txtInstitutionalApprovalCertificate" runat="server" Label="无损检测机构核准证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>--%>
<f:TextBox ID="txtDesignUnit" runat="server" Label="设计单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<f:TextBox ID="txtLosslessTestingAgency" runat="server" Label="无损检测机构" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>
<%--<f:FormRow>
<Items>
<f:TextBox ID="txtSupervisoryAndInspectionAgency" runat="server" Label="监理单位" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
</Items>
</f:FormRow>--%>
<f:FormRow>
<Items>
<f:TextBox ID="txtInstallationInspection" runat="server" Label="监检机构" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
@@ -115,7 +93,6 @@
<Items>
<f:Label ID="Label1" runat="server"></f:Label>
<f:Label ID="lblRemark" runat="server" Text="本压力管道的安装经质量检验,符合《工业管道安装技术规程》(TSG 31-2025)、设计文件和"></f:Label>
<%--<f:TextBox ID="txtRemark" runat="server"></f:TextBox>--%>
</Items>
</f:FormRow>
<f:FormRow ColumnWidths="10% 55% 35%">
@@ -131,99 +108,18 @@
<f:FormRow>
<Items>
<f:TextBox ID="txtSpecialEquipmentProductionLicenseCode" runat="server" Label="特种设备安装许可证编号" LabelAlign="Right" LabelWidth="170px" MaxLength="50"></f:TextBox>
<%--<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="170px" MaxLength="500"></f:TextArea>--%>
</Items>
</f:FormRow>
</Rows>
</f:Form>
<%--<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="工业管道安装质量证明书" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="CertificateId" AllowCellEditing="true"
EnableColumnLines="true" ClicksToEdit="1" DataIDField="CertificateId" AllowSorting="true"
SortField="CertificateCode" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true"
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableTextSelection="True" AutoScroll="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField HeaderText="质量证明书编号" ColumnID="CertificateCode" DataField="CertificateCode" SortField="CertificateCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="140px">
</f:RenderField>
<f:RenderField HeaderText="交工单元名称" ColumnID="DeliveryUnit" DataField="DeliveryUnit" SortField="DeliveryUnit"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="220px">
</f:RenderField>
<f:RenderField HeaderText="交工单元编号" ColumnID="DeliveryUnitCode" DataField="DeliveryUnitCode" SortField="DeliveryUnitCode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="120px">
</f:RenderField>
<f:RenderField HeaderText="安装开工日期" ColumnID="InstallStartDate" DataField="InstallStartDate" SortField="InstallStartDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="安装竣工日期" ColumnID="InstallEndDate" DataField="InstallEndDate" SortField="InstallEndDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
<f:RenderField HeaderText="管道级别" ColumnID="PipelineLevel" DataField="PipelineLevel" SortField="PipelineLevel"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="120px">
</f:RenderField>
<f:RenderField HeaderText="管道长度" ColumnID="PipelineLength" DataField="PipelineLength" SortField="PipelineLength"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
</f:RenderField>
<f:RenderField HeaderText="设计单位" ColumnID="DesignUnit" DataField="DesignUnit" SortField="DesignUnit"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
</f:RenderField>
<f:RenderField HeaderText="无损检测机构" ColumnID="LosslessTestingAgency" DataField="LosslessTestingAgency" SortField="LosslessTestingAgency"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
</f:RenderField>
<f:RenderField HeaderText="监检机构" ColumnID="InstallationInspection" DataField="InstallationInspection" SortField="InstallationInspection"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
</f:RenderField>
<f:RenderField HeaderText="建设单位(使用单位)" ColumnID="ConstructionUnit" DataField="ConstructionUnit" SortField="ConstructionUnit"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="150px">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="10" Value="10" />
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
</f:DropDownList>
</PageItems>
</f:Grid>--%>
</Items>
</f:Panel>
</Items>
</f:Panel>
<%--<f:Window ID="Window1" Title="工业管道安装质量证明书" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="900px" Height="600px">
</f:Window>--%>
<f:Window ID="WindowPrint" Title="打印工业管道安装质量证明书(安装)" Hidden="true" EnableIFrame="true" EnableMaximize="false"
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
Height="600px">
</f:Window>
<%--<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
runat="server" Text="编辑" Icon="TableEdit">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
</f:MenuButton>
</f:Menu>--%>
</form>
<%--<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
// 返回false,来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
</script>--%>
</body>
</html>
@@ -41,8 +41,6 @@ namespace FineUIPro.Web.JGZL
{
if (!IsPostBack)
{
//this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
this.drpProjectId.DataTextField = "ProjectCode";
this.drpProjectId.DataValueField = "ProjectId";
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
@@ -58,12 +56,6 @@ namespace FineUIPro.Web.JGZL
this.drpPipelineLevel.DataValueField = "ISC_IsoName";
this.drpPipelineLevel.DataSource = BLL.HJGL_PW_IsoInfoService.GetPipelineLevelList(this.drpProjectId.SelectedValue);
this.drpPipelineLevel.DataBind();
//管道长度
//this.drpPipelineLength.DataTextField = "PipeLineLength";
//this.drpPipelineLength.DataValueField = "PipeLineLength";
//this.drpPipelineLength.DataSource = BLL.HJGL_PW_IsoInfoService.GetPipeLineLengthList(this.drpProjectId.SelectedValue);
//this.drpPipelineLength.DataBind();
//this.BindGrid();
PageData();
}
}
@@ -222,80 +214,10 @@ namespace FineUIPro.Web.JGZL
{
if (this.tvControlItem.SelectedNodeID != "0")
{
//this.BindGrid();
PageData();
}
}
#endregion
#region 数据绑定
/// <summary>
/// 数据绑定
/// </summary>
//private void BindGrid()
//{
// //string projectIds = BLL.Base_ProjectService.GetStrOnProjectIds(this.CurrUser.UserId, "1");
// string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationQualityCertificate where 1=1";
// List<SqlParameter> listStr = new List<SqlParameter>();
// if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
// {
// strSql += " AND ProjectId = @ProjectId";
// listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
// }
// //else
// //{
// // strSql += " AND CHARINDEX(ProjectId,@ProjectId)>0 ";
// // listStr.Add(new SqlParameter("@ProjectId", projectIds));
// //}
// SqlParameter[] parameter = listStr.ToArray();
// DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
// // 2.获取当前分页数据
// Grid1.RecordCount = tb.Rows.Count;
// //tb = GetFilteredTable(Grid1.FilteredData, tb);
// var table = this.GetPagedDataTable(Grid1, tb);
// Grid1.DataSource = table;
// Grid1.DataBind();
//}
#endregion
#region 分页排序
#region 页索引改变事件
/// <summary>
/// 页索引改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
//protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
//{
// BindGrid();
//}
#endregion
#region 排序
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
//protected void Grid1_Sort(object sender, GridSortEventArgs e)
//{
// BindGrid();
//}
#endregion
#region 分页选择下拉改变事件
/// <summary>
/// 分页选择下拉改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
//protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
//{
// Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
// BindGrid();
//}
#endregion
#endregion
#endregion
#region 查询
///<summary>
@@ -415,148 +337,6 @@ namespace FineUIPro.Web.JGZL
}
#endregion
#region 维护
/// <summary>
/// 增加
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
//protected void btnAdd_Click(object sender, EventArgs e)
//{
// if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
// {
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
// }
// else
// {
// Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
// return;
// }
//}
/// <summary>
/// 双击编辑
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
//protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
//{
// if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, BLL.Const.BtnModify))
// {
// if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
// {
// if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
// {
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
// }
// else
// {
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
// return;
// }
// }
// else
// {
// Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
// return;
// }
// }
// else
// {
// ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
// }
//}
/// <summary>
/// 右键编辑
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
//protected void btnMenuEdit_Click(object sender, EventArgs e)
//{
// if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, BLL.Const.BtnModify))
// {
// if (Grid1.SelectedRowIndexArray.Length == 0)
// {
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
// return;
// }
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IndustrialPipelineInstallationQualityCertificateEdit.aspx?certificateId={0}", Grid1.SelectedRowID, "维护 - ")));
// }
// else
// {
// Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
// }
//}
/// <summary>
/// 右键删除
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
//protected void btnMenuDelete_Click(object sender, EventArgs e)
//{
// if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationQualityCertificateMenuId, Const.BtnDelete))
// {
// if (Grid1.SelectedRowIndexArray.Length == 0)
// {
// Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
// return;
// }
// bool isShow = true;
// if (Grid1.SelectedRowIndexArray.Length > 1)
// {
// isShow = false;
// }
// bool isDelete = false;
// foreach (int rowIndex in Grid1.SelectedRowIndexArray)
// {
// string rowID = Grid1.DataKeys[rowIndex][0].ToString();
// if (judgementDelete(rowID, isShow))
// {
// isDelete = true;
// BLL.IndustrialPipelineInstallationQualityCertificateService.DeleteIndustrialPipelineInstallationQualityCertificateById(rowID);
// BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除工业管道安装质量证明书");
// }
// }
// if (isDelete)
// {
// ShowNotify("删除成功!", MessageBoxIcon.Success);
// }
// this.BindGrid();
// }
// else
// {
// Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
// }
//}
#region 判断是否可删除
/// <summary>
/// 判断是否可以删除
/// </summary>
/// <returns></returns>
//private bool judgementDelete(string id, bool isShow)
//{
// string content = string.Empty;
// if (string.IsNullOrEmpty(content))
// {
// return true;
// }
// else
// {
// if (isShow)
// {
// Alert.ShowInTop(content, MessageBoxIcon.Error);
// }
// return false;
// }
//}
#endregion
#endregion
#region 关闭弹出窗口及刷新页面
/// <summary>
/// 关闭弹出窗口
@@ -42,7 +42,7 @@
</f:ToolbarFill>
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
<f:Button ID="btnSave" Text="保存" ToolTip="保存" Icon="SystemSave" runat="server" OnClick="btnSave_Click"></f:Button>
<f:Button ID="btnPrint" Text="工业管道安装汇总表(安装)打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
@@ -661,244 +661,318 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
protected void btnOut_Click(object sender, EventArgs e)
{
string rootPath = Server.MapPath("~/");
string initTemplatePath = string.Empty;
string uploadfilepath = string.Empty;
string newUrl = string.Empty;
string filePath = string.Empty;
//每页显示的固定数据行数
int rowsPerPage = 5;
string projectId = this.tvControlItem.SelectedNodeID;
if (!string.IsNullOrEmpty(projectId))
string initTemplatePath = Const.JGZL_IndustrialPipelineInstallationSummaryUrl;
string templateFullPath = Path.Combine(rootPath, initTemplatePath);
string saveTempPath = templateFullPath.Replace("工业管道安装汇总表导出模板", "工业管道安装汇总表(安装)");
int dataRowsPerPage = 5; //每页明细数据行数
string projectId = tvControlItem.SelectedNodeID;
if (string.IsNullOrEmpty(projectId))
{
string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary where ProjectId = @ProjectId and FromType='1'";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", projectId));
if (!string.IsNullOrEmpty(this.txtIsoNoS.Text))
{
strSql += " And PipelineCode like @pipeLineCode";
listStr.Add(new SqlParameter("@pipeLineCode", "%" + this.txtIsoNoS.Text + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
if (tb.Rows.Count > 0)
{
initTemplatePath = Const.JGZL_IndustrialPipelineInstallationSummaryUrl;
uploadfilepath = rootPath + initTemplatePath;
newUrl = uploadfilepath.Replace("工业管道安装汇总表导出模板", "工业管道安装汇总表(安装)");
if (File.Exists(newUrl))
{
File.Delete(newUrl);
}
File.Copy(uploadfilepath, newUrl);
//更新书签内容
Document doc = new Aspose.Words.Document(newUrl);
DocumentBuilder builder = new DocumentBuilder(doc);
Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true);
string certificateCode = string.Empty;
string deliveryUnit = string.Empty;
string deliveryUnitCode = string.Empty;
string certificateId = tb.Rows[0]["CertificateId"].ToString();
var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(certificateId);
if (certificate != null)
{
certificateCode = certificate.CertificateCode;
deliveryUnit = certificate.DeliveryUnit;
deliveryUnitCode = certificate.DeliveryUnitCode;
}
Bookmark bookmark1 = doc.Range.Bookmarks["certificateCode"];
if (bookmark1 != null)
{
bookmark1.Text = certificateCode;
}
Bookmark bookmark2 = doc.Range.Bookmarks["deliveryUnit"];
if (bookmark2 != null)
{
bookmark2.Text = deliveryUnit;
}
Bookmark bookmark3 = doc.Range.Bookmarks["deliveryUnitCode"];
if (bookmark3 != null)
{
bookmark3.Text = deliveryUnitCode;
}
// 设置表头行重复显示
table.Rows[0].RowFormat.HeadingFormat = true;
table.Rows[1].RowFormat.HeadingFormat = true;
table.Rows[2].RowFormat.HeadingFormat = true;
// 先记录页尾行,并从表格中移除
//Row footerRow = table.Rows[table.Rows.Count - 1];
//table.Rows.RemoveAt(table.Rows.Count - 1);
for (int i = 0; i < tb.Rows.Count; i++)
{
//创建行
Aspose.Words.Tables.Row row = new Aspose.Words.Tables.Row(doc);
//row.RowFormat.Height = 50;
//row.RowFormat.HeightRule = HeightRule.Exactly;
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineCode"].ToString(), doc, 32.3, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineLevel"].ToString(), doc, 33.7, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineStartPoint"].ToString(), doc, 31.75, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineEndPoint"].ToString(), doc, 32, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["DesignPressure"].ToString(), doc, 40, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["DesignTemperature"].ToString(), doc, 36, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["Medium"].ToString(), doc, 30.6, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["Material"].ToString(), doc, 31.47, "", ""));
row.Cells.Add(CreateCell(HttpUtility.HtmlDecode(tb.Rows[i]["Specifications"].ToString()), doc, 32.3, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["Length"].ToString(), doc, 30, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["LayingMethod"].ToString(), doc, 31.49, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["WeldsNum"].ToString(), doc, 30, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["LosslessRatio"].ToString(), doc, 39, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestMethod"].ToString(), doc, 32.3, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestMedium"].ToString(), doc, 28.6, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestPressure"].ToString(), doc, 38, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestMedium"].ToString(), doc, 37.4, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestPressure"].ToString(), doc, 41.67, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["CleaningMethod"].ToString(), doc, 34.3, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["CorrosionControlMethod"].ToString(), doc, 31.2, "", ""));
row.Cells.Add(CreateCell(tb.Rows[i]["InsulationMethod"].ToString(), doc, 43.9, "", ""));
table.Rows.Insert(i + 3, row);
}
// 计算并插入空白行,填满整页
// 计算总数据行数
int totalDataRows = tb.Rows.Count;
// 计算需要补充的空白行数量
int remainder = totalDataRows % rowsPerPage;
int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder;
// 插入空白行(和数据行格式保持一致,仅内容为空)
for (int i = 0; i < needBlankRows - 1; i++)
{
Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc);
blankRow.RowFormat.Height = 50;
blankRow.RowFormat.HeightRule = HeightRule.Exactly;
// 空白行的单元格宽度和数据行保持一致
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 33.7, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 31.75, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 32, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 40, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 36, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 30.6, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 31.47, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 30, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 31.49, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 30, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 39, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 28.6, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 38, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 37.4, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 41.67, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 34.3, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 31.2, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 43.9, "", ""));
// 插入到表格最后一行
table.Rows.Add(blankRow);
}
//把页尾行重新加回表格最后
//table.Rows.Add(footerRow);
//自动设置表格样式
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
table.Alignment = TableAlignment.Center;
doc.Save(newUrl);
string fileName = Path.GetFileName(newUrl);
FileInfo info = new FileInfo(newUrl);
long fileSize = info.Length;
Response.Clear();
Response.ContentType = "application/x-zip-compressed";
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
Response.AddHeader("Content-Length", fileSize.ToString());
Response.TransmitFile(newUrl, 0, fileSize);
Response.Flush();
Response.Close();
File.Delete(newUrl);
}
else
{
Alert.ShowInTop("没有要导出的数据!", MessageBoxIcon.Warning);
return;
}
}
else
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
Alert.ShowInTop("请先选择项目!");
return;
}
string sql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary
WHERE ProjectId = @ProjectId AND FromType='1'";
List<SqlParameter> paras = new List<SqlParameter>();
paras.Add(new SqlParameter("@ProjectId", projectId));
DataTable tb = SQLHelper.GetDataTableRunText(sql, paras.ToArray());
if (tb == null || tb.Rows.Count <= 0)
{
Alert.ShowInTop("当前没有可导出的数据!");
return;
}
//复制模板
if (File.Exists(saveTempPath))
{
File.Delete(saveTempPath);
}
File.Copy(templateFullPath, saveTempPath);
Document doc = new Document(saveTempPath);
DocumentBuilder builder = new DocumentBuilder(doc);
Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true);
if (table == null)
{
Alert.ShowInTop("导出模板异常,未找到汇总主表格!");
return;
}
string certificateCode = string.Empty;
string deliveryUnit = string.Empty;
string deliveryUnitCode = string.Empty;
string certificateId = tb.Rows[0]["CertificateId"] == DBNull.Value ? "" : tb.Rows[0]["CertificateId"].ToString();
var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(certificateId);
if (certificate != null)
{
certificateCode = certificate.CertificateCode;
deliveryUnit = certificate.DeliveryUnit;
deliveryUnitCode = certificate.DeliveryUnitCode;
}
//书签赋值交工单元
Bookmark bookmark1 = doc.Range.Bookmarks["certificateCode"];
if (bookmark1 != null) bookmark1.Text = certificateCode;
Bookmark bookmark2 = doc.Range.Bookmarks["deliveryUnit"];
if (bookmark2 != null) bookmark2.Text = deliveryUnit;
Bookmark bookmark3 = doc.Range.Bookmarks["deliveryUnitCode"];
if (bookmark3 != null) bookmark3.Text = deliveryUnitCode;
// 关闭HeadingFormat,全部走手动克隆表头
table.Rows[0].RowFormat.HeadingFormat = false;
table.Rows[1].RowFormat.HeadingFormat = false;
table.Rows[2].RowFormat.HeadingFormat = false;
//克隆表格内表头行
Aspose.Words.Tables.Row deliveryUnitRow = (Aspose.Words.Tables.Row)table.Rows[0].Clone(true); //交工单元行,仅首页
Aspose.Words.Tables.Row headerRow1 = (Aspose.Words.Tables.Row)table.Rows[1].Clone(true);
Aspose.Words.Tables.Row headerRow2 = (Aspose.Words.Tables.Row)table.Rows[2].Clone(true);
// 清理模板预留空行;保留 Row0(交工单元)、Row1、Row2(列表头)
while (table.Rows.Count > 3)
{
table.Rows.RemoveAt(3);
}
int totalCount = tb.Rows.Count;
int pageRowCounter = 0;
for (int i = 0; i < totalCount; i++)
{
DataRow dr = tb.Rows[i];
Aspose.Words.Tables.Row dataRow = BuildDataRow(dr, doc);
table.Rows.Add(dataRow);
pageRowCounter++;
// 判断:本页已满,并且不是最后一条记录
if (pageRowCounter >= dataRowsPerPage && i != totalCount - 1)
{
//补本页空白行
int blankNeed = dataRowsPerPage - pageRowCounter;
for (int b = 0; b < blankNeed; b++)
{
table.Rows.Add(BuildBlankRow(doc));
}
// 1. 定位到当前表格之后,输出本页底部页码
if (table.NextSibling == null)
{
Paragraph paraAfter = new Paragraph(doc);
table.ParentNode.InsertAfter(paraAfter, table);
}
builder.MoveTo(table.NextSibling);
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
builder.Font.Name = "宋体";
builder.Font.Size = 10.5;
builder.Write("共 ");
builder.InsertField(@"NUMPAGES", "");
builder.Write(" 页 第 ");
builder.InsertField(@"PAGE", "");
builder.Write(" 页");
//保存当前节点(页码段落),后续DOM在它后面追加内容
Node currentParaNode = builder.CurrentParagraph;
//插入分页符(写在当前页码段落末尾)
builder.InsertBreak(BreakType.PageBreak);
//==== DOM方式新建【续页:大标题 + 质量证明书编号】====
//续页主标题:工业管道安装汇总表
Paragraph titlePara = new Paragraph(doc);
titlePara.ParagraphFormat.Alignment = ParagraphAlignment.Center;
Run titleRun = new Run(doc, "工业管道安装汇总表");
titleRun.Font.Name = "宋体";
titleRun.Font.Size = 16;
titleRun.Font.Bold = true;
titlePara.Runs.Add(titleRun);
Paragraph certPara = new Paragraph(doc);
certPara.ParagraphFormat.Alignment = ParagraphAlignment.Left;
Run certRun = new Run(doc, "质量证明书编号:" + certificateCode);
certRun.Font.Name = "宋体";
certRun.Font.Size = 10.5;
certPara.Runs.Add(certRun);
//新建空段落用来做间隔
Paragraph emptyPara = new Paragraph(doc);
//新建续页表格:先加行,再设置格式
Aspose.Words.Tables.Table newPageTable = new Aspose.Words.Tables.Table(doc);
newPageTable.Rows.Add((Aspose.Words.Tables.Row)headerRow1.Clone(true));
newPageTable.Rows.Add((Aspose.Words.Tables.Row)headerRow2.Clone(true));
newPageTable.Alignment = TableAlignment.Center;
newPageTable.AutoFit(AutoFitBehavior.FixedColumnWidths);
//【DOM链式向后插入:页码段落 → 分页符 → 大标题 →证书编号 →空行 →表格】
currentParaNode.ParentNode.InsertAfter(titlePara, currentParaNode);
currentParaNode.ParentNode.InsertAfter(certPara, titlePara);
currentParaNode.ParentNode.InsertAfter(emptyPara, certPara);
currentParaNode.ParentNode.InsertAfter(newPageTable, emptyPara);
//替换table引用,后续数据写入这个新表格
table = newPageTable;
pageRowCounter = 0;
}
}
//处理最后一页剩余数据,补齐空白行
int remain = totalCount % dataRowsPerPage;
int lastBlankRows = remain == 0 ? 0 : dataRowsPerPage - remain;
for (int b = 0; b < lastBlankRows; b++)
{
table.Rows.Add(BuildBlankRow(doc));
}
// ========== 先插入填表审核签字行(表格之后,页码之前)==========
if (table.NextSibling == null)
{
Paragraph paraAfter = new Paragraph(doc);
table.ParentNode.InsertAfter(paraAfter, table);
}
builder.MoveTo(table.NextSibling);
builder.InsertParagraph();
builder.ParagraphFormat.Alignment = ParagraphAlignment.Left;
builder.Font.Name = "宋体";
builder.Font.Size = 10.5;
builder.Write(" 填表: 日期: 审核: 日期:");
// ========== 再输出页码(签字行的下方)==========
builder.InsertParagraph();
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
builder.Font.Name = "宋体";
builder.Font.Size = 10.5;
builder.Write("共 ");
builder.InsertField(@"NUMPAGES", "");
builder.Write(" 页 第 ");
builder.InsertField(@"PAGE", "");
builder.Write(" 页");
doc.UpdatePageLayout();
doc.UpdateFields();
doc.Save(saveTempPath);
//下载
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode("工业管道安装汇总表.doc"));
Response.TransmitFile(saveTempPath);
Response.Flush();
Response.End();
File.Delete(saveTempPath);
}
public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "")
/// <summary>构建明细数据行</summary>
private Aspose.Words.Tables.Row BuildDataRow(DataRow dr, Document doc)
{
Cell cell = new Cell(doc);
Paragraph p = new Paragraph(doc);
if (!string.IsNullOrEmpty(CenterPage))
Aspose.Words.Tables.Row row = new Aspose.Words.Tables.Row(doc);
row.RowFormat.Height = 47;
row.RowFormat.HeightRule = HeightRule.Exactly;
string GetCellValue(object obj)
{
//序号,在最开始就拼接空格
value = " " + value;
if (obj == DBNull.Value) return "";
return obj.ToString().Replace("\r", "").Replace("\n", "").Trim();
}
Run run = new Run(doc, value);
run.Font.Size = 8;
string pipeCode = GetCellValue(dr["PipelineCode"]);
string pipeLevel = GetCellValue(dr["PipelineLevel"]);
string startPoint = GetCellValue(dr["PipelineStartPoint"]);
string endPoint = GetCellValue(dr["PipelineEndPoint"]);
string desPressure = TrimEndZero(dr["DesignPressure"]);
string desTemp = TrimEndZero(dr["DesignTemperature"]);
string medium = GetCellValue(dr["Medium"]);
string material = GetCellValue(dr["Material"]);
string spec = HttpUtility.HtmlDecode(GetCellValue(dr["Specifications"]));
string length = TrimEndZero(dr["Length"]);
string layMethod = GetCellValue(dr["LayingMethod"]);
string weldNum = GetCellValue(dr["WeldsNum"]);
string losslessRatio = GetCellValue(dr["LosslessRatio"]);
string pressTestMethod = GetCellValue(dr["VoltageResistantTestMethod"]);
string pressTestMedium = GetCellValue(dr["VoltageResistantTestMedium"]);
string pressTestPressure = GetCellValue(dr["VoltageResistantTestPressure"]);
string leakMedium = GetCellValue(dr["LeakageTestMedium"]);
string leakPressure = GetCellValue(dr["LeakageTestPressure"]);
string cleanMethod = GetCellValue(dr["CleaningMethod"]);
string corrosion = GetCellValue(dr["CorrosionControlMethod"]);
string insulation = GetCellValue(dr["InsulationMethod"]);
row.Cells.Add(CreateCell(pipeCode, doc, 32.3, "", "c"));
row.Cells.Add(CreateCell(pipeLevel, doc, 33.7, "", "c"));
row.Cells.Add(CreateCell(startPoint, doc, 31.75, "", "c"));
row.Cells.Add(CreateCell(endPoint, doc, 32, "", "c"));
row.Cells.Add(CreateCell(desPressure, doc, 40, "", "c"));
row.Cells.Add(CreateCell(desTemp, doc, 36, "", "c"));
row.Cells.Add(CreateCell(medium, doc, 30.6, "", "c"));
row.Cells.Add(CreateCell(material, doc, 31.47, "", "c"));
row.Cells.Add(CreateCell(spec, doc, 32.3, "", "c"));
row.Cells.Add(CreateCell(length, doc, 30, "", "c"));
row.Cells.Add(CreateCell(layMethod, doc, 31.49, "", "c"));
row.Cells.Add(CreateCell(weldNum, doc, 30, "", "c"));
row.Cells.Add(CreateCell(losslessRatio, doc, 39, "", "c"));
row.Cells.Add(CreateCell(pressTestMethod, doc, 32.3, "", "c"));
row.Cells.Add(CreateCell(pressTestMedium, doc, 28.6, "", "c"));
row.Cells.Add(CreateCell(pressTestPressure, doc, 38, "", "c"));
row.Cells.Add(CreateCell(leakMedium, doc, 37.4, "", "c"));
row.Cells.Add(CreateCell(leakPressure, doc, 41.67, "", "c"));
row.Cells.Add(CreateCell(cleanMethod, doc, 34.3, "", "c"));
row.Cells.Add(CreateCell(corrosion, doc, 31.2, "", "c"));
row.Cells.Add(CreateCell(insulation, doc, 43.9, "", "c"));
return row;
}
/// <summary>空白补行</summary>
private Aspose.Words.Tables.Row BuildBlankRow(Document doc)
{
Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc);
blankRow.RowFormat.Height = 47;
blankRow.RowFormat.HeightRule = HeightRule.Exactly;
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 33.7, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 31.75, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 32, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 40, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 36, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 30.6, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 31.47, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 30, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 31.49, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 30, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 39, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 32.3, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 28.6, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 38, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 37.4, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 41.67, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 34.3, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 31.2, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 43.9, "", ""));
return blankRow;
}
private Aspose.Words.Tables.Cell CreateCell(string text, Document doc, double width, string mergeDir = "", string vertAlign = "")
{
Aspose.Words.Tables.Cell cell = new Aspose.Words.Tables.Cell(doc);
cell.CellFormat.Width = width;
//单元格内边距,让文字贴近边框
cell.CellFormat.TopPadding = 1.5;
cell.CellFormat.BottomPadding = 1.5;
cell.CellFormat.LeftPadding = 1.5;
cell.CellFormat.RightPadding = 1.5;
Paragraph para = new Paragraph(doc);
Run run = new Run(doc, text);
run.Font.Name = "楷体";
run.Font.Size = 8;
para.Runs.Add(run);
if (!string.IsNullOrEmpty(cellMerge))
{
if (cellMerge == "0")
{
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格
}
else
{
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的后续单元格
}
}
else
{
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
}
//清除段落自带空白
para.ParagraphFormat.SpaceBefore = 0;
para.ParagraphFormat.SpaceAfter = 0;
para.ParagraphFormat.LineSpacingRule = LineSpacingRule.AtLeast;
para.ParagraphFormat.LineSpacing = 8;
if (!string.IsNullOrEmpty(cellUnitLeft))
{
p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左
}
else
{
p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//表格中字体居中
}
// 把带字体样式的run加入段落
p.AppendChild(run);
cell.CellFormat.Width = cellWidth;
cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
cell.CellFormat.Borders.LineWidth = 0.75;
// 单元格内边距
cell.CellFormat.LeftPadding = 1;
cell.CellFormat.RightPadding = 1;
cell.CellFormat.TopPadding = 1;
cell.CellFormat.BottomPadding = 1;
//清除段落段前段后间距
p.ParagraphFormat.SpaceBefore = 0;
p.ParagraphFormat.SpaceAfter = 0;
cell.AppendChild(p);
para.ParagraphFormat.Alignment = ParagraphAlignment.Center;
cell.Paragraphs.Add(para);
if (!string.IsNullOrEmpty(vertAlign))
cell.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;
if (mergeDir == "hStart")
cell.CellFormat.HorizontalMerge = CellMerge.First;
else if (mergeDir == "hContinue")
cell.CellFormat.HorizontalMerge = CellMerge.Previous;
return cell;
}
/// <summary>
/// 去掉小数末尾无效0
/// </summary>
public static string TrimEndZero(object val)
{
if (val == null || val == DBNull.Value)
return "";
string s = val.ToString().Trim();
if (!decimal.TryParse(s, out decimal num))
return s; // 不是数字原样返回
// 转成字符串自动去除末尾0,.NET decimal.ToString()会自动处理
return num.ToString("G29");
}
#endregion
}
}
@@ -42,7 +42,7 @@
</f:ToolbarFill>
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>
<f:Button ID="btnSave" Text="保存" ToolTip="保存" Icon="SystemSave" runat="server" OnClick="btnSave_Click"></f:Button>
<f:Button ID="btnPrint" Text="工业管道安装汇总表(2020版)打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
@@ -1,7 +1,9 @@
using Aspose.Words;
using Aspose.Words.Layout;
using Aspose.Words.Tables;
using BLL;
using FastReport.Table;
using FineUIPro.Web.HJGLServer.BaseInfo;
using Model;
using Newtonsoft.Json.Linq;
using NPOI.SS.Formula.Functions;
@@ -17,6 +19,8 @@ using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
using Row = Aspose.Words.Tables.Row;
using Table = Aspose.Words.Tables.Table;
namespace FineUIPro.Web.JGZL
{
@@ -656,6 +660,255 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
}
#endregion
//#region 导出按钮
///// 导出按钮
///// </summary>
///// <param name="sender"></param>
///// <param name="e"></param>
//protected void btnOut_Click(object sender, EventArgs e)
//{
// string rootPath = Server.MapPath("~/");
// string initTemplatePath = string.Empty;
// string uploadfilepath = string.Empty;
// string newUrl = string.Empty;
// string filePath = string.Empty;
// //每页显示的固定数据行数
// int rowsPerPage = 8;
// string projectId = this.tvControlItem.SelectedNodeID;
// if (!string.IsNullOrEmpty(projectId))
// {
// string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary where ProjectId = @ProjectId and FromType='2'";
// List<SqlParameter> listStr = new List<SqlParameter>();
// listStr.Add(new SqlParameter("@ProjectId", projectId));
// if (!string.IsNullOrEmpty(this.txtIsoNoS.Text))
// {
// strSql += " And PipelineCode like @pipeLineCode";
// listStr.Add(new SqlParameter("@pipeLineCode", "%" + this.txtIsoNoS.Text + "%"));
// }
// SqlParameter[] parameter = listStr.ToArray();
// DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
// if (tb.Rows.Count > 0)
// {
// initTemplatePath = Const.JGZL_IndustrialPipelineInstallationSummary2020Url;
// uploadfilepath = rootPath + initTemplatePath;
// newUrl = uploadfilepath.Replace("工业管道安装汇总表2020导出模板", "压力管道安装汇总表(2020版)");
// if (File.Exists(newUrl))
// {
// File.Delete(newUrl);
// }
// File.Copy(uploadfilepath, newUrl);
// //更新书签内容
// Document doc = new Aspose.Words.Document(newUrl);
// DocumentBuilder builder = new DocumentBuilder(doc);
// Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true);
// string certificateCode = string.Empty;
// string deliveryUnit = string.Empty;
// string deliveryUnitCode = string.Empty;
// string certificateId = tb.Rows[0]["CertificateId"].ToString();
// var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(certificateId);
// if (certificate != null)
// {
// certificateCode = certificate.CertificateCode;
// deliveryUnit = certificate.DeliveryUnit;
// deliveryUnitCode = certificate.DeliveryUnitCode;
// }
// Bookmark bookmark1 = doc.Range.Bookmarks["certificateCode"];
// if (bookmark1 != null)
// {
// bookmark1.Text = certificateCode;
// }
// Bookmark bookmark2 = doc.Range.Bookmarks["deliveryUnit"];
// if (bookmark2 != null)
// {
// bookmark2.Text = deliveryUnit;
// }
// Bookmark bookmark3 = doc.Range.Bookmarks["deliveryUnitCode"];
// if (bookmark3 != null)
// {
// bookmark3.Text = deliveryUnitCode;
// }
// // 设置表头行重复显示
// table.Rows[0].RowFormat.HeadingFormat = true;
// table.Rows[1].RowFormat.HeadingFormat = true;
// table.Rows[2].RowFormat.HeadingFormat = true;
// // ====固定表格布局=====
// table.AutoFit(AutoFitBehavior.FixedColumnWidths);
// table.AllowAutoFit = false;
// table.Alignment = TableAlignment.Center;
// // 先记录页尾行,并从表格中移除
// //Row footerRow = table.Rows[table.Rows.Count - 1];
// //table.Rows.RemoveAt(table.Rows.Count - 1);
// for (int i = 0; i < tb.Rows.Count; i++)
// {
// //创建行
// Aspose.Words.Tables.Row row = new Aspose.Words.Tables.Row(doc);
// row.Cells.Add(CreateCell((i + 1).ToString(), doc, 22.68, "", ""));//序号
// row.Cells.Add(CreateCell(tb.Rows[i]["PipelineCode"].ToString(), doc, 65.49, "", ""));//单线号
// row.Cells.Add(CreateCell(tb.Rows[i]["PipelineLevel"].ToString(), doc, 37.14, "", ""));//管道级别
// row.Cells.Add(CreateCell(tb.Rows[i]["DesignPressure"].ToString(), doc, 27.78, "", ""));//设计压力
// row.Cells.Add(CreateCell(tb.Rows[i]["DesignTemperature"].ToString(), doc, 28.06, "", ""));//设计温度
// row.Cells.Add(CreateCell(tb.Rows[i]["OperatingTemperature"].ToString(), doc, 28, "", ""));//操作温度
// row.Cells.Add(CreateCell(tb.Rows[i]["Medium"].ToString(), doc, 34.87, "", ""));//输送介质
// row.Cells.Add(CreateCell(tb.Rows[i]["Material"].ToString(), doc, 43.66, "", ""));//管道材质牌号及标准
// row.Cells.Add(CreateCell(HttpUtility.HtmlDecode(tb.Rows[i]["Specifications"].ToString()), doc, 59.82, "", ""));//管道规格(外径×壁厚mm)
// row.Cells.Add(CreateCell(tb.Rows[i]["Length"].ToString(), doc, 34.58, "", ""));//管道长度(m)
// row.Cells.Add(CreateCell(tb.Rows[i]["LayingMethod"].ToString(), doc, 33.74, "", ""));//铺设方式
// row.Cells.Add(CreateCell(tb.Rows[i]["WeldsNum"].ToString(), doc, 27, "", ""));//焊口数量
// row.Cells.Add(CreateCell(tb.Rows[i]["LosslessRatio"].ToString(), doc, 45.93, "", ""));//检测方法/比例(%)
// row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestMedium"].ToString(), doc, 37.14, "", ""));//压力试验-介质
// row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestPressure"].ToString(), doc, 30.62, "", ""));//压力试验-压力
// row.Cells.Add(CreateCell(string.Format("{0:yyyy.MM.dd}", tb.Rows[i]["VoltageResistantTestDate"]), doc, 48.76, "", ""));//压力试验-日期
// row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestMedium"].ToString(), doc, 25.23, "", ""));//泄漏性试验-介质
// row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestPressure"].ToString(), doc, 28.92, "", ""));//泄漏性试验-压力
// row.Cells.Add(CreateCell(string.Format("{0:yyyy.MM.dd}", tb.Rows[i]["LeakageTestDate"]), doc, 48.76, "", ""));//泄漏性试验-日期
// row.Cells.Add(CreateCell(tb.Rows[i]["CleaningMethod"].ToString(), doc, 26.08, "", ""));//吹洗方法
// row.Cells.Add(CreateCell(tb.Rows[i]["CorrosionControlMethod"].ToString(), doc, 56.7, "", ""));//防腐方式
// row.Cells.Add(CreateCell(tb.Rows[i]["InsulationMethod"].ToString(), doc, 22.11, "", ""));//保温(绝热)方式
// table.Rows.Insert(i + 3, row);
// }
// // 计算并插入空白行,填满整页
// // 计算总数据行数
// int totalDataRows = tb.Rows.Count;
// // 计算需要补充的空白行数量
// int remainder = totalDataRows % rowsPerPage;
// int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder;
// // 插入空白行(和数据行格式保持一致,仅内容为空)
// for (int i = 0; i < needBlankRows - 1; i++)
// {
// Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc);
// blankRow.RowFormat.Height = 33;
// blankRow.RowFormat.HeightRule = HeightRule.Exactly;
// // 空白行的单元格宽度和数据行保持一致
// blankRow.Cells.Add(CreateCell("", doc, 22.68, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 65.49, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 37.14, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 27.78, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 28.06, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 28, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 34.87, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 43.66, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 59.82, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 34.58, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 33.74, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 27, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 45.93, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 37.14, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 30.62, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 48.76, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 25.23, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 28.92, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 48.76, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 26.08, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 56.7, "", ""));
// blankRow.Cells.Add(CreateCell("", doc, 22.11, "", ""));
// // 插入到表格最后一行
// table.Rows.Add(blankRow);
// }
// //把页尾行重新加回表格最后
// //table.Rows.Add(footerRow);
// doc.Save(newUrl);
// string fileName = Path.GetFileName(newUrl);
// FileInfo info = new FileInfo(newUrl);
// long fileSize = info.Length;
// Response.Clear();
// Response.ContentType = "application/x-zip-compressed";
// Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
// Response.AddHeader("Content-Length", fileSize.ToString());
// Response.TransmitFile(newUrl, 0, fileSize);
// Response.Flush();
// Response.Close();
// File.Delete(newUrl);
// }
// else
// {
// Alert.ShowInTop("没有要导出的数据!", MessageBoxIcon.Warning);
// return;
// }
// }
// else
// {
// Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
// return;
// }
//}
//public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "")
//{
// Cell cell = new Cell(doc);
// Paragraph p = new Paragraph(doc);
// if (!string.IsNullOrEmpty(CenterPage))
// {
// //序号,在最开始就拼接空格
// value = " " + value;
// }
// Run run = new Run(doc, value);
// run.Font.Size = 8;
// run.Font.Name = "楷体";
// if (!string.IsNullOrEmpty(cellMerge))
// {
// if (cellMerge == "0")
// {
// cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格
// }
// else
// {
// cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的后续单元格
// }
// }
// else
// {
// cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
// }
// if (!string.IsNullOrEmpty(cellUnitLeft))
// {
// p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左
// }
// else
// {
// p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//表格中字体居中
// }
// // 把带字体样式的run加入段落
// p.AppendChild(run);
// cell.CellFormat.Width = cellWidth;
// cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
// cell.CellFormat.Borders.LineWidth = 0.75;
// // 单元格内边距
// cell.CellFormat.LeftPadding = 1;
// cell.CellFormat.RightPadding = 1;
// cell.CellFormat.TopPadding = 1;
// cell.CellFormat.BottomPadding = 1;
// //清除段落段前段后间距
// p.ParagraphFormat.SpaceBefore = 0;
// p.ParagraphFormat.SpaceAfter = 0;
// cell.AppendChild(p);
// return cell;
//}
//#endregion
#region 导出按钮
/// 导出按钮
/// </summary>
@@ -667,11 +920,9 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
string initTemplatePath = string.Empty;
string uploadfilepath = string.Empty;
string newUrl = string.Empty;
string filePath = string.Empty;
//每页显示的固定数据行数
int rowsPerPage = 8;
//每页业务数据7行
int rowsPerPage = 7;
string projectId = this.tvControlItem.SelectedNodeID;
if (!string.IsNullOrEmpty(projectId))
{
@@ -689,19 +940,17 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
{
initTemplatePath = Const.JGZL_IndustrialPipelineInstallationSummary2020Url;
uploadfilepath = rootPath + initTemplatePath;
newUrl = uploadfilepath.Replace("工业管道安装汇总表2020导出模板", "压力管道安装汇总表(2020版)");
if (File.Exists(newUrl))
{
File.Delete(newUrl);
}
File.Copy(uploadfilepath, newUrl);
//更新书签内容
Document doc = new Aspose.Words.Document(newUrl);
DocumentBuilder builder = new DocumentBuilder(doc);
Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true);
//填充业务数据
string certificateCode = string.Empty;
string deliveryUnit = string.Empty;
string deliveryUnitCode = string.Empty;
@@ -714,114 +963,184 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
deliveryUnitCode = certificate.DeliveryUnitCode;
}
Bookmark bookmark1 = doc.Range.Bookmarks["certificateCode"];
if (bookmark1 != null)
//取出模板原始表格,用于克隆表头行
Table templateTable = doc.GetChild(NodeType.Table, 0, true) as Table;
Row templateUnitRow = (Row)templateTable.Rows[0].Clone(true); //交工单元名称+交工单元编号行(仅第一页)
Row templateTableHeader1 = (Row)templateTable.Rows[1].Clone(true);
Row templateTableHeader2 = (Row)templateTable.Rows[2].Clone(true);
//直接替换交工单元行单元格内容
Cell unitNameCell = templateUnitRow.Cells[0];
unitNameCell.FirstParagraph.Runs.Clear();
unitNameCell.FirstParagraph.AppendChild(new Run(doc, $"交工单元名称:{deliveryUnit}"));
Cell unitCodeCell = templateUnitRow.Cells[1];
unitCodeCell.FirstParagraph.Runs.Clear();
unitCodeCell.FirstParagraph.AppendChild(new Run(doc, $"交工单元编号:{deliveryUnitCode}"));
doc.FirstSection.Body.RemoveAllChildren();
int total = tb.Rows.Count;
int pageCount = (int)Math.Ceiling((double)total / rowsPerPage);
for (int pageIndex = 0; pageIndex < pageCount; pageIndex++)
{
bookmark1.Text = certificateCode;
bool isFirstPage = pageIndex == 0;
bool isLastPage = pageIndex == pageCount - 1;
builder.MoveToDocumentEnd();
if (!isFirstPage)
{
builder.InsertBreak(BreakType.PageBreak);
builder.MoveToDocumentEnd();
}
//================ 每页顶部三行================
//1.第一行:固定文字 ZDS‑T6.38.047.A/0.2020 居右
builder.ParagraphFormat.SpaceBefore = 0;
builder.ParagraphFormat.SpaceAfter = 1;
builder.ParagraphFormat.Alignment = ParagraphAlignment.Right;
builder.Font.Size = 15;
builder.Font.Name = "Times New Roman";
builder.Font.Bold = true;
builder.Write("ZDS‑T6.38.047.A/0.2020");
builder.InsertParagraph();
//2.第二行:大标题 二、压力管道安装汇总表 居中
builder.ParagraphFormat.SpaceBefore = 0;
builder.ParagraphFormat.SpaceAfter = 1;
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
builder.Font.Size = 16;
builder.Font.Name = "宋体";
builder.Font.Bold = true;
builder.Write("二、压力管道安装汇总表");
builder.InsertParagraph();
//3.第三行:证明书编号 居右,下面紧接表格,SpaceAfter=1极小间距
builder.ParagraphFormat.SpaceBefore = 0;
builder.ParagraphFormat.SpaceAfter = 1;
builder.ParagraphFormat.Alignment = ParagraphAlignment.Right;
builder.Font.Size = 10.5;
builder.Font.Name = "宋体";
builder.Font.Bold = false;
builder.Write("证明书编号:" + certificateCode + " ");
//builder.InsertParagraph();
//=====================================================
//================ 构建本页表格 =================
Table pageTable = new Table(doc);
//第一页才加入交工单元名称编号行,第二页及以后不加
if (isFirstPage)
{
pageTable.Rows.Add((Row)templateUnitRow.Clone(true));
}
//所有页面都加入2行列标题表头
pageTable.Rows.Add((Row)templateTableHeader1.Clone(true));
pageTable.Rows.Add((Row)templateTableHeader2.Clone(true));
//已经添加行之后,再设置表格格式,避免空表格AutoFit报错
pageTable.AllowAutoFit = false;
pageTable.AutoFit(AutoFitBehavior.FixedColumnWidths);
pageTable.Alignment = TableAlignment.Center;
int startIdx = pageIndex * rowsPerPage;
int endIdx = Math.Min(startIdx + rowsPerPage, total);
int pageDataCnt = endIdx - startIdx;
//填充业务数据行
for (int i = startIdx; i < endIdx; i++)
{
DataRow dr = tb.Rows[i];
Aspose.Words.Tables.Row dataRow = new Aspose.Words.Tables.Row(doc);
dataRow.RowFormat.Height = 40;
dataRow.RowFormat.HeightRule = HeightRule.Exactly;
dataRow.RowFormat.AllowBreakAcrossPages = false;
dataRow.Cells.Add(CreateCell((i + 1).ToString(), doc, 22.68, "", ""));//序号
dataRow.Cells.Add(CreateCell(dr["PipelineCode"].ToString(), doc, 65.49, "", ""));//单线号
dataRow.Cells.Add(CreateCell(dr["PipelineLevel"].ToString(), doc, 37.14, "", ""));//管道级别
dataRow.Cells.Add(CreateCell(dr["DesignPressure"].ToString(), doc, 27.78, "", ""));//设计压力
dataRow.Cells.Add(CreateCell(dr["DesignTemperature"].ToString(), doc, 28.06, "", ""));//设计温度
dataRow.Cells.Add(CreateCell(dr["OperatingTemperature"].ToString(), doc, 28, "", ""));//操作温度
dataRow.Cells.Add(CreateCell(dr["Medium"].ToString(), doc, 34.87, "", ""));//输送介质
dataRow.Cells.Add(CreateCell(dr["Material"].ToString(), doc, 43.66, "", ""));//管道材质牌号及标准
dataRow.Cells.Add(CreateCell(HttpUtility.HtmlDecode(dr["Specifications"].ToString()), doc, 59.82, "", ""));//管道规格
dataRow.Cells.Add(CreateCell(dr["Length"].ToString(), doc, 34.58, "", ""));//管道长度(m)
dataRow.Cells.Add(CreateCell(dr["LayingMethod"].ToString(), doc, 33.74, "", ""));//铺设方式
dataRow.Cells.Add(CreateCell(dr["WeldsNum"].ToString(), doc, 27, "", ""));//焊口数量
dataRow.Cells.Add(CreateCell(dr["LosslessRatio"].ToString(), doc, 45.93, "", ""));//检测方法/比例(%)
dataRow.Cells.Add(CreateCell(FormatDateStr(dr["VoltageResistantTestMedium"]), doc, 37.14, "", ""));//压力试验-介质
dataRow.Cells.Add(CreateCell(FormatDateStr(dr["VoltageResistantTestPressure"]), doc, 30.62, "", ""));//压力试验-压力
dataRow.Cells.Add(CreateCell(FormatDateStr(dr["VoltageResistantTestDate"]), doc, 48.76, "", ""));//压力试验-日期
dataRow.Cells.Add(CreateCell(FormatDateStr(dr["LeakageTestMedium"]), doc, 25.23, "", ""));//泄漏性试验-介质
dataRow.Cells.Add(CreateCell(FormatDateStr(dr["LeakageTestPressure"]), doc, 28.92, "", ""));//泄漏性试验-压力
dataRow.Cells.Add(CreateCell(FormatDateStr(dr["LeakageTestDate"]), doc, 48.76, "", ""));//泄漏性试验-日期
dataRow.Cells.Add(CreateCell(dr["CleaningMethod"].ToString(), doc, 26.08, "", ""));//吹洗方法
dataRow.Cells.Add(CreateCell(dr["CorrosionControlMethod"].ToString(), doc, 56.7, "", ""));//防腐方式
dataRow.Cells.Add(CreateCell(dr["InsulationMethod"].ToString(), doc, 22.11, "", ""));//保温(绝热)方式
pageTable.Rows.Add(dataRow);
}
//不足7条补空白行
int blankCount = rowsPerPage - pageDataCnt;
for (int b = 0; b < blankCount; b++)
{
Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc);
blankRow.RowFormat.Height = 40;
blankRow.RowFormat.HeightRule = HeightRule.Exactly;
blankRow.RowFormat.AllowBreakAcrossPages = false;
blankRow.Cells.Add(CreateCell("", doc, 22.68, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 65.49, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 37.14, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 27.78, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 28.06, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 28, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 34.87, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 43.66, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 59.82, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 34.58, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 33.74, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 27, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 45.93, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 37.14, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 30.62, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 48.76, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 25.23, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 28.92, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 48.76, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 26.08, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 56.7, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 22.11, "", ""));
pageTable.Rows.Add(blankRow);
}
//把本页表格追加到文档正文
doc.FirstSection.Body.AppendChild(pageTable);
//仅最后一页:表格外部输出签字行
if (isLastPage)
{
Paragraph signPara = new Paragraph(doc);
Run signRun = new Run(doc, " 填表: 日期: 审核: 日期: ");
signRun.Font.Size = 10.5;
signRun.Font.Name = "宋体";
signPara.AppendChild(signRun);
signPara.ParagraphFormat.SpaceBefore = 6;
doc.FirstSection.Body.AppendChild(signPara);
}
}
Bookmark bookmark2 = doc.Range.Bookmarks["deliveryUnit"];
if (bookmark2 != null)
{
bookmark2.Text = deliveryUnit;
}
Bookmark bookmark3 = doc.Range.Bookmarks["deliveryUnitCode"];
if (bookmark3 != null)
{
bookmark3.Text = deliveryUnitCode;
}
// 设置表头行重复显示
table.Rows[0].RowFormat.HeadingFormat = true;
table.Rows[1].RowFormat.HeadingFormat = true;
table.Rows[2].RowFormat.HeadingFormat = true;
// ====固定表格布局=====
table.AutoFit(AutoFitBehavior.FixedColumnWidths);
table.AllowAutoFit = false;
table.Alignment = TableAlignment.Center;
// 先记录页尾行,并从表格中移除
//Row footerRow = table.Rows[table.Rows.Count - 1];
//table.Rows.RemoveAt(table.Rows.Count - 1);
for (int i = 0; i < tb.Rows.Count; i++)
{
//创建行
Aspose.Words.Tables.Row row = new Aspose.Words.Tables.Row(doc);
row.Cells.Add(CreateCell((i + 1).ToString(), doc, 22.68, "", ""));//序号
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineCode"].ToString(), doc, 65.49, "", ""));//单线号
row.Cells.Add(CreateCell(tb.Rows[i]["PipelineLevel"].ToString(), doc, 37.14, "", ""));//管道级别
row.Cells.Add(CreateCell(tb.Rows[i]["DesignPressure"].ToString(), doc, 27.78, "", ""));//设计压力
row.Cells.Add(CreateCell(tb.Rows[i]["DesignTemperature"].ToString(), doc, 28.06, "", ""));//设计温度
row.Cells.Add(CreateCell(tb.Rows[i]["OperatingTemperature"].ToString(), doc, 28, "", ""));//操作温度
row.Cells.Add(CreateCell(tb.Rows[i]["Medium"].ToString(), doc, 34.87, "", ""));//输送介质
row.Cells.Add(CreateCell(tb.Rows[i]["Material"].ToString(), doc, 43.66, "", ""));//管道材质牌号及标准
row.Cells.Add(CreateCell(HttpUtility.HtmlDecode(tb.Rows[i]["Specifications"].ToString()), doc, 59.82, "", ""));//管道规格(外径×壁厚mm)
row.Cells.Add(CreateCell(tb.Rows[i]["Length"].ToString(), doc, 34.58, "", ""));//管道长度(m)
row.Cells.Add(CreateCell(tb.Rows[i]["LayingMethod"].ToString(), doc, 33.74, "", ""));//铺设方式
row.Cells.Add(CreateCell(tb.Rows[i]["WeldsNum"].ToString(), doc, 27, "", ""));//焊口数量
row.Cells.Add(CreateCell(tb.Rows[i]["LosslessRatio"].ToString(), doc, 45.93, "", ""));//检测方法/比例(%)
row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestMedium"].ToString(), doc, 37.14, "", ""));//压力试验-介质
row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestPressure"].ToString(), doc, 30.62, "", ""));//压力试验-压力
row.Cells.Add(CreateCell(string.Format("{0:yyyy.MM.dd}", tb.Rows[i]["VoltageResistantTestDate"]), doc, 48.76, "", ""));//压力试验-日期
row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestMedium"].ToString(), doc, 25.23, "", ""));//泄漏性试验-介质
row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestPressure"].ToString(), doc, 28.92, "", ""));//泄漏性试验-压力
row.Cells.Add(CreateCell(string.Format("{0:yyyy.MM.dd}", tb.Rows[i]["LeakageTestDate"]), doc, 48.76, "", ""));//泄漏性试验-日期
row.Cells.Add(CreateCell(tb.Rows[i]["CleaningMethod"].ToString(), doc, 26.08, "", ""));//吹洗方法
row.Cells.Add(CreateCell(tb.Rows[i]["CorrosionControlMethod"].ToString(), doc, 56.7, "", ""));//防腐方式
row.Cells.Add(CreateCell(tb.Rows[i]["InsulationMethod"].ToString(), doc, 22.11, "", ""));//保温(绝热)方式
table.Rows.Insert(i + 3, row);
}
// 计算并插入空白行,填满整页
// 计算总数据行数
int totalDataRows = tb.Rows.Count;
// 计算需要补充的空白行数量
int remainder = totalDataRows % rowsPerPage;
int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder;
// 插入空白行(和数据行格式保持一致,仅内容为空)
for (int i = 0; i < needBlankRows - 1; i++)
{
Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc);
blankRow.RowFormat.Height = 33;
blankRow.RowFormat.HeightRule = HeightRule.Exactly;
// 空白行的单元格宽度和数据行保持一致
blankRow.Cells.Add(CreateCell("", doc, 22.68, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 65.49, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 37.14, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 27.78, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 28.06, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 28, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 34.87, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 43.66, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 59.82, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 34.58, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 33.74, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 27, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 45.93, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 37.14, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 30.62, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 48.76, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 25.23, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 28.92, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 48.76, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 26.08, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 56.7, "", ""));
blankRow.Cells.Add(CreateCell("", doc, 22.11, "", ""));
// 插入到表格最后一行
table.Rows.Add(blankRow);
}
//把页尾行重新加回表格最后
//table.Rows.Add(footerRow);
doc.Save(newUrl);
string fileName = Path.GetFileName(newUrl);
FileInfo info = new FileInfo(newUrl);
long fileSize = info.Length;
Response.Clear();
Response.ContentType = "application/x-zip-compressed";
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
Response.AddHeader("Content-Length", fileSize.ToString());
Response.TransmitFile(newUrl, 0, fileSize);
@@ -842,67 +1161,68 @@ CASE WHEN ISNUMERIC(DesignPressure)=1 THEN FORMAT(CAST(DesignPressure AS DECIMAL
}
}
public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "")
private Aspose.Words.Tables.Cell CreateCell(String value, Aspose.Words.Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "")
{
Cell cell = new Cell(doc);
Paragraph p = new Paragraph(doc);
Aspose.Words.Tables.Cell cell = new Aspose.Words.Tables.Cell(doc);
Aspose.Words.Paragraph p = new Aspose.Words.Paragraph(doc);
if (!string.IsNullOrEmpty(CenterPage))
{
//序号,在最开始就拼接空格
value = " " + value;
}
Run run = new Run(doc, value);
Aspose.Words.Run run = new Aspose.Words.Run(doc, value);
run.Font.Size = 8;
run.Font.Name = "楷体";
if (!string.IsNullOrEmpty(cellMerge))
{
if (cellMerge == "0")
{
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;
}
else
{
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的后续单元格
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;
}
}
else
{
cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
}
if (!string.IsNullOrEmpty(cellUnitLeft))
{
p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左
p.ParagraphFormat.Alignment = Aspose.Words.ParagraphAlignment.Left;
}
else
{
p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//表格中字体居中
p.ParagraphFormat.Alignment = Aspose.Words.ParagraphAlignment.Center;
}
// 把带字体样式的run加入段落
p.AppendChild(run);
cell.CellFormat.Width = cellWidth;
if (cellWidth > 0)
{
cell.CellFormat.Width = cellWidth;
}
cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
cell.CellFormat.Borders.LineWidth = 0.75;
// 单元格内边距
cell.CellFormat.LeftPadding = 1;
cell.CellFormat.RightPadding = 1;
cell.CellFormat.TopPadding = 1;
cell.CellFormat.BottomPadding = 1;
//清除段落段前段后间距
p.ParagraphFormat.SpaceBefore = 0;
p.ParagraphFormat.SpaceAfter = 0;
cell.AppendChild(p);
return cell;
}
private string FormatDateStr(object objVal)
{
if (objVal == DBNull.Value || objVal == null || string.IsNullOrWhiteSpace(objVal.ToString()))
return "";
DateTime dt;
if (DateTime.TryParse(objVal.ToString(), out dt))
{
return dt.ToString("yyyy.MM.dd");
}
return objVal.ToString();
}
#endregion
}
}
@@ -42,7 +42,7 @@
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnPrint" Text="打印工业管道安装质量证明书(2020版)" Icon="Printer" runat="server" OnClick="btnPrint_Click">
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
@@ -44,7 +44,7 @@
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnAdd" runat="server" Icon="Add" Text="新增" OnClick="btnAdd_Click"></f:Button>
<f:Button ID="btnPrint" Text="打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
@@ -43,7 +43,7 @@
OnClick="btnSave_Click">
</f:Button>
<%--<f:Button ID="btnAdd" runat="server" Icon="Add" Text="增加" OnClick="btnAdd_Click"></f:Button>--%>
<f:Button ID="btnPrint" Text="特种设备安装改造维修告知书打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
<f:Button ID="btnPrint" Text="预览" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" ToolTip="导出Word" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">