diff --git a/HJGL_DS/BLL/Common/Const.cs b/HJGL_DS/BLL/Common/Const.cs
index 748fb6b..ce3ca60 100644
--- a/HJGL_DS/BLL/Common/Const.cs
+++ b/HJGL_DS/BLL/Common/Const.cs
@@ -2505,6 +2505,12 @@ namespace BLL
/// 隐蔽工程验收记录导出模板
///
public const string JGZL_ConcealedWorksInspectionRecordUrl = "File\\Word\\JGZL\\隐蔽工程验收记录导出模板.docx";
+
+
+ ///
+ /// 隔热工程质量验收记录导出模板
+ ///
+ public const string JGZL_InsulationAcceptanceRecordUrl = "File\\Word\\JGZL\\隔热工程质量验收记录导出模板.docx";
#endregion
}
}
diff --git a/HJGL_DS/BLL/JGZL/InsulationAcceptanceRecordService.cs b/HJGL_DS/BLL/JGZL/InsulationAcceptanceRecordService.cs
index 33e4812..4b4fb18 100644
--- a/HJGL_DS/BLL/JGZL/InsulationAcceptanceRecordService.cs
+++ b/HJGL_DS/BLL/JGZL/InsulationAcceptanceRecordService.cs
@@ -22,6 +22,16 @@ namespace BLL
return Funs.DB.JGZL_InsulationAcceptanceRecord.FirstOrDefault(e => e.InsulationAcceptanceRecordId == insulationAcceptanceRecordId);
}
+ ///
+ /// 根据项目Id获取隔热工程质量验收记录
+ ///
+ ///
+ ///
+ public static Model.JGZL_InsulationAcceptanceRecord GetInsulationAcceptanceRecordByProjectId(string projectId)
+ {
+ return Funs.DB.JGZL_InsulationAcceptanceRecord.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 57ed50f..60d2ff6 100644
--- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/防腐工程质量验收记录.frx
+++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/防腐工程质量验收记录.frx
@@ -1,5 +1,5 @@
-
+
using System;
using System.Collections;
using System.Collections.Generic;
@@ -42,7 +42,7 @@ namespace FastReport
}
-
+
diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/隔热工程质量验收记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/隔热工程质量验收记录.frx
index 21e7566..5cd76eb 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..592db9a
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/隔热工程质量验收记录导出模板.docx
@@ -0,0 +1,72 @@
+ SH/T 3503 -- J119
+ 隔热工程质量验收记录
+工程名称:
+
+单位工程名称:管道安装工程
+ 隔
+ 热
+ 部
+ 位
+
+ 隔
+ 热
+ 结
+ 构
+
+ 检查项目与要求
+ 检查结果
+原材料符合设计及有关规范要求,具有出厂质量证明文件及复验报告
+
+设备、管道按规定进行了压力试验,防腐涂层完毕
+
+具有工序交接记录
+
+管支、托架处的隔热层结构不影响活动面的自由伸缩
+
+ 隔
+ 热
+ 层
+成型制品同层错缝、内外层压缝,伸缩缝留置正确,嵌缝充填或粘贴紧密、厚度偏差符合规范规定
+
+
+缠裹材料同层靠紧,内外层缠裹方向相反,接缝错开,厚度偏差符合规范规定
+
+
+散状材料和浇注材料,填充密实、均匀,厚度偏差符合规范规定
+
+ 防
+ 潮
+ 层
+粘贴于隔热层上,无脱落和鼓包现象,表面平整,厚度符合规范规定
+
+ 保
+ 护
+ 层
+金属保护层应压边,搭接缝、表面平整度符合规范规定,无脱壳和凹凸不平
+
+
+卷材保护层应紧贴表面,无褶皱和开裂
+
+
+抹面保护层应平整、光滑,端部棱角整齐,无显著裂纹,表面平整度符合规范规定
+
+验收结论:
+
+
+
+ 建设/监理单位
+ 总承包单位
+ 施工单位
+专业工程师:
+
+
+日期: 年 月 日
+专业工程师:
+
+
+日期: 年 月 日
+施工班组长:
+质量检验员:
+专业工程师:
+日期: 年 月 日
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecord.aspx.cs
index eae719b..8ac800c 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecord.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/AnticorrosionEngineeringInspectionRecord.aspx.cs
@@ -99,6 +99,10 @@ namespace FineUIPro.Web.JGZL
}
else
{
+ txtAnticorrosionCurrentStatus.Text = "Sa2.5级";
+ txtAnticorrosionPart.Text = "管道及管件外表面";
+ txtAnticorrosionRequire.Text = "一道底漆两道中间漆一道面漆";
+
Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems checkItem1 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordCheckItems();
checkItem1.CheckItemsId = SQLHelper.GetNewID();
checkItem1.Sort = 1;
@@ -161,16 +165,19 @@ namespace FineUIPro.Web.JGZL
Model.JGZL_AnticorrosionEngineeringInspectionRecordItem item1 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordItem();
item1.AnticorrosionItemId = SQLHelper.GetNewID();
item1.Part = "底层";
+ item1.MaterialName = "环氧富新底漆";
recordItems.Add(item1);
Model.JGZL_AnticorrosionEngineeringInspectionRecordItem item2 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordItem();
item2.AnticorrosionItemId = SQLHelper.GetNewID();
item2.Part = "中间层";
+ item2.MaterialName = "环氧云铁中间漆";
recordItems.Add(item2);
Model.JGZL_AnticorrosionEngineeringInspectionRecordItem item3 = new Model.JGZL_AnticorrosionEngineeringInspectionRecordItem();
item3.AnticorrosionItemId = SQLHelper.GetNewID();
item3.Part = "面层";
+ item3.MaterialName = "脂肪族聚氨酯面漆";
recordItems.Add(item3);
this.Grid1.DataSource = recordItems;
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecord.aspx
index b11898d..1c3a81f 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecord.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecord.aspx
@@ -4,7 +4,7 @@
-
+
隔热工程质量验收记录
@@ -39,14 +39,77 @@
-
+ <%----%>
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--
-
+ --%>
-
-
+ --%>
- --%>
-
+ --%>
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecord.aspx.cs
index b26b1e9..a5ca522 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecord.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecord.aspx.cs
@@ -1,18 +1,57 @@
-using BLL;
+using Aspose.Words;
+using BLL;
+using Newtonsoft.Json.Linq;
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.UI;
using System.Web.UI.WebControls;
-using System.IO;
namespace FineUIPro.Web.JGZL
{
public partial class InsulationAcceptanceRecord : PageBase
{
+ #region 定义项
+ ///
+ /// 主键
+ ///
+ private string InsulationAcceptanceRecordId
+ {
+ get
+ {
+ return (string)ViewState["InsulationAcceptanceRecordId"];
+ }
+ set
+ {
+ ViewState["InsulationAcceptanceRecordId"] = value;
+ }
+ }
+
+ ///
+ /// 项目Id
+ ///
+ private string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = value;
+ }
+ }
+
+ ///
+ /// 定义集合
+ ///
+ private static List items = new List();
+ #endregion
+
#region 加载页面
///
/// 加载页面
@@ -23,7 +62,7 @@ namespace FineUIPro.Web.JGZL
{
if (!IsPostBack)
{
- this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
+ //this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
this.drpProjectId.DataTextField = "ProjectCode";
this.drpProjectId.DataValueField = "ProjectId";
@@ -34,9 +73,130 @@ namespace FineUIPro.Web.JGZL
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
this.InitTreeMenu();//加载树
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
- this.BindGrid();
+ this.ProjectId = this.tvControlItem.SelectedNodeID;
+ DataInfo();
+ //this.BindGrid();
}
}
+
+ ///
+ /// 绑定数据
+ ///
+ ///
+ private void DataInfo()
+ {
+ items.Clear();
+ this.InsulationAcceptanceRecordId = string.Empty;
+ this.txtHeatInsulationArea.Text = string.Empty;
+ this.txtInsulationStructure.Text = string.Empty;
+ this.txtAcceptanceConclusion.Text = string.Empty;
+ if (!string.IsNullOrEmpty(this.ProjectId))
+ {
+ var report = BLL.InsulationAcceptanceRecordService.GetInsulationAcceptanceRecordByProjectId(this.ProjectId);
+ if (report != null)
+ {
+ this.InsulationAcceptanceRecordId = report.InsulationAcceptanceRecordId;
+ this.txtHeatInsulationArea.Text = report.HeatInsulationArea;
+ this.txtInsulationStructure.Text = report.InsulationStructure;
+ this.txtAcceptanceConclusion.Text = report.AcceptanceConclusion;
+
+ items = BLL.InsulationAcceptanceRecordItemService.GetItemsByInsulationAcceptanceRecordId(this.InsulationAcceptanceRecordId);
+ this.Grid1.DataSource = items;
+ this.Grid1.DataBind();
+ }
+ else
+ {
+ InitItemData();
+ }
+ }
+ }
+
+ ///
+ /// 加载默认明细
+ ///
+ private void InitItemData()
+ {
+ items.Clear();
+ Model.JGZL_InsulationAcceptanceRecordItem newItem = new Model.JGZL_InsulationAcceptanceRecordItem();
+ newItem.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
+ newItem.CheckCode = "1";
+ newItem.CheckItem = "原材料符合设计及有关规范要求,具有出厂质量证明文件及复验报告";
+ newItem.CheckResult = "合格";
+ items.Add(newItem);
+
+ Model.JGZL_InsulationAcceptanceRecordItem newItem2 = new Model.JGZL_InsulationAcceptanceRecordItem();
+ newItem2.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
+ newItem2.CheckCode = "2";
+ newItem2.CheckItem = "设备、管道按规定进行了压力试验,防腐涂层完毕";
+ newItem2.CheckResult = "合格";
+ items.Add(newItem2);
+
+ Model.JGZL_InsulationAcceptanceRecordItem newItem3 = new Model.JGZL_InsulationAcceptanceRecordItem();
+ newItem3.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
+ newItem3.CheckCode = "3";
+ newItem3.CheckItem = "具有工序交接记录";
+ newItem3.CheckResult = "合格";
+ items.Add(newItem3);
+
+ Model.JGZL_InsulationAcceptanceRecordItem newItem4 = new Model.JGZL_InsulationAcceptanceRecordItem();
+ newItem4.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
+ newItem4.CheckCode = "4";
+ newItem4.CheckItem = "管支、托架处的隔热层结构不影响活动面的自由伸缩";
+ newItem4.CheckResult = "合格";
+ items.Add(newItem4);
+
+ Model.JGZL_InsulationAcceptanceRecordItem newItem5 = new Model.JGZL_InsulationAcceptanceRecordItem();
+ newItem5.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
+ newItem5.CheckCode = "5";
+ newItem5.CheckItem = "成型制品同层错缝、内外层压缝,伸缩缝留置正确,嵌缝充填或粘贴紧密、厚度偏差符合规范规定";
+ newItem5.CheckResult = "合格";
+ items.Add(newItem5);
+
+ Model.JGZL_InsulationAcceptanceRecordItem newItem6 = new Model.JGZL_InsulationAcceptanceRecordItem();
+ newItem6.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
+ newItem6.CheckCode = "6";
+ newItem6.CheckItem = "缠裹材料同层靠紧,内外层缠裹方向相反,接缝错开,厚度偏差符合规范规定";
+ newItem6.CheckResult = "合格";
+ items.Add(newItem6);
+
+ Model.JGZL_InsulationAcceptanceRecordItem newItem7 = new Model.JGZL_InsulationAcceptanceRecordItem();
+ newItem7.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
+ newItem7.CheckCode = "7";
+ newItem7.CheckItem = "散状材料和浇注材料,填充密实、均匀,厚度偏差符合规范规定";
+ newItem7.CheckResult = "合格";
+ items.Add(newItem7);
+
+ Model.JGZL_InsulationAcceptanceRecordItem newItem8 = new Model.JGZL_InsulationAcceptanceRecordItem();
+ newItem8.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
+ newItem8.CheckCode = "8";
+ newItem8.CheckItem = "粘贴于隔热层上,无脱落和鼓包现象,表面平整,厚度符合规范规定";
+ newItem8.CheckResult = "合格";
+ items.Add(newItem8);
+
+ Model.JGZL_InsulationAcceptanceRecordItem newItem9 = new Model.JGZL_InsulationAcceptanceRecordItem();
+ newItem9.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
+ newItem9.CheckCode = "9";
+ newItem9.CheckItem = "金属保护层应压边,搭接缝、表面平整度符合规范规定,无脱壳和凹凸不平";
+ newItem9.CheckResult = "合格";
+ items.Add(newItem9);
+
+ Model.JGZL_InsulationAcceptanceRecordItem newItem10 = new Model.JGZL_InsulationAcceptanceRecordItem();
+ newItem10.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
+ newItem10.CheckCode = "10";
+ newItem10.CheckItem = "卷材保护层应紧贴表面,无褶皱和开裂";
+ newItem10.CheckResult = "合格";
+ items.Add(newItem10);
+
+ Model.JGZL_InsulationAcceptanceRecordItem newItem11 = new Model.JGZL_InsulationAcceptanceRecordItem();
+ newItem11.InsulationAcceptanceRecordItemId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecordItem));
+ newItem11.CheckCode = "11";
+ newItem11.CheckItem = "抹面保护层应平整、光滑,端部棱角整齐,无显著裂纹,表面平整度符合规范规定";
+ newItem11.CheckResult = "合格";
+ items.Add(newItem11);
+
+ this.Grid1.DataSource = items;
+ this.Grid1.DataBind();
+ }
#endregion
#region 加载树项目
@@ -82,7 +242,9 @@ namespace FineUIPro.Web.JGZL
{
if (this.tvControlItem.SelectedNodeID != "0")
{
- this.BindGrid();
+ this.ProjectId = this.tvControlItem.SelectedNodeID;
+ DataInfo();
+ //this.BindGrid();
}
}
#endregion
@@ -91,24 +253,24 @@ namespace FineUIPro.Web.JGZL
///
/// 数据绑定
///
- private void BindGrid()
- {
- string strSql = @"SELECT * from JGZL_InsulationAcceptanceRecord where 1=1";
- List listStr = new List();
- if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
- {
- strSql += " AND ProjectId = @ProjectId";
- listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
- }
- SqlParameter[] parameter = listStr.ToArray();
- DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
- // 2.获取当前分页数据
- Grid1.RecordCount = tb.Rows.Count;
- //tb = GetFilteredTable(Grid1.FilteredData, tb);
- var table = this.GetPagedDataTable(Grid1, tb);
- Grid1.DataSource = table;
- Grid1.DataBind();
- }
+ //private void BindGrid()
+ //{
+ // string strSql = @"SELECT * from JGZL_InsulationAcceptanceRecord where 1=1";
+ // List listStr = new List();
+ // if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ // {
+ // strSql += " AND ProjectId = @ProjectId";
+ // listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID));
+ // }
+ // SqlParameter[] parameter = listStr.ToArray();
+ // DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ // // 2.获取当前分页数据
+ // Grid1.RecordCount = tb.Rows.Count;
+ // //tb = GetFilteredTable(Grid1.FilteredData, tb);
+ // var table = this.GetPagedDataTable(Grid1, tb);
+ // Grid1.DataSource = table;
+ // Grid1.DataBind();
+ //}
#endregion
#region 分页排序
@@ -118,10 +280,10 @@ namespace FineUIPro.Web.JGZL
///
///
///
- protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
- {
- BindGrid();
- }
+ //protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ //{
+ // BindGrid();
+ //}
#endregion
#region 排序
@@ -130,10 +292,10 @@ namespace FineUIPro.Web.JGZL
///
///
///
- protected void Grid1_Sort(object sender, GridSortEventArgs e)
- {
- BindGrid();
- }
+ //protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ //{
+ // BindGrid();
+ //}
#endregion
#region 分页选择下拉改变事件
@@ -142,11 +304,11 @@ namespace FineUIPro.Web.JGZL
///
///
///
- protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
- {
- Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
- BindGrid();
- }
+ //protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ //{
+ // Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ // BindGrid();
+ //}
#endregion
#endregion
@@ -158,9 +320,11 @@ namespace FineUIPro.Web.JGZL
///
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{
- this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
+ this.ProjectId = this.drpProjectId.SelectedValue;
this.InitTreeMenu();
- BindGrid();
+ this.tvControlItem.SelectedNodeID = this.ProjectId;
+ DataInfo();
+ //BindGrid();
}
///
@@ -170,7 +334,7 @@ namespace FineUIPro.Web.JGZL
///
protected void TextBox_TextChanged(object sender, EventArgs e)
{
- this.BindGrid();
+ //this.BindGrid();
}
#endregion
@@ -186,79 +350,83 @@ namespace FineUIPro.Web.JGZL
if (projectId != null)
{
- if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
+ //if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
+ //{
+ string initTemplatePath = "";
+ string rootPath = Server.MapPath("~/");
+ BLL.Common.FastReportService.ResetData();
+
+ var report = BLL.InsulationAcceptanceRecordService.GetInsulationAcceptanceRecordById(this.InsulationAcceptanceRecordId);
+ if (report != null)
{
- string initTemplatePath = "";
- string rootPath = Server.MapPath("~/");
- BLL.Common.FastReportService.ResetData();
+ DataTable dt = new DataTable();
+ dt.TableName = "MainData";
+ dt.Columns.Add("ProjectName");
+ dt.Columns.Add("HeatInsulationArea");
+ dt.Columns.Add("InsulationStructure");
+ dt.Columns.Add("AcceptanceConclusion");
+ dt.Columns.Add("CompileDate");
- var report = BLL.InsulationAcceptanceRecordService.GetInsulationAcceptanceRecordById(this.Grid1.SelectedRowID);
- if (report != null)
+ var newRow = dt.NewRow();
+ newRow["ProjectName"] = BLL.Base_ProjectService.GetProjectByProjectId(report.ProjectId).ProjectName;
+ newRow["HeatInsulationArea"] = report.HeatInsulationArea;
+ newRow["InsulationStructure"] = report.InsulationStructure;
+ newRow["AcceptanceConclusion"] = report.AcceptanceConclusion;
+ string CompileDate = string.Format("{0:yyyy年MM月dd日}", report.CompileDate);
+ newRow["CompileDate"] = CompileDate;
+ dt.Rows.Add(newRow);
+ BLL.Common.FastReportService.AddFastreportTable(dt);
+
+ var itemList = BLL.InsulationAcceptanceRecordItemService.GetItemsByInsulationAcceptanceRecordId(this.InsulationAcceptanceRecordId);
+ if (itemList.Count > 0)
{
- DataTable dt = new DataTable();
- dt.TableName = "MainData";
- dt.Columns.Add("ProjectName");
- dt.Columns.Add("HeatInsulationArea");
- dt.Columns.Add("InsulationStructure");
- dt.Columns.Add("AcceptanceConclusion");
- dt.Columns.Add("CompileDate");
+ //DataTable itemdt = new DataTable();
+ //itemdt.TableName = "Data";
+ //itemdt.Columns.Add("CheckCode");
+ //itemdt.Columns.Add("CheckItem");
+ //itemdt.Columns.Add("CheckResult");
- var newRow = dt.NewRow();
- newRow["ProjectName"] = BLL.Base_ProjectService.GetProjectByProjectId(report.ProjectId).ProjectName;
- newRow["HeatInsulationArea"] = report.HeatInsulationArea;
- newRow["InsulationStructure"] = report.InsulationStructure;
- newRow["AcceptanceConclusion"] = report.AcceptanceConclusion;
- string CompileDate = string.Format("{0:yyyy年MM月dd日}", report.CompileDate);
- newRow["CompileDate"] = CompileDate;
- dt.Rows.Add(newRow);
- BLL.Common.FastReportService.AddFastreportTable(dt);
+ //foreach (var item in itemList)
+ //{
+ // var newRow2 = itemdt.NewRow();
+ // newRow2["CheckCode"] = item.CheckCode;
+ // newRow2["CheckItem"] = item.CheckItem;
+ // newRow2["CheckResult"] = item.CheckResult;
+ // itemdt.Rows.Add(newRow2);
+ //}
+ //BLL.Common.FastReportService.AddFastreportTable(itemdt);
- var itemList = BLL.InsulationAcceptanceRecordItemService.GetItemsByInsulationAcceptanceRecordId(this.Grid1.SelectedRowID);
- if (itemList.Count > 0)
- {
- //DataTable itemdt = new DataTable();
- //itemdt.TableName = "Data";
- //itemdt.Columns.Add("CheckCode");
- //itemdt.Columns.Add("CheckItem");
- //itemdt.Columns.Add("CheckResult");
-
- //foreach (var item in itemList)
- //{
- // var newRow2 = itemdt.NewRow();
- // newRow2["CheckCode"] = item.CheckCode;
- // newRow2["CheckItem"] = item.CheckItem;
- // newRow2["CheckResult"] = item.CheckResult;
- // itemdt.Rows.Add(newRow2);
- //}
- //BLL.Common.FastReportService.AddFastreportTable(itemdt);
-
-
- Dictionary keyValuePairs = new Dictionary();
- keyValuePairs.Add("CheckResult1", itemList.Where(x => x.CheckCode == "1").FirstOrDefault().CheckResult);
- keyValuePairs.Add("CheckResult2", itemList.Where(x => x.CheckCode == "2").FirstOrDefault().CheckResult);
- keyValuePairs.Add("CheckResult3", itemList.Where(x => x.CheckCode == "3").FirstOrDefault().CheckResult);
- keyValuePairs.Add("CheckResult4", itemList.Where(x => x.CheckCode == "4").FirstOrDefault().CheckResult);
- keyValuePairs.Add("CheckResult5", itemList.Where(x => x.CheckCode == "5").FirstOrDefault().CheckResult);
- keyValuePairs.Add("CheckResult6", itemList.Where(x => x.CheckCode == "6").FirstOrDefault().CheckResult);
- keyValuePairs.Add("CheckResult7", itemList.Where(x => x.CheckCode == "7").FirstOrDefault().CheckResult);
- keyValuePairs.Add("CheckResult8", itemList.Where(x => x.CheckCode == "8").FirstOrDefault().CheckResult);
- keyValuePairs.Add("CheckResult9", itemList.Where(x => x.CheckCode == "9").FirstOrDefault().CheckResult);
- keyValuePairs.Add("CheckResult10", itemList.Where(x => x.CheckCode == "10").FirstOrDefault().CheckResult);
- keyValuePairs.Add("CheckResult11", itemList.Where(x => x.CheckCode == "11").FirstOrDefault().CheckResult);
- BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
- }
- }
- initTemplatePath = "File\\Fastreport\\JGZL\\隔热工程质量验收记录.frx";
- if (File.Exists(rootPath + initTemplatePath))
- {
- PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
+ Dictionary keyValuePairs = new Dictionary();
+ keyValuePairs.Add("CheckResult1", itemList.Where(x => x.CheckCode == "1").FirstOrDefault().CheckResult);
+ keyValuePairs.Add("CheckResult2", itemList.Where(x => x.CheckCode == "2").FirstOrDefault().CheckResult);
+ keyValuePairs.Add("CheckResult3", itemList.Where(x => x.CheckCode == "3").FirstOrDefault().CheckResult);
+ keyValuePairs.Add("CheckResult4", itemList.Where(x => x.CheckCode == "4").FirstOrDefault().CheckResult);
+ keyValuePairs.Add("CheckResult5", itemList.Where(x => x.CheckCode == "5").FirstOrDefault().CheckResult);
+ keyValuePairs.Add("CheckResult6", itemList.Where(x => x.CheckCode == "6").FirstOrDefault().CheckResult);
+ keyValuePairs.Add("CheckResult7", itemList.Where(x => x.CheckCode == "7").FirstOrDefault().CheckResult);
+ keyValuePairs.Add("CheckResult8", itemList.Where(x => x.CheckCode == "8").FirstOrDefault().CheckResult);
+ keyValuePairs.Add("CheckResult9", itemList.Where(x => x.CheckCode == "9").FirstOrDefault().CheckResult);
+ keyValuePairs.Add("CheckResult10", itemList.Where(x => x.CheckCode == "10").FirstOrDefault().CheckResult);
+ keyValuePairs.Add("CheckResult11", itemList.Where(x => x.CheckCode == "11").FirstOrDefault().CheckResult);
+ BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
}
}
else
{
- Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ Alert.ShowInTop("请先保存数据!", MessageBoxIcon.Warning);
return;
}
+ initTemplatePath = "File\\Fastreport\\JGZL\\隔热工程质量验收记录.frx";
+ if (File.Exists(rootPath + initTemplatePath))
+ {
+ PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
+ }
+ //}
+ //else
+ //{
+ // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ // return;
+ //}
}
else
{
@@ -274,140 +442,140 @@ namespace FineUIPro.Web.JGZL
///
///
///
- protected void btnAdd_Click(object sender, EventArgs e)
- {
- if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
- {
- PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InsulationAcceptanceRecordEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
- }
- else
- {
- Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
- return;
- }
- }
+ //protected void btnAdd_Click(object sender, EventArgs e)
+ //{
+ // if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ // {
+ // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InsulationAcceptanceRecordEdit.aspx?projectId={0}", this.tvControlItem.SelectedNodeID, "新增 - ")));
+ // }
+ // else
+ // {
+ // Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ // return;
+ // }
+ //}
///
/// 双击编辑
///
///
///
- protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
- {
- if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_InsulationAcceptanceRecordMenuId, BLL.Const.BtnModify))
- {
- if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
- {
- if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
- {
- PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InsulationAcceptanceRecordEdit.aspx?insulationAcceptanceRecordId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
- }
- else
- {
- Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
- return;
- }
- }
- else
- {
- Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
- return;
- }
- }
- else
- {
- ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
- }
- }
+ //protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ //{
+ // if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_InsulationAcceptanceRecordMenuId, BLL.Const.BtnModify))
+ // {
+ // if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
+ // {
+ // if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
+ // {
+ // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InsulationAcceptanceRecordEdit.aspx?insulationAcceptanceRecordId={0}", this.Grid1.SelectedRowID, "编辑 - ")));
+ // }
+ // else
+ // {
+ // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ // return;
+ // }
+ // }
+ // else
+ // {
+ // Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ // return;
+ // }
+ // }
+ // else
+ // {
+ // ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ // }
+ //}
///
/// 右键编辑
///
///
///
- protected void btnMenuEdit_Click(object sender, EventArgs e)
- {
- if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_InsulationAcceptanceRecordMenuId, BLL.Const.BtnModify))
- {
- if (Grid1.SelectedRowIndexArray.Length == 0)
- {
- Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
- return;
- }
- PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InsulationAcceptanceRecordEdit.aspx?insulationAcceptanceRecordId={0}", Grid1.SelectedRowID, "维护 - ")));
- }
- else
- {
- Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
- }
- }
+ //protected void btnMenuEdit_Click(object sender, EventArgs e)
+ //{
+ // if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_InsulationAcceptanceRecordMenuId, BLL.Const.BtnModify))
+ // {
+ // if (Grid1.SelectedRowIndexArray.Length == 0)
+ // {
+ // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ // return;
+ // }
+ // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InsulationAcceptanceRecordEdit.aspx?insulationAcceptanceRecordId={0}", Grid1.SelectedRowID, "维护 - ")));
+ // }
+ // else
+ // {
+ // Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ // }
+ //}
///
/// 右键删除
///
///
///
- protected void btnMenuDelete_Click(object sender, EventArgs e)
- {
- if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_InsulationAcceptanceRecordMenuId, Const.BtnDelete))
- {
- if (Grid1.SelectedRowIndexArray.Length == 0)
- {
- Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
- return;
- }
+ //protected void btnMenuDelete_Click(object sender, EventArgs e)
+ //{
+ // if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_InsulationAcceptanceRecordMenuId, Const.BtnDelete))
+ // {
+ // if (Grid1.SelectedRowIndexArray.Length == 0)
+ // {
+ // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ // return;
+ // }
- bool isShow = true;
- if (Grid1.SelectedRowIndexArray.Length > 1)
- {
- isShow = false;
- }
- bool isDelete = false;
- foreach (int rowIndex in Grid1.SelectedRowIndexArray)
- {
- string rowID = Grid1.DataKeys[rowIndex][0].ToString();
- if (judgementDelete(rowID, isShow))
- {
- isDelete = true;
- BLL.InsulationAcceptanceRecordItemService.DeleteItemByInsulationAcceptanceRecordId(rowID);
- BLL.InsulationAcceptanceRecordService.DeleteInsulationAcceptanceRecordById(rowID);
- BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除隔热工程质量验收记录");
- }
- }
- if (isDelete)
- {
- ShowNotify("删除成功!", MessageBoxIcon.Success);
- }
- this.BindGrid();
- }
- else
- {
- Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
- }
- }
+ // bool isShow = true;
+ // if (Grid1.SelectedRowIndexArray.Length > 1)
+ // {
+ // isShow = false;
+ // }
+ // bool isDelete = false;
+ // foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ // {
+ // string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ // if (judgementDelete(rowID, isShow))
+ // {
+ // isDelete = true;
+ // BLL.InsulationAcceptanceRecordItemService.DeleteItemByInsulationAcceptanceRecordId(rowID);
+ // BLL.InsulationAcceptanceRecordService.DeleteInsulationAcceptanceRecordById(rowID);
+ // BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除隔热工程质量验收记录");
+ // }
+ // }
+ // if (isDelete)
+ // {
+ // ShowNotify("删除成功!", MessageBoxIcon.Success);
+ // }
+ // this.BindGrid();
+ // }
+ // else
+ // {
+ // Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ // }
+ //}
#region 判断是否可删除
///
/// 判断是否可以删除
///
///
- private bool judgementDelete(string id, bool isShow)
- {
- string content = string.Empty;
+ //private bool judgementDelete(string id, bool isShow)
+ //{
+ // string content = string.Empty;
- if (string.IsNullOrEmpty(content))
- {
- return true;
- }
- else
- {
- if (isShow)
- {
- Alert.ShowInTop(content, MessageBoxIcon.Error);
- }
- return false;
- }
- }
+ // if (string.IsNullOrEmpty(content))
+ // {
+ // return true;
+ // }
+ // else
+ // {
+ // if (isShow)
+ // {
+ // Alert.ShowInTop(content, MessageBoxIcon.Error);
+ // }
+ // return false;
+ // }
+ //}
#endregion
#endregion
@@ -417,10 +585,199 @@ namespace FineUIPro.Web.JGZL
///
///
///
- protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ //protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ //{
+ // this.InitTreeMenu();//加载树
+ // this.BindGrid();
+ //}
+ #endregion
+
+ #region 保存
+ protected void btnSave_Click(object sender, EventArgs e)
{
- this.InitTreeMenu();//加载树
- this.BindGrid();
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_InsulationAcceptanceRecordMenuId, Const.BtnSave))
+ {
+ Model.JGZL_InsulationAcceptanceRecord newReport = new Model.JGZL_InsulationAcceptanceRecord();
+ newReport.HeatInsulationArea = this.txtHeatInsulationArea.Text.Trim();
+ newReport.InsulationStructure = this.txtInsulationStructure.Text.Trim();
+ newReport.AcceptanceConclusion = this.txtAcceptanceConclusion.Text.Trim();
+ if (!string.IsNullOrEmpty(this.InsulationAcceptanceRecordId))
+ {
+ newReport.InsulationAcceptanceRecordId = this.InsulationAcceptanceRecordId;
+ BLL.InsulationAcceptanceRecordService.UpdateInsulationAcceptanceRecord(newReport);
+ }
+ else
+ {
+ newReport.ProjectId = this.ProjectId;
+ newReport.CompileMan = this.CurrUser.UserId;
+ newReport.CompileDate = DateTime.Now;
+ newReport.InsulationAcceptanceRecordId = SQLHelper.GetNewID(typeof(Model.JGZL_InsulationAcceptanceRecord));
+ this.InsulationAcceptanceRecordId = newReport.InsulationAcceptanceRecordId;
+ BLL.InsulationAcceptanceRecordService.AddInsulationAcceptanceRecord(newReport);
+ }
+ saveItem();
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ //PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+
+ ///
+ /// 保存明细
+ ///
+ void saveItem()
+ {
+ BLL.InsulationAcceptanceRecordItemService.DeleteItemByInsulationAcceptanceRecordId(this.InsulationAcceptanceRecordId);
+ //List detailLists = new List();
+ JArray teamGroupData = Grid1.GetMergedData();
+ foreach (JObject teamGroupRow in teamGroupData)
+ {
+ JObject values = teamGroupRow.Value("values");
+ int rowIndex = teamGroupRow.Value("index");
+ Model.JGZL_InsulationAcceptanceRecordItem newDetail = new Model.JGZL_InsulationAcceptanceRecordItem
+ {
+ InsulationAcceptanceRecordItemId = values.Value("InsulationAcceptanceRecordItemId"),
+ InsulationAcceptanceRecordId = this.InsulationAcceptanceRecordId,
+ CheckCode = values.Value("CheckCode"),
+ CheckItem = values.Value("CheckItem"),
+ CheckResult = values.Value("CheckResult")
+ };
+ BLL.InsulationAcceptanceRecordItemService.AddInsulationAcceptanceRecordItem(newDetail);
+ }
+ }
+ #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_InsulationAcceptanceRecordUrl;
+ 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 heatInsulationArea = doc.Range.Bookmarks["HeatInsulationArea"];
+ if (heatInsulationArea != null)
+ {
+ heatInsulationArea.Text = this.txtHeatInsulationArea.Text;
+ }
+ Bookmark insulationStructure = doc.Range.Bookmarks["InsulationStructure"];
+ if (insulationStructure != null)
+ {
+ insulationStructure.Text = this.txtInsulationStructure.Text;
+ }
+ Bookmark acceptanceConclusion = doc.Range.Bookmarks["AcceptanceConclusion"];
+ if (acceptanceConclusion != null)
+ {
+ acceptanceConclusion.Text = this.txtAcceptanceConclusion.Text;
+ }
+
+
+ var itemList = BLL.InsulationAcceptanceRecordItemService.GetItemsByInsulationAcceptanceRecordId(this.InsulationAcceptanceRecordId);
+ if (itemList.Count > 0)
+ {
+ Bookmark checkResult1 = doc.Range.Bookmarks["CheckResult1"];
+ if (checkResult1 != null)
+ {
+ checkResult1.Text = itemList.Where(x => x.CheckCode == "1").FirstOrDefault().CheckResult;
+ }
+ Bookmark checkResult2 = doc.Range.Bookmarks["CheckResult2"];
+ if (checkResult2 != null)
+ {
+ checkResult2.Text = itemList.Where(x => x.CheckCode == "2").FirstOrDefault().CheckResult;
+ }
+ Bookmark checkResult3 = doc.Range.Bookmarks["CheckResult3"];
+ if (checkResult3 != null)
+ {
+ checkResult3.Text = itemList.Where(x => x.CheckCode == "3").FirstOrDefault().CheckResult;
+ }
+ Bookmark checkResult4 = doc.Range.Bookmarks["CheckResult4"];
+ if (checkResult4 != null)
+ {
+ checkResult4.Text = itemList.Where(x => x.CheckCode == "4").FirstOrDefault().CheckResult;
+ }
+ Bookmark checkResult5 = doc.Range.Bookmarks["CheckResult5"];
+ if (checkResult5 != null)
+ {
+ checkResult5.Text = itemList.Where(x => x.CheckCode == "5").FirstOrDefault().CheckResult;
+ }
+ Bookmark checkResult6 = doc.Range.Bookmarks["CheckResult6"];
+ if (checkResult6 != null)
+ {
+ checkResult6.Text = itemList.Where(x => x.CheckCode == "6").FirstOrDefault().CheckResult;
+ }
+ Bookmark checkResult7 = doc.Range.Bookmarks["CheckResult7"];
+ if (checkResult7 != null)
+ {
+ checkResult7.Text = itemList.Where(x => x.CheckCode == "7").FirstOrDefault().CheckResult;
+ }
+ Bookmark checkResult8 = doc.Range.Bookmarks["CheckResult8"];
+ if (checkResult8 != null)
+ {
+ checkResult8.Text = itemList.Where(x => x.CheckCode == "8").FirstOrDefault().CheckResult;
+ }
+ Bookmark checkResult9 = doc.Range.Bookmarks["CheckResult9"];
+ if (checkResult9 != null)
+ {
+ checkResult9.Text = itemList.Where(x => x.CheckCode == "9").FirstOrDefault().CheckResult;
+ }
+ Bookmark checkResult10 = doc.Range.Bookmarks["CheckResult10"];
+ if (checkResult10 != null)
+ {
+ checkResult10.Text = itemList.Where(x => x.CheckCode == "10").FirstOrDefault().CheckResult;
+ }
+ Bookmark checkResult11 = doc.Range.Bookmarks["CheckResult11"];
+ if (checkResult11 != null)
+ {
+ checkResult11.Text = itemList.Where(x => x.CheckCode == "11").FirstOrDefault().CheckResult;
+ }
+ }
+ 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
}
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecord.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecord.aspx.designer.cs
index be4e125..5c25297 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecord.aspx.designer.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/InsulationAcceptanceRecord.aspx.designer.cs
@@ -105,13 +105,13 @@ namespace FineUIPro.Web.JGZL
protected global::FineUIPro.ToolbarFill ToolbarFill1;
///
- /// btnAdd 控件。
+ /// btnSave 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Button btnAdd;
+ protected global::FineUIPro.Button btnSave;
///
/// btnPrint 控件。
@@ -122,6 +122,51 @@ namespace FineUIPro.Web.JGZL
///
protected global::FineUIPro.Button btnPrint;
+ ///
+ /// btnOut 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOut;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// txtHeatInsulationArea 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtHeatInsulationArea;
+
+ ///
+ /// txtInsulationStructure 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtInsulationStructure;
+
+ ///
+ /// txtAcceptanceConclusion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtAcceptanceConclusion;
+
///
/// Grid1 控件。
///
@@ -132,40 +177,31 @@ namespace FineUIPro.Web.JGZL
protected global::FineUIPro.Grid Grid1;
///
- /// ToolbarSeparator1 控件。
+ /// txtCheckCode 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+ protected global::FineUIPro.TextBox txtCheckCode;
///
- /// ToolbarText1 控件。
+ /// txtCheckItem 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.ToolbarText ToolbarText1;
+ protected global::FineUIPro.TextBox txtCheckItem;
///
- /// ddlPageSize 控件。
+ /// drpCheckResult 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.DropDownList ddlPageSize;
-
- ///
- /// Window1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Window Window1;
+ protected global::FineUIPro.DropDownList drpCheckResult;
///
/// WindowPrint 控件。
@@ -175,32 +211,5 @@ namespace FineUIPro.Web.JGZL
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Window WindowPrint;
-
- ///
- /// Menu1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Menu Menu1;
-
- ///
- /// btnMenuEdit 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton btnMenuEdit;
-
- ///
- /// btnMenuDelete 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton btnMenuDelete;
}
}