Compare commits

...

3 Commits

25 changed files with 6076 additions and 4033 deletions

View File

@ -0,0 +1,58 @@
ALTER PROCEDURE [dbo].[HJGL_rpt_PipelineAttach]
(
@iso_id NVARCHAR(50)
)
AS
/**********项目管理部管道单线图附页(续)************/
SELECT v.* FROM
(select ROW_NUMBER() OVER(ORDER BY report.Sort1,report.Sort2,report.Sort3,report.Sort4,report.Sort5) AS Number,report.* from
(SELECT JointInfo.JOT_ID,
JointInfo.ProjectId,
isoInfo.ISO_IsoNo,--
JointInfo.JOT_JointNo,--
JointInfo.Sort1,JointInfo.Sort2,JointInfo.Sort3,JointInfo.Sort4,JointInfo.Sort5,
JointInfo.JOT_CellWelder,
(CASE WHEN JointInfo.JOT_CellWelder!=JointInfo.JOT_FloorWelder THEN Welder1.WED_Code+'/'+Welder2.WED_Code ELSE Welder1.WED_Code END) AS WED_Code,--
JointInfo.JOT_JointDesc,--
(CASE WHEN Steel.STE_Name IS NOT NULL AND Steel1.STE_Name IS NOT NULL and Steel.STE_Name!=Steel1.STE_Name THEN Steel.STE_Name + '/' + Steel1.STE_Name
WHEN Steel.STE_Name IS NOT NULL THEN Steel.STE_Name ELSE ISNULL(Steel1.STE_Name,'') END) AS STE_Name, --
JointInfo.JOT_Location,--
(CASE WHEN IS_Proess= '1' THEN '' ELSE '' END) AS IS_Proess --
FROM HJGL_PW_JointInfo AS JointInfo
LEFT JOIN HJGL_PW_IsoInfo AS isoInfo On isoInfo.ISO_ID = JointInfo.ISO_ID
LEFT JOIN HJGL_BS_Welder AS Welder1 ON Welder1.WED_ID = JointInfo.JOT_CellWelder
LEFT JOIN HJGL_BS_Welder AS Welder2 ON Welder2.WED_ID = JointInfo.JOT_FloorWelder
LEFT JOIN HJGL_BS_Steel AS Steel ON Steel.STE_ID=JointInfo.STE_ID
LEFT JOIN HJGL_BS_Steel AS Steel1 ON Steel1.STE_ID=JointInfo.STE_ID2
LEFT JOIN HJGL_BO_WeldReportMain AS WeldReportMain ON WeldReportMain.DReportID = JointInfo.DReportID
where JointInfo.ISO_ID=@iso_id) report) v
order by v.Sort1,v.Sort2,v.Sort3,v.Sort4,v.Sort5
GO
CREATE TABLE [dbo].[HJGL_CH_HardTestReportPrintItem](
[HardTestReportId] [nvarchar](50) NULL,
[Number] [int] NULL,
[JOT_JointNoStr1] [varchar](50) NULL,
[NewJOT_JointNoStr1] [varchar](50) NULL,
[TestPart1] [varchar](20) NULL,
[HardNessValue1] [varchar](100) NULL,
[JOT_JointNoStr2] [varchar](50) NULL,
[NewJOT_JointNoStr2] [varchar](50) NULL,
[TestPart2] [varchar](20) NULL,
[HardNessValue2] [varchar](100) NULL,
[JOT_JointNoStr3] [varchar](50) NULL,
[NewJOT_JointNoStr3] [varchar](50) NULL,
[TestPart3] [varchar](20) NULL,
[HardNessValue3] [varchar](100) NULL
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'硬度报告打印明细项表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_CH_HardTestReportPrintItem'
GO

View File

@ -72,8 +72,8 @@
Title="底部面板" ShowBorder="false" ShowHeader="false" Layout="Fit">
<Items>
<f:Grid ID="Grid2" CssClass="blockpanel" ShowBorder="true" ShowHeader="true" EnableCollapse="false" runat="server"
DataKeyNames="HardTestReportId" AllowSorting="true" SortField="HardTestReportId"
SortDirection="ASC" EnableCheckBoxSelect="true">
DataKeyNames="HardTestReportId" DataIDField="HardTestReportId" AllowSorting="true" SortField="HardTestReportId"
SortDirection="ASC" EnableCheckBoxSelect="true" EnableMultiSelect="false">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server">
<Items>

View File

@ -10,6 +10,7 @@ using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace FineUIPro.Web.ContinuousPrint
{
@ -59,7 +60,7 @@ namespace FineUIPro.Web.ContinuousPrint
SqlParameter[] parameter = listStr.ToArray();
Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid2.DataBind();
Grid2.SelectAllRows();
//Grid2.SelectAllRows();
}
#endregion
@ -171,352 +172,464 @@ namespace FineUIPro.Web.ContinuousPrint
Alert.ShowInTop("最少选中一行!", MessageBoxIcon.Warning);
return;
}
string rootPath = Server.MapPath("~/") + Const.ExcelUrl;
//导出文件
string filePath = rootPath + DateTime.Now.ToString("yyyyMMddhhmmss") + "\\";
if (!Directory.Exists(filePath))
if (!string.IsNullOrEmpty(this.Grid2.SelectedRowID))
{
Directory.CreateDirectory(filePath);
}
string ReportFileName = filePath + "out1.xlsx";
if (Grid2.Rows.Count > 0)
{
int rowIndex = 0;
XSSFWorkbook hssfworkbook = new XSSFWorkbook();
XSSFSheet ws = (XSSFSheet)hssfworkbook.CreateSheet("硬度试验委托单");
#region
ws.SetColumnWidth(0, (9 * 256) + 55);//(8.67)8.64
ws.SetColumnWidth(1, (11 * 256) + 100);//(10.83)10.82
ws.SetColumnWidth(2, (12 * 256) + 100);//(11.83)11.82
ws.SetColumnWidth(3, (11 * 256) + 55);//(10.67)10.64
ws.SetColumnWidth(4, (14 * 256) + 100);//(13.83)13.82
ws.SetColumnWidth(5, (9 * 256) + 100);//(8.83)8.82
ws.SetColumnWidth(6, (9 * 256) + 126);//(8.92)8.91
ws.SetColumnWidth(7, (10 * 256) + 200);//(9.17)9.18
#endregion
for (int gi = 0; gi < Grid2.Rows.Count; gi++)
//打印赋值
Model.HJGL_CH_HardTestReport report = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportByID(this.Grid2.SelectedRowID);
if (report != null)
{
if (Grid2.SelectedRowIndexArray.Contains(gi))
report.IsPrintTrust = true;
report.PrintTrustDate = DateTime.Now;
report.TrustName = report.HotHardCode + "-" + string.Format("{0:yyyy-MM-dd}", DateTime.Now);
BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReport(report);
}
string initTemplatePath = "";
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
//传参
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
//keyValuePairs.Add("ProjectName", projectName);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@HardTestReportId", this.Grid2.SelectedRowID));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReport", parameter);
DataTable dt = new DataTable();
dt.TableName = "MainData";
dt.Columns.Add("ProjectName");
dt.Columns.Add("UnitWork");
dt.Columns.Add("InstallationName");
dt.Columns.Add("InstallationCode");
dt.Columns.Add("TrustUnitName");
dt.Columns.Add("HotHardCode");
dt.Columns.Add("checkUnitName");
dt.Columns.Add("ISO_IsoNo");
dt.Columns.Add("ItemName");
dt.Columns.Add("WME_Name");
dt.Columns.Add("HotProessState");
dt.Columns.Add("SurfaceState");
dt.Columns.Add("TestMethod");
dt.Columns.Add("TestStandard");
dt.Columns.Add("TestRate");
dt.Columns.Add("checkCount");
DataRow[] rows = tb.DefaultView.ToTable().Select();
foreach (var row in rows)
{
var newRows = dt.NewRow();
newRows["ProjectName"] = row["ProjectName"].ToString();
newRows["UnitWork"] = row["UnitWork"].ToString();
newRows["InstallationName"] = row["InstallationName"].ToString();
newRows["InstallationCode"] = row["InstallationCode"].ToString();
newRows["TrustUnitName"] = row["TrustUnitName"].ToString();
newRows["HotHardCode"] = row["HotHardCode"].ToString();
newRows["checkUnitName"] = row["checkUnitName"].ToString();
newRows["ISO_IsoNo"] = row["ISO_IsoNo"].ToString();
newRows["ItemName"] = row["ItemName"].ToString();
newRows["WME_Name"] = row["WME_Name"].ToString();
newRows["HotProessState"] = row["HotProessState"].ToString();
newRows["SurfaceState"] = row["SurfaceState"].ToString();
newRows["TestMethod"] = row["TestMethod"].ToString();
newRows["TestStandard"] = row["TestStandard"].ToString();
newRows["TestRate"] = row["TestRate"].ToString();
newRows["checkCount"] = row["checkCount"].ToString();
dt.Rows.Add(newRows);
}
BLL.Common.FastReportService.AddFastreportTable(dt);
List<SqlParameter> listStr2 = new List<SqlParameter>();
listStr2.Add(new SqlParameter("@HardTestReportId", this.Grid2.SelectedRowID));
SqlParameter[] parameter2 = listStr2.ToArray();
DataTable tb2 = BLL.SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReportItemDistinct2", parameter2);
DataTable dt2 = new DataTable();
dt2.TableName = "Data";
dt2.Columns.Add("Number");
dt2.Columns.Add("JOT_JointNo");
dt2.Columns.Add("WED_Code");
dt2.Columns.Add("STE_Code");
dt2.Columns.Add("JOT_JointDesc");
DataView dv = tb2.DefaultView;//获取表视图
dv.Sort = "JOT_JointNo ASC";//按照ID倒序排序
tb2 = dv.ToTable();//转为表
DataRow[] rows2 = tb2.DefaultView.ToTable().Select();
int i = 0;
foreach (var row in rows2)
{
var newRows = dt2.NewRow();
if (i + 1 < rows2.Count())
{
System.Web.UI.WebControls.HiddenField hidHardTestReportId = Grid2.Rows[gi].FindControl("hidHardTestReportId") as System.Web.UI.WebControls.HiddenField;
System.Web.UI.WebControls.HiddenField hidProjectName = Grid2.Rows[gi].FindControl("hidProjectName") as System.Web.UI.WebControls.HiddenField;
//打印赋值
Model.HJGL_CH_HardTestReport report = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportByID(hidHardTestReportId.Value);
if (report != null)
{
report.IsPrintTrust = true;
report.PrintTrustDate = DateTime.Now;
report.TrustName = report.HotHardCode + "-" + string.Format("{0:yyyy-MM-dd}", DateTime.Now);
BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReport(report);
}
//头部
var listTitleStr = new List<SqlParameter>();
listTitleStr.Add(new SqlParameter("@HardTestReportId", hidHardTestReportId.Value));
SqlParameter[] titleparameter = listTitleStr.ToArray();
var tbTitle = SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReport", titleparameter);
//列表
var listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@HardTestReportId", hidHardTestReportId.Value));
SqlParameter[] parameter = listStr.ToArray();
var tb = SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReportItemDistinct2", parameter);
if (tb.Rows.Count > 0 && tbTitle.Rows.Count > 0)
{
CellRangeAddress region;
var pageNum = tb.Rows.Count < 27 ? 1
: Math.Ceiling((float)(tb.Rows.Count - 27) / 38) + 1;
//公共样式
ICellStyle style = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Center, 10, true);
//文字靠左左侧无边框
ICellStyle styleFontLeft = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.None, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true);
//文字靠左右边无边框
ICellStyle styleRightNoneFontLeft = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.None, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true);
//头部样式
ICellStyle styleTou = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Center, 16, true, true);
//循环页
for (int i = 1; i <= pageNum; i++)
{
//每页数据开始和结束条数
var dStart = 0;
var dEnd = 0;
//数据开始行和结束行
var tStart = 0;
var tEnd = 0;
#region
//第一页和第二页需要创建头
if (i == 1)
{
//创建头部行和列
ws = ExcelCreateRowTitle(ws, hssfworkbook, rowIndex, rowIndex + 10, style, 0, 8);
//取数据开始和结束条数
dStart = 0;
dEnd = 27;
//数据开始行和结束行
tStart = rowIndex + 11;
tEnd = rowIndex + 38;
#region
//行1
region = new CellRangeAddress(rowIndex, rowIndex + 1, 0, 1);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex).GetCell(0).SetCellValue("浙江石油化工有限公司");
region = new CellRangeAddress(rowIndex, rowIndex + 1, 2, 5);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex).GetCell(2).SetCellValue("硬度试验委托单");
ws.GetRow(rowIndex).GetCell(2).CellStyle = styleTou;
region = new CellRangeAddress(rowIndex, rowIndex, 6, 7);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex).GetCell(6).SetCellValue("工程名称:");
ws.GetRow(rowIndex).GetCell(6).CellStyle = styleRightNoneFontLeft;
region = new CellRangeAddress(rowIndex, rowIndex, 8, 8);
ws.GetRow(rowIndex).GetCell(8).SetCellValue(tbTitle.Rows[0]["ProjectName"].ToString());
ws.GetRow(rowIndex).GetCell(6).CellStyle = styleFontLeft;
//行2
region = new CellRangeAddress(rowIndex+1, rowIndex+1, 6, 7);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex+1).GetCell(6).SetCellValue("单位工程名称:");
ws.GetRow(rowIndex+1).GetCell(6).CellStyle = styleRightNoneFontLeft;
region = new CellRangeAddress(rowIndex+1, rowIndex+1, 8, 8);
ws.GetRow(rowIndex+1).GetCell(8).SetCellValue(tbTitle.Rows[0]["UnitWork"].ToString());
ws.GetRow(rowIndex).GetCell(6).CellStyle = styleFontLeft;
//行3
region = new CellRangeAddress(rowIndex + 2, rowIndex + 2, 0, 1);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 2).GetCell(0).SetCellValue("装置名称");
region = new CellRangeAddress(rowIndex + 2, rowIndex + 2, 2, 4);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 2).GetCell(2).SetCellValue(tbTitle.Rows[0]["UnitWork"].ToString());
region = new CellRangeAddress(rowIndex + 2, rowIndex + 2, 5, 6);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 2).GetCell(5).SetCellValue("装置主项号");
region = new CellRangeAddress(rowIndex + 2, rowIndex + 2, 7, 8);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 2).GetCell(7).SetCellValue("");
//行4
region = new CellRangeAddress(rowIndex + 3, rowIndex + 3, 0, 1);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 3).GetCell(0).SetCellValue("委托单位");
region = new CellRangeAddress(rowIndex + 3, rowIndex + 3, 2, 4);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 3).GetCell(2).SetCellValue("");
region = new CellRangeAddress(rowIndex + 3, rowIndex + 3, 5, 6);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 3).GetCell(5).SetCellValue("委托单编号");
region = new CellRangeAddress(rowIndex + 3, rowIndex + 3, 7, 8);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 3).GetCell(7).SetCellValue("");
//行5
region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 0, 1);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 4).GetCell(0).SetCellValue("承包商");
region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 2, 4);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 4).GetCell(2).SetCellValue("鼎盛石化工程有限公司");
region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 5, 6);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 4).GetCell(5).SetCellValue("检测单位");
region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 7, 8);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 4).GetCell(7).SetCellValue("");
//行6
region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 0, 1);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 5).GetCell(0).SetCellValue("管线(设备)编号");
region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 2, 4);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 5).GetCell(2).SetCellValue("");
region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 5, 6);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 5).GetCell(5).SetCellValue("检件名称");
region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 7, 8);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 5).GetCell(7).SetCellValue("");
//行7
region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 0, 1);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 6).GetCell(0).SetCellValue("焊接方法");
region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 2, 4);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 6).GetCell(2).SetCellValue("");
region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 5, 6);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 6).GetCell(5).SetCellValue("热处理状态");
region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 7, 8);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 6).GetCell(7).SetCellValue("");
//行8
region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 0, 1);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 7).GetCell(0).SetCellValue("表面状态");
region = new CellRangeAddress(rowIndex + 7, rowIndex +7, 2, 4);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 7).GetCell(2).SetCellValue("");
region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 5, 6);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 7).GetCell(5).SetCellValue("检验方法");
region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 7, 8);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 7).GetCell(7).SetCellValue("");
//行9
region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 0, 1);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 8).GetCell(0).SetCellValue("检验标准");
region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 2, 4);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 8).GetCell(2).SetCellValue("");
region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 5, 6);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 8).GetCell(5).SetCellValue("被检验产品标准");
region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 7, 8);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 8).GetCell(7).SetCellValue("/");
//行10
region = new CellRangeAddress(rowIndex + 9, rowIndex + 9, 0, 1);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 9).GetCell(0).SetCellValue("检测比例");
region = new CellRangeAddress(rowIndex + 9, rowIndex + 9, 2, 4);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 9).GetCell(2).SetCellValue("");
region = new CellRangeAddress(rowIndex + 9, rowIndex + 9, 5, 6);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 9).GetCell(5).SetCellValue("检验数量");
region = new CellRangeAddress(rowIndex + 9, rowIndex + 9, 7, 8);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 9).GetCell(7).SetCellValue("");
//行11
region = new CellRangeAddress(rowIndex + 10, rowIndex + 10, 0, 0);
//ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 10).GetCell(0).SetCellValue("序号");
region = new CellRangeAddress(rowIndex + 10, rowIndex + 10, 1, 3);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 10).GetCell(1).SetCellValue("焊缝编号");
region = new CellRangeAddress(rowIndex + 10, rowIndex + 10, 4, 5);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 10).GetCell(4).SetCellValue("焊工号");
region = new CellRangeAddress(rowIndex + 10, rowIndex + 10, 6, 7);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 10).GetCell(6).SetCellValue("材质");
region = new CellRangeAddress(rowIndex + 10, rowIndex + 10, 8, 8);
//ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 10).GetCell(8).SetCellValue("规格mm");
#endregion
}
else
{
var pNum = (i - 1) * 38;
//取数据开始和结束条数
dStart = 27 + ((i - 2) * 38);
dEnd = 27 + pNum;
//数据开始行和结束行
tStart = rowIndex;
tEnd = rowIndex + 38;
}
#endregion
#region
//创建数据行和列
ws = ExcelCreateRow(ws, hssfworkbook, tStart, tEnd, style, 0, 8);
//获取当前页数据
var pageTb = GetPageToTable(tb, dStart, dEnd);
//遍历数据
for (int j = 0; j < pageTb.Rows.Count; j++)
{
var dataRow = tStart + j;
ws.GetRow(dataRow).GetCell(0).SetCellValue(pageTb.Rows[j]["Number"].ToString());
ws.GetRow(dataRow).GetCell(1).SetCellValue(pageTb.Rows[j]["JOT_JointNo"].ToString());
ws.GetRow(dataRow).GetCell(4).SetCellValue(pageTb.Rows[j]["WED_Code"].ToString());
ws.GetRow(dataRow).GetCell(6).SetCellValue(pageTb.Rows[j]["STE_Code"].ToString());
ws.GetRow(dataRow).GetCell(8).SetCellValue(pageTb.Rows[j]["JOT_JointDesc"].ToString());
}
#endregion
rowIndex = tEnd + 2;
}
}
newRows["Number"] = i + 1;
}
newRows["JOT_JointNo"] = row["JOT_JointNo"].ToString();
newRows["WED_Code"] = row["WED_Code"].ToString();
newRows["STE_Code"] = row["STE_Code"].ToString();
newRows["JOT_JointDesc"] = row["JOT_JointDesc"].ToString();
dt2.Rows.Add(newRows);
i++;
}
BLL.Common.FastReportService.AddFastreportTable(dt2);
ws.SetMargin(MarginType.LeftMargin, 0.5);
ws.SetMargin(MarginType.RightMargin, 0.5);
//ws.SetMargin(MarginType.BottomMargin, 0.8);
//ws.SetMargin(MarginType.TopMargin, 0.8);
//ws.SetMargin(MarginType.FooterMargin, 0.5);
//ws.SetMargin(MarginType.HeaderMargin, 0.5);
ws.PrintSetup.Landscape = false;
ws.PrintSetup.PaperSize = 9;
ws.ForceFormulaRecalculation = true;
using (FileStream filess = File.OpenWrite(ReportFileName))
initTemplatePath = "File\\Fastreport\\硬度试验委托单.frx";
if (File.Exists(rootPath + initTemplatePath))
{
hssfworkbook.Write(filess);
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
}
FileInfo filet = new FileInfo(ReportFileName);
Response.Clear();
Response.Charset = "GB2312";
Response.ContentEncoding = System.Text.Encoding.UTF8;
// 添加头信息,为"文件下载/另存为"对话框指定默认文件名
Response.AddHeader("Content-Disposition", "attachment; filename=" + Server.UrlEncode("硬度试验委托单.xlsx"));
// 添加头信息,指定文件大小,让浏览器能够显示下载进度
Response.AddHeader("Content-Length", filet.Length.ToString());
// 指定返回的是一个不能被客户端读取的流,必须被下载
Response.ContentType = "application/ms-excel";
// 把文件流发送到客户端
Response.WriteFile(filet.FullName);
// 停止页面的执行
Response.End();
}
#region excel
//string rootPath = Server.MapPath("~/") + Const.ExcelUrl;
////导出文件
//string filePath = rootPath + DateTime.Now.ToString("yyyyMMddhhmmss") + "\\";
//if (!Directory.Exists(filePath))
//{
// Directory.CreateDirectory(filePath);
//}
//string ReportFileName = filePath + "out1.xlsx";
//if (Grid2.Rows.Count > 0)
//{
// int rowIndex = 0;
// XSSFWorkbook hssfworkbook = new XSSFWorkbook();
// XSSFSheet ws = (XSSFSheet)hssfworkbook.CreateSheet("硬度试验委托单");
// #region 列宽
// ws.SetColumnWidth(0, (9 * 256) + 55);//(8.67)8.64
// ws.SetColumnWidth(1, (11 * 256) + 100);//(10.83)10.82
// ws.SetColumnWidth(2, (12 * 256) + 100);//(11.83)11.82
// ws.SetColumnWidth(3, (11 * 256) + 55);//(10.67)10.64
// ws.SetColumnWidth(4, (14 * 256) + 100);//(13.83)13.82
// ws.SetColumnWidth(5, (9 * 256) + 100);//(8.83)8.82
// ws.SetColumnWidth(6, (9 * 256) + 126);//(8.92)8.91
// ws.SetColumnWidth(7, (10 * 256) + 200);//(9.17)9.18
// #endregion
// for (int gi = 0; gi < Grid2.Rows.Count; gi++)
// {
// if (Grid2.SelectedRowIndexArray.Contains(gi))
// {
// System.Web.UI.WebControls.HiddenField hidHardTestReportId = Grid2.Rows[gi].FindControl("hidHardTestReportId") as System.Web.UI.WebControls.HiddenField;
// System.Web.UI.WebControls.HiddenField hidProjectName = Grid2.Rows[gi].FindControl("hidProjectName") as System.Web.UI.WebControls.HiddenField;
// //打印赋值
// Model.HJGL_CH_HardTestReport report = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportByID(hidHardTestReportId.Value);
// if (report != null)
// {
// report.IsPrintTrust = true;
// report.PrintTrustDate = DateTime.Now;
// report.TrustName = report.HotHardCode + "-" + string.Format("{0:yyyy-MM-dd}", DateTime.Now);
// BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReport(report);
// }
// //头部
// var listTitleStr = new List<SqlParameter>();
// listTitleStr.Add(new SqlParameter("@HardTestReportId", hidHardTestReportId.Value));
// SqlParameter[] titleparameter = listTitleStr.ToArray();
// var tbTitle = SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReport", titleparameter);
// //列表
// var listStr = new List<SqlParameter>();
// listStr.Add(new SqlParameter("@HardTestReportId", hidHardTestReportId.Value));
// SqlParameter[] parameter = listStr.ToArray();
// var tb = SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReportItemDistinct2", parameter);
// if (tb.Rows.Count > 0 && tbTitle.Rows.Count > 0)
// {
// CellRangeAddress region;
// var pageNum = tb.Rows.Count < 27 ? 1
// : Math.Ceiling((float)(tb.Rows.Count - 27) / 38) + 1;
// //公共样式
// ICellStyle style = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Center, 10, true);
// //文字靠左左侧无边框
// ICellStyle styleFontLeft = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.None, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true);
// //文字靠左右边无边框
// ICellStyle styleRightNoneFontLeft = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.None, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true);
// //头部样式
// ICellStyle styleTou = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Center, 16, true, true);
// //循环页
// for (int i = 1; i <= pageNum; i++)
// {
// //每页数据开始和结束条数
// var dStart = 0;
// var dEnd = 0;
// //数据开始行和结束行
// var tStart = 0;
// var tEnd = 0;
// #region 头部和每页数据参数
// //第一页和第二页需要创建头
// if (i == 1)
// {
// //创建头部行和列
// ws = ExcelCreateRowTitle(ws, hssfworkbook, rowIndex, rowIndex + 10, style, 0, 8);
// //取数据开始和结束条数
// dStart = 0;
// dEnd = 27;
// //数据开始行和结束行
// tStart = rowIndex + 11;
// tEnd = rowIndex + 38;
// #region 头部
// //行1
// region = new CellRangeAddress(rowIndex, rowIndex + 1, 0, 1);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex).GetCell(0).SetCellValue("浙江石油化工有限公司");
// region = new CellRangeAddress(rowIndex, rowIndex + 1, 2, 5);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex).GetCell(2).SetCellValue("硬度试验委托单");
// ws.GetRow(rowIndex).GetCell(2).CellStyle = styleTou;
// region = new CellRangeAddress(rowIndex, rowIndex, 6, 7);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex).GetCell(6).SetCellValue("工程名称:");
// ws.GetRow(rowIndex).GetCell(6).CellStyle = styleRightNoneFontLeft;
// region = new CellRangeAddress(rowIndex, rowIndex, 8, 8);
// ws.GetRow(rowIndex).GetCell(8).SetCellValue(tbTitle.Rows[0]["ProjectName"].ToString());
// ws.GetRow(rowIndex).GetCell(6).CellStyle = styleFontLeft;
// //行2
// region = new CellRangeAddress(rowIndex+1, rowIndex+1, 6, 7);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex+1).GetCell(6).SetCellValue("单位工程名称:");
// ws.GetRow(rowIndex+1).GetCell(6).CellStyle = styleRightNoneFontLeft;
// region = new CellRangeAddress(rowIndex+1, rowIndex+1, 8, 8);
// ws.GetRow(rowIndex+1).GetCell(8).SetCellValue(tbTitle.Rows[0]["UnitWork"].ToString());
// ws.GetRow(rowIndex).GetCell(6).CellStyle = styleFontLeft;
// //行3
// region = new CellRangeAddress(rowIndex + 2, rowIndex + 2, 0, 1);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 2).GetCell(0).SetCellValue("装置名称");
// region = new CellRangeAddress(rowIndex + 2, rowIndex + 2, 2, 4);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 2).GetCell(2).SetCellValue(tbTitle.Rows[0]["UnitWork"].ToString());
// region = new CellRangeAddress(rowIndex + 2, rowIndex + 2, 5, 6);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 2).GetCell(5).SetCellValue("装置主项号");
// region = new CellRangeAddress(rowIndex + 2, rowIndex + 2, 7, 8);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 2).GetCell(7).SetCellValue("");
// //行4
// region = new CellRangeAddress(rowIndex + 3, rowIndex + 3, 0, 1);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 3).GetCell(0).SetCellValue("委托单位");
// region = new CellRangeAddress(rowIndex + 3, rowIndex + 3, 2, 4);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 3).GetCell(2).SetCellValue("");
// region = new CellRangeAddress(rowIndex + 3, rowIndex + 3, 5, 6);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 3).GetCell(5).SetCellValue("委托单编号");
// region = new CellRangeAddress(rowIndex + 3, rowIndex + 3, 7, 8);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 3).GetCell(7).SetCellValue("");
// //行5
// region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 0, 1);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 4).GetCell(0).SetCellValue("承包商");
// region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 2, 4);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 4).GetCell(2).SetCellValue("鼎盛石化工程有限公司");
// region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 5, 6);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 4).GetCell(5).SetCellValue("检测单位");
// region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 7, 8);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 4).GetCell(7).SetCellValue("");
// //行6
// region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 0, 1);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 5).GetCell(0).SetCellValue("管线(设备)编号");
// region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 2, 4);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 5).GetCell(2).SetCellValue("");
// region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 5, 6);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 5).GetCell(5).SetCellValue("检件名称");
// region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 7, 8);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 5).GetCell(7).SetCellValue("");
// //行7
// region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 0, 1);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 6).GetCell(0).SetCellValue("焊接方法");
// region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 2, 4);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 6).GetCell(2).SetCellValue("");
// region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 5, 6);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 6).GetCell(5).SetCellValue("热处理状态");
// region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 7, 8);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 6).GetCell(7).SetCellValue("");
// //行8
// region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 0, 1);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 7).GetCell(0).SetCellValue("表面状态");
// region = new CellRangeAddress(rowIndex + 7, rowIndex +7, 2, 4);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 7).GetCell(2).SetCellValue("");
// region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 5, 6);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 7).GetCell(5).SetCellValue("检验方法");
// region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 7, 8);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 7).GetCell(7).SetCellValue("");
// //行9
// region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 0, 1);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 8).GetCell(0).SetCellValue("检验标准");
// region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 2, 4);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 8).GetCell(2).SetCellValue("");
// region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 5, 6);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 8).GetCell(5).SetCellValue("被检验产品标准");
// region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 7, 8);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 8).GetCell(7).SetCellValue("/");
// //行10
// region = new CellRangeAddress(rowIndex + 9, rowIndex + 9, 0, 1);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 9).GetCell(0).SetCellValue("检测比例");
// region = new CellRangeAddress(rowIndex + 9, rowIndex + 9, 2, 4);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 9).GetCell(2).SetCellValue("");
// region = new CellRangeAddress(rowIndex + 9, rowIndex + 9, 5, 6);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 9).GetCell(5).SetCellValue("检验数量");
// region = new CellRangeAddress(rowIndex + 9, rowIndex + 9, 7, 8);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 9).GetCell(7).SetCellValue("");
// //行11
// region = new CellRangeAddress(rowIndex + 10, rowIndex + 10, 0, 0);
// //ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 10).GetCell(0).SetCellValue("序号");
// region = new CellRangeAddress(rowIndex + 10, rowIndex + 10, 1, 3);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 10).GetCell(1).SetCellValue("焊缝编号");
// region = new CellRangeAddress(rowIndex + 10, rowIndex + 10, 4, 5);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 10).GetCell(4).SetCellValue("焊工号");
// region = new CellRangeAddress(rowIndex + 10, rowIndex + 10, 6, 7);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 10).GetCell(6).SetCellValue("材质");
// region = new CellRangeAddress(rowIndex + 10, rowIndex + 10, 8, 8);
// //ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 10).GetCell(8).SetCellValue("规格mm");
// #endregion
// }
// else
// {
// var pNum = (i - 1) * 38;
// //取数据开始和结束条数
// dStart = 27 + ((i - 2) * 38);
// dEnd = 27 + pNum;
// //数据开始行和结束行
// tStart = rowIndex;
// tEnd = rowIndex + 38;
// }
// #endregion
// #region 数据
// //创建数据行和列
// ws = ExcelCreateRow(ws, hssfworkbook, tStart, tEnd, style, 0, 8);
// //获取当前页数据
// var pageTb = GetPageToTable(tb, dStart, dEnd);
// //遍历数据
// for (int j = 0; j < pageTb.Rows.Count; j++)
// {
// var dataRow = tStart + j;
// ws.GetRow(dataRow).GetCell(0).SetCellValue(pageTb.Rows[j]["Number"].ToString());
// ws.GetRow(dataRow).GetCell(1).SetCellValue(pageTb.Rows[j]["JOT_JointNo"].ToString());
// ws.GetRow(dataRow).GetCell(4).SetCellValue(pageTb.Rows[j]["WED_Code"].ToString());
// ws.GetRow(dataRow).GetCell(6).SetCellValue(pageTb.Rows[j]["STE_Code"].ToString());
// ws.GetRow(dataRow).GetCell(8).SetCellValue(pageTb.Rows[j]["JOT_JointDesc"].ToString());
// }
// #endregion
// rowIndex = tEnd + 2;
// }
// }
// }
// }
// ws.SetMargin(MarginType.LeftMargin, 0.5);
// ws.SetMargin(MarginType.RightMargin, 0.5);
// //ws.SetMargin(MarginType.BottomMargin, 0.8);
// //ws.SetMargin(MarginType.TopMargin, 0.8);
// //ws.SetMargin(MarginType.FooterMargin, 0.5);
// //ws.SetMargin(MarginType.HeaderMargin, 0.5);
// ws.PrintSetup.Landscape = false;
// ws.PrintSetup.PaperSize = 9;
// ws.ForceFormulaRecalculation = true;
// using (FileStream filess = File.OpenWrite(ReportFileName))
// {
// hssfworkbook.Write(filess);
// }
// FileInfo filet = new FileInfo(ReportFileName);
// Response.Clear();
// Response.Charset = "GB2312";
// Response.ContentEncoding = System.Text.Encoding.UTF8;
// // 添加头信息,为"文件下载/另存为"对话框指定默认文件名
// Response.AddHeader("Content-Disposition", "attachment; filename=" + Server.UrlEncode("硬度试验委托单.xlsx"));
// // 添加头信息,指定文件大小,让浏览器能够显示下载进度
// Response.AddHeader("Content-Length", filet.Length.ToString());
// // 指定返回的是一个不能被客户端读取的流,必须被下载
// Response.ContentType = "application/ms-excel";
// // 把文件流发送到客户端
// Response.WriteFile(filet.FullName);
// // 停止页面的执行
// Response.End();
//}
#endregion
}
#endregion
@ -526,100 +639,100 @@ namespace FineUIPro.Web.ContinuousPrint
/// 数据行和列
/// </summary>
/// <returns></returns>
private XSSFSheet ExcelCreateRow(XSSFSheet ws, XSSFWorkbook hssfworkbook, int sRows, int eRows, ICellStyle style, int cStart, int cEnd)
{
CellRangeAddress region;
for (int i = sRows; i <= eRows; i++)
{
ws.CreateRow(i);
ws.GetRow(i).HeightInPoints = 18.8f;
for (int j = cStart; j <= cEnd; j++)
{
ws.GetRow(i).CreateCell(j);
ws.GetRow(i).GetCell(j).CellStyle = style;
}
//合并数据
region = new CellRangeAddress(i, i, 1, 3);
region = new CellRangeAddress(i, i, 4, 5);
region = new CellRangeAddress(i, i, 6, 7);
ws.AddMergedRegion(region);
}
return ws;
}
//private XSSFSheet ExcelCreateRow(XSSFSheet ws, XSSFWorkbook hssfworkbook, int sRows, int eRows, ICellStyle style, int cStart, int cEnd)
//{
// CellRangeAddress region;
// for (int i = sRows; i <= eRows; i++)
// {
// ws.CreateRow(i);
// ws.GetRow(i).HeightInPoints = 18.8f;
// for (int j = cStart; j <= cEnd; j++)
// {
// ws.GetRow(i).CreateCell(j);
// ws.GetRow(i).GetCell(j).CellStyle = style;
// }
// //合并数据
// region = new CellRangeAddress(i, i, 1, 3);
// region = new CellRangeAddress(i, i, 4, 5);
// region = new CellRangeAddress(i, i, 6, 7);
// ws.AddMergedRegion(region);
// }
// return ws;
//}
/// <summary>
/// 创建头部
/// </summary>
/// <returns></returns>
private XSSFSheet ExcelCreateRowTitle(XSSFSheet ws, XSSFWorkbook hssfworkbook, int sRows, int eRows, ICellStyle style, int cStart, int cEnd)
{
//var noneStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.None, BorderStyle.None, BorderStyle.None, BorderStyle.None, VerticalAlignment.Center, HorizontalAlignment.Center, 14, true, true);
//for (int i = sRows; i <= eRows; i++)
//{
// ws.CreateRow(i);
// ws.GetRow(i).HeightInPoints =
// i == sRows ? 27f :
// i == (sRows + 1) ? 28.5f :
// i == (sRows + 2) ? 26.3f :
// i == (sRows + 3) ? 28.5f :
// i == (sRows + 4) ? 28.5f :
// i == (sRows + 5) ? 26.3f :
// i == (sRows + 6) ? 18.8f :
// 16.5f;
// for (int j = cStart; j <= cEnd; j++)
// {
// ws.GetRow(i).CreateCell(j);
// ws.GetRow(i).GetCell(j).CellStyle = i == sRows ? noneStyle : style;
// }
//}
//return ws;
for (int i = sRows; i <= eRows; i++)
{
ws.CreateRow(i);
ws.GetRow(i).HeightInPoints = i == sRows ? 30
: i == (sRows + 1) ? 27 :
i == (sRows + 2) ? 28 : 24;
//private XSSFSheet ExcelCreateRowTitle(XSSFSheet ws, XSSFWorkbook hssfworkbook, int sRows, int eRows, ICellStyle style, int cStart, int cEnd)
//{
// //var noneStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.None, BorderStyle.None, BorderStyle.None, BorderStyle.None, VerticalAlignment.Center, HorizontalAlignment.Center, 14, true, true);
// //for (int i = sRows; i <= eRows; i++)
// //{
// // ws.CreateRow(i);
// // ws.GetRow(i).HeightInPoints =
// // i == sRows ? 27f :
// // i == (sRows + 1) ? 28.5f :
// // i == (sRows + 2) ? 26.3f :
// // i == (sRows + 3) ? 28.5f :
// // i == (sRows + 4) ? 28.5f :
// // i == (sRows + 5) ? 26.3f :
// // i == (sRows + 6) ? 18.8f :
// // 16.5f;
// // for (int j = cStart; j <= cEnd; j++)
// // {
// // ws.GetRow(i).CreateCell(j);
// // ws.GetRow(i).GetCell(j).CellStyle = i == sRows ? noneStyle : style;
// // }
// //}
// //return ws;
// for (int i = sRows; i <= eRows; i++)
// {
// ws.CreateRow(i);
// ws.GetRow(i).HeightInPoints = i == sRows ? 30
// : i == (sRows + 1) ? 27 :
// i == (sRows + 2) ? 28 : 24;
for (int j = cStart; j <= cEnd; j++)
{
ws.GetRow(i).CreateCell(j);
ws.GetRow(i).GetCell(j).CellStyle = style;
}
}
return ws;
}
// for (int j = cStart; j <= cEnd; j++)
// {
// ws.GetRow(i).CreateCell(j);
// ws.GetRow(i).GetCell(j).CellStyle = style;
// }
// }
// return ws;
//}
/// <summary>
/// 查询指定条数分页
/// </summary>
/// <returns></returns>
public static DataTable GetPageToTable(DataTable dt, int StartNum, int EndNum)
{
//0页代表每页数据直接返回
if (EndNum == 0) return dt;
//数据源为空返回空DataTable
if (dt == null) return new DataTable();
//public static DataTable GetPageToTable(DataTable dt, int StartNum, int EndNum)
//{
// //0页代表每页数据直接返回
// if (EndNum == 0) return dt;
// //数据源为空返回空DataTable
// if (dt == null) return new DataTable();
DataTable newdt = dt.Copy();
newdt.Clear();//copy dt的框架
// DataTable newdt = dt.Copy();
// newdt.Clear();//copy dt的框架
if (StartNum >= dt.Rows.Count)
return newdt;//源数据记录数小于等于要显示的记录直接返回dt
// if (StartNum >= dt.Rows.Count)
// return newdt;//源数据记录数小于等于要显示的记录直接返回dt
if (EndNum > dt.Rows.Count)
EndNum = dt.Rows.Count;
for (int i = StartNum; i <= EndNum - 1; i++)
{
DataRow newdr = newdt.NewRow();
DataRow dr = dt.Rows[i];
foreach (DataColumn column in dt.Columns)
{
newdr[column.ColumnName] = dr[column.ColumnName];
}
newdt.Rows.Add(newdr);
}
return newdt;
}
// if (EndNum > dt.Rows.Count)
// EndNum = dt.Rows.Count;
// for (int i = StartNum; i <= EndNum - 1; i++)
// {
// DataRow newdr = newdt.NewRow();
// DataRow dr = dt.Rows[i];
// foreach (DataColumn column in dt.Columns)
// {
// newdr[column.ColumnName] = dr[column.ColumnName];
// }
// newdt.Rows.Add(newdr);
// }
// return newdt;
//}
#endregion
}

