20260129 交工资料

This commit is contained in:
毕文静 2026-01-29 09:31:34 +08:00
parent 48567d9403
commit 854a126ab8
5 changed files with 405 additions and 4 deletions

View File

@ -0,0 +1,318 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="01/28/2026 09:20:32" ReportInfo.Modified="01/29/2026 09:30:23" ReportInfo.CreatorVersion="2017.1.16.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Data;
using FastReport;
using FastReport.Data;
using FastReport.Dialog;
using FastReport.Barcode;
using FastReport.Table;
using FastReport.Utils;
namespace FastReport
{
public class ReportScript
{
private void Table2_ManualBuild(object sender, EventArgs e)
{
DataSourceBase rowData = Report.GetDataSource(&quot;Data&quot;);
// init the data source
rowData.Init();
Table2.PrintRow(0);
Table2.PrintColumns();
int x=0;
// print the first table row - it is a header
// now enumerate the data source and print the table body
while (rowData.HasMoreRows)
{
// print the table body
x++;
Table2.PrintRow(1);
Table2.PrintColumns();
// go next data source row
rowData.Next();
}
}
private void Table4_ManualBuild(object sender, EventArgs e)
{
DataSourceBase rowData = Report.GetDataSource(&quot;ItemData&quot;);
// init the data source
rowData.Init();
Table4.PrintRow(0);
Table4.PrintColumns();
Table4.PrintRow(1);
Table4.PrintColumns();
int x=0;
// print the first table row - it is a header
// now enumerate the data source and print the table body
while (rowData.HasMoreRows)
{
// print the table body
x++;
Table4.PrintRow(2);
Table4.PrintColumns();
// go next data source row
rowData.Next();
}
}
}
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqtRsOalcXxDhVt62rPEPNYjaATUoMqziRYvJtgNsyJKYAG7kXKvNAMI/qBkgJNPccFsWrhiII6oyX1HS+uwN7YigxVjqUq3vIet2zpPnmWhwvYEvWOOCZZGx6EC4BfGfWX8aPj6bmoF52Z0fnUA9g71duxa/gvChTW/nzu9qsYVuvlVHliMnnu6jEIF9n+/QFGT2e1qVFIkBQuBBOgDK9og==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="Name" DataType="System.String" PropName="attach_image_id"/>
<Column Name="Material" DataType="System.String" PropName="image_series"/>
<Column Name="Specifications" DataType="System.String" PropName="file_name"/>
<Column Name="Quantity" DataType="System.String" PropName="file_size"/>
<Column Name="MaterialCertificateCode" DataType="System.String" PropName="file_type"/>
<Column Name="HeatCode" DataType="System.String" PropName="created_date"/>
<Column Name="MaterialCertificateSelfNumber" DataType="System.String" PropName="created_by"/>
</TableDataSource>
<TableDataSource Name="ItemData" DataType="System.Int32" PropName="AttachFile" Enabled="true" TableName="ItemData">
<Column Name="Num" DataType="System.String" PropName="AttachFileId"/>
<Column Name="Part1" DataType="System.String" PropName="ToKeyId"/>
<Column Name="Part2" DataType="System.String" PropName="AttachSource"/>
<Column Name="Part3" DataType="System.String" PropName="AttachUrl"/>
<Column Name="Part4" DataType="System.String" PropName="MenuId"/>
<Column Name="InnerDiameter" DataType="System.String" PropName="Column"/>
<Column Name="OuterDiameter" DataType="System.String" PropName="Column1"/>
<Column Name="InnerDiameter" Enabled="false" DataType="System.String" PropName="Column2"/>
<Column Name="Lengths" DataType="System.String" PropName="Column"/>
</TableDataSource>
</MsSqlDataConnection>
<MsSqlDataConnection Name="Connection1" ConnectionString="rijcmlqM3/HbiZANEYP3Y6oNtE7mqsCE0NW5tkXiWL0RJsdm/BnXhHrIFd8DaTyqYvkCZwzaaQipsiBeb+lBhzIDpDvfvxDsovr3/ckbYEBSCcpPFiH7Npcn4kPkDoxtl7XrCt1j63ma3mCLcLPN9o74aBqqd1WZsaEs7MLRtSWt4L/IDLoaEYKi0euV49rY12ECZLm">
<TableDataSource Name="ImageData" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="ImageData">
<Column Name="ImageUrl" DataType="System.String" PropName="attach_image_id"/>
</TableDataSource>
</MsSqlDataConnection>
<Parameter Name="ProjectName" DataType="System.String"/>
<Parameter Name="ContractCode" DataType="System.String"/>
<Parameter Name="ArrivalDate" DataType="System.String"/>
<Parameter Name="ExecutionStandard" DataType="System.String"/>
<Parameter Name="Crack" DataType="System.String"/>
<Parameter Name="SlagInclusion" DataType="System.String"/>
<Parameter Name="ShrinkageHole" DataType="System.String"/>
<Parameter Name="HeavyLeather" DataType="System.String"/>
<Parameter Name="Other" DataType="System.String"/>
<Parameter Name="Remark" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" RawPaperSize="9" LeftMargin="25" TopMargin="20" RightMargin="20" BottomMargin="21" Guides="0,623.68,155.92,77.96,389.8,382.72,477.22,96.86,40.16,115.76,59.06,507.92,214.98,292.94,467.76,623.7,79.65,197.1,305.1,356.4,445.5,534.6,623.6,77.95,389.75,545.65,155.9,233.85,311.8,467.7,623.64,197.09,305.08,356.37,445.46,534.55,170.1,444.15,107.99,51.29,89.09,623.76,311.88">
<PageHeaderBand Name="PageHeader1" Width="623.7" Height="132.3" Guides="0,132.3,97.65,63,18.9,34.65">
<TableObject Name="Table1" Width="623.68" Height="132.3">
<TableColumn Name="Column1" Width="77.96"/>
<TableColumn Name="Column2" Width="77.96"/>
<TableColumn Name="Column3" Width="59.06"/>
<TableColumn Name="Column4" Width="77.96"/>
<TableColumn Name="Column5" Width="96.86"/>
<TableColumn Name="Column6" Width="77.96"/>
<TableColumn Name="Column7" Width="40.16"/>
<TableColumn Name="Column8" Width="115.76"/>
<TableRow Name="Row1" Height="63">
<TableCell Name="Cell1" Border.Lines="All" Text="SH/T 3543—G411" HorzAlign="Center" VertAlign="Center" Font="黑体, 10.5pt" ColSpan="2" RowSpan="2"/>
<TableCell Name="Cell2" Border.Lines="All"/>
<TableCell Name="Cell3" Border.Lines="All" Text="钢管检查验收记录" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold" ColSpan="3" RowSpan="2">
<TextObject Name="Text1" Left="226.8" Width="94.5" Height="18.9" Text="工程名称:" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableCell>
<TableCell Name="Cell4" Border.Lines="All"/>
<TableCell Name="Cell5" Border.Lines="All"/>
<TableCell Name="Cell26" Border.Lines="Left, Right, Top" Text=" [ProjectName]" Font="楷体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell27" Border.Lines="All" Font="宋体, 10.5pt"/>
<TableCell Name="Cell28" Border.Lines="All" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row2" Height="34.65">
<TableCell Name="Cell6" Border.Lines="All"/>
<TableCell Name="Cell7" Border.Lines="All"/>
<TableCell Name="Cell8" Border.Lines="All"/>
<TableCell Name="Cell9" Border.Lines="All"/>
<TableCell Name="Cell10" Border.Lines="All"/>
<TableCell Name="Cell29" Border.Lines="Left, Bottom" Text="单位工程名称:" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell30" Border.Lines="Left, Right, Bottom" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell31" Border.Lines="Right, Bottom" Text="管道安装工程" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row3" Height="34.65">
<TableCell Name="Cell32" Border.Lines="All" Text="合同编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell33" Border.Lines="All" Text="[ContractCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell34" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell35" Border.Lines="All" Text="到货日期" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell36" Border.Lines="All" Text="[ArrivalDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell37" Border.Lines="All" Text="执行标准" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell38" Border.Lines="All" Text="[ExecutionStandard]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell39" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</PageHeaderBand>
<DataBand Name="Data1" Top="136.3" Width="623.7" Height="75.61" Guides="0,75.61,42.53">
<TableObject Name="Table2" Width="623.7" Height="75.61" ManualBuildEvent="Table2_ManualBuild">
<TableColumn Name="Column9" Width="79.65"/>
<TableColumn Name="Column10" Width="117.45"/>
<TableColumn Name="Column11" Width="108"/>
<TableColumn Name="Column12" Width="51.3"/>
<TableColumn Name="Column13" Width="89.1"/>
<TableColumn Name="Column14" Width="89.1"/>
<TableColumn Name="Column15" Width="89.1"/>
<TableRow Name="Row4" Height="42.53">
<TableCell Name="Cell40" Border.Lines="All" Text="名称" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell41" Border.Lines="All" Text="材质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell42" Border.Lines="All" Text="规格" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell43" Border.Lines="All" Text="数量" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell44" Border.Lines="All" Text="材质证编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell65" Border.Lines="All" Text="炉批号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell66" Border.Lines="All" Text="材质证件自编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row5" Height="33.08">
<TableCell Name="Cell45" Border.Lines="All" Text="[Data.Name]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell46" Border.Lines="All" Text="[Data.Material]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell47" Border.Lines="All" Text="[Data.Specifications]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell48" Border.Lines="All" Text="[Data.Quantity]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell49" Border.Lines="All" Text="[Data.MaterialCertificateCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell67" Border.Lines="All" Text="[Data.HeatCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell68" Border.Lines="All" Text="[Data.MaterialCertificateSelfNumber]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
</TableObject>
<DataBand Name="Data2" Top="418.31" Width="623.7" Height="75.63" Guides="0,75.63,47.28,23.64">
<TableObject Name="Table4" Width="623.6" Height="75.63" Border.Lines="All" ManualBuildEvent="Table4_ManualBuild">
<TableColumn Name="Column22" Width="77.95"/>
<TableColumn Name="Column23" Width="77.95"/>
<TableColumn Name="Column24" Width="77.95"/>
<TableColumn Name="Column25" Width="77.95"/>
<TableColumn Name="Column26" Width="77.95"/>
<TableColumn Name="Column27" Width="77.95"/>
<TableColumn Name="Column28" Width="77.95"/>
<TableColumn Name="Column29" Width="77.95"/>
<TableRow Name="Row10" Height="23.64">
<TableCell Name="Cell98" Border.Lines="All" Text="序号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<TableCell Name="Cell99" Border.Lines="All" Text="厚度mm" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell100" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell101" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell102" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell123" Border.Lines="All" Text="管径mm" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell124" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell125" Border.Lines="All" Text="长度mm" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row11" Height="23.64">
<TableCell Name="Cell103" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell104" Border.Lines="All" Text="位1" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell105" Border.Lines="All" Text="位2" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell106" Border.Lines="All" Text="位3" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell107" Border.Lines="All" Text="位4" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell126" Border.Lines="All" Text="内径d" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell127" Border.Lines="All" Text="外径D" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell128" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row12" Height="28.35">
<TableCell Name="Cell129" Border.Lines="All" Text="[ItemData.Num]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell130" Border.Lines="All" Text="[ItemData.Part1]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell131" Border.Lines="All" Text="[ItemData.Part2]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell132" Border.Lines="All" Text="[ItemData.Part3]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell133" Border.Lines="All" Text="[ItemData.Part4]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell134" Border.Lines="All" Text="[ItemData.InnerDiameter]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell135" Border.Lines="All" Text="[ItemData.OuterDiameter]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell136" Border.Lines="All" Text="[ItemData.Lengths]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
</TableObject>
<DataHeaderBand Name="DataHeader1" Top="215.91" Width="623.7" Height="198.4" Guides="0,198.4,61.4,30.7,167.7,18.9,103.95,106.3">
<TableObject Name="Table3" Width="623.64" Height="198.4" Border.Lines="All">
<TableColumn Name="Column16" Width="197.09"/>
<TableColumn Name="Column17" Width="107.99"/>
<TableColumn Name="Column18" Width="51.29"/>
<TableColumn Name="Column19" Width="89.09"/>
<TableColumn Name="Column20" Width="89.09"/>
<TableColumn Name="Column21" Width="89.09"/>
<TableRow Name="Row6" Height="30.7">
<TableCell Name="Cell69" Border.Lines="All" Text="外观检查" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="2"/>
<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="缩孔" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell73" Border.Lines="All" Text="重皮" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell94" Border.Lines="All" Text="其他" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row7" Height="30.7">
<TableCell Name="Cell74" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell75" Border.Lines="All" Text="[Crack]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell76" Border.Lines="All" Text="[SlagInclusion]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell77" Border.Lines="All" Text="[HeavyLeather]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell78" Border.Lines="All" Text="[HeavyLeather]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell95" Border.Lines="All" Text="[Other]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row8" Height="106.3">
<TableCell Name="Cell79" ColSpan="6">
<PictureObject Name="Picture1" Left="170.1" Top="18.9" Width="274.05" Height="85.05" DataColumn="ImageData.ImageUrl"/>
</TableCell>
<TableCell Name="Cell80"/>
<TableCell Name="Cell81"/>
<TableCell Name="Cell82"/>
<TableCell Name="Cell83"/>
<TableCell Name="Cell96"/>
</TableRow>
<TableRow Name="Row9" Height="30.7">
<TableCell Name="Cell84" Text="检测部位示意图" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="6"/>
<TableCell Name="Cell85"/>
<TableCell Name="Cell86"/>
<TableCell Name="Cell87"/>
<TableCell Name="Cell88"/>
<TableCell Name="Cell97"/>
</TableRow>
</TableObject>
</DataHeaderBand>
</DataBand>
<DataFooterBand Name="DataFooter1" Top="530.29" Width="623.7" Height="122.81" Guides="0,122.81,28.34,66.13,37.79,94.47">
<TableObject Name="Table6" Width="623.76" Height="122.81" Border.Lines="All">
<TableColumn Name="Column38" Width="311.88"/>
<TableColumn Name="Column39" Width="311.88"/>
<TableRow Name="Row16" Height="28.34">
<TableCell Name="Cell161" Text="备注:" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell162" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row17" Height="37.79">
<TableCell Name="Cell166" Border.Lines="Bottom" Text="[Remark]" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell167" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row18" Height="28.34">
<TableCell Name="Cell171" Text="检查人:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell172" Border.Lines="Left" Text="材料责任人:" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row19" Height="28.34">
<TableCell Name="Cell176" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell177" Border.Lines="Left" Text="日期: 年 月 日" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
<ChildBand Name="Child1" Top="497.94" Width="623.7" Height="28.35" Guides="0,28.35" FillUnusedSpace="true">
<TableObject Name="Table5" Width="623.6" Height="28.35" Border.Lines="All">
<TableColumn Name="Column30" Width="77.95"/>
<TableColumn Name="Column31" Width="77.95"/>
<TableColumn Name="Column32" Width="77.95"/>
<TableColumn Name="Column33" Width="77.95"/>
<TableColumn Name="Column34" Width="77.95"/>
<TableColumn Name="Column35" Width="77.95"/>
<TableColumn Name="Column36" Width="77.95"/>
<TableColumn Name="Column37" Width="77.95"/>
<TableRow Name="Row15" Height="28.35">
<TableCell Name="Cell153" Border.Lines="All"/>
<TableCell Name="Cell154" Border.Lines="All"/>
<TableCell Name="Cell155" Border.Lines="All"/>
<TableCell Name="Cell156" Border.Lines="All"/>
<TableCell Name="Cell157" Border.Lines="All"/>
<TableCell Name="Cell158" Border.Lines="All"/>
<TableCell Name="Cell159" Border.Lines="All"/>
<TableCell Name="Cell160" Border.Lines="All"/>
</TableRow>
</TableObject>
</ChildBand>
</DataFooterBand>
</DataBand>
</ReportPage>
</Report>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<UseIISExpress>true</UseIISExpress> <UseIISExpress>true</UseIISExpress>

View File

@ -212,7 +212,7 @@ namespace FineUIPro.Web.JGZL
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>(); Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
keyValuePairs.Add("ContractCode", report.ContractCode); keyValuePairs.Add("ContractCode", report.ContractCode);
keyValuePairs.Add("ArrivalDate", string.Format("{0:yyyy年MM月dd日}", report.ArrivalDate)); keyValuePairs.Add("ArrivalDate", string.Format("{0:yyyy.MM.dd}", report.ArrivalDate));
keyValuePairs.Add("ExecutionStandard", report.ExecutionStandard); keyValuePairs.Add("ExecutionStandard", report.ExecutionStandard);
keyValuePairs.Add("Crack", report.Crack); keyValuePairs.Add("Crack", report.Crack);
keyValuePairs.Add("SlagInclusion", report.SlagInclusion); keyValuePairs.Add("SlagInclusion", report.SlagInclusion);
@ -221,6 +221,89 @@ namespace FineUIPro.Web.JGZL
keyValuePairs.Add("Other", report.Other); keyValuePairs.Add("Other", report.Other);
keyValuePairs.Add("Remark", report.Remark); keyValuePairs.Add("Remark", report.Remark);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
//加载图片
var imageUrl = (from x in Funs.DB.AttachFile where x.ToKeyId == report.RecordId && x.MenuId == BLL.Const.JGZL_SteelPipeCheckRecordMenuId select x).FirstOrDefault();
if (imageUrl != null)
{
DataTable imagedt = new DataTable();
imagedt.TableName = "ImageData";
imagedt.Columns.Add("ImageUrl");
var newRowsImage = imagedt.NewRow();
newRowsImage["ImageUrl"] = Funs.RootPath + imageUrl.AttachUrl;
imagedt.Rows.Add(newRowsImage);
BLL.Common.FastReportService.AddFastreportTable(imagedt);
}
//明细表1
string strSql = @"SELECT * from JGZL_SteelPipeCheckRecordItem1 where RecordId=@recordId ";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@recordId", this.Grid1.SelectedRowID));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
DataTable dt = new DataTable();
dt.TableName = "Data";
dt.Columns.Add("Name");
dt.Columns.Add("Material");
dt.Columns.Add("Specifications");
dt.Columns.Add("Quantity");
dt.Columns.Add("MaterialCertificateCode");
dt.Columns.Add("HeatCode");
dt.Columns.Add("MaterialCertificateSelfNumber");
DataRow[] rows = tb.DefaultView.ToTable().Select();
foreach (var row in rows)
{
var newRows = dt.NewRow();
newRows["Name"] = row["Name"].ToString();
newRows["Material"] = row["Material"].ToString();
newRows["Specifications"] = row["Specifications"].ToString();
newRows["Quantity"] = row["Quantity"].ToString();
newRows["MaterialCertificateCode"] = row["MaterialCertificateCode"].ToString();
newRows["HeatCode"] = row["HeatCode"].ToString();
newRows["MaterialCertificateSelfNumber"] = row["MaterialCertificateSelfNumber"].ToString();
dt.Rows.Add(newRows);
}
BLL.Common.FastReportService.AddFastreportTable(dt);
//明细表2
string strSql2 = @"SELECT * from JGZL_SteelPipeCheckRecordItem2 where RecordId=@recordId ";
List<SqlParameter> listStr2 = new List<SqlParameter>();
listStr2.Add(new SqlParameter("@recordId", this.Grid1.SelectedRowID));
SqlParameter[] parameter2 = listStr2.ToArray();
DataTable tb2 = SQLHelper.GetDataTableRunText(strSql2, parameter2);
DataTable dt2 = new DataTable();
dt2.TableName = "ItemData";
dt2.Columns.Add("Num");
dt2.Columns.Add("Part1");
dt2.Columns.Add("Part2");
dt2.Columns.Add("Part3");
dt2.Columns.Add("Part4");
dt2.Columns.Add("InnerDiameter");
dt2.Columns.Add("OuterDiameter");
dt2.Columns.Add("Lengths");
DataRow[] rows2 = tb2.DefaultView.ToTable().Select();
int i = 0;
foreach (var row in rows2)
{
var newRows = dt2.NewRow();
newRows["Num"] = (i + 1).ToString();
newRows["Part1"] = row["Part1"].ToString();
newRows["Part2"] = row["Part2"].ToString();
newRows["Part3"] = row["Part3"].ToString();
newRows["Part4"] = row["Part4"].ToString();
newRows["InnerDiameter"] = row["InnerDiameter"].ToString();
newRows["OuterDiameter"] = row["OuterDiameter"].ToString();
newRows["Lengths"] = row["Lengths"].ToString();
dt2.Rows.Add(newRows);
i++;
}
BLL.Common.FastReportService.AddFastreportTable(dt2);
} }
initTemplatePath = "File\\Fastreport\\JGZL\\钢管检查验收记录.frx"; initTemplatePath = "File\\Fastreport\\JGZL\\钢管检查验收记录.frx";
if (File.Exists(rootPath + initTemplatePath)) if (File.Exists(rootPath + initTemplatePath))

View File

@ -67,7 +67,7 @@
<add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/> <add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport"/> <add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport"/>
</httpHandlers> </httpHandlers>
<compilation debug="false" targetFramework="4.6.1"> <compilation debug="true" targetFramework="4.6.1">
<assemblies> <assemblies>
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies> </assemblies>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>