private void MyBind()
        {
            DataTable dt = urBll.SelByCompID(B_User_Plat.GetLogin().CompID);

            EGV.DataSource = dt;
            EGV.DataBind();
        }
示例#2
0
        private void MyBind(int uid)
        {
            showViboIcons(uid);
            M_UserInfo mu = buser.SelReturnModel(uid);

            userMod            = userBll.SelReturnModel(uid);
            UserName_T2.Text   = userMod.UserName;
            Plat_Group_T2.Text = string.IsNullOrEmpty(userMod.GroupName.Trim(',')) ? "未分组" : userMod.GroupName.Trim(',');
            Mobile_T2.Text     = userMod.Mobile;
            Post_T2.Text       = userMod.Post;
            TrueName_T2.Text   = mu.HoneyName;
            SFile_Up.FileUrl   = mu.UserFace;
            UserRole           = userMod.Plat_Role;
            DataTable roledt = urBll.SelByCompID(userMod.CompID);

            Role_Rep.DataSource = roledt;
            Role_Rep.DataBind();
            if (!string.IsNullOrWhiteSpace(UserRole.Trim(',')))
            {
                roledt.DefaultView.RowFilter = "ID in(" + UserRole.Trim(',') + ")";
                Role_View_Rep.DataSource     = roledt.DefaultView.ToTable();
                Role_View_Rep.DataBind();
            }
        }