This commit is contained in:
2021-07-26 22:35:59 +00:00
parent ef951817e4
commit 39331e578a
9 changed files with 101 additions and 17 deletions

View File

@@ -10,7 +10,7 @@ namespace AyaNova.DataList
SQLFrom = "from aworkorderstatus";
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
DefaultColumns = new List<string>() { "WorkOrderStatusName", "SelectRoles", "WorkOrderStatusRemoveRoles", "Active" };
DefaultColumns = new List<string>() { "WorkOrderStatusName", "SelectRoles", "RemoveRoles", "Active" };
DefaultSortBy = new Dictionary<string, string>() { { "WorkOrderStatusName", "+" } };
FieldDefinitions = new List<DataListFieldDefinition>();
@@ -70,8 +70,8 @@ namespace AyaNova.DataList
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "WorkOrderStatusRemoveRoles",
FieldKey = "WorkOrderStatusRemoveRoles",
TKey = "RemoveRoles",
FieldKey = "RemoveRoles",
UiFieldDataType = (int)UiFieldDataType.Roles,
//NOTE: not technically an enum list but this will trigger datagrid at client to fetch roles for special handling
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AuthorizationRoles).ToString()),