public string getImage(int intCourseId, string strSearch, bool blnSearchByMatric) { DaoEnrolment daoEnrolment = new DaoEnrolment(); if (!blnSearchByMatric) { Enrolment objEnrolment = daoEnrolment.findEnrolmentBySeatNumber(intCourseId, strSearch); strSearch = objEnrolment.Student.MatricNumber; } Image image = Image.FromFile(HostingEnvironment.ApplicationPhysicalPath + String.Format(@"\files\student_images\{0}.jpg", strSearch)); MemoryStream ms = new MemoryStream(); image.Save(ms, image.RawFormat); return(Convert.ToBase64String(ms.ToArray())); }
private void populateAttendance(int intCourseId, string strSearchTerm) { DaoEnrolment daoEnrolment = new DaoEnrolment(); if (intCourseId == 0) { txtStudentName.Text = ""; pnlStudentFilter.Visible = false; gvAttendance.DataSource = null; } else { pnlStudentFilter.Visible = true; gvAttendance.DataSource = daoEnrolment.getAttendanceByCourse(intCourseId, strSearchTerm); } gvAttendance.DataBind(); }
public bool markAttendance(int intCourseId, int intStudentId) { DaoEnrolment daoEnrolment = new DaoEnrolment(); return(daoEnrolment.markAttendance(intCourseId, intStudentId)); }
public ObjStudentAttendance getStudentWithAttendanceInCourse(int intCourseId, string strSearch, bool blnSearchByMatric) { DaoEnrolment daoEnrolment = new DaoEnrolment(); return(daoEnrolment.getStudentWithAttendanceInCourse(intCourseId, strSearch, blnSearchByMatric)); }
public List <ObjStudentAttendance> getStudentsWithAttendanceInCourse(int intCourseId) { DaoEnrolment daoEnrolment = new DaoEnrolment(); return(daoEnrolment.getStudentsWithAttendanceInCourse(intCourseId)); }
public int getSeatNumber(int intHallId, string strMatricNumber) { DaoEnrolment daoEnrolment = new DaoEnrolment(); return(daoEnrolment.getSeatNumberByHallIdAndMatricNumber(intHallId, strMatricNumber.ToUpper())); }