This commit is contained in:
2022-06-15 17:49:50 +00:00
parent ba7344df69
commit a874c0a6c3

View File

@@ -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<string>() { "integrationname" };
DefaultSortBy = new Dictionary<string, string>() { { "integrationname", "+" } };
FieldDefinitions = new List<DataListFieldDefinition>();
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