Right in the middle of conversion, not compilable yet

This commit is contained in:
2021-01-27 00:59:36 +00:00
parent 8ebc877c33
commit 3ffc01f393
23 changed files with 250 additions and 167 deletions

View File

@@ -16,7 +16,7 @@ namespace AyaNova.DataList
//CoreBizObject add here
//well, not here exactly but add a new DATALIST class if it will be displayed as a list anywhere in the UI or reported on
public AyaDataList()
{
{
}
@@ -25,9 +25,22 @@ namespace AyaNova.DataList
public AuthorizationRoles AllowedRoles { get; set; }
public AyaType DefaultListObjectType { get; set; }
public string DefaultListView { get; set; }
public long CurrentUserId { get; set; }
public List<string> DefaultColumns { get; set; }
public List<string> DefaultSortBy { get; set; }
//set defaults if not provided in listOptions
public void SetListOptionDefaultsIfNecessary(DataListOptions listOptions)
{
if (listOptions.Columns.Count == 0)
listOptions.Columns = DefaultColumns;
if (listOptions.SortBy.Count == 0)
listOptions.SortBy = DefaultSortBy;
}
//return array of field keys in list view
public List<string> GetFieldListFromListView(JArray listViewArray)
@@ -215,7 +228,6 @@ namespace AyaNova.DataList
}
}//eoc
}//eons