View Employee

View Employee Details

Objective

Provide Employee to view an Existing Employee Information , Edit details , Activate / Deactivate Employee.

Route - https://egov-micro-qa.egovernments.org/employee/hrms/view?employeeID=EMP04&tenantId=pb.amritsar

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/view.js

Initial MDMS call is being made on page load.

Footer Buttons is configured in this https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-hrms-dev/src/ui-config/screens/specs/hrms/viewResource/footer.js file
Activate / Deactivate :

Activate and deactivate configurations are present in this https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-hrms-dev/src/ui-config/screens/specs/hrms/viewResource/deactivate-employee.js file

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

To Activate a Employee following fields should be set to true

set(employeeObject[0], "reActivateEmployee", true); set(employeeObject[0], "isActive", true);

 

Similarly for Deactivate

set(employeeObject[0], "isActive", false);

ROLE ACTION MAPPING

API

ROLES

ACTION ID

API

ROLES

ACTION ID

1

egov-hrms/employees/_update

SUPERUSER , EMPLOYEE

1751

2

egov-mdms-service/v1/_search

SUPERUSER , LOA_CREATOR , WO_CREATOR , AE_CREATOR , WORKS_MASTER_CREATOR

954

3

egov-hrms/employees/_search

SUPERUSER , EMPLOYEE , CITIZEN,GRO,TL_APPROVER,TL_CEMP,TL_FIELD_INSPECTOR

1752

Â