wxr
2024-09-24 691dbe24f5724f153e07947c7b75bdfea5f0b6d5
HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
@@ -1,5 +1,6 @@
using 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();