using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace shuangyulin.Front
{
    public partial class Front_Student_QQ287307421_Details : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                /*进入本信息添加页显示无图的图片*/
                this.StudentPhotoImage.ImageUrl = "Admin\\FileUpload\\NoImage.jpg";
                if (Request["studentNumber"] != null)
                {
                    LoadData();
                }
            }
        }
        /*如果是需要对记录进行编辑需要在界面初始化显示数据*/
        private void LoadData()
        {
            if (!string.IsNullOrEmpty(Common.GetMes.GetRequestQuery(Request, "studentNumber")))
            {
                ENTITY.Student_QQ287307421 student_QQ287307421 = BLL.bllStudent_QQ287307421.getSomeStudent_QQ287307421(Common.GetMes.GetRequestQuery(Request, "studentNumber"));
                studentNumber.Text = student_QQ287307421.studentNumber;
                studentName.Text = student_QQ287307421.studentName;
                studentPassword.Text = student_QQ287307421.studentPassword;
                studentSex.Text = student_QQ287307421.studentSex;
            studentClassNumber.Text = BLL.bllClassInfo.getSomeClassInfo(student_QQ287307421.studentClassNumber).className;
                studentBirthday.Text = student_QQ287307421.studentBirthday.ToShortDateString();
                studentState.Text = student_QQ287307421.studentState;
            if (student_QQ287307421.studentPhoto != "") this.StudentPhotoImage.ImageUrl = "Admin\\" + student_QQ287307421.studentPhoto;
                studentTelephone.Text = student_QQ287307421.studentTelephone;
                studentEmail.Text = student_QQ287307421.studentEmail;
                studentQQ.Text = student_QQ287307421.studentQQ;
                studentAddress.Text = student_QQ287307421.studentAddress;
                studentMemo.Text = student_QQ287307421.studentMemo;
            }
        }
    }
}
