From cec8d92bdca1da0b2eafe6eb3130f4bf6f03028b Mon Sep 17 00:00:00 2001
From: duheng <2286773002@qq.com>
Date: 星期三, 12 三月 2025 10:21:09 +0800
Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0

---
 WinFrmUI/Yw.WinFrmUI.Hydro.Core/08-grading/00-core/HydroGradingCatalogHelper.cs |  100 ++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 97 insertions(+), 3 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/08-grading/00-core/HydroGradingCatalogHelper.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/08-grading/00-core/HydroGradingCatalogHelper.cs
index cdf5409..868da0a 100644
--- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/08-grading/00-core/HydroGradingCatalogHelper.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/08-grading/00-core/HydroGradingCatalogHelper.cs
@@ -16,8 +16,9 @@
         //瀛楀吀
         private static readonly Dictionary<string, string> _dict = new Dictionary<string, string>()
         {
-            { Yw.Hydro.ParterCatalog.Nozzle,"鍠峰槾"},
-            { Yw.Hydro.ParterCatalog.Hydrant,"娑堢伀鏍�"},
+            { Yw.Hydro.ParterCatalog.Reservoir,"姘村簱"},
+            { Yw.Hydro.ParterCatalog.Tank,"姘存睜"},
+            { Yw.Hydro.ParterCatalog.Waterbox,"姘寸"},
             { Yw.Hydro.ParterCatalog.Blunthead,"闂峰ご"},
             { Yw.Hydro.ParterCatalog.Elbow,"寮ご"},
             { Yw.Hydro.ParterCatalog.Threelink,"涓夐��"},
@@ -25,12 +26,15 @@
             { Yw.Hydro.ParterCatalog.Meter,"姘磋〃"},
             { Yw.Hydro.ParterCatalog.Flowmeter,"娴侀噺璁�"},
             { Yw.Hydro.ParterCatalog.Pressmeter,"鍘嬪姏琛�"},
+            { Yw.Hydro.ParterCatalog.Nozzle,"鍠峰槾"},
+            { Yw.Hydro.ParterCatalog.Hydrant,"娑堢伀鏍�"},
+            { Yw.Hydro.ParterCatalog.Cooling,"鍐峰嵈濉�"},
             { Yw.Hydro.ParterCatalog.Pipe,"绠¢亾"},
             { Yw.Hydro.ParterCatalog.Translation,"杩囨浮浠�"},
             { Yw.Hydro.ParterCatalog.Pump,"姘存车"},
             { Yw.Hydro.ParterCatalog.Valve,"闃�闂�"},
             { Yw.Hydro.ParterCatalog.Exchanger,"鎹㈢儹鍣�"},
-            { Yw.Hydro.ParterCatalog.Compressor,"鍘嬬缉鏈�"}
+            { Yw.Hydro.ParterCatalog.Compressor,"鍘嬬缉鏈�"},
         };
 
         /// <summary>
@@ -57,6 +61,96 @@
             return string.Empty;
         }
 
+        /// <summary>
+        /// 鑾峰彇瀛楀吀
+        /// </summary>
+        public static Dictionary<string, string> GetDict(Yw.Model.HydroModelInfo hydro)
+        {
+            var dict = new Dictionary<string, string>();
+            if (hydro == null)
+            {
+                return dict;
+            }
+            if (hydro.Reservoirs != null && hydro.Reservoirs.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Reservoir, GetName(Yw.Hydro.ParterCatalog.Reservoir));
+            }
+            if (hydro.Tanks != null && hydro.Tanks.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Tank, GetName(Yw.Hydro.ParterCatalog.Tank));
+            }
+            if (hydro.Waterboxs != null && hydro.Waterboxs.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Waterbox, GetName(Yw.Hydro.ParterCatalog.Waterbox));
+            }
+            if (hydro.Bluntheads != null && hydro.Bluntheads.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Blunthead, GetName(Yw.Hydro.ParterCatalog.Blunthead));
+            }
+            if (hydro.Elbows != null && hydro.Elbows.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Elbow, GetName(Yw.Hydro.ParterCatalog.Elbow));
+            }
+            if (hydro.Threelinks != null && hydro.Threelinks.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Threelink, GetName(Yw.Hydro.ParterCatalog.Threelink));
+            }
+            if (hydro.Fourlinks != null && hydro.Fourlinks.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Fourlink, GetName(Yw.Hydro.ParterCatalog.Fourlink));
+            }
+            if (hydro.Meters != null && hydro.Meters.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Meter, GetName(Yw.Hydro.ParterCatalog.Meter));
+            }
+            if (hydro.Flowmeters != null && hydro.Flowmeters.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Flowmeter, GetName(Yw.Hydro.ParterCatalog.Flowmeter));
+            }
+            if (hydro.Pressmeters != null && hydro.Pressmeters.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Pressmeter, GetName(Yw.Hydro.ParterCatalog.Pressmeter));
+            }
+            if (hydro.Nozzles != null && hydro.Nozzles.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Nozzle, GetName(Yw.Hydro.ParterCatalog.Nozzle));
+            }
+            if (hydro.Hydrants != null && hydro.Hydrants.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Hydrant, GetName(Yw.Hydro.ParterCatalog.Hydrant));
+            }
+            if (hydro.Coolings != null && hydro.Coolings.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Cooling, GetName(Yw.Hydro.ParterCatalog.Cooling));
+            }
+            if (hydro.Pipes != null && hydro.Pipes.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Pipe, GetName(Yw.Hydro.ParterCatalog.Pipe));
+            }
+            if (hydro.Translations != null && hydro.Translations.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Translation, GetName(Yw.Hydro.ParterCatalog.Translation));
+            }
+            if (hydro.Pumps != null && hydro.Pumps.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Pump, GetName(Yw.Hydro.ParterCatalog.Pump));
+            }
+            if (hydro.Valves != null && hydro.Valves.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Valve, GetName(Yw.Hydro.ParterCatalog.Valve));
+            }
+            if (hydro.Exchangers != null && hydro.Exchangers.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Exchanger, GetName(Yw.Hydro.ParterCatalog.Exchanger));
+            }
+            if (hydro.Compressors != null && hydro.Compressors.Count > 0)
+            {
+                dict.Add(Yw.Hydro.ParterCatalog.Compressor, GetName(Yw.Hydro.ParterCatalog.Compressor));
+            }
+            return dict;
+        }
+
+
 
     }
 }

--
Gitblit v1.9.3