This commit is contained in:
9
server/AyaNova/models/DataListColumnFilter.cs
Normal file
9
server/AyaNova/models/DataListColumnFilter.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System.Collections.Generic;
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
public class DataListColumnFilter
|
||||
{
|
||||
public string op { get; set; }
|
||||
public string value { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -2,20 +2,7 @@ using System.Collections.Generic;
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
|
||||
//common base class for data table display at client, reporting and mass bulk operations
|
||||
public class DataListBase
|
||||
{
|
||||
public string DataListKey { get; set; }
|
||||
public Dictionary<string, string> SortBy { get; set; }
|
||||
public List<DataListFilterOption> Filter { get; set; }
|
||||
public string ClientCriteria { get; set; }
|
||||
|
||||
public DataListBase()
|
||||
{
|
||||
SortBy = new Dictionary<string, string>();
|
||||
Filter = new List<DataListFilterOption>();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
OLD EXAMPLE:
|
||||
@@ -52,9 +39,4 @@ namespace AyaNova.Models
|
||||
}
|
||||
}
|
||||
|
||||
public class DataListColumnFilter
|
||||
{
|
||||
public string op { get; set; }
|
||||
public string value { get; set; }
|
||||
}
|
||||
}
|
||||
21
server/AyaNova/models/DataListProcessingBase.cs
Normal file
21
server/AyaNova/models/DataListProcessingBase.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
|
||||
//common base class for data table display at client, reporting and mass bulk operations
|
||||
public class DataListProcessingBase
|
||||
{
|
||||
public string DataListKey { get; set; }
|
||||
public Dictionary<string, string> SortBy { get; set; }
|
||||
public List<DataListFilterOption> Filter { get; set; }
|
||||
public string ClientCriteria { get; set; }
|
||||
|
||||
public DataListProcessingBase()
|
||||
{
|
||||
SortBy = new Dictionary<string, string>();
|
||||
Filter = new List<DataListFilterOption>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -3,7 +3,7 @@ namespace AyaNova.Models
|
||||
{
|
||||
//Request version of selection request used by report and bulk ops
|
||||
//handles posts from client
|
||||
public class DataListSelectedRequest : DataListBase
|
||||
public class DataListSelectedRequest : DataListProcessingBase
|
||||
{
|
||||
public AyaType ObjectType { get; set; }
|
||||
public long[] SelectedRowIds { get; set; }
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace AyaNova.Models
|
||||
//Used to drive processes that rely on selections made at client from a datalist
|
||||
//either a preselected list of id's or a datalist key and listview filter object that can
|
||||
//be used to rehydrate a list of id's
|
||||
public class DataListSelectionOptions : DataListBase
|
||||
public class DataListSelectionOptions : DataListProcessingBase
|
||||
{
|
||||
public AyaType ObjectType { get; set; }
|
||||
public long[] SelectedRowIds { get; set; }
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
public sealed class DataListTableOptions : DataListBase
|
||||
public sealed class DataListTableOptions : DataListProcessingBase
|
||||
{
|
||||
public List<string> Columns { get; set; }
|
||||
public const int MaxPageSize = 1000;
|
||||
|
||||
Reference in New Issue
Block a user