From aad116429ea04bf2662df786c06b3bccd3657b58 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期二, 15 十月 2024 16:16:19 +0800
Subject: [PATCH] Revit解析优化

---
 Service/HStation.Service.Revit.Core/00-core/PipeStatus.cs |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/Service/HStation.Service.Revit.Core/00-core/PipeStatus.cs b/Service/HStation.Service.Revit.Core/00-core/PipeStatus.cs
index 3b250fe..c56208c 100644
--- a/Service/HStation.Service.Revit.Core/00-core/PipeStatus.cs
+++ b/Service/HStation.Service.Revit.Core/00-core/PipeStatus.cs
@@ -19,5 +19,30 @@
         /// CV 鎰忓懗鐫�绠¢亾鍖呭惈浜嗛檺鍒舵祦鍚戠殑姝㈠洖闃�
         /// </summary>
         public const string CV = "CV";
+
+        /// <summary>
+        /// 鍖呭惈
+        /// </summary>
+        public static bool Contains(string status)
+        {
+            if (string.IsNullOrEmpty(status))
+            {
+                return false;
+            }
+            if (status == Open)
+            {
+                return true;
+            }
+            if (status == Closed)
+            {
+                return true;
+            }
+            if (status == CV)
+            {
+                return true;
+            }
+            return false;
+        }
+
     }
 }

--
Gitblit v1.9.3