private void btnFEntry_ItemClick_1(object sender, ItemClickEventArgs e) { CommFun.DW1.Text = "Followup Entry"; radPanel1.Controls.Clear(); frmCallsheetEntry frmcall = new frmCallsheetEntry(); frmcall.TopLevel = false; frmcall.FormBorderStyle = Alias.FormBorderStyle.None; frmcall.Dock = DockStyle.Fill; radPanel1.Controls.Add(frmcall); frmcall.Execute("A", 0, ""); }
private void btnAdd_ItemClick(object sender, ItemClickEventArgs e) { if (BsfGlobal.FindPermission("Pre-Followup-Add") == false) { MessageBox.Show("You don't have Rights to Pre-Followup-Add"); return; } frmCallsheetEntry frmCsEntry = new frmCallsheetEntry(); //Radpanel.Controls.Clear(); frmCsEntry.TopLevel = false; frmCsEntry.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; if (BsfGlobal.g_bWorkFlow == true) { BsfGlobal.g_bTrans = true; oPanel = BsfGlobal.GetPanel(frmCsEntry, "Followup Entry"); if (oPanel != null) { oPanel.Controls.Clear(); frmCsEntry.TopLevel = false; frmCsEntry.FormBorderStyle = FormBorderStyle.None; frmCsEntry.Dock = DockStyle.Fill; oPanel.Controls.Add(frmCsEntry); frmCsEntry.Execute("A", 0, "CallReg"); oPanel.Visible = true; Cursor.Current = Cursors.Default; } } else { CommFun.RP1.Controls.Clear(); frmCsEntry.Radpanel = CommFun.RP1; frmCsEntry.TopLevel = false; frmCsEntry.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; frmCsEntry.Dock = DockStyle.Fill; CommFun.RP1.Controls.Add(frmCsEntry); frmCsEntry.Execute("A", 0, "CallReg"); FillExecreg(); } }
private void btnEdit_ItemClick(object sender, ItemClickEventArgs e) { //bar1.Visible = false; DataView dvData; if (BsfGlobal.FindPermission("Pre-Followup-Modify") == false) { MessageBox.Show("You don't have Rights to Pre-Followup-Modify"); return; } if (BsfGlobal.g_bWorkFlowDialog == true) { return; } if (grdCallSheetView.GetFocusedRow() == null) { return; } if (grdCallSheetView.FocusedRowHandle >= 0) { int entryId; bool bAns = false; if (BsfGlobal.g_bWorkFlowDialog == true) { return; } dvData = new DataView(dtCallSht) { RowFilter = String.Format("EntryId={0}", Convert.ToInt32(grdCallSheetView.GetFocusedRowCellValue("EntryId"))) }; entryId = Convert.ToInt32(grdCallSheetView.GetFocusedRowCellValue("EntryId")); string s = grdCallSheetView.GetFocusedRowCellValue("CallType").ToString(); bAns = CallSheetEntryBL.CallSheetFound(Convert.ToInt32(grdCallSheetView.GetFocusedRowCellValue("LeadId")), entryId); frmCallsheetEntry frmCsEntry = new frmCallsheetEntry() { TopLevel = false, FormBorderStyle = System.Windows.Forms.FormBorderStyle.None, Dock = DockStyle.Fill }; if (bAns == false) { //UpdateChildren(frmCsEntry.groupControl1.Controls, true); //frmCsEntry.btnBroker.Enabled = false; //frmCsEntry.btnSave.Enabled = false; } else if (s == "Finalization") { //UpdateChildren(frmCsEntry.groupControl1.Controls, true); frmCsEntry.btnBroker.Enabled = true; frmCsEntry.btnSave.Enabled = true; frmBuyer frm = new frmBuyer(); //UpdateChildren(frm.groupControl1.Controls, true); frm.btnBroker.Enabled = true; frm.cboBroker.Enabled = true; frm.txtCommAmt.Enabled = true; frm.txtCommpercent.Enabled = true; frm.btnSave.Enabled = true; frm.btnCancel.Enabled = true; } //frmCsEntry.FillCallSheet = dtData; //frmCsEntry.TopLevel = false; //frmCsEntry.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; //frmCsEntry.Dock = DockStyle.Fill; if (BsfGlobal.g_bWorkFlow == true) { m_oGridMasterView = grdCallSheetView; m_oGridMasterView.FocusedRowHandle = grdCallSheetView.FocusedRowHandle; m_iFocusRowId = grdCallSheetView.FocusedRowHandle; m_sTxtRemarks = txtRemarks; BsfGlobal.g_bTrans = true; m_oDW = (DocumentWindow)BsfGlobal.g_oDock.ActiveWindow; m_oDW.Hide(); BsfGlobal.g_bTrans = false; Cursor.Current = Cursors.WaitCursor; PanelControl oPanel = new PanelControl(); oPanel = BsfGlobal.GetPanel(frmCsEntry, "Followup Entry"); if ((oPanel == null)) { return; } oPanel.Controls.Clear(); oPanel.Controls.Add(frmCsEntry); frmCsEntry.i_RowId = m_iFocusRowId; frmCsEntry.Execute("E", entryId, "CallReg"); oPanel.Visible = true; Cursor.Current = Cursors.Default; } else { m_oGridMasterView = grdCallSheetView; m_oGridMasterView.FocusedRowHandle = grdCallSheetView.FocusedRowHandle; m_iFocusRowId = grdCallSheetView.FocusedRowHandle; m_sTxtRemarks = txtRemarks; CommFun.DW1.Hide(); CommFun.DW2.Text = "FollowUp Entry"; frmCsEntry.TopLevel = false; CommFun.RP2.Controls.Clear(); frmCsEntry.FormBorderStyle = FormBorderStyle.None; frmCsEntry.Dock = DockStyle.Fill; CommFun.RP2.Controls.Add(frmCsEntry); frmCsEntry.i_RowId = m_iFocusRowId; frmCsEntry.Execute("E", entryId, "CallReg"); CommFun.DW2.Show(); } } }