Пример #1
0
        private void BindList()
        {
            LeaveCommentQuery leaveCommentQuery = new LeaveCommentQuery();

            leaveCommentQuery.PageIndex = this.pager.PageIndex;
            leaveCommentQuery.PageSize  = this.pager.PageSize;
            if (!string.IsNullOrEmpty(base.Request.QueryString["MessageStatus"]))
            {
                leaveCommentQuery.MessageStatus = (MessageStatus)int.Parse(base.Request.QueryString["MessageStatus"]);
                this.statusList.SelectedValue   = leaveCommentQuery.MessageStatus;
            }
            DbQueryResult leaveComments = NoticeHelper.GetLeaveComments(leaveCommentQuery);

            this.leaveList.DataSource = leaveComments.Data;
            this.leaveList.DataBind();
            this.pager.TotalRecords  = leaveComments.TotalRecords;
            this.pager1.TotalRecords = leaveComments.TotalRecords;
        }