From 7d17fabc46e87ea0f0896f760034f4d16a4dfed0 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 20 九月 2024 13:20:57 +0800 Subject: [PATCH] 提交修改 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/02-AsstesFormCtrl/PipeLineMatchingCtrl.cs | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/02-AsstesFormCtrl/PipeLineMatchingCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/02-AsstesFormCtrl/PipeLineMatchingCtrl.cs index f688acf..dc96769 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/02-AsstesFormCtrl/PipeLineMatchingCtrl.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-AutoMatching/02-AsstesFormCtrl/PipeLineMatchingCtrl.cs @@ -9,5 +9,27 @@ this.gridView1.OptionsView.ShowDetailButtons = true; this.gridView1.OptionsView.ShowGroupPanel = false; } + + private List<PipeLineMatchingViewModel> _allBindingList = null; + + public List<PipeLineMatchingViewModel> SetBindingData(List<PipeLineMatchingViewModel> inputs, List<AdaptingManageVmo> alllist) + { + var finishList = new List<PipeLineMatchingViewModel>(); + foreach (var item in inputs) + { + var result = AsstesAutoMatchingHelper.AutoMatching(item, alllist); + if (result != null) + { + finishList.Add(result); + } + else + { + } + } + _allBindingList = finishList; + this.pipeLineMatchingViewModelBindingSource.DataSource = _allBindingList; + this.pipeLineMatchingViewModelBindingSource.ResetBindings(false); + return finishList; + } } } \ No newline at end of file -- Gitblit v1.9.3