This commit is contained in:
2021-01-29 22:26:50 +00:00
parent bf55d43e37
commit 09ebcba1e3
5 changed files with 47 additions and 5 deletions

View File

@@ -23,6 +23,7 @@ namespace AyaNova.Models
public virtual DbSet<Translation> Translation { get; set; }
public virtual DbSet<TranslationItem> TranslationItem { get; set; }
public virtual DbSet<DataListSavedFilter> DataListSavedFilter { get; set; }
public virtual DbSet<DataListSavedColumnView> DataListSavedColumnView { get; set; }
public virtual DbSet<Tag> Tag { get; set; }
public virtual DbSet<FormCustom> FormCustom { get; set; }
public virtual DbSet<PickListTemplate> PickListTemplate { get; set; }

View File

@@ -0,0 +1,27 @@
using System.ComponentModel.DataAnnotations;
namespace AyaNova.Models
{
//this is a hiearchical object so saving as a JSON fragment still best option
public class DataListSavedColumnView
{
public long Id { get; set; }
public uint Concurrency { get; set; }
[Required]
public long UserId { get; set; }//only relevant if non-public for fetching either in list or single (public true OR userid matches)
[Required, MaxLength(255)]
public string ListKey { get; set; }//max 255 characters ascii set
public string Columns { get; set; }//JSON serialized Column array: columns:["PartInventoryTransactionEntryDate","PartPartNumber","PartWarehouseName","PartInventoryTransactionQuantity","PartInventoryTransactionDescription","PartInventoryTransactionSource","PartInventoryBalance"]
public string Sort { get; set; }//JSON serialized SortBy Dictionary: sortBy:[{"PartInventoryTransactionEntryDate":"-"}],//All sorted columns here as keyvalue pairs value is a string of "+" for ascending "-" for descending and are IN ORDER of how to be sorted
//
}
}

View File

@@ -24,9 +24,18 @@ namespace AyaNova.Models
base.ClientCriteria=request.ClientCriteria;
base.DataListKey=request.DataListKey;
dataList.SetListOptionDefaultsIfNecessary(this);
//populate some values from saved filter and default columnview
//COLUMNS
//SET COLUMNS
//get user default DataListProcessingBase for this list key
//SET SORTBY
//SET FILTER
//SERVER FILTER PROCESSING HERE CODE SEE DATALISTFETCHER