This commit is contained in:
30
server/PickList/AyaPickList.cs
Normal file
30
server/PickList/AyaPickList.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using Sockeye.Biz;
|
||||
using Newtonsoft.Json.Linq;
|
||||
namespace Sockeye.PickList
|
||||
{
|
||||
/// <summary>
|
||||
/// PickList object base class
|
||||
/// </summary>
|
||||
internal abstract class AyaPickList : IAyaPickList
|
||||
{
|
||||
public AyaPickList()
|
||||
{ }
|
||||
public string SQLFrom { get; set; }
|
||||
public List<AyaPickListFieldDefinition> ColumnDefinitions { get; set; }
|
||||
public AuthorizationRoles AllowedRoles { get; set; }
|
||||
public SockType DefaultListAType { get; set; }
|
||||
public string DefaultTemplate { get; set; }
|
||||
//return array of field keys in list view
|
||||
public List<string> GetFieldListFromTemplate(JArray template)
|
||||
{
|
||||
List<string> ret = new List<string>();
|
||||
for (int i = 0; i < template.Count; i++)
|
||||
{
|
||||
var cm = template[i];
|
||||
ret.Add(cm["fld"].Value<string>());
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
Reference in New Issue
Block a user