From 323876bfe85fc2684871d5d95c213c6e2713f3f4 Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期三, 15 四月 2020 16:07:32 +0800 Subject: [PATCH] 2020-04-15-1 --- ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs b/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs index 19dbbc7..f89b480 100644 --- a/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs @@ -12,17 +12,20 @@ /// 閫変腑璇ヨ澶囧姛鑳戒綔涓烘潯浠舵垨鑰呯洰鏍囩殑瑙嗗浘鏂规硶 /// </summary> /// <param name="common">Common.</param> - public static void CurrentDeviceView(FrameLayout flMain, CommonDevice common, bool edit, string str) + public static void CurrentDeviceView(FrameLayout flMain, CommonDevice common, bool edit, string str ) { #region -------鐣岄潰甯冨眬閮ㄥ垎 //涓嶈褰撳墠鐣岄潰婊戝姩 UserView.HomePage.Instance.ScrollEnabled = false; CompleteView completeView = new CompleteView(); flMain.AddChidren(completeView.Show(1)); - completeView.Btntitle.Text = common.DeviceEpointName; + completeView.Btntitle.Text = LocalDevice.Current.GetDeviceEpointName(common); EventHandler<MouseEventArgs> clickcancel = (sender, e) => { - UserView.HomePage.Instance.ScrollEnabled = true; + if (!edit) + { + UserView.HomePage.Instance.ScrollEnabled = true; + } flMain.RemoveFromParent(); }; flMain.MouseUpEventHandler += clickcancel; @@ -490,7 +493,7 @@ break; case DeviceType.DoorLock: { - + //H06C闂ㄩ攣 flMain.RemoveFromParent(); var memberList = new MemberList(); UserView.HomePage.Instance.AddChidren(memberList); @@ -1206,7 +1209,14 @@ } else { //娣诲姞鐩爣 - LogicIfon.AddDeviceactions(common, actionsInfo); + if (SelectedDeviceStatus == "DoorLock") + {//闂ㄩ攣鏁版嵁鐗规畩,杩涜鐗规畩澶勭悊; + LogicIfon.AddDoorLockActions(common, actionsInfo); + } + else + { + LogicIfon.AddDeviceActions(common, actionsInfo); + } } } else -- Gitblit v1.8.0