using System.Collections.Generic; using AyaNova.Biz; namespace AyaNova.DataList { internal class TaskGroupDataList : DataListProcessingBase { public TaskGroupDataList(long translationId) { DefaultListAType = AyaType.TaskGroup; SQLFrom = "from ataskgroup"; var RoleSet = BizRoles.GetRoleSet(DefaultListAType); AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change; DefaultColumns = new List() { "taskgroupname" }; DefaultSortBy = new Dictionary() { { "taskgroupname", "+" } }; FieldDefinitions = new List(); FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaskGroupName", FieldKey = "taskgroupname", AType = (int)AyaType.TaskGroup, UiFieldDataType = (int)UiFieldDataType.Text, SqlIdColumnName = "ataskgroup.id", SqlValueColumnName = "ataskgroup.name", IsRowId = true }); FieldDefinitions.Add(new DataListFieldDefinition { TKey = "TaskGroupNotes", FieldKey = "Notes", UiFieldDataType = (int)UiFieldDataType.Text, SqlValueColumnName = "ataskgroup.notes" }); FieldDefinitions.Add(new DataListFieldDefinition { TKey = "Active", FieldKey = "taskgroupactive", UiFieldDataType = (int)UiFieldDataType.Bool, SqlValueColumnName = "ataskgroup.active" }); } }//eoc }//eons