LISTS WORKING cleanup afterwords
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user