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.

https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-hrms-dev/src/ui-config/screens/specs/hrms/create.js

Initial MDMS call is being made on page load.

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

API

ROLES

ACTION ID

1

egov-hrms/employees/_create

SUPERUSER

1750

2

egov-hrms/employees/_update

SUPERUSER , EMPLOYEE

1751

3

egov-mdms-service/v1/_search

 

954

4

egov-hrms/employees/_search

SUPERUSER , EMPLOYEE ,

1752

Â