diff --git a/HJGL_DS/BLL/Common/Const.cs b/HJGL_DS/BLL/Common/Const.cs
index 1304b2e..f262369 100644
--- a/HJGL_DS/BLL/Common/Const.cs
+++ b/HJGL_DS/BLL/Common/Const.cs
@@ -2466,6 +2466,30 @@ namespace BLL
/// 工业管道安装汇总表导出模板
///
public const string JGZL_IndustrialPipelineInstallationSummaryUrl = "File\\Word\\JGZL\\工业管道安装汇总表导出模板.docx";
+
+ ///
+ /// 工程施工开工报告导出模板
+ ///
+ public const string JGZL_CommencementReportUrl = "File\\Word\\JGZL\\工程施工开工报告导出模板.docx";
+
+ ///
+ /// 工程中间交接证书导出模板
+ ///
+ public const string JGZL_HandoverCertificateUrl = "File\\Word\\JGZL\\工程中间交接证书导出模板.docx";
+
+
+
+
+
+ ///
+ /// 工序交接记录导出模板
+ ///
+ public const string JGZL_ProcessHandoverRecordUrl = "File\\Word\\JGZL\\工序交接记录导出模板.docx";
+
+ ///
+ /// 管道预制施工检查记录导出模板
+ ///
+ public const string JGZL_PipelinePrefabricationConstructionInspectionRecordUrl= "File\\Word\\JGZL\\管道预制施工检查记录导出模板.docx";
#endregion
}
}
diff --git a/HJGL_DS/BLL/JGZL/PipelinePrefabricationConstructionInspectionRecordService.cs b/HJGL_DS/BLL/JGZL/PipelinePrefabricationConstructionInspectionRecordService.cs
index 5ee73b2..3a3a3c3 100644
--- a/HJGL_DS/BLL/JGZL/PipelinePrefabricationConstructionInspectionRecordService.cs
+++ b/HJGL_DS/BLL/JGZL/PipelinePrefabricationConstructionInspectionRecordService.cs
@@ -18,6 +18,16 @@ namespace BLL
return Funs.DB.JGZL_PipelinePrefabricationConstructionInspectionRecord.FirstOrDefault(e => e.RecordId == Id);
}
+ ///
+ /// 根据项目获取管道预制施工检查记录
+ ///
+ ///
+ ///
+ public static Model.JGZL_PipelinePrefabricationConstructionInspectionRecord GetPipelinePrefabricationConstructionInspectionRecordByProjectId(string projectId)
+ {
+ return Funs.DB.JGZL_PipelinePrefabricationConstructionInspectionRecord.FirstOrDefault(e => e.ProjectId == projectId);
+ }
+
///
/// 添加管道预制施工检查记录
///
diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道预制施工检查记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道预制施工检查记录.frx
index b73f963..c1dc819 100644
--- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道预制施工检查记录.frx
+++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道预制施工检查记录.frx
@@ -1,7 +1,7 @@
-
+
-
+
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..72ab2f3
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工序交接记录导出模板.docx
@@ -0,0 +1,31 @@
+ SH/T 3543 -- G112
+ 工序交接记录
+工程名称:
+
+单位工程名称:管道安装工程
+ 执行标准
+
+ 组织单位/部门
+
+ 交出单位
+
+ 接收单位
+
+交出内容(包括实体质量、质量记录、检试验报告等)及自检结果:
+
+接收单位意见:
+ 接 收 单 位
+ 组织交接单位/部门
+ 交 出 单 位
+专业工程师:
+质量检查员:
+
+日期: 年 月 日
+专业工程师:
+
+
+日期: 年 月 日
+专业工程师:
+质量检查员:
+日期: 年 月 日
+
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..7d5b2db
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工程中间交接证书导出模板.docx
@@ -0,0 +1,65 @@
+ SH/T 3503 -- J106A
+ 工程中间交接证书
+工程名称:
+ 施工合同编号
+
+ 交接日期
+
+ 工
+
+ 程
+
+ 内
+
+ 容
+
+ 接
+ 收
+ 意
+ 见
+
+
+
+
+
+ 使用单位负责(代表)人: 年 月 日
+ 质
+ 量
+ 监
+ 督
+ 意
+ 见
+
+
+
+
+
+
+
+工程质量监督站长/组长:(监督站/组章) 年 月 日
+
+ 建设单位
+ 设计单位
+ 监理单位
+ 施工单位
+
+(项目部章)
+项目经理:
+
+日期: 年 月 日
+
+(项目部章)
+项目经理:
+
+日期: 年 月 日
+
+(项目部章)
+项目总监:
+
+日期: 年 月 日
+
+(项目部章)
+项目经理:
+
+日期: 年 月 日
+
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..482d0d8
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工程施工开工报告导出模板.docx
@@ -0,0 +1,65 @@
+ SH/T 3503 -- J105A
+ 工程施工开工报告
+工程名称:
+ 施工合同编号
+
+ 设计单位
+
+ 计划开工日期
+
+ 计划交工日期
+
+ 工
+
+ 程
+
+ 内
+
+ 容
+
+
+ 开
+ 工
+ 条
+ 件
+
+ 审
+ 查
+ 意
+ 见
+
+ 质
+ 量
+ 监
+ 督
+ 意
+ 见
+
+
+
+
+
+
+
+
+
+工程质量监督站长/组长:(监督站/组章)年月日
+ 建设单位
+ 监理单位
+ 施工单位
+
+(项目部章)
+项目经理:
+
+日期: 年 月 日
+
+(项目部章)
+项目总监:
+
+日期: 年 月 日
+
+(项目部章)
+项目经理:
+
+日期: 年 月 日
+
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..cba755d
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/管道预制施工检查记录导出模板.docx
@@ -0,0 +1,18 @@
+ SH/T 3543 -- G122
+ 管道预制施工检查记录
+工程名称:
+
+单位工程名称:管道安装工程
+ 专业工程
+
+ 施工图号
+
+
+
+施工班组长:
+日期: 年 月 日
+专业工程师:
+日期: 年 月 日
+质量检查员:
+日期: 年 月 日
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/CommencementReport.aspx b/HJGL_DS/FineUIPro.Web/JGZL/CommencementReport.aspx
index ceb53f1..41e0244 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/CommencementReport.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/CommencementReport.aspx
@@ -45,6 +45,9 @@
<%----%>
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/CommencementReport.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/CommencementReport.aspx.cs
index 6c0dd02..a27e6f1 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/CommencementReport.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/CommencementReport.aspx.cs
@@ -10,6 +10,7 @@ using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using Org.BouncyCastle.Bcpg.OpenPgp;
+using Aspose.Words;
namespace FineUIPro.Web.JGZL
{
@@ -307,5 +308,101 @@ 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))
+ {
+ initTemplatePath = Const.JGZL_CommencementReportUrl;
+ 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 projectName = doc.Range.Bookmarks["ProjectName"];
+ if (projectName != null)
+ {
+ projectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName;
+ }
+ Bookmark contractNumber = doc.Range.Bookmarks["ContractNumber"];
+ if (contractNumber != null)
+ {
+ contractNumber.Text = this.txtContractNumber.Text;
+ }
+ Bookmark designUnit = doc.Range.Bookmarks["DesignUnit"];
+ if (designUnit != null)
+ {
+ designUnit.Text = this.txtDesignUnit.Text;
+ }
+ Bookmark plannedStartDate =doc.Range.Bookmarks["PlannedStartDate"];
+ if (plannedStartDate != null)
+ {
+ string startDate = string.Format("{0:yyyy年MM月dd日}", Funs.GetNewDateTime(this.txtPlannedStartDate.Text));
+ plannedStartDate.Text = startDate;
+ }
+ Bookmark plannedEndDate = doc.Range.Bookmarks["PlannedEndDate"];
+ if (plannedEndDate != null)
+ {
+ string endDate = string.Format("{0:yyyy年MM月dd日}", Funs.GetNewDateTime(this.txtPlannedEndDate.Text));
+ plannedEndDate.Text = endDate;
+ }
+ Bookmark projectContent = doc.Range.Bookmarks["ProjectContent"];
+ if (projectContent != null)
+ {
+ projectContent.Text = this.txtProjectContent.Text;
+ }
+ Bookmark conditions = doc.Range.Bookmarks["Conditions"];
+ if (conditions != null)
+ {
+ conditions.Text = this.txtConditions.Text;
+ }
+ Bookmark reviewOpinion = doc.Range.Bookmarks["ReviewOpinion"];
+ if (reviewOpinion != null)
+ {
+ reviewOpinion.Text = this.txtReviewOpinion.Text;
+ }
+ Bookmark qualitySupervisionOpinion = doc.Range.Bookmarks["QualitySupervisionOpinion"];
+ if (qualitySupervisionOpinion != null)
+ {
+ qualitySupervisionOpinion.Text = this.txtQualitySupervisionOpinion.Text;
+ }
+ 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;
+ }
+ }
+ #endregion
}
}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/CommencementReport.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/CommencementReport.aspx.designer.cs
index 735c8ac..f175c86 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/CommencementReport.aspx.designer.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/CommencementReport.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/HandoverCertificate.aspx b/HJGL_DS/FineUIPro.Web/JGZL/HandoverCertificate.aspx
index 120d454..881df82 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/HandoverCertificate.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/HandoverCertificate.aspx
@@ -45,6 +45,9 @@
<%----%>
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/HandoverCertificate.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/HandoverCertificate.aspx.cs
index 85e78ab..7039685 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/HandoverCertificate.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/HandoverCertificate.aspx.cs
@@ -9,6 +9,7 @@ using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Drawing.Drawing2D;
+using Aspose.Words;
namespace FineUIPro.Web.JGZL
{
@@ -519,5 +520,89 @@ 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))
+ {
+ initTemplatePath = Const.JGZL_HandoverCertificateUrl;
+ 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 projectName = doc.Range.Bookmarks["ProjectName"];
+ if (projectName != null)
+ {
+ projectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName;
+ }
+ Bookmark contractNumber = doc.Range.Bookmarks["ContractNumber"];
+ if (contractNumber != null)
+ {
+ contractNumber.Text = this.txtContractNumber.Text;
+ }
+ Bookmark handoverDate = doc.Range.Bookmarks["HandoverDate"];
+ if (handoverDate != null)
+ {
+ handoverDate.Text = string.Format("{0:yyyy年MM月dd日}", Funs.GetNewDateTime(this.txtHandoverDate.Text));
+ }
+ Bookmark projectContent = doc.Range.Bookmarks["ProjectContent"];
+ if (projectContent != null)
+ {
+ projectContent.Text = this.txtProjectContent.Text;
+ }
+ Bookmark receiveOpinions = doc.Range.Bookmarks["ReceiveOpinions"];
+ if (receiveOpinions != null)
+ {
+ receiveOpinions.Text = this.txtReceiveOpinions.Text;
+ }
+ Bookmark headerMan = doc.Range.Bookmarks["HeaderMan"];
+ if (headerMan != null)
+ {
+ headerMan.Text = this.txtHeaderMan.Text;
+ }
+ Bookmark supervisionOpinion = doc.Range.Bookmarks["SupervisionOpinion"];
+ if (supervisionOpinion != null)
+ {
+ supervisionOpinion.Text = this.txtSupervisionOpinion.Text;
+ }
+ 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;
+ }
+ }
+ #endregion
}
}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/HandoverCertificate.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/HandoverCertificate.aspx.designer.cs
index bfd71fa..0ef85a0 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/HandoverCertificate.aspx.designer.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/HandoverCertificate.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/PipelinePrefabricationConstructionInspectionRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx
index 5c4c24d..6d62f65 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx
@@ -39,14 +39,45 @@
-
+
+
+ <%----%>
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--
-
+ --%>
-
-
+ --%>
- --%>
-
+ --%>