コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                B_Admin badmin = new B_Admin();
                if (!B_ARoleAuth.Check(ZLEnum.Auth.user, "UserManage"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
                int userNameLimit = 3;
                int userNameMax   = 20;
                if (SiteConfig.UserConfig.UserNameLimit > 0)
                {
                    userNameLimit = SiteConfig.UserConfig.UserNameLimit;
                }
                if (SiteConfig.UserConfig.UserNameMax >= userNameLimit)
                {
                    userNameMax = SiteConfig.UserConfig.UserNameMax;
                }
                B_Group bgr = new B_Group();

                this.DDLGroup.DataSource     = bgr.GetGroupList();
                this.DDLGroup.DataTextField  = "GroupName";
                this.DDLGroup.DataValueField = "GroupID";
                this.DDLGroup.DataBind();
                lblHtml.Text = ubfbll.GetHtml();
            }
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='AdminManage.aspx'>用户管理</a></li><li><a href='UserManage.aspx'>会员管理</a></li><li class='active'>添加会员</li>");
        }
コード例 #2
0
        public string GetGroupName()
        {
            B_User  buser   = new B_User();
            string  GroupID = buser.GetLogin().GroupID.ToString();
            B_Group bgp     = new B_Group();

            return(bgp.GetByID(DataConverter.CLng(GroupID)).GroupName);
        }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string menu = DataSecurity.FilterBadChar(Request.QueryString["menu"]);

            if (!IsPostBack)
            {
                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='PageManage.aspx'>企业黄页</a></li><li><a href='PageManage.aspx'>黄页管理</a>  <li>查看黄页申请</li>");
                B_Admin badmin = new B_Admin();
                B_Group gll    = new B_Group();
                if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "PageManage"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
                M_PageReg regMod = b_PageReg.SelReturnModel(Mid);
                int       modid  = regMod.ModelID;//模型ID
                this.ModelID          = modid;
                this.HdnID.Value      = Mid.ToString();
                this.HdnModel.Value   = this.ModelID.ToString();
                UName_T.Text          = regMod.UserName;
                CompName_T.Text       = regMod.CompanyName;
                Logo_T.Text           = regMod.LOGO;
                PageInfo_T.Text       = regMod.PageInfo;
                TxtTemplate_hid.Value = regMod.Template;
                if (menu == "view")//查看黄页资料
                {
                    Label1.Text = "查看黄页资料";
                }
                else if (menu == "modify")
                {
                    Label1.Text = "修改黄页资料";
                }
                int       Umodeid = regMod.ModelID;
                DataTable tbinfo  = mll.SelectTableName(regMod.TableName, "UserName = '******'");
                if (tbinfo.Rows.Count > 0)
                {
                    ModelHtml.Text = mll.InputallHtml(Umodeid, 0, new ModelConfig()
                    {
                        ValueDT = tbinfo
                    });
                }
                else
                {
                    this.ModelHtml.Text = this.mll.InputallHtml(DataConverter.CLng(Umodeid), 0, new ModelConfig());
                }
                Temp_RPT.DataSource = sll.Sel();
                Temp_RPT.DataBind();
                NodeStyle_Hid.Value = regMod.NodeStyle.ToString();
                if (string.IsNullOrEmpty(regMod.Template))//如果没有模板就默认为样式首页模板
                {
                    M_PageStyle stylemod = sll.SelReturnModel(regMod.NodeStyle);
                    TxtTemplate_hid.Value = stylemod.TemplateIndex;
                }
            }
        }
