From 8a8983dd2053b631c559b257b1501d740bedf4a5 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 20 九月 2024 16:09:12 +0800 Subject: [PATCH] 优化匹配界面 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/AssetsMainChoicePage.cs | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/AssetsMainChoicePage.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/AssetsMainChoicePage.cs index 3dc3db6..8daf3ee 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/AssetsMainChoicePage.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/AssetsMainChoicePage.cs @@ -15,6 +15,16 @@ private BLL.ValveMain _valveMain = null; + public void SetBindingData(AssetsAutoMatchingInputViewModel inputViewModel) + { + this.elbowsMatchingCtrl1.SetBindingData(inputViewModel.ElbowsMatchingModels); + this.pipeLineMatchingCtrl1.SetBindingData(inputViewModel.PipeLineMatchingModels); + this.pumpMatchingCtrl1.SetBindingData(inputViewModel.PumpMatchingModels); + this.threeLinkMatchingCtrl1.SetBindingData(inputViewModel.ThreeLinkMatchingModels); + this.fourLinkMatchingCtrl1.SetBindingData(inputViewModel.FourLinkMatchingModels); + this.valveMatchingCtrl1.SetBindingData(inputViewModel.ValveMatchingModels); + } + /// <summary> /// 鍒濆鍖� /// </summary> @@ -30,15 +40,15 @@ var allValve = await _valveMain.GetAll(); var assetsAutoMatching = new AssetsAutoMatchingInputViewModel(); //娉靛尮閰� - var pumpMatching = await this.pumpMatchingCtrl1.SetBindingData(input.PumpMatchingModels, allPump); + var pumpMatching = await this.pumpMatchingCtrl1.SetMatching(input.PumpMatchingModels, allPump); //涓夐�氬尮閰� - var threeLinkMatching = this.threeLinkMatchingCtrl1.SetBindingData(input.ThreeLinkMatchingModels, allAdapting); + var threeLinkMatching = this.threeLinkMatchingCtrl1.SetMatching(input.ThreeLinkMatchingModels, allAdapting); //鍥涢�氬尮閰� - var fourLinkMatching = this.fourLinkMatchingCtrl1.SetBindingData(input.FourLinkMatchingModels, allAdapting); + var fourLinkMatching = this.fourLinkMatchingCtrl1.SetMatching(input.FourLinkMatchingModels, allAdapting); //绠¢亾鍖归厤 - var PipeLineMatching = this.pipeLineMatchingCtrl1.SetBindingData(input.PipeLineMatchingModels, allPipeLine); + var PipeLineMatching = this.pipeLineMatchingCtrl1.SetMatching(input.PipeLineMatchingModels, allPipeLine); //闃�闂ㄥ尮閰� - var ValveMatching = this.valveMatchingCtrl1.SetBindingData(input.ValveMatchingModels, allValve); + var ValveMatching = this.valveMatchingCtrl1.SetMatching(input.ValveMatchingModels, allValve); assetsAutoMatching.PumpMatchingModels = pumpMatching; assetsAutoMatching.ThreeLinkMatchingModels = threeLinkMatching; return assetsAutoMatching; -- Gitblit v1.9.3