This commit is contained in:
2021-01-29 21:21:05 +00:00
parent 6899cb632f
commit 32c1a3a4b6
4 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
using Newtonsoft.Json.Linq;
namespace AyaNova.Models
{
public class DataListReportRequest : DataListSelectedRequest
{
public long ReportId { get; set; }
public JToken ClientMeta { get; set; }//meta JSON data about client for report script processing at server
}
}

View File

@@ -0,0 +1,18 @@
using System.Collections.Generic;
namespace AyaNova.Models
{
//common base class for REQUESTING a datalist from the client
public class DataListRequestBase
{
public string DataListKey { get; set; }
public string ClientCriteria { get; set; }
public long FilterId {get;set;}
}
/*
REQUEST
BASE: DataListKey, ClientCriteria, FilterId
TABLEVERSION: Limit, Offset : base
REPORT/BULK OPS VERSION: ObjectType(ayatype),SelectedRowIds(long[]) : base
*/
}

View File

@@ -0,0 +1,12 @@
using AyaNova.Biz;
namespace AyaNova.Models
{
//Request version of selection request used by report and bulk ops
//handles posts from client
public class DataListSelectedRequest : DataListBase
{
public AyaType ObjectType { get; set; }
public long[] SelectedRowIds { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace AyaNova.Models
{
//Handles posts from client
public sealed class DataListTableRequest : DataListRequestBase
{
public int? Offset { get; set; }
public int? Limit { get; set; }
}
}