Household Register

Household Register

Link → {base url}/mgramseva/home/householdRegister

Users are redirected to this screen if they select the Household Register tile/card on the home screen.

The Household Register tile/card is displayed to the user with COLLECTION_OPERATOR role.

User Interaction on Screen

  • From the text field, users can search connections by using connection ID.

  • Users can see all the connections data of the selected tenant till date based on their payment status (Ex: All, Paid, Pending).

  • Initially, only 10 connections are loaded for the selected tab. The pagination drop down and right arrow click enable users to view more connections.

  • By selecting any connection ID users are navigated to the View Consumer Details Screen.

  • Click on Download button to get all the household records in PDF format

  • Click on Share to share the PDF in Whats App

 

Household Register PDF Format

Files Path :

Primary Files :

https://github.com/misdwss/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/screeens/HouseholdRegister/HouseholdRegister.dart ,

https://github.com/misdwss/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/screeens/HouseholdRegister/HouseholdSearch.dart ,

https://github.com/misdwss/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/screeens/HouseholdRegister/HouseholdList.dart ,

https://github.com/misdwss/punjab-mgramseva/blob/develop/frontend/mgramseva/lib/screeens/HouseholdRegister/household_pdf.dart

 

 

 

API Details

SL

End Point

Request Method

Request Info

SL

End Point

Request Method

Request Info

1

/ws-services/wc/_search

POST

tenantId : {}
offset ; {}
limit : {}
toDate : {}
isCollectionCount: {}

isBillPaid
connectionNumber: {}
freeSearch: {}

sortOrder: {}

sortBy : {}

2

/filestore/v1/files

POST

tenantId : {}

module : {}

3

/egov-url-shortening/shortener

POST

url : {}

 

Stack

1 → Home Screen. + Household Register Screen

Pop → Household Register Screen→ Home Screen

2 → Home Screen. + Household Register Screen + View Consumer Details Screen

Pop → View Consumer Details Screen → Household Register Screen

 

Widgets used from Library

 

Role Access Mapping

case Routes.HOUSEHOLD: return ['COLLECTION_OPERATOR', 'SUPERUSER'];

 

Files Path

Model → https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/model/connection/water_connection.dart , https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/model/connection/water_connections.dart

View → https://github.com/misdwss/punjab-mgramseva/tree/master/frontend/mgramseva/lib/screeens/HouseholdRegister

Controller → https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/providers/household_register_provider.dart , https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/repository/search_connection_repo.dart