public ViewResult StyleGuide() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.Training); var viewData = new StyleGuideViewData(CurrentPerson, firmaPage); return(RazorView <StyleGuide, StyleGuideViewData>(viewData)); }
public ViewResult JsonApiLandingPage() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.TagList); var viewData = new JsonApiLandingPageViewData(CurrentPerson, firmaPage); return(RazorView <JsonApiLandingPage, JsonApiLandingPageViewData>(viewData)); }
public ViewResult JobIndex() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.TagList); var viewData = new JobIndexViewData(CurrentPerson, firmaPage); return(RazorView <JobIndex, JobIndexViewData>(viewData)); }
private ViewResult IndexImpl() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.ProjectTypeList); var viewData = new IndexViewData(CurrentPerson, firmaPage); return(RazorView <Index, IndexViewData>(viewData)); }
public ViewResult Index() { var firmaPageTypeHomePage = FirmaPageType.ToType(FirmaPageTypeEnum.HomePage); var firmaPageByPageTypeHomePage = FirmaPage.GetFirmaPageByPageType(firmaPageTypeHomePage); var firmaPageTypeHomePageAdditionalInfo = FirmaPageType.ToType(FirmaPageTypeEnum.HomeAdditionalInfo); var firmaPageByPageTypeHomePageAdditionalInfo = FirmaPage.GetFirmaPageByPageType(firmaPageTypeHomePageAdditionalInfo); var firmaPageTypeHomePageMapInfo = FirmaPageType.ToType(FirmaPageTypeEnum.HomeMapInfo); var firmaPageByPageTypeHomePageMapInfo = FirmaPage.GetFirmaPageByPageType(firmaPageTypeHomePageMapInfo); var firmaHomePageImages = HttpRequestStorage.DatabaseEntities.FirmaHomePageImages.ToList().OrderBy(x => x.SortOrder).ToList(); var currentPersonCanViewProposals = CurrentPerson.CanViewProposals; var projectsToShow = ProjectMapCustomization.ProjectsForMap(CurrentPerson); var projectMapCustomization = ProjectMapCustomization.CreateDefaultCustomization(projectsToShow, currentPersonCanViewProposals); var projectLocationsLayerGeoJson = new LayerGeoJson($"{FieldDefinition.ProjectLocation.GetFieldDefinitionLabelPluralized()}", Project.MappedPointsToGeoJsonFeatureCollection(projectsToShow, false, true), "red", 1, LayerInitialVisibility.Show); var projectLocationsMapInitJson = new ProjectLocationsMapInitJson(projectLocationsLayerGeoJson, projectMapCustomization, "ProjectLocationsMap") { AllowFullScreen = false, Layers = HttpRequestStorage.DatabaseEntities.Organizations.GetBoundaryLayerGeoJson().Where(x => x.LayerInitialVisibility == LayerInitialVisibility.Show).ToList() }; var projectLocationsMapViewData = new ProjectLocationsMapViewData(projectLocationsMapInitJson.MapDivID, ProjectColorByType.ProjectStage.DisplayName, MultiTenantHelpers.GetTopLevelTaxonomyTiers(), currentPersonCanViewProposals); var featuredProjectsViewData = new FeaturedProjectsViewData(HttpRequestStorage.DatabaseEntities.Projects.Where(x => x.IsFeatured).ToList().GetActiveProjectsVisibleToUser(CurrentPerson)); var viewData = new IndexViewData(CurrentPerson, firmaPageByPageTypeHomePage, firmaPageByPageTypeHomePageAdditionalInfo, firmaPageByPageTypeHomePageMapInfo, featuredProjectsViewData, projectLocationsMapViewData, projectLocationsMapInitJson, firmaHomePageImages); return(RazorView <Index, IndexViewData>(viewData)); }
public ViewResult Index() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.OrganizationsList); var viewData = new IndexViewData(CurrentPerson, firmaPage); return(RazorView <Index, IndexViewData>(viewData)); }
public ViewResult Index() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.DNRCostShareTreatments); var viewData = new IndexViewData(CurrentPerson, firmaPage); return(RazorView <Index, IndexViewData>(viewData)); }
public ViewResult Index() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.FullGrantList); var viewData = new GrantIndexViewData(CurrentPerson, firmaPage); return(RazorView <GrantIndex, GrantIndexViewData>(viewData)); }
public ViewResult Index() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.ProgramsList); var viewData = new Views.Program.IndexViewData(CurrentPerson, firmaPage); return(RazorView <Index, IndexViewData>(viewData)); }
public ViewResult Manage() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.ManageProjectCustomAttributeTypesList); var viewData = new ManageViewData(CurrentPerson, firmaPage); return(RazorView <Manage, ManageViewData>(viewData)); }
private PartialViewResult ViewEditInDialog(EditViewModel viewModel, FirmaPage firmaPage) { var ckEditorToolbar = firmaPage.FirmaPageType.FirmaPageRenderType == FirmaPageRenderType.PageContent ? CkEditorExtension.CkEditorToolbar.AllOnOneRowNoMaximize : CkEditorExtension.CkEditorToolbar.All; var viewData = new EditViewData(ckEditorToolbar, SitkaRoute <FileResourceController> .BuildUrlFromExpression(x => x.CkEditorUploadFileResource(firmaPage))); return(RazorPartialView <Edit, EditViewData, EditViewModel>(viewData, viewModel)); }
public ViewResult Index() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.FullInvoiceList); var invoices = HttpRequestStorage.DatabaseEntities.Invoices.ToList(); var viewData = new InvoiceIndexViewData(CurrentPerson, firmaPage, invoices.Any(x => x.InvoiceFileResourceID.HasValue)); return(RazorView <InvoiceIndex, InvoiceIndexViewData>(viewData)); }
public ViewResult Training() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.Training); List <Models.TrainingVideo> trainingVideos = HttpRequestStorage.DatabaseEntities.TrainingVideos.ToList(); var viewData = new TrainingVideoViewData(CurrentPerson, firmaPage, trainingVideos); return(RazorView <Views.Home.TrainingVideo, TrainingVideoViewData>(viewData)); }
public ViewResult Index() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.FullAgreementList); var agreements = HttpRequestStorage.DatabaseEntities.Agreements.ToList(); var viewData = new AgreementIndexViewData(CurrentPerson, firmaPage, agreements.Any(x => x.AgreementFileResourceID.HasValue)); return(RazorView <AgreementIndex, AgreementIndexViewData>(viewData)); }
public ViewResult Index() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.ProjectStewardOrganizationList); var organizations = HttpRequestStorage.DatabaseEntities.Organizations.ToList().Where(x => x.CanBeAnApprovingOrganization()).OrderBy(x => x.DisplayName) .ToList(); var viewData = new IndexViewData(CurrentPerson, organizations, firmaPage); return(RazorView <Index, IndexViewData>(viewData)); }
public ViewResult Taxonomy() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.Taxonomy); var topLevelTaxonomyTierAsFancyTreeNodes = MultiTenantHelpers.GetTaxonomyLevel() .GetTaxonomyTiers().SortByOrderThenName().Select(x => x.ToFancyTreeNode(CurrentPerson)) .ToList(); var viewData = new TaxonomyViewData(CurrentPerson, firmaPage, topLevelTaxonomyTierAsFancyTreeNodes); return(RazorView <Taxonomy, TaxonomyViewData>(viewData)); }
public ViewResult ViewPageContent(FirmaPageTypeEnum firmaPageTypeEnum) { var firmaPageType = FirmaPageType.ToType(firmaPageTypeEnum); var firmaPage = FirmaPage.GetFirmaPageByPageType(firmaPageType); var hasPermission = new FirmaPageManageFeature().HasPermission(CurrentPerson, firmaPage).HasPermission; var viewData = new DisplayPageContentViewData(CurrentPerson, firmaPage, hasPermission); return(RazorView <DisplayPageContent, DisplayPageContentViewData>(viewData)); }
private PartialViewResult ViewEdit(EditObligationRequestViewModel viewModel, FirmaPage firmaPage) { var projectStatusFirmaPage = firmaPage; var allAgreements = HttpRequestStorage.DatabaseEntities.Agreements.ToList(); var allContractTypes = HttpRequestStorage.DatabaseEntities.ContractTypes.ToList(); var allRequestStatuses = ObligationRequestStatus.All; var allFundingPriorities = ObligationRequestFundingPriority.All; var viewData = new EditObligationRequestViewData(projectStatusFirmaPage, CurrentFirmaSession, allAgreements, allContractTypes, allRequestStatuses, allFundingPriorities); return(RazorPartialView <EditObligationRequest, EditObligationRequestViewData, EditObligationRequestViewModel>(viewData, viewModel)); }
private PartialViewResult ViewEdit(EditViewModel viewModel, ProjectCustomAttributeType projectCustomAttributeType) { var instructionsFirmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.ManageProjectCustomAttributeTypeInstructions); var submitUrl = ModelObjectHelpers.IsRealPrimaryKeyValue(viewModel.ProjectCustomAttributeTypeID) ? SitkaRoute <ProjectCustomAttributeTypeController> .BuildUrlFromExpression(x => x.Edit(viewModel.ProjectCustomAttributeTypeID)) : SitkaRoute <ProjectCustomAttributeTypeController> .BuildUrlFromExpression(x => x.New()); var viewData = new EditViewData(CurrentPerson, MeasurementUnitType.All, ProjectCustomAttributeDataType.All, submitUrl, instructionsFirmaPage, projectCustomAttributeType); return(RazorPartialView <Edit, EditViewData, EditViewModel>(viewData, viewModel)); }
public ViewResult Index() { var layerGeoJsons = new List <LayerGeoJson> { DNRUplandRegion.GetRegionWmsLayerGeoJson("#59ACFF", 0.2m, LayerInitialVisibility.Show) }; var mapInitJson = new MapInitJson("regionIndex", 10, layerGeoJsons, BoundingBox.MakeNewDefaultBoundingBox()); var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.RegionsList); var viewData = new IndexViewData(CurrentPerson, mapInitJson, firmaPage); return(RazorView <Index, IndexViewData>(viewData)); }
public ViewResult Index() { var layerGeoJsons = new List <LayerGeoJson>(); layerGeoJsons = new List <LayerGeoJson> { PriorityLandscape.GetPriorityLandscapeWmsLayerGeoJson("#59ACFF", 0.2m, LayerInitialVisibility.Show), MapInitJson.GetAllDetailedProjectLocations(), MapInitJson.GetAllProjectTreatments() }; var mapInitJson = new MapInitJson("priorityLandscapeIndex", 10, layerGeoJsons, BoundingBox.MakeNewDefaultBoundingBox()); var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.PriorityLandscapesList); var viewData = new IndexViewData(CurrentPerson, mapInitJson, firmaPage); return(RazorView <Index, IndexViewData>(viewData)); }
private ViewResult ViewManageExcelUploadsAndEtl_Impl() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.UploadLoaTabularDataExcel); var loaUploadFormID = GenerateUploadLoaFileUploadFormId(); var newLoaNortheastExcelFileUpload = SitkaRoute <ExcelUploadController> .BuildUrlFromExpression(x => x.ImportLoaNortheastExcelFile()); var newLoaSoutheastExcelFileUpload = SitkaRoute <ExcelUploadController> .BuildUrlFromExpression(x => x.ImportLoaSoutheastExcelFile()); var doPublishingProcessingPostUrl = SitkaRoute <ExcelUploadController> .BuildUrlFromExpression(x => x.DoPublishingProcessing(null)); var listOfTabularDataImports = HttpRequestStorage.DatabaseEntities.TabularDataImports.ToList(); var viewData = new ManageExcelUploadsAndEtlViewData(CurrentPerson, firmaPage, newLoaNortheastExcelFileUpload, newLoaSoutheastExcelFileUpload, doPublishingProcessingPostUrl, loaUploadFormID, listOfTabularDataImports); var viewModel = new ManageExcelUploadsAndEtlViewModel(); return(RazorView <ManageExcelUploadsAndEtl, ManageExcelUploadsAndEtlViewData, ManageExcelUploadsAndEtlViewModel>(viewData, viewModel)); }
private PartialViewResult ViewEditCostAuthorityObligationRequest(CostAuthorityObligationRequest costAuthorityObligationRequest, EditCostAuthorityObligationRequestViewModel viewModel, FirmaPage firmaPage) { var projectStatusFirmaPage = firmaPage; var allOrganizations = HttpRequestStorage.DatabaseEntities.Organizations.ToList(); var allPeople = HttpRequestStorage.DatabaseEntities.People.ToList(); var allBudgetObjectCodes = HttpRequestStorage.DatabaseEntities.BudgetObjectCodes.ToList(); var viewData = new EditCostAuthorityObligationRequestViewData(projectStatusFirmaPage, CurrentFirmaSession, costAuthorityObligationRequest.ObligationRequest, allOrganizations, allPeople, allBudgetObjectCodes); return(RazorPartialView <EditCostAuthorityObligationRequest, EditCostAuthorityObligationRequestViewData, EditCostAuthorityObligationRequestViewModel>(viewData, viewModel)); }
public ViewResult ProjectMap() { List <int> filterValues; ProjectLocationFilterType projectLocationFilterType; ProjectColorByType colorByValue; var currentPersonCanViewProposals = CurrentPerson.CanViewProposals; if (!String.IsNullOrEmpty(Request.QueryString[ProjectMapCustomization.FilterByQueryStringParameter])) { projectLocationFilterType = ProjectLocationFilterType.ToType(Request .QueryString[ProjectMapCustomization.FilterByQueryStringParameter] .ParseAsEnum <ProjectLocationFilterTypeEnum>()); } else { projectLocationFilterType = ProjectMapCustomization.DefaultLocationFilterType; } if (!String.IsNullOrEmpty(Request.QueryString[ProjectMapCustomization.FilterValuesQueryStringParameter])) { var filterValuesAsString = Request.QueryString[ProjectMapCustomization.FilterValuesQueryStringParameter] .Split(','); filterValues = filterValuesAsString.Select(Int32.Parse).ToList(); } else { filterValues = ProjectMapCustomization.GetDefaultLocationFilterValues(currentPersonCanViewProposals); } if (!String.IsNullOrEmpty(Request.QueryString[ProjectMapCustomization.ColorByQueryStringParameter])) { colorByValue = ProjectColorByType.ToType(Request .QueryString[ProjectMapCustomization.ColorByQueryStringParameter] .ParseAsEnum <ProjectColorByTypeEnum>()); } else { colorByValue = ProjectMapCustomization.DefaultColorByType; } var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.ProjectMap); var projectsToShow = ProjectMapCustomization.ProjectsForMap(CurrentPerson); var initialCustomization = new ProjectMapCustomization(projectLocationFilterType, filterValues, colorByValue); var projectLocationsLayerGeoJson = new LayerGeoJson($"{FieldDefinition.ProjectLocation.GetFieldDefinitionLabel()}", Project.MappedPointsToGeoJsonFeatureCollection(projectsToShow, true, true), "red", 1, LayerInitialVisibility.Show); var projectLocationsMapInitJson = new ProjectLocationsMapInitJson(projectLocationsLayerGeoJson, initialCustomization, "ProjectLocationsMap"); projectLocationsMapInitJson.Layers.AddRange(HttpRequestStorage.DatabaseEntities.Organizations.GetBoundaryLayerGeoJson()); var interactionEventLayer = HttpRequestStorage.DatabaseEntities.InteractionEvents.GetInteractionEventsLayerGeoJson(); projectLocationsMapInitJson.Layers.Add(interactionEventLayer); projectLocationsMapInitJson.Layers.Add(MapInitJson.GetWashingtonCountyLayer()); projectLocationsMapInitJson.Layers.Add(MapInitJson.GetWashingtonLegislativeDistrictLayer()); var projectLocationsMapViewData = new ProjectLocationsMapViewData(projectLocationsMapInitJson.MapDivID, colorByValue.DisplayName, MultiTenantHelpers.GetTopLevelTaxonomyTiers(), currentPersonCanViewProposals); var projectLocationFilterTypesAndValues = CreateProjectLocationFilterTypesAndValuesDictionary(currentPersonCanViewProposals); var projectLocationsUrl = SitkaRoute <ResultsController> .BuildAbsoluteUrlHttpsFromExpression(x => x.ProjectMap()); var filteredProjectsWithLocationAreasUrl = SitkaRoute <ResultsController> .BuildUrlFromExpression(x => x.FilteredProjectsWithLocationAreas(null)); var projectMapLocationJsons = new List <ProjectMapLocationJson>(); var filteredProjectList = projectsToShow.Where(x1 => x1.HasProjectLocationPoint).Where(x => x.ProjectStage.ShouldShowOnMap()).ToList(); projectMapLocationJsons = filteredProjectList.ToList().Select(p => new ProjectMapLocationJson(p)).ToList(); var viewData = new ProjectMapViewData(CurrentPerson, firmaPage, projectLocationsMapInitJson, projectLocationsMapViewData, projectLocationFilterTypesAndValues, projectLocationsUrl, filteredProjectsWithLocationAreasUrl, projectMapLocationJsons); return(RazorView <ProjectMap, ProjectMapViewData>(viewData)); }
private PartialViewResult ViewEdit(EditProjectProjectStatusViewModel viewModel, bool allowEditUpdateDate, string personCreatedDisplay, string deleteUrl, FirmaPage firmaPage, ProjectFirmaModels.Models.Project project, bool isFinalStatusReport) { var projectStatusFirmaPage = firmaPage; var allProjectStatuses = HttpRequestStorage.DatabaseEntities.ProjectStatuses.ToList(); var projectStatusesForLegend = HttpRequestStorage.DatabaseEntities.ProjectStatuses.OrderBy(ps => ps.ProjectStatusSortOrder).ToList(); var projectStatusLegendDisplayViewData = new ProjectStatusLegendDisplayViewData(projectStatusesForLegend); var viewData = new EditProjectProjectStatusViewData(project, allowEditUpdateDate, personCreatedDisplay, deleteUrl, projectStatusFirmaPage, CurrentFirmaSession, allProjectStatuses, projectStatusLegendDisplayViewData, isFinalStatusReport); return(RazorPartialView <EditProjectProjectStatus, EditProjectProjectStatusViewData, EditProjectProjectStatusViewModel>(viewData, viewModel)); }