diff --git a/HJGL_DS/BLL/Common/Const.cs b/HJGL_DS/BLL/Common/Const.cs index cd73d96..1304b2e 100644 --- a/HJGL_DS/BLL/Common/Const.cs +++ b/HJGL_DS/BLL/Common/Const.cs @@ -2456,6 +2456,16 @@ namespace BLL /// 特种设备安装改造维修告知书导出模板 /// public const string JGZL_SpecialEquipmentMaintenanceUrl = "File\\Word\\JGZL\\特种设备安装改造维修告知书导出模板.docx"; + + /// + /// 工业管道安装质量证明书导出模板 + /// + public const string JGZL_IndustrialPipelineInstallationQualityCertificateUrl = "File\\Word\\JGZL\\工业管道安装质量证明书导出模板.docx"; + + /// + /// 工业管道安装汇总表导出模板 + /// + public const string JGZL_IndustrialPipelineInstallationSummaryUrl = "File\\Word\\JGZL\\工业管道安装汇总表导出模板.docx"; #endregion } } diff --git a/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工业管道安装汇总表导出模板.docx b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工业管道安装汇总表导出模板.docx new file mode 100644 index 0000000..c2b7ab2 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工业管道安装汇总表导出模板.docx @@ -0,0 +1,103 @@ + + 工业管道安装汇总表 +质量证明书编号: +交工单元名称: +交工单元编号: + 管 + 道 + 编 + 号 + 管 + 道 + 级 + 别 + 起止点 + 设计 + 压力 + (MPa) + 设计 + 温度 + (℃) + 介 + 质 + 材 + 质 + 规格 + (mm) + 长 + 度 + (m) + 铺 + 设 + 方 + 式 + 焊 + 口 + 数 + 量 + 无损 + 检测 + 方法/ + 比例 + (%) + 耐 + 压 + 试 + 验 + 方 + 法 + 耐 + 压 + 试 + 验 + 介 + 质 + 耐压 + 试验 + 压力 + (MPa) + 泄漏 + 试验 + 介质 + 泄漏 + 试验 + 压力 + (MPa) + 吹扫 + 、 + 清洗 + 方法 + 腐 + 蚀 + 控 + 制 + 方 + 式 + 保温 + (绝热) + 方式 + + + 起 + 点 + 终 + 点 + + + + + + + + + + + + + + + + + +填表: 日期: 审核: 日期: + 共 页 第 页 diff --git a/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工业管道安装质量证明书导出模板.docx b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工业管道安装质量证明书导出模板.docx new file mode 100644 index 0000000..c154c1d --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工业管道安装质量证明书导出模板.docx @@ -0,0 +1,51 @@ + 工业管道安装质量证明书 + + 编号: + 工程名称 + + 工程编号 + + 交工单元名称 + + 交工单元编号 + + 安装开工日期 + + 安装竣工日期 + + 管道级别 + + 管道长度 + + 设计单位 + + 无损检测机构 + + 监检机构 + + 建设单位 + (使用单位) + + + 本工业管道的安装经质量检验,符合《工业管道安全技术规程》(TSG 31-2025)、设计文件和 的要求。 + + 附:《工业管道安装汇总表》共 页 + + +检验员: 日期: + + + + 质量保证工程师: 日期: + + + + 安装单位 (盖章) + + 年 月 日 + + +特种设备生产许可证编号: + + + diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PipelineManageEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PipelineManageEdit.aspx.cs index 90f999b..11bc555 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PipelineManageEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/PipelineManageEdit.aspx.cs @@ -164,6 +164,7 @@ drpJoty_B_Rate.Enabled = true; drpJoty_C_Rate.Enabled = true; drpJoty_D_Rate.Enabled = true; + drpIDName.Enabled = true; } } diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx index 34bfec5..46d5bb0 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx @@ -40,11 +40,14 @@ - + OnClick="btnSave_Click"> + <%----%> + + @@ -110,8 +113,8 @@ - - + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs index 8ea738d..18a4437 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs @@ -8,6 +8,7 @@ using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; +using Aspose.Words; namespace FineUIPro.Web.JGZL { @@ -627,5 +628,141 @@ namespace FineUIPro.Web.JGZL } } #endregion + + #region 导出按钮 + /// 导出按钮 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + string rootPath = Server.MapPath("~/"); + string initTemplatePath = string.Empty; + string uploadfilepath = string.Empty; + string newUrl = string.Empty; + string filePath = string.Empty; + + string projectId = this.tvControlItem.SelectedNodeID; + if (!string.IsNullOrEmpty(projectId)) + { + var report = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateByProjectId(projectId); + if (report != null) + { + initTemplatePath = Const.JGZL_IndustrialPipelineInstallationQualityCertificateUrl; + uploadfilepath = rootPath + initTemplatePath; + + newUrl = uploadfilepath.Replace("工业管道安装质量证明书导出模板", "工业管道安装质量证明书"); + if (File.Exists(newUrl)) + { + File.Delete(newUrl); + } + File.Copy(uploadfilepath, newUrl); + Document doc = new Aspose.Words.Document(uploadfilepath); + + Bookmark certificateCode = doc.Range.Bookmarks["CertificateCode"]; + if (certificateCode != null) + { + certificateCode.Text = report.CertificateCode; + } + Bookmark engineeringName = doc.Range.Bookmarks["EngineeringName"]; + if (engineeringName != null) + { + engineeringName.Text = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName; + } + Bookmark engineeringCode = doc.Range.Bookmarks["EngineeringCode"]; + if (engineeringCode != null) + { + engineeringCode.Text = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectCode; + } + Bookmark deliveryUnit = doc.Range.Bookmarks["DeliveryUnit"]; + if (deliveryUnit != null) + { + deliveryUnit.Text = report.DeliveryUnit; + } + Bookmark deliveryUnitCode = doc.Range.Bookmarks["DeliveryUnitCode"]; + if (deliveryUnitCode != null) + { + deliveryUnitCode.Text = report.DeliveryUnitCode; + } + Bookmark installStartDate = doc.Range.Bookmarks["InstallStartDate"]; + if (installStartDate != null) + { + installStartDate.Text = report.InstallStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallStartDate) : ""; + } + Bookmark installEndDate = doc.Range.Bookmarks["InstallEndDate"]; + if (installEndDate != null) + { + installEndDate.Text = report.InstallEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallEndDate) : ""; + } + Bookmark pipelineLevel = doc.Range.Bookmarks["PipelineLevel"]; + if (pipelineLevel != null) + { + pipelineLevel.Text = report.PipelineLevel; + } + Bookmark pipelineLength = doc.Range.Bookmarks["PipelineLength"]; + if (pipelineLength != null) + { + pipelineLength.Text = report.PipelineLength; + } + Bookmark designUnit = doc.Range.Bookmarks["DesignUnit"]; + if (designUnit != null) + { + designUnit.Text = report.DesignUnit; + } + Bookmark losslessTestingAgency = doc.Range.Bookmarks["LosslessTestingAgency"]; + if (losslessTestingAgency != null) + { + losslessTestingAgency.Text = report.LosslessTestingAgency; + } + Bookmark supervisoryAndInspectionAgency = doc.Range.Bookmarks["SupervisoryAndInspectionAgency"]; + if (supervisoryAndInspectionAgency != null) + { + if (report.SupervisoryAndInspectionAgency != null) + { + supervisoryAndInspectionAgency.Text = report.SupervisoryAndInspectionAgency; + } + } + Bookmark constructionUnit = doc.Range.Bookmarks["ConstructionUnit"]; + if (constructionUnit != null) + { + constructionUnit.Text = report.ConstructionUnit; + } + Bookmark remark = doc.Range.Bookmarks["Remark"]; + if (remark != null) + { + remark.Text = report.Remark; + } + Bookmark specialEquipmentProductionLicenseCode = doc.Range.Bookmarks["SpecialEquipmentProductionLicenseCode"]; + if (specialEquipmentProductionLicenseCode != null) + { + specialEquipmentProductionLicenseCode.Text = report.SpecialEquipmentProductionLicenseCode; + } + doc.Save(newUrl); + + string fileName = Path.GetFileName(newUrl); + FileInfo info = new FileInfo(newUrl); + long fileSize = info.Length; + Response.Clear(); + Response.ContentType = "application/x-zip-compressed"; + Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8)); + Response.AddHeader("Content-Length", fileSize.ToString()); + Response.TransmitFile(newUrl, 0, fileSize); + Response.Flush(); + Response.Close(); + File.Delete(newUrl); + } + else + { + Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning); + return; + } + } + else + { + Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + return; + } + } + #endregion } } \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs index 9c6fb3e..00c6352 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.designer.cs @@ -122,6 +122,15 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.Button btnPrint; + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + /// /// SimpleForm1 控件。 /// diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx index 9dd86cc..9de4b66 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx @@ -44,6 +44,9 @@ + + @@ -60,7 +63,7 @@ - + @@ -224,7 +227,7 @@ + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.cs index 7251303..e2a75f8 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.cs @@ -1,17 +1,20 @@ -using BLL; +using Aspose.Words; +using Aspose.Words.Tables; +using BLL; +using Model; +using Newtonsoft.Json.Linq; +using NPOI.SS.Formula.Functions; +using Org.BouncyCastle.Asn1.IsisMtt; using System; using System.Collections.Generic; -using System.Data.SqlClient; using System.Data; +using System.Data.SqlClient; +using System.IO; using System.Linq; using System.Web; +using System.Web.Services; using System.Web.UI; using System.Web.UI.WebControls; -using System.IO; -using Newtonsoft.Json.Linq; -using System.Web.Services; -using Org.BouncyCastle.Asn1.IsisMtt; -using Model; using static System.Windows.Forms.VisualStyles.VisualStyleElement; namespace FineUIPro.Web.JGZL @@ -147,7 +150,7 @@ namespace FineUIPro.Web.JGZL newSummary.VoltageResistantTestMedium = "水";//耐压试验介质 newSummary.LeakageTestMedium = "空气";//泄漏试验介质 newSummary.CleaningMethod = "压缩空气吹扫";//吹扫、清洗方法 - newSummary.VoltageResistantTestPressure = item.ISO_TestPress.Value.ToString(("0.##")) + "MPa";//耐压试验压力 + newSummary.VoltageResistantTestPressure = item.ISO_TestPress.HasValue ? item.ISO_TestPress.Value.ToString(("0.##")) + "MPa" : "";//耐压试验压力 newSummary.LeakageTestPressure = item.LeakageTest + "MPa";//泄漏试验压力 newSummary.CorrosionControlMethod = item.ISO_Paint;//腐蚀控制方式 newSummary.VoltageResistantTestMethod = "水压试验";//耐压试验方法 @@ -612,5 +615,236 @@ namespace FineUIPro.Web.JGZL } } #endregion + + #region 导出按钮 + /// 导出按钮 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + string rootPath = Server.MapPath("~/"); + string initTemplatePath = string.Empty; + string uploadfilepath = string.Empty; + string newUrl = string.Empty; + string filePath = string.Empty; + + //每页显示的固定数据行数 + int rowsPerPage = 4; + + string projectId = this.tvControlItem.SelectedNodeID; + if (!string.IsNullOrEmpty(projectId)) + { + string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary where ProjectId = @ProjectId "; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", projectId)); + if (!string.IsNullOrEmpty(this.txtIsoNoS.Text)) + { + strSql += " And PipelineCode like @pipeLineCode"; + listStr.Add(new SqlParameter("@pipeLineCode", "%" + this.txtIsoNoS.Text + "%")); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + if (tb.Rows.Count > 0) + { + initTemplatePath = Const.JGZL_IndustrialPipelineInstallationSummaryUrl; + uploadfilepath = rootPath + initTemplatePath; + + newUrl = uploadfilepath.Replace("工业管道安装汇总表导出模板", "工业管道安装汇总表"); + if (File.Exists(newUrl)) + { + File.Delete(newUrl); + } + File.Copy(uploadfilepath, newUrl); + //更新书签内容 + Document doc = new Aspose.Words.Document(newUrl); + DocumentBuilder builder = new DocumentBuilder(doc); + + Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true); + + string certificateCode = string.Empty; + string deliveryUnit = string.Empty; + string deliveryUnitCode = string.Empty; + string certificateId = tb.Rows[0]["CertificateId"].ToString(); + var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(certificateId); + if (certificate != null) + { + certificateCode = certificate.CertificateCode; + deliveryUnit = certificate.DeliveryUnit; + deliveryUnitCode = certificate.DeliveryUnitCode; + } + + Bookmark bookmark1 = doc.Range.Bookmarks["certificateCode"]; + if (bookmark1 != null) + { + bookmark1.Text = certificateCode; + } + Bookmark bookmark2 = doc.Range.Bookmarks["deliveryUnit"]; + if (bookmark2 != null) + { + bookmark2.Text = deliveryUnit; + } + Bookmark bookmark3 = doc.Range.Bookmarks["deliveryUnitCode"]; + if (bookmark3 != null) + { + bookmark3.Text = deliveryUnitCode; + } + + // 设置表头行重复显示 + table.Rows[0].RowFormat.HeadingFormat = true; + table.Rows[1].RowFormat.HeadingFormat = true; + table.Rows[2].RowFormat.HeadingFormat = true; + + // 先记录页尾行,并从表格中移除 + //Row footerRow = table.Rows[table.Rows.Count - 1]; + //table.Rows.RemoveAt(table.Rows.Count - 1); + + for (int i = 0; i < tb.Rows.Count; i++) + { + //创建行 + Aspose.Words.Tables.Row row = new Aspose.Words.Tables.Row(doc); + row.Cells.Add(CreateCell(tb.Rows[i]["PipelineCode"].ToString(), doc, 32.3, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["PipelineLevel"].ToString(), doc, 33.7, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["PipelineStartPoint"].ToString(), doc, 31.75, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["PipelineEndPoint"].ToString(), doc, 32, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["DesignPressure"].ToString(), doc, 40, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["DesignTemperature"].ToString(), doc, 36, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["Medium"].ToString(), doc, 30.6, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["Material"].ToString(), doc, 31.47, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["Specifications"].ToString(), doc, 32.3, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["Length"].ToString(), doc, 30, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["LayingMethod"].ToString(), doc, 31.49, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["WeldsNum"].ToString(), doc, 30, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["LosslessRatio"].ToString(), doc, 39, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestMethod"].ToString(), doc, 32.3, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestMedium"].ToString(), doc, 28.6, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["VoltageResistantTestPressure"].ToString(), doc, 38, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestMedium"].ToString(), doc, 37.4, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["LeakageTestPressure"].ToString(), doc, 41.67, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["CleaningMethod"].ToString(), doc, 34.3, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["CorrosionControlMethod"].ToString(), doc, 31.2, "", "")); + row.Cells.Add(CreateCell(tb.Rows[i]["InsulationMethod"].ToString(), doc, 43.9, "", "")); + + table.Rows.Insert(i + 3, row); + } + // 计算并插入空白行,填满整页 + // 计算总数据行数 + int totalDataRows = tb.Rows.Count; + // 计算需要补充的空白行数量 + int remainder = totalDataRows % rowsPerPage; + int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder; + + // 插入空白行(和数据行格式保持一致,仅内容为空) + for (int i = 0; i < needBlankRows - 1; i++) + { + Aspose.Words.Tables.Row blankRow = new Aspose.Words.Tables.Row(doc); + // 空白行的单元格宽度和数据行保持一致 + blankRow.Cells.Add(CreateCell("", doc, 32.3, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 33.7, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 31.75, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 32, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 40, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 36, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 30.6, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 31.47, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 32.3, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 30, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 31.49, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 30, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 39, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 32.3, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 28.6, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 38, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 37.4, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 41.67, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 34.3, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 31.2, "", "")); + blankRow.Cells.Add(CreateCell("", doc, 43.9, "", "")); + + // 插入到表格最后一行 + table.Rows.Add(blankRow); + } + //把页尾行重新加回表格最后 + //table.Rows.Add(footerRow); + + //自动设置表格样式 + table.AutoFit(AutoFitBehavior.FixedColumnWidths); + table.Alignment = TableAlignment.Center; + + doc.Save(newUrl); + + string fileName = Path.GetFileName(newUrl); + FileInfo info = new FileInfo(newUrl); + long fileSize = info.Length; + Response.Clear(); + Response.ContentType = "application/x-zip-compressed"; + Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8)); + Response.AddHeader("Content-Length", fileSize.ToString()); + Response.TransmitFile(newUrl, 0, fileSize); + Response.Flush(); + Response.Close(); + File.Delete(newUrl); + } + else + { + Alert.ShowInTop("没有要导出的数据!", MessageBoxIcon.Warning); + return; + } + } + else + { + Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + return; + } + } + + public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "") + { + Cell cell = new Cell(doc); + Paragraph p = new Paragraph(doc); + if (!string.IsNullOrEmpty(cellMerge)) + { + if (cellMerge == "0") + { + cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格 + } + else + { + cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的第一个单元格 + } + + } + else + { + cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None; + } + if (!string.IsNullOrEmpty(CenterPage)) + { + //序号 + value = " " + value; + } + if (!string.IsNullOrEmpty(cellUnitLeft)) + { + p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左 + } + else + { + p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//表格中字体居中 + } + + + p.AppendChild(new Run(doc, value)); + + cell.CellFormat.Width = cellWidth; + + cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center; + + cell.CellFormat.Borders.LineWidth = 0.75; + + cell.AppendChild(p); + return cell; + } + + #endregion } } \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.designer.cs index 935679d..9a352bb 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.designer.cs @@ -140,6 +140,15 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.Button btnPrint; + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + /// /// Grid1 控件。 /// diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx index 7ae54c5..3652c4e 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/PressureTestOfPipelineSystemConfirmationRecord.aspx @@ -81,7 +81,11 @@ - + + + + + - /// txtCheckItem3 控件。 + /// drpCheckItem3 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtCheckItem3; + protected global::FineUIPro.DropDownList drpCheckItem3; /// /// WindowPrint 控件。