From f8b647c263f068babb8efcc19ff4e74026a4bd28 Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期二, 03 十二月 2019 10:44:28 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev-tzy' into dev-wjc --- ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs | 40 +++++++++------------------------------- 1 files changed, 9 insertions(+), 31 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs b/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/AddCondition.cs index e009bb3..e3d24b5 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爜 @@ -177,14 +178,7 @@ flMain.RemoveFromParent(); }; - var lockcolorfra = new FrameLayout - { - Width = Application.GetRealWidth(1080), - Height = Application.GetRealHeight(100), - Y = Application.GetRealHeight(1920 - 100), - BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, - }; - flMain.AddChidren(lockcolorfra); + var lockcolorfra1 = new FrameLayout { @@ -196,6 +190,7 @@ Radius = (uint)Application.GetRealHeight(60), }; flMain.AddChidren(lockcolorfra1); + lockcolorfra1.SetCornerWithSameRadius(20, HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); #region -------鍙栨秷 瀹屾垚 var lockRow = new RowLayout @@ -284,27 +279,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 +370,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 +384,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