From 0ee75b88cfe03e46289de0de96e8ed4580c797d3 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 27 九月 2022 14:04:21 +0800 Subject: [PATCH] Merge branch 'Dev-Branch' into dev--wxr --- HDL_ON/Entity/FunctionList.cs | 52 ++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 42 insertions(+), 10 deletions(-) diff --git a/HDL_ON/Entity/FunctionList.cs b/HDL_ON/Entity/FunctionList.cs index 9b724ca..398fb08 100644 --- a/HDL_ON/Entity/FunctionList.cs +++ b/HDL_ON/Entity/FunctionList.cs @@ -24,7 +24,11 @@ var filePathList = FileUtlis.Files.ReadFiles(); foreach (var filePath in filePathList) { - _FunctionList.IniFunctionList(filePath); + try + { + _FunctionList.IniFunctionList(filePath); + } + catch { } } #endregion } @@ -35,6 +39,26 @@ /// 鍔熻兘鍒楄〃 /// </summary> public List<Function> Functions = new List<Function>(); + + /// <summary> + /// 缁垮缓绉戞妧绯荤粺 + /// 鎬绘帶鍒楄〃 + /// </summary> + /// <returns></returns> + public List<Function> GetAcstParentList() + { + return Functions.FindAll((obj) => obj.spk == SPK.AcstParent); + } + + /// <summary> + /// 缁垮缓绉戞妧绯荤粺 + /// 瀛愭帶鍒楄〃 + /// </summary> + /// <returns></returns> + public List<Function> GetAcstSubList() + { + return Functions.FindAll((obj) => obj.spk == SPK.AcstSub); + } /// <summary> /// 绌鸿皟鍒楄〃 @@ -87,15 +111,6 @@ var spkList = SPK.AirFreshSpkList(); return Functions.FindAll((obj) => spkList.Contains(obj.spk)); } - /// <summary> - /// 闈㈡澘鍒楄〃 - /// </summary> - /// <returns></returns> - public List<Function> GetPanelList() - { - var spkList = SPK.PanelSpkList(); - return Functions.FindAll((obj) => spkList.Contains(obj.spk)); - } /// <summary> /// 鑳芥簮鍒楄〃 @@ -107,6 +122,22 @@ return Functions.FindAll((obj) => spkList.Contains(obj.spk)); } + List<InverterInfo> _inverterList = new List<InverterInfo>(); + /// <summary> + /// 鍏変紡鍒楄〃 + /// </summary> + public List<Function> InverterList() + { + //get + //{ + // return _inverterList; + //} + //set + //{ + // _inverterList = value; + //} + return Functions.FindAll((obj) => obj.spk == SPK.Inverter); + } #region 瀹剁數鍒楄〃 electricals /// <summary> /// 瀹剁數鍒楄〃 @@ -480,6 +511,7 @@ if (readList.Count > 9) { Control.Ins.SendReadCommand(readList); + readList.Clear(); } } if (readList.Count > 0) -- Gitblit v1.8.0