From 4c586bb23cdcae56ae4e4c62e90e148dc10b9d90 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 17 五月 2022 14:19:31 +0800 Subject: [PATCH] Merge branch 'Dev-Branch' into wxr1215 --- HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs | 73 ++++++++++++++++++++++++------------ 1 files changed, 48 insertions(+), 25 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs index 77796b7..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,6 +710,7 @@ #endif break; case ShowFunction.Panel: + functionCount = FunctionList.List.GetPanelList().Count; break; case ShowFunction.SecurityMonitoring: if (!MainPage.NoLoginMode) @@ -788,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); + } } @@ -830,6 +851,7 @@ }; functionView.AddChidren(btnFunctionViewBg); + //Tag 璋冭瘯浜嬩欢鍒ゆ柇 int functionPageTitleId = 0; switch (item) { @@ -1022,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