View File

@ -76,7 +76,7 @@
<Items>
<f:Grid ID="Grid2" CssClass="blockpanel" ShowBorder="true" ShowHeader="true" EnableCollapse="false" runat="server"
DataKeyNames="ISO_ID" AllowSorting="true" SortField="ISO_ID"
SortDirection="ASC" EnableCheckBoxSelect="true">
SortDirection="ASC" EnableCheckBoxSelect="true" EnableMultiSelect="false" >
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server">
<Items>

View File

@ -60,7 +60,7 @@ namespace FineUIPro.Web.ContinuousPrint
SqlParameter[] parameter = listStr.ToArray();
Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid2.DataBind();
Grid2.SelectAllRows();
//Grid2.SelectAllRows();
}
#endregion
@ -155,431 +155,539 @@ namespace FineUIPro.Web.ContinuousPrint
Alert.ShowInTop("最少选中一行!", MessageBoxIcon.Warning);
return;
}
string rootPath = Server.MapPath("~/") + Const.ExcelUrl;
//导出文件
string filePath = rootPath + DateTime.Now.ToString("yyyyMMddhhmmss") + "\\";
if (!Directory.Exists(filePath))
for (int gi = 0; gi < Grid2.Rows.Count; gi++)
{
Directory.CreateDirectory(filePath);
}
string ReportFileName = filePath + "out1.xlsx";
if (Grid2.Rows.Count > 0)
{
int rowIndex = 0;
XSSFWorkbook hssfworkbook = new XSSFWorkbook();
XSSFSheet ws = (XSSFSheet)hssfworkbook.CreateSheet("项目管理管线单线图附页");
#region
ws.SetColumnWidth(0, (11 * 256) + 200);//(10.17)10.18
ws.SetColumnWidth(1, (4 * 256) + 15);//(3.5)3.55
ws.SetColumnWidth(2, (12 * 256) + 55);//(11.67)11.64
ws.SetColumnWidth(3, (3 * 256) + 55);//(2.67)2.64
ws.SetColumnWidth(4, (2 * 256) + 120);//(1.92)1.91
ws.SetColumnWidth(5, (5 * 256) + 100);//(4.83)4.82
ws.SetColumnWidth(6, (3 * 256) + 15);//(2.5)2.55
ws.SetColumnWidth(7, (3 * 256) + 100);//(2.83)2.82
ws.SetColumnWidth(8, 256 + 15);//(0.5)0.5
ws.SetColumnWidth(9, (9 * 256) + 15);//(8.5)8.55
ws.SetColumnWidth(10, (3 * 256) + 200);//(3.17)3.18
ws.SetColumnWidth(11, (10 * 256) - 15);//(9.33)9.36
ws.SetColumnWidth(12, (3 * 256) + 100);//(2.83)2.82
ws.SetColumnWidth(13, (13 * 256) + 15);//(12.5)12.55
#endregion
for (int gi = 0; gi < Grid2.Rows.Count; gi++)
if (Grid2.SelectedRowIndexArray.Contains(gi))
{
if (Grid2.SelectedRowIndexArray.Contains(gi))
System.Web.UI.WebControls.HiddenField hidHardTestReportId = Grid2.Rows[gi].FindControl("hidHardTestReportId") as System.Web.UI.WebControls.HiddenField;
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@HardTestReportId", hidHardTestReportId.Value));
SqlParameter[] parameter = listStr.ToArray();
DataTable tbMain = BLL.SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReport", parameter);
List<SqlParameter> listStr2 = new List<SqlParameter>();
listStr2.Add(new SqlParameter("@HardTestReportId", hidHardTestReportId.Value));
listStr2.Add(new SqlParameter("@Flag", "0"));
SqlParameter[] parameter2 = listStr2.ToArray();
DataTable tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReportItem", parameter2);
Model.HJGL_CH_HardTestReport report = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportByID(hidHardTestReportId.Value);
if (report != null)
{
System.Web.UI.WebControls.HiddenField hidHardTestReportId = Grid2.Rows[gi].FindControl("hidHardTestReportId") as System.Web.UI.WebControls.HiddenField;
//打印赋值
Model.HJGL_CH_HardTestReport report = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportByID(hidHardTestReportId.Value);
if (report != null)
report.IsPrintReport = true;
report.PrintTrustDate = DateTime.Now;
report.TrustName = report.HotHardCode + "-" + string.Format("{0:yyyy-MM-dd}", DateTime.Now);
BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReport(report);
}
string initTemplatePath = "";
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
if (tbMain.Rows.Count > 0)
{
DataTable dtMain = new DataTable();
dtMain.TableName = "MainData";
dtMain.Columns.Add("ProjectName");
dtMain.Columns.Add("ProjectCode");
dtMain.Columns.Add("TrustUnitName");
dtMain.Columns.Add("ContractUnitName");
dtMain.Columns.Add("HardTestReportCode");
dtMain.Columns.Add("ISO_IsoNo");
dtMain.Columns.Add("TestStandard");
dtMain.Columns.Add("MaterialStandard");
dtMain.Columns.Add("STE_Code");
dtMain.Columns.Add("TestRate");
dtMain.Columns.Add("TestMethod");
dtMain.Columns.Add("HotProessState");
dtMain.Columns.Add("EquipmentCode");
DataRow[] rows = tbMain.DefaultView.ToTable().Select();
foreach (var row in rows)
{
report.IsPrintReport = true;
report.PrintTrustDate = DateTime.Now;
report.TrustName = report.HotHardCode + "-" + string.Format("{0:yyyy-MM-dd}", DateTime.Now);
BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReport(report);
var newRow = dtMain.NewRow();
newRow["ProjectName"] = row["ProjectName"].ToString();
newRow["ProjectCode"] = row["ProjectCode"].ToString();
newRow["TrustUnitName"] = row["TrustUnitName"].ToString();
newRow["ContractUnitName"] = row["ContractUnitName"].ToString();
newRow["HardTestReportCode"] = row["HardTestReportCode"].ToString();
newRow["ISO_IsoNo"] = row["ISO_IsoNo"].ToString();
newRow["TestStandard"] = row["TestStandard"].ToString();
newRow["MaterialStandard"] = row["MaterialStandard"].ToString();
newRow["STE_Code"] = row["STE_Code"].ToString();
newRow["TestRate"] = row["TestRate"].ToString();
newRow["TestMethod"] = row["TestMethod"].ToString();
newRow["HotProessState"] = row["HotProessState"].ToString();
newRow["EquipmentCode"] = row["EquipmentCode"].ToString();
dtMain.Rows.Add(newRow);
}
//头部
var listTitleStr = new List<SqlParameter>();
listTitleStr.Add(new SqlParameter("@HardTestReportId", hidHardTestReportId.Value));
SqlParameter[] titleparameter = listTitleStr.ToArray();
var tbTitle = SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReport", titleparameter);
//列表
var listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@HardTestReportId", hidHardTestReportId.Value));
listStr.Add(new SqlParameter("@Flag", "0"));
SqlParameter[] parameter = listStr.ToArray();
var tb = SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReportItem", parameter);
if (tb.Rows.Count > 0 && tbTitle.Rows.Count > 0)
BLL.Common.FastReportService.AddFastreportTable(dtMain);
}
if (tb.Rows.Count > 0)
{
DataTable dt = new DataTable();
dt.TableName = "Data";
dt.Columns.Add("NewJOT_JointNoStr1");
dt.Columns.Add("HardNessValue1");
dt.Columns.Add("NewJOT_JointNoStr2");
dt.Columns.Add("HardNessValue2");
dt.Columns.Add("NewJOT_JointNoStr3");
dt.Columns.Add("HardNessValue3");
DataRow[] rows = tb.DefaultView.ToTable().Select();
foreach (var row in rows)
{
CellRangeAddress region;
var pageNum =
tb.Rows.Count < 18 ? 1
: Math.Ceiling((float)(tb.Rows.Count - 18) / 21) + 1;
//公共样式
ICellStyle style = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Center, 10, true);
//页码样式
ICellStyle pageStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Center, 7, true);
//文字靠左
ICellStyle leftStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true);
//头部样式
ICellStyle titleStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Center, 16, true, true);
//循环页
for (int i = 1; i <= pageNum; i++)
{
#region
//创建头部行和列
ws = ExcelCreateRowTitle(ws, hssfworkbook, rowIndex, rowIndex + 8, style, 0, 13);
//行1
region = new CellRangeAddress(rowIndex, rowIndex + 3, 0, 1);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex).GetCell(0).SetCellValue("SH/T 3503-J130");
region = new CellRangeAddress(rowIndex, rowIndex + 2, 2, 9);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex).GetCell(2).SetCellValue("硬度检测报告");
ws.GetRow(rowIndex).GetCell(2).CellStyle = titleStyle;
region = new CellRangeAddress(rowIndex, rowIndex, 10, 11);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex).GetCell(10).SetCellValue("工程名称:");
ws.GetRow(rowIndex).GetCell(10).CellStyle = leftStyle;
region = new CellRangeAddress(rowIndex, rowIndex, 12, 13);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex).GetCell(12).SetCellValue(tbTitle.Rows[0]["ProjectName"].ToString());
//行2
region = new CellRangeAddress(rowIndex + 1, rowIndex + 1, 10, 11);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 1).GetCell(10).SetCellValue("(施工号):");
ws.GetRow(rowIndex + 1).GetCell(10).CellStyle = leftStyle;
region = new CellRangeAddress(rowIndex + 1, rowIndex + 1, 12, 13);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 1).GetCell(12).SetCellValue(tbTitle.Rows[0]["ProjectCode"].ToString());
//行3
region = new CellRangeAddress(rowIndex + 2, rowIndex + 2, 10, 11);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 2).GetCell(10).SetCellValue("单位工程名称:");
ws.GetRow(rowIndex + 2).GetCell(10).CellStyle = leftStyle;
region = new CellRangeAddress(rowIndex + 2, rowIndex + 2, 12, 13);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 2).GetCell(12).SetCellValue("");
//行4
ws.GetRow(rowIndex + 3).GetCell(3).SetCellValue("第");
ws.GetRow(rowIndex + 3).GetCell(4).SetCellValue(i);
ws.GetRow(rowIndex + 3).GetCell(5).SetCellValue("页 共");
ws.GetRow(rowIndex + 3).GetCell(6).SetCellValue(pageNum);
ws.GetRow(rowIndex + 3).GetCell(7).SetCellValue("页");
ws.GetRow(rowIndex + 3).GetCell(3).CellStyle =
ws.GetRow(rowIndex + 3).GetCell(4).CellStyle =
ws.GetRow(rowIndex + 3).GetCell(5).CellStyle =
ws.GetRow(rowIndex + 3).GetCell(6).CellStyle =
ws.GetRow(rowIndex + 3).GetCell(7).CellStyle = pageStyle;
//行5
ws.GetRow(rowIndex + 4).GetCell(0).SetCellValue("委托单位");
region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 1, 3);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 4).GetCell(1).SetCellValue(tbTitle.Rows[0]["TrustUnitName"].ToString());
region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 4, 6);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 4).GetCell(4).SetCellValue("施工单位");
region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 7, 9);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 4).GetCell(7).SetCellValue(tbTitle.Rows[0]["ContractUnitName"].ToString());
region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 10, 11);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 4).GetCell(10).SetCellValue("报告编号");
region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 12, 13);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 4).GetCell(12).SetCellValue(tbTitle.Rows[0]["HardTestReportCode"].ToString());
//行6
ws.GetRow(rowIndex + 5).GetCell(0).SetCellValue("检件名称");
region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 1, 3);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 5).GetCell(1).SetCellValue(tbTitle.Rows[0]["ISO_IsoNo"].ToString());
region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 4, 6);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 5).GetCell(4).SetCellValue("检测标准");
region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 7, 9);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 5).GetCell(7).SetCellValue(tbTitle.Rows[0]["TestStandard"].ToString());
region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 10, 11);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 5).GetCell(10).SetCellValue("验收标准");
region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 12, 13);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 5).GetCell(12).SetCellValue(tbTitle.Rows[0]["MaterialStandard"].ToString());
//行7
ws.GetRow(rowIndex + 6).GetCell(0).SetCellValue("检件规格");
region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 1, 3);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 6).GetCell(1).SetCellValue("见检验部位编号");
region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 4, 6);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 6).GetCell(4).SetCellValue("检件材质");
region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 7, 9);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 6).GetCell(7).SetCellValue(tbTitle.Rows[0]["STE_Code"].ToString());
region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 10, 11);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 6).GetCell(10).SetCellValue("检测比例");
region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 12, 13);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 6).GetCell(12).SetCellValue(tbTitle.Rows[0]["TestRate"].ToString());
//行8
ws.GetRow(rowIndex + 7).GetCell(0).SetCellValue("检测方法");
region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 1, 3);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 7).GetCell(1).SetCellValue(tbTitle.Rows[0]["TestMethod"].ToString());
region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 4, 6);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 7).GetCell(4).SetCellValue("热处理状态");
region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 7, 9);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 7).GetCell(7).SetCellValue(tbTitle.Rows[0]["HotProessState"].ToString());
region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 10, 11);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 7).GetCell(10).SetCellValue("设备型号");
region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 12, 13);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 7).GetCell(12).SetCellValue(tbTitle.Rows[0]["EquipmentId"].ToString());
//行9
region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 0, 1);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 8).GetCell(0).SetCellValue("检测部位编号");
ws.GetRow(rowIndex + 8).GetCell(2).SetCellValue("硬度值HB");
region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 3, 8);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 8).GetCell(3).SetCellValue("检测部位编号");
region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 9, 10);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 8).GetCell(9).SetCellValue("硬度值HB");
region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 11, 12);
ws.AddMergedRegion(region);
ws.GetRow(rowIndex + 8).GetCell(11).SetCellValue("检测部位编号");
ws.GetRow(rowIndex + 8).GetCell(13).SetCellValue("硬度值HB");
#endregion
//EXCEL每页数据开始和结束条数
var dStart = i == 1 ? 0 : (18 + ((i - 2) * 21));
var dEnd = i == 1 ? 18 : (18 + ((i - 1) * 21));
//取数据开始行和结束行
var tStart = rowIndex + 9;
var tEnd = rowIndex + (i == 1 ? 26 : 29);
#region
//创建数据行和列
ws = ExcelCreateRow(ws, hssfworkbook, tStart, tEnd, style, 0, 13);
//获取当前页数据
var pageTb = GetPageToTable(tb, dStart, dEnd);
//遍历数据
bool dbNum = true;
for (int j = 0; j < pageTb.Rows.Count; j++)
{
dbNum = (j == 0 || ((float)j % 3) == 0) ? true : false;
var dataRow = tStart + j;
if (dbNum)
{
ws.GetRow(dataRow).GetCell(0).SetCellValue(pageTb.Rows[j]["NewJOT_JointNoStr1"].ToString());//检测部位编号
ws.GetRow(dataRow).GetCell(3).SetCellValue(pageTb.Rows[j]["NewJOT_JointNoStr2"].ToString());//检测部位编号
ws.GetRow(dataRow).GetCell(11).SetCellValue(pageTb.Rows[j]["NewJOT_JointNoStr3"].ToString());//检测部位编号
}
ws.GetRow(dataRow).GetCell(2).SetCellValue(pageTb.Rows[j]["HardNessValue1"].ToString());//硬度值HB
ws.GetRow(dataRow).GetCell(9).SetCellValue(pageTb.Rows[j]["HardNessValue2"].ToString());//硬度值HB
ws.GetRow(dataRow).GetCell(13).SetCellValue(pageTb.Rows[j]["HardNessValue3"].ToString());//硬度值HB
}
#endregion
#region
//尾部页码
ws.CreateRow(tEnd + 1);
ws.GetRow(tEnd + 1).HeightInPoints = 21.8f;
ws.CreateRow(tEnd + 2);
ws.GetRow(tEnd + 1).HeightInPoints = 21.8f;
ws.CreateRow(tEnd + 3);
ws.GetRow(tEnd + 1).HeightInPoints = 21.8f;
ws.CreateRow(tEnd + 4);
ws.GetRow(tEnd + 1).HeightInPoints = 21.8f;
//上无边框
ICellStyle topTailStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.None, VerticalAlignment.Center, HorizontalAlignment.Center, 10, true, false, "楷体");
//下无边框
ICellStyle bottTailStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.None, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true, false, "楷体");
//左下无边框
ICellStyle leftBottTailStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.None, BorderStyle.None, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true, false, "楷体");
//右下无边框
ICellStyle rightBottTailStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.None, BorderStyle.Thin, BorderStyle.None, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true, false, "楷体");
//左上无边框
ICellStyle leftTopTailStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.None, BorderStyle.Thin, BorderStyle.None, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true, false, "楷体");
//右上无边框
ICellStyle rightTopTailStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.None, BorderStyle.None, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true, false, "楷体");
//生成列
for (int eIndex = 0; eIndex <= 13; eIndex++)
{
ws.GetRow(tEnd + 1).CreateCell(eIndex);
if (i == 1)
{
ws.GetRow(tEnd + 2).CreateCell(eIndex);
ws.GetRow(tEnd + 3).CreateCell(eIndex);
ws.GetRow(tEnd + 4).CreateCell(eIndex);
}
}
if (i == 1)
{
//尾部行1
region = new CellRangeAddress(tEnd + 1, tEnd + 1, 0, 13);
ws.AddMergedRegion(region);
ws.GetRow(tEnd + 1).GetCell(0).CellStyle =
ws.GetRow(tEnd + 1).GetCell(1).CellStyle =
ws.GetRow(tEnd + 1).GetCell(2).CellStyle =
ws.GetRow(tEnd + 1).GetCell(3).CellStyle =
ws.GetRow(tEnd + 1).GetCell(4).CellStyle =
ws.GetRow(tEnd + 1).GetCell(5).CellStyle =
ws.GetRow(tEnd + 1).GetCell(6).CellStyle =
ws.GetRow(tEnd + 1).GetCell(7).CellStyle =
ws.GetRow(tEnd + 1).GetCell(8).CellStyle =
ws.GetRow(tEnd + 1).GetCell(9).CellStyle =
ws.GetRow(tEnd + 1).GetCell(10).CellStyle =
ws.GetRow(tEnd + 1).GetCell(11).CellStyle =
ws.GetRow(tEnd + 1).GetCell(12).CellStyle =
ws.GetRow(tEnd + 1).GetCell(13).CellStyle = bottTailStyle;
ws.GetRow(tEnd + 1).GetCell(0).SetCellValue("检测结论:");
//尾部行2
region = new CellRangeAddress(tEnd + 2, tEnd + 2, 0, 13);
ws.AddMergedRegion(region);
ws.GetRow(tEnd + 2).GetCell(0).CellStyle =
ws.GetRow(tEnd + 2).GetCell(0).CellStyle =
ws.GetRow(tEnd + 2).GetCell(1).CellStyle =
ws.GetRow(tEnd + 2).GetCell(2).CellStyle =
ws.GetRow(tEnd + 2).GetCell(3).CellStyle =
ws.GetRow(tEnd + 2).GetCell(4).CellStyle =
ws.GetRow(tEnd + 2).GetCell(5).CellStyle =
ws.GetRow(tEnd + 2).GetCell(6).CellStyle =
ws.GetRow(tEnd + 2).GetCell(7).CellStyle =
ws.GetRow(tEnd + 2).GetCell(8).CellStyle =
ws.GetRow(tEnd + 2).GetCell(9).CellStyle =
ws.GetRow(tEnd + 2).GetCell(10).CellStyle =
ws.GetRow(tEnd + 2).GetCell(11).CellStyle =
ws.GetRow(tEnd + 2).GetCell(12).CellStyle =
ws.GetRow(tEnd + 2).GetCell(13).CellStyle = topTailStyle;
ws.GetRow(tEnd + 2).GetCell(0).SetCellValue(tbTitle.Rows[0]["testResult"].ToString());
//尾部行3
ws.GetRow(tEnd + 3).GetCell(0).SetCellValue("试验人:");
ws.GetRow(tEnd + 3).GetCell(0).CellStyle = rightBottTailStyle;
region = new CellRangeAddress(tEnd + 3, tEnd + 3, 1, 2);
ws.AddMergedRegion(region);
ws.GetRow(tEnd + 3).GetCell(1).CellStyle =
ws.GetRow(tEnd + 3).GetCell(2).CellStyle = leftBottTailStyle;
ws.GetRow(tEnd + 3).GetCell(1).SetCellValue("");
region = new CellRangeAddress(tEnd + 3, tEnd + 3, 3, 5);
ws.AddMergedRegion(region);
ws.GetRow(tEnd + 3).GetCell(3).CellStyle =
ws.GetRow(tEnd + 3).GetCell(4).CellStyle =
ws.GetRow(tEnd + 3).GetCell(5).CellStyle = rightBottTailStyle;
ws.GetRow(tEnd + 3).GetCell(3).SetCellValue("审核人:");
region = new CellRangeAddress(tEnd + 3, tEnd + 3, 6, 10);
ws.AddMergedRegion(region);
ws.GetRow(tEnd + 3).GetCell(6).CellStyle =
ws.GetRow(tEnd + 3).GetCell(7).CellStyle =
ws.GetRow(tEnd + 3).GetCell(8).CellStyle =
ws.GetRow(tEnd + 3).GetCell(9).CellStyle =
ws.GetRow(tEnd + 3).GetCell(10).CellStyle = leftBottTailStyle;
ws.GetRow(tEnd + 3).GetCell(6).SetCellValue("");
region = new CellRangeAddress(tEnd + 3, tEnd + 3, 11, 13);
ws.AddMergedRegion(region);
ws.GetRow(tEnd + 3).GetCell(11).CellStyle =
ws.GetRow(tEnd + 3).GetCell(12).CellStyle =
ws.GetRow(tEnd + 3).GetCell(13).CellStyle = bottTailStyle;
ws.GetRow(tEnd + 3).GetCell(11).SetCellValue("检测单位:(公章)");
//尾部行4
ws.GetRow(tEnd + 4).GetCell(0).SetCellValue("资格:");
ws.GetRow(tEnd + 4).GetCell(0).CellStyle = rightTopTailStyle;
region = new CellRangeAddress(tEnd + 4, tEnd + 4, 1, 2);
ws.AddMergedRegion(region);
ws.GetRow(tEnd + 4).GetCell(1).SetCellValue("");
ws.GetRow(tEnd + 4).GetCell(1).CellStyle =
ws.GetRow(tEnd + 4).GetCell(2).CellStyle = leftTopTailStyle;
region = new CellRangeAddress(tEnd + 4, tEnd + 4, 3, 5);
ws.AddMergedRegion(region);
ws.GetRow(tEnd + 4).GetCell(3).SetCellValue("资格:");
ws.GetRow(tEnd + 4).GetCell(3).CellStyle =
ws.GetRow(tEnd + 4).GetCell(4).CellStyle =
ws.GetRow(tEnd + 4).GetCell(5).CellStyle = rightTopTailStyle;
region = new CellRangeAddress(tEnd + 4, tEnd + 4, 6, 10);
ws.AddMergedRegion(region);
ws.GetRow(tEnd + 4).GetCell(6).SetCellValue("");
ws.GetRow(tEnd + 4).GetCell(6).CellStyle =
ws.GetRow(tEnd + 4).GetCell(7).CellStyle =
ws.GetRow(tEnd + 4).GetCell(8).CellStyle =
ws.GetRow(tEnd + 4).GetCell(9).CellStyle =
ws.GetRow(tEnd + 4).GetCell(10).CellStyle = leftTopTailStyle;
ws.GetRow(tEnd + 4).GetCell(11).CellStyle = rightTopTailStyle;
ws.GetRow(tEnd + 4).GetCell(11).SetCellValue("报告日期:");
region = new CellRangeAddress(tEnd + 4, tEnd + 4, 12, 13);
ws.AddMergedRegion(region);
ws.GetRow(tEnd + 4).GetCell(12).CellStyle =
ws.GetRow(tEnd + 4).GetCell(13).CellStyle = leftTopTailStyle;
ws.GetRow(tEnd + 4).GetCell(12).SetCellValue("");
}
else
{
region = new CellRangeAddress(tEnd + 1, tEnd + 1, 0, 13);
ws.AddMergedRegion(region);
ws.GetRow(tEnd + 1).GetCell(0).SetCellValue(" 检测单位 (公章) ");
ws.GetRow(tEnd + 1).GetCell(0).CellStyle =
ws.GetRow(tEnd + 1).GetCell(1).CellStyle =
ws.GetRow(tEnd + 1).GetCell(2).CellStyle =
ws.GetRow(tEnd + 1).GetCell(3).CellStyle =
ws.GetRow(tEnd + 1).GetCell(4).CellStyle =
ws.GetRow(tEnd + 1).GetCell(5).CellStyle =
ws.GetRow(tEnd + 1).GetCell(6).CellStyle =
ws.GetRow(tEnd + 1).GetCell(7).CellStyle =
ws.GetRow(tEnd + 1).GetCell(8).CellStyle =
ws.GetRow(tEnd + 1).GetCell(9).CellStyle =
ws.GetRow(tEnd + 1).GetCell(10).CellStyle =
ws.GetRow(tEnd + 1).GetCell(11).CellStyle =
ws.GetRow(tEnd + 1).GetCell(12).CellStyle =
ws.GetRow(tEnd + 1).GetCell(13).CellStyle = style;
}
#endregion
rowIndex = tEnd + (i == 1 ? 10 : 5);
}
var newRow = dt.NewRow();
newRow["NewJOT_JointNoStr1"] = row["NewJOT_JointNoStr1"].ToString();
newRow["HardNessValue1"] = row["HardNessValue1"].ToString();
newRow["NewJOT_JointNoStr2"] = row["NewJOT_JointNoStr2"].ToString();
newRow["HardNessValue2"] = row["HardNessValue2"].ToString();
newRow["NewJOT_JointNoStr3"] = row["NewJOT_JointNoStr3"].ToString();
newRow["HardNessValue3"] = row["HardNessValue3"].ToString();
dt.Rows.Add(newRow);
}
BLL.Common.FastReportService.AddFastreportTable(dt);
}
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
//keyValuePairs.Add("ProjectName", hidProjectName.Value);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\硬度检测报告(新).frx";
if (File.Exists(rootPath + initTemplatePath))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
}
}
ws.SetMargin(MarginType.LeftMargin, 0.5);
ws.SetMargin(MarginType.RightMargin, 0.5);
//ws.SetMargin(MarginType.BottomMargin, 1);
//ws.SetMargin(MarginType.TopMargin, 1);
//ws.SetMargin(MarginType.FooterMargin, 0.5);
//ws.SetMargin(MarginType.HeaderMargin, 0.5);
ws.PrintSetup.Landscape = false;
ws.PrintSetup.PaperSize = 9;
ws.ForceFormulaRecalculation = true;
using (FileStream filess = File.OpenWrite(ReportFileName))
{
hssfworkbook.Write(filess);
}
FileInfo filet = new FileInfo(ReportFileName);
Response.Clear();
Response.Charset = "GB2312";
Response.ContentEncoding = System.Text.Encoding.UTF8;
// 添加头信息,为"文件下载/另存为"对话框指定默认文件名
Response.AddHeader("Content-Disposition", "attachment; filename=" + Server.UrlEncode("项目管理管线单线图附页.xlsx"));
// 添加头信息,指定文件大小,让浏览器能够显示下载进度
Response.AddHeader("Content-Length", filet.Length.ToString());
// 指定返回的是一个不能被客户端读取的流,必须被下载
Response.ContentType = "application/ms-excel";
// 把文件流发送到客户端
Response.WriteFile(filet.FullName);
// 停止页面的执行
Response.End();
}
//string rootPath = Server.MapPath("~/") + Const.ExcelUrl;
////导出文件
//string filePath = rootPath + DateTime.Now.ToString("yyyyMMddhhmmss") + "\\";
//if (!Directory.Exists(filePath))
//{
// Directory.CreateDirectory(filePath);
//}
//string ReportFileName = filePath + "out1.xlsx";
//if (Grid2.Rows.Count > 0)
//{
// int rowIndex = 0;
// XSSFWorkbook hssfworkbook = new XSSFWorkbook();
// XSSFSheet ws = (XSSFSheet)hssfworkbook.CreateSheet("项目管理管线单线图附页");
// #region 列宽
// ws.SetColumnWidth(0, (11 * 256) + 200);//(10.17)10.18
// ws.SetColumnWidth(1, (4 * 256) + 15);//(3.5)3.55
// ws.SetColumnWidth(2, (12 * 256) + 55);//(11.67)11.64
// ws.SetColumnWidth(3, (3 * 256) + 55);//(2.67)2.64
// ws.SetColumnWidth(4, (2 * 256) + 120);//(1.92)1.91
// ws.SetColumnWidth(5, (5 * 256) + 100);//(4.83)4.82
// ws.SetColumnWidth(6, (3 * 256) + 15);//(2.5)2.55
// ws.SetColumnWidth(7, (3 * 256) + 100);//(2.83)2.82
// ws.SetColumnWidth(8, 256 + 15);//(0.5)0.5
// ws.SetColumnWidth(9, (9 * 256) + 15);//(8.5)8.55
// ws.SetColumnWidth(10, (3 * 256) + 200);//(3.17)3.18
// ws.SetColumnWidth(11, (10 * 256) - 15);//(9.33)9.36
// ws.SetColumnWidth(12, (3 * 256) + 100);//(2.83)2.82
// ws.SetColumnWidth(13, (13 * 256) + 15);//(12.5)12.55
// #endregion
// for (int gi = 0; gi < Grid2.Rows.Count; gi++)
// {
// if (Grid2.SelectedRowIndexArray.Contains(gi))
// {
// System.Web.UI.WebControls.HiddenField hidHardTestReportId = Grid2.Rows[gi].FindControl("hidHardTestReportId") as System.Web.UI.WebControls.HiddenField;
// //打印赋值
// Model.HJGL_CH_HardTestReport report = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportByID(hidHardTestReportId.Value);
// if (report != null)
// {
// report.IsPrintReport = true;
// report.PrintTrustDate = DateTime.Now;
// report.TrustName = report.HotHardCode + "-" + string.Format("{0:yyyy-MM-dd}", DateTime.Now);
// BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReport(report);
// }
// //头部
// var listTitleStr = new List<SqlParameter>();
// listTitleStr.Add(new SqlParameter("@HardTestReportId", hidHardTestReportId.Value));
// SqlParameter[] titleparameter = listTitleStr.ToArray();
// var tbTitle = SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReport", titleparameter);
// //列表
// var listStr = new List<SqlParameter>();
// listStr.Add(new SqlParameter("@HardTestReportId", hidHardTestReportId.Value));
// listStr.Add(new SqlParameter("@Flag", "0"));
// SqlParameter[] parameter = listStr.ToArray();
// var tb = SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReportItem", parameter);
// if (tb.Rows.Count > 0 && tbTitle.Rows.Count > 0)
// {
// CellRangeAddress region;
// var pageNum =
// tb.Rows.Count < 18 ? 1
// : Math.Ceiling((float)(tb.Rows.Count - 18) / 21) + 1;
// //公共样式
// ICellStyle style = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Center, 10, true);
// //页码样式
// ICellStyle pageStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Center, 7, true);
// //文字靠左
// ICellStyle leftStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true);
// //头部样式
// ICellStyle titleStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Center, 16, true, true);
// //循环页
// for (int i = 1; i <= pageNum; i++)
// {
// #region 头部
// //创建头部行和列
// ws = ExcelCreateRowTitle(ws, hssfworkbook, rowIndex, rowIndex + 8, style, 0, 13);
// //行1
// region = new CellRangeAddress(rowIndex, rowIndex + 3, 0, 1);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex).GetCell(0).SetCellValue("SH/T 3503-J130");
// region = new CellRangeAddress(rowIndex, rowIndex + 2, 2, 9);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex).GetCell(2).SetCellValue("硬度检测报告");
// ws.GetRow(rowIndex).GetCell(2).CellStyle = titleStyle;
// region = new CellRangeAddress(rowIndex, rowIndex, 10, 11);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex).GetCell(10).SetCellValue("工程名称:");
// ws.GetRow(rowIndex).GetCell(10).CellStyle = leftStyle;
// region = new CellRangeAddress(rowIndex, rowIndex, 12, 13);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex).GetCell(12).SetCellValue(tbTitle.Rows[0]["ProjectName"].ToString());
// //行2
// region = new CellRangeAddress(rowIndex + 1, rowIndex + 1, 10, 11);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 1).GetCell(10).SetCellValue("(施工号):");
// ws.GetRow(rowIndex + 1).GetCell(10).CellStyle = leftStyle;
// region = new CellRangeAddress(rowIndex + 1, rowIndex + 1, 12, 13);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 1).GetCell(12).SetCellValue(tbTitle.Rows[0]["ProjectCode"].ToString());
// //行3
// region = new CellRangeAddress(rowIndex + 2, rowIndex + 2, 10, 11);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 2).GetCell(10).SetCellValue("单位工程名称:");
// ws.GetRow(rowIndex + 2).GetCell(10).CellStyle = leftStyle;
// region = new CellRangeAddress(rowIndex + 2, rowIndex + 2, 12, 13);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 2).GetCell(12).SetCellValue("");
// //行4
// ws.GetRow(rowIndex + 3).GetCell(3).SetCellValue("第");
// ws.GetRow(rowIndex + 3).GetCell(4).SetCellValue(i);
// ws.GetRow(rowIndex + 3).GetCell(5).SetCellValue("页 共");
// ws.GetRow(rowIndex + 3).GetCell(6).SetCellValue(pageNum);
// ws.GetRow(rowIndex + 3).GetCell(7).SetCellValue("页");
// ws.GetRow(rowIndex + 3).GetCell(3).CellStyle =
// ws.GetRow(rowIndex + 3).GetCell(4).CellStyle =
// ws.GetRow(rowIndex + 3).GetCell(5).CellStyle =
// ws.GetRow(rowIndex + 3).GetCell(6).CellStyle =
// ws.GetRow(rowIndex + 3).GetCell(7).CellStyle = pageStyle;
// //行5
// ws.GetRow(rowIndex + 4).GetCell(0).SetCellValue("委托单位");
// region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 1, 3);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 4).GetCell(1).SetCellValue(tbTitle.Rows[0]["TrustUnitName"].ToString());
// region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 4, 6);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 4).GetCell(4).SetCellValue("施工单位");
// region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 7, 9);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 4).GetCell(7).SetCellValue(tbTitle.Rows[0]["ContractUnitName"].ToString());
// region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 10, 11);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 4).GetCell(10).SetCellValue("报告编号");
// region = new CellRangeAddress(rowIndex + 4, rowIndex + 4, 12, 13);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 4).GetCell(12).SetCellValue(tbTitle.Rows[0]["HardTestReportCode"].ToString());
// //行6
// ws.GetRow(rowIndex + 5).GetCell(0).SetCellValue("检件名称");
// region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 1, 3);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 5).GetCell(1).SetCellValue(tbTitle.Rows[0]["ISO_IsoNo"].ToString());
// region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 4, 6);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 5).GetCell(4).SetCellValue("检测标准");
// region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 7, 9);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 5).GetCell(7).SetCellValue(tbTitle.Rows[0]["TestStandard"].ToString());
// region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 10, 11);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 5).GetCell(10).SetCellValue("验收标准");
// region = new CellRangeAddress(rowIndex + 5, rowIndex + 5, 12, 13);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 5).GetCell(12).SetCellValue(tbTitle.Rows[0]["MaterialStandard"].ToString());
// //行7
// ws.GetRow(rowIndex + 6).GetCell(0).SetCellValue("检件规格");
// region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 1, 3);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 6).GetCell(1).SetCellValue("见检验部位编号");
// region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 4, 6);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 6).GetCell(4).SetCellValue("检件材质");
// region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 7, 9);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 6).GetCell(7).SetCellValue(tbTitle.Rows[0]["STE_Code"].ToString());
// region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 10, 11);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 6).GetCell(10).SetCellValue("检测比例");
// region = new CellRangeAddress(rowIndex + 6, rowIndex + 6, 12, 13);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 6).GetCell(12).SetCellValue(tbTitle.Rows[0]["TestRate"].ToString());
// //行8
// ws.GetRow(rowIndex + 7).GetCell(0).SetCellValue("检测方法");
// region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 1, 3);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 7).GetCell(1).SetCellValue(tbTitle.Rows[0]["TestMethod"].ToString());
// region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 4, 6);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 7).GetCell(4).SetCellValue("热处理状态");
// region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 7, 9);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 7).GetCell(7).SetCellValue(tbTitle.Rows[0]["HotProessState"].ToString());
// region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 10, 11);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 7).GetCell(10).SetCellValue("设备型号");
// region = new CellRangeAddress(rowIndex + 7, rowIndex + 7, 12, 13);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 7).GetCell(12).SetCellValue(tbTitle.Rows[0]["EquipmentId"].ToString());
// //行9
// region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 0, 1);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 8).GetCell(0).SetCellValue("检测部位编号");
// ws.GetRow(rowIndex + 8).GetCell(2).SetCellValue("硬度值HB");
// region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 3, 8);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 8).GetCell(3).SetCellValue("检测部位编号");
// region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 9, 10);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 8).GetCell(9).SetCellValue("硬度值HB");
// region = new CellRangeAddress(rowIndex + 8, rowIndex + 8, 11, 12);
// ws.AddMergedRegion(region);
// ws.GetRow(rowIndex + 8).GetCell(11).SetCellValue("检测部位编号");
// ws.GetRow(rowIndex + 8).GetCell(13).SetCellValue("硬度值HB");
// #endregion
// //EXCEL每页数据开始和结束条数
// var dStart = i == 1 ? 0 : (18 + ((i - 2) * 21));
// var dEnd = i == 1 ? 18 : (18 + ((i - 1) * 21));
// //取数据开始行和结束行
// var tStart = rowIndex + 9;
// var tEnd = rowIndex + (i == 1 ? 26 : 29);
// #region 数据
// //创建数据行和列
// ws = ExcelCreateRow(ws, hssfworkbook, tStart, tEnd, style, 0, 13);
// //获取当前页数据
// var pageTb = GetPageToTable(tb, dStart, dEnd);
// //遍历数据
// bool dbNum = true;
// for (int j = 0; j < pageTb.Rows.Count; j++)
// {
// dbNum = (j == 0 || ((float)j % 3) == 0) ? true : false;
// var dataRow = tStart + j;
// if (dbNum)
// {
// ws.GetRow(dataRow).GetCell(0).SetCellValue(pageTb.Rows[j]["NewJOT_JointNoStr1"].ToString());//检测部位编号
// ws.GetRow(dataRow).GetCell(3).SetCellValue(pageTb.Rows[j]["NewJOT_JointNoStr2"].ToString());//检测部位编号
// ws.GetRow(dataRow).GetCell(11).SetCellValue(pageTb.Rows[j]["NewJOT_JointNoStr3"].ToString());//检测部位编号
// }
// ws.GetRow(dataRow).GetCell(2).SetCellValue(pageTb.Rows[j]["HardNessValue1"].ToString());//硬度值HB
// ws.GetRow(dataRow).GetCell(9).SetCellValue(pageTb.Rows[j]["HardNessValue2"].ToString());//硬度值HB
// ws.GetRow(dataRow).GetCell(13).SetCellValue(pageTb.Rows[j]["HardNessValue3"].ToString());//硬度值HB
// }
// #endregion
// #region 尾部
// //尾部页码
// ws.CreateRow(tEnd + 1);
// ws.GetRow(tEnd + 1).HeightInPoints = 21.8f;
// ws.CreateRow(tEnd + 2);
// ws.GetRow(tEnd + 1).HeightInPoints = 21.8f;
// ws.CreateRow(tEnd + 3);
// ws.GetRow(tEnd + 1).HeightInPoints = 21.8f;
// ws.CreateRow(tEnd + 4);
// ws.GetRow(tEnd + 1).HeightInPoints = 21.8f;
// //上无边框
// ICellStyle topTailStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.None, VerticalAlignment.Center, HorizontalAlignment.Center, 10, true, false, "楷体");
// //下无边框
// ICellStyle bottTailStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.None, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true, false, "楷体");
// //左下无边框
// ICellStyle leftBottTailStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.None, BorderStyle.None, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true, false, "楷体");
// //右下无边框
// ICellStyle rightBottTailStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.None, BorderStyle.Thin, BorderStyle.None, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true, false, "楷体");
// //左上无边框
// ICellStyle leftTopTailStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.None, BorderStyle.Thin, BorderStyle.None, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true, false, "楷体");
// //右上无边框
// ICellStyle rightTopTailStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.None, BorderStyle.None, VerticalAlignment.Center, HorizontalAlignment.Left, 10, true, false, "楷体");
// //生成列
// for (int eIndex = 0; eIndex <= 13; eIndex++)
// {
// ws.GetRow(tEnd + 1).CreateCell(eIndex);
// if (i == 1)
// {
// ws.GetRow(tEnd + 2).CreateCell(eIndex);
// ws.GetRow(tEnd + 3).CreateCell(eIndex);
// ws.GetRow(tEnd + 4).CreateCell(eIndex);
// }
// }
// if (i == 1)
// {
// //尾部行1
// region = new CellRangeAddress(tEnd + 1, tEnd + 1, 0, 13);
// ws.AddMergedRegion(region);
// ws.GetRow(tEnd + 1).GetCell(0).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(1).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(2).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(3).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(4).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(5).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(6).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(7).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(8).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(9).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(10).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(11).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(12).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(13).CellStyle = bottTailStyle;
// ws.GetRow(tEnd + 1).GetCell(0).SetCellValue("检测结论:");
// //尾部行2
// region = new CellRangeAddress(tEnd + 2, tEnd + 2, 0, 13);
// ws.AddMergedRegion(region);
// ws.GetRow(tEnd + 2).GetCell(0).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(0).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(1).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(2).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(3).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(4).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(5).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(6).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(7).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(8).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(9).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(10).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(11).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(12).CellStyle =
// ws.GetRow(tEnd + 2).GetCell(13).CellStyle = topTailStyle;
// ws.GetRow(tEnd + 2).GetCell(0).SetCellValue(tbTitle.Rows[0]["testResult"].ToString());
// //尾部行3
// ws.GetRow(tEnd + 3).GetCell(0).SetCellValue("试验人:");
// ws.GetRow(tEnd + 3).GetCell(0).CellStyle = rightBottTailStyle;
// region = new CellRangeAddress(tEnd + 3, tEnd + 3, 1, 2);
// ws.AddMergedRegion(region);
// ws.GetRow(tEnd + 3).GetCell(1).CellStyle =
// ws.GetRow(tEnd + 3).GetCell(2).CellStyle = leftBottTailStyle;
// ws.GetRow(tEnd + 3).GetCell(1).SetCellValue("");
// region = new CellRangeAddress(tEnd + 3, tEnd + 3, 3, 5);
// ws.AddMergedRegion(region);
// ws.GetRow(tEnd + 3).GetCell(3).CellStyle =
// ws.GetRow(tEnd + 3).GetCell(4).CellStyle =
// ws.GetRow(tEnd + 3).GetCell(5).CellStyle = rightBottTailStyle;
// ws.GetRow(tEnd + 3).GetCell(3).SetCellValue("审核人:");
// region = new CellRangeAddress(tEnd + 3, tEnd + 3, 6, 10);
// ws.AddMergedRegion(region);
// ws.GetRow(tEnd + 3).GetCell(6).CellStyle =
// ws.GetRow(tEnd + 3).GetCell(7).CellStyle =
// ws.GetRow(tEnd + 3).GetCell(8).CellStyle =
// ws.GetRow(tEnd + 3).GetCell(9).CellStyle =
// ws.GetRow(tEnd + 3).GetCell(10).CellStyle = leftBottTailStyle;
// ws.GetRow(tEnd + 3).GetCell(6).SetCellValue("");
// region = new CellRangeAddress(tEnd + 3, tEnd + 3, 11, 13);
// ws.AddMergedRegion(region);
// ws.GetRow(tEnd + 3).GetCell(11).CellStyle =
// ws.GetRow(tEnd + 3).GetCell(12).CellStyle =
// ws.GetRow(tEnd + 3).GetCell(13).CellStyle = bottTailStyle;
// ws.GetRow(tEnd + 3).GetCell(11).SetCellValue("检测单位:(公章)");
// //尾部行4
// ws.GetRow(tEnd + 4).GetCell(0).SetCellValue("资格:");
// ws.GetRow(tEnd + 4).GetCell(0).CellStyle = rightTopTailStyle;
// region = new CellRangeAddress(tEnd + 4, tEnd + 4, 1, 2);
// ws.AddMergedRegion(region);
// ws.GetRow(tEnd + 4).GetCell(1).SetCellValue("");
// ws.GetRow(tEnd + 4).GetCell(1).CellStyle =
// ws.GetRow(tEnd + 4).GetCell(2).CellStyle = leftTopTailStyle;
// region = new CellRangeAddress(tEnd + 4, tEnd + 4, 3, 5);
// ws.AddMergedRegion(region);
// ws.GetRow(tEnd + 4).GetCell(3).SetCellValue("资格:");
// ws.GetRow(tEnd + 4).GetCell(3).CellStyle =
// ws.GetRow(tEnd + 4).GetCell(4).CellStyle =
// ws.GetRow(tEnd + 4).GetCell(5).CellStyle = rightTopTailStyle;
// region = new CellRangeAddress(tEnd + 4, tEnd + 4, 6, 10);
// ws.AddMergedRegion(region);
// ws.GetRow(tEnd + 4).GetCell(6).SetCellValue("");
// ws.GetRow(tEnd + 4).GetCell(6).CellStyle =
// ws.GetRow(tEnd + 4).GetCell(7).CellStyle =
// ws.GetRow(tEnd + 4).GetCell(8).CellStyle =
// ws.GetRow(tEnd + 4).GetCell(9).CellStyle =
// ws.GetRow(tEnd + 4).GetCell(10).CellStyle = leftTopTailStyle;
// ws.GetRow(tEnd + 4).GetCell(11).CellStyle = rightTopTailStyle;
// ws.GetRow(tEnd + 4).GetCell(11).SetCellValue("报告日期:");
// region = new CellRangeAddress(tEnd + 4, tEnd + 4, 12, 13);
// ws.AddMergedRegion(region);
// ws.GetRow(tEnd + 4).GetCell(12).CellStyle =
// ws.GetRow(tEnd + 4).GetCell(13).CellStyle = leftTopTailStyle;
// ws.GetRow(tEnd + 4).GetCell(12).SetCellValue("");
// }
// else
// {
// region = new CellRangeAddress(tEnd + 1, tEnd + 1, 0, 13);
// ws.AddMergedRegion(region);
// ws.GetRow(tEnd + 1).GetCell(0).SetCellValue(" 检测单位 (公章) ");
// ws.GetRow(tEnd + 1).GetCell(0).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(1).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(2).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(3).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(4).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(5).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(6).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(7).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(8).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(9).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(10).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(11).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(12).CellStyle =
// ws.GetRow(tEnd + 1).GetCell(13).CellStyle = style;
// }
// #endregion
// rowIndex = tEnd + (i == 1 ? 10 : 5);
// }
// }
// }
// }
// ws.SetMargin(MarginType.LeftMargin, 0.5);
// ws.SetMargin(MarginType.RightMargin, 0.5);
// //ws.SetMargin(MarginType.BottomMargin, 1);
// //ws.SetMargin(MarginType.TopMargin, 1);
// //ws.SetMargin(MarginType.FooterMargin, 0.5);
// //ws.SetMargin(MarginType.HeaderMargin, 0.5);
// ws.PrintSetup.Landscape = false;
// ws.PrintSetup.PaperSize = 9;
// ws.ForceFormulaRecalculation = true;
// using (FileStream filess = File.OpenWrite(ReportFileName))
// {
// hssfworkbook.Write(filess);
// }
// FileInfo filet = new FileInfo(ReportFileName);
// Response.Clear();
// Response.Charset = "GB2312";
// Response.ContentEncoding = System.Text.Encoding.UTF8;
// // 添加头信息,为"文件下载/另存为"对话框指定默认文件名
// Response.AddHeader("Content-Disposition", "attachment; filename=" + Server.UrlEncode("项目管理管线单线图附页.xlsx"));
// // 添加头信息,指定文件大小,让浏览器能够显示下载进度
// Response.AddHeader("Content-Length", filet.Length.ToString());
// // 指定返回的是一个不能被客户端读取的流,必须被下载
// Response.ContentType = "application/ms-excel";
// // 把文件流发送到客户端
// Response.WriteFile(filet.FullName);
// // 停止页面的执行
// Response.End();
//}
}
#endregion