コード例 #4
0
        // 提交管理员信息
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            if (AdminID > 0)
            {
                admin = B_Admin.GetAdminByAdminId(AdminID);
                string oldadminpassword = admin.AdminPassword;
                if (!string.IsNullOrEmpty(txtAdminTrueName.Text.Trim()))
                {
                    admin.AdminTrueName = txtAdminTrueName.Text.Trim();
                }
                if (!string.IsNullOrEmpty(hfNode.Value.Trim()))
                {
                    admin.StructureID = hfNode.Value.Trim();
                }
            }
            else
            {
                string pwd = tbPwd.Text.Trim().Replace(" ", "");
                if (!Manager_Validator())
                {
                    function.WriteErrMsg("管理员名称重复!");
                }
                if (pwd.Length < 3)
                {
                    function.WriteErrMsg("密码长度不能少于3位");
                }
                admin.AdminPassword = StringHelper.MD5(tbPwd.Text);
                admin.UserName      = tbdName.Text;
                admin.StructureID   = hfNode.Value.Trim();
            }
            //获取管理员角色
            string role = "";

            foreach (ListItem item in cblRoleList.Items)
            {
                if (item.Selected)
                {
                    role += item.Value + ",";
                }
            }
            if (admin.IsSuperAdmin(admin.RoleList))
            {
                role = "0," + role;
            }
            admin.RoleList             = role;
            admin.AdminName            = tbdName.Text;
            admin.AdminTrueName        = txtAdminTrueName.Text.Trim();
            admin.EnableMultiLogin     = cb1.Checked;
            admin.EnableModifyPassword = cb2.Checked;
            admin.IsLock                 = cb3.Checked;
            admin.IsTable                = cb4.Checked;
            admin.LastLoginIP            = "";
            admin.LastLoginTime          = DateTime.Now;
            admin.LastLogoutTime         = DateTime.Now;
            admin.LastModifyPasswordTime = DateTime.Now;
            admin.LoginTimes             = 0;
            admin.RandNumber             = SPwd_T.Text;
            admin.ManageNode             = "";
            admin.DefaultStart           = DataConverter.CLng(DefaultStart_DP.SelectedValue);
            admin.PubRole                = CheckBox1.Checked ? 1 : 0;
            admin.StructureID            = curmodel_hid.Value;
            if (AdminID > 0)
            {
                if (!string.IsNullOrEmpty(tbPwd.Text.Trim()))
                {
                    admin.AdminPassword = StringHelper.MD5(tbPwd.Text.Trim());
                    B_Admin.Update(admin);
                    if (admin.AdminId == B_Admin.GetLogin().AdminId)
                    {
                        function.WriteSuccessMsg("密码修改成功,系统现在自动注销,请使用新密码登录管理!", CustomerPageAction.customPath2 + "/SignOut.aspx");
                    }
                    function.WriteSuccessMsg("密码修改成功!", "AdminManage.aspx");
                }
                else
                {
                    B_Admin.Update(admin);
                    function.WriteSuccessMsg("修改成功", "AdminManage.aspx");
                }
            }
            else
            {
                //新增
                B_Admin.Add(admin);
                M_AdminInfo adminInfo = B_Admin.GetAdminByAdminName(admin.AdminName);
                #region 添加会员
                if (AddUser_Chk.Checked)
                {
                    string     username = tbdName.Text.Trim();
                    M_UserInfo userinfo = buser.GetUserByName(username);
                    Response.Write(userinfo.UserID.ToString());
                    if (userinfo.UserID > 0)
                    {
                        userinfo.UserPwd = StringHelper.MD5(tbPwd.Text);
                        userinfo.Email   = tbEmail.Text;
                        buser.UpDateUser(userinfo);
                    }
                    else
                    {
                        B_Group    gpBll = new B_Group();
                        M_UserInfo uinfo = new M_UserInfo();
                        uinfo.UserName          = tbdName.Text;
                        uinfo.UserPwd           = tbPwd.Text;
                        uinfo.Question          = Question_DP.SelectedItem.Text;
                        uinfo.Answer            = tbAnswer.Text.Trim();
                        uinfo.Email             = tbEmail.Text.Trim();
                        uinfo.GroupID           = gpBll.DefaultGroupID();
                        uinfo.LastLoginIP       = HttpContext.Current.Request.UserHostAddress;
                        uinfo.LastLockTime      = DateTime.Now;
                        uinfo.LastLoginTimes    = DateTime.Now;
                        uinfo.LastPwdChangeTime = DateTime.Now;
                        uinfo.LoginTimes        = 0;
                        uinfo.RegTime           = DateTime.Now;
                        uinfo.ConsumeExp        = 0;
                        uinfo.IsConfirm         = 0;
                        uinfo.VIP     = 0;
                        uinfo.UserPwd = StringHelper.MD5(uinfo.UserPwd);
                        uinfo.UserID  = buser.AddModel(uinfo);
                        M_Uinfo binfo = new M_Uinfo();
                        binfo.UserId = uinfo.UserID;
                        buser.AddBase(binfo);
                        adminInfo.AddUserID = uinfo.UserID;
                        B_Admin.Update(adminInfo);
                    }
                }
                #endregion
                Response.Redirect("AdminDetail.aspx?id=" + adminInfo.AdminId + "&roleid=" + adminInfo.NodeRole);
            }
        }
