| | |
| | | /// <summary> |
| | | /// 开启 |
| | | /// </summary> |
| | | public const string Open = "OPEN"; |
| | | public const string Open = "Open"; |
| | | |
| | | /// <summary> |
| | | /// 关闭 |
| | | /// </summary> |
| | | public const string Close = "CLOSE"; |
| | | public const string Closed = "Closed"; |
| | | |
| | | /// <summary> |
| | | /// CV 意味着管道包含了限制流向的止回阀 |
| | | /// 包含 |
| | | /// </summary> |
| | | public const string CV = "CV"; |
| | | public static bool Contains(string status) |
| | | { |
| | | if (string.IsNullOrEmpty(status)) |
| | | { |
| | | return false; |
| | | } |
| | | if (status == Open) |
| | | { |
| | | return true; |
| | | } |
| | | if (status == Closed) |
| | | { |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |