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",

            }
        }
Beispiel #2
0
        /// <summary>
        /// ͨ����ҵId��ȡ��ҵ���ƣ���Ҫ�����б����ݰ󶨣�
        /// </summary>
        /// <param name="_userId"></param>
        /// <returns></returns>
        protected string GetCompanyName(object _userId)
        {
            long userId = XYECOM.Core.MyConvert.GetInt64(_userId.ToString());

            if (userId <= 0) return "";

            Model.UserInfo userInfo = new Business.UserInfo().GetItem(userId);

            if (userInfo == null) return "";

            return userInfo.Name;
        }