From b7054b40b4219438dfaf20690bc94aec6c742622 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Tue, 5 Aug 2025 15:18:04 +0800 Subject: [PATCH] 1 --- SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx.cs index e0cb47ed..0f451d46 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx.cs @@ -251,12 +251,12 @@ namespace FineUIPro.Web.HSSE.Hazard var DateWeek = (from x in Funs.DB.HSSE_ConstructionRisk where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitId == node.NodeID - select x.DateWeek).Distinct().ToList().OrderByDescending(x => x); + select new { x.DateWeek, x.DateA }).Distinct().ToList().OrderByDescending(x => x.DateA); foreach (var d in DateWeek) { TreeNode newNode = new TreeNode(); - newNode.Text = d; //string.Format("{0:yyyy-MM-dd}", d.AssessmentDate); - newNode.NodeID = node.NodeID + "|" + d; + newNode.Text = d.DateWeek; //string.Format("{0:yyyy-MM-dd}", d.AssessmentDate); + newNode.NodeID = node.NodeID + "|" + d.DateWeek; newNode.EnableClickEvent = true; newNode.ToolTip = "标签"; node.Nodes.Add(newNode);