Пример #1
0
 public NewViewData(ProjectFirmaModels.Models.Project project, IEnumerable <SelectListItem> projectImageTimings)
 {
     Project                 = project;
     ProjectImageTimings     = projectImageTimings;
     SupportedFileExtensions = new List <string> {
         "jpg", "png", "gif", "tiff", "bmp"
     };
     SupportedFileExtensionsCommaSeparated = string.Join(", ", SupportedFileExtensions.OrderBy(x => x));
 }
Пример #2
0
 public ActionItemsDisplayViewData(ProjectFirmaModels.Models.Project project, ActionItemsGridSpec actionItemsGridSpec, string actionItemsGridName, string actionItemsGridDataUrl, PermissionCheckResult userCanViewActionItems, PermissionCheckResult userCanCreateActionItems, string addNewActionItemUrl)
 {
     Project                  = project;
     ActionItemsGridSpec      = actionItemsGridSpec;
     ActionItemsGridName      = actionItemsGridName;
     ActionItemsGridDataUrl   = actionItemsGridDataUrl;
     UserCanViewActionItems   = userCanViewActionItems;
     UserCanCreateActionItems = userCanCreateActionItems;
     AddNewActionItemUrl      = addNewActionItemUrl;
 }
        public ViewDataForAngularClass(ProjectFirmaModels.Models.Project project,
                                       List <FundingSourceSimple> allFundingSources,
                                       List <int> requiredCalendarYearRange)
        {
            RequiredCalendarYearRange = requiredCalendarYearRange;
            AllFundingSources         = allFundingSources;
            ProjectID = project.ProjectID;

            MaxYear        = FirmaDateUtilities.CalculateCurrentYearToUseForUpToAllowableInputInReporting();
            UseFiscalYears = MultiTenantHelpers.UseFiscalYears();
        }
Пример #4
0
        public ProjectTimelineDisplayViewData(ProjectFirmaModels.Models.Project project,
                                              Models.ProjectTimeline projectTimeline, bool userHasProjectStatusUpdatePermissions,
                                              ProjectStatusLegendDisplayViewData projectStatusLegendDisplayViewData)
        {
            ProjectTimeline = projectTimeline;
            UserHasProjectStatusUpdatePermissions = userHasProjectStatusUpdatePermissions;
            var updateStatusUrl = SitkaRoute <ProjectProjectStatusController> .BuildUrlFromExpression(tc => tc.New(project));

            AddProjectProjectStatusButton =
                ModalDialogFormHelper.MakeNewIconButton(updateStatusUrl, "Update Status", true);
            ProjectStatusLegendDisplayViewData = projectStatusLegendDisplayViewData;
            CurrentProjectStatus = project.GetCurrentProjectStatus();
        }
 public EditProjectClassificationsForProjectViewData(ProjectFirmaModels.Models.Project project, ProjectFirmaModels.Models.ClassificationSystem classificationSystem)
 {
     ProjectName          = project.GetDisplayName();
     ClassificationSystem = classificationSystem;
 }
Пример #6
0
 public ProjectBasicsTagsViewData(ProjectFirmaModels.Models.Project project)
 {
     Project   = project;
     TagHelper = new TagHelper(project.ProjectTags.Select(x => new BootstrapTag(x.Tag)).ToList());
 }
 public EditProjectExternalLinksViewData(ProjectFirmaModels.Models.Project project)
 {
     ProjectID = project.ProjectID;
 }
 public TaxonomyLeafFromBothDirections(ProjectFirmaModels.Models.Project theProject)
 {
     TaxonomyLeafOverrideOffProject        = theProject.OverrideTaxonomyLeaf;
     TaxonomyLeafRoundaboutViaPrimaryCawbs = theProject.GetTaxonomyLeaf();
 }