文件名从 WinFrmUI/HStation.WinFrmUI.Xhs.Project/00-PumpProductManage/PumpProductMainPanel.cs 修改 |
| | |
| | | 锘縰sing HStation.BLL; |
| | | 锘縰sing DevExpress.XtraRichEdit.Import.Html; |
| | | using HStation.BLL; |
| | | using HStation.Dto; |
| | | using Mapster; |
| | | using SQLitePCL; |
| | |
| | | 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); |
| | |
| | | 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); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |