HRMS
Search Employee
Objective
Provide Employee to search Employee, check its current status , Activate / Deactivate an Employee.
Route - https://egov-micro-qa.egovernments.org/employee/hrms/search
Technical Implementation Details
Â
Initial MDMS call is being made on page load.
Â
moduleDetails: [ { moduleName: "common-masters", masterDetails: [ { name: "Department", filter: "[?(@.active == true)]" }, { name: "Designation", filter: "[?(@.active == true)]" } ] }, { moduleName: "egov-hrms", masterDetails: [ { name: "Degree", filter: "[?(@.active == true)]" }, { name: "EmployeeStatus", filter: "[?(@.active == true)]" }, { name: "EmployeeType", filter: "[?(@.active == true)]" }, { name: "DeactivationReason", filter: "[?(@.active == true)]" }, { name: "EmploymentTest", filter: "[?(@.active == true)]" }, { name: "Specalization", filter: "[?(@.active == true)]" } ] }, { moduleName: "tenant", masterDetails: [{ name: "tenants" }] }, {"moduleName":"ACCESSCONTROL-ROLES","masterDetails":[{"name":"roles","filter":"$.[?(@.code!='CITIZEN')]"}]} ]
All the Forms and its functionality are in https://github.com/egovernments/frontend/tree/master/web/rainmaker/dev-packages/egov-hrms-dev/src/ui-config/screens/specs/hrms/searchResource path.
Table rendering is taken care in https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-hrms-dev/src/ui-config/screens/specs/hrms/searchResource/searchResults.js
The Bill search API and formatting data is in done in https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-hrms-dev/src/ui-config/screens/specs/hrms/searchResource/functions.js
Table Structure
MUIDataTable
is used to implement Table component.Every columns are entry given as an Object
{
labelName: "Employee ID",
labelKey: "HR_COMMON_TABLE_COL_EMP_ID"
},
,
Any customizations at column level is by
customBodyRender
hook available in all the colums ‘option’ property.
Search Results:
Search Results shows the Employee’s details such as ID, Name, Roles , Designation, Department and his status.
On click of his ID he can view the employee information,
Data fetch,load and render :
Once the data is fetched using egov-hrms/employees/_search
API, the returned data is formatted and dispatched to redux
The More Information About Create and View Employee can be found in
Â
ROLE ACTION MAPPING
API | ROLES | ACTION ID | |
---|---|---|---|
1 |
|
|
|
2 |
|
|
|
Â