private void GetData()
        {
            assignedThesisName = thesis.GetGTCAssignedThesis() == null ? null : thesis.GetGTCAssignedThesis().Select(x => x.Title).ToList();
            if (assignedThesisName != null)
            {
                unAssignedThesisName = thesis.GetAll().Select(x => x.Title).ToList().Except(assignedThesisName).ToList();

                lbAssigned.DataSource = assignedThesisName;
                lbAssigned.DataBind();
                lbUnassigned.DataSource = unAssignedThesisName;
                lbUnassigned.DataBind();
            }
            else
            {
                lbUnassigned.DataSource = thesis.GetAll().Select(x => x.Title).ToList();
                lbUnassigned.DataBind();
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["supervisorsignin"] != null)
     {
         supervisor = Session["supervisorsignin"] as _Supervisor;
         theses     = thesis.GetAll(supervisor.SupervisorId);
         if (!IsPostBack)
         {
             GetData();
         }
     }
     else
     {
         Response.Redirect("/Home");
     }
 }
Example #3
0
 private void GetData()
 {
     gvGTC.DataSource = thesis.GetAll().Where(x => x.Status == "Ok").ToList();//supervisor.GetAll().Where(x => x.GTC == "Yes").ToList();
     gvGTC.DataBind();
 }
 private void GetData()
 {
     gvThesisReport.DataSource = thesis.GetAll();
     gvThesisReport.DataBind();
 }
Example #5
0
 private void GetData()
 {
     gvStudent.DataSource = thesis.GetAll();
     gvStudent.DataBind();
 }