Ejemplo n.º 1
0
    public void BindData()
    {
        DataClassesDataContext db = new DataClassesDataContext();

        Exam exam = db.Exam.First(t => t.ExamId == decimal.Parse(examId));

        theExamId = exam.TheExamId.ToString();
        if (exam == null)
        {
            alert("获取试卷信息失败!", "AllExam.aspx");
        }

        examName = examBll.GetExamName(exam);

        paper = examBll.GetPaperByExamIdByPage(examId, ref pageNumber, ref totalPage);

        if (paper != null)
        {
            sorts = examBll.GetPaperSorts(paper.PaperId.ToString());
        }
        else
        {
            alert("获取试卷信息失败!", "AllExam.aspx");
        }
    }