示例#1
0
        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()));
        }
示例#2
0
        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();
        }
示例#3
0
        public bool markAttendance(int intCourseId, int intStudentId)
        {
            DaoEnrolment daoEnrolment = new DaoEnrolment();

            return(daoEnrolment.markAttendance(intCourseId, intStudentId));
        }
示例#4
0
        public ObjStudentAttendance getStudentWithAttendanceInCourse(int intCourseId, string strSearch, bool blnSearchByMatric)
        {
            DaoEnrolment daoEnrolment = new DaoEnrolment();

            return(daoEnrolment.getStudentWithAttendanceInCourse(intCourseId, strSearch, blnSearchByMatric));
        }
示例#5
0
        public List <ObjStudentAttendance> getStudentsWithAttendanceInCourse(int intCourseId)
        {
            DaoEnrolment daoEnrolment = new DaoEnrolment();

            return(daoEnrolment.getStudentsWithAttendanceInCourse(intCourseId));
        }
示例#6
0
        public int getSeatNumber(int intHallId, string strMatricNumber)
        {
            DaoEnrolment daoEnrolment = new DaoEnrolment();

            return(daoEnrolment.getSeatNumberByHallIdAndMatricNumber(intHallId, strMatricNumber.ToUpper()));
        }