Example #1
0
        public PromptInfo GetPromptInfo(
            GlobalPromptBaseReportInfo baseReportInfo,
            ReportParameter searchParameter,
            ReportParameter resultParameter)
        {
            _promptReportValidator.Validate(baseReportInfo.Name, searchParameter, resultParameter);

            var name       = baseReportInfo.Name;
            var label      = baseReportInfo.Label;
            var promptType = _promptTypeProvider.GetPromptType(baseReportInfo.SelectionType);

            var defaultValues = _defaultValueProvider.Get(
                name,
                searchParameter.Name,
                baseReportInfo.ValueParameterDefaults,
                baseReportInfo.LabelParameterDefaults);

            var promptLevel = _promptLevelProvider.GetPromptLevel(searchParameter.Name, defaultValues);

            return(new PromptInfo(name, label, promptType, promptLevel, defaultValues));
        }