Пример #1
0
        public FinalizeOVTAViewData(Person currentPerson,
                                    Models.OnlandVisualTrashAssessment ovta, OVTASummaryMapInitJson ovtaSummaryMapInitJson, IEnumerable <SelectListItem> scores, string geoServerUrl)
            : base(currentPerson, Models.OVTASection.FinalizeOVTA, ovta)
        {
            Scores                    = scores;
            ConductedByPerson         = ovta.CreatedByPerson;
            Jurisdiction              = ovta.StormwaterJurisdiction;
            CreatedDate               = ovta.CreatedDate.ToShortDateString();
            IsProgressAssessment      = ovta.IsProgressAssessment;
            AssessmentAreaDescription = ovta.OnlandVisualTrashAssessmentArea?.AssessmentAreaDescription ??
                                        ovta.DraftAreaDescription;
            ScoreDescriptionsUrl =
                SitkaRoute <OnlandVisualTrashAssessmentController> .BuildUrlFromExpression(x => x.ScoreDescriptions());

            PreliminarySourceIdentificationTypeOthers = PreliminarySourceIdentificationType.All.Where(x => x.IsOther());

            TrashAssessmentSummaryMapViewData = new TrashAssessmentSummaryMapViewData(ovtaSummaryMapInitJson, ovta.OnlandVisualTrashAssessmentObservations, geoServerUrl);
        }
 public TrashAssessmentSummaryMapViewData(OVTASummaryMapInitJson ovtaSummaryMapInitJson, IEnumerable <OnlandVisualTrashAssessmentObservation> onlandVisualTrashAssessmentObservations, string geoServerUrl)
 {
     OVTASummaryMapInitJson = ovtaSummaryMapInitJson;
     OnlandVisualTrashAssessmentObservations = onlandVisualTrashAssessmentObservations;
     GeoServerUrl = geoServerUrl;
 }