private void btnEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (BsfGlobal.FindPermission("Stage Details-Modify") == false) { MessageBox.Show("You don't have Rights to Stage Details-Modify"); return; } if (grdViewStage.FocusedRowHandle >= 0) { int StageId = Convert.ToInt32(grdViewStage.GetFocusedRowCellValue("StageDetId")); if (BsfGlobal.g_bWorkFlow == true) { m_oGridMasterView = grdViewStage; m_oGridMasterView.FocusedRowHandle = grdViewStage.FocusedRowHandle; frmStageEntry frm = new frmStageEntry(); frm.Execute("E", StageId); } else { CommFun.DW1.Hide(); frmStageEntry frmCompEntry = new frmStageEntry(); CommFun.DW2.Text = "Stage Entry"; frmCompEntry.TopLevel = false; CommFun.RP2.Controls.Clear(); frmCompEntry.FormBorderStyle = FormBorderStyle.None; frmCompEntry.Dock = DockStyle.Fill; CommFun.RP2.Controls.Add(frmCompEntry); frmCompEntry.Execute("E", StageId); CommFun.DW2.Show(); } } FillStages(); }
private void barButtonItem20_ItemClick(object sender, ItemClickEventArgs e) { dwHome.Hide(); documentWindow1.Hide(); dwHome.Text = "Stage Entry"; frmStageEntry frm = new frmStageEntry(); radPanel1.Controls.Clear(); frm.TopLevel = false; frm.FormBorderStyle = Alias.FormBorderStyle.None; frm.Dock = DockStyle.Fill; radPanel1.Controls.Add(frm); frm.Execute(); dwHome.Show(); }
private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (BsfGlobal.FindPermission("Stage Details-Add") == false) { MessageBox.Show("You don't have Rights to Stage Details-Add"); return; } //bar1.Visible = false; //radPanel1.Controls.Clear(); frmStageEntry frm = new frmStageEntry(); //{ TopLevel = false, FormBorderStyle = FormBorderStyle.None, Dock = DockStyle.Fill }; frm.Execute("A", 0); //CommFun.DW1.Text = "Stage Entry"; //radPanel1.Controls.Add(frm); //frm.Show(); FillStages(); }