Пример #1
0
    public void BindData()
    {
        Teacher teacher = accountBll.GetTeacherById(Request.Cookies["uId"].Value.ToString());

        tname = teacher.TName;
        tId   = teacher.TId;


        nowExam = examBll.GetNowExam();
        if (nowExam == null)
        {
            alert("暂无即将开始的考试", "/Desktop.aspx");
            return;
        }



        invigilate = examBll.GetInvigilateByTidExamId(tId.ToString(), nowExam.ExamId.ToString());
        if (invigilate == null)
        {
            invigilate = new Invigilate()
            {
                ExamRoomName     = "",
                ExamRoomPosition = "",
                OtherTeacher     = ""
            };
        }
    }