LISTS WORKING cleanup afterwords

This commit is contained in:
2021-02-08 20:10:28 +00:00
parent 4a7f9f06ca
commit 658b345378
48 changed files with 50 additions and 2586 deletions

View File

@@ -4,38 +4,16 @@ namespace AyaNova.DataList
{
internal class ReportDataList : DataListProcessingBase
{
public ReportDataList()
{
DefaultListObjectType = AyaType.Report;
SQLFrom = "from aReport";
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
// //Default ListView
// dynamic dlistView = new JArray();
// dynamic cm = new JObject();
// cm.fld = "name";
// cm.sort = "+";
// dlistView.Add(cm);
// cm = new JObject();
// cm.fld = "objecttype";
// dlistView.Add(cm);
// cm = new JObject();
// cm.fld = "active";
// dlistView.Add(cm);
// DefaultListView = dlistView.ToString(Newtonsoft.Json.Formatting.None);
DefaultColumns = new List<string>() { "name", "objecttype", "active" };
DefaultSortBy = new Dictionary<string, string>() { { "name", "+" } };
FieldDefinitions = new List<DataListFieldDefinition>();
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "Report",
@@ -47,7 +25,6 @@ namespace AyaNova.DataList
IsRowId = true
});
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "AyaType",
@@ -57,7 +34,6 @@ namespace AyaNova.DataList
SqlValueColumnName = "areport.ObjectType"
});
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "Active",
@@ -66,8 +42,6 @@ namespace AyaNova.DataList
SqlValueColumnName = "aReport.active"
});
}
}//eoc
}//eons