Employee: Water & Sewerage Create

Objective

The Water and Sewerage 'apply' is the major feature in WS Module. It allows Citizen or Counter Employee to create Water and Sewerage Applications.

Every application is a part of the workflow.

Once the user login with "WS_CEMP", "SW_CEMP" Roles, then the User will get the option for creating New WS Application in the WS card and as well as in the inbox.

 

 

File path: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/components/WSCard.js and https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pages/employee/index.js

Clicking of New Connection it navigates to the New Water and Sewerage Application Document required screen.

Route: https://qa.digit.org/digit-ui/employee/ws/create-application

File Path: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pageComponents/WSDocsRequired.js

 

On Clicking on APPLY button in the document required screen, it will route to Application for New Water & Sewerage Connection.

 

File Path: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pages/employee/NewApplication/index.js

Note: We are integrated common PT for search and create Property applications.

Technical Implementation Details:

Initial MDMS call is being made on page load like old UI.

Mdms data :

Pipe Size: https://github.com/egovernments/egov-mdms-data/blob/QA/data/pb/ws-services-calculation/PipeSize.json

Documents: https://github.com/egovernments/egov-mdms-data/blob/QA/data/pb/ws-services-masters/Documents.json

Owner Type: https://github.com/egovernments/egov-mdms-data/blob/QA/data/pb/common-masters/OwnerType.json

 

Data fetch , load and render :

ws-services/wc/_create

sw-services/swc/_create

Case 1: If the employee is selected apply for Water connection:

  • Clicking on Submit button, ws-services/wc/_create api is called and create the application, after getting success response, we are calling update API ws-services/wc/_update.


Case 2: If the employee is selected apply for Sewerage connection:

  • Clicking on Submit button, sw-services/swc/_create api is called and create the application, after getting success response, we are calling update API sw-services/swc/_update.

 

Case 3: If the employee is selected apply for Water and Sewerage connection:

  • Clicking on Submit button, ws-services/wc/_create and sw-services/swc/_create apis is called and create the applications, after getting success responses, we are calling update API ws-services/wc/_update and sw-services/swc/_update.

Acknowledgement screen:

 

 

After Success of create and update calls, will route to acknowledgement screen.

File Path: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pages/employee/WSResponse.js

 

W&S-Application:

 

In Water & Sewerage Module, while creating a Application user will get Acknowledgement form for creating application, Similarly after doing pending for field inspection and payment user can download the estimation letter and sanction letter.

Here we see more about the configuration involved in each document downloads.

 

  1. Acknowledgement Download,

After Submitting the W&S Create Application user can download the Acknowledgement .

 

File Path: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pages/employee/WSResponse.js

for application PDF, all related code written related to W&S in below mentioned file.

File Path: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/utils/getWSAcknowledgementData.js

 

ROLE ACTION MAPPING

API

ROLES

ACTION ID

API

ROLES

ACTION ID

1

/egov-mdms-service/v1/_search

WS_CEMP, SW_CEMP

954

2

/ws-services/wc/_create

WS_CEMP, SW_CEMP

1899, 1917

3

/sw-services/swc/_create

WS_CEMP, SW_CEMP

1899, 1917

4

/ws-services/wc/_update

WS_CEMP, SW_CEMP

1899, 1917

5

/sw-services/swc/_update

WS_CEMP, SW_CEMP

1899, 1917

6

/filestore/v1/files/url

EMPLOYEE