From 0663632b0a4aa990a68fca7ea564c93d963c3eaf Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期一, 26 八月 2024 15:01:51 +0800
Subject: [PATCH] 优化界面

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/PumpMain/PumpMainChoicePage.cs |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/PumpMain/PumpMainChoicePage.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/PumpMain/PumpMainChoicePage.cs
index e239154..c919380 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/PumpMain/PumpMainChoicePage.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/PumpMain/PumpMainChoicePage.cs
@@ -149,9 +149,24 @@
         }
 
         //妯$硦鏌ヨ(琛ㄦ牸鏄剧ず)
-        private void simpleLabelItemVagueSearch_Click(object sender, EventArgs e)
+        private async void simpleLabelItemVagueSearch_Click(object sender, EventArgs e)
         {
+            if (TextPopupPumpChoice.EditValue == null)
+            {
+                return;
+            }
+            _allBindingList = new List<PumpMainChoieViewModel>();
             TextPopupPumpChoice.Properties.PopupControl = popupContainerControl2;
+            var allPumpMain = await _pumpBll.GetAll();
+            foreach (var Main in allPumpMain)
+            {
+                if (Main.Name.Contains(TextPopupPumpChoice.Text))
+                {
+                    _allBindingList.Add(new PumpMainChoieViewModel(Main));
+                }
+            }
+            this.gridControl1.DataSource = _allBindingList;
+            TextPopupPumpChoice.Size = new Size(500, 300);
             TextPopupPumpChoice.ShowPopup();
         }
 

--
Gitblit v1.9.3