From 7cfcdb7a90f59bf9001c948e166fd9af09752fe1 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期二, 24 五月 2022 17:15:18 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/release0123' into wjc

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

diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
index c049ebd..b269c83 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
@@ -647,6 +647,7 @@
 
             var functionCategoryCount = 0;
 
+            //Tag 鍒嗙被鍗$墖鏄剧ず
             foreach (var item in DB_ResidenceData.Instance.functionTypeList)
             {
                 int functionCount = 0;
@@ -709,8 +710,7 @@
 #endif
                         break;
                     case ShowFunction.Panel:
-
-
+                        functionCount = FunctionList.List.GetPanelList().Count;
                         break;
                     case ShowFunction.SecurityMonitoring:
                         if (!MainPage.NoLoginMode)
@@ -790,37 +790,56 @@
                 };
                 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)
                 {
-                    Button btnFunctionCount = new Button()
+                    if (item == ShowFunction.Panel)
                     {
-                        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(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(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);
+                        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);
+                    }
                 }
 
 
@@ -832,6 +851,7 @@
                 };
                 functionView.AddChidren(btnFunctionViewBg);
 
+                //Tag 璋冭瘯浜嬩欢鍒ゆ柇
                 int functionPageTitleId = 0;
                 switch (item)
                 {
@@ -1024,7 +1044,8 @@
                         };
                         break;
                     case ShowFunction.Panel:
-                        btnName.TextID = StringId.Panel;
+                        btnName.TextID = StringId.SmartPanel;
+                        functionPageTitleId = StringId.SmartPanel;
                         break;
                     case ShowFunction.SecurityMonitoring:
                         btnName.TextID = StringId.SecurityMonitoring;

--
Gitblit v1.8.0