Ejemplo n.º 1
0
        private unsafe void __BindRole(ListControl __drp)
        {
            SiteRoles[] rolesArray;
            SiteRoles   roles;

            SiteRoles[] rolesArray2;
            int         num;
            bool        flag;

            __drp.Items.Clear();
            rolesArray = SiteRoles.List(SitePortal.GetCurrentPortalId());
            __drp.Items.Add(new ListItem("--请选择--", ""));
            rolesArray2 = rolesArray;
            num         = 0;
            goto Label_0066;
Label_003A:
            roles = rolesArray2[num];
            __drp.Items.Add(new ListItem(roles.RoleName, &roles.Id.ToString()));
            num += 1;
Label_0066:
            if ((num < ((int)rolesArray2.Length)) != null)
            {
                goto Label_003A;
            }
            return;
        }
Ejemplo n.º 2
0
        private void __BindData()
        {
            SiteRoles[] rolesArray;
            ArrayList   list;

            rolesArray          = SiteRoles.List(SitePortal.GetCurrentPortalId());
            list                = PageUtil.GetPagedResult(rolesArray, this.PaginationBar1.PageIndex - 1, this.PaginationBar1.PageSize);
            this.rpt.DataSource = list;
            this.rpt.DataBind();
            this.PaginationBar1.RecordCount = (int)rolesArray.Length;
            this.PaginationBar1.Visible     = (((int)rolesArray.Length) < this.PaginationBar1.PageSize) == 0;
            return;
        }