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

@@ -3,14 +3,7 @@ using AyaNova.Biz;
namespace AyaNova.DataList
{
internal class EventDataList : DataListProcessingBase
{/*
Select aevent.id, aevent.created, aevent.ayid, aevent.ayatype, aevent.ayevent,
aevent.textra, auser.name, auser.id
from aevent
left join auser on (aevent.userid=auser.id)
*/
{
public EventDataList()
{
//NOTE: used this type because it's full BizFull and read only BizLimited only which is appropriate and there is no event type
@@ -18,38 +11,6 @@ namespace AyaNova.DataList
SQLFrom = "from aevent left join auser on (aevent.userid=auser.id)";
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
// //Default ListView
// dynamic dlistView = new JArray();
// dynamic cm = new JObject();
// cm.fld = "eventcreated";
// cm.sort = "-";
// dlistView.Add(cm);
// cm = new JObject();
// cm.fld = "event";
// dlistView.Add(cm);
// cm = new JObject();
// cm.fld = "object";
// dlistView.Add(cm);
// cm = new JObject();
// cm.fld = "AyaType";
// dlistView.Add(cm);
// cm = new JObject();
// cm.fld = "username";
// dlistView.Add(cm);
// cm = new JObject();
// cm.fld = "textra";
// dlistView.Add(cm);
// DefaultListView = dlistView.ToString(Newtonsoft.Json.Formatting.None);
DefaultColumns = new List<string>() { "eventcreated", "event", "object", "AyaType", "username", "textra" };
DefaultSortBy = new Dictionary<string, string>() { { "eventcreated", "-" } };
@@ -108,9 +69,6 @@ namespace AyaNova.DataList
UiFieldDataType = (int)UiFieldDataType.Text,
SqlValueColumnName = "aevent.textra"
});
}
}//eoc
}//eons