protected override void PageLoad() { if (string.IsNullOrEmpty(Request["prjID"]) || !ProjectSecurity.CanRead(Project)) { Response.Redirect(PathProvider.BaseVirtualPath, true); } if (!ProjectSecurity.CanReadGantt(Project) || Request.Browser.IsMobileDevice) { Response.Redirect("tasks.aspx?prjID=" + Project.ID); } Master.Master.DisabledHelpTour = true; Master.DisabledSidePanel = true; Master.DisabledPrjNavPanel = true; _hintPopupTaskRemove.Options.IsPopup = true; _hintPopupMilestoneRemove.Options.IsPopup = true; _hintPopupMilestoneTasks.Options.IsPopup = true; _hintPopupTaskWithSubtasks.Options.IsPopup = true; _newLinkError.Options.IsPopup = true; _moveTaskOutMilestone.Options.IsPopup = true; _addNewLinkPopup.Options.IsPopup = true; Title = HeaderStringHelper.GetPageTitle(ProjectResource.GanttGart); }
protected void SetShowGanttChartFlag() { if (InConcreteProjectModule || Core.Mobile.MobileDetector.IsRequestMatchesMobile(Context)) { ShowGanttChartFlag = false; return; } if (ProjectSecurity.CanReadGantt(Project)) { ShowGanttChartFlag = true; return; } ShowGanttChartFlag = false; }