From ce1cc10e518ddac71cfefd433f8a6af9fb46ed40 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期五, 27 九月 2024 12:01:02 +0800 Subject: [PATCH] 更改事件名称 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/00-core/AssetsMatchingParasHelper.cs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/00-core/AssetsMatchingParasHelper.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/00-core/AssetsMatchingParasHelper.cs index 8b7492f..e3bf429 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/00-core/AssetsMatchingParasHelper.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/00-core/AssetsMatchingParasHelper.cs @@ -172,8 +172,7 @@ var curveqh = hydroInfo.Curves?.Find(x => x.Code == pump.CurveQH); if (curveqh == null) { - var allParterList = hydroInfo.GetAllParters(); - var parterNameList = allParterList?.Select(x => x.Code).Distinct().ToList(); + curveqh = new Yw.Model.HydroCurveInfo(); curveqh.Catalog = Yw.Hydro.ParterCatalog.Curve; curveqh.Code = Yw.Untity.UniqueHelper.CreateFromFirst("curve", GetAllCodeList(hydroInfo)); curveqh.Name = "鍖归厤"; @@ -201,6 +200,7 @@ var curveqp = hydroInfo.Curves?.Find(x => x.Code == pump.CurveQP); if (curveqp == null) { + curveqp = new Yw.Model.HydroCurveInfo(); curveqp.Catalog = Yw.Hydro.ParterCatalog.Curve; curveqp.Code = Yw.Untity.UniqueHelper.CreateFromFirst("curve", GetAllCodeList(hydroInfo)); curveqp.Name = "鍖归厤"; @@ -228,6 +228,7 @@ var curveqe = hydroInfo.Curves?.Find(x => x.Code == pump.CurveQE); if (curveqe == null) { + curveqe = new Yw.Model.HydroCurveInfo(); curveqe.Catalog = Yw.Hydro.ParterCatalog.Curve; curveqe.Code = Yw.Untity.UniqueHelper.CreateFromFirst("curve", GetAllCodeList(hydroInfo)); curveqe.Name = "鍖归厤"; -- Gitblit v1.9.3