From bd46c57c77c276014db3192a4e2cc96e23c93202 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 21 二月 2020 13:08:47 +0800 Subject: [PATCH] 先上传个版本吧 --- ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockLogicCommunalPage.cs | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockLogicCommunalPage.cs b/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockLogicCommunalPage.cs index 0b59be3..1642b5c 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockLogicCommunalPage.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockLogicCommunalPage.cs @@ -353,7 +353,7 @@ { if (Common.Logic.CurrentLogic.Accounts[a]["UserId"] == conditions["AttriButeData2"]) { - devicestatus.Text = Common.Logic.CurrentLogic.Accounts[a]["Account"]; + devicestatus.Text = Common.Logic.CurrentLogic.Accounts[a]["AccountName"]; break; } } @@ -1070,10 +1070,6 @@ tag = true; custompushFrameLayout.Height = Application.GetRealHeight(160); Common.Logic.CurrentLogic.LogicIsCustomPushText = 1; - if (Common.Logic.CurrentLogic.LogicId != 0) - { - Send.Data("娣诲姞/鏇存柊", "/App/HomeLogicConfig", "POST"); - } } else @@ -1081,20 +1077,20 @@ tag = false; custompushFrameLayout.Height = Application.GetRealHeight(0); Common.Logic.CurrentLogic.LogicIsCustomPushText = 0; - if (Common.Logic.CurrentLogic.LogicId != 0) - { - Send.Data("鍒犻櫎", "/App/DelHomeLogicConfig", "POST"); - } - } + Send.Zj(tag, Common.Logic.CurrentLogic); }; if (Common.Logic.CurrentLogic.LogicIsCustomPushText == 0) { + tag = false; btnswitch.IsSelected = false; + custompushFrameLayout.Height = Application.GetRealHeight(0); } else { + tag = true; btnswitch.IsSelected = true; + custompushFrameLayout.Height = Application.GetRealHeight(160); } var saveFrameLayout = new FrameLayout { @@ -1148,7 +1144,7 @@ Common.Logic.LockLogicList.Add(Common.Logic.CurrentLogic); if (tag) { - Send.Data("娣诲姞/鏇存柊", "/App/HomeLogicConfig", "POST"); + Send.Zj(tag, Common.Logic.CurrentLogic); } } } @@ -1170,6 +1166,7 @@ } public void AddCondition(int value) { + Common.Logic.CurrentLogic.LogicName = logicTextBox.Text.Trim(); var addCondition = new AddCondition(); addCondition.conditionsIndex = value; UserView.HomePage.Instance.AddChidren(addCondition); -- Gitblit v1.8.0