From 691dbe24f5724f153e07947c7b75bdfea5f0b6d5 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期二, 24 九月 2024 16:15:15 +0800
Subject: [PATCH] 离线控制模式

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

diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
index 0370365..876deaa 100644
--- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
+++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
@@ -1,5 +1,6 @@
 锘縰sing System;
 using System.Collections.Generic;
+using System.Security.Cryptography;
 using HDL_ON.DAL.Server;
 using HDL_ON.DriverLayer;
 using HDL_ON.Entity;
@@ -1179,6 +1180,13 @@
                         break;
                     case ShowFunction.Acst:
                     case ShowFunction.InverterJinmao:
+                        //if(item == ShowFunction.Acst)
+                        //{
+                        //    btnFunctionViewBg.UnSelectedImagePath = "FunctionIcon/FunctionBg/SecurityMonitoringFunctionBg.png";
+                        //}else if (item == ShowFunction.InverterJinmao)
+                        //{
+                        //    btnFunctionViewBg.UnSelectedImagePath = "FunctionIcon/FunctionBg/SecurityMonitoringFunctionBg.png";
+                        //}
                         Button btnJMLogo = new Button()
                         {
                             Y = specialList.Contains(index) ? Application.GetRealWidth(147) : Application.GetRealWidth(104),
@@ -1187,12 +1195,29 @@
                             Height = Application.GetRealWidth(57),
                         };
                         functionView.AddChidren(btnJMLogo);
-
+                        
 
                         if (item == ShowFunction.Acst)
                         {
                             btnName.TextID = StringId.Acst;
+                            try
+                            {
+                                var acstFunction = FunctionList.List.GetAcstParentList()[0];
+                                btnName.Text = acstFunction.name;
+                                if (acstFunction.extend.Contains("jinmao") && acstFunction.extend.Contains("true"))
+                                {
+                                    btnJMLogo.Visible = true;
+                                }
+                                else
+                                {
+                                    btnJMLogo.Visible = false;
+                                }
 
+                            }
+                            catch (Exception ex)
+                            {
+                                MainPage.Log("Error", $"鍔犺浇閲戣寕绉戞妧绯荤粺涓绘帶鍚嶇О寮傚父:{ex.Message}");
+                            }
                             btnFunctionViewBg.MouseUpEventHandler = (sender, e) =>
                             {
                                 var page = new AcstParentPage();
@@ -1204,6 +1229,23 @@
                         else if (item == ShowFunction.InverterJinmao)
                         {
                             btnName.TextID = StringId.NewEnergy;
+                            try
+                            {
+                                var jinmaoInverterFunction = FunctionList.List.GetInverterJinmaoList()[0];
+                                btnName.Text = jinmaoInverterFunction.name;
+                                if (jinmaoInverterFunction.extend.Contains("jinmao") && jinmaoInverterFunction.extend.Contains("true"))
+                                {
+                                    btnJMLogo.Visible = true;
+                                }
+                                else
+                                {
+                                    btnJMLogo.Visible = false;
+                                }
+                            }
+                            catch (Exception ex)
+                            {
+                                MainPage.Log("Error", $"鍔犺浇閲戣寕鍌ㄨ兘鍚嶇О寮傚父:{ex.Message}");
+                            }
                             btnFunctionViewBg.MouseUpEventHandler = (sender, e) =>
                             {
                                 var page = new InverterJinmaoPage();

--
Gitblit v1.8.0