From 6a518151a9a8efb62c768198aebe4a0ff9ce77f2 Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期四, 21 十一月 2019 11:11:12 +0800 Subject: [PATCH] 2019-11-21-1 --- ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs | 30 +++++++----------------------- 1 files changed, 7 insertions(+), 23 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs b/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs index e009bb3..8d531a1 100644 --- a/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs @@ -14,6 +14,7 @@ Button selectedIcon = new Button(); VerticalScrolViewLayout middle; public int conditionsIndex = -1; + public async void Show() { #region 鏈�涓婇潰鐨勫竷灞�浠g爜 @@ -284,27 +285,7 @@ TextSize = 14, }; doorlockRow.AddChidren(doorlockBtn); - //(0鎸夐敭/3鍗�/15鎸囩汗) - //switch (userIdmode.OpenMode.ToString()) - //{ - // case "0": - // { - // doorlockBtn.Text = Language.StringByID(MyInternationalizationString.lockpassword); - // } - // break; - // case "3": - // { - // doorlockBtn.Text = Language.StringByID(MyInternationalizationString.ic); - // } - // break; - // case "15": - // { - // doorlockBtn.Text = Language.StringByID(MyInternationalizationString.fingerprint); - // } - // break; - //} - - + var doorlockSelected = new Button { X = Application.GetRealWidth(860), @@ -395,7 +376,7 @@ { if (Common.Logic.CurrentLogic.Accounts[i]["Type"] == "1") { - if (Common.Logic.CurrentLogic.Accounts[i]["Account"] == membershipIfon.UserName + modeName && Common.Logic.CurrentLogic.Accounts[i]["UserId"] == attriButeData2) + if (Common.Logic.CurrentLogic.Accounts[i]["UserId"] == attriButeData2) { addAccount = true; break; @@ -409,13 +390,16 @@ } else { + ///鎵惧嚭涔嬪墠鐨勬棫鏁版嵁绉婚櫎鎺夛紝鍐嶉噸鏂版坊鍔犳柊鏁版嵁锛� + string accountuserId = Common.Logic.CurrentLogic.Conditions[conditionsIndex]["AttriButeData2"]; Common.Logic.CurrentLogic.Conditions.RemoveAt(conditionsIndex); Common.Logic.CurrentLogic.Conditions.Insert(conditionsIndex, lockConditionsInfo); for (int i = 0; i < Common.Logic.CurrentLogic.Accounts.Count; i++) { if (Common.Logic.CurrentLogic.Accounts[i]["Type"] == "1") { - if (Common.Logic.CurrentLogic.Accounts[i]["UserId"] == attriButeData2) + ///鎵惧嚭涔嬪墠鐨勬棫鏁版嵁绉婚櫎鎺夛紝鍐嶉噸鏂版坊鍔犳柊鏁版嵁锛� + if (Common.Logic.CurrentLogic.Accounts[i]["UserId"] == accountuserId) { Common.Logic.CurrentLogic.Accounts.RemoveAt(i); Common.Logic.CurrentLogic.Accounts.Insert(i, accounts); -- Gitblit v1.8.0