예제 #1
0
        void BindNotApprovedUsers()
        {
            if (!canManageUsers)
            {
                return;
            }

            siteUserPage = SiteUser.GetNotApprovedUsers(
                siteSettings.SiteId,
                pageNumber,
                pageSize,
                out totalPages
                );

            if ((pageNumber > 1) && (pageNumber > totalPages))
            {
                pageNumber   = 1;
                siteUserPage = SiteUser.GetNotApprovedUsers(
                    siteSettings.SiteId,
                    pageNumber,
                    pageSize,
                    out totalPages
                    );
            }
        }
예제 #2
0
        void BindNotApprovedUsers()
        {
            if (!canManageUsers)
            {
                return;
            }

            siteUserPage = SiteUser.GetNotApprovedUsers(
                siteSettings.SiteId,
                pageNumber,
                pageSize,
                out totalPages
                );

            if ((pageNumber > 1) && (pageNumber > totalPages))
            {
                pageNumber   = 1;
                siteUserPage = SiteUser.GetNotApprovedUsers(
                    siteSettings.SiteId,
                    pageNumber,
                    pageSize,
                    out totalPages
                    );
            }

            log.Debug($"found {siteUserPage.Count} users not approved");
        }
예제 #3
0
        void BindNotApprovedUsers()
        {
            if (!canManageUsers)
            {
                return;
            }

            List <SiteUser> siteUserPage = SiteUser.GetNotApprovedUsers(
                siteSettings.SiteId,
                pageNumber,
                pageSize,
                out totalPages);

            if ((pageNumber > 1) && (pageNumber > totalPages))
            {
                pageNumber   = 1;
                siteUserPage = SiteUser.GetNotApprovedUsers(
                    siteSettings.SiteId,
                    pageNumber,
                    pageSize,
                    out totalPages);
            }

            //string pageUrl = SiteRoot
            //    + "/MemberList.aspx?"
            //    + "pagenumber={0}"
            //    + "&amp;needapproval=true";

            //pgrMembers.PageURLFormat = pageUrl;
            //pgrMembers.ShowFirstLast = true;
            //pgrMembers.CurrentIndex = pageNumber;
            //pgrMembers.PageSize = pageSize;
            //pgrMembers.PageCount = totalPages;
            //pgrMembers.Visible = (totalPages > 1);


            //rptUsers.DataSource = siteUserPage;

            //rptUsers.DataBind();
        }