コード例 #1
0
        public ActionResult GenericIndicator(int indicatorId)
        {
            var model = new IndicatorEdit {
                SelectedIndicatorId = indicatorId
            };
            IList <IndicatorMetadataTextProperty> properties = _reader.GetIndicatorMetadataTextProperties();

            model.TextValues = _reader.GetIndicatorTextValues(indicatorId, properties, null).ToList();
            return(View("IndicatorEdit", model));
        }
コード例 #2
0
        public ActionResult BrowseIndicatorDataFullPage(int indicatorId)
        {
            IList <IndicatorMetadataTextProperty> properties = _reader.GetIndicatorMetadataTextProperties();
            var values = _reader.GetIndicatorTextValues(indicatorId, properties, null).ToList();

            return(View(new BrowseIndicatorDataFullPageViewModel
            {
                IndicatorId = indicatorId,
                IndicatorName = values.First(x => x.IndicatorMetadataTextProperty.PropertyId == IndicatorTextMetadataPropertyIds.Name).ValueGeneric
            }));
        }