private void btnAddNewDepot_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Insert, (int)DocumentType.Depot, AppMain.CompanyRecId)) { return; } frmDepoEdit frm = new frmDepoEdit(); frm._FormOpenType = Msp.Infrastructure.FormOpenType.New; frm.Show(0); }
public void do_Edit() { if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Update, (int)DocumentType.Depot, AppMain.CompanyRecId)) { return; } DepotDTO Orow = (DepotDTO)gcv_Depot.GetFocusedRow(); if (Orow != null) { frmDepoEdit frm = new frmDepoEdit(); frm._FormOpenType = Infrastructure.FormOpenType.Edit; frm.Show(Orow.DID); } }