protected void Page_Load(object sender, EventArgs e)
    {
        if ((Session["adminUserName"] == null) && (Session["adminUserRole"] == null))
        {
            Response.Redirect("../error.aspx");
        }
        string repairId = Request.QueryString["repairId"];
        Repair repair   = new Repair();

        if (false == repair.GetRepairInfo(Convert.ToInt32(repairId)))
        {
            Response.Write("<script>alert('" + repair.ErrMessage + "');location.href='repairInfoManage.aspx'</script>");
        }
        if (!IsPostBack)
        {
            this.apartmentNo.Text      = repair.ApartmentNo;
            this.roomNo.Text           = repair.RoomNo;
            this.StudentName.Text      = repair.StudentName;
            this.StudentTelephone.Text = repair.StudentTelephone;
            this.roomTelephone.Text    = repair.RoomTelephone;
            this.repairTime.Text       = repair.RepairTime.ToString("yyyy/MM/dd HH:mm:ss");
            this.repairThing.Text      = repair.RepairThing;
            this.repairQuantity.Text   = repair.RepairQuantity;
            this.repairReason.Text     = repair.RepairReason;
        }
    }