using System.Collections.Generic; using AyaNova.Biz; using Newtonsoft.Json.Linq; namespace AyaNova.PickList { /// /// PickList object base class /// internal abstract class AyaPickList : IAyaPickList { public AyaPickList() { } public string SQLFrom { get; set; } public List ColumnDefinitions { get; set; } public AuthorizationRoles AllowedRoles { get; set; } public AyaType DefaultListObjectType { get; set; } public string DefaultTemplate { get; set; } //return array of field keys in list view public List GetFieldListFromTemplate(JArray template) { List ret = new List(); for (int i = 0; i < template.Count; i++) { var cm = template[i]; ret.Add(cm["fld"].Value()); } return ret; } }//eoc }//eons