BillGenie
Search Bill
Objective
Provide Citizen/Employee to search existing Bill , generate expired bill ,
pay for the active bill, download bill , download receipt (if paid ) and its current status.
Route - https://egov-micro-dev.egovernments.org/employee/abg/billSearch
Technical Implementation Details
ย
Initial MDMS call is being made on page load.
ย
All the Forms and its functionality are in https://github.com/egovernments/frontend/blob/5ceee04b53b41eb9d76c5f9914589f8428f689f3/web/rainmaker/dev-packages/egov-abg-dev/src/ui-config/screens/specs/abg/billSearchResources path.
Table rendering is taken care in frontend/web/rainmaker/dev-packages/egov-abg-dev/src/ui-config/screens/specs/abg/billSearchResources/searchResults.js at 80c5bff5b0869ba44f1626fabe4a5a6133afa558 ยท egovernments/frontend
The Bill search API and formatting data is in done in https://github.com/egovernments/frontend/blob/63e2295cf784b937c296078dc8bdb27efc85513e/web/rainmaker/dev-packages/egov-abg-dev/src/ui-config/screens/specs/abg/billSearchResources/function.js
Table Structure
MUIDataTable
is used to implement Table component.Every columns are entry given as an Object
{
ย labelName:ย "Billย No.",
ย ย ย labelKey:ย "ABG_COMMON_TABLE_COL_BILL_NO"
}
,
Any customizations at column level is by
customBodyRender
hook available in all the colums โoptionโ property.
ย
ย
Data fetch,load and render :
Once the data is fetched using egov-searcher/bill-genie/billswithaddranduser/_get
API, the returned data is formatted and dispatched to redux
As we can see from the image above, the data is put to specific path inside props.
Table component now fetches the data from its props as shown below.
Api Used :
ย ย egov-mdms-service/v1/_search,
egov-searcher/bill-genie/billswithaddranduser/_get
ย
ROLE ACTION MAPPING
API | ROLES | ACTION ID | |
---|---|---|---|
1 |
|
|
|
2 |
|
|
|
ย