This commit is contained in:
41
server/AyaNova/DataList/IntegrationDataList.cs
Normal file
41
server/AyaNova/DataList/IntegrationDataList.cs
Normal 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
|
||||||
Reference in New Issue
Block a user