PGR - Employee

PGR application is developed to address the complaint registered by the citizen. PGR employee application used by counter employees. It has some extra feature combining with PGR citizen application. A counter employee can search, re-assign, close, open and create the complaint. Every new complaint logged will have a timeline to resolve.

Open complaint

Open complaint is the home page of the PGR employee application. Once counter employee navigates to complain module, open complaint screen gets open with search form and total complaint assigned to that counter employee. Please refer below screenshot.

Counter employee can search already logged citizen complaint by providing mobile number of the citizen or last 6 digits of complaint number.

If the complain exist then it will be displayed in a card along with details entered in the complaint while logging it. below is the link of all-complaint component which is home page of PGR employee application.

https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/pgr-employee-dev/src/Screens/AllComplaints/index.js

All-complaint component file uses sub-components like

Complaints: To display individual complaint card

CountDetails: To display total no of complaint assigned to the counter employee

FloatingActionButton: A plus circular icon button on click of which counter employee navigates to create complaint and can file complaint on behalf of citizen.

AllComplaints component is a container type component which implements mapStateToProps and mapDispatchToProps redux methods.

Search API Call: On clicking of search button onSearch method is being called. Inside this method, search parameters are are being formed as query params and passed as parameters along with the url.

search api info:

GET: {     URL: "rainmaker-pgr/v1/requests/_search",     ACTION: "_search",   },

Reset search form: On clicking of Reset button, clearSearch method is being called. It clears the entered citizen mobile number and complaint number from the search form.

 

Create Complaint :

All Complaint screen has a floating button with plus icon on it. When counter employee clicks on this button then they navigates to Create complaint screen. In this screen they can file complain on behalf of citizen.

After successfully filing new complain, employee navigates to acknowledge screen where the newly generated complaint number displays for the newly registered complaint.

Below is the file link of create complaint screen.

https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/pgr-employee-dev/src/Screens/CreateComplaint/index.js

 

Closed Complaints:

Closed complaint screen is designed to display all the closed complaints. Employee can navigate to this screen after clicking on closed complaints action item from side bar action menu. When the Employee navigates to this screen it makes a search call to retrieve all the closed complaints. Below is the call details along with file link:

https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/pgr-employee-dev/src/Screens/ClosedComplaints/index.js

PGR Reports:

PGR reports screen created to display reports related to counter employee complaints addressed. After landing on this screen, an api call has been made to retrieve all the reports data. User can also search by providing search criteria such as From date and to date. On click of RESET button, the entered search criteria will get erased from the search form.

https://github.com/egovernments/frontend/blob/master/web/rainmaker/packages/employee/src/modules/employee/reports/searchForm.js

On click of SEARCH button, search method gets triggered.

on click of RESET button, resetFields method gets triggered.

To display the search records, a reportResults component has been used. Below is the file link of the reportResults component. Internally it uses DataTable library to show records in tabular form.

https://github.com/egovernments/frontend/blob/master/web/rainmaker/packages/employee/src/modules/employee/reports/reportResult.js

 

Localization Implementation Details:

All the locale keys are pushed under rainmaker-pgr locale module. While navigating to any screen of PGR, a localization call has been mage to retrieve all the locale keys of the PGR module. If any new screen is being added in the future, please make sure its navigation url should contain “pgr” text.

For example “/pgr/[new screen name]

 

API Call Role Action mapping:

S. No.

API

Action id

Roles

S. No.

API

Action id

Roles

1

/access/v1/actions/mdms/_get

870

CSR, GRO,DGRO,EMPLOYEE,CITIZEN,PGR-ADMIN,EMPLOYEE_FINANCE,TL_APPROVER,TL_CEMP,SUPERUSER,COLL_OPERATOR,BANK_COLL_OPERATOR,CSC_COLL_OPERATOR,DMA OFFICE OFFICER,ULB OFFICER,COMMISSIONER,

2

/rainmaker-pgr/v1/requests/_search

1526

CSR,SUPERUSER,GRO,DGRO,EMPLOYEE,CITIZEN,

3

/egov-mdms-service/v1/_search

954

LOA_CREATOR,SUPERUSER,WO_CREATOR,AE_CREATOR,WORKS_MASTER_CREATOR,

4

/user/_search

604

SUPERUSER,SYS_INTEGRATOR_FINANCE,SYS_INTEGRATOR_WATER_SEW,EGF_BILL_CREATOR,EMPLOYEE,EMPLOYEE_FINANCE,

5

/localization/messages/v1/_search

1531

SUPERUSER,EMPLOYEE,CITIZEN,GRO,DGRO,

6

/egov-location/location/v11/boundarys/_search

1429

EMPLOYEE,CITIZEN,GRO,PGR-ADMIN,CSR,TL_APPROVER,TL_CEMP,SUPERUSER,DE_CREATOR,

7

/rainmaker-pgr/v1/requests/_create

1524

SUPERUSER,EMPLOYEE,CITIZEN,GRO,DGRO,CSR,

8

/egov-hrms/employees/_search

1752

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

9

/user/v1/_search

695

SUPERUSER,EMPLOYEE,CITIZEN,GRO,DGRO,CSR,PGR-ADMIN,

10

/rainmaker-pgr/v1/requests/_count

1527

SUPERUSER,EMPLOYEE,CITIZEN,GRO,DGRO,CSR,