コード例 #1
0
        private void DlstAdminBind()
        {
            IList <AdministratorInfo> list = new List <AdministratorInfo>();

            if ((this.m_OperateCode != -1) && string.IsNullOrEmpty(this.m_AdminName))
            {
                list = Administrators.GetAdminListByOperateCode((this.Pager.CurrentPageIndex - 1) * this.Pager.PageSize, this.Pager.PageSize, this.m_OperateCode);
            }
            else
            {
                list = Administrators.GetAdminList((this.Pager.CurrentPageIndex - 1) * this.Pager.PageSize, this.Pager.PageSize, this.m_AdminName);
            }
            this.DlstAdmin.DataSource = list;
            this.Pager.RecordCount    = Administrators.GetTotalOfAdmin();
            this.DlstAdmin.DataBind();
        }