From 0a1bf56909464e938a68c29b26ab88ff51380fad Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期三, 08 一月 2025 13:56:17 +0800 Subject: [PATCH] 能效分析水力图表 装置点显示文字 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/07-matching/17-flowmeter/AssetsFlowmeterSingleMatchingDlg.cs | 23 +++++------------------ 1 files changed, 5 insertions(+), 18 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/07-matching/17-flowmeter/AssetsFlowmeterSingleMatchingDlg.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/07-matching/17-flowmeter/AssetsFlowmeterSingleMatchingDlg.cs index 86143aa..44a8a08 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/07-matching/17-flowmeter/AssetsFlowmeterSingleMatchingDlg.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/07-matching/17-flowmeter/AssetsFlowmeterSingleMatchingDlg.cs @@ -1,16 +1,4 @@ -锘縰sing DevExpress.Mvvm.POCO; -using DevExpress.XtraEditors; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace HStation.WinFrmUI +锘縩amespace HStation.WinFrmUI { public partial class AssetsFlowmeterSingleMatchingDlg : DevExpress.XtraEditors.XtraForm { @@ -26,7 +14,7 @@ private HydroFlowmeterMatchingViewModel _input = null; /// <summary> - /// + /// /// </summary> public void SetBindingData(HydroFlowmeterMatchingViewModel input) { @@ -35,7 +23,7 @@ return; } _input = input; - this.assetsFlowmeterSingleMatchingCtrl1.SetBindingData(input.DbId); + this.assetsFlowmeterSingleMatchingCtrl2.SetBindingData(input.DbId); } private void GeneralOkAndCancelCtrl1_OkEvent() @@ -44,18 +32,17 @@ { return; } - var vm = this.assetsFlowmeterSingleMatchingCtrl1.Get(); + var vm = this.assetsFlowmeterSingleMatchingCtrl2.Get(); if (vm == null) { return; } - + _input.MatchingDbId = vm.ID.ToString(); _input.MatchingModelType = vm.Name; _input.MinorLoss = vm.MinorLoss; this.ReloadDataEvent?.Invoke(_input); this.DialogResult = DialogResult.OK; this.Close(); } - } } \ No newline at end of file -- Gitblit v1.9.3