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.

frontend/web/rainmaker/dev-packages/egov-hrms-dev/src/ui-config/screens/specs/hrms/view.js at master · egovernments/frontend

Initial MDMS call is being made on page load.

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

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

frontend/web/rainmaker/dev-packages/egov-hrms-dev/src/ui-config/screens/specs/hrms/viewResource/functions.js at master · egovernments/frontend

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