Ejemplo n.º 1
0
        public IndexViewData(Person currentPerson, Models.NeptunePage neptunePageHomePage,
                             Models.NeptunePage neptunePageAdditionalInfo, Models.NeptunePage neptunePageMapInfo,
                             List <Models.NeptuneHomePageImage> neptuneHomePageImages, JurisdictionsMapViewData jurisdictionsMapViewData,
                             JurisdictionsMapInitJson jurisdictionsMapInitJson, LaunchPadViewData launchPadViewData) : base(currentPerson, neptunePageHomePage, true, NeptuneArea.OCStormwaterTools)
        {
            PageTitle = "Orange County Stormwater Tools";

            CustomHomePageTextViewData = new ViewPageContentViewData(neptunePageHomePage, currentPerson);
            CustomHomePageAdditionalInfoTextViewData = new ViewPageContentViewData(neptunePageAdditionalInfo, currentPerson);
            CustomHomePageMapTextViewData            = new ViewPageContentViewData(neptunePageMapInfo, currentPerson);
            JurisdictionsMapViewData      = jurisdictionsMapViewData;
            JurisdictionsMapInitJson      = jurisdictionsMapInitJson;
            NeptuneHomePageCarouselImages = neptuneHomePageImages;
            LaunchPadViewData             = launchPadViewData;
        }
Ejemplo n.º 2
0
        public ViewResult Index()
        {
            var layerGeoJsons = HttpRequestStorage.DatabaseEntities.StormwaterJurisdictions.GetBoundaryLayerGeoJson(true)
                                .Where(x => x.LayerInitialVisibility == LayerInitialVisibility.Show)
                                .ToList();

            var projectLocationsMapInitJson = new JurisdictionsMapInitJson("JurisdictionsMap")
            {
                AllowFullScreen = false,
                Layers          = layerGeoJsons
            };
            var projectLocationsMapViewData = new JurisdictionsMapViewData(projectLocationsMapInitJson.MapDivID);

            var           neptunePage = NeptunePage.GetNeptunePageByPageType(NeptunePageType.ModelingHomePage);
            IndexViewData viewData    = new IndexViewData(CurrentPerson, neptunePage, projectLocationsMapViewData, projectLocationsMapInitJson);

            return(RazorView <Index, IndexViewData>(viewData));
        }
Ejemplo n.º 3
0
        public ViewResult Index()
        {
            var neptunePageTypeHomePage       = NeptunePageType.HomePage;
            var neptunePageByPageTypeHomePage = NeptunePage.GetNeptunePageByPageType(neptunePageTypeHomePage);

            var neptunePageTypeHomePageAdditionalInfo       = NeptunePageType.HomeAdditionalInfo;
            var neptunePageByPageTypeHomePageAdditionalInfo = NeptunePage.GetNeptunePageByPageType(neptunePageTypeHomePageAdditionalInfo);

            var neptunePageTypeHomePageMapInfo       = NeptunePageType.HomeMapInfo;
            var neptunePageByPageTypeHomePageMapInfo = NeptunePage.GetNeptunePageByPageType(neptunePageTypeHomePageMapInfo);

            var neptuneHomePageImages = HttpRequestStorage.DatabaseEntities.NeptuneHomePageImages.ToList().OrderBy(x => x.SortOrder).ToList();

            // map stuff

            var layerGeoJsons = HttpRequestStorage.DatabaseEntities.StormwaterJurisdictions.GetBoundaryLayerGeoJson(true)
                                .Where(x => x.LayerInitialVisibility == LayerInitialVisibility.Show)
                                .ToList();

            var projectLocationsMapInitJson = new JurisdictionsMapInitJson("JurisdictionsMap")
            {
                AllowFullScreen = false,
                Layers          = layerGeoJsons
            };
            var projectLocationsMapViewData = new JurisdictionsMapViewData(projectLocationsMapInitJson.MapDivID);

            var launchPadNeptunePage        = NeptunePage.GetNeptunePageByPageType(NeptunePageType.LaunchPad);
            var numberOfBmpTypes            = HttpRequestStorage.DatabaseEntities.TreatmentBMPTypes.Count();
            var managerDashboardDescription = GetManagerDashboardDescription();
            var launchPadViewData           = new LaunchPadViewData(CurrentPerson, launchPadNeptunePage, numberOfBmpTypes, managerDashboardDescription);

            var viewData = new IndexViewData(CurrentPerson, neptunePageByPageTypeHomePage,
                                             neptunePageByPageTypeHomePageAdditionalInfo, neptunePageByPageTypeHomePageMapInfo,
                                             neptuneHomePageImages, projectLocationsMapViewData, projectLocationsMapInitJson,
                                             launchPadViewData);

            return(RazorView <Index, IndexViewData>(viewData));
        }
Ejemplo n.º 4
0
 public IndexViewData(Person currentPerson, NeptunePage neptunePage, JurisdictionsMapViewData jurisdictionsMapViewData, JurisdictionsMapInitJson jurisdictionsMapInitJson) : this(currentPerson, neptunePage)
 {
     JurisdictionsMapViewData = jurisdictionsMapViewData;
     JurisdictionsMapInitJson = jurisdictionsMapInitJson;
 }