/// <summary>
        /// Renders report settings page.
        /// </summary>
        /// <returns></returns>
        public ActionResult Report()
        {
            var viewManager = new ReportSettingsViewManager(GetCurrentUser(), SessionHandler.MySettings);
            PresentationReportViewModel model = viewManager.CreatePresentationReportViewModel();

            return(View(model));
        }
示例#2
0
 public PartialViewResult ReportSummary()
 {
     try
     {
         ReportSettingsViewManager   viewManager = new ReportSettingsViewManager(GetCurrentUser(), SessionHandler.MySettings);
         PresentationReportViewModel model       = viewManager.CreatePresentationReportViewModel();
         return(PartialView("ReportSummary", model));
     }
     catch (Exception ex)
     {
         return(PartialView("PartialViewError", ex));
     }
 }
示例#3
0
        public JsonNetResult UpdatePresentationReportSettings(string data)
        {
            JsonModel jsonModel;

            try
            {
                var javascriptSerializer = new JavaScriptSerializer();
                PresentationReportViewModel reportSettingsModel = javascriptSerializer.Deserialize <PresentationReportViewModel>(data);
                var viewManager = new ReportSettingsViewManager(GetCurrentUser(), SessionHandler.MySettings);
                viewManager.UpdatePresentationReportSetting(reportSettingsModel);
                jsonModel = JsonModel.CreateSuccess(string.Empty);
            }
            catch (Exception ex)
            {
                jsonModel = JsonModel.CreateFailure(ex.Message);
            }

            return(new JsonNetResult(jsonModel));
        }