Employee: Disconnection Water & Sewerage Create Flow

Objective

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

Every application is a part of the workflow.

Validations:

  • To disconnect, connection should be in ACTIVE state. Connections which are under WORKFLOW or INACTIVE are not eligible for disconnection.

  • In cases dues are pending, user has to clear the dues before applying for Disconnection.

  • ‘Disconnect’ option itself is not displayed in the action list for the connection which are INACTIVE.

 

 

Connection details:Employee: Water and Sewerage Connection Details

Once new application connection is activated, then system will generate the consumer code, by using that code we will route to connection details screen from search/connection screen.

On click on take action button, we will get multiple options based on conditions, once we will click on Apply for Disconnection, it will route to Disconnect Document Required Screen.

 

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

 

After click on apply, it will route to Disconnection apply screen.

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

 

Data fetch , load and render :

ws-services/wc/_create

sw-services/swc/_create

Case 1: If it is 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 it is 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.

 

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/DisconnectionApplication/WSDisconnectionResponse.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