This commit is contained in:
2021-07-15 19:55:34 +00:00
parent 8e5c928f62
commit 9a70861b79
8 changed files with 36 additions and 6 deletions

2
.vscode/launch.json vendored
View File

@@ -53,7 +53,7 @@
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
"AYANOVA_FOLDER_TEMPORARY_SERVER_FILES": "c:\\temp\\RavenTestData\\tempfiles",
"AYANOVA_SERVER_TEST_MODE": "false",
"AYANOVA_SERVER_TEST_MODE": "true",
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-7",
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_13\\bin\\"

View File

@@ -49,7 +49,7 @@ docs / sections required
* These restricted Users are not shown the option of viewing the full work order list. They will access their work orders via their Home -> Schedule form
* Work order main menu
* limited to Report, Save and Help options only
* Work order / work order item can not be created or deleted
* Work order / work order items can not be created or deleted
* Work order *Item* restrictions
* These restricted Users will only be able to access the Work order Items for which they are Scheduled in the work order editing form. In other words if you do not want a Sub contractor or tech - restricted user to see parts of a Work order do not add them to the Scheduled users collection on those work order items

View File

@@ -50,6 +50,16 @@ namespace AyaNova.DataList
SqlValueColumnName = "aReport.active"
});
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "SelectRoles",
FieldKey = "roles",
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()),
SqlValueColumnName = "areport.roles"
});
}
}//eoc
}//eons

View File

@@ -58,6 +58,26 @@ namespace AyaNova.DataList
SqlValueColumnName = "aworkorderstatus.locked"
});
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "SelectRoles",
FieldKey = "SelectRoles",
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()),
SqlValueColumnName = "aworkorderstatus.selectroles"
});
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "WorkOrderStatusRemoveRoles",
FieldKey = "WorkOrderStatusRemoveRoles",
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()),
SqlValueColumnName = "aworkorderstatus.removeroles"
});
}
}//eoc

View File

@@ -1639,7 +1639,7 @@
"WorkOrderStatusName": "Name",
"WorkOrderStatusNotes": "Anmerkungen",
"WorkOrderStatusColor": "Farbe",
"WorkOrderStatusSelectRoles": "Wer kann auswählen",
"SelectRoles": "Wer kann auswählen",
"WorkOrderStatusRemoveRoles": "Wer kann entfernen",
"WorkOrderStatusCompleted": "Ist ein abgeschlossener Status",
"WorkOrderStatusLocked": "Ist ein Sperrstatus",

View File

@@ -1639,7 +1639,7 @@
"WorkOrderStatusName": "Name",
"WorkOrderStatusNotes": "Notes",
"WorkOrderStatusColor": "Color",
"WorkOrderStatusSelectRoles": "Who can select",
"SelectRoles": "Who can select",
"WorkOrderStatusRemoveRoles": "Who can remove",
"WorkOrderStatusCompleted": "Is a completed status",
"WorkOrderStatusLocked": "Is a locking status",

View File

@@ -1639,7 +1639,7 @@
"WorkOrderStatusName": "Nombre",
"WorkOrderStatusNotes": "Notas",
"WorkOrderStatusColor": "Color",
"WorkOrderStatusSelectRoles": "Quien puede seleccionar",
"SelectRoles": "Quien puede seleccionar",
"WorkOrderStatusRemoveRoles": "Quien puede remover",
"WorkOrderStatusCompleted": "Es un estado completo",
"WorkOrderStatusLocked": "Es un estado de bloqueo",

View File

@@ -1639,7 +1639,7 @@
"WorkOrderStatusName": "Nom",
"WorkOrderStatusNotes": "Remarques",
"WorkOrderStatusColor": "Couleur",
"WorkOrderStatusSelectRoles": "Qui peut sélectionner",
"SelectRoles": "Qui peut sélectionner",
"WorkOrderStatusRemoveRoles": "Qui peut supprimer",
"WorkOrderStatusCompleted": "Est un statut terminé",
"WorkOrderStatusLocked": "Est un statut de verrouillage",