diff --git a/server/AyaNova/DataList/IntegrationDataList.cs b/server/AyaNova/DataList/IntegrationDataList.cs new file mode 100644 index 00000000..9152b188 --- /dev/null +++ b/server/AyaNova/DataList/IntegrationDataList.cs @@ -0,0 +1,41 @@ +using System.Collections.Generic; +using AyaNova.Biz; +namespace AyaNova.DataList +{ + internal class IntegrationDataList : DataListProcessingBase + { + public IntegrationDataList(long translationId) + { + DefaultListAType = AyaType.Integration; + SQLFrom = "from aintegration"; + var RoleSet = BizRoles.GetRoleSet(DefaultListAType); + AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change; + DefaultColumns = new List() { "integrationname" }; + DefaultSortBy = new Dictionary() { { "integrationname", "+" } }; + FieldDefinitions = new List(); + + FieldDefinitions.Add(new DataListFieldDefinition + { + TKey = "IntegrationName", + FieldKey = "integrationname", + AType = (int)AyaType.Integration, + UiFieldDataType = (int)UiFieldDataType.Text, + SqlIdColumnName = "aintegration.id", + SqlValueColumnName = "aintegration.name", + IsRowId = true + }); + + + + FieldDefinitions.Add(new DataListFieldDefinition + { + TKey = "Active", + FieldKey = "partassemblyactive", + UiFieldDataType = (int)UiFieldDataType.Bool, + SqlValueColumnName = "aintegration.active" + }); + + + } + }//eoc +}//eons \ No newline at end of file