| | |
| | | using DevExpress.CodeParser.VB.Preprocessor; |
| | | using DevExpress.XtraEditors.Controls; |
| | | using HStation.Dto; |
| | | |
| | | namespace HStation.WinFrmUI.Xhs.PumpProduct |
| | |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private Yw.BLL.SysCatalog _bll = null; |
| | | |
| | | private AddPumpMainDto model = null; |
| | | |
| | | public void SetBindingData(long ID) |
| | | public async void SetBindingData(long ID) |
| | | { |
| | | model = new AddPumpMainDto(); |
| | | model.PumpSeriesID = ID; |
| | | _bll = new Yw.BLL.SysCatalog(); |
| | | var alllist = await _bll.GetAll(); |
| | | foreach (var item in alllist) |
| | | { |
| | | var imageItem = new ImageComboBoxItem(item.Name, item.ID); |
| | | TextEditCatalogChoice.Properties.Items.Add(imageItem); |
| | | } |
| | | } |
| | | |
| | | public event Func<AddPumpMainDto, Task<bool>> ReloadDataEvent = null; |
| | |
| | | this.DialogResult = DialogResult.OK; |
| | | this.Close(); |
| | | } |
| | | |
| | | //分类选择变换 |
| | | private async void TextEditCatalogChoice_SelectedValueChanged(object sender, EventArgs e) |
| | | { |
| | | var bll = new Yw.BLL.SysPropStruct(); |
| | | var catlogID = this.TextEditCatalogChoice.EditValue; |
| | | if (catlogID == null) |
| | | return; |
| | | var id = Convert.ToInt64(catlogID); |
| | | var catlog = await bll.GetByCatalogID(id); |
| | | } |
| | | } |
| | | } |