Пример #1
0
 public ReportTable()
 {
     TableData = new List <TD>();
     TableHead = new TableHead {
         Headers = new string[0], SortOrder = 1
     };
     TablePaginator = new TablePaginator()
     {
         CurrentPage          = 0,
         TotalItems           = 0,
         PageSizes            = new[] { 50, 100, 150, 200, 250, 400 },
         PageSizeCurrentIndex = 3
     };
     TableFilter = new TF();
 }
Пример #2
0
 public ReportTable(List <TD> tableData, int totalItems = 0, int currentPage = 0, int currentPageSize = 3,
                    string[] headers = null, int sortOrder = 1, int[] pageSizes = null)
 {
     TableData = tableData;
     TableHead = new TableHead {
         Headers = headers ?? new string[0], SortOrder = sortOrder
     };
     TablePaginator = new TablePaginator()
     {
         CurrentPage          = currentPage,
         TotalItems           = totalItems,
         PageSizes            = pageSizes ?? new[] { 50, 100, 150, 200, 250, 400 },
         PageSizeCurrentIndex = currentPageSize
     };
     TableFilter = new TF();
 }