From d14b23dfc213c131efcf76cee206cff79e261294 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期四, 05 十二月 2024 16:22:56 +0800 Subject: [PATCH] 修改单独查看曲线界面 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/18-exchanger/ExchangerSingleMatchingCtrl.cs | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/18-exchanger/CompressorSingleMatchingCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/18-exchanger/ExchangerSingleMatchingCtrl.cs similarity index 89% rename from WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/18-exchanger/CompressorSingleMatchingCtrl.cs rename to WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/18-exchanger/ExchangerSingleMatchingCtrl.cs index c0b86fe..96c9ed3 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/18-exchanger/CompressorSingleMatchingCtrl.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/18-exchanger/ExchangerSingleMatchingCtrl.cs @@ -44,9 +44,12 @@ _allBindingList = new List<ExchangerSingleMatchingViewModel>(); _ExchangerBll = new BLL.AssetsExchangerMain(); var allAssetsPumpMain = await _ExchangerBll.GetAll(); - foreach (var Main in allAssetsPumpMain) + if (allAssetsPumpMain != null) { - _allBindingList.Add(new ExchangerSingleMatchingViewModel(Main)); + foreach (var Main in allAssetsPumpMain) + { + _allBindingList.Add(new ExchangerSingleMatchingViewModel(Main)); + } } this.ExchangerSingleMatchingViewModelBindingSource.DataSource = _allBindingList; this.searchControl1.Text = _pumpMatchingViewModel.ModelType; @@ -72,10 +75,10 @@ { _pumpMatchingViewModel.MatchingDbId = vm.ID.ToString(); _pumpMatchingViewModel.MatchingModelType = vm.Name.ToString(); - /* _pumpMatchingViewModel.MatchingMinorLoss = vm.Coefficient; - _pumpMatchingViewModel.MatchingMaterial = vm.Material; - _pumpMatchingViewModel.MatchingExchangerType = (eExchangerType?)vm.SeriesType; - _pumpMatchingViewModel.MatchingExchangerSetting = vm.ExchangerSetting;*/ + /* _valveMatchingViewModel.MatchingMinorLoss = vm.Coefficient; + _valveMatchingViewModel.MatchingMaterial = vm.Material; + _valveMatchingViewModel.MatchingExchangerType = (eExchangerType?)vm.SeriesType; + _valveMatchingViewModel.MatchingExchangerSetting = vm.ExchangerSetting;*/ var list = await _bll_ex.Value.GetByMainID(vm.ID); if (list != null && list.Any()) { -- Gitblit v1.9.3