| | |
| | | } |
| | | |
| | | //模糊查询(表格显示) |
| | | 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(); |
| | | } |
| | | |