protected void loadProjects(long UCId) { ProjectModule projectModule = new ProjectModule(); //Only get ASSIGNED and TERMINATED projects IList<Project> allProjects = projectModule.getProjectsByApproverId(UCId); /*IList<Project> assignedAndTerminated = new List<Project>(); foreach (Project project in allProjects) { if (project.PROJECT_STATUS == APPLICATION_STATUS.ASSIGNED || project.PROJECT_STATUS == APPLICATION_STATUS.TERMINATED) assignedAndTerminated.Add(project); } */ Session["projects"] = allProjects; // assignedAndTerminated; project_list.DataSource = Session["projects"]; project_list.DataBind(); selected_projects.Value = ""; }
private void loadProjects(long approverId) { ProjectModule projectModule = new ProjectModule(); project_titles.DataSource = projectModule.getProjectsByApproverId(approverId); project_titles.DataBind(); }