protected void Page_Load(object sender, EventArgs e)
 {
     Tools.authentication(this, "2");
     stuNameStr = getStuName(Session["UserId"].ToString().Trim());
     markUnder60();
     examrecordBLL ExamRecordBLL=new examrecordBLL();
     sumCreditStr=ExamRecordBLL.SumCredit(Session["UserId"].ToString().Trim());
     stuGXWCreditStr = ExamRecordBLL.SumGXWCredit(Session["UserId"].ToString().Trim());
     stuGXWAverageCreditStr = ExamRecordBLL.SumGXWAverageCredit(Session["UserId"].ToString().Trim());
 }
 protected void InitializePage()
 {
     studentBLL StudentBAll = new studentBLL();
     student Student = StudentBAll.GetModel(stuId);
     stuIdStr = Student.stuId;
     nameStr = Student.name;
     sexStr = Student.sex;
     colleageStr = Student.colleage;
     majorStr = Student.majorName;
     if (Student.admissionDate!=null&&Student.admissionDate.ToString().Length == 6)
         schoolTimeStr = Student.admissionDate.Insert(4, "年").Insert(7, "年");
     examrecordBLL ExamRecordBLL = new examrecordBLL();
     zongXueFenStr = ExamRecordBLL.SumCredit(stuId);
     xueWeiKeZongXueFenStr = ExamRecordBLL.SumGXWCredit(stuId);
     xueWeikeJiaQuanPingJunStr = ExamRecordBLL.SumGXWAverageCredit(stuId);
 }
 protected void initial(int Id)
 {
     studentBLL StudentBLL = new studentBLL();
     student Student = StudentBLL.GetModel(Id);
     try
     {
         stuIdTB.Text = Student.stuId;
         nameTB.Text = Student.name;
         sexDDL.SelectedValue = Student.sex;
         nationTB.Text = Student.nation;
         birthdayTB.Text = Student.birthday;
         certificateTypeTB.Text = Student.certificateType;
         certificateIdTB.Text = Student.certificateId;
         majorIdTB.Text = Student.majorId;
         majorNameTB.Text = Student.majorName;
         colleageTB.Text = Student.colleage;
         degreeTB.Text = Student.degree;
         classTypeTB.Text = Student.classType;
         typeTB.Text = Student.type;
         placeOfWorkTB.Text = Student.placeOfWork;
         workPhoneTB.Text = Student.workPhone;
         phoneTB.Text = Student.phone;
         emailTB.Text = Student.email;
         addressTB.Text = Student.address;
         zipCodeTB.Text = Student.zipCode;
         schoolYearTB.Text = Student.admissionDate;
     }
     catch
     {
         MessageBox.Show(this, "该学生不存在!");
         Response.Write("<script language=javascript>history.go(-2);</script>");
     }
     finally { };
     examrecordBLL ExamRecordBLL = new examrecordBLL();
     sumCreditStr = ExamRecordBLL.SumCredit(Session["StuId"].ToString().Trim());
     stuGXWCreditStr = ExamRecordBLL.SumGXWCredit(Session["StuId"].ToString().Trim());
     stuGXWAverageCreditStr = ExamRecordBLL.SumGXWAverageCredit(Session["StuId"].ToString().Trim());
 }