mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-01-11 12:28:39 +00:00
add position information/data
This commit is contained in:
parent
1b60ddd4a1
commit
5b004eeb32
|
|
@ -92,6 +92,54 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 1002404001,
|
||||
"pid": "/",
|
||||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Departments",
|
||||
"uri": "{/prefix}humanresource/position/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
"from": "HumanResourceManagement",
|
||||
"permission": { "permission": 2, "type": null, "element": null },
|
||||
"parent": 1002401001,
|
||||
"children": [
|
||||
{
|
||||
"id": 1002404101,
|
||||
"pid": "/humanresource/position",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "List",
|
||||
"uri": "{/prefix}humanresource/position/list",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
"from": "HumanResourceManagement",
|
||||
"permission": { "permission": 2, "type": null, "element": null },
|
||||
"parent": 1002404001,
|
||||
"children": [
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 1002402201,
|
||||
"pid": "/humanresource/position",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Create",
|
||||
"uri": "{/prefix}humanresource/position/create?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
"from": "HumanResourceManagement",
|
||||
"permission": { "permission": 4, "type": null, "element": null },
|
||||
"parent": 1002404001,
|
||||
"children": [
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,8 +124,8 @@
|
|||
"primary": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"hr_staff_history_media_item": {
|
||||
"name": "hr_staff_history_media_item",
|
||||
"hr_staff_history_media_history": {
|
||||
"name": "hr_staff_history_media_history",
|
||||
"type": "INT",
|
||||
"null": false,
|
||||
"foreignTable": "hr_staff_history",
|
||||
|
|
@ -200,8 +200,8 @@
|
|||
"primary": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"hr_staff_education_history_media_item": {
|
||||
"name": "hr_staff_education_history_media_item",
|
||||
"hr_staff_education_history_media_history": {
|
||||
"name": "hr_staff_education_history_media_history",
|
||||
"type": "INT",
|
||||
"null": false,
|
||||
"foreignTable": "hr_staff_education_history",
|
||||
|
|
@ -266,8 +266,8 @@
|
|||
"primary": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"hr_staff_work_history_media_item": {
|
||||
"name": "hr_staff_work_history_media_item",
|
||||
"hr_staff_work_history_media_history": {
|
||||
"name": "hr_staff_work_history_media_history",
|
||||
"type": "INT",
|
||||
"null": false,
|
||||
"foreignTable": "hr_staff_work_history",
|
||||
|
|
@ -281,5 +281,83 @@
|
|||
"foreignKey": "media_id"
|
||||
}
|
||||
}
|
||||
},
|
||||
"hr_position": {
|
||||
"name": "hr_position",
|
||||
"fields": {
|
||||
"hr_position_id": {
|
||||
"name": "hr_position_id",
|
||||
"type": "INT",
|
||||
"null": false,
|
||||
"primary": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"hr_position_title": {
|
||||
"name": "hr_position_title",
|
||||
"type": "VARCHAR(255)",
|
||||
"null": false
|
||||
},
|
||||
"hr_position_requirement": {
|
||||
"name": "hr_position_requirement",
|
||||
"type": "TEXT",
|
||||
"null": false
|
||||
},
|
||||
"hr_position_requirementraw": {
|
||||
"name": "hr_position_requirementraw",
|
||||
"type": "TEXT",
|
||||
"null": false
|
||||
},
|
||||
"hr_position_tasks": {
|
||||
"name": "hr_position_tasks",
|
||||
"type": "TEXT",
|
||||
"null": false
|
||||
},
|
||||
"hr_position_tasksraw": {
|
||||
"name": "hr_position_tasksraw",
|
||||
"type": "TEXT",
|
||||
"null": false
|
||||
},
|
||||
"hr_position_lang": {
|
||||
"name": "hr_position_lang",
|
||||
"type": "VARCHAR(2)",
|
||||
"null": false,
|
||||
"foreignTable": "language",
|
||||
"foreignKey": "language_639_1"
|
||||
},
|
||||
"hr_position_position": {
|
||||
"name": "hr_position_position",
|
||||
"type": "INT",
|
||||
"default": null,
|
||||
"null": true,
|
||||
"foreignTable": "organization_position",
|
||||
"foreignKey": "organization_position_id"
|
||||
}
|
||||
}
|
||||
},
|
||||
"hr_position_media": {
|
||||
"name": "hr_position_media",
|
||||
"fields": {
|
||||
"hr_position_media_id": {
|
||||
"name": "hr_position_media_id",
|
||||
"type": "INT",
|
||||
"null": false,
|
||||
"primary": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"hr_position_media_position": {
|
||||
"name": "hr_position_media_position",
|
||||
"type": "INT",
|
||||
"null": false,
|
||||
"foreignTable": "hr_position",
|
||||
"foreignKey": "hr_position_id"
|
||||
},
|
||||
"hr_position_media_media": {
|
||||
"name": "hr_position_media_media",
|
||||
"type": "INT",
|
||||
"null": false,
|
||||
"foreignTable": "media",
|
||||
"foreignKey": "media_id"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -50,4 +50,26 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/humanresource/position/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\HumanResourceManagement\Controller\BackendController:viewHrPositionList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'permission' => [
|
||||
'module' => BackendController::MODULE_NAME,
|
||||
'type' => PermissionType::READ,
|
||||
'state' => PermissionState::POSITION,
|
||||
],
|
||||
],
|
||||
],
|
||||
'^.*/humanresource/position/create.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\HumanResourceManagement\Controller\BackendController:viewHrPositionCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'permission' => [
|
||||
'module' => BackendController::MODULE_NAME,
|
||||
'type' => PermissionType::CREATE,
|
||||
'state' => PermissionState::POSITION,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
|
|||
0
Docs/Dev/en/SUMMARY.md
Normal file → Executable file
0
Docs/Dev/en/SUMMARY.md
Normal file → Executable file
0
Docs/Dev/en/structure.md
Normal file → Executable file
0
Docs/Dev/en/structure.md
Normal file → Executable file
2
Models/EmployeeEducationHistoryMapper.php
Normal file → Executable file
2
Models/EmployeeEducationHistoryMapper.php
Normal file → Executable file
|
|
@ -68,7 +68,7 @@ final class EmployeeEducationHistoryMapper extends DataMapperAbstract
|
|||
'mapper' => MediaMapper::class, /* mapper of the related object */
|
||||
'table' => 'hr_staff_work_history_media', /* table of the related object, null if no relation table is used (many->1) */
|
||||
'external' => 'hr_staff_work_history_media_media',
|
||||
'self' => 'hr_staff_work_history_media_item',
|
||||
'self' => 'hr_staff_work_history_media_history',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ final class EmployeeHistoryMapper extends DataMapperAbstract
|
|||
'mapper' => MediaMapper::class, /* mapper of the related object */
|
||||
'table' => 'hr_staff_work_history_media', /* table of the related object, null if no relation table is used (many->1) */
|
||||
'external' => 'hr_staff_work_history_media_media',
|
||||
'self' => 'hr_staff_work_history_media_item',
|
||||
'self' => 'hr_staff_work_history_media_history',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
2
Models/EmployeeWorkHistoryMapper.php
Normal file → Executable file
2
Models/EmployeeWorkHistoryMapper.php
Normal file → Executable file
|
|
@ -66,7 +66,7 @@ final class EmployeeWorkHistoryMapper extends DataMapperAbstract
|
|||
'mapper' => MediaMapper::class, /* mapper of the related object */
|
||||
'table' => 'hr_staff_work_history_media', /* table of the related object, null if no relation table is used (many->1) */
|
||||
'external' => 'hr_staff_work_history_media_media',
|
||||
'self' => 'hr_staff_work_history_media_item',
|
||||
'self' => 'hr_staff_work_history_media_history',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -29,4 +29,6 @@ abstract class PermissionState extends Enum
|
|||
public const HR = 1;
|
||||
|
||||
public const DEPARTMENT = 2;
|
||||
|
||||
public const POSITION = 3;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user