Ejemplo n.º 1
0
 // Get supervisor name if exist
 public string SupervisorApprovedStatus()
 {
     using (var db = new TESDataContext())
     {
         // If Supper visor is assigned
         var log = (from ss in db.Student_Supervisors
                    where ss.student_id == this.StudentId && ss.supervise == true
                    select ss.supervisor_id).FirstOrDefault();
         if (log != null)
         {
             _Supervisor s = new _Supervisor();
             return(s.GetById(log).User.FullName);
         }
         return("");
     }
 }
Ejemplo n.º 2
0
        public string CoSupervisorExists()
        {
            _Supervisor s = new _Supervisor();

            using (var db = new TESDataContext())
            {
                var log = (from t in db.Thesis
                           where t.student_id == this.StudentId
                           select t).FirstOrDefault();
                if (log != null)
                {
                    if (log.cosupervisor_id != null)
                    {
                        return(s.GetById(log.cosupervisor_id).User.FullName);
                    }
                }
                return("");
            }
        }
Ejemplo n.º 3
0
 public _Meeting()
 {
     Supervisor = new _Supervisor();
     Student    = new _Student();
 }
Ejemplo n.º 4
0
 public _Thesis()
 {
     Supervisor = new _Supervisor();
     Student    = new _Student();
 }