public ERSearchList GetMultiSiteDepartmentsList(string selectedSiteIDs, string selectedProgramIDs) { ERSearchList departmentlist = new ERSearchList(); departmentlist.DepartmentLists = SelectMultiSiteDepartmentList(selectedSiteIDs, selectedProgramIDs); return(departmentlist); }
public ERSearchList GetQuartersList() { ERSearchList quarterslist = new ERSearchList(); quarterslist.QuartersLists = SelectQuartersList(); return(quarterslist); }
public ERSearchList GetUHSTracersList(string selectedSiteIDs, string selectedProgramIDs) { ERSearchList tracerslist = new ERSearchList(); tracerslist.TracersLists = SelectUHSTracerList(selectedSiteIDs, selectedProgramIDs); return(tracerslist); }
public ERSearchList GetMultiSiteEps(string selectedProgramIDs, string selectedChapterIDs, string selectedStandards) { ERSearchList epslist = new ERSearchList(); epslist.TracersEPs = SelectMultiSiteEPs((int)AppSession.CycleID, selectedProgramIDs, selectedChapterIDs, selectedStandards); return(epslist); }
public ERSearchList GetMultiSiteStandards(string selectedProgramIDs, string selectedChapterIDs) { ERSearchList standardslist = new ERSearchList(); standardslist.TracersStandards = SelectMultiSiteStandards((int)AppSession.CycleID, selectedProgramIDs, selectedChapterIDs); return(standardslist); }
// GET: TracerER/ERTracerDashboard public ActionResult Index(int id, int?actionType) { try { if (!AppSession.HasValidSession) { return(RedirectToAction("IndexER", "Transfer", new { area = "" })); } HelperClasses.SetReportOrScheduleID(id, (int)ReportsListEnum.ERTracerDashboard); SearchInputService reportservice = new SearchInputService(); if (AppSession.ReportScheduleID > 0) { //Load the saved parameters var oSaveAndScheduleService = new SaveAndScheduleService(); var savedParameters = oSaveAndScheduleService.LoadUserSchedule(AppSession.ReportScheduleID); TempData["SavedParameters"] = savedParameters; //This tempdata will be used by the Ajax call to avoid loading the saved parameters again from DB TempData["ActionType"] = actionType; //Show/Hide Save to my reports button ViewBag.HideSaveReport = HelperClasses.HideSaveToMyReports(AppSession.RoleID, savedParameters.UserID, AppSession.UserID, actionType); } ERSearchList list = new ERSearchList(); list = reportservice.GetERComplianceByTracer(WebConstants.ERTRACER_REPORT_TITLE_Tracer_Dashboard_Report); return(View(list)); } catch (Exception ex) { ExceptionLog exceptionLog = new ExceptionLog { ExceptionText = "ER Reports: " + ex.Message, PageName = "ERTracerDashboard", MethodName = "Index", UserID = Convert.ToInt32(AppSession.UserID), SiteId = Convert.ToInt32(AppSession.SelectedSiteId), TransSQL = "", HttpReferrer = null }; exceptionService.LogException(exceptionLog); return(RedirectToAction("Error", "Transfer")); } }
// // GET: /TracersByTJCStandard/ public ActionResult Index(int id, int?actionType) { try { if (!AppSession.HasValidSession) { return(RedirectToAction("IndexER", "Transfer", new { area = "" })); } HelperClasses.SetReportOrScheduleID(id, (int)ReportsListEnum.TracersByTJCStandard); SearchInputService reportservice = new SearchInputService(); if (AppSession.ReportScheduleID > 0) { //Load the saved parameters var oSaveAndScheduleService = new SaveAndScheduleService(); var savedParameters = oSaveAndScheduleService.LoadUserSchedule(AppSession.ReportScheduleID); TempData["SavedParameters"] = savedParameters; //This tempdata will be used by the Ajax call to avoid loading the saved parameters again from DB TempData["ActionType"] = actionType; //Show/Hide Save to my reports button ViewBag.HideSaveReport = HelperClasses.HideSaveToMyReports(AppSession.RoleID, savedParameters.UserID, AppSession.UserID, actionType); return(View(reportservice.GetSavedParameters_ByTJCStandard(AppSession.ReportScheduleID, savedParameters, WebConstants.ERTRACER_REPORT_TITLE_Tracer_By_TJC_Standard))); } else { ERSearchList list = new ERSearchList(); list = reportservice.GetSearchLists_ByTJCStandard(WebConstants.ERTRACER_REPORT_TITLE_Tracer_By_TJC_Standard); List <TracersStandards> standardList = new List <TracersStandards>(); standardList.Add(new TracersStandards { TracerStandardID = Convert.ToInt32(-1), Code = "All" }); list.TracersStandards = standardList; List <TracersEP> epList = new List <TracersEP>(); epList.Add(new TracersEP { EPTextID = Convert.ToInt32(-1), StandardLabelAndEPLabel = "All", }); list.TracersEPs = epList; return(View(list)); } } catch (Exception ex) { ExceptionLog exceptionLog = new ExceptionLog { ExceptionText = "ER Reports: " + ex.Message, PageName = "TracersByTJCStandard", MethodName = "Index", UserID = Convert.ToInt32(AppSession.UserID), SiteId = Convert.ToInt32(AppSession.SelectedSiteId), TransSQL = "", HttpReferrer = null }; exceptionService.LogException(exceptionLog); return(RedirectToAction("Error", "Transfer")); } }