コード例 #5
0
        public string GetGroupName(string GroupID)
        {
            B_Group bgp = new B_Group();

            return(bgp.GetByID(DataConverter.CLng(GroupID)).GroupName);
        }
コード例 #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!B_ARoleAuth.Check(ZLEnum.Auth.other, "SiteConfig"))
            {
                function.WriteErrMsg("没有权限进行此项操作");
            }
            m_RegFields = new Dictionary <string, ListItem>();
            m_RegFields.Add("Permissions", new ListItem("真实姓名", "Permissions"));
            m_RegFields.Add("UserSex", new ListItem("性别", "UserSex"));
            m_RegFields.Add("Birthday", new ListItem("出生日期", "Birthday"));
            m_RegFields.Add("Address", new ListItem("联系地址", "Address"));
            m_RegFields.Add("ZipCode", new ListItem("邮政编码", "ZipCode"));
            m_RegFields.Add("Homepage", new ListItem("个人主页", "Homepage"));
            m_RegFields.Add("QQ", new ListItem("QQ号码", "QQ"));
            // m_RegFields.Add("ICQ", new ListItem("ICQ号码", "ICQ"));
            //m_RegFields.Add("MSN", new ListItem("MSN帐号", "MSN"));
            //m_RegFields.Add("UC", new ListItem("UC号码", "UC"));
            //m_RegFields.Add("Yahoo", new ListItem("雅虎通帐号", "Yahoo"));
            m_RegFields.Add("OfficePhone", new ListItem("办公电话", "OfficePhone"));
            m_RegFields.Add("HomePhone", new ListItem("家庭电话", "HomePhone"));
            m_RegFields.Add("Mobile", new ListItem("手机号码", "Mobile"));
            m_RegFields.Add("Fax", new ListItem("传真号码", "Fax"));
            //m_RegFields.Add("PHS", new ListItem("小灵通", "PHS"));
            m_RegFields.Add("IDCard", new ListItem("身份证号码", "IDCard"));
            m_RegFields.Add("salt", new ListItem("用户头像", "UserFace"));
            m_RegFields.Add("FaceWidth", new ListItem("头像宽度", "FaceWidth"));
            m_RegFields.Add("FaceHeight", new ListItem("头像高度", "FaceHeight"));
            m_RegFields.Add("Sign", new ListItem("签名档", "Sign"));
            m_RegFields.Add("Privacy", new ListItem("隐私设定", "Privacy"));
            m_RegFields.Add("Province", new ListItem("省市县", "Province"));
            //m_RegFields.Add("ParentUserID", new ListItem("推荐人", "ParentUserID"));
            m_RegFields.Add("ParentUser", new ListItem("推荐人", "ParentUser"));
            m_RegFields.Add("InvitCode", new ListItem("邀请码", "InvitCode"));

            //ZL_UserBaseField
            B_UserBaseField ufll    = new B_UserBaseField();
            DataTable       uftable = ufll.Select_All();

            if (uftable != null)
            {
                if (uftable.Rows.Count > 0)
                {
                    for (int c = 0; c < uftable.Rows.Count; c++)
                    {
                        string FieldName  = uftable.Rows[c]["FieldName"].ToString();
                        string FieldAlias = uftable.Rows[c]["FieldAlias"].ToString();
                        m_RegFields.Add(FieldName, new ListItem(FieldAlias, FieldName));
                    }
                }
            }

            if (!IsPostBack)
            {
                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='" + CustomerPageAction.customPath2 + "user/UserManage.aspx'>用户管理</a></li><li>会员参数配置</li>" + Call.GetHelp(40));
                RadioButtonList1.Checked = SiteConfig.UserConfig.EnableUserReg;
                //会员注册默认状态
                UserValidateType_Rad.SelectedValue = SiteConfig.UserConfig.UserValidateType ? "0" : "1";
                //是否开启注册后Email验证
                rdoEmailCheck.Checked = SiteConfig.UserConfig.EmailCheckReg;
                //是否开启Email注册登录
                RadioButtonList2.Checked = SiteConfig.UserConfig.EmailRegis;
                //是否开启注册成功邮件提醒
                radioEmail.Checked = SiteConfig.UserConfig.EmailTell;
                //是否开启UserID登录
                radioUserID.Checked = SiteConfig.UserConfig.UserIDlgn;
                //是否开启手机注册
                radioMobile.Checked  = SiteConfig.UserConfig.MobileReg;
                MobileCodeNum_T.Text = SiteConfig.UserConfig.MobileCodeNum.ToString();
                function.Script(this, "SetRadVal('mobilecode_rad'," + SiteConfig.UserConfig.MobileCodeType + ");");

                RadioButtonList3.Checked = SiteConfig.UserConfig.AdminCheckReg;
                RadioButtonList5.Checked = SiteConfig.UserConfig.EnableCheckCodeOfReg;

                TextBox6.Text = SiteConfig.UserConfig.UserNameLimit.ToString();
                TextBox7.Text = SiteConfig.UserConfig.UserNameMax.ToString();
                TextBox8.Text = SiteConfig.UserConfig.UserNameRegDisabled;

                RadioButtonList6.Checked = SiteConfig.UserConfig.EnableCheckCodeOfLogin;
                RadioButtonList7.Checked = SiteConfig.UserConfig.EnableMultiLogin;
                //DisCuzNT.Checked = SiteConfig.UserConfig.DisCuzNT;
                string regFieldsMustFill   = SiteConfig.UserConfig.RegFieldsMustFill;
                string regFieldsSelectFill = SiteConfig.UserConfig.RegFieldsSelectFill;
                HdnRegFields_MustFill.Value   = regFieldsMustFill;
                HdnRegFields_SelectFill.Value = regFieldsSelectFill;

                List <string> list  = new List <string>();
                List <string> list2 = new List <string>();
                if (!string.IsNullOrEmpty(regFieldsMustFill))
                {
                    foreach (string str3 in regFieldsMustFill.Split(new char[] { ',' }))
                    {
                        list.Add(str3);
                        if (m_RegFields.ContainsKey(str3))
                        {
                            LitRegFields_MustFill.Items.Add(m_RegFields[str3]);
                        }
                    }
                }
                if (!string.IsNullOrEmpty(regFieldsSelectFill))
                {
                    foreach (string str4 in regFieldsSelectFill.Split(new char[] { ',' }))
                    {
                        list2.Add(str4);
                        if (m_RegFields.ContainsKey(str4))
                        {
                            LitRegFields_SelectFill.Items.Add(m_RegFields[str4]);
                        }
                    }
                }
                foreach (string str5 in m_RegFields.Keys)
                {
                    if (!list.Contains(str5) && !list2.Contains(str5))
                    {
                        LitRegFields.Items.Add(m_RegFields[str5]);
                    }
                }

                //TextBox12.Text = SiteConfig.UserConfig.EmailOfRegCheck;
                //txtEmailTell.Text = SiteConfig.UserConfig.EmailTellContent;
                txtMobileRegInfo.Text   = SiteConfig.UserConfig.MobileRegInfo;
                tb_CommentRule.Text     = SiteConfig.UserConfig.CommentRule.ToString();
                tb_InformationRule.Text = SiteConfig.UserConfig.InfoRule.ToString();
                tb_RecommandRule.Text   = SiteConfig.UserConfig.RecommandRule.ToString();
                txtzi.Text                         = SiteConfig.UserConfig.PresentPointAll.ToString();
                TxtPresentExp.Text                 = SiteConfig.UserConfig.PresentExp.ToString();
                TxtPresentMoney.Text               = SiteConfig.UserConfig.PresentMoney.ToString();
                TxtPresentPoint.Text               = SiteConfig.UserConfig.PresentPoint.ToString();
                TxtPresentValidNum.Text            = SiteConfig.UserConfig.PresentValidNum.ToString();
                DropPresentValidUnit.SelectedValue = SiteConfig.UserConfig.PresentValidUnit.ToString();
                TxtPresentExpPerLogin.Text         = SiteConfig.UserConfig.PresentExpPerLogin.ToString();
                SignPurse_T.Text                   = SiteConfig.UserConfig.SigninPurse.ToString();
                TxtMoneyExchangePoint.Text         = SiteConfig.UserConfig.MoneyExchangePointByMoney.ToString();
                TxtMoneyExchangeValidDay.Text      = SiteConfig.UserConfig.MoneyExchangeValidDayByMoney.ToString();
                TxtUserExpExchangePoint.Text       = SiteConfig.UserConfig.UserExpExchangePointByExp.ToString();
                TxtUserExpExchangeValidDay.Text    = SiteConfig.UserConfig.UserExpExchangeValidDayByExp.ToString();
                TxtCMoneyExchangePoint.Text        = SiteConfig.UserConfig.MoneyExchangePointByPoint.ToString();
                TxtCMoneyExchangeValidDay.Text     = SiteConfig.UserConfig.MoneyExchangeValidDayByValidDay.ToString();
                TxtCUserExpExchangePoint.Text      = SiteConfig.UserConfig.UserExpExchangePointByPoint.ToString();
                TxtCUserExpExchangeValidDay.Text   = SiteConfig.UserConfig.UserExpExchangeValidDayByValidDay.ToString();
                txtCMoneyExchangeDummyPurse.Text   = SiteConfig.UserConfig.MoneyExchangeDummyPurseByDummyPurse.ToString();
                txtMoneyExchangeDummyPurse.Text    = SiteConfig.UserConfig.MoneyExchangeDummyPurseByMoney.ToString();
                TxtPointName.Text                  = SiteConfig.UserConfig.PointName;
                TxtPointUnit.Text                  = SiteConfig.UserConfig.PointUnit;
                TxtCUserExpExchangePoints.Text     = SiteConfig.UserConfig.PointExp.ToString();
                TxtCUserExpExchangeMoney.Text      = SiteConfig.UserConfig.PointMoney.ToString();

                TxtCUserExpExchangeExp.Text        = SiteConfig.UserConfig.ChangeSilverCoinByExp.ToString();
                TxtCUserExpExchangeSilverCoin.Text = SiteConfig.UserConfig.PointSilverCoin.ToString();

                Agreement.SelectedValue = SiteConfig.UserConfig.Agreement;
                selPunch.Value          = SiteConfig.UserConfig.PunchType.ToString();
                txtPunch.Text           = SiteConfig.UserConfig.PunchVal.ToString();
                //txtEmailRegInfo.Text = SiteConfig.UserConfig.EmailRegInfo;
                //txtGetPassword.Text = SiteConfig.UserConfig.UserGetPasswordEmail;
                Txtintegral.Text           = SiteConfig.UserConfig.Integral.ToString();
                TxtIntegralPercentage.Text = SiteConfig.UserConfig.IntegralPercentage.ToString();
                #region 用户名注册规则
                string userregrule = SiteConfig.UserConfig.RegRule;

                if (userregrule != null && userregrule != "")
                {
                    if (userregrule.IndexOf(',') > -1)
                    {
                        string[] rulearr = userregrule.Split(',');
                        for (int ii = 0; ii < rulearr.Length; ii++)
                        {
                            if (rulearr[ii].ToString() == "1")
                            {
                                RegRule.Items[0].Selected = true;
                            }

                            if (rulearr[ii].ToString() == "2")
                            {
                                RegRule.Items[1].Selected = true;
                            }

                            if (rulearr[ii].ToString() == "3")
                            {
                                RegRule.Items[2].Selected = true;
                            }
                        }
                    }
                    else
                    {
                        if (userregrule.ToString() == "1")
                        {
                            RegRule.Items[0].Selected = true;
                        }

                        if (userregrule.ToString() == "2")
                        {
                            RegRule.Items[1].Selected = true;
                        }

                        if (userregrule.ToString() == "3")
                        {
                            RegRule.Items[2].Selected = true;
                        }
                    }
                }
                if (SiteConfig.UserConfig.RegRule != null)
                {
                    RegRule.SelectedValue = SiteConfig.UserConfig.RegRule.ToString();
                }
                #endregion
                #region 可使用站内短信用户组
                B_Group b_Group = new B_Group();
                MessageGroup.DataSource = b_Group.GetGroupList();
                MessageGroup.DataBind();
                string MessageGroupStr = SiteConfig.UserConfig.MessageGroup;
                if (!string.IsNullOrEmpty(MessageGroupStr))
                {
                    if (MessageGroupStr.IndexOf(",") > -1)
                    {
                        foreach (string Mstr in MessageGroupStr.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries))
                        {
                            if (MessageGroup.Items.FindByValue(Mstr) != null)
                            {
                                MessageGroup.Items.FindByValue(Mstr).Selected = true;
                            }
                        }
                    }
                }
                ////用户统计字段
                //foreach (ListItem item in m_RegFields.Values)
                //{
                //    UserFields_list.Items.Add(item);
                //}
                #endregion
                RadioButtonList10.SelectedValue = SiteConfig.UserConfig.PromotionType.ToString();
                RadioButtonList10_SelectedIndexChanged(null, null);
                //CountFields_Hid.Value = SiteConfig.UserConfig.CountUserField;
                txtPromotion.Text = SiteConfig.UserConfig.Promotion.ToString();
                try
                {
                    //邀请码配置
                    InviteCode_T.Text             = SiteConfig.UserConfig.InviteCodeCount.ToString();
                    InviteFormat_T.Text           = SiteConfig.UserConfig.InviteFormat;
                    InviteJoinGroup_DP.DataSource = gpBll.Sel();
                    InviteJoinGroup_DP.DataBind();
                    InviteJoinGroup_DP.SelectedValue = SiteConfig.UserConfig.InviteJoinGroup.ToString();
                }
                catch (Exception ex) { ZLLog.L(ex.Message); }

                MyBind();
            }
        }
