コード例 #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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }
コード例 #4
0
ファイル: Reports.cs プロジェクト: wuyb13526487308/src
 public static IEnumerable <SelectListItem> GetFormattingRuleStyleItems(int defaultValue)
 {
     return(SelectListItemHelper.Generate(FormattingRuleStyles, defaultValue));
 }