@fluxhub/fluxhub-lib 1.0.90 → 1.0.92
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/bundles/fluxhub-fluxhub-lib.umd.js +14740 -14718
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/classes/FHValueAccessor.html +1 -1
- package/docs/classes/dati_aggiuntivi.html +16 -1
- package/docs/classes/wkfapp.html +35 -1
- package/docs/components/DtPick.html +6 -6
- package/docs/components/FHAutoCompleteComponent.html +13 -0
- package/docs/components/FHDatePickerComponent.html +10 -0
- package/docs/components/FHGridComponent.html +335 -335
- package/docs/components/FHGridJSONComponent.html +104 -104
- package/docs/components/FHLogPanelComponent.html +29 -29
- package/docs/components/win_commenti.html +16 -1
- package/docs/components/win_log.html +16 -1
- package/docs/components/win_mappa.html +2 -2
- package/docs/components/win_uploads.html +2 -2
- package/docs/coverage.html +16 -16
- package/docs/js/menu-wc.js +11 -8
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +19 -19
- package/esm2015/fluxhub-fluxhub-lib.js +29 -29
- package/esm2015/lib/auth_guard.js +143 -143
- package/esm2015/lib/controls/fhautocomplete.js +538 -528
- package/esm2015/lib/controls/fhcombobox.js +405 -405
- package/esm2015/lib/controls/fhconfirm.js +73 -73
- package/esm2015/lib/controls/fhcurrencyfield.js +218 -218
- package/esm2015/lib/controls/fhcurrencyformatter.js +58 -58
- package/esm2015/lib/controls/fhcurrencypipe.js +52 -52
- package/esm2015/lib/controls/fhdatepicker.js +235 -224
- package/esm2015/lib/controls/fhgrid.js +1479 -1479
- package/esm2015/lib/controls/fhgrid_json.js +1272 -1272
- package/esm2015/lib/controls/fhgrid_win_help.js +78 -78
- package/esm2015/lib/controls/fhgridcolumn.js +23 -23
- package/esm2015/lib/controls/fhlist.js +361 -361
- package/esm2015/lib/controls/fhlogpanel.js +112 -112
- package/esm2015/lib/controls/fhmdreader.js +56 -56
- package/esm2015/lib/controls/fhnumeric.js +214 -214
- package/esm2015/lib/controls/fhreplacelinebreak.js +20 -20
- package/esm2015/lib/controls/fhrichtext.js +147 -147
- package/esm2015/lib/controls/fhtimepicker.js +374 -374
- package/esm2015/lib/controls/fhupload.js +301 -301
- package/esm2015/lib/controls/fhuploadpanel.js +262 -262
- package/esm2015/lib/controls/fhuserfield.js +292 -292
- package/esm2015/lib/controls/fhuserpicker.js +317 -317
- package/esm2015/lib/controls/fhwinpicklist.js +376 -376
- package/esm2015/lib/controls/grid_editors/approvabuttons.js +120 -120
- package/esm2015/lib/controls/grid_editors/currency.component.js +29 -29
- package/esm2015/lib/controls/grid_editors/date-component.component.js +158 -158
- package/esm2015/lib/controls/grid_editors/dt.js +25 -25
- package/esm2015/lib/controls/grid_editors/dt_pick.js +185 -185
- package/esm2015/lib/controls/grid_editors/numeric-editor.component.js +148 -148
- package/esm2015/lib/controls/grid_editors/select-editor.component.js +184 -184
- package/esm2015/lib/controls/grid_editors/textarea-editor.component.js +146 -146
- package/esm2015/lib/controls/onlynumber.directive.js +68 -68
- package/esm2015/lib/controls/win_ask_number.js +95 -95
- package/esm2015/lib/controls/win_ask_text.js +100 -100
- package/esm2015/lib/controls/win_ask_textbig.js +97 -97
- package/esm2015/lib/controls/win_combo_select.js +95 -95
- package/esm2015/lib/controls/win_list_pick.js +98 -98
- package/esm2015/lib/controls/win_mappa.js +142 -142
- package/esm2015/lib/controls/win_output.js +91 -91
- package/esm2015/lib/controls/win_time_slider.js +122 -122
- package/esm2015/lib/controls/win_wait.js +79 -79
- package/esm2015/lib/fluxhub-lib.module.js +171 -171
- package/esm2015/lib/models/FHValueAccessor.js +104 -0
- package/esm2015/lib/models/FSInput.js +24 -24
- package/esm2015/lib/models/FSResult.js +22 -22
- package/esm2015/lib/models/QGParam.js +33 -33
- package/esm2015/lib/models/QGResult.js +21 -21
- package/esm2015/lib/models/QParam.js +26 -26
- package/esm2015/lib/models/QResult.js +22 -22
- package/esm2015/lib/services/app.service.js +134 -134
- package/esm2015/lib/services/app_maker.service.js +93 -93
- package/esm2015/lib/services/dofile.service.js +95 -95
- package/esm2015/lib/services/doquery.service.js +133 -133
- package/esm2015/lib/services/doquery_odbc.service.js +95 -95
- package/esm2015/lib/services/dowkf.service.js +95 -95
- package/esm2015/lib/services/grid.service.js +95 -95
- package/esm2015/lib/services/localstorage.service.js +95 -95
- package/esm2015/lib/services/login.service.js +304 -304
- package/esm2015/lib/services/prismservice.js +47 -47
- package/esm2015/lib/services/utility.service.js +682 -682
- package/esm2015/lib/wkf_engine/win_assegna.js +139 -139
- package/esm2015/lib/wkf_engine/win_commenti.js +344 -343
- package/esm2015/lib/wkf_engine/win_commento_sel_notif.js +121 -121
- package/esm2015/lib/wkf_engine/win_conferma.js +126 -126
- package/esm2015/lib/wkf_engine/win_info_doc.js +128 -128
- package/esm2015/lib/wkf_engine/win_log.js +410 -409
- package/esm2015/lib/wkf_engine/win_recupera.js +134 -134
- package/esm2015/lib/wkf_engine/win_riassegna_select_level.js +148 -148
- package/esm2015/lib/wkf_engine/win_riassegna_select_user.js +131 -131
- package/esm2015/lib/wkf_engine/win_salva_annulla.js +66 -66
- package/esm2015/lib/wkf_engine/win_select_canale.js +93 -93
- package/esm2015/lib/wkf_engine/win_select_level.js +167 -167
- package/esm2015/lib/wkf_engine/win_uploads.js +321 -321
- package/esm2015/lib/wkf_engine/wkfapp.js +845 -844
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +1761 -1760
- package/esm2015/public_api.js +67 -67
- package/esm5/fluxhub-fluxhub-lib.js +29 -29
- package/esm5/lib/auth_guard.js +141 -141
- package/esm5/lib/controls/fhautocomplete.js +594 -593
- package/esm5/lib/controls/fhcombobox.js +448 -448
- package/esm5/lib/controls/fhconfirm.js +74 -74
- package/esm5/lib/controls/fhcurrencyfield.js +256 -256
- package/esm5/lib/controls/fhcurrencyformatter.js +67 -67
- package/esm5/lib/controls/fhcurrencypipe.js +67 -67
- package/esm5/lib/controls/fhdatepicker.js +256 -255
- package/esm5/lib/controls/fhgrid.js +1697 -1697
- package/esm5/lib/controls/fhgrid_json.js +1455 -1455
- package/esm5/lib/controls/fhgrid_win_help.js +49 -49
- package/esm5/lib/controls/fhgridcolumn.js +23 -23
- package/esm5/lib/controls/fhlist.js +393 -393
- package/esm5/lib/controls/fhlogpanel.js +105 -105
- package/esm5/lib/controls/fhmdreader.js +54 -54
- package/esm5/lib/controls/fhnumeric.js +242 -242
- package/esm5/lib/controls/fhreplacelinebreak.js +28 -28
- package/esm5/lib/controls/fhrichtext.js +159 -159
- package/esm5/lib/controls/fhtimepicker.js +425 -425
- package/esm5/lib/controls/fhupload.js +308 -308
- package/esm5/lib/controls/fhuploadpanel.js +220 -220
- package/esm5/lib/controls/fhuserfield.js +294 -294
- package/esm5/lib/controls/fhuserpicker.js +245 -245
- package/esm5/lib/controls/fhwinpicklist.js +329 -329
- package/esm5/lib/controls/grid_editors/approvabuttons.js +119 -119
- package/esm5/lib/controls/grid_editors/currency.component.js +40 -40
- package/esm5/lib/controls/grid_editors/date-component.component.js +143 -143
- package/esm5/lib/controls/grid_editors/dt.js +22 -22
- package/esm5/lib/controls/grid_editors/dt_pick.js +203 -203
- package/esm5/lib/controls/grid_editors/numeric-editor.component.js +183 -183
- package/esm5/lib/controls/grid_editors/select-editor.component.js +168 -168
- package/esm5/lib/controls/grid_editors/textarea-editor.component.js +134 -134
- package/esm5/lib/controls/onlynumber.directive.js +72 -72
- package/esm5/lib/controls/win_ask_number.js +95 -95
- package/esm5/lib/controls/win_ask_text.js +100 -100
- package/esm5/lib/controls/win_ask_textbig.js +97 -97
- package/esm5/lib/controls/win_combo_select.js +86 -86
- package/esm5/lib/controls/win_list_pick.js +87 -87
- package/esm5/lib/controls/win_mappa.js +116 -116
- package/esm5/lib/controls/win_output.js +87 -87
- package/esm5/lib/controls/win_time_slider.js +95 -95
- package/esm5/lib/controls/win_wait.js +71 -71
- package/esm5/lib/fluxhub-lib.module.js +181 -181
- package/esm5/lib/{controls → models}/FHValueAccessor.js +173 -173
- package/esm5/lib/models/FSInput.js +26 -26
- package/esm5/lib/models/FSResult.js +24 -24
- package/esm5/lib/models/QGParam.js +35 -35
- package/esm5/lib/models/QGResult.js +25 -25
- package/esm5/lib/models/QParam.js +28 -28
- package/esm5/lib/models/QResult.js +24 -24
- package/esm5/lib/services/app.service.js +152 -152
- package/esm5/lib/services/app_maker.service.js +107 -107
- package/esm5/lib/services/dofile.service.js +109 -109
- package/esm5/lib/services/doquery.service.js +147 -147
- package/esm5/lib/services/doquery_odbc.service.js +109 -109
- package/esm5/lib/services/dowkf.service.js +109 -109
- package/esm5/lib/services/grid.service.js +101 -101
- package/esm5/lib/services/localstorage.service.js +113 -113
- package/esm5/lib/services/login.service.js +340 -340
- package/esm5/lib/services/prismservice.js +49 -49
- package/esm5/lib/services/utility.service.js +839 -839
- package/esm5/lib/wkf_engine/win_assegna.js +120 -120
- package/esm5/lib/wkf_engine/win_commenti.js +334 -331
- package/esm5/lib/wkf_engine/win_commento_sel_notif.js +108 -108
- package/esm5/lib/wkf_engine/win_conferma.js +104 -104
- package/esm5/lib/wkf_engine/win_info_doc.js +64 -64
- package/esm5/lib/wkf_engine/win_log.js +391 -388
- package/esm5/lib/wkf_engine/win_recupera.js +122 -122
- package/esm5/lib/wkf_engine/win_riassegna_select_level.js +140 -140
- package/esm5/lib/wkf_engine/win_riassegna_select_user.js +112 -112
- package/esm5/lib/wkf_engine/win_salva_annulla.js +63 -63
- package/esm5/lib/wkf_engine/win_select_canale.js +77 -77
- package/esm5/lib/wkf_engine/win_select_level.js +161 -161
- package/esm5/lib/wkf_engine/win_uploads.js +286 -286
- package/esm5/lib/wkf_engine/wkfapp.js +918 -915
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +1934 -1931
- package/esm5/public_api.js +67 -67
- package/fesm2015/fluxhub-fluxhub-lib.js +13786 -13761
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +14508 -14494
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +24 -24
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/auth_guard.d.ts +22 -22
- package/lib/controls/fhautocomplete.d.ts +61 -61
- package/lib/controls/fhcombobox.d.ts +44 -44
- package/lib/controls/fhconfirm.d.ts +16 -16
- package/lib/controls/fhcurrencyfield.d.ts +32 -32
- package/lib/controls/fhcurrencyformatter.d.ts +11 -11
- package/lib/controls/fhcurrencypipe.d.ts +8 -8
- package/lib/controls/fhdatepicker.d.ts +33 -33
- package/lib/controls/fhgrid.d.ts +143 -143
- package/lib/controls/fhgrid_json.d.ts +146 -146
- package/lib/controls/fhgrid_win_help.d.ts +12 -12
- package/lib/controls/fhgridcolumn.d.ts +18 -18
- package/lib/controls/fhlist.d.ts +36 -36
- package/lib/controls/fhlogpanel.d.ts +31 -31
- package/lib/controls/fhmdreader.d.ts +10 -10
- package/lib/controls/fhnumeric.d.ts +32 -32
- package/lib/controls/fhreplacelinebreak.d.ts +4 -4
- package/lib/controls/fhrichtext.d.ts +23 -23
- package/lib/controls/fhtimepicker.d.ts +54 -54
- package/lib/controls/fhupload.d.ts +44 -44
- package/lib/controls/fhuploadpanel.d.ts +32 -32
- package/lib/controls/fhuserfield.d.ts +31 -31
- package/lib/controls/fhuserpicker.d.ts +31 -31
- package/lib/controls/fhwinpicklist.d.ts +41 -41
- package/lib/controls/grid_editors/approvabuttons.d.ts +15 -15
- package/lib/controls/grid_editors/currency.component.d.ts +6 -6
- package/lib/controls/grid_editors/date-component.component.d.ts +20 -20
- package/lib/controls/grid_editors/dt.d.ts +7 -7
- package/lib/controls/grid_editors/dt_pick.d.ts +27 -27
- package/lib/controls/grid_editors/numeric-editor.component.d.ts +20 -20
- package/lib/controls/grid_editors/select-editor.component.d.ts +22 -22
- package/lib/controls/grid_editors/textarea-editor.component.d.ts +17 -17
- package/lib/controls/onlynumber.directive.d.ts +6 -6
- package/lib/controls/win_ask_number.d.ts +18 -18
- package/lib/controls/win_ask_text.d.ts +18 -18
- package/lib/controls/win_ask_textbig.d.ts +17 -17
- package/lib/controls/win_combo_select.d.ts +17 -17
- package/lib/controls/win_list_pick.d.ts +19 -19
- package/lib/controls/win_mappa.d.ts +23 -23
- package/lib/controls/win_output.d.ts +17 -17
- package/lib/controls/win_time_slider.d.ts +18 -18
- package/lib/controls/win_wait.d.ts +16 -16
- package/lib/fluxhub-lib.module.d.ts +5 -5
- package/lib/{controls → models}/FHValueAccessor.d.ts +35 -35
- package/lib/models/FSInput.d.ts +5 -5
- package/lib/models/FSResult.d.ts +5 -5
- package/lib/models/QGParam.d.ts +10 -10
- package/lib/models/QGResult.d.ts +6 -6
- package/lib/models/QParam.d.ts +6 -6
- package/lib/models/QResult.d.ts +5 -5
- package/lib/services/app.service.d.ts +60 -60
- package/lib/services/app_maker.service.d.ts +17 -17
- package/lib/services/dofile.service.d.ts +17 -17
- package/lib/services/doquery.service.d.ts +25 -25
- package/lib/services/doquery_odbc.service.d.ts +17 -17
- package/lib/services/dowkf.service.d.ts +17 -17
- package/lib/services/grid.service.d.ts +16 -16
- package/lib/services/localstorage.service.d.ts +14 -14
- package/lib/services/login.service.d.ts +33 -33
- package/lib/services/prismservice.d.ts +17 -17
- package/lib/services/utility.service.d.ts +44 -44
- package/lib/wkf_engine/win_assegna.d.ts +23 -23
- package/lib/wkf_engine/win_commenti.d.ts +35 -35
- package/lib/wkf_engine/win_commento_sel_notif.d.ts +19 -19
- package/lib/wkf_engine/win_conferma.d.ts +22 -22
- package/lib/wkf_engine/win_info_doc.d.ts +17 -17
- package/lib/wkf_engine/win_log.d.ts +41 -41
- package/lib/wkf_engine/win_recupera.d.ts +18 -18
- package/lib/wkf_engine/win_riassegna_select_level.d.ts +20 -20
- package/lib/wkf_engine/win_riassegna_select_user.d.ts +23 -23
- package/lib/wkf_engine/win_salva_annulla.d.ts +13 -13
- package/lib/wkf_engine/win_select_canale.d.ts +16 -16
- package/lib/wkf_engine/win_select_level.d.ts +19 -19
- package/lib/wkf_engine/win_uploads.d.ts +40 -40
- package/lib/wkf_engine/wkfapp.d.ts +65 -65
- package/lib/wkf_engine/wkfdatiaggiuntivi.d.ts +141 -141
- package/package.json +1 -1
- package/public_api.d.ts +60 -60
- package/esm2015/lib/controls/FHValueAccessor.js +0 -104
|
@@ -3317,232 +3317,232 @@
|
|
|
3317
3317
|
</tr>
|
|
3318
3318
|
<tr>
|
|
3319
3319
|
<td class="col-md-4">
|
|
3320
|
-
<i>Default value : </i><code>{
|
|
3321
|
-
//rowCount: ???, - not setting the row count, infinite paging will be used
|
|
3322
|
-
getRows: (params: any) => {
|
|
3323
|
-
|
|
3324
|
-
// this code should contact the server for rows. however for the purposes of the demo,
|
|
3325
|
-
// the data is generated locally, a timer is used to give the experience of
|
|
3326
|
-
// an asynchronous call
|
|
3327
|
-
// console.log('asking for ' + params.startRow + ' to ' + params.endRow);
|
|
3328
|
-
//console.log( params.filterModel);// + ' params.filterModel ' +params.filterModel);
|
|
3329
|
-
|
|
3330
|
-
this.slimLoadingBarService.start(() => {
|
|
3331
|
-
});
|
|
3332
|
-
|
|
3333
|
-
var p: QGParam = new QGParam();
|
|
3334
|
-
p.table = this.tbl_name;
|
|
3335
|
-
p.table_count = this.tbl_name;
|
|
3336
|
-
if (this.count_tbl_name != '')
|
|
3337
|
-
p.table_count = this.count_tbl_name;
|
|
3338
|
-
// console.log(params);
|
|
3339
|
-
p.num_per_pag = params.endRow-params.startRow;
|
|
3340
|
-
// this.gridOptions.paginationPageSize = this.num_per_pag;
|
|
3341
|
-
// this.gridOptions.cacheBlockSize = this.num_per_pag;
|
|
3342
|
-
// console.log(this.gridOptions.cacheBlockSize );
|
|
3343
|
-
// console.log(this.gridOptions.paginationPageSize );
|
|
3344
|
-
p.curr_page = Math.round(params.startRow / p.num_per_pag);
|
|
3345
|
-
if(p.curr_page==null)p.curr_page=0;
|
|
3346
|
-
if(p.num_per_pag==null)p.num_per_pag=100;
|
|
3347
|
-
p.sort_field = this.sort_field;
|
|
3348
|
-
|
|
3349
|
-
if (params.sortModel != null)
|
|
3350
|
-
if (params.sortModel.length > 0) {
|
|
3351
|
-
p.sort_field = '';
|
|
3352
|
-
for (var i: number = 0; i < params.sortModel.length; i++) {
|
|
3353
|
-
if (p.sort_field != "") p.sort_field = p.sort_field + ',';
|
|
3354
|
-
if(params.sortModel[i].colId=='autori')
|
|
3355
|
-
p.sort_field = p.sort_field + "case when CHARINDEX('"+localStorage.getItem(this.m_appService.COMPANY_KEY + "user")+"',autori)>0 then 1 else 0 end" + ' ' + params.sortModel[i].sort;
|
|
3356
|
-
else
|
|
3357
|
-
p.sort_field = p.sort_field + params.sortModel[i].colId + ' ' + params.sortModel[i].sort;
|
|
3358
|
-
|
|
3359
|
-
}
|
|
3360
|
-
}
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
p.system_dest=this.system_dest;
|
|
3364
|
-
p.field = this.fields;
|
|
3365
|
-
// console.log( p.field );
|
|
3366
|
-
if(this.filters!=null)
|
|
3367
|
-
p.filter = this.filters;
|
|
3368
|
-
|
|
3369
|
-
if (this.fix_flt != "") {
|
|
3370
|
-
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3371
|
-
p.filter = p.filter + ' (' + this.fix_flt + ' )';
|
|
3372
|
-
}
|
|
3373
|
-
if (this.fix_flt_temp != "") {
|
|
3374
|
-
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3375
|
-
p.filter = p.filter + ' (' + this.fix_flt_temp + ' )';
|
|
3376
|
-
}
|
|
3377
|
-
|
|
3378
|
-
// console.log('Filter model');
|
|
3379
|
-
//console.log(params.filterModel);
|
|
3380
|
-
if (params.filterModel != null) {
|
|
3381
|
-
// console.log('Filtri');
|
|
3382
|
-
for (var key in params.filterModel) {
|
|
3383
|
-
// console.log(key);
|
|
3384
|
-
// if (p.hasOwnProperty(key)) {
|
|
3385
|
-
// console.log( params.filterModel[key]);
|
|
3386
|
-
if (params.filterModel[key].type != null) {
|
|
3387
|
-
if (params.filterModel[key].filter != null) {
|
|
3388
|
-
this.show_pulisci_filtri=true;
|
|
3389
|
-
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3390
|
-
if( params.filterModel[key].filterType=='number'){
|
|
3391
|
-
if(params.filterModel[key].type=="greaterThan") p.filter = p.filter +' '+ key + ' > ' + params.filterModel[key].filter ;
|
|
3392
|
-
if(params.filterModel[key].type=="equals") p.filter = p.filter +' '+ key + ' = ' + params.filterModel[key].filter ;
|
|
3393
|
-
if(params.filterModel[key].type=="notEqual") p.filter = p.filter +' '+ key + ' <> ' + params.filterModel[key].filter ;
|
|
3394
|
-
if(params.filterModel[key].type=="lessThan") p.filter = p.filter +' '+ key + ' < ' + params.filterModel[key].filter ;
|
|
3395
|
-
if(params.filterModel[key].type=="lessThanOrEqual") p.filter = p.filter +' '+ key + ' <= ' + params.filterModel[key].filter ;
|
|
3396
|
-
if(params.filterModel[key].type=="greaterThanOrEqual") p.filter = p.filter +' '+ key + ' >= ' + params.filterModel[key].filter ;
|
|
3397
|
-
if(params.filterModel[key].type=="inRange") p.filter = p.filter +' ('+ key + ' >= ' + params.filterModel[key].filter+' and '+ key + ' <= ' + params.filterModel[key].filterTo+')' ;
|
|
3398
|
-
|
|
3399
|
-
}
|
|
3400
|
-
else{
|
|
3401
|
-
if(params.filterModel[key].type=="contains") p.filter = p.filter +' upper('+ key + ') like \'%' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3402
|
-
if(params.filterModel[key].type=="startsWith") p.filter = p.filter +' upper('+ key + ') like \'' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3403
|
-
if(params.filterModel[key].type=="equals") p.filter = p.filter +' upper('+ key + ') = \'' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3404
|
-
if(params.filterModel[key].type=="notContains") p.filter = p.filter +'not upper('+ key + ') like \'%' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3405
|
-
|
|
3406
|
-
if(params.filterModel[key].type=="notEqual") p.filter = p.filter +' upper('+ key + ') <> \'' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '\'';
|
|
3407
|
-
if(params.filterModel[key].type=="endsWith") p.filter = p.filter +' upper('+ key + ') like \'%' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '\'';
|
|
3408
|
-
// if(params.filterModel[key].type=="startsWith") p.filter = p.filter +' upper('+ key + ') like \'' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3409
|
-
}
|
|
3410
|
-
|
|
3411
|
-
}
|
|
3412
|
-
if (params.filterModel[key].dateTo != null || params.filterModel[key].dateFrom != null) {
|
|
3413
|
-
this.show_pulisci_filtri=true;
|
|
3414
|
-
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3415
|
-
p.filter = p.filter +' (';
|
|
3416
|
-
if(params.filterModel[key].dateFrom != null && params.filterModel[key].dateTo != null) p.filter = p.filter +key+">='"+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+"'"
|
|
3417
|
-
if(params.filterModel[key].dateTo != null)
|
|
3418
|
-
{
|
|
3419
|
-
if(params.filterModel[key].dateFrom != null) p.filter = p.filter + ' and ';
|
|
3420
|
-
p.filter = p.filter +key+"<='"+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateTo,1))+"'"
|
|
3421
|
-
}else
|
|
3422
|
-
if(params.filterModel[key].dateFrom != null)
|
|
3423
|
-
{
|
|
3424
|
-
if(params.filterModel[key].type=="greaterThan") p.filter = p.filter +' '+ key + ' >= \''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+'\'' ;
|
|
3425
|
-
if(params.filterModel[key].type=="equals") p.filter = p.filter +' ('+ key + ' >=\''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+'\' and '+ key + ' <=\''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+' 23:59:00\')' ;
|
|
3426
|
-
if(params.filterModel[key].type=="notEqual") p.filter = p.filter +' '+ key + ' <> \''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+'\'' ;
|
|
3427
|
-
if(params.filterModel[key].type=="lessThan") p.filter = p.filter +' '+ key + ' <= \''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+'\'' ;
|
|
3428
|
-
if(params.filterModel[key].type=="lessThanOrEqual") p.filter = p.filter +' '+ key + ' <= \''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+'\'' ;
|
|
3429
|
-
if(params.filterModel[key].type=="greaterThanOrEqual") p.filter = p.filter +' '+ key + ' >= \''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+'\'' ;
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
}
|
|
3433
|
-
p.filter = p.filter +' )';
|
|
3434
|
-
|
|
3435
|
-
}
|
|
3436
|
-
} else {
|
|
3437
|
-
// if(params.filterModel[key].length>0)p.filter= p.filter+' and ';
|
|
3438
|
-
this.show_pulisci_filtri=true;
|
|
3439
|
-
var sq: String = "";
|
|
3440
|
-
for (var i: number = 0; i < params.filterModel[key].length; i++)
|
|
3441
|
-
if (params.filterModel[key][i] != null) {
|
|
3442
|
-
if (sq != "") sq = sq + ',';
|
|
3443
|
-
sq = sq + '\'' + params.filterModel[key][i].replace('\'', '\'\'') + '\'';
|
|
3444
|
-
}
|
|
3445
|
-
if (sq != ''){
|
|
3446
|
-
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3447
|
-
p.filter = p.filter + key + ' in (' + sq + ')';}
|
|
3448
|
-
else {
|
|
3449
|
-
if (p.filter != "") p.filter = p.filter + ' and 1=0';
|
|
3450
|
-
}
|
|
3451
|
-
}
|
|
3452
|
-
// }
|
|
3453
|
-
}
|
|
3454
|
-
|
|
3455
|
-
}
|
|
3456
|
-
|
|
3457
|
-
//p.num_per_pag=5000;
|
|
3458
|
-
// console.log(this._gridservice);
|
|
3459
|
-
this.str_curr_q_p="";
|
|
3460
|
-
if(p.filter!="")
|
|
3461
|
-
this.str_curr_q_p="where "+p.filter;
|
|
3462
|
-
if(p.sort_field!="")
|
|
3463
|
-
this.str_curr_q_p=this.str_curr_q_p+" order by "+p.sort_field;
|
|
3464
|
-
this.curr_filter=p.filter;
|
|
3465
|
-
|
|
3466
|
-
this._gridservice.doQuery(p,true,this.end_point).subscribe(
|
|
3467
|
-
data => {
|
|
3468
|
-
let ok_op: boolean = false;
|
|
3469
|
-
if (data != null)
|
|
3470
|
-
if (data.result_msg == "OK") {
|
|
3471
|
-
ok_op = true;
|
|
3472
|
-
// console.log(data.result_data);
|
|
3473
|
-
|
|
3474
|
-
params.successCallback(data.result_data, data.count);
|
|
3475
|
-
|
|
3476
|
-
this.b_init = true;
|
|
3477
|
-
this.myData = data.result_data.slice();
|
|
3478
|
-
this.num_r=data.count;
|
|
3479
|
-
this.slimLoadingBarService.complete();
|
|
3480
|
-
this.fill_end.emit();
|
|
3481
|
-
|
|
3482
|
-
// console.log("end");
|
|
3483
|
-
// console.log(localStorage.getItem(this.grid_key+'_POS'));
|
|
3484
|
-
localStorage.setItem(this.grid_key + '_POS1',JSON.stringify( p));
|
|
3485
|
-
if(localStorage.getItem(this.grid_key+'_POS2')!=null)
|
|
3486
|
-
if( this.gridOptions!=null)
|
|
3487
|
-
if( this.gridOptions.api!=null)
|
|
3488
|
-
this.gridOptions.api.forEachNode( (node)=>{
|
|
3489
|
-
// console.log(node)
|
|
3490
|
-
|
|
3491
|
-
if (this.getRowNodeId(node) === localStorage.getItem(this.grid_key+'_POS2')) {
|
|
3492
|
-
|
|
3493
|
-
node.setSelected(true);
|
|
3494
|
-
localStorage.removeItem(this.grid_key+'_POS2');
|
|
3495
|
-
}
|
|
3496
|
-
});
|
|
3497
|
-
let b_mantieni_ck:boolean=false;
|
|
3498
|
-
if(this.toggle_mantieni!=null)b_mantieni_ck=this.toggle_mantieni.checked;
|
|
3499
|
-
|
|
3500
|
-
if( this.no_pref && ! this.b_init1){
|
|
3501
|
-
this.autoSizeAll();
|
|
3502
|
-
|
|
3503
|
-
}
|
|
3504
|
-
this.b_init1=true;
|
|
3505
|
-
this.ensure_visible();
|
|
3506
|
-
if(!this.show_buttons && this.first_ref){
|
|
3507
|
-
setTimeout(()=>{this.autoSizeAll();},300);
|
|
3508
|
-
this.first_ref=false;
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
}else
|
|
3512
|
-
if (localStorage.getItem(this.grid_key+'_COLS') == null)
|
|
3513
|
-
setTimeout(()=>{this.autoSizeAll();},300);
|
|
3514
|
-
//console.log('xxxxxxxxxxxxxxxxxxx');
|
|
3515
|
-
// console.log(this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
3516
|
-
//if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
/*
|
|
3520
|
-
|
|
3521
|
-
this.gridOptions.api.forEachNode( (node) =>{
|
|
3522
|
-
// select the node
|
|
3523
|
-
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
3524
|
-
if(node.rowIndex==parseInt(localStorage.getItem(this.grid_key+'_POS'))){
|
|
3525
|
-
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
3526
|
-
node.setSelected(true);
|
|
3527
|
-
|
|
3528
|
-
}}*/
|
|
3529
|
-
|
|
3530
|
-
// if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
3531
|
-
//this.gridOptions.api.get(parseInt(localStorage.getItem(this.grid_key+'_POS'))).setSelected(true);
|
|
3532
|
-
|
|
3533
|
-
// console.log(this.myData);
|
|
3534
|
-
}
|
|
3535
|
-
if (!ok_op) {
|
|
3536
|
-
|
|
3537
|
-
this.errorMsg = data.msg + ' [' + data.result_msg + ']';
|
|
3538
|
-
|
|
3539
|
-
}
|
|
3540
|
-
},
|
|
3541
|
-
err => { this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER. RITENTARE PIU' TARDI"; });
|
|
3542
|
-
|
|
3543
|
-
// this.gridOptions.api.setDatasource(this.dataSource);
|
|
3544
|
-
|
|
3545
|
-
}
|
|
3320
|
+
<i>Default value : </i><code>{
|
|
3321
|
+
//rowCount: ???, - not setting the row count, infinite paging will be used
|
|
3322
|
+
getRows: (params: any) => {
|
|
3323
|
+
|
|
3324
|
+
// this code should contact the server for rows. however for the purposes of the demo,
|
|
3325
|
+
// the data is generated locally, a timer is used to give the experience of
|
|
3326
|
+
// an asynchronous call
|
|
3327
|
+
// console.log('asking for ' + params.startRow + ' to ' + params.endRow);
|
|
3328
|
+
//console.log( params.filterModel);// + ' params.filterModel ' +params.filterModel);
|
|
3329
|
+
|
|
3330
|
+
this.slimLoadingBarService.start(() => {
|
|
3331
|
+
});
|
|
3332
|
+
|
|
3333
|
+
var p: QGParam = new QGParam();
|
|
3334
|
+
p.table = this.tbl_name;
|
|
3335
|
+
p.table_count = this.tbl_name;
|
|
3336
|
+
if (this.count_tbl_name != '')
|
|
3337
|
+
p.table_count = this.count_tbl_name;
|
|
3338
|
+
// console.log(params);
|
|
3339
|
+
p.num_per_pag = params.endRow-params.startRow;
|
|
3340
|
+
// this.gridOptions.paginationPageSize = this.num_per_pag;
|
|
3341
|
+
// this.gridOptions.cacheBlockSize = this.num_per_pag;
|
|
3342
|
+
// console.log(this.gridOptions.cacheBlockSize );
|
|
3343
|
+
// console.log(this.gridOptions.paginationPageSize );
|
|
3344
|
+
p.curr_page = Math.round(params.startRow / p.num_per_pag);
|
|
3345
|
+
if(p.curr_page==null)p.curr_page=0;
|
|
3346
|
+
if(p.num_per_pag==null)p.num_per_pag=100;
|
|
3347
|
+
p.sort_field = this.sort_field;
|
|
3348
|
+
|
|
3349
|
+
if (params.sortModel != null)
|
|
3350
|
+
if (params.sortModel.length > 0) {
|
|
3351
|
+
p.sort_field = '';
|
|
3352
|
+
for (var i: number = 0; i < params.sortModel.length; i++) {
|
|
3353
|
+
if (p.sort_field != "") p.sort_field = p.sort_field + ',';
|
|
3354
|
+
if(params.sortModel[i].colId=='autori')
|
|
3355
|
+
p.sort_field = p.sort_field + "case when CHARINDEX('"+localStorage.getItem(this.m_appService.COMPANY_KEY + "user")+"',autori)>0 then 1 else 0 end" + ' ' + params.sortModel[i].sort;
|
|
3356
|
+
else
|
|
3357
|
+
p.sort_field = p.sort_field + params.sortModel[i].colId + ' ' + params.sortModel[i].sort;
|
|
3358
|
+
|
|
3359
|
+
}
|
|
3360
|
+
}
|
|
3361
|
+
|
|
3362
|
+
|
|
3363
|
+
p.system_dest=this.system_dest;
|
|
3364
|
+
p.field = this.fields;
|
|
3365
|
+
// console.log( p.field );
|
|
3366
|
+
if(this.filters!=null)
|
|
3367
|
+
p.filter = this.filters;
|
|
3368
|
+
|
|
3369
|
+
if (this.fix_flt != "") {
|
|
3370
|
+
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3371
|
+
p.filter = p.filter + ' (' + this.fix_flt + ' )';
|
|
3372
|
+
}
|
|
3373
|
+
if (this.fix_flt_temp != "") {
|
|
3374
|
+
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3375
|
+
p.filter = p.filter + ' (' + this.fix_flt_temp + ' )';
|
|
3376
|
+
}
|
|
3377
|
+
|
|
3378
|
+
// console.log('Filter model');
|
|
3379
|
+
//console.log(params.filterModel);
|
|
3380
|
+
if (params.filterModel != null) {
|
|
3381
|
+
// console.log('Filtri');
|
|
3382
|
+
for (var key in params.filterModel) {
|
|
3383
|
+
// console.log(key);
|
|
3384
|
+
// if (p.hasOwnProperty(key)) {
|
|
3385
|
+
// console.log( params.filterModel[key]);
|
|
3386
|
+
if (params.filterModel[key].type != null) {
|
|
3387
|
+
if (params.filterModel[key].filter != null) {
|
|
3388
|
+
this.show_pulisci_filtri=true;
|
|
3389
|
+
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3390
|
+
if( params.filterModel[key].filterType=='number'){
|
|
3391
|
+
if(params.filterModel[key].type=="greaterThan") p.filter = p.filter +' '+ key + ' > ' + params.filterModel[key].filter ;
|
|
3392
|
+
if(params.filterModel[key].type=="equals") p.filter = p.filter +' '+ key + ' = ' + params.filterModel[key].filter ;
|
|
3393
|
+
if(params.filterModel[key].type=="notEqual") p.filter = p.filter +' '+ key + ' <> ' + params.filterModel[key].filter ;
|
|
3394
|
+
if(params.filterModel[key].type=="lessThan") p.filter = p.filter +' '+ key + ' < ' + params.filterModel[key].filter ;
|
|
3395
|
+
if(params.filterModel[key].type=="lessThanOrEqual") p.filter = p.filter +' '+ key + ' <= ' + params.filterModel[key].filter ;
|
|
3396
|
+
if(params.filterModel[key].type=="greaterThanOrEqual") p.filter = p.filter +' '+ key + ' >= ' + params.filterModel[key].filter ;
|
|
3397
|
+
if(params.filterModel[key].type=="inRange") p.filter = p.filter +' ('+ key + ' >= ' + params.filterModel[key].filter+' and '+ key + ' <= ' + params.filterModel[key].filterTo+')' ;
|
|
3398
|
+
|
|
3399
|
+
}
|
|
3400
|
+
else{
|
|
3401
|
+
if(params.filterModel[key].type=="contains") p.filter = p.filter +' upper('+ key + ') like \'%' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3402
|
+
if(params.filterModel[key].type=="startsWith") p.filter = p.filter +' upper('+ key + ') like \'' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3403
|
+
if(params.filterModel[key].type=="equals") p.filter = p.filter +' upper('+ key + ') = \'' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3404
|
+
if(params.filterModel[key].type=="notContains") p.filter = p.filter +'not upper('+ key + ') like \'%' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3405
|
+
|
|
3406
|
+
if(params.filterModel[key].type=="notEqual") p.filter = p.filter +' upper('+ key + ') <> \'' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '\'';
|
|
3407
|
+
if(params.filterModel[key].type=="endsWith") p.filter = p.filter +' upper('+ key + ') like \'%' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '\'';
|
|
3408
|
+
// if(params.filterModel[key].type=="startsWith") p.filter = p.filter +' upper('+ key + ') like \'' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3409
|
+
}
|
|
3410
|
+
|
|
3411
|
+
}
|
|
3412
|
+
if (params.filterModel[key].dateTo != null || params.filterModel[key].dateFrom != null) {
|
|
3413
|
+
this.show_pulisci_filtri=true;
|
|
3414
|
+
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3415
|
+
p.filter = p.filter +' (';
|
|
3416
|
+
if(params.filterModel[key].dateFrom != null && params.filterModel[key].dateTo != null) p.filter = p.filter +key+">='"+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+"'"
|
|
3417
|
+
if(params.filterModel[key].dateTo != null)
|
|
3418
|
+
{
|
|
3419
|
+
if(params.filterModel[key].dateFrom != null) p.filter = p.filter + ' and ';
|
|
3420
|
+
p.filter = p.filter +key+"<='"+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateTo,1))+"'"
|
|
3421
|
+
}else
|
|
3422
|
+
if(params.filterModel[key].dateFrom != null)
|
|
3423
|
+
{
|
|
3424
|
+
if(params.filterModel[key].type=="greaterThan") p.filter = p.filter +' '+ key + ' >= \''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+'\'' ;
|
|
3425
|
+
if(params.filterModel[key].type=="equals") p.filter = p.filter +' ('+ key + ' >=\''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+'\' and '+ key + ' <=\''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+' 23:59:00\')' ;
|
|
3426
|
+
if(params.filterModel[key].type=="notEqual") p.filter = p.filter +' '+ key + ' <> \''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+'\'' ;
|
|
3427
|
+
if(params.filterModel[key].type=="lessThan") p.filter = p.filter +' '+ key + ' <= \''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+'\'' ;
|
|
3428
|
+
if(params.filterModel[key].type=="lessThanOrEqual") p.filter = p.filter +' '+ key + ' <= \''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+'\'' ;
|
|
3429
|
+
if(params.filterModel[key].type=="greaterThanOrEqual") p.filter = p.filter +' '+ key + ' >= \''+this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom,1))+'\'' ;
|
|
3430
|
+
|
|
3431
|
+
|
|
3432
|
+
}
|
|
3433
|
+
p.filter = p.filter +' )';
|
|
3434
|
+
|
|
3435
|
+
}
|
|
3436
|
+
} else {
|
|
3437
|
+
// if(params.filterModel[key].length>0)p.filter= p.filter+' and ';
|
|
3438
|
+
this.show_pulisci_filtri=true;
|
|
3439
|
+
var sq: String = "";
|
|
3440
|
+
for (var i: number = 0; i < params.filterModel[key].length; i++)
|
|
3441
|
+
if (params.filterModel[key][i] != null) {
|
|
3442
|
+
if (sq != "") sq = sq + ',';
|
|
3443
|
+
sq = sq + '\'' + params.filterModel[key][i].replace('\'', '\'\'') + '\'';
|
|
3444
|
+
}
|
|
3445
|
+
if (sq != ''){
|
|
3446
|
+
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3447
|
+
p.filter = p.filter + key + ' in (' + sq + ')';}
|
|
3448
|
+
else {
|
|
3449
|
+
if (p.filter != "") p.filter = p.filter + ' and 1=0';
|
|
3450
|
+
}
|
|
3451
|
+
}
|
|
3452
|
+
// }
|
|
3453
|
+
}
|
|
3454
|
+
|
|
3455
|
+
}
|
|
3456
|
+
|
|
3457
|
+
//p.num_per_pag=5000;
|
|
3458
|
+
// console.log(this._gridservice);
|
|
3459
|
+
this.str_curr_q_p="";
|
|
3460
|
+
if(p.filter!="")
|
|
3461
|
+
this.str_curr_q_p="where "+p.filter;
|
|
3462
|
+
if(p.sort_field!="")
|
|
3463
|
+
this.str_curr_q_p=this.str_curr_q_p+" order by "+p.sort_field;
|
|
3464
|
+
this.curr_filter=p.filter;
|
|
3465
|
+
|
|
3466
|
+
this._gridservice.doQuery(p,true,this.end_point).subscribe(
|
|
3467
|
+
data => {
|
|
3468
|
+
let ok_op: boolean = false;
|
|
3469
|
+
if (data != null)
|
|
3470
|
+
if (data.result_msg == "OK") {
|
|
3471
|
+
ok_op = true;
|
|
3472
|
+
// console.log(data.result_data);
|
|
3473
|
+
|
|
3474
|
+
params.successCallback(data.result_data, data.count);
|
|
3475
|
+
|
|
3476
|
+
this.b_init = true;
|
|
3477
|
+
this.myData = data.result_data.slice();
|
|
3478
|
+
this.num_r=data.count;
|
|
3479
|
+
this.slimLoadingBarService.complete();
|
|
3480
|
+
this.fill_end.emit();
|
|
3481
|
+
|
|
3482
|
+
// console.log("end");
|
|
3483
|
+
// console.log(localStorage.getItem(this.grid_key+'_POS'));
|
|
3484
|
+
localStorage.setItem(this.grid_key + '_POS1',JSON.stringify( p));
|
|
3485
|
+
if(localStorage.getItem(this.grid_key+'_POS2')!=null)
|
|
3486
|
+
if( this.gridOptions!=null)
|
|
3487
|
+
if( this.gridOptions.api!=null)
|
|
3488
|
+
this.gridOptions.api.forEachNode( (node)=>{
|
|
3489
|
+
// console.log(node)
|
|
3490
|
+
|
|
3491
|
+
if (this.getRowNodeId(node) === localStorage.getItem(this.grid_key+'_POS2')) {
|
|
3492
|
+
|
|
3493
|
+
node.setSelected(true);
|
|
3494
|
+
localStorage.removeItem(this.grid_key+'_POS2');
|
|
3495
|
+
}
|
|
3496
|
+
});
|
|
3497
|
+
let b_mantieni_ck:boolean=false;
|
|
3498
|
+
if(this.toggle_mantieni!=null)b_mantieni_ck=this.toggle_mantieni.checked;
|
|
3499
|
+
|
|
3500
|
+
if( this.no_pref && ! this.b_init1){
|
|
3501
|
+
this.autoSizeAll();
|
|
3502
|
+
|
|
3503
|
+
}
|
|
3504
|
+
this.b_init1=true;
|
|
3505
|
+
this.ensure_visible();
|
|
3506
|
+
if(!this.show_buttons && this.first_ref){
|
|
3507
|
+
setTimeout(()=>{this.autoSizeAll();},300);
|
|
3508
|
+
this.first_ref=false;
|
|
3509
|
+
|
|
3510
|
+
|
|
3511
|
+
}else
|
|
3512
|
+
if (localStorage.getItem(this.grid_key+'_COLS') == null)
|
|
3513
|
+
setTimeout(()=>{this.autoSizeAll();},300);
|
|
3514
|
+
//console.log('xxxxxxxxxxxxxxxxxxx');
|
|
3515
|
+
// console.log(this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
3516
|
+
//if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
3517
|
+
|
|
3518
|
+
|
|
3519
|
+
/*
|
|
3520
|
+
|
|
3521
|
+
this.gridOptions.api.forEachNode( (node) =>{
|
|
3522
|
+
// select the node
|
|
3523
|
+
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
3524
|
+
if(node.rowIndex==parseInt(localStorage.getItem(this.grid_key+'_POS'))){
|
|
3525
|
+
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
3526
|
+
node.setSelected(true);
|
|
3527
|
+
|
|
3528
|
+
}}*/
|
|
3529
|
+
|
|
3530
|
+
// if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
3531
|
+
//this.gridOptions.api.get(parseInt(localStorage.getItem(this.grid_key+'_POS'))).setSelected(true);
|
|
3532
|
+
|
|
3533
|
+
// console.log(this.myData);
|
|
3534
|
+
}
|
|
3535
|
+
if (!ok_op) {
|
|
3536
|
+
|
|
3537
|
+
this.errorMsg = data.msg + ' [' + data.result_msg + ']';
|
|
3538
|
+
|
|
3539
|
+
}
|
|
3540
|
+
},
|
|
3541
|
+
err => { this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER. RITENTARE PIU' TARDI"; });
|
|
3542
|
+
|
|
3543
|
+
// this.gridOptions.api.setDatasource(this.dataSource);
|
|
3544
|
+
|
|
3545
|
+
}
|
|
3546
3546
|
}</code>
|
|
3547
3547
|
</td>
|
|
3548
3548
|
</tr>
|
|
@@ -3703,114 +3703,114 @@
|
|
|
3703
3703
|
</tr>
|
|
3704
3704
|
<tr>
|
|
3705
3705
|
<td class="col-md-4">
|
|
3706
|
-
<i>Default value : </i><code><GridOptions>{
|
|
3707
|
-
debug: false,
|
|
3708
|
-
headerHeight:this.header_h,
|
|
3709
|
-
floatingFilter:true,
|
|
3710
|
-
enableRangeSelection: true,
|
|
3711
|
-
enableServerSideSorting: true,
|
|
3712
|
-
enableServerSideFilter: true,
|
|
3713
|
-
enableColResize: true,
|
|
3714
|
-
|
|
3715
|
-
rowSelection: 'multiple',
|
|
3716
|
-
rowDeselection: false,
|
|
3717
|
-
getContextMenuItems: () =>this.getContextMenuItems(),
|
|
3718
|
-
allowContextMenuWithControlKey: true,
|
|
3719
|
-
rowModelType: 'infinite',
|
|
3720
|
-
|
|
3721
|
-
localeText: {
|
|
3722
|
-
// for filter panel
|
|
3723
|
-
page: 'pagina',
|
|
3724
|
-
more: 'altre',
|
|
3725
|
-
to: 'a',
|
|
3726
|
-
of: 'di',
|
|
3727
|
-
next: 'prossima',
|
|
3728
|
-
last: 'ultima',
|
|
3729
|
-
first: 'prima',
|
|
3730
|
-
previous: 'precedente',
|
|
3731
|
-
loadingOoo: 'Caricamento...',
|
|
3732
|
-
// for set filter
|
|
3733
|
-
selectAll: 'Seleziona Tutto',
|
|
3734
|
-
searchOoo: 'Trova...',
|
|
3735
|
-
blanks: 'Vuoto',
|
|
3736
|
-
// for number filter and text filter
|
|
3737
|
-
filterOoo: 'Filtro...',
|
|
3738
|
-
applyFilter: 'Applica Filtro...',
|
|
3739
|
-
// for number filter
|
|
3740
|
-
equals: 'Uguale',
|
|
3741
|
-
notEqual: 'Diverso',
|
|
3742
|
-
lessThan: 'Minore',
|
|
3743
|
-
greaterThan: 'Maggiore',
|
|
3744
|
-
// for text filter
|
|
3745
|
-
notContains: 'Non Contiene',
|
|
3746
|
-
contains: 'Contiene',
|
|
3747
|
-
startsWith: 'Inizia Con',
|
|
3748
|
-
endsWith: 'Finisce Con',
|
|
3749
|
-
// the header of the default group column
|
|
3750
|
-
group: 'Gruppo',
|
|
3751
|
-
// tool panel
|
|
3752
|
-
columns: 'Colonne',
|
|
3753
|
-
rowGroupColumns: 'Colonne Pivot',
|
|
3754
|
-
rowGroupColumnsEmptyMessage: 'trascina le colonne per raggrupparle',
|
|
3755
|
-
valueColumns: 'Colonne Valore',
|
|
3756
|
-
pivotMode: 'Modalità Pivot',
|
|
3757
|
-
groups: 'Gruppi',
|
|
3758
|
-
values: 'Valori',
|
|
3759
|
-
pivots: 'Pivots',
|
|
3760
|
-
valueColumnsEmptyMessage: 'trascina le colonne per aggreare',
|
|
3761
|
-
pivotColumnsEmptyMessage: 'trascina le colonne per pivot',
|
|
3762
|
-
// other
|
|
3763
|
-
noRowsToShow: 'nessun dato',
|
|
3764
|
-
// enterprise menu
|
|
3765
|
-
pinColumn: 'Sposta Colonna',
|
|
3766
|
-
valueAggregation: 'Aggregazione',
|
|
3767
|
-
autosizeThiscolumn: 'Autosize colonna',
|
|
3768
|
-
autosizeAllColumns: 'Autosize tutte le colonne',
|
|
3769
|
-
groupBy: 'Raggruppa per',
|
|
3770
|
-
ungroupBy: 'Spacca per',
|
|
3771
|
-
resetColumns: 'Resetta queste colonna',
|
|
3772
|
-
expandAll: 'Espandi',
|
|
3773
|
-
collapseAll: 'Chiudi',
|
|
3774
|
-
toolPanel: 'Impostazioni',
|
|
3775
|
-
// enterprise menu pinning
|
|
3776
|
-
pinLeft: 'Sposta <<',
|
|
3777
|
-
pinRight: 'Sposta >>',
|
|
3778
|
-
noPin: 'Sposta <>',
|
|
3779
|
-
// enterprise menu aggregation and status panel
|
|
3780
|
-
sum: 'Somma',
|
|
3781
|
-
min: 'Minimo',
|
|
3782
|
-
max: 'Massimo',
|
|
3783
|
-
|
|
3784
|
-
none: 'Nessuno',
|
|
3785
|
-
count: 'Numero',
|
|
3786
|
-
average: 'Media',
|
|
3787
|
-
// standard menu
|
|
3788
|
-
copy: 'Copia',
|
|
3789
|
-
ctrlC: 'ctrl n C',
|
|
3790
|
-
paste: 'Incolla',
|
|
3791
|
-
ctrlV: 'ctrl n C'
|
|
3792
|
-
},
|
|
3793
|
-
getRowNodeId: function(item) {
|
|
3794
|
-
// console.log(item);
|
|
3795
|
-
if(item.ID!=null)
|
|
3796
|
-
return String(item.ID);
|
|
3797
|
-
if(item.id!=null)
|
|
3798
|
-
return String(item.id);
|
|
3799
|
-
if(item.uiid!=null)
|
|
3800
|
-
return item.uiid;
|
|
3801
|
-
if(item.codice!=null)
|
|
3802
|
-
return item.codice;
|
|
3803
|
-
if(item.id_doc!=null)
|
|
3804
|
-
return item.id_doc;
|
|
3805
|
-
if(item.notesid!=null)
|
|
3806
|
-
return item.notesid;
|
|
3807
|
-
if(item.ord!=null)
|
|
3808
|
-
return item.ord;
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
}
|
|
3812
|
-
|
|
3813
|
-
|
|
3706
|
+
<i>Default value : </i><code><GridOptions>{
|
|
3707
|
+
debug: false,
|
|
3708
|
+
headerHeight:this.header_h,
|
|
3709
|
+
floatingFilter:true,
|
|
3710
|
+
enableRangeSelection: true,
|
|
3711
|
+
enableServerSideSorting: true,
|
|
3712
|
+
enableServerSideFilter: true,
|
|
3713
|
+
enableColResize: true,
|
|
3714
|
+
|
|
3715
|
+
rowSelection: 'multiple',
|
|
3716
|
+
rowDeselection: false,
|
|
3717
|
+
getContextMenuItems: () =>this.getContextMenuItems(),
|
|
3718
|
+
allowContextMenuWithControlKey: true,
|
|
3719
|
+
rowModelType: 'infinite',
|
|
3720
|
+
|
|
3721
|
+
localeText: {
|
|
3722
|
+
// for filter panel
|
|
3723
|
+
page: 'pagina',
|
|
3724
|
+
more: 'altre',
|
|
3725
|
+
to: 'a',
|
|
3726
|
+
of: 'di',
|
|
3727
|
+
next: 'prossima',
|
|
3728
|
+
last: 'ultima',
|
|
3729
|
+
first: 'prima',
|
|
3730
|
+
previous: 'precedente',
|
|
3731
|
+
loadingOoo: 'Caricamento...',
|
|
3732
|
+
// for set filter
|
|
3733
|
+
selectAll: 'Seleziona Tutto',
|
|
3734
|
+
searchOoo: 'Trova...',
|
|
3735
|
+
blanks: 'Vuoto',
|
|
3736
|
+
// for number filter and text filter
|
|
3737
|
+
filterOoo: 'Filtro...',
|
|
3738
|
+
applyFilter: 'Applica Filtro...',
|
|
3739
|
+
// for number filter
|
|
3740
|
+
equals: 'Uguale',
|
|
3741
|
+
notEqual: 'Diverso',
|
|
3742
|
+
lessThan: 'Minore',
|
|
3743
|
+
greaterThan: 'Maggiore',
|
|
3744
|
+
// for text filter
|
|
3745
|
+
notContains: 'Non Contiene',
|
|
3746
|
+
contains: 'Contiene',
|
|
3747
|
+
startsWith: 'Inizia Con',
|
|
3748
|
+
endsWith: 'Finisce Con',
|
|
3749
|
+
// the header of the default group column
|
|
3750
|
+
group: 'Gruppo',
|
|
3751
|
+
// tool panel
|
|
3752
|
+
columns: 'Colonne',
|
|
3753
|
+
rowGroupColumns: 'Colonne Pivot',
|
|
3754
|
+
rowGroupColumnsEmptyMessage: 'trascina le colonne per raggrupparle',
|
|
3755
|
+
valueColumns: 'Colonne Valore',
|
|
3756
|
+
pivotMode: 'Modalità Pivot',
|
|
3757
|
+
groups: 'Gruppi',
|
|
3758
|
+
values: 'Valori',
|
|
3759
|
+
pivots: 'Pivots',
|
|
3760
|
+
valueColumnsEmptyMessage: 'trascina le colonne per aggreare',
|
|
3761
|
+
pivotColumnsEmptyMessage: 'trascina le colonne per pivot',
|
|
3762
|
+
// other
|
|
3763
|
+
noRowsToShow: 'nessun dato',
|
|
3764
|
+
// enterprise menu
|
|
3765
|
+
pinColumn: 'Sposta Colonna',
|
|
3766
|
+
valueAggregation: 'Aggregazione',
|
|
3767
|
+
autosizeThiscolumn: 'Autosize colonna',
|
|
3768
|
+
autosizeAllColumns: 'Autosize tutte le colonne',
|
|
3769
|
+
groupBy: 'Raggruppa per',
|
|
3770
|
+
ungroupBy: 'Spacca per',
|
|
3771
|
+
resetColumns: 'Resetta queste colonna',
|
|
3772
|
+
expandAll: 'Espandi',
|
|
3773
|
+
collapseAll: 'Chiudi',
|
|
3774
|
+
toolPanel: 'Impostazioni',
|
|
3775
|
+
// enterprise menu pinning
|
|
3776
|
+
pinLeft: 'Sposta <<',
|
|
3777
|
+
pinRight: 'Sposta >>',
|
|
3778
|
+
noPin: 'Sposta <>',
|
|
3779
|
+
// enterprise menu aggregation and status panel
|
|
3780
|
+
sum: 'Somma',
|
|
3781
|
+
min: 'Minimo',
|
|
3782
|
+
max: 'Massimo',
|
|
3783
|
+
|
|
3784
|
+
none: 'Nessuno',
|
|
3785
|
+
count: 'Numero',
|
|
3786
|
+
average: 'Media',
|
|
3787
|
+
// standard menu
|
|
3788
|
+
copy: 'Copia',
|
|
3789
|
+
ctrlC: 'ctrl n C',
|
|
3790
|
+
paste: 'Incolla',
|
|
3791
|
+
ctrlV: 'ctrl n C'
|
|
3792
|
+
},
|
|
3793
|
+
getRowNodeId: function(item) {
|
|
3794
|
+
// console.log(item);
|
|
3795
|
+
if(item.ID!=null)
|
|
3796
|
+
return String(item.ID);
|
|
3797
|
+
if(item.id!=null)
|
|
3798
|
+
return String(item.id);
|
|
3799
|
+
if(item.uiid!=null)
|
|
3800
|
+
return item.uiid;
|
|
3801
|
+
if(item.codice!=null)
|
|
3802
|
+
return item.codice;
|
|
3803
|
+
if(item.id_doc!=null)
|
|
3804
|
+
return item.id_doc;
|
|
3805
|
+
if(item.notesid!=null)
|
|
3806
|
+
return item.notesid;
|
|
3807
|
+
if(item.ord!=null)
|
|
3808
|
+
return item.ord;
|
|
3809
|
+
|
|
3810
|
+
|
|
3811
|
+
}
|
|
3812
|
+
|
|
3813
|
+
|
|
3814
3814
|
}</code>
|
|
3815
3815
|
</td>
|
|
3816
3816
|
</tr>
|
|
@@ -4179,7 +4179,7 @@ headerHeight:this.header_h,
|
|
|
4179
4179
|
<script src="../js/libs/htmlparser.js"></script>
|
|
4180
4180
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
4181
4181
|
<script>
|
|
4182
|
-
var COMPONENT_TEMPLATE = '<div><table [hidden]=\'!show_buttons\' style="width: 100%;height: 15%;"> <tr> <td [hidden]=\'this.m_appService.getState().pageFullscreen\'><h5>{{num_r+label_elementi}}</h5> </td> <td style="vertical-align:\'bottom\'"> <mat-form-field> <input matInput [placeholder]="trova_label" (keydown)="keyDownFunctioncl($event)" [(ngModel)]="ric_libera" style="width:200px"> </mat-form-field> </td> <td [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="
|
|
4182
|
+
var COMPONENT_TEMPLATE = '<div><table [hidden]=\'!show_buttons\' style="width: 100%;height: 15%;"> <tr> <td [hidden]=\'this.m_appService.getState().pageFullscreen\'><h5>{{num_r+label_elementi}}</h5> </td> <td style="vertical-align:\'bottom\'"> <mat-form-field> <input matInput [placeholder]="trova_label" (keydown)="keyDownFunctioncl($event)" [(ngModel)]="ric_libera" style="width:200px"> </mat-form-field> </td> <td [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="!this.m_appService.getState( ).mobile"> <button *ngIf="show_pulisci_filtri" mat-raised-button (click)="pulisci_filtri()" color="warn"> <mat-icon>clear</mat-icon> REMOVE FILTER</button> </td> <td [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="show_buttons && !this.m_appService.getState( ).mobile"> <button mat-raised-button (click)="autoSizeAll()" color="accent"> <mat-icon>photo_size_select_small</mat-icon> AUTO SIZE</button> </td> <td [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="show_buttons && !this.m_appService.getState( ).mobile"> <button mat-raised-button (click)="fitSizeAll()" color="accent"> <mat-icon>aspect_ratio</mat-icon> FIT SIZE</button> <td *ngIf="show_buttons && !this.m_appService.getState( ).mobile"> <div fxLayout="row" fxLayoutAlign="center center"> <FHComboBox (selchange)="ch_config()" (fillend)="fe_cfg()" #gf init_fill="false"></FHComboBox> <div matTooltip="Modifica Preferenza" matTooltipPosition="above"> <button [hidden]=\'this.m_appService.getState().pageFullscreen\' mat-icon-button *ngIf="curr_config!=\'-1\'" style="color:rgb(248, 105, 10)"> <mat-icon (click)="edit_config()" >save</mat-icon> </button> </div> <div matTooltip="Crea Nuova Preferenza" matTooltipPosition="above"> <button [hidden]=\'this.m_appService.getState().pageFullscreen\' mat-icon-button style="color:rgb(16, 98, 16)"> <mat-icon (click)="insert_config()">library_add</mat-icon> </button></div> <mat-slide-toggle [hidden]=\'this.m_appService.getState().pageFullscreen\' (click)="ck_flag()" #toggle_mantieni >{{mantieni_impostazioni}}</mat-slide-toggle> </div> </td> <td style="width: 100%;text-align: right;" [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="show_buttons && !this.m_appService.getState( ).mobile"> <button *ngIf="show_help" mat-raised-button (click)="help_window()" color="accent"> <mat-icon>help</mat-icon> HELP</button> </td> </tr></table><div [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="!show_buttons && !this.m_appService.getState( ).mobile && show_num_elem"><h5>{{num_r+\' Elementi\'}}</h5></div><ag-grid-angular ref-agGrid style="width:100%;height:85%;" (cellDoubleClicked)="onColumnEvent($event)" (cellClicked)="onCellClicked($event)" [headerHeight]="header_h" [groupHeaderHeight]="header_h" class="ag-theme-balham" [singleClickEdit]="true" [gridOptions]="gridOptions" [columnDefs]="columnDefs" [rowData]="rowData" enableColResize enableServerSideSorting enableServerSideFilter enableColResize (afterFilterChanged)="onAfterFilterChanged()" (filterModified)="onFilterModified()" (rowDoubleClicked)="onRowDClicked($event)" (rowClicked)="onRowClicked($event)" (columnVisible)="oncolumnEverythingChanged($event)" (columnResized)="oncolumnEverythingChanged($event)" (columnMoved)="oncolumnEverythingChanged($event)" (cellValueChanged)="okr($event)" (sortChanged)="onAfterSortChanged()" [paginationPageSize]="num_per_pag" (gridReady)="onReady($event)"></ag-grid-angular></div>'
|
|
4183
4183
|
var COMPONENTS = [{'name': 'ApprovaGridComponent', 'selector': 'approva-cell'},{'name': 'ComboBoxEditor', 'selector': 'editor-cell'},{'name': 'CurrencyComponent', 'selector': 'currency-cell'},{'name': 'DateComponent', 'selector': 'editor-cell'},{'name': 'DtPick', 'selector': 'DtPicker'},{'name': 'FHAutoCompleteComponent', 'selector': 'FHAutoComplete'},{'name': 'FHComboboxComponent', 'selector': 'FHComboBox'},{'name': 'FHConfirmComponent', 'selector': ''},{'name': 'FHCurrencyFieldComponent', 'selector': 'FHCurrencyField'},{'name': 'FHDatePickerComponent', 'selector': 'FHDatePicker'},{'name': 'FHGridComponent', 'selector': 'FHGrid'},{'name': 'FHGridJSONComponent', 'selector': 'FHGridJSON'},{'name': 'FHListComponent', 'selector': 'FHList'},{'name': 'FHListPick', 'selector': 'fhwincomboselect'},{'name': 'FHLogPanelComponent', 'selector': 'FHLogPanel'},{'name': 'FHMdReader', 'selector': 'FHMdReader'},{'name': 'FHNumericFieldComponent', 'selector': 'FHNumericField'},{'name': 'FHPickListComponent', 'selector': 'FHPickList'},{'name': 'FHRichText', 'selector': 'FHRichText'},{'name': 'FHTimePickerComponent', 'selector': 'FHTimePicker'},{'name': 'FHUploadComponent', 'selector': 'FHUpload'},{'name': 'FHUploadPanelComponent', 'selector': 'FHUploadPanel'},{'name': 'FHUserFieldComponent', 'selector': 'FHUserField'},{'name': 'FHUserPickerComponent', 'selector': 'FHPickUsers'},{'name': 'FHWinComboSelect', 'selector': 'fhwincomboselect'},{'name': 'FSInput', 'selector': ''},{'name': 'FSResult', 'selector': ''},{'name': 'NumericEditorComponent', 'selector': 'numeric-cell'},{'name': 'QGParam', 'selector': ''},{'name': 'QGResult', 'selector': ''},{'name': 'QParam', 'selector': ''},{'name': 'QResult', 'selector': ''},{'name': 'TextAreaEditor', 'selector': 'editor-cell'},{'name': 'WinAskNumberComponent', 'selector': 'app-win_ask_text'},{'name': 'WinAskTextBigComponent', 'selector': 'app-win_ask_text'},{'name': 'WinAskTextComponent', 'selector': 'app-win_ask_text'},{'name': 'WinOutputComponent', 'selector': 'app-win_output'},{'name': 'WinWait', 'selector': 'fhwincomboselect'},{'name': 'win_assegna', 'selector': ''},{'name': 'win_commenti', 'selector': ''},{'name': 'win_commento_sel_notif', 'selector': ''},{'name': 'win_conferma', 'selector': ''},{'name': 'win_grid_help', 'selector': ''},{'name': 'win_info_doc', 'selector': ''},{'name': 'win_log', 'selector': ''},{'name': 'win_mappa', 'selector': ''},{'name': 'win_recupera_doc', 'selector': ''},{'name': 'win_riassegna_select_level', 'selector': ''},{'name': 'win_riassegna_select_user', 'selector': ''},{'name': 'win_salva_annulla', 'selector': ''},{'name': 'win_select_canale', 'selector': ''},{'name': 'win_select_level', 'selector': ''},{'name': 'win_time_slider', 'selector': 'fhtimeslider'},{'name': 'win_uploads', 'selector': 'wkf_win_upload'}];
|
|
4184
4184
|
var DIRECTIVES = [{'name': 'DecimalMask', 'selector': '[ngModel][decimal]'},{'name': 'FHCurrencyFormatterDirective', 'selector': '[FHCurrencyFormatter]'}];
|
|
4185
4185
|
var ACTUAL_COMPONENT = {'name': 'FHGridComponent'};
|