From 94e4e5b9fd3da964c44b7b14227d6fe2bbb426d7 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期四, 02 四月 2020 13:56:39 +0800
Subject: [PATCH] 2020-04-02-2

---
 ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs b/ZigbeeApp/Shared/Phone/Device/Logic/CurrentDeviceState.cs
index 19dbbc7..740cb73 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,6 @@
                     break;
                 case DeviceType.DoorLock:
                     {
-
                         flMain.RemoveFromParent();
                         var memberList = new MemberList();
                         UserView.HomePage.Instance.AddChidren(memberList);
@@ -1206,7 +1208,14 @@
                     }
                     else
                     {   //娣诲姞鐩爣
-                        LogicIfon.AddDeviceactions(common, actionsInfo);
+                        if (SelectedDeviceStatus == "DoorLock")
+                        {//闂ㄩ攣鏁版嵁鐗规畩,杩涜鐗规畩澶勭悊;
+                            LogicIfon.AddDoorLockActions(common, actionsInfo);
+                        }
+                        else
+                        {
+                            LogicIfon.AddDeviceActions(common, actionsInfo);
+                        }
                     }
                 }
                 else

--
Gitblit v1.8.0