コード例 #1
0
        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();
            }
        }
コード例 #2
0
 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");
     }
 }
コード例 #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();
 }
コード例 #4
0
 private void GetData()
 {
     gvThesisReport.DataSource = thesis.GetAll();
     gvThesisReport.DataBind();
 }
コード例 #5
0
 private void GetData()
 {
     gvStudent.DataSource = thesis.GetAll();
     gvStudent.DataBind();
 }