文件名从 WinFrmUI/HStation.WinFrmUI.Xhs.Project/03-PumpManage/PumpSeriesTreeListCtrl.cs 修改 |
| | |
| | | 锘縰sing DevExpress.XtraEditors; |
| | | using HStation.Dto; |
| | | using HStation.WinFrmUI.Xhs.Project; |
| | | using HStation.WinFrmUI.Xhs.PumpProduct; |
| | | using ISupply.WinFrmUI; |
| | | using System.ComponentModel; |
| | | |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public partial class PumpSeriesTreeListCtrl : XtraUserControl |
| | | public partial class PumpProductSeriesTreeListCtrl : XtraUserControl |
| | | { |
| | | public PumpSeriesTreeListCtrl() |
| | | public PumpProductSeriesTreeListCtrl() |
| | | { |
| | | InitializeComponent(); |
| | | this.treeList1.InitialDefaultSettings(); |
| | |
| | | if (_allBindingList == null) |
| | | return; |
| | | var currentVm = this.treeList1.GetCurrentViewModel(_allBindingList); |
| | | var dlg = new AddPumpSeriesDlg(); |
| | | var dlg = new AddPumpProductSeriesDlg(); |
| | | dlg.ReloadDataEvent += async (model) => |
| | | { |
| | | var allchildList = await _seriesbll.GetAll(); |
| | |
| | | if (currentVm.IsGroup == false) |
| | | { |
| | | var series = currentVm.Model as Model.PumpSeries; |
| | | var dlg = new EditPumpSeriesDlg(); |
| | | var dlg = new EditPumpProductSeriesDlg(); |
| | | dlg.SetBindingData(currentVm.ID); |
| | | dlg.ReloadDataEvent += async (model) => |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | var dlg = new EditPumpGroupDlg(); |
| | | var dlg = new EditPumpProductGroupDlg(); |
| | | dlg.SetBindingData(currentVm.ID); |
| | | dlg.ReloadDataEvent += async (model) => |
| | | { |
| | |
| | | } |
| | | if (_allBindingList == null) |
| | | return; |
| | | var dlg = new AddPumpGroupDlg(); |
| | | var dlg = new AddPumpProductGroupDlg(); |
| | | dlg.SetBindingData(currentVm.ID); |
| | | dlg.ReloadDataEvent += async (model) => |
| | | { |