From 30b5770f56f99c1f92e933ad31cf7d2af58b033c Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 02 十二月 2020 16:31:48 +0800
Subject: [PATCH] 20201202

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs |   23 ++++++++++++++---------
 1 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
index 4fa1668..c95c370 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
@@ -14,10 +14,15 @@
         /// <summary>
         /// 榛樿閫変腑鏄埧闂存椂锛氬叏閮ㄥ尯鍩�
         /// </summary>
-        private Entity.Room selectedRoom = new Entity.Room { sid = Language.StringByID(StringId.allAreas) };
-
-        public void Show()
+        private Entity.Room selectedRoom = new Entity.Room { uid = Language.StringByID(StringId.allAreas) };
+        /// <summary>
+        /// 琛ㄧず鏄�(鏉′欢/鐩爣)
+        /// </summary>
+        private string if_type;
+        public void Show(string str)
         {
+            
+            if_type = str;
             this.BackgroundColor = CSS.CSS_Color.viewMiddle;
             LogicView.TopView topView = new LogicView.TopView();
             this.AddChidren(topView.FLayoutView());
@@ -105,17 +110,17 @@
                         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);
                         ///鑾峰彇鏄剧ず璁惧鍒楄〃
-                        var list = LogicMethod.GetFunctionDeviceList(areaView.btnClick.Tag as Entity.Room,LogicMethod.condition_if);
+                        var list = LogicMethod.GetFunctionDeviceList(areaView.btnClick.Tag as Entity.Room,if_type);
 
                         DeviceListView(vv, list);
                     };
@@ -163,7 +168,7 @@
                 };
 
                 //鑾峰彇鏈�缁堟樉绀哄垪琛�
-                var functionList = LogicMethod.GetFunctionDeviceList(selectedRoom, LogicMethod.condition_if);
+                var functionList = LogicMethod.GetFunctionDeviceList(selectedRoom, if_type);
                 //鑾峰彇璁惧鍒楄〃鐨勭被鍨嬶紙渚嬪锛氱伅鍏夌被锛岀獥甯樼被銆傘�傘�傦級
                 var deviceTypeList = LogicMethod.GetDeviceTypeList(functionList);
 
@@ -213,7 +218,7 @@
             funAllAreaView.btnText2.MouseUpEventHandler += funClick;
             funAllAreaView.btnIcon2.MouseUpEventHandler += funClick;
             ///鑾峰彇鏄剧ず璁惧鍒楄〃
-            var deviceList = LogicMethod.GetFunctionDeviceList(selectedRoom, LogicMethod.condition_if);
+            var deviceList = LogicMethod.GetFunctionDeviceList(selectedRoom, if_type);
             DeviceListView(vv, deviceList);
 
         }
@@ -240,7 +245,7 @@
                 funView.btnClick.MouseUpEventHandler += (sen,e) => {
                     DeviceFunList deviceFunList = new DeviceFunList();
                     MainPage.BasePageView.AddChidren(deviceFunList);
-                    deviceFunList.Show(dev);
+                    deviceFunList.Show(dev,0,false,if_type);
                     MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                 };
             }

--
Gitblit v1.8.0