diff --git a/DataBase/版本日志/HJGLDB_DS_2026-09-09_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-09-09_bwj.sql
new file mode 100644
index 0000000..655abe3
--- /dev/null
+++ b/DataBase/版本日志/HJGLDB_DS_2026-09-09_bwj.sql
@@ -0,0 +1,7 @@
+
+alter table JGZL_IndustrialPipelineInstallationSummary add FromType char(1)
+go
+
+update JGZL_IndustrialPipelineInstallationSummary set FromType='1'
+go
+
diff --git a/DataBase/版本日志/HJGLDB_DS_2026-09-10_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-09-10_bwj.sql
new file mode 100644
index 0000000..88c9a65
--- /dev/null
+++ b/DataBase/版本日志/HJGLDB_DS_2026-09-10_bwj.sql
@@ -0,0 +1,5 @@
+
+update Sys_Menu set MenuName='ҵܵװ֤飨װ' where MenuId='F5833B38-65DF-4236-A676-EE75F9487061'
+update Sys_Menu set MenuName='ҵܵװ֤飨2020棩' where MenuId='F5833B38-65DF-4236-A676-EE75F9487061'
+update Sys_Menu set MenuName='ҵܵװܱװ' where MenuId='F5833B38-65DF-4236-A676-EE75F9487061'
+update Sys_Menu set MenuName='ҵܵװܱ2020棩' where MenuId='F5833B38-65DF-4236-A676-EE75F9487061'
diff --git a/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs
index 9646761..7ef42e6 100644
--- a/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs
+++ b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs
@@ -117,11 +117,11 @@ namespace BLL
///
///
///
- public static void InitIndustrialPipelineInstallationQualityCertificateDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
+ public static void InitIndustrialPipelineInstallationQualityCertificateDownList(FineUIPro.DropDownList dropName, string projectId,string fromType, bool isShowPlease)
{
dropName.DataValueField = "CertificateId";
dropName.DataTextField = "CertificateCode";
- dropName.DataSource = GetIndustrialPipelineInstallationQualityCertificateList(projectId);
+ dropName.DataSource = GetIndustrialPipelineInstallationQualityCertificateList(projectId,fromType);
dropName.DataBind();
if (isShowPlease)
{
@@ -134,11 +134,11 @@ namespace BLL
///
/// 项目Id
///
- public static List GetIndustrialPipelineInstallationQualityCertificateList(string projectId)
+ public static List GetIndustrialPipelineInstallationQualityCertificateList(string projectId, string fromType)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
- var q = (from x in db.JGZL_IndustrialPipelineInstallationQualityCertificate orderby x.CertificateCode descending select x).ToList();
+ var q = (from x in db.JGZL_IndustrialPipelineInstallationQualityCertificate where x.FromType == fromType orderby x.CertificateCode descending select x).ToList();
if (!string.IsNullOrWhiteSpace(projectId))
{
q = q.Where(x => x.ProjectId == projectId).ToList();
diff --git a/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationSummaryService.cs b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationSummaryService.cs
index 8d28e39..3728ce6 100644
--- a/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationSummaryService.cs
+++ b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationSummaryService.cs
@@ -19,9 +19,9 @@ namespace BLL
return Funs.DB.JGZL_IndustrialPipelineInstallationSummary.FirstOrDefault(e => e.SummaryId == Id);
}
- public static Model.JGZL_IndustrialPipelineInstallationSummary GetIndustrialPipelineInstallationSummaryByPipelineCode(string pipelineCode)
+ public static Model.JGZL_IndustrialPipelineInstallationSummary GetIndustrialPipelineInstallationSummaryByPipelineCode(string pipelineCode,string fromType)
{
- return Funs.DB.JGZL_IndustrialPipelineInstallationSummary.FirstOrDefault(e => e.PipelineCode == pipelineCode);
+ return Funs.DB.JGZL_IndustrialPipelineInstallationSummary.FirstOrDefault(e => e.PipelineCode == pipelineCode && e.FromType == fromType);
}
public static List GetIndustrialPipelineInstallationSummaryByProjectId(string projectId)
@@ -69,6 +69,7 @@ namespace BLL
newModel.OperatingTemperature = model.OperatingTemperature;
newModel.VoltageResistantTestDate = model.VoltageResistantTestDate;
newModel.LeakageTestDate = model.LeakageTestDate;
+ newModel.FromType = model.FromType;
db.JGZL_IndustrialPipelineInstallationSummary.InsertOnSubmit(newModel);
db.SubmitChanges();
}
@@ -117,11 +118,11 @@ namespace BLL
/// 根据项目Id删除工业管道安装汇总表
///
///
- public static void DeleteIndustrialPipelineInstallationSummaryByProjectId(string projectId)
+ public static void DeleteIndustrialPipelineInstallationSummaryByProjectId(string projectId,string fromType)
{
SGGLDB db = Funs.DB;
- var q = (from x in db.JGZL_IndustrialPipelineInstallationSummary where x.ProjectId == projectId select x).ToList();
- if (q.Count>0)
+ var q = (from x in db.JGZL_IndustrialPipelineInstallationSummary where x.ProjectId == projectId && x.FromType==fromType select x).ToList();
+ if (q.Count > 0)
{
db.JGZL_IndustrialPipelineInstallationSummary.DeleteAllOnSubmit(q);
db.SubmitChanges();
diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装汇总表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装汇总表.frx
index 4d34b0a..a4c9844 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
}
-
+
@@ -66,9 +66,9 @@ namespace FastReport
-
-
+
+
diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装汇总表2020.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装汇总表2020.frx
index 21ff3e2..f013eab 100644
--- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装汇总表2020.frx
+++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装汇总表2020.frx
@@ -1,5 +1,5 @@
-
+
using System;
using System.Collections;
using System.Collections.Generic;
@@ -42,7 +42,7 @@ namespace FastReport
}
-
+
@@ -75,19 +75,19 @@ namespace FastReport
-
-
+
+
-
+
-
-
+
+
@@ -98,10 +98,10 @@ namespace FastReport
-
+
-
+
@@ -110,7 +110,7 @@ namespace FastReport
-
+
@@ -183,13 +183,13 @@ namespace FastReport
-
+
-
-
+
+
@@ -200,49 +200,49 @@ namespace FastReport
-
+
-
+
-
+
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
-
-
+
+
@@ -253,10 +253,10 @@ namespace FastReport
-
+
-
+
diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装质量证明.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装质量证明.frx
index 467c6d2..9ba0aea 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/Fastreport/JGZL/管道无损检测数量统计表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道无损检测数量统计表.frx
index 1fa2b21..799518e 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/管道无损检测数量统计表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/管道无损检测数量统计表.frx
index 3c9be98..eac753f 100644
--- a/HJGL_DS/FineUIPro.Web/File/Fastreport/管道无损检测数量统计表.frx
+++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/管道无损检测数量统计表.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/Word/JGZL/工业管道安装汇总表2020导出模板.docx b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工业管道安装汇总表2020导出模板.docx
new file mode 100644
index 0000000..e06cd84
Binary files /dev/null and b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工业管道安装汇总表2020导出模板.docx differ
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/CheckManage/CheckQuantityStatistics.aspx b/HJGL_DS/FineUIPro.Web/HJGL/CheckManage/CheckQuantityStatistics.aspx
index 68c5d5c..a67ec5c 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/CheckManage/CheckQuantityStatistics.aspx
+++ b/HJGL_DS/FineUIPro.Web/HJGL/CheckManage/CheckQuantityStatistics.aspx
@@ -34,8 +34,7 @@
+ AutoLeafIdentification="true" EnableTextSelection="true" Expanded="true">
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/CheckManage/CheckQuantityStatistics.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/CheckManage/CheckQuantityStatistics.aspx.cs
index ebec5dc..7265389 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/CheckManage/CheckQuantityStatistics.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/HJGL/CheckManage/CheckQuantityStatistics.aspx.cs
@@ -45,7 +45,7 @@ namespace FineUIPro.Web.HJGL.CheckManage
{
this.tvControlItem.Nodes.Clear();
TreeNode rootNode = new TreeNode();
- rootNode.Text = "施工号-装置";
+ rootNode.Text = "施工号";
rootNode.ToolTip = "项目";
rootNode.NodeID = "0";
rootNode.Expanded = true;
@@ -63,15 +63,16 @@ namespace FineUIPro.Web.HJGL.CheckManage
rootProjectNode.Text = item.ProjectCode;
rootProjectNode.NodeID = item.ProjectId;
rootProjectNode.EnableExpandEvent = true;
+ rootProjectNode.EnableClickEvent = true;
rootProjectNode.ToolTip = item.ProjectName;
rootProjectNode.CommandName = "施工号";
rootNode.Nodes.Add(rootProjectNode);
- TreeNode tn = new TreeNode();
- tn.NodeID = "temp";
- tn.Text = "正在加载...";
+ //TreeNode tn = new TreeNode();
+ //tn.NodeID = "temp";
+ //tn.Text = "正在加载...";
- rootProjectNode.Nodes.Add(tn);
+ //rootProjectNode.Nodes.Add(tn);
}
}
@@ -80,38 +81,38 @@ namespace FineUIPro.Web.HJGL.CheckManage
///
///
///
- protected void tvControlItem_NodeExpand(object sender, TreeNodeEventArgs e)
- {
- if (e.Node.Nodes != null)
- {
- e.Node.Nodes.Clear();
- }
- List list = (from x in Funs.DB.Project_Installation where x.ProjectId == e.NodeID select x).ToList();
+ //protected void tvControlItem_NodeExpand(object sender, TreeNodeEventArgs e)
+ //{
+ // if (e.Node.Nodes != null)
+ // {
+ // e.Node.Nodes.Clear();
+ // }
+ // List list = (from x in Funs.DB.Project_Installation where x.ProjectId == e.NodeID select x).ToList();
- this.BindNodes(e.Node, list);
- }
+ // this.BindNodes(e.Node, list);
+ //}
///
/// 绑定树节点
///
///
- private void BindNodes(TreeNode node, List treeLists)
- {
- if (node.CommandName == "施工号")
- {
- var lists = (from x in treeLists orderby x.InstallationCode descending select x).Distinct();
- foreach (var item in lists)
- {
- TreeNode newNode = new TreeNode();
- newNode.Text = item.InstallationCode;
- newNode.NodeID = item.InstallationId;
- newNode.ToolTip = item.InstallationName;
- newNode.CommandName = "装置";
- newNode.EnableClickEvent = true;
- node.Nodes.Add(newNode);
- }
- }
- }
+ //private void BindNodes(TreeNode node, List treeLists)
+ //{
+ // if (node.CommandName == "施工号")
+ // {
+ // var lists = (from x in treeLists orderby x.InstallationCode descending select x).Distinct();
+ // foreach (var item in lists)
+ // {
+ // TreeNode newNode = new TreeNode();
+ // newNode.Text = item.InstallationCode;
+ // newNode.NodeID = item.InstallationId;
+ // newNode.ToolTip = item.InstallationName;
+ // newNode.CommandName = "装置";
+ // newNode.EnableClickEvent = true;
+ // node.Nodes.Add(newNode);
+ // }
+ // }
+ //}
#endregion
#region 点击TreeView
@@ -133,43 +134,43 @@ namespace FineUIPro.Web.HJGL.CheckManage
///
private void BindGrid()
{
- if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID) && !string.IsNullOrEmpty(this.tvControlItem.SelectedNode.ParentNode.NodeID))
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID) && this.tvControlItem.SelectedNodeID != "0")
{
string strSql = @"SELECT * FROM HJGL_View_TrustNumSummary WHERE ProjectId = @ProjectId ";//AND InstallationId = @InstallationId";
List listStr = new List();
- listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNode.ParentNode.NodeID));
+ listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNode.NodeID));
//listStr.Add(new SqlParameter("@InstallationId", this.tvControlItem.SelectedNodeID));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
- DataRow[] rows = tb.Select("InstallationId='" + this.tvControlItem.SelectedNodeID + "'");
+ //DataRow[] rows = tb.Select("InstallationId='" + this.tvControlItem.SelectedNodeID + "'");
// 2.获取当前分页数据
//var table = this.GetPagedDataTable(Grid1, tb1);
- Grid1.RecordCount = rows.Count();
+ Grid1.RecordCount = tb.Rows.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
- //var table = this.GetPagedDataTable(Grid1, tb);
+ var table = this.GetPagedDataTable(Grid1, tb);
- Grid1.DataSource = rows;
+ Grid1.DataSource = table;
Grid1.DataBind();
}
}
private void BindPage()
{
- if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID) && !string.IsNullOrEmpty(this.tvControlItem.SelectedNode.ParentNode.NodeID))
- {
- var ins = BLL.Project_InstallationService.GetInstallationByInstallationId(this.tvControlItem.SelectedNodeID);
- if (ins != null)
- {
- this.txtWorkAreaCode.Text = ins.InstallationCode;
- }
+ //if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID) && !string.IsNullOrEmpty(this.tvControlItem.SelectedNode.ParentNode.NodeID))
+ //{
+ // var ins = BLL.Project_InstallationService.GetInstallationByInstallationId(this.tvControlItem.SelectedNodeID);
+ // if (ins != null)
+ // {
+ // this.txtWorkAreaCode.Text = ins.InstallationCode;
+ // }
this.txtTestingStandard.Text = "NB/T47013-2015";
- }
- else
- {
- this.txtWorkAreaCode.Text = string.Empty;
- }
+ //}
+ //else
+ //{
+ // this.txtWorkAreaCode.Text = string.Empty;
+ //}
}
#endregion
@@ -440,16 +441,16 @@ namespace FineUIPro.Web.HJGL.CheckManage
string rootPath = Server.MapPath("~/");
BLL.Common.FastReportService.ResetData();
- if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID) && !string.IsNullOrEmpty(this.tvControlItem.SelectedNode.ParentNode.NodeID))
+ if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID) && this.tvControlItem.SelectedNode.NodeID!="0")
{
string strSql = @"SELECT * FROM HJGL_View_TrustNumSummary WHERE ProjectId = @ProjectId ";
List listStr = new List();
- listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNode.ParentNode.NodeID));
+ listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNode.NodeID));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
- DataRow[] rows = tb.Select("InstallationId='" + this.tvControlItem.SelectedNodeID + "'");
+ //DataRow[] rows = tb.Select("InstallationId='" + this.tvControlItem.SelectedNodeID + "'");
DataTable dt = new DataTable();
dt.TableName = "Data";
@@ -469,10 +470,10 @@ namespace FineUIPro.Web.HJGL.CheckManage
dt.Columns.Add("Mt3Num");
dt.Columns.Add("Pt3Num");
- //DataView dv = tb.DefaultView;//获取表视图
- //dv.Sort = "ISO_IsoNo ASC";//按照ID倒序排序
- //tb = dv.ToTable();//转为表
- //DataRow[] rows = tb.DefaultView.ToTable().Select();
+ DataView dv = tb.DefaultView;//获取表视图
+ dv.Sort = "IsoNo ASC";//按照ID倒序排序
+ tb = dv.ToTable();//转为表
+ DataRow[] rows = tb.DefaultView.ToTable().Select();
foreach (var row in rows)
{
var newRows = dt.NewRow();
@@ -498,7 +499,7 @@ namespace FineUIPro.Web.HJGL.CheckManage
//传参
Dictionary keyValuePairs = new Dictionary();
- keyValuePairs.Add("projectName", BLL.Base_ProjectService.GetProjectByProjectId(this.tvControlItem.SelectedNode.ParentNode.NodeID).ProjectName);
+ keyValuePairs.Add("projectName", BLL.Base_ProjectService.GetProjectByProjectId(this.tvControlItem.SelectedNode.NodeID).ProjectName);
keyValuePairs.Add("workAreaCode", txtWorkAreaCode.Text.Trim());
keyValuePairs.Add("testCategoryNumber", txtTestCategoryNumber.Text.Trim());
keyValuePairs.Add("acceptanceCriteria", txtAcceptanceCriteria.Text.Trim());
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx
index f16fbe0..2a90b91 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx
@@ -5,7 +5,7 @@
- 工业管道安装质量证明书
+ 工业管道安装质量证明书(安装)