Create Employee
New Employee
Objective
Provide Employee to create a new Employee and assign his role and designation
Route - https://egov-micro-qa.egovernments.org/employee/hrms/create
Technical Implementation Details
Initial page.
Initial MDMS call is being made on page load.
All the Forms and its functionality are in
https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-hrms-dev/src/ui-config/screens/specs/hrms/createResource/assignment-details.js
https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-hrms-dev/src/ui-config/screens/specs/hrms/createResource/review-documents.jsThe Validation of form and Create Demand is in done in
https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-hrms-dev/src/ui-config/screens/specs/hrms/createResource/footer.js
HRMS Multitenant Feature:
Earlier (Till Digit 2.2 ) Role assigned to the employee is capture in the employee details and is not mapped with the jurisdiction of the employee.
Now roles was added to Jurisdiction details card, so User can add jurisdiction and roles for the added jurisdiction to create a multi-tenant employee with multiple roles in the system.
We validate the Jurisdiction added so that no duplicate in Boundary and one role in base tenant should be present.
all the validations are present in this file. https://github.com/egovernments/frontend/blob/4e1a05e9bb772e89d7dab695dd15e0fd1ee33494/web/rainmaker/dev-packages/egov-hrms-dev/src/ui-config/screens/specs/hrms/createResource/footer.js
Data fetch ,load and render :
Employee is created using /egov-hrms/employees/_create
API , and for any further update using/egov-hrms/employees/_update
API
ROLE ACTION MAPPING
API | ROLES | ACTION ID | |
---|---|---|---|
1 |
|
|
|
2 |
|
|
|
3 |
| Â |
|
4 |
|
|
|
Â