From e87985ec1dcb69beedaf9f95e8e7aba14b7c08d6 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 09 十二月 2020 18:50:14 +0800
Subject: [PATCH] 2020-12-09 1.信息中心,增加下划线和点击Alter提醒详情。

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
index 4f3d3c0..9c457be 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
@@ -14,7 +14,7 @@
         /// <summary>
         /// 榛樿閫変腑鏄埧闂存椂锛氬叏閮ㄥ尯鍩�
         /// </summary>
-        private Entity.Room selectedRoom = new Entity.Room { sid = Language.StringByID(StringId.allAreas) };
+        private Entity.Room selectedRoom = new Entity.Room { uid = Language.StringByID(StringId.allAreas) };
         /// <summary>
         /// 琛ㄧず鏄�(鏉′欢/鐩爣)
         /// </summary>
@@ -111,12 +111,12 @@
                         areaView.frameLayout.Y = Application.GetRealHeight(i * 44);
                         areaBgh.AddChidren(areaView.FLayoutView());
                     }
-                    areaView.btnRoomName.Text = room.name;
+                    areaView.btnRoomName.Text = room.roomName;
                     areaView.btnClick.Tag = room;
                     areaView.btnClick.MouseUpEventHandler += (sender2, e2) =>
                     {
                         fLayout.RemoveFromParent();
-                        funAllAreaView.btnText1.Text = (areaView.btnClick.Tag as Entity.Room).name;
+                        funAllAreaView.btnText1.Text = (areaView.btnClick.Tag as Entity.Room).roomName;
                         ///鍒囨崲鎴块棿榛樿鍔熻兘绫诲瀷鍏ㄩ儴;
                         funAllAreaView.btnText2.Text = Language.StringByID(StringId.allFun);
                         selectedRoom = (areaView.btnClick.Tag as Entity.Room);
@@ -252,10 +252,18 @@
                 funView.btnDeviceName.Text = dev.name;
                 funView.btnRoomName.Text = dev.GetRoomListName();
                 funView.btnClick.MouseUpEventHandler += (sen,e) => {
-                    DeviceFunList deviceFunList = new DeviceFunList();
-                    MainPage.BasePageView.AddChidren(deviceFunList);
-                    deviceFunList.Show(dev,0,false,if_type);
-                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                    if (if_type == LogicMethod.condition_if) {
+                        ConditionDeviceFunList conditionDeviceFunList = new ConditionDeviceFunList();
+                        MainPage.BasePageView.AddChidren(conditionDeviceFunList);
+                        conditionDeviceFunList.Show(dev, 0, false);
+                        MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                    } else {
+                        TargetDeviceFunList targetDeviceFunList = new TargetDeviceFunList();
+                        MainPage.BasePageView.AddChidren(targetDeviceFunList);
+                        targetDeviceFunList.Show(dev, 0, false);
+                        MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                    }
+                   
                 };
             }
         }

--
Gitblit v1.8.0