protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.Participant.IsVisitor)
            {
                Response.Redirect(PathProvider.BaseVirtualPath, true);
            }

            IsProjectCreatedFromCrm = (Request.Params["opportunityID"] != null || Request.Params["contactID"] != null);

            Bootstrap();

            LoadProjectManagerSelector();

            Page.RegisterBodyScripts(PathProvider.GetFileStaticRelativePath("projectaction.js"));

            if (Project != null)
            {
                RenderScript();
                ProjectFat = new ProjectFat(Project);
                return;
            }

            Page.Master.RegisterCRMResources();


            LoadProjectTeamSelector();
        }
        protected override void PageLoad()
        {
            Bootstrap();
            
            LoadProjectManagerSelector();
            
            SetSecurityEnable();

            if (Project != null)
            {
                ProjectFat = new ProjectFat(Project);
                return;
            }

            LoadProjectTeamSelector();
        }
Example #3
0
        static public Project GetCurrentProject(bool isthrow)
        {
            if (Projectctx == null)
            {
                var project = Global.EngineFactory.GetProjectEngine().GetByID(GetCurrentProjectId(isthrow));

                if (project == null)
                {
                    if (isthrow) throw new ApplicationException("ProjectFat not finded");
                }
                else
                    Projectctx = new ProjectFat(project);
            }

            return Projectctx != null ? Projectctx.Project : null;
        }
Example #4
0
        static public Project GetCurrentProject(bool isthrow)
        {
            if (Projectctx == null)
            {
                var project = Global.EngineFactory.GetProjectEngine().GetByID(GetCurrentProjectId(isthrow));

                if (project == null)
                {
                    if (isthrow)
                    {
                        throw new ApplicationException("ProjectFat not finded");
                    }
                }
                else
                {
                    Projectctx = new ProjectFat(project);
                }
            }

            return(Projectctx != null ? Projectctx.Project : null);
        }