From 083c4e47c7a59025f3348bd093693c6b3febb014 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期三, 16 十月 2024 10:03:31 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- Service/HStation.Service.Revit.Core/00-core/ValveStatus.cs | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/Service/HStation.Service.Revit.Core/00-core/ValveStatus.cs b/Service/HStation.Service.Revit.Core/00-core/ValveStatus.cs index 7390d1c..e3ee29c 100644 --- a/Service/HStation.Service.Revit.Core/00-core/ValveStatus.cs +++ b/Service/HStation.Service.Revit.Core/00-core/ValveStatus.cs @@ -19,5 +19,31 @@ /// 鍏抽棴 /// </summary> public const string Closed = "Closed"; + + /// <summary> + /// 鍖呭惈 + /// </summary> + public static bool Contains(string status) + { + if (string.IsNullOrEmpty(status)) + { + return false; + } + if (status == None) + { + return true; + } + if (status == Open) + { + return true; + } + if (status == Closed) + { + return true; + } + return false; + } + + } } -- Gitblit v1.9.3