From f71e74b5f0d2716fbf05da016cdaa18d64e09f80 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期四, 31 十二月 2020 17:01:18 +0800
Subject: [PATCH] 又换完成最新门锁。空气质量传感器完成数据和基本配置功能。开发图表和自动化的同事可下载此代码

---
 ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs |   84 +++++++++++++++++++++---------------------
 1 files changed, 42 insertions(+), 42 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs b/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs
index deb3564..d207146 100755
--- a/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs
@@ -252,7 +252,7 @@
             };
             //涓嬫媺鍒锋柊鑷姩鍖栧垪琛ㄧ殑浜嬩欢
             logicScrolView.BeginHeaderRefreshingAction += () =>
-            {
+            {
                 if (!Config.Instance.Home.IsVirtually)
                 {//铏氭嫙鐨勪笉鑾峰彇缃戝叧閫昏緫鍒楄〃
                  //閲嶆柊鍒锋柊logic鍒楄〃
@@ -287,39 +287,39 @@
             {
                 if (!Config.Instance.Home.IsVirtually)//铏氭嫙鐨勪笉鑾峰彇缃戝叧閫昏緫鍒楄〃
                 {
-                    if (If_once)
-                    {
-                        if (Common.Logic.LogicList.Count == 0)
-                        {
+                    if (If_once)
+                    {
+                        if (Common.Logic.LogicList.Count == 0)
+                        {
                             If_once = false;
-                            var Idlist1 = await Send.GetLogicId(0);//
-                            var Idlist2 = await Send.GetLogicId(2);//闂ㄩ攣甯稿紑妯″紡
-                            if (Idlist1.Count != 0)
-                            {
-                                var listlogic1 = await Send.ReadList(Idlist1.Count, 0);
-                                for (int j = 0; j < listlogic1.Count; j++)
-                                {
-                                    var logic = listlogic1[j];
-                                    if (logic.LogicType != 0)
-                                    {
-                                        continue;
-                                    }
-                                    Common.Logic.LogicList.Add(logic);
-                                }
-                            }
-                            if (Idlist2.Count != 0)
-                            {
-                                var listlogic2 = await Send.ReadList(Idlist2.Count, 2);
-                                for (int j = 0; j < listlogic2.Count; j++)
-                                {
-                                    var logic = listlogic2[j];
-                                    if (logic.LogicType != 2)
-                                    {
-                                        continue;
-                                    }
-                                    Common.Logic.LogicList.Add(logic);
-                                }
-                            }
+                            var Idlist1 = await Send.GetLogicId(0);//
+                            var Idlist2 = await Send.GetLogicId(2);//闂ㄩ攣甯稿紑妯″紡
+                            if (Idlist1.Count != 0)
+                            {
+                                var listlogic1 = await Send.ReadList(Idlist1.Count, 0);
+                                for (int j = 0; j < listlogic1.Count; j++)
+                                {
+                                    var logic = listlogic1[j];
+                                    if (logic.LogicType != 0)
+                                    {
+                                        continue;
+                                    }
+                                    Common.Logic.LogicList.Add(logic);
+                                }
+                            }
+                            if (Idlist2.Count != 0)
+                            {
+                                var listlogic2 = await Send.ReadList(Idlist2.Count, 2);
+                                for (int j = 0; j < listlogic2.Count; j++)
+                                {
+                                    var logic = listlogic2[j];
+                                    if (logic.LogicType != 2)
+                                    {
+                                        continue;
+                                    }
+                                    Common.Logic.LogicList.Add(logic);
+                                }
+                            }
 
                         }
                     }
@@ -530,7 +530,7 @@
                 logicRowlayout.AddRightView(del);
                 del.MouseUpEventHandler += (sender, e) =>
                 {
-                    var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Confirm,
+                    var alert = new UserCenter.ShowMsgControl(ShowMsgType.Confirm,
                     Language.StringByID(MyInternationalizationString.doyouwanttodelete),
                     Language.StringByID(MyInternationalizationString.confrim));
                     alert.Show();
@@ -735,15 +735,15 @@
             timeConditionsInfo.Add("EnDelay", "0");
             timeConditionsInfo.Add("DelayTime", "0");
             timeConditionsInfo.Add("StartHour", h);
-            timeConditionsInfo.Add("StartMin", m);
-            if (UserCenter.UserCenterResourse.HideOption.DoorLockNomallyOpenTimeMode == 1)
-            {
-                //寮哄埗鍙樻洿鏃堕棿妯″紡涓哄垎閽�
-                timeConditionsInfo.Add("DoorLockOpenDelayTime", (timeVlaue * 60).ToString());
+            timeConditionsInfo.Add("StartMin", m);
+            if (UserCenter.UserCenterResourse.HideOption.DoorLockNomallyOpenTimeMode == 1)
+            {
+                //寮哄埗鍙樻洿鏃堕棿妯″紡涓哄垎閽�
+                timeConditionsInfo.Add("DoorLockOpenDelayTime", (timeVlaue * 60).ToString());
             }
-            else
-            {
-                timeConditionsInfo.Add("DoorLockOpenDelayTime", (timeVlaue * 3600).ToString());
+            else
+            {
+                timeConditionsInfo.Add("DoorLockOpenDelayTime", (timeVlaue * 3600).ToString());
             }
             Dictionary<string, object> actionsInfo = new Dictionary<string, object>();
             actionsInfo.Add("LinkType", 8);

--
Gitblit v1.8.0