Esempio n. 1
0
        public PagingResultBean <ENTITY> BuildPagingResultBean(PagingBean pb, int allRecordCount, IList <ENTITY> selectedList)
        {
            PagingResultBean <ENTITY> rb = new PagingResultBean <ENTITY>();

            rb.TableDbName       = _tableDbName;
            rb.AllRecordCount    = allRecordCount;
            rb.SelectedList      = selectedList;
            rb.OrderByClause     = pb.SqlComponentOfOrderByClause;
            rb.CurrentPageNumber = pb.FetchPageNumber;
            rb.PageSize          = pb.FetchSize;
            return(rb);
        }
Esempio n. 2
0
 protected bool IsNecessaryToReadPageAgain(PagingResultBean <ENTITY> rb)
 {
     return(rb.AllRecordCount > 0 && rb.SelectedList.Count == 0);
 }