| | |
| | | this.gridView1.RegistCustomDrawRowIndicator(); |
| | | this.AssetsPumpSeriesTreeListCtrl1.FocusedChangedEvent += AssetsPumpSeriesTreeListCtrl1_FocusedChangedEvent; |
| | | this.AssetsPumpSeriesTreeListCtrl1.AddAssetsPumpMain += BtnAdd_ItemClickAsync; |
| | | this.dockManager1.Style = DevExpress.XtraBars.Docking2010.Views.DockingViewStyle.Light; |
| | | } |
| | | |
| | | private readonly List<AssetsPumpMainViewModel> _allBindingList = new(); |
| | |
| | | } |
| | | else |
| | | { |
| | | var idlist = await new BLL.AssetsPumpGroupAndMainMap().GetByGroupID(obj); |
| | | var idlist = await new BLL.AssetsPumpGroupAndMainMapping().GetByGroupID(obj); |
| | | var alllist = await _bll.GetByIds(idlist); |
| | | if (alllist != null) |
| | | { |
| | |
| | | if (groupid > 0) |
| | | { |
| | | map = new Vmo.AssetsPumpGroupAndMainMapVmo(); |
| | | map.PumpGroupID = groupid; |
| | | map.GroupID = groupid; |
| | | } |
| | | var AssetsPumpSeries = await new BLL.AssetsPumpSeries().GetByID(id); |
| | | if (AssetsPumpSeries == null) |
| | |
| | | MessageBoxHelper.ShowWarning("请选择数据行!"); |
| | | return; |
| | | } |
| | | //var dlg=new HStation.WinFrmUI.PhartRelation.SelXhsAssetsPumpMainPhartDlg(); |
| | | //dlg.SetBandingData(currentVm.ID); |
| | | //dlg.ShowDialog(); |
| | | /* var dlg=new HStation.WinFrmUI.PhartRelation.SelXhsAssetsPumpMainPhartDlg(); |
| | | dlg.SetBandingData(currentVm.ID); |
| | | dlg.ShowDialog();*/ |
| | | |
| | | var guid = new PageGuid() |
| | | { |
| | |
| | | }; |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | | var model = await _bll.GetByID(currentVm.ID); |
| | | if (model == null) |
| | | { |
| | | MessageBoxHelper.ShowWarning($"{currentVm.Name}:AssetsPumpMainDto is null!"); |
| | | return; |
| | | } |
| | | var page = new HStation.WinFrmUI.PhartRelation.XhsPumpMainPhartPanel(); |
| | | page.InitialDataSource(currentVm.ID); |
| | | page.PageTitle.Caption = guid.Function; |
| | | page.PageGuid = guid; |
| | | CreatePage(page, guid); |
| | | /* var model = await _bll.GetByID(currentVm.ID); |
| | | if (model == null) |
| | | { |
| | | MessageBoxHelper.ShowWarning($"{currentVm.Name}:AssetsPumpMainDto is null!"); |
| | | return; |
| | | } |
| | | var page = new HStation.WinFrmUI.PhartRelation.XhsPumpMainPhartPanel(); |
| | | page.InitialDataSource(currentVm.ID); |
| | | page.PageTitle.Caption = guid.Function; |
| | | page.PageGuid = guid; |
| | | CreatePage(page, guid);*/ |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | var model = this.gridView1.GetCurrentViewModel(_allBindingList); |
| | | var dlg = new SelXhsPumpMainPhartDlg(); |
| | | dlg.SetBandingData(model.ID); |
| | | dlg.ShowDialog(); |
| | | //var model = this.gridView1.GetCurrentViewModel(_allBindingList); |
| | | //var dlg = new SelXhsPumpMainPhartDlg(); |
| | | //dlg.SetBandingData(model.ID); |
| | | //dlg.ShowDialog(); |
| | | } |
| | | } |
| | | } |