Example #1
0
        /// <summary>
        ///  高级管理员修改个人信息
        /// </summary>
        protected void btnAlter_Click(object sender, EventArgs e)
        {
            SA           mSa           = new SA();
            SAController mSaController = new SAController();

            //传进更新后的值
            mSa.UserName  = this.txtStaffName.Text;
            mSa.PassWord  = this.txtPassword.Text;
            mSa.TrueName  = this.txtName.Text;
            mSa.IdCardNum = this.txtIDcardNO.Text;
            if (mSaController.AlterSaInfo(mSa) == true)
            {
                this.lblCheck.Text = "修改成功!";
                //this.Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('" + "修改成功!" + "');</script> ");
            }
            else
            {
                this.lblCheck.Text = "修改失败!请重新操作!";
                //this.Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('" + "修改失败!请重新操作!" + "');</script> ");
            }
        }