wxr
2024-09-30 2a88b9b559fd20f42d163d08b582f2d19ff329f4
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;
@@ -764,7 +765,10 @@
                    case ShowFunction.VideoIntercom:
                        if (FunctionList.List.videoIntercom != null && FunctionList.List.videoIntercom.Count > 0)
                        {
                            functionCount = 1;
                            if (Common.ApiUtlis.Ins.hadInternet)
                            {
                                functionCount = 1;
                            }
                        }
                        break;
                    case ShowFunction.SecurityCenter:
@@ -1194,12 +1198,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();
@@ -1211,6 +1232,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();