lixiaojun
2025-01-20 bef933e7e166b085ba7e46e38ea62d9ae0129ec6
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;
        }
    }
}