...
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 |
|
|
|
2 |
|
|
...
| |||
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
...
/firenoc-services/v1/_search
Role Information:
For Employee Application
EMPLOYEE
NOC_CEMP
...
|
|