示例#1
0
        private void Bind(int intCurrentIndex)
        {
            TB_AssignRoom mTB_AssignRoom = new TB_AssignRoom();
            AssignRoomBLL mAssignRoomBLL = new AssignRoomBLL();
            Pager         pager          = new Pager();
            DataTable     dtSource       = null;

            pager.CurrentPageIndex = intCurrentIndex;
            pager.srcOrder         = "  ID desc";

            dtSource             = mAssignRoomBLL.GetPagerData(ref pager, this.txtCardNo.Text.Trim(), this.ddlStatus.SelectedValue);
            GridView1.DataSource = dtSource;
            GridView1.DataBind();

            this.Pager1.ItemCount    = pager.TotalRecord;
            this.Pager1.PageCount    = pager.TotalPage;
            this.Pager1.CurrentIndex = pager.CurrentPageIndex;
            this.Pager1.PageSize     = pager.PageSize;
        }