Beispiel #1
0
        public ActionResult SideBySideReport([Bind(Prefix = "parameter_")][ModelBinder(typeof(ParameterDictionaryBinder))] Dictionary <string, string> parameter)
        {
            var model = ReportDemoHelper.CreateModel("SideBySide", parameter);

            ViewData["parameter_leftSideParameter"]  = SelectListItemHelper.GetSideBySideItems((int)model.Report.Parameters["leftSideParameter"].Value);
            ViewData["parameter_rightSideParameter"] = SelectListItemHelper.GetSideBySideItems((int)model.Report.Parameters["rightSideParameter"].Value);
            return(DemoView("SideBySideReport", "SampleViewer", model));
        }
        public ActionResult FallCatalogReport([Bind(Prefix = "report_")][ModelBinder(typeof(ParameterDictionaryBinder))] Dictionary <string, string> parameter)
        {
            var model = ReportDemoHelper.CreateModel("FallCatalog", parameter);

            ViewData["report_parameterSortGroupsType"]  = SelectListItemHelper.Generate((SortGroupsType)model.Report.Parameters["parameterSortGroupsType"].Value);
            ViewData["report_parameterSortGroupsOrder"] = SelectListItemHelper.Generate((XRColumnSortOrder)model.Report.Parameters["parameterSortGroupsOrder"].Value);
            return(DemoView("FallCatalogReport", "SampleViewer", model));
        }
        public ActionResult FormattingRulesReport([ModelBinder(typeof(ParameterDictionaryBinder))] Dictionary <string, string> parameter)
        {
            var model = ReportDemoHelper.CreateModel("FormattingRules", parameter);

            ViewData["parameterConditionIndexParameter"] = SelectListItemHelper.GetFormattingRuleConditionItems((int)model.Report.Parameters["ConditionIndexParameter"].Value);
            ViewData["parameterStyleIndexParameter"]     = SelectListItemHelper.GetFormattingRuleStyleItems((int)model.Report.Parameters["StyleIndexParameter"].Value);
            return(DemoView("FormattingRulesReport", "SampleViewer", model));
        }
Beispiel #4
0
 public static IEnumerable <SelectListItem> GetFormattingRuleStyleItems(int defaultValue)
 {
     return(SelectListItemHelper.Generate(FormattingRuleStyles, defaultValue));
 }