From 23bbed132eea46eef51c6d01c21b346238e29ee2 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 30 六月 2022 13:39:12 +0800
Subject: [PATCH] Merge branch 'wxr0114' into V1.5.9

---
 HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs |   73 ++++++++++++------------------------
 1 files changed, 25 insertions(+), 48 deletions(-)

diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
index b269c83..77796b7 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
@@ -647,7 +647,6 @@
 
             var functionCategoryCount = 0;
 
-            //Tag 鍒嗙被鍗$墖鏄剧ず
             foreach (var item in DB_ResidenceData.Instance.functionTypeList)
             {
                 int functionCount = 0;
@@ -710,7 +709,6 @@
 #endif
                         break;
                     case ShowFunction.Panel:
-                        functionCount = FunctionList.List.GetPanelList().Count;
                         break;
                     case ShowFunction.SecurityMonitoring:
                         if (!MainPage.NoLoginMode)
@@ -790,56 +788,37 @@
                 };
                 functionView.AddChidren(btnName);
 
-                //Tag 鏁伴噺鏄剧ず
                 if (item != ShowFunction.Environmental && item != ShowFunction.Sensor && item != ShowFunction.VideoIntercom
                     && item != ShowFunction.SecurityMonitoring && item != ShowFunction.FreshAir && item != ShowFunction.Music
                     && item != ShowFunction.EnergyMonitoring && item != ShowFunction.SecurityCenter
                     && functionCount != 0)
                 {
-                    if (item == ShowFunction.Panel)
+                    Button btnFunctionCount = new Button()
                     {
-                        Button btnFunctionCount = new Button()
-                        {
-                            X = Application.GetRealWidth(16),
-                            Y = btnName.Bottom,
-                            Width = Application.GetRealWidth(120),
-                            Height = Application.GetRealHeight(24),
-                            TextColor = CSS_Color.PromptingColor1,
-                            TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
-                            TextAlignment = TextAlignment.CenterLeft,
-                            Text = functionCount.ToString(),
-                        };
-                        functionView.AddChidren(btnFunctionCount);
-                    }
-                    else
+                        X = Application.GetRealWidth(17) + Application.GetRealWidth(7 * functionCount.ToString().Length),
+                        Y = btnName.Bottom,
+                        Width = Application.GetRealWidth(120),
+                        Height = Application.GetRealHeight(24),
+                        TextColor = CSS_Color.PromptingColor1,
+                        TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+                        TextAlignment = TextAlignment.CenterLeft,
+                        Text = "/" + functionCount,
+                    };
+                    functionView.AddChidren(btnFunctionCount);
+                    Button btnOpenCount = new Button()
                     {
-                        Button btnFunctionCount = new Button()
-                        {
-                            X = Application.GetRealWidth(17) + Application.GetRealWidth(7 * functionCount.ToString().Length),
-                            Y = btnName.Bottom,
-                            Width = Application.GetRealWidth(120),
-                            Height = Application.GetRealHeight(24),
-                            TextColor = CSS_Color.PromptingColor1,
-                            TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
-                            TextAlignment = TextAlignment.CenterLeft,
-                            Text = "/" + functionCount,
-                        };
-                        functionView.AddChidren(btnFunctionCount);
-                        Button btnOpenCount = new Button()
-                        {
-                            X = Application.GetRealWidth(16),
-                            Y = btnName.Bottom,
-                            Width = Application.GetRealWidth(14 * functionCount.ToString().Length),
-                            Height = Application.GetRealHeight(24),
-                            TextColor = CSS_Color.MainColor,
-                            TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
-                            TextAlignment = TextAlignment.CenterLeft,
-                            Text = functionOnCount.ToString(),
-                            Tag = item + "_onCount",
-                            BorderWidth = 0,
-                        };
-                        functionView.AddChidren(btnOpenCount);
-                    }
+                        X = Application.GetRealWidth(16),
+                        Y = btnName.Bottom,
+                        Width = Application.GetRealWidth(14 * functionCount.ToString().Length),
+                        Height = Application.GetRealHeight(24),
+                        TextColor = CSS_Color.MainColor,
+                        TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+                        TextAlignment = TextAlignment.CenterLeft,
+                        Text = functionOnCount.ToString(),
+                        Tag = item + "_onCount",
+                        BorderWidth = 0,
+                    };
+                    functionView.AddChidren(btnOpenCount);
                 }
 
 
@@ -851,7 +830,6 @@
                 };
                 functionView.AddChidren(btnFunctionViewBg);
 
-                //Tag 璋冭瘯浜嬩欢鍒ゆ柇
                 int functionPageTitleId = 0;
                 switch (item)
                 {
@@ -1044,8 +1022,7 @@
                         };
                         break;
                     case ShowFunction.Panel:
-                        btnName.TextID = StringId.SmartPanel;
-                        functionPageTitleId = StringId.SmartPanel;
+                        btnName.TextID = StringId.Panel;
                         break;
                     case ShowFunction.SecurityMonitoring:
                         btnName.TextID = StringId.SecurityMonitoring;

--
Gitblit v1.8.0