This commit is contained in:
64
server/AyaNova/DataList/WorkOrderItemStatusDataList.cs
Normal file
64
server/AyaNova/DataList/WorkOrderItemStatusDataList.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
internal class WorkOrderItemStatusDataList : DataListProcessingBase
|
||||
{
|
||||
public WorkOrderItemStatusDataList()
|
||||
{
|
||||
DefaultListAType = AyaType.WorkOrderItemStatus;
|
||||
SQLFrom = "from aworkorderstatus";
|
||||
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 = "aworkorderstatus.id",
|
||||
SqlValueColumnName = "aworkorderstatus.name",
|
||||
SqlColorColumnName = "aworkorderstatus.color",
|
||||
IsRowId = true
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WorkOrderItemStatusNotes",
|
||||
FieldKey = "WorkOrderItemStatusNotes",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlValueColumnName = "aworkorderstatus.notes"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Active",
|
||||
FieldKey = "Active",
|
||||
UiFieldDataType = (int)UiFieldDataType.Bool,
|
||||
SqlValueColumnName = "aworkorderstatus.active"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WorkOrderItemStatusCompleted",
|
||||
FieldKey = "WorkOrderItemStatusCompleted",
|
||||
UiFieldDataType = (int)UiFieldDataType.Bool,
|
||||
SqlValueColumnName = "aworkorderstatus.completed"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "WorkOrderItemStatusLocked",
|
||||
FieldKey = "WorkOrderItemStatusLocked",
|
||||
UiFieldDataType = (int)UiFieldDataType.Bool,
|
||||
SqlValueColumnName = "aworkorderstatus.locked"
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
Reference in New Issue
Block a user