| | |
| | | |
| | | namespace HDL_ON.Entity |
| | | { |
| | | |
| | | public class SecurityCenter111111 |
| | | { |
| | | static SecurityCenter111111 _securityCenter; |
| | | |
| | | public static SecurityCenter111111 Ins |
| | | { |
| | | get |
| | | { |
| | | if (_securityCenter == null) |
| | | { |
| | | _securityCenter = new SecurityCenter111111(); |
| | | } |
| | | return _securityCenter; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 布防中 |
| | | /// </summary> |
| | | public bool InDefense |
| | | { |
| | | get |
| | | { |
| | | lock (FunctionList.List.securities) |
| | | { |
| | | var temp = FunctionList.List.securities.Find((obj) => obj.status == "enable"); |
| | | return temp == null ? false : true; |
| | | } |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 报警中 |
| | | /// </summary> |
| | | public bool InAlarm |
| | | { |
| | | get |
| | | { |
| | | lock (FunctionList.List.securities) |
| | | { |
| | | var temp = FunctionList.List.securities.Find((obj) => obj.alarm == true); |
| | | return temp == null ? false : true; |
| | | } |
| | | } |
| | | } |
| | | |
| | | SecurityAlarm _inDefenseMode; |
| | | /// <summary> |
| | | /// 当前布防模式 |
| | | /// </summary> |
| | | public SecurityAlarm InDefenseMode |
| | | { |
| | | get |
| | | { |
| | | if (_inDefenseMode == null) |
| | | { |
| | | lock (FunctionList.List.securities) |
| | | { |
| | | var temp = FunctionList.List.securities.Find((obj) => obj.status == "enable"); |
| | | return temp; |
| | | } |
| | | } |
| | | return _inDefenseMode; |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class SecurityAlarm |
| | | { |
| | | public SecurityAlarm() |