コード例 #7
0
ファイル: UserModify.aspx.cs プロジェクト: zoomlacms/web022
        protected void Page_Load(object sender, EventArgs e)
        {
            B_Admin badmin = new B_Admin();
            string  UserID = base.Request.QueryString["UserID"];

            if (!this.Page.IsPostBack)
            {
                ShowPlatInfo(Convert.ToInt32(UserID));
                #region 绑定地区数据
                bind();
                if (Request["action"] == "area")
                {
                    bind1();
                    Response.Write("");
                    Response.Flush();
                    Response.Close();
                }
                if (Request["action"] == "area2")
                {
                    bind2();
                    Response.Write("");
                    Response.Flush();
                    Response.Close();
                }
                #endregion
                ViewState["PageUrl"] = customPath2 + "User/Userinfo.aspx?id=" + UserID;
                ViewState["url"]     = "/Manage/User/UserManage.aspx";
                if (Request.QueryString["type"] == "x")
                {
                    ViewState["PageUrl"] = System.Web.HttpContext.Current.Request.UrlReferrer.ToString();
                    ViewState["url"]     = System.Web.HttpContext.Current.Request.UrlReferrer.ToString();
                }
                if (string.IsNullOrEmpty(UserID))
                {
                    function.WriteErrMsg("请指定会员ID", ViewState["PageUrl"].ToString());
                }
                M_UserInfo uinfo = bll.SeachByID(DataConverter.CLng(UserID));
                if (uinfo.IsNull)
                {
                    function.WriteErrMsg("指定ID:" + UserID + "的用户不存在!可能已被删除!", ViewState["url"].ToString());
                }
                else
                {
                    B_Group bgr = new B_Group();
                    this.DDLGroup.DataSource     = bgr.GetGroupList();
                    this.DDLGroup.DataTextField  = "GroupName";
                    this.DDLGroup.DataValueField = "GroupID";
                    this.DDLGroup.DataBind();

                    this.HdnUserID.Value  = UserID;
                    this.LblUserName.Text = uinfo.UserName;
                    this.lblUser.Text     = uinfo.UserName;
                    this.tbEmail.Text     = uinfo.Email;
                    txtPurm.Text          = uinfo.DummyPurse.ToString();
                    this.tbQuestion.Text  = uinfo.Question;
                    this.tbAnswer.Text    = uinfo.Answer;
                    M_Uinfo binfo = bll.GetUserBaseByuserid(DataConverter.CLng(UserID));
                    this.tbTrueName.Text         = uinfo.TrueName;
                    this.tbUserSex.SelectedValue = binfo.UserSex ? "1" : "0";
                    this.tbBirthday.Text         = binfo.BirthDay;
                    this.tbOfficePhone.Text      = binfo.OfficePhone;
                    this.tbHomePhone.Text        = binfo.HomePhone;
                    this.tbMobile.Text           = binfo.Mobile;
                    this.tbPHS.Text                 = binfo.PHS;
                    this.tbFax.Text                 = binfo.Fax;
                    this.tbAddress.Text             = binfo.Address;
                    this.tbZipCode.Text             = binfo.ZipCode;
                    this.txtHoneyName.Text          = uinfo.HoneyName;
                    this.tbIDCard.Text              = binfo.IDCard;
                    this.tbQQ.Text                  = binfo.QQ;
                    this.tbHomepage.Text            = binfo.HomePage;
                    this.tbICQ.Text                 = binfo.ICQ;
                    this.tbMSN.Text                 = binfo.MSN;
                    this.tbYahoo.Text               = binfo.Yahoo;
                    this.tbUC.Text                  = binfo.UC;
                    this.tbUserFace.Text            = uinfo.UserFace;
                    this.tbFaceWidth.Text           = binfo.FaceWidth.ToString();
                    this.tbFaceHeight.Text          = binfo.FaceHeight.ToString();
                    this.tbSign.Text                = binfo.Sign;
                    this.tbPrivacy.SelectedValue    = binfo.Privating.ToString();
                    this.DDLGroup.SelectedValue     = uinfo.GroupID.ToString();
                    txtUserCrite.Text               = uinfo.UserCreit.ToString();
                    this.txtMoney.Text              = uinfo.Purse.ToString();
                    this.txtPoint.Text              = uinfo.UserExp.ToString();
                    this.txtSilverCoin.Text         = uinfo.SilverCoin.ToString();
                    this.txtUserPoint.Text          = uinfo.UserPoint.ToString();  //点券
                    this.txtboffExp.Text            = uinfo.boffExp.ToString();    //卖家积分
                    this.txtConsumeExp.Text         = uinfo.ConsumeExp.ToString(); //消费积分
                    this.txtDeadLine.Text           = uinfo.DeadLine.ToString();   //有效期截止时间
                    this.txtCerificateDeadLine.Text = uinfo.CerificateDeadLine.ToString();
                    this.VIPUser.SelectedValue      = binfo.VIPUser.ToString();
                    Adress_Hid.Value                = binfo.Province + "," + binfo.City + "," + binfo.County;
                    this.tbParentUserID.Text        = uinfo.ParentUserID.ToString();
                    this.CompanyNameT.Text          = uinfo.CompanyName;
                    this.CompanyDescribeT.Text      = uinfo.CompanyDescribe;
                    this.WorkNum_T.Text             = uinfo.WorkNum;
                    DataTable dtuser = bll.GetUserBaseByuserid(UserID);

                    lblHtml.Text = bub.GetUpdateHtml(dtuser);

                    //lblHtml.Text = bub.GetHtml();//用这个获取的不会显示图片
                }
                BindUserRole(uinfo);
                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "Main.aspx'>工作台</a></li><li><a href='" + customPath2 + "User/UserManage.aspx'>会员管理</a></li><li class='active'>修改会员信息</li>");
            }
            //增加模型选项卡
            DataTable dtModelUser = bm.GetListUser();
            string    labstr      = "";
            int       tabnum      = 3;
            for (int i = 0; i < dtModelUser.Rows.Count; i++)
            {
                string    tablename = dtModelUser.Rows[i]["TableName"].ToString();
                DataTable info      = bmf.SelectTableName(tablename, "userid=" + UserID);
                if (info != null && info.Rows.Count > 0)
                {
                    int       modelid    = Convert.ToInt32(dtModelUser.Rows[i]["ModelId"].ToString());
                    DataTable modelfiled = bmf.GetModelFieldAllList(modelid).Tables[0];
                    labstr      += "<td id=\"TabTitle" + (tabnum) + ("\" class=\"tabtitle\" onclick=\"ShowTabss(" + (tabnum)) + ")\">\r";
                    labstr      += dtModelUser.Rows[i]["ModelName"].ToString() + "\r";
                    labstr      += ("</td>\r");
                    tabTitles   += ", \"TabTitle" + (tabnum) + "\"";
                    tabs        += ", \"Tabs" + (tabnum) + "\"";
                    ltlTab.Text += "<tbody id=\"Tabs" + (tabnum) + "\" style=\"display: none\">";
                    ltlTab.Text += "<tr>";
                    ltlTab.Text += "<td colspan=\"4\">";
                    ltlTab.Text += " <table class=\"tblModelFiled\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\">";

                    ltlTab.Text += this.bmf.GetUpdateHtmlUser(modelid, 0, info);
                    //for (int k = 0; k < modelfiled.Rows.Count; k++)
                    //{
                    //    if (k % 2 == 0)
                    //    {
                    //        ltlTab.Text += "<tr class=\"tdbg\" onmouseover=\"this.className='tdbgmouseover'\" onmouseout=\"this.className='tdbg'\">\r";
                    //    }
                    //    ltlTab.Text += "<td class=\"tdbgleft\" style=\"width: 15%; height: 22px\" align=\"right\">\r";
                    //    ltlTab.Text += modelfiled.Rows[k]["FieldAlias"].ToString() + "\r";
                    //    ltlTab.Text += "</td>\r";
                    //    ltlTab.Text += "<td style=\"width: 35%; height: 22px\" align=\"left\">\r";
                    //    //ltlTab.Text += "<input type=\"text\" value=\"" + info.Rows[0][modelfiled.Rows[k]["FieldName"].ToString()].ToString() + "\"class=\"l_input\" />" + "\r";
                    //    ltlTab.Text += "</td>\r";
                    //    if (k % 2 != 0)
                    //    {
                    //        ltlTab.Text += "</tr>\r";
                    //    }
                    //}
                    ltlTab.Text += " </table>";
                    ltlTab.Text += " </td>";
                    ltlTab.Text += " </tr>";
                    ltlTab.Text += "</tbody>";
                    tabnum++;
                }
            }
            models.Text = labstr.ToString();
        }