50 lines
1.9 KiB
C#
50 lines
1.9 KiB
C#
using System.Collections.Generic;
|
|
using AyaNova.Biz;
|
|
namespace AyaNova.DataList
|
|
{
|
|
internal class WorkOrderItemStatusDataList : DataListProcessingBase
|
|
{
|
|
public WorkOrderItemStatusDataList()
|
|
{
|
|
DefaultListAType = AyaType.WorkOrderItemStatus;
|
|
SQLFrom = "from aworkorderitemstatus";
|
|
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
|
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
|
DefaultColumns = new List<string>() { "WorkOrderItemStatusName", "WorkOrderItemStatusNotes", "Active" };
|
|
DefaultSortBy = new Dictionary<string, string>() { { "WorkOrderItemStatusName", "+" } };
|
|
FieldDefinitions = new List<DataListFieldDefinition>();
|
|
|
|
FieldDefinitions.Add(new DataListFieldDefinition
|
|
{
|
|
TKey = "WorkOrderItemStatusName",
|
|
FieldKey = "WorkOrderItemStatusName",
|
|
AType = (int)AyaType.WorkOrderItemStatus,
|
|
UiFieldDataType = (int)UiFieldDataType.Text,
|
|
SqlIdColumnName = "aworkorderitemstatus.id",
|
|
SqlValueColumnName = "aworkorderitemstatus.name",
|
|
SqlColorColumnName = "aworkorderitemstatus.color",
|
|
IsRowId = true
|
|
});
|
|
|
|
FieldDefinitions.Add(new DataListFieldDefinition
|
|
{
|
|
TKey = "WorkOrderItemStatusNotes",
|
|
FieldKey = "WorkOrderItemStatusNotes",
|
|
UiFieldDataType = (int)UiFieldDataType.Text,
|
|
SqlValueColumnName = "aworkorderitemstatus.notes"
|
|
});
|
|
|
|
FieldDefinitions.Add(new DataListFieldDefinition
|
|
{
|
|
TKey = "Active",
|
|
FieldKey = "Active",
|
|
UiFieldDataType = (int)UiFieldDataType.Bool,
|
|
SqlValueColumnName = "aworkorderitemstatus.active"
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
}//eoc
|
|
}//eons |