From 1761bbd82d7c1251283e3baa9b519204e456b2f8 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 25 十一月 2020 16:50:55 +0800
Subject: [PATCH] 2020-11-25-1

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs |   25 ++++++++++++++++++-------
 1 files changed, 18 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 bf7e4d7..4fa1668 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 { name = Language.StringByID(StringId.allAreas) };
+        private Entity.Room selectedRoom = new Entity.Room { sid = Language.StringByID(StringId.allAreas) };
 
         public void Show()
         {
@@ -76,7 +76,7 @@
                     Width = Application.GetRealWidth(144),
                     Height = Application.GetRealHeight(44 * 5),
                 };
-                var roomList = LogicMethod.GetGatewayRoomListG(Language.StringByID(StringId.allAreas));
+                var roomList = LogicMethod.GetGatewayRoomList(Language.StringByID(StringId.allAreas));
                 if (roomList.Count > 5)
                 {
                     bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * 5);
@@ -111,9 +111,12 @@
                     {
                         fLayout.RemoveFromParent();
                         funAllAreaView.btnText1.Text = (areaView.btnClick.Tag as Entity.Room).name;
+                        ///鍒囨崲鎴块棿榛樿鍔熻兘绫诲瀷鍏ㄩ儴;
+                        funAllAreaView.btnText2.Text = Language.StringByID(StringId.allFun);
                         selectedRoom = (areaView.btnClick.Tag as Entity.Room);
-
+                        ///鑾峰彇鏄剧ず璁惧鍒楄〃
                         var list = LogicMethod.GetFunctionDeviceList(areaView.btnClick.Tag as Entity.Room,LogicMethod.condition_if);
+
                         DeviceListView(vv, list);
                     };
 
@@ -159,7 +162,9 @@
                     Height = Application.GetRealHeight(44 * 5),
                 };
 
+                //鑾峰彇鏈�缁堟樉绀哄垪琛�
                 var functionList = LogicMethod.GetFunctionDeviceList(selectedRoom, LogicMethod.condition_if);
+                //鑾峰彇璁惧鍒楄〃鐨勭被鍨嬶紙渚嬪锛氱伅鍏夌被锛岀獥甯樼被銆傘�傘�傦級
                 var deviceTypeList = LogicMethod.GetDeviceTypeList(functionList);
 
 
@@ -195,8 +200,10 @@
                     areaView.btnClick.MouseUpEventHandler += (sender, e2) =>
                     {
                         fLayout.RemoveFromParent();
-                        funAllAreaView.btnText1.Text = areaView.btnClick.Tag.ToString();
+                        funAllAreaView.btnText2.Text = areaView.btnClick.Tag.ToString();
+                        ///鑾峰彇鍗曚釜绫诲瀷锛堜緥濡傦細鐏厜绫汇�傘�傦級璁惧FunctionType鍒楄〃
                         var typeFunctionList = LogicMethod.GetDeviceTypeFunctionList(areaView.btnClick.Tag.ToString());
+                        ///鑾峰彇鍗曚釜绫诲瀷锛堜緥濡傦細鐏厜绫汇�傘�傦級鏄剧ず璁惧鍒楄〃
                         var lists = LogicMethod.GetShowDeviceList(typeFunctionList, functionList);
                         DeviceListView(vv, lists);
                     };
@@ -205,7 +212,7 @@
             };
             funAllAreaView.btnText2.MouseUpEventHandler += funClick;
             funAllAreaView.btnIcon2.MouseUpEventHandler += funClick;
-
+            ///鑾峰彇鏄剧ず璁惧鍒楄〃
             var deviceList = LogicMethod.GetFunctionDeviceList(selectedRoom, LogicMethod.condition_if);
             DeviceListView(vv, deviceList);
 
@@ -230,8 +237,12 @@
                 funView.btnIcon.UnSelectedImagePath = LogicMethod.GetIconPath(dev.functionType);
                 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);
+                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                };
             }
         }
     }

--
Gitblit v1.8.0