From e87985ec1dcb69beedaf9f95e8e7aba14b7c08d6 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 09 十二月 2020 18:50:14 +0800
Subject: [PATCH] 2020-12-09 1.信息中心,增加下划线和点击Alter提醒详情。

---
 HDL_ON/Entity/DB_ResidenceData.cs |   56 +-------------------------------------------------------
 1 files changed, 1 insertions(+), 55 deletions(-)

diff --git a/HDL_ON/Entity/DB_ResidenceData.cs b/HDL_ON/Entity/DB_ResidenceData.cs
index d9e454b..a6e4901 100644
--- a/HDL_ON/Entity/DB_ResidenceData.cs
+++ b/HDL_ON/Entity/DB_ResidenceData.cs
@@ -134,25 +134,6 @@
                             instance.SaveResidenceData();
                         }
 
-                        new Light()
-                        {
-                            sid = "030101123456780202010005ABCD",
-                            name = "鐏厜1",
-                            attributes = new List<FunctionAttributes>() {
-                                        new FunctionAttributes { key="on_off", max=100,min = 0, value= new List<string> { "on","off"} },
-                                        },
-                            roomIds = new List<string>() { "0001" },
-                            bus_Data = new BusData
-                            {
-                                addresses = "2A06",
-                                loopId = 1,
-                            },
-                        }.SaveFunctionData();
-
-
-                       
-                       
-
 
                     }
                     catch (Exception ex)
@@ -176,6 +157,7 @@
             Rooms = null;
             ins_OidList = null;
             functionList = null;
+            HomeGateway = null;
             if (MainPage.IsRemote)
             {
                 DAL.Mqtt.MqttClient.DisConnectRemote("閫�鍑虹櫥褰曪紝鎴栬�呭垏鎹綇瀹�");
@@ -303,42 +285,6 @@
                 _functionList = value;
             }
         }
-
-        /// <summary>
-        /// 鍒锋柊浣忓畢閲岄潰鐨勬悳绱㈣澶囩姸鎬�
-        /// </summary>
-        public void RefreshResidenceFunctionStatus()
-        {
-            new Thread(() =>
-            {
-                try
-                {
-                    foreach (var function in functionList.GetAllDeviceFunctionList())
-                    {
-                        Thread.Sleep(100);
-                        switch (function.functionCategory)
-                        {
-                            case FunctionCategory.Light:
-                            case FunctionCategory.Electrical:
-                            case FunctionCategory.SwitchDevice:
-                            case FunctionCategory.Curtain:
-                            case FunctionCategory.Thermostat:
-                                if (DB_ResidenceData.residenceData.GatewayType == 0)
-                                {
-                                    DriverLayer.Control.Ins.SendReadCommand(function);
-                                }
-                                break;
-                        }
-                    }
-                }
-                catch (Exception ex)
-                {
-                    MainPage.Log($"Refresh Residence Function Status Error : {ex.Message}");
-                }
-            })
-            { IsBackground = true }.Start();
-        }
-
 
         #endregion
 

--
Gitblit v1.8.0