Beispiel #1
0
        protected void btnOk_Click(object sender, EventArgs e)
        {
            this.userinfo.Address = this.txtAddress.Text;
            this.userinfo.AreaName = this.txtArea.Text;
            this.userinfo.CompanyName = this.txtCompanyName.Text;
            this.userinfo.Email = this.txtEmail.Text;
            this.userinfo.Description = this.txtIntroduction.Text;
            this.userinfo.OtherContact = this.txtOtherContact.Text;
            this.userinfo.Telphone = this.txtTelphone.Text;
            this.userinfo.LoginName = this.txtUserName.Text;
            this.userinfo.LinkMan = this.txtLinkMan.Text;

            this.userinfo.LayerId = string.Empty;
            this.userinfo.IdentityNumber = string.Empty;

            XYECOM.Business.UserInfo userInfoBll = new Business.UserInfo();

            int result = userInfoBll.UpdateBaseInfo(userinfo);
            if (result > 0)
            {
                GotoMsgBoxPageForDynamicPage("保存成功!", 1, "/Creditor/BaseEdit.aspx");
                return;
            }
            else
            {
                ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", "alert('保存失败,请重试!');", true);
                //this.Page.RegisterClientScriptBlock("alert",

            }
        }