duheng
2024-08-26 0663632b0a4aa990a68fca7ea564c93d963c3eaf
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();
        }