@fluxhub/fluxhub-lib 1.0.242 → 1.0.244
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 +35 -99
- 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/components/FHGridComponent.html +297 -297
- package/docs/components/FHUploadPanelComponent.html +51 -3
- package/docs/coverage.html +2 -2
- package/docs/injectables/AuthenticationService.html +0 -36
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhgrid.js +19 -17
- package/esm2015/lib/controls/fhuploadpanel.js +33 -3
- package/esm2015/lib/services/login.service.js +1 -85
- package/esm5/lib/controls/fhgrid.js +18 -16
- package/esm5/lib/controls/fhuploadpanel.js +21 -2
- package/esm5/lib/services/login.service.js +1 -89
- package/fesm2015/fluxhub-fluxhub-lib.js +49 -98
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +36 -100
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhuploadpanel.d.ts +1 -0
- package/lib/services/login.service.d.ts +0 -1
- package/package.json +1 -1
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
<tr>
|
|
94
94
|
<td class="col-md-3">styles</td>
|
|
95
95
|
<td class="col-md-9"><code>
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
|
|
97
|
+
</code></td>
|
|
98
98
|
</tr>
|
|
99
99
|
|
|
100
100
|
|
|
@@ -3538,242 +3538,242 @@
|
|
|
3538
3538
|
<tr>
|
|
3539
3539
|
<td class="col-md-4">
|
|
3540
3540
|
<i>Default value : </i><code>{
|
|
3541
|
-
|
|
3542
|
-
|
|
3541
|
+
//rowCount: ???, - not setting the row count, infinite paging will be used
|
|
3542
|
+
getRows: (params: any) => {
|
|
3543
3543
|
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3544
|
+
// this code should contact the server for rows. however for the purposes of the demo,
|
|
3545
|
+
// the data is generated locally, a timer is used to give the experience of
|
|
3546
|
+
// an asynchronous call
|
|
3547
|
+
// console.log('asking for ' + params.startRow + ' to ' + params.endRow);
|
|
3548
|
+
//console.log( params.filterModel);// + ' params.filterModel ' +params.filterModel);
|
|
3549
3549
|
|
|
3550
|
-
|
|
3551
|
-
|
|
3550
|
+
this.slimLoadingBarService.start(() => {
|
|
3551
|
+
});
|
|
3552
3552
|
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3553
|
+
let p: QGParam = new QGParam();
|
|
3554
|
+
p.table = this.tbl_name;
|
|
3555
|
+
p.table_count = this.tbl_name;
|
|
3556
|
+
if (this.count_tbl_name != '')
|
|
3557
|
+
p.table_count = this.count_tbl_name;
|
|
3558
|
+
// console.log(params);
|
|
3559
|
+
p.num_per_pag = params.endRow - params.startRow;
|
|
3560
|
+
// this.gridOptions.paginationPageSize = this.num_per_pag;
|
|
3561
|
+
// this.gridOptions.cacheBlockSize = this.num_per_pag;
|
|
3562
|
+
// console.log(this.gridOptions.cacheBlockSize );
|
|
3563
|
+
// console.log(this.gridOptions.paginationPageSize );
|
|
3564
|
+
p.curr_page = Math.round(params.startRow / p.num_per_pag);
|
|
3565
|
+
if (p.curr_page == null) p.curr_page = 0;
|
|
3566
|
+
if (p.num_per_pag == null) p.num_per_pag = 100;
|
|
3567
|
+
p.sort_field = this.sort_field;
|
|
3568
3568
|
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3569
|
+
if (params.sortModel != null)
|
|
3570
|
+
if (params.sortModel.length > 0) {
|
|
3571
|
+
p.sort_field = '';
|
|
3572
|
+
for (var i: number = 0; i < params.sortModel.length; i++) {
|
|
3573
|
+
if (p.sort_field != "") p.sort_field = p.sort_field + ',';
|
|
3574
|
+
if (params.sortModel[i].colId == 'autori')
|
|
3575
|
+
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;
|
|
3576
|
+
else
|
|
3577
|
+
p.sort_field = p.sort_field + params.sortModel[i].colId + ' ' + params.sortModel[i].sort;
|
|
3578
3578
|
|
|
3579
|
-
|
|
3580
|
-
|
|
3579
|
+
}
|
|
3580
|
+
}
|
|
3581
3581
|
|
|
3582
3582
|
|
|
3583
|
-
|
|
3584
|
-
|
|
3583
|
+
p.system_dest = this.system_dest;
|
|
3584
|
+
p.field = this.fields;
|
|
3585
3585
|
|
|
3586
3586
|
|
|
3587
|
-
|
|
3588
|
-
|
|
3587
|
+
if (this.filters != null)
|
|
3588
|
+
p.filter = this.filters;
|
|
3589
3589
|
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
let b_filter:boolean=false;
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3590
|
+
if (this.fix_flt != "") {
|
|
3591
|
+
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3592
|
+
p.filter = p.filter + ' (' + this.fix_flt + ' )';
|
|
3593
|
+
}
|
|
3594
|
+
if (this.fix_flt_temp != "") {
|
|
3595
|
+
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3596
|
+
p.filter = p.filter + ' (' + this.fix_flt_temp + ' )';
|
|
3597
|
+
}
|
|
3598
|
+
let b_filter: boolean = false;
|
|
3599
|
+
// console.log('Filter model');
|
|
3600
|
+
//console.log(params.filterModel);
|
|
3601
|
+
if (params.filterModel != null) {
|
|
3602
|
+
// console.log('Filtri');
|
|
3603
3603
|
|
|
3604
3604
|
for (let key in params.filterModel) {
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
b_filter=true;
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3605
|
+
// console.log(key);
|
|
3606
|
+
// if (p.hasOwnProperty(key)) {
|
|
3607
|
+
// console.log( params.filterModel[key]);
|
|
3608
|
+
if (params.filterModel[key].type != null) {
|
|
3609
|
+
if (params.filterModel[key].filter != null) {
|
|
3610
|
+
this.show_pulisci_filtri = true;
|
|
3611
|
+
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3612
|
+
b_filter = true;
|
|
3613
|
+
if (params.filterModel[key].filterType == 'number') {
|
|
3614
|
+
if (params.filterModel[key].type == "greaterThan") p.filter = p.filter + ' ' + key + ' > ' + params.filterModel[key].filter;
|
|
3615
|
+
if (params.filterModel[key].type == "equals") p.filter = p.filter + ' ' + key + ' = ' + params.filterModel[key].filter;
|
|
3616
|
+
if (params.filterModel[key].type == "notEqual") p.filter = p.filter + ' ' + key + ' <> ' + params.filterModel[key].filter;
|
|
3617
|
+
if (params.filterModel[key].type == "lessThan") p.filter = p.filter + ' ' + key + ' < ' + params.filterModel[key].filter;
|
|
3618
|
+
if (params.filterModel[key].type == "lessThanOrEqual") p.filter = p.filter + ' ' + key + ' <= ' + params.filterModel[key].filter;
|
|
3619
|
+
if (params.filterModel[key].type == "greaterThanOrEqual") p.filter = p.filter + ' ' + key + ' >= ' + params.filterModel[key].filter;
|
|
3620
|
+
if (params.filterModel[key].type == "inRange") p.filter = p.filter + ' (' + key + ' >= ' + params.filterModel[key].filter + ' and ' + key + ' <= ' + params.filterModel[key].filterTo + ')';
|
|
3621
3621
|
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3622
|
+
}
|
|
3623
|
+
else {
|
|
3624
|
+
if (params.filterModel[key].type == "contains") p.filter = p.filter + ' upper(' + key + ') like \'%' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3625
|
+
if (params.filterModel[key].type == "startsWith") p.filter = p.filter + ' upper(' + key + ') like \'' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3626
|
+
if (params.filterModel[key].type == "equals") p.filter = p.filter + ' upper(' + key + ') = \'' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3627
|
+
if (params.filterModel[key].type == "notContains") p.filter = p.filter + 'not upper(' + key + ') like \'%' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3628
3628
|
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3629
|
+
if (params.filterModel[key].type == "notEqual") p.filter = p.filter + ' upper(' + key + ') <> \'' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '\'';
|
|
3630
|
+
if (params.filterModel[key].type == "endsWith") p.filter = p.filter + ' upper(' + key + ') like \'%' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '\'';
|
|
3631
|
+
// if(params.filterModel[key].type=="startsWith") p.filter = p.filter +' upper('+ key + ') like \'' + params.filterModel[key].filter.replace('\'', '\'\'').toUpperCase() + '%\'';
|
|
3632
|
+
}
|
|
3633
3633
|
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
b_filter=true;
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3634
|
+
}
|
|
3635
|
+
if (params.filterModel[key].dateTo != null || params.filterModel[key].dateFrom != null) {
|
|
3636
|
+
b_filter = true;
|
|
3637
|
+
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3638
|
+
p.filter = p.filter + ' (';
|
|
3639
|
+
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)) + "'"
|
|
3640
|
+
if (params.filterModel[key].dateTo != null) {
|
|
3641
|
+
if (params.filterModel[key].dateFrom != null) p.filter = p.filter + ' and ';
|
|
3642
|
+
p.filter = p.filter + key + "<='" + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateTo, 1)) + "'"
|
|
3643
|
+
} else if (params.filterModel[key].dateFrom != null) {
|
|
3644
|
+
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)) + '\'';
|
|
3645
|
+
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\')';
|
|
3646
|
+
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)) + '\'';
|
|
3647
|
+
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)) + '\'';
|
|
3648
|
+
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)) + '\'';
|
|
3649
|
+
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)) + '\'';
|
|
3650
3650
|
|
|
3651
3651
|
|
|
3652
|
-
|
|
3653
|
-
|
|
3652
|
+
}
|
|
3653
|
+
p.filter = p.filter + ' )';
|
|
3654
3654
|
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
b_filter=true;
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3655
|
+
}
|
|
3656
|
+
} else {
|
|
3657
|
+
// if(params.filterModel[key].length>0)p.filter= p.filter+' and ';
|
|
3658
|
+
let sq: String = "";
|
|
3659
|
+
console.log(params.filterModel[key].values);
|
|
3660
|
+
if (params.filterModel[key].values != null)
|
|
3661
|
+
for (let i: number = 0; i < params.filterModel[key].values.length; i++)
|
|
3662
|
+
if (params.filterModel[key].values[i] != null) {
|
|
3663
|
+
if (sq != "") sq = sq + ',';
|
|
3664
|
+
sq = sq + '\'' + params.filterModel[key].values[i].replace('\'', '\'\'') + '\'';
|
|
3665
|
+
}
|
|
3666
|
+
if (sq != '') {
|
|
3667
|
+
b_filter = true;
|
|
3668
|
+
if (p.filter != "") p.filter = p.filter + ' and ';
|
|
3669
|
+
p.filter = p.filter + key + ' in (' + sq + ')';
|
|
3670
|
+
}
|
|
3671
|
+
else {
|
|
3672
|
+
b_filter = true;
|
|
3673
|
+
if (p.filter != "") p.filter = p.filter + ' and 1=0';
|
|
3674
|
+
}
|
|
3675
|
+
}
|
|
3676
|
+
// }
|
|
3677
|
+
}
|
|
3678
3678
|
|
|
3679
|
-
|
|
3679
|
+
}
|
|
3680
3680
|
this.show_pulisci_filtri = b_filter;
|
|
3681
3681
|
|
|
3682
3682
|
//p.num_per_pag=5000;
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3683
|
+
// console.log(this._gridservice);
|
|
3684
|
+
this.str_curr_q_p = "";
|
|
3685
|
+
if (p.filter != "")
|
|
3686
|
+
this.str_curr_q_p = "where " + p.filter;
|
|
3687
|
+
if (p.sort_field != "")
|
|
3688
|
+
this.str_curr_q_p = this.str_curr_q_p + " order by " + p.sort_field;
|
|
3689
|
+
this.curr_filter = p.filter;
|
|
3690
3690
|
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3691
|
+
this._gridservice.doQuery(p, true, this.end_point).subscribe(
|
|
3692
|
+
data => {
|
|
3693
|
+
let ok_op: boolean = false;
|
|
3694
|
+
if (data != null)
|
|
3695
|
+
if (data.result_msg == "OK") {
|
|
3696
|
+
ok_op = true;
|
|
3697
|
+
// console.log(data.result_data);
|
|
3698
3698
|
|
|
3699
|
-
|
|
3699
|
+
params.successCallback(data.result_data, data.count);
|
|
3700
3700
|
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3701
|
+
this.b_init = true;
|
|
3702
|
+
this.myData = data.result_data.slice();
|
|
3703
|
+
this.num_r = data.count;
|
|
3704
|
+
this.slimLoadingBarService.complete();
|
|
3705
|
+
this.fill_end.emit();
|
|
3706
3706
|
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3707
|
+
// console.log("end");
|
|
3708
|
+
// console.log(localStorage.getItem(this.grid_key+'_POS'));
|
|
3709
|
+
localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
|
|
3710
|
+
if (localStorage.getItem(this.grid_key + '_POS2') != null)
|
|
3711
|
+
if (this.gridOptions != null)
|
|
3712
|
+
if (this.gridOptions.api != null)
|
|
3713
|
+
this.gridOptions.api.forEachNode((node) => {
|
|
3714
|
+
// console.log(node)
|
|
3715
3715
|
|
|
3716
|
-
|
|
3716
|
+
if (this.getRowNodeId(node) === localStorage.getItem(this.grid_key + '_POS2')) {
|
|
3717
3717
|
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3718
|
+
node.setSelected(true);
|
|
3719
|
+
localStorage.removeItem(this.grid_key + '_POS2');
|
|
3720
|
+
}
|
|
3721
|
+
});
|
|
3722
|
+
let b_mantieni_ck: boolean = false;
|
|
3723
|
+
if (this.toggle_mantieni != null) b_mantieni_ck = this.toggle_mantieni.checked;
|
|
3724
3724
|
|
|
3725
|
-
|
|
3726
|
-
|
|
3725
|
+
if (this.no_pref && !this.b_init1) {
|
|
3726
|
+
this.autoSizeAll();
|
|
3727
3727
|
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3728
|
+
}
|
|
3729
|
+
this.b_init1 = true;
|
|
3730
|
+
this.ensure_visible();
|
|
3731
|
+
if (!this.show_buttons && this.first_ref) {
|
|
3732
|
+
setTimeout(() => {
|
|
3733
|
+
this.autoSizeAll();
|
|
3734
|
+
}, 300);
|
|
3735
|
+
this.first_ref = false;
|
|
3736
3736
|
|
|
3737
3737
|
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3738
|
+
} else if (localStorage.getItem(this.grid_key + '_COLS') == null)
|
|
3739
|
+
setTimeout(() => {
|
|
3740
|
+
this.autoSizeAll();
|
|
3741
|
+
}, 300);
|
|
3742
|
+
//console.log('xxxxxxxxxxxxxxxxxxx');
|
|
3743
|
+
// console.log(this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
3744
|
+
//if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
3745
3745
|
|
|
3746
3746
|
|
|
3747
|
-
|
|
3747
|
+
/*
|
|
3748
3748
|
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3749
|
+
this.gridOptions.api.forEachNode( (node) =>{
|
|
3750
|
+
// select the node
|
|
3751
|
+
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
3752
|
+
if(node.rowIndex==parseInt(localStorage.getItem(this.grid_key+'_POS'))){
|
|
3753
|
+
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
3754
|
+
node.setSelected(true);
|
|
3755
3755
|
|
|
3756
|
-
|
|
3756
|
+
}}*/
|
|
3757
3757
|
|
|
3758
|
-
|
|
3759
|
-
|
|
3758
|
+
// if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
3759
|
+
//this.gridOptions.api.get(parseInt(localStorage.getItem(this.grid_key+'_POS'))).setSelected(true);
|
|
3760
3760
|
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3761
|
+
// console.log(this.myData);
|
|
3762
|
+
}
|
|
3763
|
+
if (!ok_op) {
|
|
3764
3764
|
|
|
3765
|
-
|
|
3765
|
+
this.errorMsg = data.msg + ' [' + data.result_msg + ']';
|
|
3766
3766
|
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3767
|
+
}
|
|
3768
|
+
},
|
|
3769
|
+
err => {
|
|
3770
|
+
this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER. RITENTARE PIU' TARDI";
|
|
3771
|
+
});
|
|
3772
3772
|
|
|
3773
|
-
|
|
3773
|
+
// this.gridOptions.api.setDatasource(this.dataSource);
|
|
3774
3774
|
|
|
3775
|
-
|
|
3776
|
-
|
|
3775
|
+
}
|
|
3776
|
+
}</code>
|
|
3777
3777
|
</td>
|
|
3778
3778
|
</tr>
|
|
3779
3779
|
|
|
@@ -3938,113 +3938,113 @@
|
|
|
3938
3938
|
<tr>
|
|
3939
3939
|
<td class="col-md-4">
|
|
3940
3940
|
<i>Default value : </i><code><GridOptions>{
|
|
3941
|
-
|
|
3941
|
+
debug: false,
|
|
3942
3942
|
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
defaultColDef:{resizable:true,sortable:true},
|
|
3943
|
+
headerHeight: this.header_h,
|
|
3944
|
+
floatingFilter: true,
|
|
3945
|
+
enableRangeSelection: true,
|
|
3946
|
+
defaultColDef: {resizable: true, sortable: true},
|
|
3947
3947
|
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3948
|
+
rowSelection: 'multiple',
|
|
3949
|
+
rowDeselection: false,
|
|
3950
|
+
// getContextMenuItems: () => this.getContextMenuItems(),
|
|
3951
|
+
allowContextMenuWithControlKey: true,
|
|
3952
|
+
rowModelType: 'infinite',
|
|
3953
3953
|
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
3954
|
+
localeText: {
|
|
3955
|
+
// for filter panel
|
|
3956
|
+
page: 'pagina',
|
|
3957
|
+
more: 'altre',
|
|
3958
|
+
to: 'a',
|
|
3959
|
+
of: 'di',
|
|
3960
|
+
next: 'prossima',
|
|
3961
|
+
last: 'ultima',
|
|
3962
|
+
first: 'prima',
|
|
3963
|
+
previous: 'precedente',
|
|
3964
|
+
loadingOoo: 'Caricamento...',
|
|
3965
|
+
// for set filter
|
|
3966
|
+
selectAll: 'Seleziona Tutto',
|
|
3967
|
+
searchOoo: 'Trova...',
|
|
3968
|
+
blanks: 'Vuoto',
|
|
3969
|
+
// for number filter and text filter
|
|
3970
|
+
filterOoo: 'Filtro...',
|
|
3971
|
+
applyFilter: 'Applica Filtro...',
|
|
3972
|
+
// for number filter
|
|
3973
|
+
equals: 'Uguale',
|
|
3974
|
+
notEqual: 'Diverso',
|
|
3975
|
+
lessThan: 'Minore',
|
|
3976
|
+
greaterThan: 'Maggiore',
|
|
3977
|
+
// for text filter
|
|
3978
|
+
notContains: 'Non Contiene',
|
|
3979
|
+
contains: 'Contiene',
|
|
3980
|
+
startsWith: 'Inizia Con',
|
|
3981
|
+
endsWith: 'Finisce Con',
|
|
3982
|
+
// the header of the default group column
|
|
3983
|
+
group: 'Gruppo',
|
|
3984
|
+
// tool panel
|
|
3985
|
+
columns: 'Colonne',
|
|
3986
|
+
rowGroupColumns: 'Colonne Pivot',
|
|
3987
|
+
rowGroupColumnsEmptyMessage: 'trascina le colonne per raggrupparle',
|
|
3988
|
+
valueColumns: 'Colonne Valore',
|
|
3989
|
+
pivotMode: 'Modalità Pivot',
|
|
3990
|
+
groups: 'Gruppi',
|
|
3991
|
+
values: 'Valori',
|
|
3992
|
+
pivots: 'Pivots',
|
|
3993
|
+
valueColumnsEmptyMessage: 'trascina le colonne per aggreare',
|
|
3994
|
+
pivotColumnsEmptyMessage: 'trascina le colonne per pivot',
|
|
3995
|
+
// other
|
|
3996
|
+
noRowsToShow: 'nessun dato',
|
|
3997
|
+
// enterprise menu
|
|
3998
|
+
pinColumn: 'Sposta Colonna',
|
|
3999
|
+
valueAggregation: 'Aggregazione',
|
|
4000
|
+
autosizeThiscolumn: 'Autosize colonna',
|
|
4001
|
+
autosizeAllColumns: 'Autosize tutte le colonne',
|
|
4002
|
+
groupBy: 'Raggruppa per',
|
|
4003
|
+
ungroupBy: 'Spacca per',
|
|
4004
|
+
resetColumns: 'Resetta queste colonna',
|
|
4005
|
+
expandAll: 'Espandi',
|
|
4006
|
+
collapseAll: 'Chiudi',
|
|
4007
|
+
toolPanel: 'Impostazioni',
|
|
4008
|
+
// enterprise menu pinning
|
|
4009
|
+
pinLeft: 'Sposta <<',
|
|
4010
|
+
pinRight: 'Sposta >>',
|
|
4011
|
+
noPin: 'Sposta <>',
|
|
4012
|
+
// enterprise menu aggregation and status panel
|
|
4013
|
+
sum: 'Somma',
|
|
4014
|
+
min: 'Minimo',
|
|
4015
|
+
max: 'Massimo',
|
|
4016
4016
|
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4017
|
+
none: 'Nessuno',
|
|
4018
|
+
count: 'Numero',
|
|
4019
|
+
average: 'Media',
|
|
4020
|
+
// standard menu
|
|
4021
|
+
copy: 'Copia',
|
|
4022
|
+
ctrlC: 'ctrl n C',
|
|
4023
|
+
paste: 'Incolla',
|
|
4024
|
+
ctrlV: 'ctrl n C'
|
|
4025
|
+
},
|
|
4026
|
+
getRowNodeId: function (item) {
|
|
4027
|
+
// console.log(item);
|
|
4028
|
+
if (item.ID != null)
|
|
4029
|
+
return String(item.ID);
|
|
4030
|
+
if (item.id != null)
|
|
4031
|
+
return String(item.id);
|
|
4032
|
+
if (item.uiid != null)
|
|
4033
|
+
return item.uiid;
|
|
4034
|
+
if (item.codice != null)
|
|
4035
|
+
return item.codice;
|
|
4036
|
+
if (item.id_doc != null)
|
|
4037
|
+
return item.id_doc;
|
|
4038
|
+
if (item.notesid != null)
|
|
4039
|
+
return item.notesid;
|
|
4040
|
+
if (item.ord != null)
|
|
4041
|
+
return item.ord;
|
|
4042
4042
|
|
|
4043
4043
|
|
|
4044
|
-
|
|
4044
|
+
}
|
|
4045
4045
|
|
|
4046
4046
|
|
|
4047
|
-
|
|
4047
|
+
}</code>
|
|
4048
4048
|
</td>
|
|
4049
4049
|
</tr>
|
|
4050
4050
|
|
|
@@ -4393,8 +4393,8 @@
|
|
|
4393
4393
|
|
|
4394
4394
|
<div class="tab-pane fade " id="c-styleData">
|
|
4395
4395
|
<pre class="line-numbers"><code class="language-scss">
|
|
4396
|
-
|
|
4397
|
-
|
|
4396
|
+
|
|
4397
|
+
|
|
4398
4398
|
</code></pre>
|
|
4399
4399
|
</div>
|
|
4400
4400
|
|