duheng
2024-07-18 7bf79c6515f27ba9be8d2b3fb4e3ceae5718e3e5
WinFrmUI/HStation.WinFrmUI.Assets.Core/00-PumpProductManage/PumpProductMainPanel.cs
文件名从 WinFrmUI/HStation.WinFrmUI.Xhs.Project/00-PumpProductManage/PumpProductMainPanel.cs 修改
@@ -1,4 +1,5 @@
锘縰sing HStation.BLL;
锘縰sing DevExpress.XtraRichEdit.Import.Html;
using HStation.BLL;
using HStation.Dto;
using Mapster;
using SQLitePCL;
@@ -86,9 +87,9 @@
                map.PumpGroupID = groupid;
            }
            dlg.SetBindingData(id);
            dlg.ReloadDataEvent += async (rhs) =>
            dlg.ReloadDataEvent += async (main, part, content, mainmap) =>
            {
                var id = await _bll.InsertEx(rhs, map);
                var id = await _bll.InsertEx(main, map, part, content, mainmap);
                if (id > 0)
                {
                    var model = await _bll.GetByID(id);
@@ -169,12 +170,25 @@
                var model = await _bll.GetByID(currentVm.ID);
                if (model != null)
                {
                    /*    var page = new ModelManageCtrl(model);
                    /*    var page = new ModelManageCtrl(_PumpMain);
                        page.PageTitle.Caption = guid.Function;
                        page.SurfaceGuid = guid;
                        CreatePage(page, guid);*/
                }
            }
        }
        //琛ㄦ牸鍙冲嚮鑿滃崟
        private void gridView1_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                if (this.gridView1.GetCurrentViewModel(_allBindingList) != null)
                {
                    Point screenPoint = Cursor.Position;
                    popupPump.ShowPopup(screenPoint);
                }
            }
        }
    }
}