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_Teacher_QQ287307421_Details : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                /*进入本信息添加页显示无图的图片*/
                this.TeacherPhotoImage.ImageUrl = "Admin\\FileUpload\\NoImage.jpg";
                if (Request["teacherNumber"] != null)
                {
                    LoadData();
                }
            }
        }
        /*如果是需要对记录进行编辑需要在界面初始化显示数据*/
        private void LoadData()
        {
            if (!string.IsNullOrEmpty(Common.GetMes.GetRequestQuery(Request, "teacherNumber")))
            {
                ENTITY.Teacher_QQ287307421 teacher_QQ287307421 = BLL.bllTeacher_QQ287307421.getSomeTeacher_QQ287307421(Common.GetMes.GetRequestQuery(Request, "teacherNumber"));
                teacherNumber.Text = teacher_QQ287307421.teacherNumber;
                teacherName.Text = teacher_QQ287307421.teacherName;
                teacherPassword.Text = teacher_QQ287307421.teacherPassword;
                teacherSex.Text = teacher_QQ287307421.teacherSex;
                teacherBirthday.Text = teacher_QQ287307421.teacherBirthday.ToShortDateString();
                teacherArriveDate.Text = teacher_QQ287307421.teacherArriveDate.ToShortDateString();
                teacherCardNumber.Text = teacher_QQ287307421.teacherCardNumber;
                teacherPhone.Text = teacher_QQ287307421.teacherPhone;
            if (teacher_QQ287307421.teacherPhoto != "") this.TeacherPhotoImage.ImageUrl = "Admin\\" + teacher_QQ287307421.teacherPhoto;
                teacherAddress.Text = teacher_QQ287307421.teacherAddress;
                teacherMemo.Text = teacher_QQ287307421.teacherMemo;
            }
        }
    }
}
