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
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 APIws-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 APIsw-services/swc/_update
.
Case 3: If the employee is selected apply for Water and Sewerage connection:
Clicking on Submit button,
ws-services/wc/_create
andsw-services/swc/_create
apis is called and create the applications, after getting success responses, we are calling update APIws-services/wc/_update
andsw-services/swc/_update
.
Acknowledgement screen:
After Success of create and update calls, will route to acknowledgement screen.
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.
Acknowledgement Download,
After Submitting the W&S Create Application user can download the Acknowledgement .
for application PDF, all related code written related to W&S in below mentioned file.
ROLE ACTION MAPPING
API | ROLES | ACTION ID | |
---|---|---|---|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|