This commit is contained in:
2021-01-26 19:13:19 +00:00
parent cc651c1c7d
commit 8ebc877c33
5 changed files with 16 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ using Microsoft.AspNetCore.Mvc;
namespace AyaNova.DataList
{
public sealed class ListOptions
public sealed class DataListOptions
{
public const int MaxPageSize = 1000;
public const int DefaultOffset = 0;
@@ -19,6 +19,13 @@ namespace AyaNova.DataList
[FromBody, Required]
public string DataListKey { get; set; }
/*
columns:["PartInventoryTransactionEntryDate","PartPartNumber","PartWarehouseName","PartInventoryTransactionQuantity","PartInventoryTransactionDescription","PartInventoryTransactionSource","PartInventoryBalance"]
sortBy:["PartInventoryTransactionEntryDate"],//same as grid natively does all columns here
sortDesc:[true],//same as grid natively does, all columns here true or false each
filter:[{column:"PartPartNumber",items:[{op: "=",value: "400735"}]}],
variant:"string"
*/
[FromBody]
public string ListView { get; set; }//optional, if null or empty will use default list view built into DataList