duheng
2024-12-24 0e33247236d4ac46f1a75802f53dd6c612301cff
WinFrmUI/HStation.WinFrmUI.Assets.Core/01-pump/PumpProductMainPage.cs
@@ -16,7 +16,6 @@
            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();
@@ -168,10 +167,6 @@
                MessageBoxHelper.ShowWarning("请选择数据行!");
                return;
            }
            //var dlg=new HStation.WinFrmUI.PhartRelation.SelXhsAssetsPumpMainPhartDlg();
            //dlg.SetBandingData(currentVm.ID);
            //dlg.ShowDialog();
            var guid = new PageGuid()
            {
                Function = "泵型号曲线",
@@ -186,11 +181,11 @@
                    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 page = new PumpChartMainPage();
                page.SetBindingData(currentVm.Model);
                page.PageTitle.Caption = guid.Function;
                page.PageGuid = guid;
                CreatePage(page, guid);
            }
        }
@@ -246,10 +241,10 @@
        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();
        }
    }
}