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 @@
-
+