public void Load_ApprovalGroup()
    {
        int     Type       = 0;
        string  Group_Code = null;
        DataSet ds2        = BLL_POLOG_Register.POLOG_Get_AccountClassification(UDFLib.ConvertIntegerToNull(GetSessionUserID()), null);

        DDLGroup.DataSource     = ds2.Tables[1];
        DDLGroup.DataTextField  = "Approval_Group_Name";
        DDLGroup.DataValueField = "Approval_Group_Code";
        DDLGroup.DataBind();
        DDLGroup.Items.Insert(0, new ListItem("-Select-", "0"));
    }
示例#2
0
    public void Load_ApprovalGroup()
    {
        DataTable dt = objBLLAppLimit.Get_Approval_Group();


        DDLGroupFilter.DataSource     = dt;
        DDLGroupFilter.DataTextField  = "Group_Name";
        DDLGroupFilter.DataValueField = "Group_ID";
        DDLGroupFilter.DataBind();
        DDLGroupFilter.Items.Insert(0, new ListItem("-ALL-", "0"));


        DDLGroup.DataSource     = dt;
        DDLGroup.DataTextField  = "Group_Name";
        DDLGroup.DataValueField = "Group_ID";
        DDLGroup.DataBind();
        DDLGroup.Items.Insert(0, new ListItem("-Select-", "0"));
    }
示例#3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ShowPlatInfo(Convert.ToInt32(UserID));
                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 (UserID < 1)
                {
                    function.WriteErrMsg("请指定会员ID", ViewState["PageUrl"].ToString());
                }
                M_UserInfo uinfo = buser.SeachByID(DataConverter.CLng(UserID));
                if (uinfo.IsNull)
                {
                    function.WriteErrMsg("指定ID:" + UserID + "的用户不存在!可能已被删除!", ViewState["url"].ToString());
                }
                M_Uinfo binfo = buser.GetUserBaseByuserid(UserID);
                DDLGroup.DataSource     = gpBll.GetGroupList();
                DDLGroup.DataTextField  = "GroupName";
                DDLGroup.DataValueField = "GroupID";
                DDLGroup.DataBind();

                lblUser.Text       = uinfo.UserName;
                tbEmail.Text       = uinfo.Email;
                OldEmail_Hid.Value = uinfo.Email;
                txtPurm.Text       = uinfo.DummyPurse.ToString();
                tbQuestion.Text    = uinfo.Question;
                tbAnswer.Text      = uinfo.Answer;

                tbTrueName.Text         = uinfo.TrueName;
                tbUserSex.SelectedValue = binfo.UserSex ? "1" : "0";
                tbBirthday.Text         = binfo.BirthDay;
                tbOfficePhone.Text      = binfo.OfficePhone;
                tbHomePhone.Text        = binfo.HomePhone;
                tbMobile.Text           = binfo.Mobile;
                tbPHS.Text                 = binfo.PHS;
                tbFax.Text                 = binfo.Fax;
                tbAddress.Text             = binfo.Address;
                tbZipCode.Text             = binfo.ZipCode;
                txtHoneyName.Text          = uinfo.HoneyName;
                tbIDCard.Text              = binfo.IDCard;
                tbQQ.Text                  = binfo.QQ;
                tbHomepage.Text            = binfo.HomePage;
                UserFace_SFile.FileUrl     = uinfo.UserFace;
                UserFace_Img.ImageUrl      = uinfo.UserFace;
                tbFaceWidth.Text           = binfo.FaceWidth.ToString();
                tbFaceHeight.Text          = binfo.FaceHeight.ToString();
                tbSign.Text                = binfo.Sign;
                tbPrivacy.SelectedValue    = binfo.Privating.ToString();
                DDLGroup.SelectedValue     = uinfo.GroupID.ToString();
                txtUserCrite.Text          = uinfo.UserCreit.ToString();
                txtMoney.Text              = uinfo.Purse.ToString();
                txtPoint.Text              = uinfo.UserExp.ToString();
                txtSilverCoin.Text         = uinfo.SilverCoin.ToString();
                txtUserPoint.Text          = uinfo.UserPoint.ToString();  //点券
                txtboffExp.Text            = uinfo.boffExp.ToString();    //卖家积分
                txtConsumeExp.Text         = uinfo.ConsumeExp.ToString(); //消费积分
                txtDeadLine.Text           = uinfo.DeadLine.ToString();   //有效期截止时间
                txtCerificateDeadLine.Text = uinfo.CerificateDeadLine.ToString();
                VIPUser.SelectedValue      = binfo.VIPUser.ToString();
                Adress_Hid.Value           = binfo.Province + "," + binfo.City + "," + binfo.County;
                tbParentUserID.Text        = uinfo.ParentUserID.ToString();
                CompanyNameT.Text          = uinfo.CompanyName;
                CompanyDescribeT.Text      = uinfo.CompanyDescribe;
                WorkNum_T.Text             = uinfo.WorkNum;
                DataTable dtuser = buser.GetUserBaseByuserid(UserID.ToString());
                lblHtml.Text = bub.GetUpdateHtml(dtuser);
                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'><a href='" + Request.RawUrl + "'>修改会员信息</a> 当前用户:" + uinfo.UserName + "</li>");
            }
        }