Exemplo n.º 1
0
        public InitiateOVTAViewData(Person currentPerson,
                                    Models.OnlandVisualTrashAssessment ovta, List <StormwaterJurisdiction> jurisdictions,
                                    SelectOVTAAreaMapInitJson mapInitJson,
                                    IEnumerable <Models.OnlandVisualTrashAssessmentArea> onlandVisualTrashAssessmentAreas,
                                    StormwaterJurisdiction defaultJurisdiction, string geoServerUrl)
            : base(currentPerson, Models.OVTASection.InitiateOVTA, ovta)
        {
            Jurisdictions       = jurisdictions;
            MapInitJson         = mapInitJson;
            DefaultJurisdiction = defaultJurisdiction;
            var useDefaultJurisdiction = defaultJurisdiction != null;

            ViewDataForAngular = new ViewDataForAngularClass(mapInitJson, onlandVisualTrashAssessmentAreas, useDefaultJurisdiction, jurisdictions, geoServerUrl);
        }
Exemplo n.º 2
0
 public ViewDataForAngularClass(SelectOVTAAreaMapInitJson mapInitJson,
                                IEnumerable <Models.OnlandVisualTrashAssessmentArea> onlandVisualTrashAssessmentAreas,
                                bool useDefaultJurisdiction,
                                List <StormwaterJurisdiction> jurisdictions, string geoServerUrl)
 {
     MapInitJson                      = mapInitJson;
     UseDefaultJurisdiction           = useDefaultJurisdiction;
     GeoServerUrl                     = geoServerUrl;
     OnlandVisualTrashAssessmentAreas = onlandVisualTrashAssessmentAreas.Select(x =>
                                                                                new OnlandVisualTrashAssessmentAreaSimple
     {
         OnlandVisualTrashAssessmentAreaName = x.OnlandVisualTrashAssessmentAreaName,
         OnlandVisualTrashAssessmentAreaID   = x.OnlandVisualTrashAssessmentAreaID,
         StormwaterJurisdictionID            = x.StormwaterJurisdictionID
     });
     StormwaterJurisdictions = jurisdictions.Select(x => new StormwaterJurisdictionSimple(x)).ToList();
 }