예제 #1
0
        public void UpdateFocusTab(FormCollection form)
        {
            var session    = (StudentLogin)Session[CommonConstants.STUDENT_SESSION];
            var id_student = session.id_student;
            var id_thread  = studentDao.getTesting(id_student);

            studentDao.UpdateLastLogin(id_student, GetIPAddress(), GetUserEnvironment());
            int focus = Convert.ToInt32(form["focustab"]);

            if (focus < 0)
            {
                focus = 0;
            }
            studentDao.UpdateFocusTab(focus, id_student, id_thread);
        }