From a6c4751021807edcae850b761bd9dedbf3d3b01b Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期四, 19 十二月 2024 15:43:02 +0800
Subject: [PATCH] 修改阀门管理界面

---
 WinFrmUI/HStation.WinFrmUI.Assets.Core/01-pump/PumpProductMainPage.cs |   37 ++++++++++++++++++-------------------
 1 files changed, 18 insertions(+), 19 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/01-pump/PumpProductMainPage.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/01-pump/PumpProductMainPage.cs
index e430afe..db2e006 100644
--- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/01-pump/PumpProductMainPage.cs
+++ b/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,9 +167,9 @@
                 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()
             {
@@ -180,17 +179,17 @@
             };
             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);*/
             }
         }
 
@@ -246,10 +245,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();
         }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3