private void uiCommandManager1_CommandClick(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e) { try { switch (e.Command.Key) { case "tsSave": Save(); break; case "tsDelete": Delete(); break; case "tsAudit": fData fAudit = new fData(CurrentRow()); fAudit.Show(); break; } } catch (Exception x) { UIHelper.HandleUIException(x); } }
private void uiCommandManager1_CommandClick(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e) { try { switch (e.Command.Key) { case "tsNew": lmDatasets.CLAS.OfficeAccountRow qrRow = (lmDatasets.CLAS.OfficeAccountRow)FM.GetCLASMng().GetOfficeAccount().Add(FM.CurrentFile); officeAccountBindingSource.Position = officeAccountBindingSource.Find("OfficeAccountID", qrRow.OfficeAccountID); transactionDateCalendarCombo.Focus(); break; case "tsSave": Save(); break; case "tsDelete": Delete(); break; case "tsAudit": fData fAudit = new fData(CurrentRow()); fAudit.Show(); break; } } catch (Exception x) { UIHelper.HandleUIException(x); } }
private void uiCommandManager1_CommandClick(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e) { try { switch (e.Command.Key) { case "tsAudit": fData fAudit = new fData(CurrentRow()); fAudit.Show(); break; case "cmdViewSRP": atriumDB.SRPRow srprow = FM.GetSRP().Load(CurrentRow().SRPID); fFile agentBillingFile = FileForm().MainForm.OpenFile(srprow.FileID); agentBillingFile.MoreInfo("srp", srprow.SRPID); break; case "cmdSRPDetail": atriumDB.SRPRow srprow2 = FM.GetSRP().Load(CurrentRow().SRPID); fFile agentBillingFile2 = FileForm().MainForm.OpenFile(srprow2.FileID); agentBillingFile2.MoreInfo("srpdetail", srprow2.SRPID); break; } } catch (Exception x) { UIHelper.HandleUIException(x); } }
private void uiCommandManager1_CommandClick(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e) { try { switch (e.Command.Key) { case "tsReload": AtMng.DB.Batch.Clear(); AtMng.GetBatch().LoadByOfficeCode(AtMng.OfficeLoggedOn.OfficeCode); batchGridEX.Row = 0; break; case "tsMarkAsRead": CurrentRow().Status = "R"; Save(); break; case "tsAudit": fData fAudit = new fData(CurrentRow()); fAudit.Show(); break; } } catch (Exception x) { UIHelper.HandleUIException(x); } }
private void uiCommandManager1_CommandClick(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e) { try { switch (e.Command.Key) { case "tsTestCAL": FileForm().GetUcCtlToc("appointment"); break; case "tsDump": string file = FM.AtMng.AppMan.LawMatePath + FM.CurrentFile.FileId.ToString(); FM.DB.WriteXml(file + "_atriumDB.xml"); FM.GetDocMng().DB.WriteXml(file + "_docDB.xml"); break; case "tsSecurity": FileForm().GetUcCtlToc("security"); break; case "cmdFileAccess": FileForm().GetUcCtlToc("fileaccess"); break; case "tsSave": Save(); break; case "tsDelete": Delete(); break; case "tsResetFileStruct": //FM.EFile.RebuildFileStruct(FM.CurrentFile); //Save(); FileForm().ReloadFileData(); fFile pfile = (fFile)this.ParentForm; pfile.fileToc.LoadTOC(); break; case "tsAudit": fData fAudit = new fData(CurrentRow()); fAudit.Show(); break; } } catch (Exception x) { UIHelper.HandleUIException(x); } }
private void uiCommandManager1_CommandClick(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e) { try { switch (e.Command.Key) { case "tsSave": Save(); break; case "tsDelete": Delete(); break; case "cmdFilter": if (e.Command.Checked == Janus.Windows.UI.InheritableBoolean.True) { debtGridEX.FilterMode = Janus.Windows.GridEX.FilterMode.Automatic; } else { debtGridEX.FilterMode = Janus.Windows.GridEX.FilterMode.None; } break; case "cmdGroupBy": if (e.Command.Checked == Janus.Windows.UI.InheritableBoolean.True) { debtGridEX.GroupByBoxVisible = true; } else { debtGridEX.GroupByBoxVisible = false; } break; case "tsAudit": fData fAudit = new fData(CurrentRow()); fAudit.Show(); break; } } catch (Exception x) { UIHelper.HandleUIException(x); } }
private void uiCommandManager1_CommandClick(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e) { try { switch (e.Command.Key) { case "cmdEditParty": DoEditParty(); break; case "cmdSave": Save(); break; case "cmdCancel": ApplyBR(true); UIHelper.Cancel(filePartyBindingSource); UIHelper.Cancel(partyBindingSource); UIHelper.Cancel(addressBindingSource); TogglePartyEditableMode(false); ApplySecurity(CurrentRow()); break; case "cmdDelete": Delete(); break; case "tsAudit": fData fAudit = new fData(CurrentRow()); fAudit.Show(); break; } } catch (Exception x) { UIHelper.HandleUIException(x); } }
private void uiCommandManager1_CommandClick(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e) { try { Janus.Windows.UI.CommandBars.UICommandBar bar = uiCommandManager1.CommandBars["cbMergeToolbar"]; if (bar.Commands.Contains(e.Command.Key) && bar.Commands[e.Command.Key].Commands.Count > 0) { bar.Commands[e.Command.Key].Expand(); } switch (e.Command.Key) { case "cmdLinkOpinion": HookupNewOpinionDoc(true); break; case "cmdLinkRequest": HookupNewOpinionDoc(false); break; case "tsSave": Save(); break; case "tsShowOpinion": if (e.Command.IsChecked) { DisplayDoc(dvOpinion); tsShowRequest.IsChecked = false; } else { tsShowOpinion.IsChecked = true; } break; case "tsShowRequest": if (e.Command.IsChecked) { DisplayDoc(dvRequest); tsShowOpinion.IsChecked = false; } else { tsShowRequest.IsChecked = true; } break; case "tsDelete": Delete(); break; case "tsAudit": fData fAudit = new fData(CurrentRow()); fAudit.Show(); break; } } catch (Exception x) { UIHelper.HandleUIException(x); } }
private void uiCommandManager1_CommandClick(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e) { try { Janus.Windows.UI.CommandBars.UICommandBar bar = uiCommandManager1.CommandBars["cbMergeToolbar"]; if (bar.Commands.Contains(e.Command.Key) && bar.Commands[e.Command.Key].Commands.Count > 0) { bar.Commands[e.Command.Key].Expand(); } switch (e.Command.Key) { case "tsProcessFirst": ProcessCashBlotter(); break; case "tsProcessSecond": ProcessCashBlotter(); break; case "tsSave": Save(); break; case "tsDelete": Delete(); break; case "cmdGoToActivity": FileForm().MainForm.OpenFile(CurrentDetailRow().FileID); break; case "cmdGoToCB": fFile f1 = FileForm().MainForm.OpenFile(CurrentDetailRow().FileID); f1.MoreInfo("cbdetail", CurrentDetailRow().CashBlotterDetailID); break; case "cmdGoToGeneralFile": FileForm().MainForm.OpenFile(CurrentDetailRow().FileID); break; case "tsAudit": fData fAudit = new fData(CurrentRow()); fAudit.Show(); break; case "tsPrintCB": ActivityConfig.ACSeriesRow acsr; if (CurrentRow().IsRemittedDateNull()) { acsr = FM.AtMng.acMng.DB.ACSeries.FindByACSeriesId(UIHelper.AtMng.GetSetting(atriumBE.AppIntSetting.CBPrintDraftAcId)); } else { acsr = FM.AtMng.acMng.DB.ACSeries.FindByACSeriesId(UIHelper.AtMng.GetSetting(atriumBE.AppIntSetting.CBPrintCopyAcId)); } this.FileForm().ReadOnly = true; fACWizard facwr = new fACWizard(FM, acsr.ACSeriesId, atriumBE.ACEngine.RevType.CashBlotter, CurrentRow().CashBlotterID, null); this.FileForm().HookupWizClose(facwr); facwr.Show(); break; } FileForm().HandleACSMenu(e, CurrentRow()); } catch (Exception x) { UIHelper.HandleUIException(x); } }
private void uiCommandManager1_CommandClick(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e) { try { switch (e.Command.Key) { case "tsCopyPrefs": fContactSelect fcs = new fContactSelect(FM, null, false); if (fcs.ShowDialog() == DialogResult.OK) { officeDB.OfficerRow fromR = FM.LeadOfficeMng.GetOfficer().FindLoad(fcs.ContactId); if (MessageBox.Show("Are you sure you want to copy all the preferences from " + fromR.DisplayName + " to " + CurrentRow().DisplayName + "?", "Copy Preferences", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) { int fromOfficer = fcs.ContactId; FM.LeadOfficeMng.GetOfficer().CopyPreferences(fromOfficer, CurrentRow().OfficerId, true); atLogic.BusinessProcess bp1 = FM.GetBP(); bp1.AddForUpdate(FM.LeadOfficeMng.DB.OfficerPrefs); bp1.Update(); } } break; case "cmdAddToAB": atriumBE.FileManager fmAB = FM.AtMng.GetFile(FM.AtMng.WorkingAsOfficer.MyFileId); try { fmAB.GetFileContact().Add(CurrentRow(), "FAB"); atLogic.BusinessProcess bp = fmAB.GetBP(); bp.AddForUpdate(fmAB.GetFileOffice()); bp.AddForUpdate(fmAB.GetPerson()); bp.AddForUpdate(fmAB.GetFileContact()); bp.AddForUpdate(fmAB.EFile); bp.Update(); } catch (Exception x) { fmAB.DB.RejectChanges(); throw x; } break; case "tsMyFile": if (CurrentRow().IsMyFileIdNull() || (!CurrentRow().IsMyFileIdNull() && MessageBox.Show(LawMate.Properties.Resources.PersonalFileAlreadyExists, LawMate.Properties.Resources.CreatePersonalFile, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)) { fBrowse f = new fBrowse(FM.AtMng, FM.CurrentFile.FileId, true, true, true, true); if (f.ShowDialog() == DialogResult.OK) { FM.LeadOfficeMng.GetOfficer().CreatePersonalFiles(f.SelectedFile.FileId, CurrentRow(), LawMate.Properties.Settings.Default.UseSeparatePersonalFiles); Save(); } } break; case "tsSave": Save(); break; case "tsDelete": Delete(); break; case "tsAudit": fData fAudit = new fData(CurrentRow()); fAudit.Show(); break; case "tsNew": //officerBindingSource.AddNew(); officeDB.OfficerRow or = (officeDB.OfficerRow)FM.LeadOfficeMng.GetOfficer().Add(FM.LeadOfficeMng.CurrentOffice); officerBindingSource.Position = officerBindingSource.Find("OfficerId", or.OfficerId); break; case "tsOfficeMailView": FileForm().MainForm.OpenBFList(CurrentRow()); break; case "tsOfficerBFList": FileForm().MainForm.OpenBFList(CurrentRow()); break; case "tsResetPassword": break; case "tsGroupBy": if (e.Command.Checked == Janus.Windows.UI.InheritableBoolean.True) { officerGridEX.GroupByBoxVisible = true; } else { officerGridEX.GroupByBoxVisible = false; } break; case "tsFilter": if (e.Command.Checked == Janus.Windows.UI.InheritableBoolean.True) { officerGridEX.FilterMode = Janus.Windows.GridEX.FilterMode.Automatic; } else { officerGridEX.FilterMode = Janus.Windows.GridEX.FilterMode.None; } break; case "tsSecurity": Save(); fSecurity fs = new fSecurity(); fs.Init(FM.AtMng.SecurityManager, CurrentRow()); fs.ShowDialog(); Save(); break; } } catch (Exception x) { UIHelper.HandleUIException(x); } }
private void uiCommandManager1_CommandClick(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e) { try { Janus.Windows.UI.CommandBars.UICommandBar bar = uiCommandManager1.CommandBars["cbMergeToolbar"]; if (bar.Commands.Contains(e.Command.Key) && bar.Commands[e.Command.Key].Commands.Count > 0) { bar.Commands[e.Command.Key].Expand(); } switch (e.Command.Key) { case "cmdFieldSelector": ucRecordList1.RecordsGridEx.ShowFieldChooser(this.ParentForm, LawMate.Properties.Resources.FieldSelector); break; case "tsFilter": if (e.Command.IsChecked) { ucRecordList1.RecordsGridEx.FilterMode = Janus.Windows.GridEX.FilterMode.Automatic; } else { ucRecordList1.RecordsGridEx.FilterMode = Janus.Windows.GridEX.FilterMode.None; } break; case "tsGroupBy": if (e.Command.IsChecked) { ucRecordList1.RecordsGridEx.GroupByBoxVisible = true; } else { ucRecordList1.RecordsGridEx.RootTable.Groups.Clear(); ucRecordList1.RecordsGridEx.GroupByBoxVisible = false; } break; case "cmdClone": myDM.GetDocument().MakeCopy(CurrentRow(), FM.CurrentFile, true); break; case "tsTemplate": FileForm().GetUcCtlToc("template"); break; case "cmdRevise": lmWinHelper.ReviseDocument(FM, CurrentRow().DocId); break; case "tsPrint": //ucDocPreview1.Print(); ucDocView1.Print(); break; case "tsPrintPreview": //ucDocPreview1.PrintPreview(); ucDocView1.PrintPreview(); break; case "tsAdd": //new activity NewDoc(FM.AtMng.GetSetting(AppIntSetting.NewDocAcId)); break; case "tsAddRec": //new activity NewDoc(FM.AtMng.GetSetting(AppIntSetting.NewRecordAcId)); break; case "tsSend": docDB.DocumentRow drc = CurrentRow(); if (drc.IsDraft) { drc = FM.GetDocMng().GetDocument().MakeCopy(CurrentRow(), FM.CurrentFile, false); } lmWinHelper.NewMail(FM, drc.DocId); break; case "tsCopy": StartCopy(); break; case "tsExport": myDM.AtMng.Export("f.openeddate>'2011-1-1'"); break; case "tsCheckout": CheckOut(); break; case "tsCheckin": CheckIn(); break; case "tsUndoCheckout": docDB.DocumentRow dr = (docDB.DocumentRow)((DataRowView)documentBindingSource.Current).Row; ucDocView1.Clear(); //ucDocPreview1.Clear(); myDM.GetDocument().UndoCheckout(dr); CheckoutToggle(dr); ucDocView1.Preview(); //ucDocPreview1.Preview(); break; case "tsPreviewPane": HidePreviewPane(tsPreviewPane.IsChecked); break; case "tsSave": Save(); break; case "tsAudit": fData fAudit = new fData(CurrentRow()); fAudit.Show(); break; case "cmdJumpToActivity": if (e.Command.Tag != null) { FileForm().MoreInfo("activity", (int)e.Command.Tag); } break; } if (e.Command.Key.StartsWith("cmdActivityMoreInfo")) { FileForm().MoreInfo("activity", (int)e.Command.Tag); } } catch (Exception x) { UIHelper.HandleUIException(x); } }
private void uiCommandManager1_CommandClick(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e) { try { switch (e.Command.Key) { case "cmdRefreshCal": ReloadUserControlData(); break; case "cmdJumpToFile": JumpToFile(); break; case "tsSave": //Save(); break; case "tsDelete": Delete(); break; case "tsAudit": fData fAudit = new fData(CurrentRow()); fAudit.Show(); break; case "cmdOneDay": schedule1.View = Janus.Windows.Schedule.ScheduleView.DayView; break; case "cmdWorkWeek": schedule1.View = Janus.Windows.Schedule.ScheduleView.WorkWeek; break; case "cmdWeek": schedule1.View = Janus.Windows.Schedule.ScheduleView.WeekView; break; case "cmdMonth": schedule1.View = Janus.Windows.Schedule.ScheduleView.MonthView; calMonthDisplay.Text = schedule1.Date.ToString("MMMM yyyy"); break; case "cmdGoToToday": schedule1.Date = DateTime.Today; schedule1.View = Janus.Windows.Schedule.ScheduleView.DayView; break; case "cmdGoToNextSevenDays": schedule1.View = Janus.Windows.Schedule.ScheduleView.WeekView; schedule1.Date = DateTime.Today; break; } if (e.Command.Key.StartsWith("tsACMenu")) { ActivityConfig.ACSeriesRow acsr = (ActivityConfig.ACSeriesRow)e.Command.Tag; int apptId; if (acsr.ACSeriesId == FM.AtMng.GetSetting(AppIntSetting.NewApptAcId)) { AddNewAppointment(acsr.ACSeriesId); apptId = FM.DB.Appointment[FM.DB.Appointment.Count - 1].ApptId; } else { apptId = CurrentRow().ApptId; EditReschedule(acsr.ACSeriesId); } if (IsOfficerCal) { ReloadUserControlData(); //find just added or updated appt AppointmentBindingSource.Position = AppointmentBindingSource.Find("ApptId", apptId); } } } catch (Exception x) { UIHelper.HandleUIException(x); } }