41 lines
1.5 KiB
C#
41 lines
1.5 KiB
C#
using System.Collections.Generic;
|
|
using Sockeye.Biz;
|
|
namespace Sockeye.DataList
|
|
{
|
|
internal class IntegrationDataList : DataListProcessingBase
|
|
{
|
|
public IntegrationDataList(long translationId)
|
|
{
|
|
DefaultListAType = SockType.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",
|
|
SockType = (int)SockType.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 |