View File

@ -27,6 +27,7 @@
<f:TextBox ID="txtProjectCode" runat="server" Label="项目号" LabelAlign="Right" EmptyText="输入项目号查询"></f:TextBox>
<f:Button ID="btnSubmit" BoxConfigAlign="Center" runat="server" Text="查询" ToolTip="查询" OnClick="btnSubmit_Click">
</f:Button>
<f:HiddenField ID="hidProjectName" runat="server"></f:HiddenField>
</Items>
</f:Toolbar>
</Toolbars>
@ -72,8 +73,8 @@
Title="底部面板" ShowBorder="false" ShowHeader="false" Layout="Fit">
<Items>
<f:Grid ID="Grid2" CssClass="blockpanel" ShowBorder="true" ShowHeader="true" EnableCollapse="false" runat="server"
DataKeyNames="ISO_ID" AllowSorting="true" SortField="ISO_ID"
SortDirection="ASC" EnableCheckBoxSelect="true">
DataKeyNames="ISO_ID" DataIDField="ISO_ID" AllowSorting="true" SortField="ISO_ID"
SortDirection="ASC" EnableCheckBoxSelect="true" EnableMultiSelect="false">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server">
<Items>

View File

@ -7,11 +7,13 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.ContinuousPrint {
public partial class PipingSingleDiagramPrint {
namespace FineUIPro.Web.ContinuousPrint
{
public partial class PipingSingleDiagramPrint
{
/// <summary>
/// form1 控件。
/// </summary>
@ -20,7 +22,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
@ -29,7 +31,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel2 控件。
/// </summary>
@ -38,7 +40,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel2;
/// <summary>
/// panelTopRegion 控件。
/// </summary>
@ -47,7 +49,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelTopRegion;
/// <summary>
/// Grid1 控件。
/// </summary>
@ -56,7 +58,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
@ -65,7 +67,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// txtProjectCode 控件。
/// </summary>
@ -74,7 +76,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtProjectCode;
/// <summary>
/// btnSubmit 控件。
/// </summary>
@ -83,7 +85,16 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSubmit;
/// <summary>
/// hidProjectName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hidProjectName;
/// <summary>
/// Label1 控件。
/// </summary>
@ -92,7 +103,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label1;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
@ -101,7 +112,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
@ -110,7 +121,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
@ -119,7 +130,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// panelBottomRegion 控件。
/// </summary>
@ -128,7 +139,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelBottomRegion;
/// <summary>
/// Grid2 控件。
/// </summary>
@ -137,7 +148,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid2;
/// <summary>
/// Toolbar3 控件。
/// </summary>
@ -146,7 +157,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar3;
/// <summary>
/// btnPrint 控件。
/// </summary>
@ -155,7 +166,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnPrint;
/// <summary>
/// lblContractor 控件。
/// </summary>
@ -164,7 +175,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblContractor;
/// <summary>
/// hidISO_ID 控件。
/// </summary>
@ -173,7 +184,7 @@ namespace FineUIPro.Web.ContinuousPrint {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hidISO_ID;
/// <summary>
/// Window1 控件。
/// </summary>

View File

@ -73,7 +73,7 @@
<Items>
<f:Grid ID="Grid2" CssClass="blockpanel" ShowBorder="true" ShowHeader="true" EnableCollapse="false" runat="server"
DataKeyNames="ISO_ID" AllowSorting="true" SortField="ISO_ID"
SortDirection="ASC" EnableCheckBoxSelect="true">
SortDirection="ASC" EnableCheckBoxSelect="true" EnableMultiSelect="false">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server">
<Items>

File diff suppressed because it is too large Load Diff

View File

@ -1,25 +1,73 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="05/06/2025 14:30:21" ReportInfo.Modified="05/06/2025 18:02:32" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="05/06/2025 14:30:21" ReportInfo.Modified="05/22/2025 14:41:24" 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 Table3_ManualBuild(object sender, EventArgs e)
{
DataSourceBase rowData = Report.GetDataSource(&quot;Data&quot;);
// init the data source
rowData.Init();
// print the first table row - it is a header
// now enumerate the data source and print the table body
while (rowData.HasMoreRows)
{
// print the table body
Table3.PrintRow(0);
Table3.PrintColumns();
// go next data source row
rowData.Next();
}
}
}
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqM3/HbiZANEYP3Y6oNtE7mnpx+oG3GHIPNmrMCiyY8aaCVynM0fYlZ5YZKM9WrQe9hDk43vX9Nrar7yVij5ew8q/J9lwWi1b952G1Um0cxl494yv4mzdxck6kbW3d7FWyIyy5Y3kZKgYQAMl3yENzWQ5YW8BhaGCHvLBX14AYWM43EIlupHCcnqYTj+lwXcpV">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJIRjVCbr9Bq0lJ3/Gz0Fq8Q==">
<TableDataSource Name="MainData" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="MainData">
<Column Name="TestEngineeringCode" DataType="System.String" PropName="attach_image_id"/>
<Column Name="GuideBookCode" DataType="System.String" PropName="image_series"/>
<Column Name="file_name" DataType="System.String"/>
<Column Name="file_size" DataType="System.Double"/>
<Column Name="file_type" DataType="System.String"/>
<Column Name="created_date" DataType="System.DateTime"/>
<Column Name="created_by" DataType="System.String"/>
<Column Name="series_desc" DataType="System.String"/>
<Column Name="file_path" DataType="System.String"/>
<Column Name="series_timestamp" DataType="System.String"/>
<Column Name="TestEngineeringCode" DataType="System.String" PropName="ProjectName"/>
<Column Name="GuideBookCode" DataType="System.String" PropName="Column"/>
<Column Name="RecordCode" DataType="System.String" PropName="Column"/>
<Column Name="TrustUnitName" DataType="System.String" PropName="Column"/>
<Column Name="ConUnitName" DataType="System.String" PropName="Column"/>
<Column Name="CH_TrustDate" DataType="System.String" PropName="Column"/>
<Column Name="ProjectName" DataType="System.String" PropName="Column"/>
<Column Name="ProjectCode" DataType="System.String" PropName="Column"/>
<Column Name="TrustManName" DataType="System.String" PropName="Column"/>
<Column Name="ISO_IsoNo" DataType="System.String" PropName="Column"/>
<Column Name="STE_Code" DataType="System.String" PropName="Column"/>
<Column Name="JST_Name" DataType="System.String" PropName="Column"/>
<Column Name="NDTR_Name" DataType="System.String" PropName="Column"/>
<Column Name="WME_Name" DataType="System.String" PropName="Column"/>
<Column Name="IsHot" DataType="System.String" PropName="Column"/>
<Column Name="AcceptGrade2" DataType="System.String" PropName="Column"/>
</TableDataSource>
<TableDataSource Name="Data" DataType="System.Int32" PropName="AttachFile" Enabled="true" TableName="Data">
<Column Name="AttachFileId" DataType="System.String"/>
<Column Name="ToKeyId" DataType="System.String"/>
<Column Name="AttachSource" DataType="System.String"/>
<Column Name="AttachUrl" DataType="System.String"/>
<Column Name="MenuId" DataType="System.String"/>
<Column Name="Num" DataType="System.String" PropName="AttachFileId"/>
<Column Name="JOT_JointNo" DataType="System.String" PropName="ToKeyId"/>
<Column Name="JOT_JointDesc" DataType="System.String" PropName="AttachSource"/>
<Column Name="WED_Code" DataType="System.String" PropName="AttachUrl"/>
<Column Name="FilmNum" DataType="System.String" PropName="MenuId"/>
<Column Name="CheckAddress" DataType="System.String" PropName="Column"/>
</TableDataSource>
</MsSqlDataConnection>
</Dictionary>
@ -76,7 +124,7 @@
<TableCell Name="Cell45"/>
</TableRow>
<TableRow Name="Row3" Height="28.35">
<TableCell Name="Cell11" Text="射 线 检 测 记 录" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt" ColSpan="15"/>
<TableCell Name="Cell11" Text="射 线 检 测 记 录" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold" ColSpan="15"/>
<TableCell Name="Cell12" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt"/>
<TableCell Name="Cell13" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt"/>
<TableCell Name="Cell14" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt"/>
@ -95,13 +143,13 @@
<TableRow Name="Row4" Height="37.8">
<TableCell Name="Cell16" Border.Lines="All" Text="工程编号" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell17" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell18" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell18" Border.Lines="All" Text="[MainData.TestEngineeringCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell19" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell20" Border.Lines="All" Text="指导书编号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell56" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell56" Border.Lines="All" Text="[MainData.GuideBookCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell57" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell58" Border.Lines="All" Text="记录编号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell59" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell59" Border.Lines="All" Text="[MainData.RecordCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell60" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell61" Border.Lines="All" Text="共[TotalPages#]页 第[Page#]页" HorzAlign="Center" VertAlign="Center" ColSpan="5"/>
<TableCell Name="Cell62" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
@ -112,49 +160,49 @@
<TableRow Name="Row5" Height="28.35">
<TableCell Name="Cell21" Border.Lines="All" Text="委托单位" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell22" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell23" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
<TableCell Name="Cell24" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell25" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell23" Border.Lines="All" Text="[MainData.TrustUnitName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="3"/>
<TableCell Name="Cell24" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell25" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell66" Border.Lines="All" Text="施工单位" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell67" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
<TableCell Name="Cell68" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell69" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell67" Border.Lines="All" Text="[MainData.ConUnitName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="3"/>
<TableCell Name="Cell68" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell69" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell70" Border.Lines="All" Text="委托日期" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell71" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="5"/>
<TableCell Name="Cell72" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell73" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell74" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell75" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell71" Border.Lines="All" Text="[MainData.CH_TrustDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="5"/>
<TableCell Name="Cell72" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell73" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell74" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell75" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row6" Height="28.35">
<TableCell Name="Cell76" Border.Lines="All" Text="工程名称" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell77" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell78" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
<TableCell Name="Cell79" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell80" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell78" Border.Lines="All" Text="[MainData.ProjectName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="3"/>
<TableCell Name="Cell79" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell80" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell81" Border.Lines="All" Text="施工号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell82" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
<TableCell Name="Cell83" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell84" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell82" Border.Lines="All" Text="[MainData.ProjectCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="3"/>
<TableCell Name="Cell83" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell84" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell85" Border.Lines="All" Text="委托人" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell86" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="5"/>
<TableCell Name="Cell87" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell88" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell89" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell90" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell86" Border.Lines="All" Text="[MainData.TrustManName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="5"/>
<TableCell Name="Cell87" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell88" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell89" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell90" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row7" Height="37.8">
<TableCell Name="Cell91" Border.Lines="All" Text="工件信息" HorzAlign="Center" VertAlign="Center" RowSpan="3"/>
<TableCell Name="Cell92" Border.Lines="All" Text="工件编号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell93" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell94" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell93" Border.Lines="All" Text="[MainData.ISO_IsoNo]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell94" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell95" Border.Lines="All" Text="工件名称" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell96" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="4"/>
<TableCell Name="Cell96" Border.Lines="All" Text="[MainData.ProjectName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="4"/>
<TableCell Name="Cell97" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell98" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell99" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell100" Border.Lines="All" Text="工件类型" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell101" Border.Lines="All" Text="□容器□管道□试件" HorzAlign="Center" VertAlign="Center" ColSpan="5"/>
<TableCell Name="Cell101" Border.Lines="All" Text="□容器□管道□试件" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="5"/>
<TableCell Name="Cell102" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell103" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell104" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
@ -163,14 +211,14 @@
<TableRow Name="Row8" Height="37.8">
<TableCell Name="Cell106" Border.Lines="All"/>
<TableCell Name="Cell107" Border.Lines="All" Text="工件材质" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell108" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell109" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell108" Border.Lines="All" Text="[MainData.STE_Code]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell109" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell110" Border.Lines="All" Text="坡口型式" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell111" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell111" Border.Lines="All" Text="[MainData.JST_Name]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell112" Border.Lines="All" Text="检测比例" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell113" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell113" Border.Lines="All" Text="[MainData.NDTR_Name]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell114" Border.Lines="All" Text="焊接方法" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell115" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="6"/>
<TableCell Name="Cell115" Border.Lines="All" Text="[MainData.WME_Name]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="6"/>
<TableCell Name="Cell116" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell117" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell118" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
@ -180,13 +228,13 @@
<TableRow Name="Row9" Height="37.8">
<TableCell Name="Cell121" Border.Lines="All"/>
<TableCell Name="Cell122" Border.Lines="All" Text="热处理状态" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell123" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell123" Border.Lines="All" Text="[MainData.IsHot]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell124" Border.Lines="All" Text="检测时机" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell125" Border.Lines="All" Text="焊后" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell125" Border.Lines="All" Text="焊后" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell126" Border.Lines="All" Text="表面状况" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell127" Border.Lines="All" Text="机械打磨" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell127" Border.Lines="All" Text="机械打磨" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell128" Border.Lines="All" Text="检测地点" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell129" Border.Lines="All" Text="□厂房 □现场 □曝光室" HorzAlign="Center" VertAlign="Center" ColSpan="7"/>
<TableCell Name="Cell129" Border.Lines="All" Text="□厂房 □现场 □曝光室" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="7"/>
<TableCell Name="Cell130" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell131" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell132" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
@ -197,13 +245,13 @@
<TableRow Name="Row10" Height="37.8">
<TableCell Name="Cell136" Border.Lines="All" Text="器材" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
<TableCell Name="Cell137" Border.Lines="All" Text="射线种类" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell138" Border.Lines="All" Text="□X □γ" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell138" Border.Lines="All" Text="□X □γ" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell139" Border.Lines="All" Text="仪器型号和编号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell140" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
<TableCell Name="Cell141" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell142" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell143" Border.Lines="All" Text="焦点尺寸" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell144" Border.Lines="All" Text="□0.6□2.0□3.0□5.5" HorzAlign="Center" VertAlign="Center" ColSpan="7"/>
<TableCell Name="Cell144" Border.Lines="All" Text="□0.6□2.0□3.0□5.5" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="7"/>
<TableCell Name="Cell145" Border.Lines="All"/>
<TableCell Name="Cell146" Border.Lines="All"/>
<TableCell Name="Cell147" Border.Lines="All"/>
@ -214,15 +262,15 @@
<TableRow Name="Row11" Height="37.8">
<TableCell Name="Cell151" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell152" Border.Lines="All" Text="胶片型号/分类" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell153" Border.Lines="All" Text="Agfa C7、C5类□/Agfa C4、C4类□" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
<TableCell Name="Cell153" Border.Lines="All" Text="Agfa C7、C5类□/Agfa C4、C4类□" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="3"/>
<TableCell Name="Cell154" Border.Lines="All"/>
<TableCell Name="Cell155" Border.Lines="All"/>
<TableCell Name="Cell156" Border.Lines="All" Text="增感方式" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell157" Border.Lines="All" Text="Pb(□0.03/0.1,□0.1/□0.1)" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
<TableCell Name="Cell157" Border.Lines="All" Text="Pb(□0.03/0.1,□0.1/□0.1)" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="3"/>
<TableCell Name="Cell158" Border.Lines="All"/>
<TableCell Name="Cell159" Border.Lines="All"/>
<TableCell Name="Cell160" Border.Lines="All" Text="像质计" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell161" Border.Lines="All" Text="□ FE JB □专用FE" HorzAlign="Center" VertAlign="Center" ColSpan="5"/>
<TableCell Name="Cell161" Border.Lines="All" Text="□ FE JB □专用FE" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="5"/>
<TableCell Name="Cell162" Border.Lines="All"/>
<TableCell Name="Cell163" Border.Lines="All"/>
<TableCell Name="Cell164" Border.Lines="All"/>
@ -231,15 +279,15 @@
<TableRow Name="Row12" Height="37.8">
<TableCell Name="Cell166" Border.Lines="All" Text="检测技术参数" HorzAlign="Center" VertAlign="Center" RowSpan="4"/>
<TableCell Name="Cell167" Border.Lines="All" Text="标准、合格等级" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell168" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell168" Border.Lines="All" Text="[MainData.AcceptGrade2]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell169" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell170" Border.Lines="All" Text="检测技术等级" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell171" Border.Lines="All" Text="AB" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell171" Border.Lines="All" Text="AB" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell172" Border.Lines="All" Text="透照技术" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell173" Border.Lines="All" Text="□单片,□双片" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell173" Border.Lines="All" Text="□单片,□双片" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell174" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell175" Border.Lines="All" Text="透照方式" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell176" Border.Lines="All" Text="□SD □SS □FZ " HorzAlign="Center" VertAlign="Center" ColSpan="5"/>
<TableCell Name="Cell176" Border.Lines="All" Text="□SD □SS □FZ " HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="5"/>
<TableCell Name="Cell177" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell178" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell179" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
@ -265,15 +313,15 @@
<TableRow Name="Row14" Height="28.35">
<TableCell Name="Cell196" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell197" Border.Lines="All" Text="显定影配方" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell198" Border.Lines="All" Text="手工配方" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell198" Border.Lines="All" Text="手工配方" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell199" Border.Lines="All" Text="暗室处理方式" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell200" Border.Lines="All" Text="□自动□手工" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell200" Border.Lines="All" Text="□自动□手工" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell201" Border.Lines="All"/>
<TableCell Name="Cell202" Border.Lines="All" Text="显定影参数" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell203" Border.Lines="All" Text=" ℃,显 min,定 min" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell203" Border.Lines="All" Text=" ℃,显 min,定 min" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell204" Border.Lines="All" HorzAlign="Right"/>
<TableCell Name="Cell205" Border.Lines="All" Text="检测区域" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell206" Border.Lines="All" Text="焊缝及两侧各5mm" HorzAlign="Center" VertAlign="Center" ColSpan="5"/>
<TableCell Name="Cell206" Border.Lines="All" Text="焊缝及两侧各5mm" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="5"/>
<TableCell Name="Cell207" Border.Lines="All"/>
<TableCell Name="Cell208" Border.Lines="All"/>
<TableCell Name="Cell209" Border.Lines="All"/>
@ -282,13 +330,13 @@
<TableRow Name="Row15" Height="37.8">
<TableCell Name="Cell211" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell212" Border.Lines="All" Text="底片黑度" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell213" Border.Lines="All" Text="□1.5~4.5/□2.0~4.5" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell213" Border.Lines="All" Text="□1.5~4.5/□2.0~4.5" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell214" Border.Lines="All"/>
<TableCell Name="Cell215" Border.Lines="All" Text="观片技术" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell216" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell217" Border.Lines="All" Text="□单片,□双片" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell217" Border.Lines="All" Text="□单片,□双片" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell218" Border.Lines="All" Text="无用射线防护" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell219" Border.Lines="All" Text="□背散射防护,□滤光板防护,□侧散射防护" HorzAlign="Center" VertAlign="Center" ColSpan="7"/>
<TableCell Name="Cell219" Border.Lines="All" Text="□背散射防护,□滤光板防护,□侧散射防护" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="7"/>
<TableCell Name="Cell220" Border.Lines="All"/>
<TableCell Name="Cell221" Border.Lines="All"/>
<TableCell Name="Cell222" Border.Lines="All"/>
@ -402,11 +450,11 @@
<TableRow Name="Row21" Height="28.35">
<TableCell Name="Cell301" Border.Lines="All" Text="工程编号" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell302" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell303" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
<TableCell Name="Cell304" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell305" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell303" Border.Lines="All" Text="[MainData.TestEngineeringCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="3"/>
<TableCell Name="Cell304" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell305" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell306" Border.Lines="All" Text="记录编号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell307" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="4"/>
<TableCell Name="Cell307" Border.Lines="All" Text="[MainData.RecordCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="4"/>
<TableCell Name="Cell308" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell309" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell310" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
@ -419,11 +467,11 @@
<TableRow Name="Row22" Height="28.35">
<TableCell Name="Cell316" Border.Lines="All" Text="工件编号" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell317" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell318" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
<TableCell Name="Cell319" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell320" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell318" Border.Lines="All" Text="[MainData.ISO_IsoNo]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="3"/>
<TableCell Name="Cell319" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell320" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell321" Border.Lines="All" Text="工件名称" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell322" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="9"/>
<TableCell Name="Cell322" Border.Lines="All" Text="[MainData.ProjectName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="9"/>
<TableCell Name="Cell323" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell324" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell325" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
@ -454,7 +502,7 @@
</ChildBand>
</PageHeaderBand>
<DataBand Name="Data1" Top="716.75" Width="718.2" Height="37.8" Guides="0,37.8">
<TableObject Name="Table3" Width="718.2" Height="37.8">
<TableObject Name="Table3" Width="718.2" Height="37.8" ManualBuildEvent="Table3_ManualBuild">
<TableColumn Name="Column31" Width="18.9"/>
<TableColumn Name="Column32"/>
<TableColumn Name="Column33"/>
@ -471,21 +519,21 @@
<TableColumn Name="Column44" Width="18.9"/>
<TableColumn Name="Column45" Width="18.9"/>
<TableRow Name="Row40" Height="37.8">
<TableCell Name="Cell586" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell587" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell588" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell589" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell590" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell591" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell592" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell593" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell594" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell595" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell596" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell597" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell598" Border.Lines="All" HorzAlign="Center" VertAlign="Center" ColSpan="3"/>
<TableCell Name="Cell599" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell600" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell586" Border.Lines="All" Text="[Data.Num]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell587" Border.Lines="All" Text="[Data.JOT_JointNo]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell588" Border.Lines="All" Text="[Data.JOT_JointDesc]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell589" Border.Lines="All" Text="[Data.WED_Code]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell590" Border.Lines="All" Text="[Data.FilmNum]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell591" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell592" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell593" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell594" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell595" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell596" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell597" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell598" Border.Lines="All" Text="[Data.CheckAddress]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="3"/>
<TableCell Name="Cell599" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell600" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
</TableObject>
</DataBand>

View File

@ -0,0 +1,470 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="05/22/2025 14:47:29" ReportInfo.Modified="05/22/2025 22:31:20" 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();
// 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
Table2.PrintRow(0);
Table2.PrintColumns();
// go next data source row
rowData.Next();
}
}
}
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJ/TxzLfzHst7IVVfblfcBEQ==">
<TableDataSource Name="MainData" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="MainData">
<Column Name="TestEngineeringCode" DataType="System.String" PropName="attach_image_id"/>
<Column Name="RecordCode" DataType="System.String" PropName="image_series"/>
<Column Name="TrustUnitName" DataType="System.String" PropName="file_name"/>
<Column Name="ConUnitName" DataType="System.String" PropName="file_size"/>
<Column Name="CH_TrustDate" DataType="System.String" PropName="file_type"/>
<Column Name="ProjectName" DataType="System.String" PropName="created_date"/>
<Column Name="ProjectCode" DataType="System.String" PropName="created_by"/>
<Column Name="TrustManName" DataType="System.String" PropName="series_desc"/>
<Column Name="ISO_IsoNo" DataType="System.String" PropName="file_path"/>
<Column Name="STE_Code" DataType="System.String" PropName="series_timestamp"/>
<Column Name="NDTR_Name" DataType="System.String" PropName="Column"/>
<Column Name="CH_NDTCriteria" DataType="System.String" PropName="Column"/>
<Column Name="AcceptGrade" DataType="System.String" PropName="Column"/>
</TableDataSource>
<TableDataSource Name="Data" DataType="System.Int32" PropName="AttachFile" Enabled="true" TableName="Data">
<Column Name="Number" DataType="System.String" PropName="AttachFileId"/>
<Column Name="JOT_JointNo" DataType="System.String" PropName="ToKeyId"/>
<Column Name="Specification" DataType="System.String" PropName="AttachSource"/>
<Column Name="WED_Code" DataType="System.String" PropName="AttachUrl"/>
</TableDataSource>
</MsSqlDataConnection>
</Dictionary>
<ReportPage Name="Page1" LeftMargin="25" TopMargin="20" RightMargin="20" BottomMargin="20" FirstPageSource="4" OtherPagesSource="4" Guides="0,623.7,37.8,103.95,75.6,66.15,85.05,207.9,283.5,387.45,472.5,538.65,28.35,349.65,624.18,160.73,56.78,141.83,151.28,47.25,255.15,415.8,463.05">
<PageHeaderBand Name="PageHeader1" Width="623.7" Height="519.75" PrintOn="FirstPage" Guides="0,519.75,18.9,47.25,28.35,85.05,37.8,113.4,141.75,170.1,283.5,198.45,226.8,255.15,340.2,311.85,481.95,368.55,396.9,425.25,453.6">
<TableObject Name="Table1" Width="623.7" Height="519.75">
<TableColumn Name="Column1" Width="28.35"/>
<TableColumn Name="Column2" Width="37.8"/>
<TableColumn Name="Column3" Width="37.8"/>
<TableColumn Name="Column4" Width="103.95"/>
<TableColumn Name="Column5" Width="75.6"/>
<TableColumn Name="Column6"/>
<TableColumn Name="Column7" Width="37.8"/>
<TableColumn Name="Column8" Width="85.05"/>
<TableColumn Name="Column9"/>
<TableColumn Name="Column10" Width="85.05"/>
<TableRow Name="Row1">
<TableCell Name="Cell1" Text="YA-BK-111-2019" HorzAlign="Right" ColSpan="10"/>
<TableCell Name="Cell2" HorzAlign="Right"/>
<TableCell Name="Cell3" HorzAlign="Right"/>
<TableCell Name="Cell4" HorzAlign="Right"/>
<TableCell Name="Cell5" HorzAlign="Right"/>
<TableCell Name="Cell91" HorzAlign="Right"/>
<TableCell Name="Cell92" HorzAlign="Right"/>
<TableCell Name="Cell93" HorzAlign="Right"/>
<TableCell Name="Cell94" HorzAlign="Right"/>
<TableCell Name="Cell163"/>
</TableRow>
<TableRow Name="Row2" Height="28.35">
<TableCell Name="Cell6" Text="浙江石油化工有限公司" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" ColSpan="10"/>
<TableCell Name="Cell7"/>
<TableCell Name="Cell8"/>
<TableCell Name="Cell9"/>
<TableCell Name="Cell10"/>
<TableCell Name="Cell95"/>
<TableCell Name="Cell96"/>
<TableCell Name="Cell97"/>
<TableCell Name="Cell98"/>
<TableCell Name="Cell164"/>
</TableRow>
<TableRow Name="Row3" Height="37.8">
<TableCell Name="Cell11" Text="渗 透 检 测 记 录" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold" ColSpan="10"/>
<TableCell Name="Cell12" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold"/>
<TableCell Name="Cell13" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold"/>
<TableCell Name="Cell14" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold"/>
<TableCell Name="Cell15" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold"/>
<TableCell Name="Cell99" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold"/>
<TableCell Name="Cell100" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold"/>
<TableCell Name="Cell101" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold"/>
<TableCell Name="Cell102" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold"/>
<TableCell Name="Cell165"/>
</TableRow>
<TableRow Name="Row4" Height="28.35">
<TableCell Name="Cell16" Border.Lines="All" Text="工程编号" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell17" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell18" Border.Lines="All" Text="[MainData.TestEngineeringCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell19" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell20" Border.Lines="All" Text="指导书编号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell103" Border.Lines="All" Text="YA-TYGY-PT-" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell104" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell105" Border.Lines="All" Text="记录编号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell106" Border.Lines="All" Text="[MainData.RecordCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell166" Border.Lines="All" Text="共[TotalPages#]页 第[Page#]页" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row5" Height="28.35">
<TableCell Name="Cell21" Border.Lines="All" Text="委托单位" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell22" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell23" Border.Lines="All" Text="[MainData.TrustUnitName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell24" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell25" Border.Lines="All" Text="施工单位" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell107" Border.Lines="All" Text="[MainData.ConUnitName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell108" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell109" Border.Lines="All" Text="委托日期" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell110" Border.Lines="All" Text="[MainData.CH_TrustDate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell167" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row6" Height="28.35">
<TableCell Name="Cell26" Border.Lines="All" Text="工程名称" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell27" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell28" Border.Lines="All" Text="[MainData.ProjectName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell29" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell30" Border.Lines="All" Text="施工号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell111" Border.Lines="All" Text="[MainData.ProjectCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell112" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell113" Border.Lines="All" Text="委托人" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell114" Border.Lines="All" Text="[MainData.TrustManName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell168" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row7" Height="28.35">
<TableCell Name="Cell31" Border.Lines="All" Text="工件信息" HorzAlign="Center" VertAlign="Center" RowSpan="4"/>
<TableCell Name="Cell32" Border.Lines="All" Text="工件编号" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell33" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell34" Border.Lines="All" Text="[MainData.ISO_IsoNo]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell35" Border.Lines="All" Text="工件名称" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell115" Border.Lines="All" Text="[MainData.ProjectName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="5"/>
<TableCell Name="Cell116" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell117" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell118" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell169" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
</TableRow>
<TableRow Name="Row8" Height="28.35">
<TableCell Name="Cell36" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell37" Border.Lines="All" Text="工件类型" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell38" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell39" Border.Lines="All" Text="□管道□容器" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell40" Border.Lines="All" Text="工件材质" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell119" Border.Lines="All" Text="[MainData.STE_Code]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell120" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell121" Border.Lines="All" Text="热处理状况" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell122" Border.Lines="All" Text="□消应力□" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell170" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row9" Height="28.35">
<TableCell Name="Cell41" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell42" Border.Lines="All" Text="检测时机" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell43" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell44" Border.Lines="All" Text="□焊后 □加工后" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell45" Border.Lines="All" Text="表面状况" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell123" Border.Lines="All" Text="□机械打磨 □光洁" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell124" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell125" Border.Lines="All" Text="检测比例" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell126" Border.Lines="All" Text="[MainData.NDTR_Name]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell171" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row10" Height="28.35">
<TableCell Name="Cell46" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell47" Border.Lines="All" Text="检测地点" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell48" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell49" Border.Lines="All" Text="□实验室□厂房□现场" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell50" Border.Lines="All" Text="检测区域" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell127" Border.Lines="All" Text="□焊缝两侧+10mm □" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="5"/>
<TableCell Name="Cell128" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell129" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell130" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell172" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
</TableRow>
<TableRow Name="Row11" Height="28.35">
<TableCell Name="Cell51" Border.Lines="All" Text="器材" HorzAlign="Center" VertAlign="Center" RowSpan="2"/>
<TableCell Name="Cell52" Border.Lines="All" Text="渗透剂牌号" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell53" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell54" Border.Lines="All" Text="□DPT-5A, □" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell55" Border.Lines="All" Text="渗透剂批号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell131" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell132" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell133" Border.Lines="All" Text="显像剂批号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell134" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell173" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row12" Height="28.35">
<TableCell Name="Cell56" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell57" Border.Lines="All" Text="灵敏度试块" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell58" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell59" Border.Lines="All" Text="B型试块" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell60" Border.Lines="All" Text="照度计型号/编号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell135" Border.Lines="All" Text="DSE-200E/L" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell136" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell137" Border.Lines="All" Text="黑光灯型号/编号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell138" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell174" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row13" Height="28.35">
<TableCell Name="Cell61" Border.Lines="All" Text="检测技术" HorzAlign="Center" VertAlign="Center" RowSpan="5"/>
<TableCell Name="Cell62" Border.Lines="All" Text="检测标准" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell63" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell64" Border.Lines="All" Text="[MainData.CH_NDTCriteria]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell65" Border.Lines="All" Text="合格等级" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell139" Border.Lines="All" Text="[MainData.AcceptGrade]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell140" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell141" Border.Lines="All" Text="灵敏度等级" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell142" Border.Lines="All" Text="□A□B□C" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell175" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row14" Height="28.35">
<TableCell Name="Cell66" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell67" Border.Lines="All" Text="检测方法" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell68" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell69" Border.Lines="All" Text="□Ⅱc-d□" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell70" Border.Lines="All" Text="检测温度" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell143" Border.Lines="All" Text="℃" HorzAlign="Right" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell144" Border.Lines="All" HorzAlign="Right" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell145" Border.Lines="All" Text="预处理方法" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell146" Border.Lines="All" Text="□溶剂清洗□" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell176" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row15" Height="28.35">
<TableCell Name="Cell71" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell72" Border.Lines="All" Text="渗透剂施加方法" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell73" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell74" Border.Lines="All" Text="□喷□涂□刷" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell75" Border.Lines="All" Text="渗透时间" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell147" Border.Lines="All" Text="min" HorzAlign="Right" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell148" Border.Lines="All" HorzAlign="Right" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell149" Border.Lines="All" Text="去除方法" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell150" Border.Lines="All" Text="沾有清洗剂的布擦除" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell177" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row16" Height="28.35">
<TableCell Name="Cell76" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell77" Border.Lines="All" Text="干燥方法及时间" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell78" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell79" Border.Lines="All" Text="□自然干燥 □" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell80" Border.Lines="All" Text="显像时间" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell151" Border.Lines="All" Text="min" HorzAlign="Right" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell152" Border.Lines="All" HorzAlign="Right" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell153" Border.Lines="All" Text="观察条件" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell154" Border.Lines="All" Text="表面光照度 lx" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell178" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row17" Height="28.35">
<TableCell Name="Cell81" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell82" Border.Lines="All" Text="观察方式" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell83" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell84" Border.Lines="All" Text="目视" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell85" Border.Lines="All" Text="后处理方法" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell155" Border.Lines="All" Text="□溶剂清洗 □水清洗" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="5"/>
<TableCell Name="Cell156" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell157" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell158" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell179" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
</TableRow>
<TableRow Name="Row18" Height="37.8">
<TableCell Name="Cell86" Border.Lines="All" Text="序号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell87" Border.Lines="All" Text="检件编号/部位名称" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell88" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell89" Border.Lines="All" Text="检件规格" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell90" Border.Lines="All" Text="焊工号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell159" Border.Lines="All" Text="缺陷性质" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell160" Border.Lines="All" Text="缺陷位置" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell161" Border.Lines="All" Text="缺陷尺寸 mm" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell162" Border.Lines="All" Text="质量等级" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell180" Border.Lines="All" Text="备注" HorzAlign="Center" VertAlign="Center"/>
</TableRow>
</TableObject>
<ChildBand Name="Child2" Top="523.75" Width="623.7" Height="179.55" PrintOn="LastPage, OddPages, EvenPages, RepeatedBand, SinglePage" Guides="0,179.55,18.9,47.25,28.35,85.05,37.8,113.4,141.75">
<TableObject Name="Table5" Width="623.7" Height="179.55">
<TableColumn Name="Column37" Width="28.35"/>
<TableColumn Name="Column38" Width="37.8"/>
<TableColumn Name="Column39" Width="37.8"/>
<TableColumn Name="Column40" Width="103.95"/>
<TableColumn Name="Column41" Width="75.6"/>
<TableColumn Name="Column42"/>
<TableColumn Name="Column43" Width="37.8"/>
<TableColumn Name="Column44" Width="85.05"/>
<TableColumn Name="Column45"/>
<TableColumn Name="Column46" Width="85.05"/>
<TableRow Name="Row40">
<TableCell Name="Cell398" Text="YA-BK-111.1-2019" HorzAlign="Right" VertAlign="Center" ColSpan="10"/>
<TableCell Name="Cell399" HorzAlign="Right" VertAlign="Center"/>
<TableCell Name="Cell400" HorzAlign="Right" VertAlign="Center"/>
<TableCell Name="Cell401" HorzAlign="Right" VertAlign="Center"/>
<TableCell Name="Cell402" HorzAlign="Right" VertAlign="Center"/>
<TableCell Name="Cell423" HorzAlign="Right" VertAlign="Center"/>
<TableCell Name="Cell424" HorzAlign="Right" VertAlign="Center"/>
<TableCell Name="Cell425" HorzAlign="Right" VertAlign="Center"/>
<TableCell Name="Cell426" HorzAlign="Right" VertAlign="Center"/>
<TableCell Name="Cell427" HorzAlign="Right" VertAlign="Center"/>
</TableRow>
<TableRow Name="Row41" Height="28.35">
<TableCell Name="Cell403" Text="浙江石油化工有限公司" HorzAlign="Center" VertAlign="Center" Font="宋体, 12pt" ColSpan="10"/>
<TableCell Name="Cell404" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell405" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell406" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell407" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell428" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell429" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell430" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell431" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell432" HorzAlign="Center" VertAlign="Center"/>
</TableRow>
<TableRow Name="Row42" Height="37.8">
<TableCell Name="Cell408" Text="渗透检测记录" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold" ColSpan="10"/>
<TableCell Name="Cell409" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell410" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell411" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell412" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell433" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell434" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell435" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell436" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell437" HorzAlign="Center" VertAlign="Center"/>
</TableRow>
<TableRow Name="Row43" Height="28.35">
<TableCell Name="Cell413" Border.Lines="All" Text="工程编号" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell414" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell415" Border.Lines="All" Text="[MainData.TestEngineeringCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell416" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell417" Border.Lines="All" Text="记录编号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell438" Border.Lines="All" Text="[MainData.RecordCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="4"/>
<TableCell Name="Cell439" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell440" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell441" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell442" Border.Lines="All" Text="共[TotalPages#]页 第[Page#]页" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
<TableRow Name="Row44" Height="28.35">
<TableCell Name="Cell418" Border.Lines="All" Text="工件编号" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell419" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell420" Border.Lines="All" Text="[MainData.ISO_IsoNo]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell421" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell422" Border.Lines="All" Text="工件名称" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell443" Border.Lines="All" Text="[MainData.ProjectName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="5"/>
<TableCell Name="Cell444" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell445" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell446" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell447" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
</TableRow>
<TableRow Name="Row45" Height="37.8">
<TableCell Name="Cell448" Border.Lines="All" Text="序号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell449" Border.Lines="All" Text="检件编号/部位名称" HorzAlign="Center" VertAlign="Center" ColSpan="2"/>
<TableCell Name="Cell450" Border.Lines="All" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell451" Border.Lines="All" Text="检件规格" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell452" Border.Lines="All" Text="焊工号" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell453" Border.Lines="All" Text="缺陷性质" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell454" Border.Lines="All" Text="缺陷位置" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell455" Border.Lines="All" Text="缺陷尺寸 mm" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell456" Border.Lines="All" Text="质量等级" HorzAlign="Center" VertAlign="Center"/>
<TableCell Name="Cell457" Border.Lines="All" Text="备注" HorzAlign="Center" VertAlign="Center"/>
</TableRow>
</TableObject>
</ChildBand>
</PageHeaderBand>
<DataBand Name="Data1" Top="707.3" Width="623.7" Height="28.35" Guides="0,28.35">
<TableObject Name="Table2" Width="623.7" Height="28.35" ManualBuildEvent="Table2_ManualBuild">
<TableColumn Name="Column11" Width="28.35"/>
<TableColumn Name="Column12" Width="37.8"/>
<TableColumn Name="Column13" Width="37.8"/>
<TableColumn Name="Column14" Width="103.95"/>
<TableColumn Name="Column15" Width="75.6"/>
<TableColumn Name="Column16"/>
<TableColumn Name="Column17" Width="37.8"/>
<TableColumn Name="Column18" Width="85.05"/>
<TableColumn Name="Column19"/>
<TableColumn Name="Column20" Width="85.05"/>
<TableRow Name="Row36" Height="28.35">
<TableCell Name="Cell351" Border.Lines="All" Text="[Data.Number]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell352" Border.Lines="All" Text="[Data.JOT_JointNo]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell353" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell354" Border.Lines="All" Text="[Data.Specification]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell355" Border.Lines="All" Text="[Data.WED_Code]" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell356" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell357" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell358" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell359" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell360" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
</TableObject>
</DataBand>
<ColumnFooterBand Name="ColumnFooter1" Top="772" Width="623.7">
<ChildBand Name="Child1" Top="739.65" Width="623.7" Height="28.35" Guides="0,28.35" FillUnusedSpace="true">
<TableObject Name="Table3" Width="623.7" Height="28.35">
<TableColumn Name="Column21" Width="28.35"/>
<TableColumn Name="Column22" Width="37.8"/>
<TableColumn Name="Column23" Width="37.8"/>
<TableColumn Name="Column24" Width="103.95"/>
<TableColumn Name="Column25" Width="75.6"/>
<TableColumn Name="Column26"/>
<TableColumn Name="Column27" Width="37.8"/>
<TableColumn Name="Column28" Width="85.05"/>
<TableColumn Name="Column29"/>
<TableColumn Name="Column30" Width="85.05"/>
<TableRow Name="Row37" Height="28.35">
<TableCell Name="Cell361" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell362" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt" ColSpan="2"/>
<TableCell Name="Cell363" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell364" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell365" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell366" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell367" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell368" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell369" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
<TableCell Name="Cell370" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 9pt"/>
</TableRow>
</TableObject>
</ChildBand>
</ColumnFooterBand>
<PageFooterBand Name="PageFooter1" Top="776" Width="623.7" Height="82.97" Guides="0,49.76,22.05,27.71,56.7,75.6">
<TableObject Name="Table4" Width="624.18" Height="49.76" Border.Lines="All">
<TableColumn Name="Column31" Width="56.78"/>
<TableColumn Name="Column32" Width="160.73"/>
<TableColumn Name="Column33" Width="56.78"/>
<TableColumn Name="Column34" Width="141.83"/>
<TableColumn Name="Column35" Width="56.78"/>
<TableColumn Name="Column36" Width="151.28"/>
<TableRow Name="Row38" Height="22.05">
<TableCell Name="Cell371" Text="□经复验,检测灵敏度符合标准要求。" VertAlign="Center" ColSpan="6"/>
<TableCell Name="Cell372" VertAlign="Center"/>
<TableCell Name="Cell373" VertAlign="Center"/>
<TableCell Name="Cell374" VertAlign="Center"/>
<TableCell Name="Cell375" VertAlign="Center"/>
<TableCell Name="Cell396" VertAlign="Center"/>
</TableRow>
<TableRow Name="Row39" Height="27.71">
<TableCell Name="Cell376" Border.Lines="Bottom" Text=" 检测部位见无损检测部位示意图" VertAlign="Center" ColSpan="6"/>
<TableCell Name="Cell377" Border.Lines="Bottom" VertAlign="Center"/>
<TableCell Name="Cell378" Border.Lines="Bottom" VertAlign="Center"/>
<TableCell Name="Cell379" Border.Lines="Bottom" VertAlign="Center"/>
<TableCell Name="Cell380" Border.Lines="Bottom" VertAlign="Center"/>
<TableCell Name="Cell397" Border.Lines="Bottom" VertAlign="Center"/>
</TableRow>
</TableObject>
<TextObject Name="Text1" Top="56.7" Width="47.25" Height="18.9" Text="检测:" VertAlign="Center"/>
<TextObject Name="Text2" Left="207.9" Top="56.7" Width="47.25" Height="18.9" Text="复核:" VertAlign="Center"/>
<TextObject Name="Text3" Left="415.8" Top="56.7" Width="47.25" Height="18.9" Text="日期:" VertAlign="Center"/>
</PageFooterBand>
</ReportPage>
</Report>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/21/2024 15:06:49" ReportInfo.Modified="11/21/2024 16:39:05" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/21/2024 15:06:49" ReportInfo.Modified="05/21/2025 15:34:20" 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="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJFxrVJWQ31v1ZqtNZoe50mA==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJ9r3F0eoUTDAB/m8eAY0SOg==">
<TableDataSource Name="MainData" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="MainData">
<Column Name="ProjectName" DataType="System.String" PropName="attach_image_id"/>
<Column Name="ProjectCode" DataType="System.String" PropName="image_series"/>

View File

@ -0,0 +1,307 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="05/21/2025 09:22:22" ReportInfo.Modified="05/21/2025 14:04:59" 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();
// 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
Table2.PrintRow(0);
Table2.PrintColumns();
// go next data source row
rowData.Next();
}
}
}
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJA3/NvShCP20I7zF7Br9qWw==">
<TableDataSource Name="MainData" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="MainData">
<Column Name="ProjectName" DataType="System.String" PropName="attach_image_id"/>
<Column Name="ProjectCode" DataType="System.String" PropName="image_series"/>
<Column Name="TrustUnitName" DataType="System.String" PropName="file_name"/>
<Column Name="ContractUnitName" DataType="System.String" PropName="file_size"/>
<Column Name="HardTestReportCode" DataType="System.String" PropName="file_type"/>
<Column Name="ISO_IsoNo" DataType="System.String" PropName="created_date"/>
<Column Name="TestStandard" DataType="System.String" PropName="created_by"/>
<Column Name="MaterialStandard" DataType="System.String" PropName="series_desc"/>
<Column Name="STE_Code" DataType="System.String" PropName="file_path"/>
<Column Name="TestRate" DataType="System.String" PropName="series_timestamp"/>
<Column Name="TestMethod" DataType="System.String" PropName="Column"/>
<Column Name="HotProessState" DataType="System.String" PropName="Column"/>
<Column Name="EquipmentCode" DataType="System.String" PropName="Column"/>
</TableDataSource>
</MsSqlDataConnection>
<MsSqlDataConnection Name="Connection1" ConnectionString="rijcmlqM3/HbiZANEYP3Y6oNtE7mnpx+oG3GHIPNmrMCiyY8aaCVynM0fYlZ5YZKM9WrQe9hDk43vX9Nrar7yVij5ew8q/J9lwWi1b952G1Um0cxl494yv4mzdxck6kbW3d7FWyIyy5Y3kZKgYQAMl3yENzWQ5YW8BhaGCHvLBX14AYWM43EIlupHCcnqYTj+lwXcpV">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="NewJOT_JointNoStr1" DataType="System.String" PropName="attach_image_id"/>
<Column Name="HardNessValue1" DataType="System.String" PropName="Column"/>
<Column Name="NewJOT_JointNoStr2" DataType="System.String" PropName="Column"/>
<Column Name="HardNessValue2" DataType="System.String" PropName="Column"/>
<Column Name="NewJOT_JointNoStr3" DataType="System.String" PropName="Column"/>
<Column Name="HardNessValue3" DataType="System.String" PropName="Column"/>
</TableDataSource>
</MsSqlDataConnection>
</Dictionary>
<ReportPage Name="Page1" LeftMargin="25" TopMargin="20" RightMargin="20" BottomMargin="20" FirstPageSource="4" OtherPagesSource="4" Guides="0,616.25,122.85,37.8,397.9,10.45,85.05,66.15,501.85,56.7,94.5,75.6,521.75,208.9,293.95,198.45,360.1,445.15,47.25,19.9,511.3,615.51,204.75,206.01,409.5">
<PageHeaderBand Name="PageHeader1" Width="623.7" Height="292.95" Guides="0,292.95,113.4,47.25,85.05,37.8,28.35,160.65,198.45,226.8,255.15">
<TableObject Name="Table1" Width="616.25" Height="292.95">
<TableColumn Name="Column1" Width="85.05"/>
<TableColumn Name="Column2" Width="37.8"/>
<TableColumn Name="Column3" Width="75.6"/>
<TableColumn Name="Column4" Width="10.45"/>
<TableColumn Name="Column5" Width="85.05"/>
<TableColumn Name="Column6"/>
<TableColumn Name="Column7" Width="37.8"/>
<TableColumn Name="Column8" Width="47.25"/>
<TableColumn Name="Column9" Width="56.7"/>
<TableColumn Name="Column10" Width="19.9"/>
<TableColumn Name="Column11" Width="94.5"/>
<TableRow Name="Row1" Height="47.25">
<TableCell Name="Cell1" Border.Lines="All" Text="SH/T 3503-J130" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2" RowSpan="3"/>
<TableCell Name="Cell2" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell3" Border.Lines="Left, Right, Top" Text="硬度检测报告" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold" ColSpan="5" RowSpan="2"/>
<TableCell Name="Cell4" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell5" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell26" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell27" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell28" Border.Lines="Left, Top" Text="工程名称:" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell29" Border.Lines="Left, Top" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell30" Border.Lines="Right, Top" Text="[MainData.ProjectName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell31" Border.Lines="Right, Top" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row2" Height="37.8">
<TableCell Name="Cell6" 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" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell9" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell10" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell32" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell33" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell34" Border.Lines="Left" Text="(施工号):" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell35" Border.Lines="Left" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell36" Border.Lines="Right" Text="[MainData.ProjectCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell37" Border.Lines="Right" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row3" Height="28.35">
<TableCell Name="Cell11" 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="Left, Right, Bottom" Text="第[Page#]页 共[TotalPages#]页" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="5"/>
<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="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="Left, Right, Bottom" Text="单位工程名称:" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="4"/>
<TableCell Name="Cell41" Border.Lines="Left, Right, Bottom" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell42" Border.Lines="Right, Bottom" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell43" Border.Lines="Right, Bottom" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row4" Height="47.25">
<TableCell Name="Cell16" Border.Lines="All" Text="委托单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell17" Border.Lines="All" Text="[MainData.TrustUnitName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell18" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell19" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell20" Border.Lines="All" Text="施工单位" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell44" Border.Lines="All" Text="[MainData.ContractUnitName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell45" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell46" Border.Lines="All" Text="报告编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell47" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell48" Border.Lines="All" Text="[MainData.HardTestReportCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell49" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row5" Height="37.8">
<TableCell Name="Cell21" Border.Lines="All" Text="检件名称" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell22" Border.Lines="All" Text="[MainData.ISO_IsoNo]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell23" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell24" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell25" Border.Lines="All" Text="检测标准" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell50" Border.Lines="All" Text="[MainData.TestStandard]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell51" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell52" Border.Lines="All" Text="验收标准" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell53" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell54" Border.Lines="All" Text="[MainData.MaterialStandard]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell55" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row6" Height="28.35">
<TableCell Name="Cell56" Border.Lines="All" Text="检件规格" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell57" Border.Lines="All" Text="见检验部位编号" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell58" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell59" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell60" Border.Lines="All" Text="检件材质" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell61" Border.Lines="All" Text="[MainData.STE_Code]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell62" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell63" Border.Lines="All" Text="检测比例" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell64" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell65" Border.Lines="All" Text="[MainData.TestRate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell66" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row7" Height="28.35">
<TableCell Name="Cell67" Border.Lines="All" Text="检测方法" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell68" Border.Lines="All" Text="[MainData.TestMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3"/>
<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" Text="热处理状态" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell72" Border.Lines="All" Text="[MainData.HotProessState]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell73" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell74" Border.Lines="All" Text="设备型号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell75" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell76" Border.Lines="All" Text="[MainData.EquipmentCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell77" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row8" Height="37.8">
<TableCell Name="Cell78" Border.Lines="All" Text="检测部位编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell79" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell80" Border.Lines="All" Text="硬度值HB" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell81" Border.Lines="All" Text="检测部位编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell82" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell83" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell84" Border.Lines="All" Text="硬度值HB" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell85" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell86" Border.Lines="All" Text="检测部位编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell87" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell88" Border.Lines="All" Text="硬度值HB" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</PageHeaderBand>
<DataBand Name="Data1" Top="296.95" Width="623.7" Height="37.8" Guides="0,37.8">
<TableObject Name="Table2" Width="616.25" Height="37.8" ManualBuildEvent="Table2_ManualBuild">
<TableColumn Name="Column12" Width="85.05"/>
<TableColumn Name="Column13" Width="37.8"/>
<TableColumn Name="Column14" Width="75.6"/>
<TableColumn Name="Column15" Width="10.45"/>
<TableColumn Name="Column16" Width="85.05"/>
<TableColumn Name="Column17"/>
<TableColumn Name="Column18" Width="37.8"/>
<TableColumn Name="Column19" Width="47.25"/>
<TableColumn Name="Column20"/>
<TableColumn Name="Column21" Width="10.45"/>
<TableColumn Name="Column22" Width="94.5"/>
<TableRow Name="Row16" Height="37.8">
<TableCell Name="Cell166" Border.Lines="All" Text="[Data.NewJOT_JointNoStr1]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell167" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell168" Border.Lines="All" Text="[Data.HardNessValue1]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell169" Border.Lines="All" Text="[Data.NewJOT_JointNoStr2]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell170" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell171" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell172" Border.Lines="All" Text="[Data.HardNessValue2]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell173" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell174" Border.Lines="All" Text="[Data.NewJOT_JointNoStr3]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell175" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell176" Border.Lines="All" Text="[Data.HardNessValue3]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
</TableObject>
</DataBand>
<ColumnFooterBand Name="ColumnFooter1" Top="380.55" Width="623.7">
<ChildBand Name="Child1" Top="338.75" Width="623.7" Height="37.8" Guides="0,37.8" FillUnusedSpace="true">
<TableObject Name="Table4" Width="616.25" Height="37.8">
<TableColumn Name="Column26" Width="85.05"/>
<TableColumn Name="Column27" Width="37.8"/>
<TableColumn Name="Column28" Width="75.6"/>
<TableColumn Name="Column29" Width="10.45"/>
<TableColumn Name="Column30" Width="85.05"/>
<TableColumn Name="Column31"/>
<TableColumn Name="Column32" Width="37.8"/>
<TableColumn Name="Column33" Width="47.25"/>
<TableColumn Name="Column34"/>
<TableColumn Name="Column35" Width="10.45"/>
<TableColumn Name="Column36" Width="94.5"/>
<TableRow Name="Row21" Height="37.8">
<TableCell Name="Cell195" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell196" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell197" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell198" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell199" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell200" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell201" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell202" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell203" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell204" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell205" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</ChildBand>
</ColumnFooterBand>
<PageFooterBand Name="PageFooter1" Top="384.55" Width="623.7" Height="187.09" PrintOn="FirstPage" Guides="0,187.09,23.62,102.05,78.43,154.02">
<TableObject Name="Table3" Width="615.51" Height="187.09" Border.Lines="Left, Top">
<TableColumn Name="Column23" Width="204.75"/>
<TableColumn Name="Column24" Width="204.75"/>
<TableColumn Name="Column25" Width="206.01"/>
<TableRow Name="Row17" Height="23.62">
<TableCell Name="Cell177" Border.Lines="Left, Right, Top" Text="检测结论:" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell178" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell179" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row18" Height="78.43">
<TableCell Name="Cell182" Border.Lines="Left, Right, Bottom" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell183" Border.Lines="Left, Right, Bottom" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell184" Border.Lines="Left, Right, Bottom" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row19" Height="51.97">
<TableCell Name="Cell187" Border.Lines="Left, Right, Top" Text="试验人:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell188" Border.Lines="Left, Right, Top" Text="审核人:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell189" Border.Lines="Left, Right, Top" Text="检测单位(公章):" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row20" Height="33.07">
<TableCell Name="Cell192" Border.Lines="Left, Right, Bottom" Text="资格:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell193" Border.Lines="Left, Right, Bottom" Text="资格:" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell194" Border.Lines="Left, Right, Bottom" Text="报告日期:" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
<ChildBand Name="Child2" Top="575.64" Width="623.7" Height="37.8" PrintOn="LastPage, OddPages, EvenPages, RepeatedBand, SinglePage" Guides="0,37.8">
<TableObject Name="Table5" Width="616.25" Height="37.8">
<TableColumn Name="Column37" Width="85.05"/>
<TableColumn Name="Column38" Width="37.8"/>
<TableColumn Name="Column39" Width="75.6"/>
<TableColumn Name="Column40" Width="10.45"/>
<TableColumn Name="Column41" Width="85.05"/>
<TableColumn Name="Column42"/>
<TableColumn Name="Column43" Width="37.8"/>
<TableColumn Name="Column44" Width="47.25"/>
<TableColumn Name="Column45"/>
<TableColumn Name="Column46" Width="19.9"/>
<TableColumn Name="Column47" Width="85.05"/>
<TableRow Name="Row22" Height="37.8">
<TableCell Name="Cell206" Border.Lines="All" Text="检测单位(公章)" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="11"/>
<TableCell Name="Cell207" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell208" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell209" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell210" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell211" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell212" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell213" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell214" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell215" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell216" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</ChildBand>
</PageFooterBand>
</ReportPage>
</Report>

View File

@ -0,0 +1,308 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="05/21/2025 14:13:23" ReportInfo.Modified="05/21/2025 15:08:21" 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 Table4_ManualBuild(object sender, EventArgs e)
{
DataSourceBase rowData = Report.GetDataSource(&quot;Data&quot;);
// init the data source
rowData.Init();
// print the first table row - it is a header
// now enumerate the data source and print the table body
while (rowData.HasMoreRows)
{
// print the table body
Table4.PrintRow(0);
Table4.PrintColumns();
// go next data source row
rowData.Next();
}
}
}
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJQ5486MaSqWOY9CgvB3/SxA==">
<TableDataSource Name="MainData" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="MainData">
<Column Name="ProjectName" DataType="System.String" PropName="attach_image_id"/>
<Column Name="ProjectCode" DataType="System.String" PropName="image_series"/>
<Column Name="TrustUnitName" DataType="System.String" PropName="file_name"/>
<Column Name="HardTestReportCode" DataType="System.String" PropName="file_size"/>
<Column Name="ISO_IsoNo" DataType="System.String" PropName="file_type"/>
<Column Name="ContractUnitName" DataType="System.String" PropName="created_date"/>
<Column Name="STE_Code" DataType="System.String" PropName="created_by"/>
<Column Name="HotProessState" DataType="System.String" PropName="series_desc"/>
<Column Name="TestMethod" DataType="System.String" PropName="file_path"/>
<Column Name="TestStandard" DataType="System.String" PropName="series_timestamp"/>
<Column Name="MaterialStandard" DataType="System.String" PropName="Column"/>
<Column Name="EquipmentCode" DataType="System.String" PropName="Column"/>
<Column Name="TestRate" DataType="System.String" PropName="Column"/>
<Column Name="TestCount" DataType="System.String" PropName="Column"/>
</TableDataSource>
<TableDataSource Name="Data" DataType="System.Int32" PropName="AttachFile" Enabled="true" TableName="Data">
<Column Name="JOT_JointNoStr1" DataType="System.String" PropName="AttachFileId"/>
<Column Name="TestPart1" DataType="System.String" PropName="ToKeyId"/>
<Column Name="HardNessValue1" DataType="System.String" PropName="AttachSource"/>
<Column Name="JOT_JointNoStr2" DataType="System.String" PropName="AttachUrl"/>
<Column Name="TestPart2" DataType="System.String" PropName="MenuId"/>
<Column Name="HardNessValue2" DataType="System.String" PropName="Column"/>
<Column Name="JOT_JointNoStr3" DataType="System.String" PropName="Column"/>
<Column Name="TestPart3" DataType="System.String" PropName="Column"/>
<Column Name="HardNessValue3" DataType="System.String" PropName="Column"/>
</TableDataSource>
</MsSqlDataConnection>
</Dictionary>
<ReportPage Name="Page1" LeftMargin="25" TopMargin="20" RightMargin="20" BottomMargin="20" FirstPageSource="4" OtherPagesSource="4" Guides="0,623.7,160.65,396.9,236.25,624.06,104.01,208.02,321.48,425.49,520.05,79.8,140.7,211.05,290.85,351.75,422.1,492.45,553.35,623.88,293.04,103.98,122.88,113.43,85.08,189.06,387.57,510.45,94.53">
<PageHeaderBand Name="PageHeader1" Width="623.7" Height="434.7" Guides="0,103.9,61.4,21.25,40.15,82.65,103.95,368.55,35.91,71.82,136.08,209.79,264.6,434.7,66.15">
<TableObject Name="Table1" Width="623.7" Height="103.9" Border.Lines="Left, Right, Bottom">
<TableColumn Name="Column1" Width="160.65"/>
<TableColumn Name="Column2" Width="236.25"/>
<TableColumn Name="Column3" Width="226.8"/>
<TableRow Name="Row1" Height="21.25">
<TableCell Name="Cell1" Border.Lines="All" Text="SH/T 3503-J129" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt" RowSpan="4"/>
<TableCell Name="Cell2" Border.Lines="Left, Right, Top" Text="硬度检验报告" HorzAlign="Center" VertAlign="Center" Font="宋体, 16pt, style=Bold" RowSpan="2"/>
<TableCell Name="Cell3" Border.Lines="Left, Right, Top" Text="工程名称(Project name)" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row2" Height="40.15">
<TableCell Name="Cell6" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell7" Border.Lines="All" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell8" Border.Lines="Left, Right" Text="[MainData.ProjectName]" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row3" Height="21.25">
<TableCell Name="Cell11" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell12" Border.Lines="Left, Right, Bottom" Text="HARDNESS TEST REPORT" HorzAlign="Center" Font="宋体, 12pt, style=Bold"/>
<TableCell Name="Cell13" Border.Lines="Left, Right" Text="施工号(Construction No." VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row4" Height="21.25">
<TableCell Name="Cell16" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell17" Border.Lines="All" Text="第[Page#]页 共[TotalPages#]页" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell18" Border.Lines="Left, Right, Bottom" Text="[MainData.ProjectCode]" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
<TableObject Name="Table2" Top="103.95" Width="624.06" Height="264.6" Border.Lines="All">
<TableColumn Name="Column4" Width="104.01"/>
<TableColumn Name="Column5" Width="104.01"/>
<TableColumn Name="Column6" Width="113.46"/>
<TableColumn Name="Column7" Width="104.01"/>
<TableColumn Name="Column8" Width="94.56"/>
<TableColumn Name="Column9" Width="104.01"/>
<TableRow Name="Row5" Height="35.91">
<TableCell Name="Cell19" Border.Lines="All" Text="委托单位&#13;&#10;Client" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell20" Border.Lines="All" Text="[MainData.TrustUnitName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell21" Border.Lines="All" Text="报告编号&#13;&#10;Report number" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell22" Border.Lines="All" Text="[MainData.HardTestReportCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell23" Border.Lines="All" Text="检件编号&#13;&#10;Specimen No" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell44" Border.Lines="All" Text="[MainData.ISO_IsoNo]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row6" Height="35.91">
<TableCell Name="Cell24" Border.Lines="All" Text="承包单位&#13;&#10;Contractor" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell25" Border.Lines="All" Text="[MainData.ContractUnitName]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell26" Border.Lines="All" Text="检件名称&#13;&#10;Object Name" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell27" Border.Lines="All" Text="[MainData.ISO_IsoNo]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell28" Border.Lines="All" Text="检件规格&#13;&#10;Item size" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell45" Border.Lines="All" Text="见检验部位编号" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row7" Height="64.26">
<TableCell Name="Cell29" Border.Lines="All" Text="检件牌号&#13;&#10;The grade of materials" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell30" Border.Lines="All" Text="[MainData.STE_Code]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell31" Border.Lines="All" Text="热处理状态&#13;&#10;As-heat-treated condition" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell32" Border.Lines="All" Text="[MainData.HotProessState]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell33" Border.Lines="All" Text="表面状态&#13;&#10;Surface appearance" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell46" Border.Lines="All" Text="打磨" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row8" Height="73.71">
<TableCell Name="Cell34" Border.Lines="All" Text="检验方法&#13;&#10;Test method" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell35" Border.Lines="All" Text="[MainData.TestMethod]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell36" Border.Lines="All" Text="检验标准&#13;&#10;Test standard" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell37" Border.Lines="All" Text="[MainData.TestStandard]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell38" Border.Lines="All" Text="被检验材料标准&#13;&#10;Material standard" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell47" Border.Lines="All" Text="[MainData.MaterialStandard]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
<TableRow Name="Row9" Height="54.81">
<TableCell Name="Cell39" Border.Lines="All" Text="设备型号&#13;&#10;Equipment model" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell40" Border.Lines="All" Text="[MainData.EquipmentCode]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell41" Border.Lines="All" Text="检验比例&#13;&#10;Proportion of test" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell42" Border.Lines="All" Text="[MainData.TestRate]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell43" Border.Lines="All" Text="检验数量&#13;&#10;Quantity of test" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell48" Border.Lines="All" Text="[MainData.TestCount]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
</TableObject>
<TableObject Name="Table3" Top="368.55" Width="623.7" Height="66.15" Border.Lines="All">
<TableColumn Name="Column10" Width="79.8"/>
<TableColumn Name="Column11" Width="60.9"/>
<TableColumn Name="Column12" Width="70.35"/>
<TableColumn Name="Column13" Width="79.8"/>
<TableColumn Name="Column14" Width="60.9"/>
<TableColumn Name="Column15" Width="70.35"/>
<TableColumn Name="Column16" Width="70.35"/>
<TableColumn Name="Column17" Width="60.9"/>
<TableColumn Name="Column18" Width="70.35"/>
<TableRow Name="Row10" Height="66.15">
<TableCell Name="Cell49" Border.Lines="All" Text="检验部位编号&#13;&#10;Specimen No." HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell50" Border.Lines="All" Text="测点&#13;&#10;编号&#13;&#10;Testing No." HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell51" Border.Lines="All" Text="硬度值&#13;&#10;Hardness valueHB" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell52" Border.Lines="All" Text="检验部位编号&#13;&#10;Specimen No." HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell53" Border.Lines="All" Text="测点&#13;&#10;编号&#13;&#10;Testing No." HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell74" Border.Lines="All" Text="硬度值&#13;&#10;Hardness valueHB" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell75" Border.Lines="All" Text="检验部位编号&#13;&#10;Specimen No." HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell76" Border.Lines="All" Text="测点&#13;&#10;编号&#13;&#10;Testing No." HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell77" Border.Lines="All" Text="硬度值&#13;&#10;Hardness valueHB" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</PageHeaderBand>
<DataBand Name="Data1" Top="438.7" Width="623.7" Height="37.8" Guides="0,37.8">
<TableObject Name="Table4" Width="623.7" Height="37.8" Border.Lines="All" ManualBuildEvent="Table4_ManualBuild">
<TableColumn Name="Column19" Width="79.8"/>
<TableColumn Name="Column20" Width="60.9"/>
<TableColumn Name="Column21" Width="70.35"/>
<TableColumn Name="Column22" Width="79.8"/>
<TableColumn Name="Column23" Width="60.9"/>
<TableColumn Name="Column24" Width="70.35"/>
<TableColumn Name="Column25" Width="70.35"/>
<TableColumn Name="Column26" Width="60.9"/>
<TableColumn Name="Column27" Width="70.35"/>
<TableRow Name="Row11" Height="37.8">
<TableCell Name="Cell78" Border.Lines="All" Text="[Data.JOT_JointNoStr1]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell79" Border.Lines="All" Text="[Data.TestPart1]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell80" Border.Lines="All" Text="[Data.HardNessValue1]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell81" Border.Lines="All" Text="[Data.JOT_JointNoStr2]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell82" Border.Lines="All" Text="[Data.TestPart2]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell83" Border.Lines="All" Text="[Data.HardNessValue2]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell84" Border.Lines="All" Text="[Data.JOT_JointNoStr3]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell85" Border.Lines="All" Text="[Data.TestPart3]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell86" Border.Lines="All" Text="[Data.HardNessValue3]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
</TableObject>
</DataBand>
<ColumnFooterBand Name="ColumnFooter1" Top="522.3" Width="623.7">
<ChildBand Name="Child1" Top="480.5" Width="623.7" Height="37.8" Guides="0,37.8" FillUnusedSpace="true">
<TableObject Name="Table5" Width="623.7" Height="37.8" Border.Lines="All">
<TableColumn Name="Column28" Width="79.8"/>
<TableColumn Name="Column29" Width="60.9"/>
<TableColumn Name="Column30" Width="70.35"/>
<TableColumn Name="Column31" Width="79.8"/>
<TableColumn Name="Column32" Width="60.9"/>
<TableColumn Name="Column33" Width="70.35"/>
<TableColumn Name="Column34" Width="70.35"/>
<TableColumn Name="Column35" Width="60.9"/>
<TableColumn Name="Column36" Width="70.35"/>
<TableRow Name="Row12" Height="37.8">
<TableCell Name="Cell87" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell88" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell89" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell90" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell91" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell92" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell93" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell94" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell95" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</ChildBand>
</ColumnFooterBand>
<PageFooterBand Name="PageFooter1" Top="526.3" Width="623.7" Height="196.55" PrintOn="FirstPage" Guides="0,196.55,22.95,81.8,58.85,104.75,127.7,150.65,173.6">
<TableObject Name="Table6" Width="623.88" Height="196.55" Border.Lines="All">
<TableColumn Name="Column37" Width="85.08"/>
<TableColumn Name="Column38" Width="103.98"/>
<TableColumn Name="Column39" Width="103.98"/>
<TableColumn Name="Column40" Width="94.53"/>
<TableColumn Name="Column41" Width="122.88"/>
<TableColumn Name="Column42" Width="113.43"/>
<TableRow Name="Row13" Height="22.95">
<TableCell Name="Cell96" Border.Lines="Right" Text="检验结论(Conclusion)" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell97" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell98" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell99" Text="备注(Remark)" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell100" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell121" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row14" Height="58.85">
<TableCell Name="Cell101" Border.Lines="Right, Bottom" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell102" Border.Lines="Right, Bottom" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell103" Border.Lines="Right, Bottom" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell104" Border.Lines="Bottom" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="3"/>
<TableCell Name="Cell105" Border.Lines="Bottom" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell122" Border.Lines="Bottom" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row15" Height="22.95">
<TableCell Name="Cell106" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell107" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell108" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell109" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell110" Text="检测单位" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell123" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row16" Height="22.95">
<TableCell Name="Cell111" Text="试验人" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell112" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell113" Text="审核人" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell114" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell115" Text="(Detection unit):(公章)" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell124" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row17" Height="22.95">
<TableCell Name="Cell116" Text="(Tester)" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell117" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell118" Text="(Reviewer)" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell119" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell120" Text="报告日期" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell125" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row18" Height="22.95">
<TableCell Name="Cell126" Text="资 格" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell127" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell128" Text="资 格" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell129" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell130" Text="日期" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell131" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
<TableRow Name="Row19" Height="22.95">
<TableCell Name="Cell132" Border.Lines="Right" Text="(Qualification)" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell133" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell138" Border.Lines="Right" Text="(Qualification)" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="2"/>
<TableCell Name="Cell139" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell136" Text="(Report No.)" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell137" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
<ChildBand Name="Child2" Top="726.85" Width="623.7" Height="44.98" PrintOn="LastPage, OddPages, EvenPages, RepeatedBand, SinglePage" Guides="0,44.98">
<TableObject Name="Table7" Width="623.88" Height="44.98" Border.Lines="All">
<TableColumn Name="Column43" Width="85.08"/>
<TableColumn Name="Column44" Width="103.98"/>
<TableColumn Name="Column45" Width="103.98"/>
<TableColumn Name="Column46" Width="94.53"/>
<TableColumn Name="Column47" Width="122.88"/>
<TableColumn Name="Column48" Width="113.43"/>
<TableRow Name="Row26" Height="44.98">
<TableCell Name="Cell176" Border.Lines="Right" Text="检测单位Detection unit (公章)" VertAlign="Center" Font="宋体, 10.5pt" ColSpan="6"/>
<TableCell Name="Cell177" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell178" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell179" Border.Lines="Right" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell180" VertAlign="Center" Font="宋体, 10.5pt"/>
<TableCell Name="Cell181" VertAlign="Center" Font="宋体, 10.5pt"/>
</TableRow>
</TableObject>
</ChildBand>
</PageFooterBand>
</ReportPage>
</Report>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/21/2024 16:48:08" ReportInfo.Modified="01/25/2025 18:39:48" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/21/2024 16:48:08" ReportInfo.Modified="05/21/2025 15:34:00" 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="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJZIvhFEkfr28Cv+lAwOmSIA==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJfCcDtBOU7tMhwgRSNMx//Q==">
<TableDataSource Name="MainData" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Attach_Image">
<Column Name="ProjectName" DataType="System.String" PropName="attach_image_id"/>
<Column Name="UnitWork" DataType="System.String" PropName="image_series"/>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/20/2024 14:22:21" ReportInfo.Modified="04/29/2025 09:59:10" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/20/2024 14:22:21" ReportInfo.Modified="05/21/2025 15:35:34" 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="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJcSwkldR2OtZerD4DV2pGrw==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJcTY8krScnDk8O+p7aoFxOg==">
<TableDataSource Name="MainData" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="MainData">
<Column Name="ProjectName" DataType="System.String" PropName="attach_image_id"/>
<Column Name="CheckUnit" DataType="System.String" PropName="image_series"/>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/21/2024 09:30:44" ReportInfo.Modified="11/21/2024 16:40:07" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/21/2024 09:30:44" ReportInfo.Modified="05/21/2025 15:35:10" ReportInfo.CreatorVersion="2017.1.16.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
@ -50,7 +50,7 @@ namespace FastReport
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJmbt/jcfBCOeWnhhH2EFB8w==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJmeZCF5mp+eY3m6M1StrIow==">
<TableDataSource Name="Data" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="Data">
<Column Name="ISO_IsoNo" DataType="System.String" PropName="attach_image_id"/>
<Column Name="JOT_JointNo" DataType="System.String" PropName="image_series"/>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/20/2024 09:40:31" ReportInfo.Modified="05/19/2025 10:16:46" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/20/2024 09:40:31" ReportInfo.Modified="05/21/2025 15:35:51" ReportInfo.CreatorVersion="2017.1.16.0">
<ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
@ -41,7 +41,7 @@ namespace FastReport
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJVqzzkU8wvfVCg4+SuIh3TA==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJAUIpPI9YEmsmM0NuZAXP+g==">
<TableDataSource Name="MainData" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="MainData">
<Column Name="ProjectName" DataType="System.String" PropName="attach_image_id"/>
<Column Name="InstallastionName" DataType="System.String" PropName="image_series"/>

View File

@ -1,9 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="05/16/2025 16:25:24" ReportInfo.Modified="05/16/2025 16:58:58" ReportInfo.CreatorVersion="2017.1.16.0">
<Dictionary/>
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" LeftMargin="20" TopMargin="25" RightMargin="20" BottomMargin="20" FirstPageSource="4" OtherPagesSource="4" Guides="784.35,963.9,0,321.3,151.2,75.6,56.7,37.8,189,264.6,330.75,406.35,425.25,378,434.7,510.3,604.8,699.3,793.8,841.05,916.65,320.96,109.13,61.88,80.78,69.17,178.3,240.18">
<Report ScriptLanguage="CSharp" ReportInfo.Created="05/16/2025 16:25:24" ReportInfo.Modified="05/20/2025 15:14:58" 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 Table4_ManualBuild(object sender, EventArgs e)
{
DataSourceBase rowData = Report.GetDataSource(&quot;JointData&quot;);
// init the data source
rowData.Init();
// print the first table row - it is a header
// now enumerate the data source and print the table body
while (rowData.HasMoreRows)
{
// print the table body
Table4.PrintRow(0);
Table4.PrintColumns();
// go next data source row
rowData.Next();
}
}
private void Table3_ManualBuild(object sender, EventArgs e)
{
DataSourceBase rowData = Report.GetDataSource(&quot;MaterialData&quot;);
// init the data source
rowData.Init();
// print the first table row - it is a header
// now enumerate the data source and print the table body
while (rowData.HasMoreRows)
{
// print the table body
Table3.PrintRow(0);
Table3.PrintColumns();
// go next data source row
rowData.Next();
}
}
}
}
</ScriptText>
<Dictionary>
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJZIvhFEkfr28Cv+lAwOmSIA==">
<TableDataSource Name="MaterialData" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="MaterialData">
<Column Name="SortNum" DataType="System.String" PropName="Column"/>
</TableDataSource>
<TableDataSource Name="JointData" DataType="System.Int32" PropName="AttachFile" Enabled="true" TableName="JointData">
<Column Name="ISO_IsoNo" DataType="System.String" PropName="AttachFileId"/>
<Column Name="JOT_JointNo" DataType="System.String" PropName="ToKeyId"/>
<Column Name="WED_Code" DataType="System.String" PropName="AttachSource"/>
<Column Name="JOT_JointDesc" DataType="System.String" PropName="AttachUrl"/>
<Column Name="STE_Name" DataType="System.String" PropName="MenuId"/>
<Column Name="JOT_Location" DataType="System.String" PropName="Column"/>
<Column Name="IS_Proess" DataType="System.String" PropName="Column"/>
</TableDataSource>
</MsSqlDataConnection>
<Parameter Name="ProjectName" DataType="System.String"/>
<Parameter Name="ISO_No" DataType="System.String"/>
</Dictionary>
<ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" LeftMargin="20" TopMargin="25" RightMargin="20" BottomMargin="20" FirstPageSource="4" OtherPagesSource="4" Guides="737.1,954.45,0,321.3,151.2,75.6,56.7,37.8,189,264.6,330.75,963.9,406.35,425.25,378,434.7,510.3,604.8,699.3,793.8,841.05,916.65,320.96,109.13,61.88,80.78,69.17,178.3,240.18">
<PageHeaderBand Name="PageHeader1" Width="971.46" Height="94.5" Guides="9.45,28.35,94.5,0,66.15">
<TextObject Name="Text1" Left="784.35" Top="9.45" Width="179.55" Height="18.9" Text="ZDS-T6.38.039.A/1.2022" Font="宋体, 11pt, style=Bold"/>
<TextObject Name="Text1" Left="737.1" Top="9.45" Width="217.35" Height="18.9" Text="ZDS-T6.38.039.A/1.2022" Font="宋体, 11pt, style=Bold"/>
<TableObject Name="Table1" Top="28.35" Width="321.3" Height="66.15">
<TableColumn Name="Column1" Width="37.8"/>
<TableColumn Name="Column2" Width="151.2"/>
@ -54,19 +132,19 @@
</TableObject>
</PageHeaderBand>
<DataBand Name="Data1" Top="98.5" Width="971.46" Height="37.8" Guides="0,37.8">
<TableObject Name="Table3" Width="321.3" Height="37.8">
<TableObject Name="Table3" Width="321.3" Height="37.8" ManualBuildEvent="Table3_ManualBuild">
<TableColumn Name="Column13" Width="37.8"/>
<TableColumn Name="Column14" Width="151.2"/>
<TableColumn Name="Column15" Width="75.6"/>
<TableColumn Name="Column16" Width="56.7"/>
<TableRow Name="Row6" Height="37.8">
<TableCell Name="Cell30" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 11pt"/>
<TableCell Name="Cell30" Border.Lines="All" Text="[MaterialData.SortNum]" HorzAlign="Center" VertAlign="Center" Font="宋体, 11pt"/>
<TableCell Name="Cell31" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 11pt"/>
<TableCell Name="Cell32" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 11pt"/>
<TableCell Name="Cell33" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 11pt"/>
</TableRow>
</TableObject>
<TableObject Name="Table4" Left="330.75" Width="633.15" Height="37.8">
<TableObject Name="Table4" Left="330.75" Width="633.15" Height="37.8" ManualBuildEvent="Table4_ManualBuild">
<TableColumn Name="Column17" Width="103.95"/>
<TableColumn Name="Column18" Width="75.6"/>
<TableColumn Name="Column19" Width="94.5"/>
@ -76,13 +154,13 @@
<TableColumn Name="Column23" Width="75.6"/>
<TableColumn Name="Column24" Width="47.25"/>
<TableRow Name="Row8" Height="37.8">
<TableCell Name="Cell42" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<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"/>
<TableCell Name="Cell46" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell47" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell48" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell42" Border.Lines="All" Text="[JointData.ISO_IsoNo]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell43" Border.Lines="All" Text="[JointData.JOT_JointNo]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell44" Border.Lines="All" Text="[JointData.WED_Code]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell45" Border.Lines="All" Text="[JointData.JOT_JointDesc]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell46" Border.Lines="All" Text="[JointData.STE_Name]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell47" Border.Lines="All" Text="[JointData.JOT_Location]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell48" Border.Lines="All" Text="[JointData.IS_Proess]" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
<TableCell Name="Cell49" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="楷体, 10.5pt"/>
</TableRow>
</TableObject>
@ -143,7 +221,7 @@
</TableRow>
<TableRow Name="Row13">
<TableCell Name="Cell72" Border.Lines="All" Text="工程名称" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt, style=Bold"/>
<TableCell Name="Cell73" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt, style=Bold" ColSpan="3"/>
<TableCell Name="Cell73" Border.Lines="All" Text="[ProjectName]" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt, style=Bold" ColSpan="3"/>
<TableCell Name="Cell74" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt, style=Bold"/>
<TableCell Name="Cell75" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt, style=Bold"/>
</TableRow>
@ -155,7 +233,7 @@
</TableRow>
<TableRow Name="Row15">
<TableCell Name="Cell82" Border.Lines="All" Text="管线编号" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt, style=Bold"/>
<TableCell Name="Cell83" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt, style=Bold"/>
<TableCell Name="Cell83" Border.Lines="All" Text="[ISO_No]" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt, style=Bold"/>
<TableCell Name="Cell84" Border.Lines="All" Text="绘 制" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt, style=Bold"/>
<TableCell Name="Cell85" Border.Lines="All" HorzAlign="Center" VertAlign="Center" Font="宋体, 10pt, style=Bold"/>
</TableRow>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/20/2024 15:56:13" ReportInfo.Modified="04/29/2025 15:20:39" ReportInfo.CreatorVersion="2017.1.16.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/20/2024 15:56:13" ReportInfo.Modified="05/21/2025 15:35:45" 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="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJcTY8krScnDk8O+p7aoFxOg==">
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqdP6ADbZQpLOMXx+Ivgq2SioFBJ7B1iEOuUxf7y1evrTM15NUOhfx6SD2+E9SReEWvg7u6EQdXpqQDDPj6WgkoKQIrTt5q9lJyuCu5B6Nl0MXJ6ZEae4ta6haGkhwICyq72I9X2dS6a3zf8gkFZpb6VtdwKlyFhTivyv2i8IjPiUXLimy5mJMh8U2rXyiDDAJbT4QiUbrPtmq9fW5kqyeUQ==">
<TableDataSource Name="MainData" DataType="System.Int32" PropName="Attach_Image" Enabled="true" TableName="MainData">
<Column Name="UnitName" DataType="System.String" PropName="attach_image_id"/>
<Column Name="ProjectCode" DataType="System.String" PropName="image_series"/>

View File

@ -205,18 +205,6 @@ namespace FineUIPro.Web.HJGL.CheckManage
string sTE_ID2 = Grid1.SelectedRowID.Split(',')[5];
string wME_Name = Grid1.SelectedRowID.Split(',')[6];
var trust = BLL.HJGL_TrustManageEditService.GetCH_TrustByID(trustId);
//List<SqlParameter> listStr = new List<SqlParameter>();
//listStr.Add(new SqlParameter("@CH_TrustID", trustId));
//listStr.Add(new SqlParameter("@ISO_ID", isoId));
//listStr.Add(new SqlParameter("@Desc", desc));
//listStr.Add(new SqlParameter("@Flag", "0"));
//listStr.Add(new SqlParameter("@IsRepair", "0"));
//listStr.Add(new SqlParameter("@STE_Code", sTE_Code));
//listStr.Add(new SqlParameter("@STE_ID", sTE_ID));
//listStr.Add(new SqlParameter("@STE_ID2", sTE_ID2));
//listStr.Add(new SqlParameter("@WME_Name", wME_Name));
//SqlParameter[] parameter = listStr.ToArray();
//DataTable tb = null;
string isoNo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(isoId).ISO_IsoNo;
// PT,MT,UT调用一个存储过程
if (trust != null)
@ -267,59 +255,99 @@ namespace FineUIPro.Web.HJGL.CheckManage
listTitleStr.Add(new SqlParameter("@ISO_ID", isoId));
listTitleStr.Add(new SqlParameter("@IsRepair", "0"));
listTitleStr.Add(new SqlParameter("@Desc", desc));
listTitleStr.Add(new SqlParameter("@Flag", null));
listTitleStr.Add(new SqlParameter("@STE_Code", sTE_Code));
listTitleStr.Add(new SqlParameter("@Flag", ""));
listTitleStr.Add(new SqlParameter("@STE_Code", ndtType.NDT_Code));
SqlParameter[] titleparameter = listTitleStr.ToArray();
var tbTitle = SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_TrustRecord", titleparameter);
//tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_TrustItemRecordRT", parameter);
DataTable dt = new DataTable();
dt.TableName = "MainData";
dt.Columns.Add("TestEngineeringCode");
dt.Columns.Add("GuideBookCode");
dt.Columns.Add("RecordCode");
dt.Columns.Add("TrustUnitName");
dt.Columns.Add("ConUnitName");
dt.Columns.Add("CH_TrustDate");
dt.Columns.Add("ProjectName");
//dt.Columns.Add("InstallastionName");
//dt.Columns.Add("InstallatinCode");
//dt.Columns.Add("TrustUnit");
//dt.Columns.Add("TrustCode");
//dt.Columns.Add("CheckUnit");
//dt.Columns.Add("ItemName");
//dt.Columns.Add("WME_Code");
//dt.Columns.Add("IsHot");
//dt.Columns.Add("JST_Name");
//dt.Columns.Add("NDTR_Name");
//dt.Columns.Add("NDT_Code");
//dt.Columns.Add("AcceptGrade");
//dt.Columns.Add("CH_NDTCriteria");
dt.Columns.Add("ProjectCode");
dt.Columns.Add("TrustManName");
dt.Columns.Add("ISO_IsoNo");
dt.Columns.Add("STE_Code");
dt.Columns.Add("JST_Name");
dt.Columns.Add("NDTR_Name");
dt.Columns.Add("WME_Name");
dt.Columns.Add("IsHot");
dt.Columns.Add("AcceptGrade2");
DataRow[] rows = tbTitle.DefaultView.ToTable().Select();
foreach (var row in rows)
{
var newRow = dt.NewRow();
newRow["ProjectName"] = row["ProjectName"].ToString();
//newRow["InstallastionName"] = row["InstallationName"].ToString();
//newRow["InstallatinCode"] = row["InstallationCode"].ToString();
//newRow["TrustUnit"] = row["UnitName"].ToString();
//newRow["TrustCode"] = row["CH_TrustCode"].ToString();
//newRow["CheckUnit"] = row["CheckUnitName"].ToString();
//newRow["ItemName"] = row["CH_ItemName"].ToString();
//newRow["WME_Code"] = row["WME_Code"].ToString();
//newRow["IsHot"] = "合格";
//newRow["JST_Name"] = row["JST_Name"];
//newRow["NDTR_Name"] = row["NDTR_Name"];
//newRow["NDT_Code"] = row["NDT_Code"];
var newRows = dt.NewRow();
newRows["TestEngineeringCode"] = row["TestEngineeringCode"].ToString();
newRows["GuideBookCode"] = row["GuideBookCode"].ToString();
newRows["RecordCode"] = row["RecordCode"].ToString();
newRows["TrustUnitName"] = row["TrustUnitName"].ToString();
newRows["ConUnitName"] = row["ConUnitName"].ToString();
newRows["CH_TrustDate"] = string.Format("{0:yyyy-MM-dd}", row["CH_TrustDate"]).ToString();
newRows["ProjectName"] = row["ProjectName"].ToString();
newRows["ProjectCode"] = row["ProjectCode"].ToString();
newRows["TrustManName"] = row["TrustManName"].ToString();
newRows["ISO_IsoNo"] = row["ISO_IsoNo"].ToString();
newRows["STE_Code"] = row["STE_Code"].ToString();
newRows["JST_Name"] = row["JST_Name"].ToString();
newRows["NDTR_Name"] = row["NDTR_Name"].ToString();
newRows["WME_Name"] = row["WME_Name"].ToString();
newRows["IsHot"] = row["IsHot"].ToString();
newRows["AcceptGrade2"] = row["AcceptGrade2"].ToString();
dt.Rows.Add(newRow);
dt.Rows.Add(newRows);
}
BLL.Common.FastReportService.AddFastreportTable(dt);
List<SqlParameter> listStr2 = new List<SqlParameter>();
listStr2.Add(new SqlParameter("@CH_TrustID", trustId));
listStr2.Add(new SqlParameter("@ISO_ID", isoId));
listStr2.Add(new SqlParameter("@IsRepair", "0"));
listStr2.Add(new SqlParameter("@Desc", desc));
listStr2.Add(new SqlParameter("@Flag", ""));
listStr2.Add(new SqlParameter("@STE_Code", sTE_Code));
listStr2.Add(new SqlParameter("@STE_ID", sTE_ID));
listStr2.Add(new SqlParameter("@STE_ID2", sTE_ID2));
listStr2.Add(new SqlParameter("@WME_Name", wME_Name));
SqlParameter[] parameter = listStr2.ToArray();
var tb = SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_TrustItemRecordRT", parameter);
DataTable dtItem = new DataTable();
dtItem.TableName = "Data";
dtItem.Columns.Add("Num");
dtItem.Columns.Add("JOT_JointNo");
dtItem.Columns.Add("JOT_JointDesc");
dtItem.Columns.Add("WED_Code");
dtItem.Columns.Add("FilmNum");
dtItem.Columns.Add("CheckAddress");
DataRow[] itemRows = tb.DefaultView.ToTable().Select();
int i = 0;
foreach (var row in itemRows)
{
var newRows = dtItem.NewRow();
newRows["Num"] = (i + 1).ToString();
newRows["JOT_JointNo"] = row["JOT_JointNo"].ToString();
newRows["JOT_JointDesc"] = row["JOT_JointDesc"].ToString();
newRows["WED_Code"] = row["WED_Code"].ToString();
newRows["FilmNum"] = row["FilmNum"].ToString();
newRows["CheckAddress"] = row["CheckAddress"].ToString();
dtItem.Rows.Add(newRows);
i++;
}
BLL.Common.FastReportService.AddFastreportTable(dtItem);
//传参
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
//keyValuePairs.Add("JointCount", jointCount.ToString());
//keyValuePairs.Add("CheckCount", (rows.Count() - 1).ToString());
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\射线检测记录.frx";
if (File.Exists(rootPath + initTemplatePath))

View File

@ -7,6 +7,7 @@ using System.Web.UI.WebControls;
using BLL;
using System.Data.SqlClient;
using System.Data;
using System.IO;
namespace FineUIPro.Web.HJGL.CheckManage
{
@ -218,8 +219,8 @@ namespace FineUIPro.Web.HJGL.CheckManage
listStr.Add(new SqlParameter("@STE_ID", sTE_ID));
listStr.Add(new SqlParameter("@STE_ID2", sTE_ID2));
listStr.Add(new SqlParameter("@WME_Name", wME_Name));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = null;
//SqlParameter[] parameter = listStr.ToArray();
//DataTable tb = null;
string isoNo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(isoId).ISO_IsoNo;
// PT,MT,UT调用一个存储过程
if (trust != null)
@ -246,11 +247,11 @@ namespace FineUIPro.Web.HJGL.CheckManage
BLL.HJGL_CH_TrustItemService.UpdateTrustItem(trustItem);
}
string reportId1 = string.Empty;//报表Id
string reportId2 = string.Empty;
int rowNum = 0;
string varValue = string.Empty;
int count = 0;
//string reportId1 = string.Empty;//报表Id
//string reportId2 = string.Empty;
//int rowNum = 0;
//string varValue = string.Empty;
//int count = 0;
var ndtType = BLL.HJGL_TestingService.GetTestingByTestingId(trust.CH_NDTMethod);
//if (ndtType.NDT_Code == "RT")
@ -268,6 +269,10 @@ namespace FineUIPro.Web.HJGL.CheckManage
// tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_TrustItemRecordRT", parameter);
//}
string initTemplatePath = "";
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
if (ndtType.NDT_Code == "PT")
{
Model.Base_PrintFileCode fileCode = new Model.Base_PrintFileCode();
@ -277,57 +282,152 @@ namespace FineUIPro.Web.HJGL.CheckManage
fileCode.FileId = trust.CH_TrustID;
fileCode.FileCode2 = fileCode.FileCode.Replace(isoNo, "");
BLL.Base_PrintFileCodeService.AddPrintFileCode(fileCode);
reportId1 = BLL.Const.HJGL_PTCheckRecordReportId1;
reportId2 = BLL.Const.HJGL_PTCheckRecordReportId2;
rowNum = 15;
tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_TrustRecordPTItem", parameter);
//reportId1 = BLL.Const.HJGL_PTCheckRecordReportId1;
//reportId2 = BLL.Const.HJGL_PTCheckRecordReportId2;
//rowNum = 15;
//tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_TrustRecordPTItem", parameter);
var listTitleStr = new List<SqlParameter>();
listTitleStr.Add(new SqlParameter("@CH_TrustID", trustId));
listTitleStr.Add(new SqlParameter("@ISO_ID", isoId));
listTitleStr.Add(new SqlParameter("@IsRepair", "0"));
listTitleStr.Add(new SqlParameter("@Desc", desc));
listTitleStr.Add(new SqlParameter("@Flag", ""));
listTitleStr.Add(new SqlParameter("@STE_Code", ndtType.NDT_Code));
SqlParameter[] titleparameter = listTitleStr.ToArray();
var tbTitle = SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_TrustRecord", titleparameter);
DataTable dt = new DataTable();
dt.TableName = "MainData";
dt.Columns.Add("TestEngineeringCode");
dt.Columns.Add("RecordCode");
dt.Columns.Add("TrustUnitName");
dt.Columns.Add("ConUnitName");
dt.Columns.Add("CH_TrustDate");
dt.Columns.Add("ProjectName");
dt.Columns.Add("ProjectCode");
dt.Columns.Add("TrustManName");
dt.Columns.Add("ISO_IsoNo");
dt.Columns.Add("STE_Code");
dt.Columns.Add("NDTR_Name");
dt.Columns.Add("CH_NDTCriteria");
dt.Columns.Add("AcceptGrade");
DataRow[] rows = tbTitle.DefaultView.ToTable().Select();
foreach (var row in rows)
{
var newRows = dt.NewRow();
newRows["TestEngineeringCode"] = row["TestEngineeringCode"].ToString();
newRows["RecordCode"] = row["RecordCode"].ToString();
newRows["TrustUnitName"] = row["TrustUnitName"].ToString();
newRows["ConUnitName"] = row["ConUnitName"].ToString();
newRows["CH_TrustDate"] = string.Format("{0:yyyy-MM-dd}", row["CH_TrustDate"]).ToString();
newRows["ProjectName"] = row["ProjectName"].ToString();
newRows["ProjectCode"] = row["ProjectCode"].ToString();
newRows["TrustManName"] = row["TrustManName"].ToString();
newRows["ISO_IsoNo"] = row["ISO_IsoNo"].ToString();
newRows["STE_Code"] = row["STE_Code"].ToString();
newRows["NDTR_Name"] = row["NDTR_Name"].ToString();
newRows["CH_NDTCriteria"] = row["CH_NDTCriteria"].ToString();
newRows["AcceptGrade"] = row["AcceptGrade"].ToString();
dt.Rows.Add(newRows);
}
BLL.Common.FastReportService.AddFastreportTable(dt);
List<SqlParameter> listStr2 = new List<SqlParameter>();
listStr2.Add(new SqlParameter("@CH_TrustID", trustId));
listStr2.Add(new SqlParameter("@ISO_ID", isoId));
listStr2.Add(new SqlParameter("@IsRepair", "0"));
listStr2.Add(new SqlParameter("@Desc", desc));
listStr2.Add(new SqlParameter("@Flag", ""));
listStr2.Add(new SqlParameter("@STE_Code", sTE_Code));
listStr2.Add(new SqlParameter("@STE_ID", sTE_ID));
listStr2.Add(new SqlParameter("@STE_ID2", sTE_ID2));
listStr2.Add(new SqlParameter("@WME_Name", wME_Name));
SqlParameter[] parameter = listStr2.ToArray();
var tb = SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_TrustRecordPTItem", parameter);
DataTable dtItem = new DataTable();
dtItem.TableName = "Data";
dtItem.Columns.Add("Number");
dtItem.Columns.Add("JOT_JointNo");
dtItem.Columns.Add("Specification");
dtItem.Columns.Add("WED_Code");
DataRow[] itemRows = tb.DefaultView.ToTable().Select();
foreach (var row in itemRows)
{
var newRows = dtItem.NewRow();
newRows["Number"] = row["Number"].ToString();
newRows["JOT_JointNo"] = row["JOT_JointNo"].ToString();
newRows["Specification"] = row["Specification"].ToString();
newRows["WED_Code"] = row["WED_Code"].ToString();
dtItem.Rows.Add(newRows);
}
BLL.Common.FastReportService.AddFastreportTable(dtItem);
//传参
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
//keyValuePairs.Add("JointCount", jointCount.ToString());
//keyValuePairs.Add("CheckCount", (rows.Count() - 1).ToString());
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\渗透检测记录.frx";
}
else if (ndtType.NDT_Code == "MT")
{
Model.Base_PrintFileCode fileCode = new Model.Base_PrintFileCode();
fileCode.ProjectId = trust.ProjectId;
fileCode.FileType = "MT检测记录";
fileCode.FileCode = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCode3ByProjectId", "dbo.Base_PrintFileCode", isoNo, trust.ProjectId, BLL.Base_ProjectService.GetProjectCode(trust.ProjectId) + "-" + isoNo + "-MT-");
fileCode.FileId = trust.CH_TrustID;
fileCode.FileCode2 = fileCode.FileCode.Replace(isoNo, "");
BLL.Base_PrintFileCodeService.AddPrintFileCode(fileCode);
reportId1 = BLL.Const.HJGL_MTCheckRecordReportId1;
reportId2 = BLL.Const.HJGL_MTCheckRecordReportId2;
rowNum = 15;
tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_TrustRecordPTItem", parameter);
//Model.Base_PrintFileCode fileCode = new Model.Base_PrintFileCode();
//fileCode.ProjectId = trust.ProjectId;
//fileCode.FileType = "MT检测记录";
//fileCode.FileCode = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCode3ByProjectId", "dbo.Base_PrintFileCode", isoNo, trust.ProjectId, BLL.Base_ProjectService.GetProjectCode(trust.ProjectId) + "-" + isoNo + "-MT-");
//fileCode.FileId = trust.CH_TrustID;
//fileCode.FileCode2 = fileCode.FileCode.Replace(isoNo, "");
//BLL.Base_PrintFileCodeService.AddPrintFileCode(fileCode);
//reportId1 = BLL.Const.HJGL_MTCheckRecordReportId1;
//reportId2 = BLL.Const.HJGL_MTCheckRecordReportId2;
//rowNum = 15;
//tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_TrustRecordPTItem", parameter);
}
else if (ndtType.NDT_Code == "UT" || ndtType.NDT_Code == "PAUT")
{
Model.Base_PrintFileCode fileCode = new Model.Base_PrintFileCode();
fileCode.ProjectId = trust.ProjectId;
fileCode.FileType = "UT检测记录";
fileCode.FileCode = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCode3ByProjectId", "dbo.Base_PrintFileCode", isoNo, trust.ProjectId, BLL.Base_ProjectService.GetProjectCode(trust.ProjectId) + "-" + isoNo + "-UT-");
fileCode.FileId = trust.CH_TrustID;
fileCode.FileCode2 = fileCode.FileCode.Replace(isoNo, "");
BLL.Base_PrintFileCodeService.AddPrintFileCode(fileCode);
reportId1 = BLL.Const.HJGL_UTCheckRecordReportId1;
reportId2 = BLL.Const.HJGL_UTCheckRecordReportId2;
rowNum = 15;
tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_TrustRecordUTItem", parameter);
//Model.Base_PrintFileCode fileCode = new Model.Base_PrintFileCode();
//fileCode.ProjectId = trust.ProjectId;
//fileCode.FileType = "UT检测记录";
//fileCode.FileCode = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCode3ByProjectId", "dbo.Base_PrintFileCode", isoNo, trust.ProjectId, BLL.Base_ProjectService.GetProjectCode(trust.ProjectId) + "-" + isoNo + "-UT-");
//fileCode.FileId = trust.CH_TrustID;
//fileCode.FileCode2 = fileCode.FileCode.Replace(isoNo, "");
//BLL.Base_PrintFileCodeService.AddPrintFileCode(fileCode);
//reportId1 = BLL.Const.HJGL_UTCheckRecordReportId1;
//reportId2 = BLL.Const.HJGL_UTCheckRecordReportId2;
//rowNum = 15;
//tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_TrustRecordUTItem", parameter);
}
count = tb.Rows.Count;
string pageNum = Funs.GetPagesCountByPageSize(rowNum, 20, count).ToString();
varValue = pageNum;
varValue = HttpUtility.UrlEncodeUnicode(varValue);
if (File.Exists(rootPath + initTemplatePath))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
if (tb.Rows.Count <= rowNum)
{
string replaceParameter = HttpUtility.UrlEncodeUnicode(trustId + "|" + isoId + "|" + "0" + "|" + desc + "|" + "1" + "|" + sTE_Code + "|" + sTE_ID + "|" + sTE_ID2 + "|" + wME_Name);
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", reportId1, replaceParameter, varValue)));
}
else
{
string replaceParameter1 = HttpUtility.UrlEncodeUnicode(trustId + "|" + isoId + "|" + "0" + "|" + desc + "|" + "1" + "|" + sTE_Code + "|" + sTE_ID + "|" + sTE_ID2 + "|" + wME_Name);
string replaceParameter2 = HttpUtility.UrlEncodeUnicode(trustId + "|" + isoId + "|" + "0" + "|" + desc + "|" + "2" + "|" + sTE_Code + "|" + sTE_ID + "|" + sTE_ID2 + "|" + wME_Name);
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", reportId2, replaceParameter2, varValue)));
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", reportId1, replaceParameter1, varValue)));
}
//count = tb.Rows.Count;
//string pageNum = Funs.GetPagesCountByPageSize(rowNum, 20, count).ToString();
//varValue = pageNum;
//varValue = HttpUtility.UrlEncodeUnicode(varValue);
//if (tb.Rows.Count <= rowNum)
//{
// string replaceParameter = HttpUtility.UrlEncodeUnicode(trustId + "|" + isoId + "|" + "0" + "|" + desc + "|" + "1" + "|" + sTE_Code + "|" + sTE_ID + "|" + sTE_ID2 + "|" + wME_Name);
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", reportId1, replaceParameter, varValue)));
//}
//else
//{
// string replaceParameter1 = HttpUtility.UrlEncodeUnicode(trustId + "|" + isoId + "|" + "0" + "|" + desc + "|" + "1" + "|" + sTE_Code + "|" + sTE_ID + "|" + sTE_ID2 + "|" + wME_Name);
// string replaceParameter2 = HttpUtility.UrlEncodeUnicode(trustId + "|" + isoId + "|" + "0" + "|" + desc + "|" + "2" + "|" + sTE_Code + "|" + sTE_ID + "|" + sTE_ID2 + "|" + wME_Name);
// PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", reportId2, replaceParameter2, varValue)));
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", reportId1, replaceParameter1, varValue)));
//}
}
}
if (e.CommandName == "fileName")//文档名

View File

@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using BLL;
using Newtonsoft.Json.Linq;
@ -685,12 +686,17 @@ namespace FineUIPro.Web.HJGL.HotHardManage
i = 1;
}
}
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@HardTestReportId", this.HardTestReportId));
listStr.Add(new SqlParameter("@Flag", "0"));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReportItem", parameter);
string varValue = Funs.GetPagesCountByPageSize(18, 24, tb.Rows.Count).ToString();
DataTable tbMain = BLL.SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReport", parameter);
List<SqlParameter> listStr2 = new List<SqlParameter>();
listStr2.Add(new SqlParameter("@HardTestReportId", this.HardTestReportId));
listStr2.Add(new SqlParameter("@Flag", "0"));
SqlParameter[] parameter2 = listStr2.ToArray();
DataTable tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReportItem", parameter2);
Model.HJGL_CH_HardTestReport report = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportByID(this.HardTestReportId);
if (report != null)
@ -700,15 +706,106 @@ namespace FineUIPro.Web.HJGL.HotHardManage
BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReport(report);
this.cbIsPrint.Checked = true;
}
if (tb.Rows.Count <= 18)
string initTemplatePath = "";
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
if (tbMain.Rows.Count > 0)
{
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_HardTestReportId1, this.HardTestReportId, varValue, "打印 - ")));
DataTable dtMain = new DataTable();
dtMain.TableName = "MainData";
dtMain.Columns.Add("ProjectName");
dtMain.Columns.Add("ProjectCode");
dtMain.Columns.Add("TrustUnitName");
dtMain.Columns.Add("HardTestReportCode");
dtMain.Columns.Add("ISO_IsoNo");
dtMain.Columns.Add("ContractUnitName");
dtMain.Columns.Add("STE_Code");
dtMain.Columns.Add("HotProessState");
dtMain.Columns.Add("TestMethod");
dtMain.Columns.Add("TestStandard");
dtMain.Columns.Add("MaterialStandard");
dtMain.Columns.Add("EquipmentCode");
dtMain.Columns.Add("TestRate");
dtMain.Columns.Add("TestCount");
DataRow[] rows = tbMain.DefaultView.ToTable().Select();
foreach (var row in rows)
{
var newRow = dtMain.NewRow();
newRow["ProjectName"] = row["ProjectName"].ToString();
newRow["ProjectCode"] = row["ProjectCode"].ToString();
newRow["TrustUnitName"] = row["TrustUnitName"].ToString();
newRow["HardTestReportCode"] = row["HardTestReportCode"].ToString();
newRow["ISO_IsoNo"] = row["ISO_IsoNo"].ToString();
newRow["ContractUnitName"] = row["ContractUnitName"].ToString();
newRow["STE_Code"] = row["STE_Code"].ToString();
newRow["HotProessState"] = row["HotProessState"].ToString();
newRow["TestMethod"] = row["TestMethod"].ToString();
newRow["TestStandard"] = row["TestStandard"].ToString();
newRow["MaterialStandard"] = row["MaterialStandard"].ToString();
newRow["EquipmentCode"] = row["EquipmentCode"].ToString();
newRow["TestRate"] = row["TestRate"].ToString();
newRow["TestCount"] = row["TestCount"].ToString();
dtMain.Rows.Add(newRow);
}
BLL.Common.FastReportService.AddFastreportTable(dtMain);
}
else
if (tb.Rows.Count > 0)
{
PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_HardTestReportId2, this.HardTestReportId, string.Empty, "打印 - ")));
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_HardTestReportId1, this.HardTestReportId, varValue, "打印 - ")));
DataTable dt = new DataTable();
dt.TableName = "Data";
dt.Columns.Add("JOT_JointNoStr1");
dt.Columns.Add("TestPart1");
dt.Columns.Add("HardNessValue1");
dt.Columns.Add("JOT_JointNoStr2");
dt.Columns.Add("TestPart2");
dt.Columns.Add("HardNessValue2");
dt.Columns.Add("JOT_JointNoStr3");
dt.Columns.Add("TestPart3");
dt.Columns.Add("HardNessValue3");
DataRow[] rows = tb.DefaultView.ToTable().Select();
foreach (var row in rows)
{
var newRow = dt.NewRow();
newRow["JOT_JointNoStr1"] = row["JOT_JointNoStr1"].ToString();
newRow["TestPart1"] = row["TestPart1"].ToString();
newRow["HardNessValue1"] = row["HardNessValue1"].ToString();
newRow["JOT_JointNoStr2"] = row["JOT_JointNoStr2"].ToString();
newRow["TestPart2"] = row["TestPart2"].ToString();
newRow["HardNessValue2"] = row["HardNessValue2"].ToString();
newRow["JOT_JointNoStr3"] = row["JOT_JointNoStr3"].ToString();
newRow["TestPart3"] = row["TestPart3"].ToString();
newRow["HardNessValue3"] = row["HardNessValue3"].ToString();
dt.Rows.Add(newRow);
}
BLL.Common.FastReportService.AddFastreportTable(dt);
}
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
//keyValuePairs.Add("ProjectName", hidProjectName.Value);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\硬度检验报告.frx";
if (File.Exists(rootPath + initTemplatePath))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
}
//if (tb.Rows.Count <= 18)
//{
// PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_HardTestReportId1, this.HardTestReportId, varValue, "打印 - ")));
//}
//else
//{
// PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_HardTestReportId2, this.HardTestReportId, string.Empty, "打印 - ")));
// PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_HardTestReportId1, this.HardTestReportId, varValue, "打印 - ")));
//}
}
else
{
@ -767,15 +864,15 @@ namespace FineUIPro.Web.HJGL.HotHardManage
var hardTestReportItems = from x in Funs.DB.HJGL_CH_HardTestReportItem
where x.HardTestReportId == this.HardTestReportId
select x;
var jots = (from x in hardTestReportItems
join y in Funs.DB.HJGL_PW_JointInfo
on x.JOT_ID equals y.JOT_ID
select x.JOT_ID).Distinct();
var jots = (from x in hardTestReportItems
join y in Funs.DB.HJGL_PW_JointInfo
on x.JOT_ID equals y.JOT_ID
select x.JOT_ID).Distinct();
var jotIdItems = from x in Funs.DB.HJGL_PW_JointInfo
where jots.Contains(x.JOT_ID)
orderby x.Sort1, x.Sort2, x.Sort3, x.Sort4, x.Sort5
select x.JOT_ID;
where jots.Contains(x.JOT_ID)
orderby x.Sort1, x.Sort2, x.Sort3, x.Sort4, x.Sort5
select x.JOT_ID;
int i = 1;
foreach (var jotId in jotIdItems)
{
@ -794,38 +891,16 @@ namespace FineUIPro.Web.HJGL.HotHardManage
i = 1;
}
}
//var jotIdItems = (from x in hardTestReportItems
// join y in Funs.DB.HJGL_PW_JointInfo
// on x.JOT_ID equals y.JOT_ID
// //orderby y.Sort1,y.Sort2,y.Sort3,y.Sort4,y.Sort5
// select x.JOT_ID + "," + x.HotProessTrustId).Distinct();
//int i = 1;
//foreach (var jotIds in jotIdItems)
//{
// string jotId = jotIds.Split(',')[0];
// string hotProessTrustId = jotIds.Split(',')[1];
// var items = hardTestReportItems.Where(x => x.JOT_ID == jotId && x.HotProessTrustId == hotProessTrustId);
// foreach (var item in items)
// {
// item.Flag = i;
// BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReportItem(item);
// }
// if (i == 1 || i == 2)
// {
// i++;
// }
// else
// {
// i = 1;
// }
//}
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@HardTestReportId", this.HardTestReportId));
listStr.Add(new SqlParameter("@Flag", "0"));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReportItem", parameter);
string varValue = Funs.GetPagesCountByPageSize(18, 24, tb.Rows.Count).ToString();
DataTable tbMain = BLL.SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReport", parameter);
List<SqlParameter> listStr2 = new List<SqlParameter>();
listStr2.Add(new SqlParameter("@HardTestReportId", this.HardTestReportId));
listStr2.Add(new SqlParameter("@Flag", "0"));
SqlParameter[] parameter2 = listStr2.ToArray();
DataTable tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_spCH_HardTestReportItem", parameter2);
Model.HJGL_CH_HardTestReport report = BLL.HJGL_CH_HardTestReportService.GetCH_HardTestReportByID(this.HardTestReportId);
if (report != null)
@ -835,15 +910,96 @@ namespace FineUIPro.Web.HJGL.HotHardManage
BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReport(report);
this.cbIsPrint.Checked = true;
}
if (tb.Rows.Count <= 18)
string initTemplatePath = "";
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
if (tbMain.Rows.Count > 0)
{
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_HardTestNewReportId, this.HardTestReportId, varValue, "打印 - ")));
DataTable dtMain = new DataTable();
dtMain.TableName = "MainData";
dtMain.Columns.Add("ProjectName");
dtMain.Columns.Add("ProjectCode");
dtMain.Columns.Add("TrustUnitName");
dtMain.Columns.Add("ContractUnitName");
dtMain.Columns.Add("HardTestReportCode");
dtMain.Columns.Add("ISO_IsoNo");
dtMain.Columns.Add("TestStandard");
dtMain.Columns.Add("MaterialStandard");
dtMain.Columns.Add("STE_Code");
dtMain.Columns.Add("TestRate");
dtMain.Columns.Add("TestMethod");
dtMain.Columns.Add("HotProessState");
dtMain.Columns.Add("EquipmentCode");
DataRow[] rows = tbMain.DefaultView.ToTable().Select();
foreach (var row in rows)
{
var newRow = dtMain.NewRow();
newRow["ProjectName"] = row["ProjectName"].ToString();
newRow["ProjectCode"] = row["ProjectCode"].ToString();
newRow["TrustUnitName"] = row["TrustUnitName"].ToString();
newRow["ContractUnitName"] = row["ContractUnitName"].ToString();
newRow["HardTestReportCode"] = row["HardTestReportCode"].ToString();
newRow["ISO_IsoNo"] = row["ISO_IsoNo"].ToString();
newRow["TestStandard"] = row["TestStandard"].ToString();
newRow["MaterialStandard"] = row["MaterialStandard"].ToString();
newRow["STE_Code"] = row["STE_Code"].ToString();
newRow["TestRate"] = row["TestRate"].ToString();
newRow["TestMethod"] = row["TestMethod"].ToString();
newRow["HotProessState"] = row["HotProessState"].ToString();
newRow["EquipmentCode"] = row["EquipmentCode"].ToString();
dtMain.Rows.Add(newRow);
}
BLL.Common.FastReportService.AddFastreportTable(dtMain);
}
else
if (tb.Rows.Count > 0)
{
PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_HardTestNewReportId2, this.HardTestReportId, string.Empty, "打印 - ")));
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_HardTestNewReportId, this.HardTestReportId, varValue, "打印 - ")));
DataTable dt = new DataTable();
dt.TableName = "Data";
dt.Columns.Add("NewJOT_JointNoStr1");
dt.Columns.Add("HardNessValue1");
dt.Columns.Add("NewJOT_JointNoStr2");
dt.Columns.Add("HardNessValue2");
dt.Columns.Add("NewJOT_JointNoStr3");
dt.Columns.Add("HardNessValue3");
DataRow[] rows = tb.DefaultView.ToTable().Select();
foreach (var row in rows)
{
var newRow = dt.NewRow();
newRow["NewJOT_JointNoStr1"] = row["NewJOT_JointNoStr1"].ToString();
newRow["HardNessValue1"] = row["HardNessValue1"].ToString();
newRow["NewJOT_JointNoStr2"] = row["NewJOT_JointNoStr2"].ToString();
newRow["HardNessValue2"] = row["HardNessValue2"].ToString();
newRow["NewJOT_JointNoStr3"] = row["NewJOT_JointNoStr3"].ToString();
newRow["HardNessValue3"] = row["HardNessValue3"].ToString();
dt.Rows.Add(newRow);
}
BLL.Common.FastReportService.AddFastreportTable(dt);
}
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
//keyValuePairs.Add("ProjectName", hidProjectName.Value);
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\硬度检测报告(新).frx";
if (File.Exists(rootPath + initTemplatePath))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
}
//if (tb.Rows.Count <= 18)
//{
// PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_HardTestNewReportId, this.HardTestReportId, varValue, "打印 - ")));
//}
//else
//{
// PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_HardTestNewReportId2, this.HardTestReportId, string.Empty, "打印 - ")));
// PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_HardTestNewReportId, this.HardTestReportId, varValue, "打印 - ")));
//}
}
else
{

View File

@ -112,6 +112,7 @@ namespace FineUIPro.Web.WeldMat.Stock
newStockIn.MoveInStoreId = drpUnitStoreOut.SelectedValue;
newStockIn.MoveInManId = CurrUser.UserId;
newStockIn.MoveInDate = DateTime.Now;
newStockIn.Weight = q.Weight;
Funs.DB.Weld_StockIn.InsertOnSubmit(newStockIn);
}
Funs.DB.SubmitChanges();