d2aura 26.0.17 → 26.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/abstractApi.d.ts +1 -1
- package/api/abstractApi.js +2 -2
- package/api/abstractApi.js.map +1 -1
- package/api/eda/edaManagerApi.d.ts +15 -10
- package/api/eda/edaManagerApi.js +78 -11
- package/api/eda/edaManagerApi.js.map +1 -1
- package/api/eda/generated/events.d.ts +108 -73
- package/api/eda/generated/events.js +202 -140
- package/api/eda/generated/events.js.map +1 -1
- package/api/eda/generated/structures.d.ts +118 -89
- package/api/eda/generated/structures.js.map +1 -1
- package/api/webAuthn/webAuthnManageApi.js +2 -2
- package/api/webAuthn/webAuthnManageApi.js.map +1 -1
- package/core/i18n/d2aura.sk.json +6 -0
- package/coreui/components/edaManagerComponent/components/edaChartViewer.js +11 -11
- package/coreui/components/edaManagerComponent/components/edaChartViewer.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js +2 -2
- package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaDetailPanel.js +1 -1
- package/coreui/components/edaManagerComponent/components/edaDetailPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaGraphPanel.js +1 -1
- package/coreui/components/edaManagerComponent/components/edaGraphPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.js +3 -2
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaTablePanel.js +5 -5
- package/coreui/components/edaManagerComponent/components/edaTablePanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaTimeWindowPickerPanel.js +3 -0
- package/coreui/components/edaManagerComponent/components/edaTimeWindowPickerPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaTreeView.d.ts +1 -0
- package/coreui/components/edaManagerComponent/components/edaTreeView.js +82 -33
- package/coreui/components/edaManagerComponent/components/edaTreeView.js.map +1 -1
- package/coreui/components/edaManagerComponent/constants/edaTypes.d.ts +11 -1
- package/coreui/components/edaManagerComponent/constants/edaTypes.js +6 -0
- package/coreui/components/edaManagerComponent/constants/edaTypes.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/edaConfigContext.d.ts +5 -4
- package/coreui/components/edaManagerComponent/context/edaConfigContext.js +4 -1
- package/coreui/components/edaManagerComponent/context/edaConfigContext.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/edaVectorDataContext.d.ts +4 -1
- package/coreui/components/edaManagerComponent/context/edaVectorDataContext.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.js +81 -57
- package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/graphPanel.js +1 -1
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/graphPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/tablePanel.js +5 -5
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/tablePanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/edaTableEditorDialog.js +4 -2
- package/coreui/components/edaManagerComponent/dialogs/edaTableEditorDialog.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/exportDialog.js +2 -2
- package/coreui/components/edaManagerComponent/dialogs/exportDialog.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/importDialog.js +111 -12
- package/coreui/components/edaManagerComponent/dialogs/importDialog.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/importExport/export.js +48 -28
- package/coreui/components/edaManagerComponent/dialogs/importExport/export.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/importExport/import.d.ts +11 -2
- package/coreui/components/edaManagerComponent/dialogs/importExport/import.js +26 -2
- package/coreui/components/edaManagerComponent/dialogs/importExport/import.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeSelection.d.ts +8 -1
- package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeSelection.js +9 -4
- package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeSelection.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/vectorSelectionDialog.js +4 -5
- package/coreui/components/edaManagerComponent/dialogs/vectorSelectionDialog.js.map +1 -1
- package/coreui/components/edaManagerComponent/edaDetail.d.ts +2 -3
- package/coreui/components/edaManagerComponent/edaDetail.js +3 -1
- package/coreui/components/edaManagerComponent/edaDetail.js.map +1 -1
- package/coreui/components/edaManagerComponent/edaManager.d.ts +1 -1
- package/coreui/components/edaManagerComponent/edaManager.js +1 -1
- package/coreui/components/edaManagerComponent/edaManager.js.map +1 -1
- package/coreui/components/edaManagerComponent/edaNavigator.d.ts +1 -0
- package/coreui/components/edaManagerComponent/edaNavigator.js +4 -4
- package/coreui/components/edaManagerComponent/edaNavigator.js.map +1 -1
- package/coreui/components/edaManagerComponent/utils/utils.d.ts +2 -3
- package/coreui/components/edaManagerComponent/utils/utils.js +4 -5
- package/coreui/components/edaManagerComponent/utils/utils.js.map +1 -1
- package/d2configuration/edaManager/E.EM_DETAIL_IMPL.xml +22 -0
- package/d2configuration/edaManager/E.EM_DETAIL_UNIT.xml +34 -0
- package/d2configuration/edaManager/E.EM_NAVIGATOR_IMPL.xml +8 -8
- package/d2configuration/edaManager/E.EM_NAVIGATOR_SQL.xml +8 -42
- package/d2configuration/edaManager/E.EM_NAVIGATOR_UNIT.xml +224 -79
- package/d2configuration/edaManager/E.EM_VECTOR_IMPL.xml +18 -2
- package/d2configuration/edaManager/E.EM_VECTOR_UNIT.xml +380 -19
- package/d2configuration/edaManager/SD.EM_EDA_CalcFunction_Params_V2.xml +245 -0
- package/d2configuration/edaManager/SD.EM_EDA_ReadValuesFromVector_Params_V2.xml +159 -0
- package/d2configuration/edaManager/SD.EM_Tree_Item.xml +22 -0
- package/package.json +3 -3
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
2
|
<ROOT>
|
|
3
3
|
<REFERENCES>
|
|
4
|
+
<HOBJ_REF>
|
|
5
|
+
<uid>1582F1424BBBC3C4E9108D2ADBE39B14</uid>
|
|
6
|
+
<name>DB.EDA_SkVektor</name>
|
|
7
|
+
<objType>DB_TABLE</objType>
|
|
8
|
+
<valType>NAN</valType>
|
|
9
|
+
</HOBJ_REF>
|
|
10
|
+
<HOBJ_REF>
|
|
11
|
+
<uid>C61792F974A5E574B8D1E152F59D5EA3</uid>
|
|
12
|
+
<name>DB.EDA_Vektor</name>
|
|
13
|
+
<objType>DB_TABLE</objType>
|
|
14
|
+
<valType>NAN</valType>
|
|
15
|
+
</HOBJ_REF>
|
|
4
16
|
<HOBJ_REF>
|
|
5
17
|
<uid>4C6512D86C4554429218AD7F8762440B</uid>
|
|
6
18
|
<name>DB.EM_EDA_VectorScenario</name>
|
|
@@ -19,6 +31,37 @@
|
|
|
19
31
|
<objType>EXT_FNCT</objType>
|
|
20
32
|
<valType>Int</valType>
|
|
21
33
|
</HOBJ_REF>
|
|
34
|
+
<HOBJ_REF>
|
|
35
|
+
<uid>D6A7BE448859E2A43A66BC1CEE02B037</uid>
|
|
36
|
+
<name>SD.EDA_SkVektor</name>
|
|
37
|
+
<objType>STRUCTDEF</objType>
|
|
38
|
+
<valType>NAN</valType>
|
|
39
|
+
</HOBJ_REF>
|
|
40
|
+
<COL_REF>
|
|
41
|
+
<col_idx>8</col_idx>
|
|
42
|
+
<col_name>Cesta</col_name>
|
|
43
|
+
<col_valType>Text</col_valType>
|
|
44
|
+
</COL_REF>
|
|
45
|
+
<COL_REF>
|
|
46
|
+
<col_idx>2</col_idx>
|
|
47
|
+
<col_name>EDA_ID_SkVektor</col_name>
|
|
48
|
+
<col_valType>Int</col_valType>
|
|
49
|
+
</COL_REF>
|
|
50
|
+
<COL_REF>
|
|
51
|
+
<col_idx>1</col_idx>
|
|
52
|
+
<col_name>ID_SkVektor</col_name>
|
|
53
|
+
<col_valType>Int</col_valType>
|
|
54
|
+
</COL_REF>
|
|
55
|
+
<COL_REF>
|
|
56
|
+
<col_idx>3</col_idx>
|
|
57
|
+
<col_name>Meno</col_name>
|
|
58
|
+
<col_valType>Text</col_valType>
|
|
59
|
+
</COL_REF>
|
|
60
|
+
<COL_REF>
|
|
61
|
+
<col_idx>10</col_idx>
|
|
62
|
+
<col_name>Zobraz_Meno</col_name>
|
|
63
|
+
<col_valType>Text</col_valType>
|
|
64
|
+
</COL_REF>
|
|
22
65
|
<HOBJ_REF>
|
|
23
66
|
<uid>04F7ECC2F596F14888234E96D5F17471</uid>
|
|
24
67
|
<name>SD.EDA_UpdateVector_Params_V1</name>
|
|
@@ -35,6 +78,57 @@
|
|
|
35
78
|
<col_name>structVersion</col_name>
|
|
36
79
|
<col_valType>Int</col_valType>
|
|
37
80
|
</COL_REF>
|
|
81
|
+
<HOBJ_REF>
|
|
82
|
+
<uid>7DF2A6EEB9076A84A8D20261E0CE5A10</uid>
|
|
83
|
+
<name>SD.EDA_Vektor</name>
|
|
84
|
+
<objType>STRUCTDEF</objType>
|
|
85
|
+
<valType>NAN</valType>
|
|
86
|
+
</HOBJ_REF>
|
|
87
|
+
<COL_REF>
|
|
88
|
+
<col_idx>13</col_idx>
|
|
89
|
+
<col_name>ID_SkVektor</col_name>
|
|
90
|
+
<col_valType>Int</col_valType>
|
|
91
|
+
</COL_REF>
|
|
92
|
+
<COL_REF>
|
|
93
|
+
<col_idx>1</col_idx>
|
|
94
|
+
<col_name>ID_Vektor</col_name>
|
|
95
|
+
<col_valType>Int</col_valType>
|
|
96
|
+
</COL_REF>
|
|
97
|
+
<COL_REF>
|
|
98
|
+
<col_idx>15</col_idx>
|
|
99
|
+
<col_name>Integral</col_name>
|
|
100
|
+
<col_valType>Int</col_valType>
|
|
101
|
+
</COL_REF>
|
|
102
|
+
<COL_REF>
|
|
103
|
+
<col_idx>2</col_idx>
|
|
104
|
+
<col_name>Meno</col_name>
|
|
105
|
+
<col_valType>Text</col_valType>
|
|
106
|
+
</COL_REF>
|
|
107
|
+
<COL_REF>
|
|
108
|
+
<col_idx>4</col_idx>
|
|
109
|
+
<col_name>Tech_jednotky</col_name>
|
|
110
|
+
<col_valType>Text</col_valType>
|
|
111
|
+
</COL_REF>
|
|
112
|
+
<COL_REF>
|
|
113
|
+
<col_idx>6</col_idx>
|
|
114
|
+
<col_name>Typ</col_name>
|
|
115
|
+
<col_valType>Int</col_valType>
|
|
116
|
+
</COL_REF>
|
|
117
|
+
<COL_REF>
|
|
118
|
+
<col_idx>19</col_idx>
|
|
119
|
+
<col_name>View_Dec_Pl</col_name>
|
|
120
|
+
<col_valType>Int</col_valType>
|
|
121
|
+
</COL_REF>
|
|
122
|
+
<COL_REF>
|
|
123
|
+
<col_idx>18</col_idx>
|
|
124
|
+
<col_name>View_Round</col_name>
|
|
125
|
+
<col_valType>Int</col_valType>
|
|
126
|
+
</COL_REF>
|
|
127
|
+
<COL_REF>
|
|
128
|
+
<col_idx>16</col_idx>
|
|
129
|
+
<col_name>Zobraz_Meno</col_name>
|
|
130
|
+
<col_valType>Text</col_valType>
|
|
131
|
+
</COL_REF>
|
|
38
132
|
<HOBJ_REF>
|
|
39
133
|
<uid>C510A5FAD9454C48B8845C0495EB7A02</uid>
|
|
40
134
|
<name>SD.EM_EDA_VectorScenario</name>
|
|
@@ -108,6 +202,56 @@
|
|
|
108
202
|
<objType>STRUCTDEF</objType>
|
|
109
203
|
<valType>NAN</valType>
|
|
110
204
|
</HOBJ_REF>
|
|
205
|
+
<COL_REF>
|
|
206
|
+
<col_idx>5</col_idx>
|
|
207
|
+
<col_name>DisplayName</col_name>
|
|
208
|
+
<col_valType>Text</col_valType>
|
|
209
|
+
</COL_REF>
|
|
210
|
+
<COL_REF>
|
|
211
|
+
<col_idx>1</col_idx>
|
|
212
|
+
<col_name>ID</col_name>
|
|
213
|
+
<col_valType>Int</col_valType>
|
|
214
|
+
</COL_REF>
|
|
215
|
+
<COL_REF>
|
|
216
|
+
<col_idx>11</col_idx>
|
|
217
|
+
<col_name>IsIntegral</col_name>
|
|
218
|
+
<col_valType>Bool</col_valType>
|
|
219
|
+
</COL_REF>
|
|
220
|
+
<COL_REF>
|
|
221
|
+
<col_idx>3</col_idx>
|
|
222
|
+
<col_name>Name</col_name>
|
|
223
|
+
<col_valType>Text</col_valType>
|
|
224
|
+
</COL_REF>
|
|
225
|
+
<COL_REF>
|
|
226
|
+
<col_idx>2</col_idx>
|
|
227
|
+
<col_name>ParentID</col_name>
|
|
228
|
+
<col_valType>Int</col_valType>
|
|
229
|
+
</COL_REF>
|
|
230
|
+
<COL_REF>
|
|
231
|
+
<col_idx>4</col_idx>
|
|
232
|
+
<col_name>Path</col_name>
|
|
233
|
+
<col_valType>Text</col_valType>
|
|
234
|
+
</COL_REF>
|
|
235
|
+
<COL_REF>
|
|
236
|
+
<col_idx>9</col_idx>
|
|
237
|
+
<col_name>RoundingPlaces</col_name>
|
|
238
|
+
<col_valType>Int</col_valType>
|
|
239
|
+
</COL_REF>
|
|
240
|
+
<COL_REF>
|
|
241
|
+
<col_idx>8</col_idx>
|
|
242
|
+
<col_name>RoundingType</col_name>
|
|
243
|
+
<col_valType>Int</col_valType>
|
|
244
|
+
</COL_REF>
|
|
245
|
+
<COL_REF>
|
|
246
|
+
<col_idx>6</col_idx>
|
|
247
|
+
<col_name>Type</col_name>
|
|
248
|
+
<col_valType>Int</col_valType>
|
|
249
|
+
</COL_REF>
|
|
250
|
+
<COL_REF>
|
|
251
|
+
<col_idx>7</col_idx>
|
|
252
|
+
<col_name>Units</col_name>
|
|
253
|
+
<col_valType>Text</col_valType>
|
|
254
|
+
</COL_REF>
|
|
111
255
|
<HOBJ_REF>
|
|
112
256
|
<uid>1AAA46C113C8E147889E3266B626D911</uid>
|
|
113
257
|
<name>SELF.EVH</name>
|
|
@@ -184,94 +328,119 @@ INT _TYPE_DATE_WITHOUT_TIME = 6
|
|
|
184
328
|
; GetGroupChildren
|
|
185
329
|
;*********************************************************
|
|
186
330
|
|
|
187
|
-
PUBLIC PROCEDURE GetGroupChildren(IN
|
|
188
|
-
INT
|
|
331
|
+
PUBLIC PROCEDURE GetGroupChildren(IN INT _id, IN BOOL _showOmitted, IN INT _pageSize, IN INT _pageNr, RECORD NOALIAS (SD.EM_Tree_Item) _items, INT _totalCount, BOOL _isOk, TEXT _errorMsg)
|
|
332
|
+
INT _handle
|
|
333
|
+
INT _retCode
|
|
334
|
+
INT _i
|
|
189
335
|
TEXT _sql
|
|
336
|
+
RECORD NOALIAS (SD.EDA_SkVektor) _tmpData
|
|
190
337
|
|
|
191
|
-
CALL [E.EM_NAVIGATOR_SQL]
|
|
338
|
+
CALL [E.EM_NAVIGATOR_SQL] GetGroupChildrenSql(_id, _showOmitted, _sql, _isOk, _errorMsg) ON (%GetParentProcessHBJ())
|
|
192
339
|
|
|
193
340
|
IF !_isOk THEN
|
|
194
341
|
RETURN
|
|
195
342
|
ENDIF
|
|
196
343
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
IF !_isOk | _totalCount <= _offset THEN
|
|
200
|
-
_leftCount := 0
|
|
201
|
-
RETURN
|
|
344
|
+
IF !_id\VLD THEN
|
|
345
|
+
_pageSize := 1000
|
|
202
346
|
ENDIF
|
|
203
347
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
ELSE
|
|
212
|
-
_count := _totalCount
|
|
213
|
-
_offset := 0
|
|
214
|
-
_leftCount := 0
|
|
348
|
+
PG_CONNECT DB.EDA_SkVektor, _DB_READ, _handle, _pageSize, _sql, "Zobraz_Meno", _totalCount, _retCode
|
|
349
|
+
|
|
350
|
+
IF _retCode # _ERR_NO_ERROR & _retCode # _ERR_NO_DATA THEN
|
|
351
|
+
_isOk := @FALSE
|
|
352
|
+
_errorMsg := "Error PG_CONNECT [" + %IToStr(_retCode) + "] WHERE: " + _sql
|
|
353
|
+
LOG _errorMsg PRIORITY _LOG_PRTY_ERROR
|
|
354
|
+
RETURN
|
|
215
355
|
ENDIF
|
|
216
356
|
|
|
217
|
-
|
|
357
|
+
PG_READ _handle, _pageNr, _tmpData, _retCode
|
|
218
358
|
|
|
219
|
-
IF
|
|
359
|
+
IF _retCode # _ERR_NO_ERROR & _retCode # _ERR_NO_DATA THEN
|
|
360
|
+
_isOk := @FALSE
|
|
361
|
+
_errorMsg := "Error PG_READ [" + %IToStr(_retCode) + "] WHERE: " + _sql
|
|
362
|
+
LOG _errorMsg PRIORITY _LOG_PRTY_ERROR
|
|
220
363
|
RETURN
|
|
221
364
|
ENDIF
|
|
222
365
|
|
|
223
|
-
|
|
366
|
+
REDIM _items[_tmpData\DIM]
|
|
367
|
+
|
|
368
|
+
IF _tmpData\DIM > 0 THEN
|
|
369
|
+
FOR _i RANGE _tmpData DO_LOOP
|
|
370
|
+
_items[_i]^ID := _tmpData[_i]^ID_SkVektor
|
|
371
|
+
_items[_i]^ParentID := _tmpData[_i]^EDA_ID_SkVektor
|
|
372
|
+
_items[_i]^Name := _tmpData[_i]^Meno
|
|
373
|
+
_items[_i]^Path := _tmpData[_i]^Cesta
|
|
374
|
+
_items[_i]^DisplayName := _tmpData[_i]^Zobraz_Meno
|
|
375
|
+
_items[_i]^Type := 0
|
|
376
|
+
END_LOOP
|
|
377
|
+
ENDIF
|
|
378
|
+
|
|
379
|
+
PG_DISCONNECT _handle
|
|
380
|
+
_isOk := @TRUE
|
|
224
381
|
END GetGroupChildren
|
|
225
382
|
|
|
226
383
|
;*********************************************************
|
|
227
384
|
; GetGroupVectors
|
|
228
385
|
;*********************************************************
|
|
229
386
|
|
|
230
|
-
PUBLIC PROCEDURE GetGroupVectors(IN
|
|
231
|
-
INT
|
|
387
|
+
PUBLIC PROCEDURE GetGroupVectors(IN INT _id, IN BOOL _showOmitted, IN INT _pageSize, IN INT _pageNr, RECORD NOALIAS (SD.EM_Tree_Item) _items, INT _totalCount, BOOL _isOk, TEXT _errorMsg)
|
|
388
|
+
INT _handle
|
|
389
|
+
INT _retCode
|
|
390
|
+
INT _i
|
|
232
391
|
TEXT _sql
|
|
392
|
+
RECORD NOALIAS (SD.EDA_Vektor) _tmpData
|
|
233
393
|
|
|
234
|
-
CALL [E.EM_NAVIGATOR_SQL]
|
|
394
|
+
CALL [E.EM_NAVIGATOR_SQL] GetGroupVectorsSql(_id, _showOmitted, _sql, _isOk, _errorMsg) ON (%GetParentProcessHBJ())
|
|
235
395
|
|
|
236
396
|
IF !_isOk THEN
|
|
237
397
|
RETURN
|
|
238
398
|
ENDIF
|
|
399
|
+
|
|
400
|
+
PG_CONNECT DB.EDA_Vektor, _DB_READ, _handle, _pageSize, _sql, "Zobraz_Meno", _totalCount, _retCode
|
|
239
401
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
402
|
+
IF _retCode # _ERR_NO_ERROR & _retCode # _ERR_NO_DATA THEN
|
|
403
|
+
_isOk := @FALSE
|
|
404
|
+
_errorMsg := "Error PG_CONNECT [" + %IToStr(_retCode) + "] WHERE: " + _sql
|
|
405
|
+
LOG _errorMsg PRIORITY _LOG_PRTY_ERROR
|
|
244
406
|
RETURN
|
|
245
407
|
ENDIF
|
|
246
408
|
|
|
247
|
-
|
|
248
|
-
IF _count + _offset < _totalCount THEN
|
|
249
|
-
_leftCount := _totalCount - _count - _offset
|
|
250
|
-
ELSE
|
|
251
|
-
_count := _totalCount - _offset
|
|
252
|
-
_leftCount := 0
|
|
253
|
-
ENDIF
|
|
254
|
-
ELSE
|
|
255
|
-
_count := _totalCount
|
|
256
|
-
_offset := 0
|
|
257
|
-
_leftCount := 0
|
|
258
|
-
ENDIF
|
|
409
|
+
PG_READ _handle, _pageNr, _tmpData, _retCode
|
|
259
410
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
411
|
+
IF _retCode # _ERR_NO_ERROR & _retCode # _ERR_NO_DATA THEN
|
|
412
|
+
_isOk := @FALSE
|
|
413
|
+
_errorMsg := "Error PG_READ [" + %IToStr(_retCode) + "] WHERE: " + _sql
|
|
414
|
+
LOG _errorMsg PRIORITY _LOG_PRTY_ERROR
|
|
263
415
|
RETURN
|
|
264
416
|
ENDIF
|
|
265
417
|
|
|
266
|
-
|
|
418
|
+
REDIM _items[_tmpData\DIM]
|
|
419
|
+
|
|
420
|
+
IF _tmpData\DIM > 0 THEN
|
|
421
|
+
FOR _i RANGE _tmpData DO_LOOP
|
|
422
|
+
_items[_i]^ID := _tmpData[_i]^ID_Vektor
|
|
423
|
+
_items[_i]^ParentID := _tmpData[_i]^ID_SkVektor
|
|
424
|
+
_items[_i]^Name := _tmpData[_i]^Meno
|
|
425
|
+
_items[_i]^DisplayName := _tmpData[_i]^Zobraz_Meno
|
|
426
|
+
_items[_i]^Type := _tmpData[_i]^Typ
|
|
427
|
+
_items[_i]^Units := _tmpData[_i]^Tech_jednotky
|
|
428
|
+
_items[_i]^RoundingType := _tmpData[_i]^View_Round
|
|
429
|
+
_items[_i]^RoundingPlaces := _tmpData[_i]^View_Dec_Pl
|
|
430
|
+
_items[_i]^IsIntegral := _tmpData[_i]^Integral = 2
|
|
431
|
+
END_LOOP
|
|
432
|
+
ENDIF
|
|
433
|
+
|
|
434
|
+
PG_DISCONNECT _handle
|
|
435
|
+
_isOk := @TRUE
|
|
267
436
|
END GetGroupVectors
|
|
268
437
|
|
|
269
438
|
;*********************************************************
|
|
270
439
|
; GetScenarioChildren
|
|
271
440
|
;*********************************************************
|
|
272
441
|
|
|
273
|
-
PUBLIC PROCEDURE GetScenarioChildren(IN DB_HANDLE _hndl, IN INT _id, IN BOOL _showOmitted, IN INT
|
|
274
|
-
INT
|
|
442
|
+
PUBLIC PROCEDURE GetScenarioChildren(IN DB_HANDLE _hndl, IN INT _id, IN BOOL _showOmitted, IN INT _pageSize, IN INT _pageNr, RECORD NOALIAS (SD.EM_Tree_Item) _items, INT _totalCount, BOOL _isOk, TEXT _errorMsg)
|
|
443
|
+
INT _offset = (_pageNr - 1) * _pageSize
|
|
275
444
|
TEXT _sql
|
|
276
445
|
|
|
277
446
|
CALL [E.EM_NAVIGATOR_SQL] GetScenarioCountSql(_id, _showOmitted, _sql, _isOk, _errorMsg) ON (%GetParentProcessHBJ())
|
|
@@ -282,22 +451,12 @@ PUBLIC PROCEDURE GetScenarioChildren(IN DB_HANDLE _hndl, IN INT _id, IN BOOL _sh
|
|
|
282
451
|
|
|
283
452
|
CALL GetCount(_hndl, _sql, _totalCount, _isOk, _errorMsg)
|
|
284
453
|
|
|
285
|
-
IF !_isOk
|
|
286
|
-
_leftCount := 0
|
|
454
|
+
IF !_isOk THEN
|
|
287
455
|
RETURN
|
|
288
456
|
ENDIF
|
|
289
457
|
|
|
290
|
-
IF _id\VLD THEN
|
|
291
|
-
|
|
292
|
-
_leftCount := _totalCount - _count - _offset
|
|
293
|
-
ELSE
|
|
294
|
-
_count := _totalCount - _offset
|
|
295
|
-
_leftCount := 0
|
|
296
|
-
ENDIF
|
|
297
|
-
ELSE
|
|
298
|
-
_count := _totalCount
|
|
299
|
-
_offset := 0
|
|
300
|
-
_leftCount := 0
|
|
458
|
+
IF !_id\VLD THEN
|
|
459
|
+
_pageSize := 1000
|
|
301
460
|
ENDIF
|
|
302
461
|
|
|
303
462
|
CALL [E.EM_NAVIGATOR_SQL] GetScenarioItemsSql(_id, _showOmitted, _sql, _isOk, _errorMsg) ON (%GetParentProcessHBJ())
|
|
@@ -306,15 +465,15 @@ PUBLIC PROCEDURE GetScenarioChildren(IN DB_HANDLE _hndl, IN INT _id, IN BOOL _sh
|
|
|
306
465
|
RETURN
|
|
307
466
|
ENDIF
|
|
308
467
|
|
|
309
|
-
CALL GetItems(_hndl, _sql,
|
|
468
|
+
CALL GetItems(_hndl, _sql, _pageSize, _offset, _items, _isOk, _errorMsg)
|
|
310
469
|
END GetScenarioChildren
|
|
311
470
|
|
|
312
471
|
;*********************************************************
|
|
313
472
|
; GetScenarioVectors
|
|
314
473
|
;*********************************************************
|
|
315
474
|
|
|
316
|
-
PUBLIC PROCEDURE GetScenarioVectors(IN DB_HANDLE _hndl, IN INT _id, IN BOOL _showOmitted, IN BOOL _showDynamic, IN INT
|
|
317
|
-
INT
|
|
475
|
+
PUBLIC PROCEDURE GetScenarioVectors(IN DB_HANDLE _hndl, IN INT _id, IN BOOL _showOmitted, IN BOOL _showDynamic, IN INT _pageSize, IN INT _pageNr, RECORD NOALIAS (SD.EM_Tree_Item) _items, INT _totalCount, BOOL _isOk, TEXT _errorMsg)
|
|
476
|
+
INT _offset = (_pageNr - 1) * _pageSize
|
|
318
477
|
TEXT _sql
|
|
319
478
|
|
|
320
479
|
IF !_id\VLD THEN
|
|
@@ -329,31 +488,17 @@ PUBLIC PROCEDURE GetScenarioVectors(IN DB_HANDLE _hndl, IN INT _id, IN BOOL _sho
|
|
|
329
488
|
|
|
330
489
|
CALL GetCount(_hndl, _sql, _totalCount, _isOk, _errorMsg)
|
|
331
490
|
|
|
332
|
-
IF !_isOk
|
|
333
|
-
_leftCount := 0
|
|
491
|
+
IF !_isOk THEN
|
|
334
492
|
RETURN
|
|
335
493
|
ENDIF
|
|
336
494
|
|
|
337
|
-
IF _id\VLD THEN
|
|
338
|
-
IF _count + _offset < _totalCount THEN
|
|
339
|
-
_leftCount := _totalCount - _count - _offset
|
|
340
|
-
ELSE
|
|
341
|
-
_count := _totalCount - _offset
|
|
342
|
-
_leftCount := 0
|
|
343
|
-
ENDIF
|
|
344
|
-
ELSE
|
|
345
|
-
_count := _totalCount
|
|
346
|
-
_offset := 0
|
|
347
|
-
_leftCount := 0
|
|
348
|
-
ENDIF
|
|
349
|
-
|
|
350
495
|
CALL [E.EM_NAVIGATOR_SQL] GetScenarioVectorItemsSql(_id, _showOmitted, _showDynamic, _sql, _isOk, _errorMsg) ON (%GetParentProcessHBJ())
|
|
351
496
|
|
|
352
497
|
IF !_isOk THEN
|
|
353
498
|
RETURN
|
|
354
499
|
ENDIF
|
|
355
500
|
|
|
356
|
-
CALL GetItems(_hndl, _sql,
|
|
501
|
+
CALL GetItems(_hndl, _sql, _pageSize, _offset, _items, _isOk, _errorMsg)
|
|
357
502
|
END GetScenarioVectors
|
|
358
503
|
|
|
359
504
|
;*********************************************************
|
|
@@ -25,6 +25,18 @@
|
|
|
25
25
|
<objType>STRUCTDEF</objType>
|
|
26
26
|
<valType>NAN</valType>
|
|
27
27
|
</HOBJ_REF>
|
|
28
|
+
<HOBJ_REF>
|
|
29
|
+
<uid>86C261600314754490468DDFB6FDF800</uid>
|
|
30
|
+
<name>SD.EM_EDA_CalcFunction_Params_V2</name>
|
|
31
|
+
<objType>STRUCTDEF</objType>
|
|
32
|
+
<valType>NAN</valType>
|
|
33
|
+
</HOBJ_REF>
|
|
34
|
+
<HOBJ_REF>
|
|
35
|
+
<uid>D07C5D523E2EE947AA8C503BC5ECBB3B</uid>
|
|
36
|
+
<name>SD.EM_EDA_ReadValuesFromVector_Params_V2</name>
|
|
37
|
+
<objType>STRUCTDEF</objType>
|
|
38
|
+
<valType>NAN</valType>
|
|
39
|
+
</HOBJ_REF>
|
|
28
40
|
<HOBJ_REF>
|
|
29
41
|
<uid>88D757FB3AD367478EDD36D2EC77BC26</uid>
|
|
30
42
|
<name>SD.EM_EDA_VectorStats</name>
|
|
@@ -93,8 +105,8 @@
|
|
|
93
105
|
|
|
94
106
|
UNIT (E.EM_VECTOR_UNIT) _unit
|
|
95
107
|
|
|
96
|
-
RPC PROCEDURE ReadValuesFromVector(IN INT _id, IN TIME _from, IN TIME _to, IN INT _step, RECORD NOALIAS(SD.EDA_VectorData) _data, RECORD NOALIAS(SD.EM_EDA_VectorStats) _stats, BOOL _isOk, TEXT _errorMsg)
|
|
97
|
-
CALL [_unit] ReadValuesFromVector(_id, _from, _to, _step, _data, _stats, _isOk, _errorMsg)
|
|
108
|
+
RPC PROCEDURE ReadValuesFromVector(IN INT _id, IN TIME _from, IN TIME _to, IN INT _step, IN RECORD NOALIAS (SD.EM_EDA_ReadValuesFromVector_Params_V2) _readParams, RECORD NOALIAS(SD.EDA_VectorData) _data, RECORD NOALIAS(SD.EM_EDA_VectorStats) _stats, BOOL _isOk, TEXT _errorMsg)
|
|
109
|
+
CALL [_unit] ReadValuesFromVector(_id, _from, _to, _step, _readParams, _data, _stats, _isOk, _errorMsg)
|
|
98
110
|
END ReadValuesFromVector
|
|
99
111
|
|
|
100
112
|
RPC PROCEDURE InsertValuesToVector(IN INT _id, IN RECORD NOALIAS(SD.EDA_VectorData) _data, BOOL _isOk, TEXT _errorMsg)
|
|
@@ -109,6 +121,10 @@ RPC PROCEDURE GetValuesForDescriptiveVector(IN RECORD NOALIAS(SD.EDA_Descriptive
|
|
|
109
121
|
CALL [_unit] GetValuesForDescriptiveVector(_definition, _from, _to, _step, _integral, _values, _isOk, _errorMsg)
|
|
110
122
|
END GetValuesForDescriptiveVector
|
|
111
123
|
|
|
124
|
+
RPC PROCEDURE CalcValuesForUnsavedVector(IN INT _type, IN TEXT _prescription, IN TIME _from, IN TIME _to, IN INT _step, RECORD NOALIAS (SD.EM_EDA_CalcFunction_Params_V2) _calcParams, RECORD NOALIAS(SD.EDA_VectorData) _data, RECORD NOALIAS(SD.EM_EDA_VectorStats) _stats, BOOL _isOk, TEXT _errorMsg)
|
|
125
|
+
CALL [_unit] CalcValuesForUnsavedVector(_type, _prescription, _from, _to, _step, _calcParams, _data, _stats, _isOk, _errorMsg)
|
|
126
|
+
END CalcValuesForUnsavedVector
|
|
127
|
+
|
|
112
128
|
BEGIN
|
|
113
129
|
PRAGMA "ENABLE_INOUT_BY_REF"
|
|
114
130
|
END
|