Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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

ROLE ACTION MAPPING

S.NO

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

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.