public string OfficeDistributionProjectionQuery() { lmDatasets.docDB.DocContentRow doccontentrow = myA.GetFile().GetDocMng().GetDocContent().Load(myA.GetSetting(atriumBE.AppIntSetting.PLOfficeForecastDocID)); if (doccontentrow != null && doccontentrow.ContentsAsText != null) { return(doccontentrow.ContentsAsText); } else { return("[Office Distribution Forecast Document could not be found]"); } }
public void Execute(appDB.BatchRow drBatch) { try { //JLL:2012-01-30 change as a result of moving SRP to atriumDB //SRPBE srpBE = this.myA.OfficeMng.GetSRP(); SRPBE srpBE = this.myA.GetFile().GetSRP(); this.myA.Impersonate(drBatch.UserName, drBatch.OfficeCode); drBatch.BeginEdit(); drBatch.Status = "A"; drBatch.StartRunDate = DateTime.Now; drBatch.EndEdit(); Save(); drBatch.BeginEdit(); int srpId; string[] param; switch (drBatch.JobName) { case "RunSQL": myA.DALMngr.ExecuteNonQuery(drBatch.Parameters); break; case "CreateACFFN": param = drBatch.Parameters.Split(','); string ffn = param[0]; int fileId1 = myA.GetFile(ffn).CurrentFileId; int acseriesId1 = System.Convert.ToInt32(param[1]); DateTime acDate1 = drBatch.BatchDate.Date; if (param.Length >= 3) { acDate1 = DateTime.Parse(param[2]); } string ctxTable1 = null; int ctxId1 = 0; if (param.Length >= 4) { ctxTable1 = param[3]; } if (param.Length >= 5) { ctxId1 = System.Convert.ToInt32(param[4]); } CreateAC(fileId1, acseriesId1, acDate1, ctxTable1, ctxId1); break; case "CreateAC": param = drBatch.Parameters.Split(','); int fileId = System.Convert.ToInt32(param[0]); int acseriesId = System.Convert.ToInt32(param[1]); DateTime acDate = drBatch.BatchDate.Date; if (param.Length >= 3) { acDate = DateTime.Parse(param[2]); } string ctxTable = null; int ctxId = 0; if (param.Length >= 4) { ctxTable = param[3]; } if (param.Length >= 5) { ctxId = System.Convert.ToInt32(param[4]); } CreateAC(fileId, acseriesId, acDate, ctxTable, ctxId); break; case "CommitSRP": srpId = Convert.ToInt32(drBatch.Parameters); srpBE.LoadOfficeManager(srpId); srpBE.GenSrp(srpId); srpBE.SubmitSrp(srpId); break; case "GenerateSRP": srpId = Convert.ToInt32(drBatch.Parameters); srpBE.LoadOfficeManager(srpId); srpBE.GenSrp(srpId); break; //case "ExportDisb": // srpId = Convert.ToInt32(drBatch.Parameters); // srpBE.LoadOfficeManager(srpId); // //drBatch.OutputFile = myA.OfficeMng.GetSRP().Export("Disb", srpId).ToString(); // drBatch.OutputFile = myA.GetFile().GetSRP().Export("Disb", srpId).ToString(); // break; //case "ExportFees": // srpId = Convert.ToInt32(drBatch.Parameters); // srpBE.LoadOfficeManager(srpId); // //drBatch.OutputFile = myA.OfficeMng.GetSRP().Export("Fees", srpId).ToString(); // drBatch.OutputFile = myA.GetFile().GetSRP().Export("Fees", srpId).ToString(); // break; case "PLOfficeUpdate": this.myA.AppMan.ExecuteSP("PLOfficeDistribUpdate"); break; case "ImportDisb": param = drBatch.Parameters.Split(','); // param[0] srpid // param[1] UploadPath // param[2] DisbType srpId = Convert.ToInt32(param[0]); srpBE.LoadOfficeManager(srpId); int uploadPath = Convert.ToInt32(param[1]); string disbType = param[2]; //JLL: I know this ain't right, that's for sure. Add fileid parameter? atriumDB.SRPRow drSrp = this.myA.GetFile().DB.SRP.FindBySRPID(srpId); if (drSrp == null) { drSrp = srpBE.Load(srpId); } if (drSrp.IsSRPSubmittedDateNull()) { //string errLogFileName = Path.GetFileNameWithoutExtension(uploadPath) + "_err.log"; //string errLogPath = Path.Combine(Path.GetDirectoryName(Path.GetDirectoryName(uploadPath)), "Output\\" + errLogFileName); try { srpBE.Import(disbType, srpId, uploadPath); } catch (Exception e) { //drBatch.OutputFile = errLogPath; throw e; } } else { throw new AtriumException(atriumBE.Properties.Resources.BatchImportNotAllowed); } break; default: throw new AtriumException(atriumBE.Properties.Resources.BatchInvalidJobName); } drBatch.Message = "Job succeeded"; drBatch.Status = "F"; drBatch.Completed = true; drBatch.EndRunDate = DateTime.Now; drBatch.EndEdit(); Save(); } catch (Exception err) { drBatch.Message = "Job failed: " + "/n/r" + err.Message; drBatch.Status = "X"; drBatch.Completed = true; drBatch.EndRunDate = DateTime.Now; drBatch.EndEdit(); Save(); myA.LogError(err); CreateAC(myA.GetSetting(AppIntSetting.BatchJobFailedFileId), myA.GetSetting(AppIntSetting.BatchJobFailedAcSeriesId)); } }
private void CreateNodes() { ImageList imgList = UIHelper.browseImgList(); tvOfficerToolkit.ImageList = imgList; System.Windows.Forms.TreeNode treeNodeAllBFs = new System.Windows.Forms.TreeNode("All BFs"); System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("BFs and Mail"); System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("All Mail"); System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("Unread Mail"); System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("Completed Items..."); System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("BF List", new System.Windows.Forms.TreeNode[] { treeNode3, treeNodeAllBFs, treeNode2, treeNode1, treeNode4 }); bool NotCVBImplementation = !Atmng.GetSetting(atriumBE.AppBoolSetting.isCVB); System.Windows.Forms.TreeNode treeNode6 = null; if (NotCVBImplementation) { treeNode6 = new System.Windows.Forms.TreeNode("My Office\'s Opinions..."); } System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("Checked out to me"); System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("Drafts"); System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("Today"); System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("Yesterday"); System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("This Week"); System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("Last Week"); System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("Custom..."); System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("Sent Items (Letterbook)", new System.Windows.Forms.TreeNode[] { treeNode9, treeNode10, treeNode11, treeNode12, treeNode13 }); System.Windows.Forms.TreeNode treeNode15 = new System.Windows.Forms.TreeNode("Today"); System.Windows.Forms.TreeNode treeNode16 = new System.Windows.Forms.TreeNode("Yesterday"); System.Windows.Forms.TreeNode treeNode17 = new System.Windows.Forms.TreeNode("This Week"); System.Windows.Forms.TreeNode treeNode18 = new System.Windows.Forms.TreeNode("Last Week"); System.Windows.Forms.TreeNode treeNode19 = new System.Windows.Forms.TreeNode("Custom..."); System.Windows.Forms.TreeNode treeNode20 = new System.Windows.Forms.TreeNode("Received Items", new System.Windows.Forms.TreeNode[] { treeNode15, treeNode16, treeNode17, treeNode18, treeNode19 }); System.Windows.Forms.TreeNode treeNode21 = null; if (NotCVBImplementation) { treeNode21 = new System.Windows.Forms.TreeNode("E-mails/Documents", new System.Windows.Forms.TreeNode[] { treeNode6, treeNode7, treeNode8, treeNode14, treeNode20 }); } else { treeNode21 = new System.Windows.Forms.TreeNode("E-mails/Documents", new System.Windows.Forms.TreeNode[] { treeNode7, treeNode8, treeNode14, treeNode20 }); } System.Windows.Forms.TreeNode treeNode22 = new System.Windows.Forms.TreeNode("Today"); System.Windows.Forms.TreeNode treeNode23 = new System.Windows.Forms.TreeNode("Yesterday"); System.Windows.Forms.TreeNode treeNode24 = new System.Windows.Forms.TreeNode("This Week"); System.Windows.Forms.TreeNode treeNode25 = new System.Windows.Forms.TreeNode("Last Week"); System.Windows.Forms.TreeNode treeNode26 = new System.Windows.Forms.TreeNode("Custom..."); System.Windows.Forms.TreeNode treeNode27 = new System.Windows.Forms.TreeNode("Recently Viewed", new System.Windows.Forms.TreeNode[] { treeNode22, treeNode23, treeNode24, treeNode25, treeNode26 }); System.Windows.Forms.TreeNode treeNode28 = new System.Windows.Forms.TreeNode("Assigned Files"); System.Windows.Forms.TreeNode treeNode29 = new System.Windows.Forms.TreeNode("Files on which I am a contact"); System.Windows.Forms.TreeNode treeNode30 = new System.Windows.Forms.TreeNode("Files", new System.Windows.Forms.TreeNode[] { treeNode27, treeNode28, treeNode29 }); System.Windows.Forms.TreeNode treeNode31 = new System.Windows.Forms.TreeNode("Calendar"); System.Windows.Forms.TreeNode treeNode32 = new System.Windows.Forms.TreeNode("Address Book"); System.Windows.Forms.TreeNode treeNode33 = new System.Windows.Forms.TreeNode("Shortcuts"); System.Windows.Forms.TreeNode treeNode34 = new System.Windows.Forms.TreeNode("Personal File"); System.Windows.Forms.TreeNode treeNode35 = new System.Windows.Forms.TreeNode("My Office"); treeNodeAllBFs.ForeColor = System.Drawing.Color.Blue; treeNodeAllBFs.ImageIndex = 15; treeNodeAllBFs.Name = "NodeAllBFs"; treeNodeAllBFs.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNodeAllBFs.SelectedImageIndex = 15; treeNodeAllBFs.Text = Properties.Resources.otkJustBFs; treeNode1.ForeColor = System.Drawing.Color.Blue; treeNode1.ImageIndex = 13; treeNode1.Name = "NodeUnreadMail"; treeNode1.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode1.SelectedImageIndex = 13; treeNode1.Text = Properties.Resources.otkUnreadMail; treeNode2.ForeColor = System.Drawing.Color.Blue; treeNode2.ImageIndex = 14; treeNode2.Name = "NodeAllMail"; treeNode2.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode2.SelectedImageIndex = 14; treeNode2.Text = Properties.Resources.otkAllMail; treeNode3.ForeColor = System.Drawing.Color.Blue; treeNode3.ImageIndex = 15; treeNode3.Name = "NodeBFList"; treeNode3.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode3.SelectedImageIndex = 15; treeNode3.Text = Properties.Resources.otkAllBFs; treeNode4.ForeColor = System.Drawing.Color.Blue; treeNode4.ImageIndex = 16; treeNode4.Name = "NodeCompletedItems"; treeNode4.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode4.SelectedImageIndex = 16; treeNode4.Text = Properties.Resources.otkCompletedItems; treeNode5.ImageIndex = 15; treeNode5.Name = "NodeMyItems"; treeNode5.NodeFont = new System.Drawing.Font("calibri", 10F, System.Drawing.FontStyle.Bold); treeNode5.SelectedImageIndex = 15; treeNode5.Text = Properties.Resources.otkBFList; if (NotCVBImplementation) { treeNode6.ForeColor = System.Drawing.Color.Blue; treeNode6.ImageIndex = 18; treeNode6.Name = "ndMyOfficesOpinions"; treeNode6.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode6.SelectedImageIndex = 18; treeNode6.Text = Properties.Resources.otkMyOfficesOpinions; } treeNode7.ForeColor = System.Drawing.Color.Blue; treeNode7.ImageIndex = 19; treeNode7.Name = "NodeCheckOut"; treeNode7.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode7.SelectedImageIndex = 19; treeNode7.Text = Properties.Resources.otkCheckedOutToMe; treeNode8.ForeColor = System.Drawing.Color.Blue; treeNode8.ImageIndex = 20; treeNode8.Name = "NodeMyDrafts"; treeNode8.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode8.SelectedImageIndex = 20; treeNode8.Text = Properties.Resources.otkDrafts; treeNode9.ForeColor = System.Drawing.Color.Blue; treeNode9.ImageIndex = 21; treeNode9.Name = "ndChronToday"; treeNode9.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode9.SelectedImageIndex = 21; treeNode9.Text = Properties.Resources.otkToday; treeNode10.ForeColor = System.Drawing.Color.Blue; treeNode10.ImageIndex = 21; treeNode10.Name = "ndChronYesterday"; treeNode10.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode10.SelectedImageIndex = 21; treeNode10.Text = Properties.Resources.otkYesterday; treeNode11.ForeColor = System.Drawing.Color.Blue; treeNode11.ImageIndex = 21; treeNode11.Name = "ndChronThisWeek"; treeNode11.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode11.SelectedImageIndex = 21; treeNode11.Text = Properties.Resources.otkThisWeek; treeNode12.ForeColor = System.Drawing.Color.Blue; treeNode12.ImageIndex = 21; treeNode12.Name = "ndChronLastWeek"; treeNode12.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode12.SelectedImageIndex = 21; treeNode12.Text = Properties.Resources.otkLastWeek; treeNode13.ForeColor = System.Drawing.Color.Blue; treeNode13.ImageIndex = 21; treeNode13.Name = "ndChronCustom"; treeNode13.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode13.SelectedImageIndex = 21; treeNode13.Text = Properties.Resources.otkCustom; treeNode14.ImageIndex = 22; treeNode14.Name = "NodeMyChron"; treeNode14.NodeFont = new System.Drawing.Font("calibri", 10F, System.Drawing.FontStyle.Bold); treeNode14.SelectedImageIndex = 22; treeNode14.Text = Properties.Resources.otkSentItems; treeNode15.ForeColor = System.Drawing.Color.Blue; treeNode15.ImageIndex = 21; treeNode15.Name = "ndRecToday"; treeNode15.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode15.SelectedImageIndex = 21; treeNode15.Text = Properties.Resources.otkToday; treeNode16.ForeColor = System.Drawing.Color.Blue; treeNode16.ImageIndex = 21; treeNode16.Name = "ndRecYesterday"; treeNode16.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode16.SelectedImageIndex = 21; treeNode16.Text = Properties.Resources.otkYesterday; treeNode17.ForeColor = System.Drawing.Color.Blue; treeNode17.ImageIndex = 21; treeNode17.Name = "ndRecThisWeek"; treeNode17.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode17.SelectedImageIndex = 21; treeNode17.Text = Properties.Resources.otkThisWeek; treeNode18.ForeColor = System.Drawing.Color.Blue; treeNode18.ImageIndex = 21; treeNode18.Name = "ndRecLastWeek"; treeNode18.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode18.SelectedImageIndex = 21; treeNode18.Text = Properties.Resources.otkLastWeek; treeNode19.ForeColor = System.Drawing.Color.Blue; treeNode19.ImageIndex = 21; treeNode19.Name = "ndRecCustom"; treeNode19.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode19.SelectedImageIndex = 21; treeNode19.Text = Properties.Resources.otkCustom; treeNode20.ImageIndex = 22; treeNode20.Name = "nodReceived"; treeNode20.NodeFont = new System.Drawing.Font("calibri", 10F, System.Drawing.FontStyle.Bold); treeNode20.SelectedImageIndex = 22; treeNode20.Text = Properties.Resources.otkReceivedItems; treeNode21.ImageIndex = 23; treeNode21.Name = "nodeMyDocs"; treeNode21.NodeFont = new System.Drawing.Font("calibri", 10F, System.Drawing.FontStyle.Bold); treeNode21.SelectedImageIndex = 23; treeNode21.Text = Properties.Resources.otkEmailsDocuments; treeNode22.ForeColor = System.Drawing.Color.Blue; treeNode22.ImageIndex = 21; treeNode22.Name = "ndToday"; treeNode22.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode22.SelectedImageIndex = 21; treeNode22.Text = Properties.Resources.otkToday; treeNode23.ForeColor = System.Drawing.Color.Blue; treeNode23.ImageIndex = 21; treeNode23.Name = "ndYesterday"; treeNode23.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode23.SelectedImageIndex = 21; treeNode23.Text = Properties.Resources.otkYesterday; treeNode24.ForeColor = System.Drawing.Color.Blue; treeNode24.ImageIndex = 21; treeNode24.Name = "ndThisWeek"; treeNode24.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode24.SelectedImageIndex = 21; treeNode24.Text = Properties.Resources.otkThisWeek; treeNode25.ForeColor = System.Drawing.Color.Blue; treeNode25.ImageIndex = 21; treeNode25.Name = "ndLastWeek"; treeNode25.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode25.SelectedImageIndex = 21; treeNode25.Text = Properties.Resources.otkLastWeek; treeNode26.ForeColor = System.Drawing.Color.Blue; treeNode26.ImageIndex = 21; treeNode26.Name = "ndCustom"; treeNode26.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode26.SelectedImageIndex = 21; treeNode26.Text = Properties.Resources.otkCustom; treeNode27.ImageIndex = 0; treeNode27.Name = "ndRecentFiles"; treeNode27.NodeFont = new System.Drawing.Font("calibri", 10F, System.Drawing.FontStyle.Bold); treeNode27.SelectedImageIndex = 0; treeNode27.Text = Properties.Resources.otkRecentlyViewed; treeNode28.ForeColor = System.Drawing.Color.Blue; treeNode28.ImageIndex = 24; treeNode28.Name = "ndAss"; treeNode28.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode28.SelectedImageIndex = 24; treeNode28.Text = Properties.Resources.otkAssignedFiles; treeNode29.ForeColor = System.Drawing.Color.Blue; treeNode29.ImageIndex = 24; treeNode29.Name = "ndContact"; treeNode29.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode29.SelectedImageIndex = 24; treeNode29.Text = Properties.Resources.otkContactFiles; treeNode30.ImageIndex = 0; treeNode30.Name = "NodeMyFiles"; treeNode30.NodeFont = new System.Drawing.Font("calibri", 10F, System.Drawing.FontStyle.Bold); treeNode30.SelectedImageIndex = 0; treeNode30.Text = Properties.Resources.otkFiles; treeNode31.ForeColor = System.Drawing.Color.Blue; treeNode31.ImageIndex = 17; treeNode31.Name = "ndCalendar"; treeNode31.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode31.SelectedImageIndex = 17; treeNode31.Text = Properties.Resources.otkCalendar; treeNode32.ForeColor = System.Drawing.Color.Blue; treeNode32.ImageIndex = 25; treeNode32.Name = "nodeAddressBook"; treeNode32.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode32.SelectedImageIndex = 25; treeNode32.Text = Properties.Resources.otkAddressBook; treeNode33.ForeColor = System.Drawing.Color.Blue; treeNode33.ImageIndex = 26; treeNode33.Name = "nodeMyDocShortcuts"; treeNode33.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode33.SelectedImageIndex = 26; treeNode33.Text = Properties.Resources.otkShortcuts; treeNode34.ForeColor = System.Drawing.Color.Blue; treeNode34.ImageIndex = 27; treeNode34.Name = "NodePersonalFile"; treeNode34.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode34.SelectedImageIndex = 27; treeNode34.Text = Properties.Resources.otkPersonalFile; treeNode35.ForeColor = System.Drawing.Color.Blue; treeNode35.ImageIndex = 28; treeNode35.Name = "NodeMyOffice"; treeNode35.NodeFont = new System.Drawing.Font("calibri", 8.75F); treeNode35.SelectedImageIndex = 28; treeNode35.Text = Properties.Resources.otkMyOffice; this.tvOfficerToolkit.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { treeNode5, treeNode21, treeNode30, treeNode31, treeNode32, treeNode33, treeNode34, treeNode35 }); }
private void CheckPrefs() { //Language - stored in registry, not DB if (UIHelper.GetSetting("UserLanguage") == "") { rbEng.Checked = true; UIHelper.SaveSetting("UserLanguage", "ENG"); } else { if ((UIHelper.GetSetting("UserLanguage")) == "ENG") { rbEng.Checked = true; } else { rbFre.Checked = true; } } tbBFDays.Value = prefBE.GetPref(OfficerPrefsBE.BFDaysAhead, 0); //Grid selection mode if (prefBE.GetPref(OfficerPrefsBE.GridSelectionMode, OfficerPrefsBE.vGridSelectionModeMulti) == OfficerPrefsBE.vGridSelectionModeCheckbox) { rbCheck.Checked = true; } else { rbMulti.Checked = true; } // peter Load EnableReminders if (prefBE.GetPref(OfficerPrefsBE.EnableReminders, true)) { chkReminders.Checked = true; } else { chkReminders.Checked = false; } if (prefBE.GetPref(OfficerPrefsBE.FastDataEntry, false)) { chkFastdataEntry.Checked = true; } else { chkFastdataEntry.Checked = false; } if (prefBE.GetPref(OfficerPrefsBE.BFShowNotify, false)) { chkBFNotify.Checked = true; } else { chkBFNotify.Checked = false; } //load bflist on startup if (prefBE.GetPref(OfficerPrefsBE.LoadBFListOnStartup, true)) { cbLoadBFList.Checked = true; } else { cbLoadBFList.Checked = false; } //load calendar on startup if (prefBE.GetPref(OfficerPrefsBE.LoadCalendarOnStartup, true)) { chkLoadCal.Checked = true; } else { chkLoadCal.Checked = false; } chkBFTimer.Checked = prefBE.GetPref(OfficerPrefsBE.ReadMailOnTimer, true); //auto hide toolkit if (prefBE.GetPref(OfficerPrefsBE.AutoHideOfficerToolkitOnStartup, true)) { chkAutoHideToolkit.Checked = true; } else { chkAutoHideToolkit.Checked = false; } //load personal file on startup if (prefBE.GetPref(OfficerPrefsBE.LoadPersonalFileOnStartup, true)) { chkLoadPF.Checked = true; } else { chkLoadPF.Checked = false; } //Remember Search On Selection if (prefBE.GetPref(OfficerPrefsBE.RememberSearchOnSelection, true)) { cbRememberSearchOn.Checked = true; } else { cbRememberSearchOn.Checked = false; } //OT Hide BF List if (prefBE.GetPref(OfficerPrefsBE.OfficerTKHideBF, false)) { chkOTBFList.Checked = true; } else { chkOTBFList.Checked = false; } //OT Hide Emails/Docs if (prefBE.GetPref(OfficerPrefsBE.OfficerTKHideDocs, false)) { chkOTEmailsDocs.Checked = true; } else { chkOTEmailsDocs.Checked = false; } //OT Hide Files if (prefBE.GetPref(OfficerPrefsBE.OfficerTKHideFiles, false)) { chkOTFiles.Checked = true; } else { chkOTFiles.Checked = false; } //OT Hide Address Book if (prefBE.GetPref(OfficerPrefsBE.OfficerTKHideAddBook, false)) { chkOTAddressBook.Checked = true; } else { chkOTAddressBook.Checked = false; } //OT Hide Calendar if (prefBE.GetPref(OfficerPrefsBE.OfficerTKHideCalendar, false)) { chkOTCalendar.Checked = true; } else { chkOTCalendar.Checked = false; } //OT Hide Personal File if (prefBE.GetPref(OfficerPrefsBE.OfficerTKHidePersonalFile, false)) { chkOTPersonalFile.Checked = true; } else { chkOTPersonalFile.Checked = false; } //OT Hide if (prefBE.GetPref(OfficerPrefsBE.OfficerTKHideMyOffice, false)) { chkOTOfficeFile.Checked = true; } else { chkOTOfficeFile.Checked = false; } //Receive LawMate in Outlook //if (myAtmng.OfficerLoggedOn.IsMail) // chckReceiveLawMailInOutlook.Checked = false; //else // chckReceiveLawMailInOutlook.Checked = true; //Auto Creation of Timeslip for Every Activity if (prefBE.GetPref(OfficerPrefsBE.TimeslipForEveryActivity, false)) { chkAutoTimeslip.Checked = true; } else { chkAutoTimeslip.Checked = false; } //Create REVISE DOC activity when checking in a document if (prefBE.GetPref(OfficerPrefsBE.ReviseDocOnDocCheckIn, false)) { chkDocCheckInReviseDocAct.Checked = true; } else { chkDocCheckInReviseDocAct.Checked = false; } //Always Display Draft Doc Message if (prefBE.GetPref(OfficerPrefsBE.AlwaysDisplayDraftDocMessage, true)) { chkAlwaysShowDraftMessage.Checked = true; } else { chkAlwaysShowDraftMessage.Checked = false; } if (prefBE.GetPref(OfficerPrefsBE.PromptMetaData, true)) { chkMeta.Checked = true; } else { chkMeta.Checked = false; } //Prompt on AppClose if (prefBE.GetPref(OfficerPrefsBE.PromptOnClose, true)) { chkConfirmOnClose.Checked = true; } else { chkConfirmOnClose.Checked = false; } //Check Out Of Office if (myAtmng.GetSetting(AppBoolSetting.useOutOfOfficeFunctionality)) { if (officerRow.OutOfOffice) { if (officerRow.OutOfOfficeEndDate.DateTime < DateTime.Now) { chkOutOfOffice.Checked = false; } else { chkOutOfOffice.Checked = officerRow.OutOfOffice; } } } else { chkOutOfOffice.Checked = false; uiGroupBox12.Text = Properties.Resources.OutOfOfficeDisabledMessage; uiGroupBox12.Enabled = false; } //chkOutOfOffice.Checked = officerRow.OutOfOffice; calEditMode = true; if (chkOutOfOffice.Checked) { startDateCalendarCombo.Value = officerRow.OutOfOfficeStartDateLocal.AddHours(-officerRow.OutOfOfficeStartDateLocal.Hour); startDateCalendarCombo.Value = startDateCalendarCombo.Value.AddMinutes(-officerRow.OutOfOfficeStartDateLocal.Minute); startTimeCalendarCombo.Value = officerRow.OutOfOfficeStartDateLocal; endDateCalendarCombo.Value = officerRow.OutOfOfficeEndDateLocal.AddHours(-officerRow.OutOfOfficeEndDateLocal.Hour); endDateCalendarCombo.Value = endDateCalendarCombo.Value.AddMinutes(-officerRow.OutOfOfficeEndDateLocal.Minute); endTimeCalendarCombo.Value = officerRow.OutOfOfficeEndDateLocal; } else { startTimeCalendarCombo.Value = startTimeCalendarCombo.Value.AddHours(DateTime.Now.Hour); endTimeCalendarCombo.Value = endTimeCalendarCombo.Value.AddHours(DateTime.Now.Hour + 1); } calEditMode = false; EnableDates(); SearchOnOptions(); tbHitTimer.Value = prefBE.GetPref(OfficerPrefsBE.HitCountTimerDelay, 50); if (prefBE.GetPref(OfficerPrefsBE.RetrieveHitCount, true)) { cbExecuteHitCount.Checked = true; } else { cbExecuteHitCount.Checked = false; } cbHHBackground.SelectedColor = Color.FromArgb(prefBE.GetPref(OfficerPrefsBE.hhBackground, Color.Yellow.ToArgb())); cbHHForeground.SelectedColor = Color.FromArgb(prefBE.GetPref(OfficerPrefsBE.hhForeground, Color.Red.ToArgb())); }