/
SearchEstimateConfig.json
184 lines (184 loc) · 8.17 KB
/
SearchEstimateConfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{
"tenantId": "pg",
"moduleName": "commonMuktaUiConfig",
"SearchEstimateConfig": [
{
"label": "WORKS_SEARCH_ESTIMATES",
"type": "search",
"apiDetails": {
"serviceName": "/estimate-service/estimate/v1/_search",
"requestParam": {},
"requestBody": {},
"minParametersForSearchForm": 1,
"masterName": "commonUiConfig",
"moduleName": "SearchEstimateConfig",
"tableFormJsonPath": "requestParam",
"filterFormJsonPath": "requestParam",
"searchFormJsonPath": "requestParam"
},
"sections": {
"search": {
"uiConfig": {
"headerStyle": null,
"primaryLabel": "ES_COMMON_SEARCH",
"secondaryLabel": "ES_COMMON_CLEAR_SEARCH",
"minReqFields": 1,
"showFormInstruction": "ESTIMATE_SEARCH_HINT",
"defaultValues": {
"ward": "",
"projectType": "",
"projectName": "",
"estimateNumber": "",
"wfStatus": "",
"fromProposalDate": "",
"toProposalDate": ""
},
"fields": [
{
"label": "COMMON_WARD",
"type": "locationdropdown",
"isMandatory": false,
"disable": false,
"populators": {
"name": "ward",
"type": "ward",
"optionsKey": "i18nKey",
"defaultText": "COMMON_SELECT_WARD",
"selectedText": "COMMON_SELECTED",
"allowMultiSelect": false
}
},
{
"label": "WORKS_PROJECT_TYPE",
"type": "dropdown",
"isMandatory": false,
"disable": false,
"populators": {
"name": "projectType",
"optionsKey": "name",
"optionsCustomStyle": {
"top": "2.3rem"
},
"mdmsConfig": {
"masterName": "ProjectType",
"moduleName": "works",
"localePrefix": "COMMON_MASTERS"
}
}
},
{
"label": "ES_COMMON_PROJECT_NAME",
"type": "text",
"isMandatory": false,
"disable": false,
"preProcess": {
"convertStringToRegEx": [
"populators.validation.pattern"
]
},
"populators": {
"name": "projectName",
"error": "PROJECT_PATTERN_ERR_MSG",
"validation": {
"pattern": "^[^\\$\"<>?\\\\~`!@$%^()+={}\\[\\]*:;“”‘’]{1,50}$",
"minlength": 2
}
}
},
{
"label": "ESTIMATE_ESTIMATE_NO",
"type": "text",
"isMandatory": false,
"disable": false,
"populators": {
"name": "estimateNumber",
"error": "ESTIMATE_PATTERN_ERR_MSG",
"validation": {
"pattern": "ES\/[0-9]+-[0-9]+\/[0-9]+",
"minlength": 2
}
}
},
{
"label": "CORE_COMMON_STATUS",
"type": "text",
"isMandatory": false,
"disable": false,
"populators": {
"name": "wfStatus"
}
},
{
"label": "WORKS_COMMON_FROM_DATE_LABEL",
"type": "date",
"isMandatory": false,
"disable": false,
"populators": {
"name": "fromProposalDate"
}
},
{
"label": "WORKS_COMMON_TO_DATE_LABEL",
"type": "date",
"isMandatory": false,
"disable": false,
"populators": {
"name": "toProposalDate"
}
}
]
},
"label": "",
"children": {},
"show": true
},
"searchResult": {
"label": "",
"estimateNumber": "",
"projectId": "",
"department": "",
"estimateStatus": "",
"fromProposalDate": "",
"toProposalDate": "",
"uiConfig": {
"columns": [
{
"label": "ESTIMATE_ESTIMATE_NO",
"jsonPath": "estimateNumber",
"additionalCustomization": true
},
{
"label": "ES_COMMON_PROJECT_NAME",
"jsonPath": "name"
},
{
"label": "ES_COMMON_LOCATION",
"additionalCustomization": true
},
{
"label": "ESTIMATE_PREPARED_BY",
"jsonPath": "additionalDetails.creator"
},
{
"label": "CORE_COMMON_STATUS",
"jsonPath": "wfStatus"
},
{
"label": "WORKS_ESTIMATED_AMOUNT",
"jsonPath": "estimateDetails",
"additionalCustomization": true,
"headerAlign": "right"
}
],
"enableGlobalSearch": false,
"enableColumnSort": true,
"resultsJsonPath": "estimates"
},
"children": {},
"show": true
}
},
"additionalSections": {}
}
]
}