Пример #1
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();
        }