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 |   43 ++++++++++++++++++++++++++++++-------------
 1 files changed, 30 insertions(+), 13 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
index f09d0b0..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>
@@ -63,7 +63,7 @@
                     Y = Application.GetRealHeight(103),
                     Width = Application.GetRealWidth(160),
                     Height = Application.GetRealHeight(21 + 44),
-                    BackgroundImagePath = "LogicIcon/bjicon.png",
+                    //BackgroundImagePath = "LogicIcon/bjicon.png",
                 };
                 fLayout.AddChidren(bghFrameLyout);
 
@@ -86,7 +86,7 @@
                 {
                     bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * 5);
                     bghFrameLyout.AddChidren(vvBgh);
-
+                    bghFrameLyout.BackgroundImagePath = "LogicIcon/bjicon5.png";
                 }
                 else
                 {
@@ -94,6 +94,7 @@
                     bghFrameLyout.AddChidren(areaBgh);
                     bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * roomList.Count);
                     areaBgh.Height = Application.GetRealHeight(44 * roomList.Count);
+                    bghFrameLyout.BackgroundImagePath = $"LogicIcon/bjicon{roomList.Count+1}.png";
                 }
                 #endregion
 
@@ -110,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);
@@ -124,7 +125,10 @@
 
                         DeviceListView(vv, list);
                     };
-
+                    if (roomList.Count-1==i) {
+                        ///鏀瑰彉鏈�鍚庨偅鏉′竴涓嚎鐨勯鑹�,鐣岄潰鏄剧ず鏁堟灉浣滅敤;
+                        areaView.btnLine.BackgroundColor = CSS.CSS_Color.view;
+                    }
                 }
             };
             funAllAreaView.btnText1.MouseUpEventHandler += roomClick;
@@ -148,7 +152,7 @@
                     Y = Application.GetRealHeight(103),
                     Width = Application.GetRealWidth(160),
                     Height = Application.GetRealHeight(21 + 44),
-                    BackgroundImagePath = "LogicIcon/bjicon.png",
+                    //BackgroundImagePath = "LogicIcon/bjicon5.png",
                 };
                 fLayout.AddChidren(bghFrameLyout);
 
@@ -177,13 +181,14 @@
                 {
                     bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * 5);
                     bghFrameLyout.AddChidren(vvBgh);
-
+                    bghFrameLyout.BackgroundImagePath = "LogicIcon/bjicon5.png";
                 }
                 else
                 {
                     bghFrameLyout.AddChidren(areaBgh);
                     bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * deviceTypeList.Count);
                     areaBgh.Height = Application.GetRealHeight(44 * deviceTypeList.Count);
+                    bghFrameLyout.BackgroundImagePath = $"LogicIcon/bjicon{deviceTypeList.Count+1}.png";
                 }
                 #endregion
 
@@ -212,7 +217,11 @@
                         var lists = LogicMethod.GetShowDeviceList(typeFunctionList, functionList);
                         DeviceListView(vv, lists);
                     };
-
+                    if (deviceTypeList.Count - 1 == i)
+                    {
+                        ///鏀瑰彉鏈�鍚庨偅鏉′竴涓嚎鐨勯鑹�,鐣岄潰鏄剧ず鏁堟灉浣滅敤;
+                        areaView.btnLine.BackgroundColor = CSS.CSS_Color.view;
+                    }
                 }
             };
             funAllAreaView.btnText2.MouseUpEventHandler += funClick;
@@ -243,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