Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Technical Implementation details -

Dev-package - egov-nocfirenoc-dev is the package which holds all the files and codes related to this application. It is built on top of mihy- micro framework architecture. Below is the link of the folder and files..

egov-nocfirenoc-dev github folder

Search screen is the home page of the NOC application. Configurations for this page is written in search.js file. Below is the link of the file.

https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-nocfirenoc-dev/src/ui-config/screens/specs/fire-noc/search.js

...

Search screen makes two MDMS call before initializing the screen.

...

Search table configurations are written in searchResults.js file under searchResource folder. This table internally refers the Table component of the framework written in ui-molecules folder. This file has the configuration for table columns and header and table title. Below is the link of the configuration file.

https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-nocfirenoc-dev/src/ui-config/screens/specs/fire-noc/searchResource/searchResults.js

...

Search api call is written in functon.js file. Once the search response comes then it is being formatted as per table required format. Below is the link of file.

https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-nocfirenoc-dev/src/ui-config/screens/specs/fire-noc/searchResource/functions.js

...

Before calling the search API, field validations of search form is happening. If any required field is missing or any field having incorrect data entered then immediately returning the required error message and preventing the search API call.

...

getSearchResults function is being imported in the functions.js file and being called on clicking of search button by passing the query params object. Below is the file link of utils file which holds this method.

https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-nocfirenoc-dev/src/ui-utils/commons.js

...

Localization Implementation Details -

...

S. No.

API

Action id

Roles

1

/access/v1/actions/mdms/_get

870

CSR, GRO,DGRO,EMPLOYEE,CITIZEN,PGR-ADMIN,EMPLOYEE_FINANCE,TL_APPROVER,TL_CEMP,SUPERUSER,COLL_OPERATOR,BANK_COLL_OPERATOR,CSC_COLL_OPERATOR,DMA OFFICE OFFICER,ULB OFFICER,COMMISSIONER,

2

/egov-mdms-service/v1/_search

954

LOA_CREATOR,SUPERUSER,WO_CREATOR,AE_CREATOR,WORKS_MASTER_CREATOR,CITIZEN,

3

/firenoc-services/userv1/_search

6041527

SUPERUSER,SYS_INTEGRATOR_FINANCE,SYS_INTEGRATOR_WATER_SEW,EGF_BILL_CREATOR,EMPLOYEE,EMPLOYEE_FINANCENOC_CEMP,CITIZEN,NOC_DOC_VERIFIER,NOC_FIELD_INSPECTOR,NOC_APPROVER,

4

/egov-workflow-v2/egov-wf/businessservice/_search

1743

SUPERUSER,EMPLOYEE,CITIZEN,

5

/localization/messages/v1/_search

1531

SUPERUSER,EMPLOYEE,CITIZEN,GRO,DGRO,

6

/egov-location/location/v11/boundarys/_search

1429

EMPLOYEE,CITIZEN,GRO,PGR-ADMIN,CSR,TL_APPROVER,TL_CEMP,SUPERUSER,DE_CREATOR,

7

/firenoc-services/v1/_search

1527

NOC_CEMP,EMPLOYEE,CITIZEN,NOC_DOC_VERIFIER,NOC_FIELD_INSPECTOR,NOC_APPROVER,