From a906f71640d9ba5cd9f8d689a51de3a557d8bbff Mon Sep 17 00:00:00 2001
From: duheng <2286773002@qq.com>
Date: 星期五, 14 三月 2025 17:37:10 +0800
Subject: [PATCH] 完善成套设备界面问题

---
 WinFrmUI/PBS.WinFrmUI.WE/WaterWE/WaterEquivalentMgr.cs |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/WinFrmUI/PBS.WinFrmUI.WE/WaterWE/WaterEquivalentMgr.cs b/WinFrmUI/PBS.WinFrmUI.WE/WaterWE/WaterEquivalentMgr.cs
index 002b0f4..b68e62b 100644
--- a/WinFrmUI/PBS.WinFrmUI.WE/WaterWE/WaterEquivalentMgr.cs
+++ b/WinFrmUI/PBS.WinFrmUI.WE/WaterWE/WaterEquivalentMgr.cs
@@ -100,16 +100,18 @@
             PBS.Vmo.WE.ItemVmo itemVmo = null;
             if (model != null)
             {
-                // itemVmo = await new PBS.BLL.WE.Item().GetByID(model.ItemID);
+                //itemVmo = await new PBS.BLL.WE.Item().GetByID(model);
             }
             dlg.SetBindingData(itemVmo, catalogueID);
             dlg.ReloadDataEvent += async (item, catalogue, mappingList) =>
             {
+                //鐜板湪榛樿鍙兘澧炲姞锛屼笉鑳界紪杈�
                 if (itemVmo == null)
                 {
                     var id = await _bll.Insert(item);
                     if (id > 0)
                     {
+                        item.ID = id;
                         catalogue.ItemID = id;
                         var cataID = await new PBS.BLL.WE.CatalogueMapping().Insert(catalogue);
                         if (cataID > 0)
@@ -182,5 +184,20 @@
             }
             else MessageBoxHelper.ShowError($"鍒犻櫎澶辫触!");
         }
+
+        //璇︾粏淇℃伅
+        private void BtnInfo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
+        {
+            var vm = this.gridView1.GetCurrentViewModel(_allBindingList);
+            if (vm == null)
+            {
+                TipFormHelper.ShowWarn("璇疯緭鍏ユ暟鎹锛�");
+                return;
+            }
+
+            var dlg = new EditWaterWEDlg();
+            dlg.SetInfoDisplay(vm);
+            dlg.ShowDialog();
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3