44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
using AyaNova.DataList;
|
|
|
|
|
|
namespace AyaNova.Models
|
|
{
|
|
internal sealed class DataListTableProcessingOptions : DataListProcessingBase
|
|
{
|
|
internal List<string> Columns { get; set; }
|
|
internal const int MaxPageSize = 1000;
|
|
internal const int DefaultOffset = 0;
|
|
internal const int DefaultLimit = 25;
|
|
internal int? Offset { get; set; }
|
|
internal int? Limit { get; set; }
|
|
|
|
internal DataListTableProcessingOptions(
|
|
DataListTableRequest request,
|
|
IDataListProcessing dataList,
|
|
AyContext ct)
|
|
{
|
|
//set some values from request
|
|
Limit=request.Limit;
|
|
Offset=request.Offset;
|
|
base.ClientCriteria=request.ClientCriteria;
|
|
base.DataListKey=request.DataListKey;
|
|
|
|
dataList.SetListOptionDefaultsIfNecessary(this);
|
|
|
|
//populate some values from saved filter and default columnview
|
|
|
|
//SET COLUMNS
|
|
//get user default DataListProcessingBase for this list key
|
|
|
|
//SET SORTBY
|
|
|
|
//SET FILTER
|
|
|
|
//SERVER FILTER PROCESSING HERE CODE SEE DATALISTFETCHER
|
|
|
|
|
|
|
|
}
|
|
}
|
|
} |