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 -

...

{
"code": "WF_FIRENOC_PENDINGAPPROVAL",
"message": "Pending for Approval",
"module": "rainmaker-noc",
"locale": "en_IN"
},
{
"code": "WF_FIRENOC_PENDINGPAYMENT",
"message": "Pending for Payment",
"module": "rainmaker-noc",
"locale": "en_IN"
},
{
"code": "WF_FIRENOC_REFER",
"message": "Refer for Opinion",
"module": "rainmaker-noc",
"locale": "en_IN"
},

API Call URLsRole Action mapping:

S. No.

API

Action id

Roles

1

/access/v1/actions/mdms/_get

870

CITIZEN,

2

/egov-mdms-service/v1/_search

954

...

CITIZEN,

3

/firenoc-services/v1/_search

1527

NOC_CEMP,CITIZEN,NOC_DOC_VERIFIER,NOC_FIELD_INSPECTOR,NOC_APPROVER,

4

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

1743

SUPERUSER,CITIZEN,

5

/localization/messages/v1/_search

1531

CITIZEN,

6

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

...

/firenoc-services/v1/_search

Role Information:

For Employee Application

  1. EMPLOYEE

  2. NOC_CEMP

...

1429

CITIZEN