| | |
| | | using HDL_ON.Common; |
| | | using HDL_ON.DAL; |
| | | using HDL_ON.DAL.Server; |
| | | using HDL_ON.DriverLayer; |
| | | using Shared; |
| | | |
| | | namespace HDL_ON.Entity |
| | |
| | | /// <summary> |
| | | /// 安防列表 |
| | | /// </summary> |
| | | public List<SecurityAlarm> securities |
| | | { |
| | | get |
| | | { |
| | | return SecurityCenter.Security.securityAlarmList; |
| | | } |
| | | } |
| | | public List<SecurityAlarm> securities = new List<SecurityAlarm>(); |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | // break; |
| | | //} |
| | | } |
| | | if(DB_ResidenceData.Instance.GatewayType == 1) |
| | | { |
| | | Dictionary<string, string> pairs = new Dictionary<string, string>(); |
| | | string sendId = Control.Ins.msg_id.ToString(); |
| | | pairs.Add("id", sendId); |
| | | pairs.Add("time_stamp", Utlis.GetTimestamp()); |
| | | var readSecurityStatusJson = Newtonsoft.Json.JsonConvert.SerializeObject(pairs); |
| | | var sendBytes = Control.Ins.ConvertSendBodyData(CommunicationTopic.ct.ReadSecurityStatus, readSecurityStatusJson); |
| | | MainPage.Log($"本地通讯 读取安防状态:{readSecurityStatusJson}"); |
| | | new Control_Udp().SendLocalHdlLinkData(sendBytes, sendId); |
| | | } |
| | | } |
| | | else |
| | | { |