@fluxhub/fluxhub-lib 19.0.28 → 19.0.29
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.
|
@@ -8669,10 +8669,10 @@ class FHGridComponent {
|
|
|
8669
8669
|
return;
|
|
8670
8670
|
this.b_ensure = true;
|
|
8671
8671
|
try {
|
|
8672
|
-
if (localStorage.getItem(this.grid_key + '_POS') != null) {
|
|
8672
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null) {
|
|
8673
8673
|
if (this.gridApi)
|
|
8674
|
-
this.gridApi.ensureIndexVisible(parseInt(localStorage.getItem(this.grid_key + '_POS') || '0'));
|
|
8675
|
-
localStorage.removeItem(this.grid_key + '_POS');
|
|
8674
|
+
this.gridApi.ensureIndexVisible(parseInt(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') || '0'));
|
|
8675
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS');
|
|
8676
8676
|
}
|
|
8677
8677
|
}
|
|
8678
8678
|
catch (e) {
|
|
@@ -8685,10 +8685,10 @@ class FHGridComponent {
|
|
|
8685
8685
|
setTimeout(() => {
|
|
8686
8686
|
if (this.toggle_mantieni)
|
|
8687
8687
|
if (this.toggle_mantieni.checked) {
|
|
8688
|
-
localStorage.setItem(this.grid_key + '_MANTIENI', 'SI');
|
|
8688
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'SI');
|
|
8689
8689
|
}
|
|
8690
8690
|
else {
|
|
8691
|
-
localStorage.setItem(this.grid_key + '_MANTIENI', 'NO');
|
|
8691
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'NO');
|
|
8692
8692
|
}
|
|
8693
8693
|
}, 100);
|
|
8694
8694
|
}
|
|
@@ -8708,25 +8708,25 @@ class FHGridComponent {
|
|
|
8708
8708
|
this.curr_config = this.gf.getValue();
|
|
8709
8709
|
if (this.curr_config == '-1')
|
|
8710
8710
|
return;
|
|
8711
|
-
localStorage.removeItem(this.grid_key + '_COLS');
|
|
8712
|
-
localStorage.removeItem(this.grid_key + '_FILTER');
|
|
8713
|
-
localStorage.removeItem(this.grid_key + '_CFG_DEFAULT');
|
|
8714
|
-
localStorage.removeItem(this.grid_key + '_FILTER_UP');
|
|
8711
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
|
|
8712
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
8713
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT');
|
|
8714
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
|
|
8715
8715
|
if (this.gf)
|
|
8716
8716
|
if (this.gf.getObj().COL != null)
|
|
8717
8717
|
if (this.gf.getObj().COL != '')
|
|
8718
|
-
localStorage.setItem(this.grid_key + '_COLS', this.gf.getObj().COL);
|
|
8718
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', this.gf.getObj().COL);
|
|
8719
8719
|
// if (this.gf.getObj().SORT != null)
|
|
8720
8720
|
// if (this.gf.getObj().SORT != "")
|
|
8721
|
-
// localStorage.setItem(this.
|
|
8721
|
+
// localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
8722
8722
|
if (this.gf)
|
|
8723
8723
|
if (this.gf.getObj().FILTER != null)
|
|
8724
8724
|
if (this.gf.getObj().FILTER != '')
|
|
8725
|
-
localStorage.setItem(this.grid_key + '_FILTER', this.gf.getObj().FILTER);
|
|
8725
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', this.gf.getObj().FILTER);
|
|
8726
8726
|
if (this.gf)
|
|
8727
8727
|
if (this.gf.getDescri() != null)
|
|
8728
8728
|
if (this.gf.getDescri() != '-1')
|
|
8729
|
-
localStorage.setItem(this.grid_key + '_CFG_DEFAULT', this.gf.getDescri() || '');
|
|
8729
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT', this.gf.getDescri() || '');
|
|
8730
8730
|
if (this.gf)
|
|
8731
8731
|
this.curr_config = this.gf.getValue();
|
|
8732
8732
|
this.res_columns(true);
|
|
@@ -8752,14 +8752,14 @@ class FHGridComponent {
|
|
|
8752
8752
|
let p = new QParam();
|
|
8753
8753
|
p.sql = 'DELETE_CFG_GRID';
|
|
8754
8754
|
p.types = ['string', 'string'];
|
|
8755
|
-
p.values = [this.gf.getDescri(), this.grid_key];
|
|
8755
|
+
p.values = [this.gf.getDescri(), this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
8756
8756
|
this._dataService.doQuery(p).subscribe((data) => {
|
|
8757
8757
|
if (data != null)
|
|
8758
8758
|
if (data.result_msg == 'OK') {
|
|
8759
8759
|
this._toast.info('Configurazione eliminata');
|
|
8760
8760
|
if (this.gf) {
|
|
8761
8761
|
this.gf.types = ['string'];
|
|
8762
|
-
this.gf.values = [this.grid_key];
|
|
8762
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
8763
8763
|
this.gf.fillCombo();
|
|
8764
8764
|
}
|
|
8765
8765
|
this.curr_config = '-1';
|
|
@@ -8791,12 +8791,12 @@ class FHGridComponent {
|
|
|
8791
8791
|
let p_col;
|
|
8792
8792
|
// let p_sort: string = "";
|
|
8793
8793
|
let p_filter;
|
|
8794
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null)
|
|
8795
|
-
p_col = localStorage.getItem(this.grid_key + '_COLS');
|
|
8796
|
-
// if (localStorage.getItem(this.
|
|
8797
|
-
// p_sort = localStorage.getItem(this.
|
|
8798
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null)
|
|
8799
|
-
p_filter = localStorage.getItem(this.grid_key + '_FILTER');
|
|
8794
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != null)
|
|
8795
|
+
p_col = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
|
|
8796
|
+
// if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT") != null)
|
|
8797
|
+
// p_sort = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT");
|
|
8798
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null)
|
|
8799
|
+
p_filter = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
8800
8800
|
p.types = [
|
|
8801
8801
|
'string',
|
|
8802
8802
|
'string',
|
|
@@ -8808,7 +8808,7 @@ class FHGridComponent {
|
|
|
8808
8808
|
if (this.gf)
|
|
8809
8809
|
p.values = [
|
|
8810
8810
|
this.gf.getDescri(),
|
|
8811
|
-
this.grid_key,
|
|
8811
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key,
|
|
8812
8812
|
p_col,
|
|
8813
8813
|
'',
|
|
8814
8814
|
p_filter,
|
|
@@ -8821,7 +8821,7 @@ class FHGridComponent {
|
|
|
8821
8821
|
this._toast.info('Configurazione salvata');
|
|
8822
8822
|
if (this.gf) {
|
|
8823
8823
|
this.gf.types = ['string'];
|
|
8824
|
-
this.gf.values = [this.grid_key];
|
|
8824
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
8825
8825
|
this.gf.fillCombo();
|
|
8826
8826
|
}
|
|
8827
8827
|
this.curr_config = '-1';
|
|
@@ -8861,12 +8861,12 @@ class FHGridComponent {
|
|
|
8861
8861
|
let p_col;
|
|
8862
8862
|
// let p_sort: string = "";
|
|
8863
8863
|
let p_filter;
|
|
8864
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null)
|
|
8865
|
-
p_col = localStorage.getItem(this.grid_key + '_COLS');
|
|
8866
|
-
// if (localStorage.getItem(this.
|
|
8867
|
-
// p_sort = localStorage.getItem(this.
|
|
8868
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null)
|
|
8869
|
-
p_filter = localStorage.getItem(this.grid_key + '_FILTER');
|
|
8864
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != null)
|
|
8865
|
+
p_col = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
|
|
8866
|
+
// if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT") != null)
|
|
8867
|
+
// p_sort = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT");
|
|
8868
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null)
|
|
8869
|
+
p_filter = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
8870
8870
|
p.types = [
|
|
8871
8871
|
'string',
|
|
8872
8872
|
'string',
|
|
@@ -8877,7 +8877,7 @@ class FHGridComponent {
|
|
|
8877
8877
|
];
|
|
8878
8878
|
p.values = [
|
|
8879
8879
|
result,
|
|
8880
|
-
this.grid_key,
|
|
8880
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key,
|
|
8881
8881
|
p_col,
|
|
8882
8882
|
'',
|
|
8883
8883
|
p_filter,
|
|
@@ -8891,7 +8891,7 @@ class FHGridComponent {
|
|
|
8891
8891
|
ok_op = true;
|
|
8892
8892
|
if (this.gf) {
|
|
8893
8893
|
this.gf.types = ['string'];
|
|
8894
|
-
this.gf.values = [this.grid_key];
|
|
8894
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
8895
8895
|
this.gf.fillCombo();
|
|
8896
8896
|
}
|
|
8897
8897
|
}
|
|
@@ -8955,23 +8955,23 @@ class FHGridComponent {
|
|
|
8955
8955
|
this.fill_end.emit();
|
|
8956
8956
|
this.check_width();
|
|
8957
8957
|
// console.log("end");
|
|
8958
|
-
// console.log(localStorage.getItem(this.grid_key+'_POS'));
|
|
8959
|
-
localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
|
|
8960
|
-
if (localStorage.getItem(this.grid_key + '_POS2') != null)
|
|
8958
|
+
// console.log(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_POS'));
|
|
8959
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS1', JSON.stringify(p));
|
|
8960
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2') != null)
|
|
8961
8961
|
if (this.gridOptions != null)
|
|
8962
8962
|
if (this.gridApi != null)
|
|
8963
8963
|
this.gridApi.forEachNode((node) => {
|
|
8964
8964
|
// console.log(node:any)
|
|
8965
8965
|
if (this.getRowId(node) ===
|
|
8966
|
-
localStorage.getItem(this.grid_key + '_POS2')) {
|
|
8966
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2')) {
|
|
8967
8967
|
node.setSelected(true);
|
|
8968
|
-
localStorage.removeItem(this.grid_key + '_POS2');
|
|
8969
|
-
if (localStorage.getItem(this.grid_key + '_LAST_ROW') !=
|
|
8968
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2');
|
|
8969
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW') !=
|
|
8970
8970
|
null)
|
|
8971
|
-
this.sRow = JSON.parse(localStorage.getItem(this.grid_key + '_LAST_ROW') || '{}');
|
|
8971
|
+
this.sRow = JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW') || '{}');
|
|
8972
8972
|
else
|
|
8973
8973
|
this.sRow = null;
|
|
8974
|
-
localStorage.removeItem(this.grid_key + '_LAST_ROW');
|
|
8974
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW');
|
|
8975
8975
|
}
|
|
8976
8976
|
});
|
|
8977
8977
|
let b_mantieni_ck = false;
|
|
@@ -8982,7 +8982,7 @@ class FHGridComponent {
|
|
|
8982
8982
|
}
|
|
8983
8983
|
this.b_init1 = true;
|
|
8984
8984
|
this.ensure_visible();
|
|
8985
|
-
if (localStorage.getItem(this.grid_key + '_COLS') == null &&
|
|
8985
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') == null &&
|
|
8986
8986
|
this.autosize_at_ini)
|
|
8987
8987
|
setTimeout(() => {
|
|
8988
8988
|
this.set_init_size();
|
|
@@ -9243,15 +9243,15 @@ class FHGridComponent {
|
|
|
9243
9243
|
}
|
|
9244
9244
|
};
|
|
9245
9245
|
this.init_opt = true;
|
|
9246
|
-
if (this.grid_key == 'PRO_H')
|
|
9246
|
+
if (this.m_appService.COMPANY_KEY + '_' + this.grid_key == 'PRO_H')
|
|
9247
9247
|
this.no_pref = true;
|
|
9248
9248
|
setTimeout(() => {
|
|
9249
9249
|
if (this.end_point == null)
|
|
9250
9250
|
this.end_point =
|
|
9251
9251
|
this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
|
|
9252
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
|
|
9252
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') != null)
|
|
9253
9253
|
this.ric_libera =
|
|
9254
|
-
localStorage.getItem(this.grid_key + '_FILTER_UP') || '';
|
|
9254
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') || '';
|
|
9255
9255
|
this.onResize();
|
|
9256
9256
|
});
|
|
9257
9257
|
}
|
|
@@ -9346,12 +9346,12 @@ class FHGridComponent {
|
|
|
9346
9346
|
});
|
|
9347
9347
|
}
|
|
9348
9348
|
pulisci_filtri(resetr = true) {
|
|
9349
|
-
localStorage.removeItem(this.grid_key + '_FILTER');
|
|
9349
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
9350
9350
|
if (resetr) {
|
|
9351
9351
|
if (this.ric_libera != '')
|
|
9352
9352
|
this.doFill('', true, false);
|
|
9353
9353
|
this.ric_libera = '';
|
|
9354
|
-
localStorage.removeItem(this.grid_key + '_FILTER_UP');
|
|
9354
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
|
|
9355
9355
|
}
|
|
9356
9356
|
this.fix_flt_temp = '';
|
|
9357
9357
|
if (this.gridApi)
|
|
@@ -9415,18 +9415,18 @@ class FHGridComponent {
|
|
|
9415
9415
|
this.ckk_ed = true;
|
|
9416
9416
|
if (this.toggle_mantieni != null) {
|
|
9417
9417
|
this.toggle_mantieni.checked = true;
|
|
9418
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != null)
|
|
9419
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') == 'NO') {
|
|
9418
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI') != null)
|
|
9419
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI') == 'NO') {
|
|
9420
9420
|
this.toggle_mantieni.checked = false;
|
|
9421
9421
|
}
|
|
9422
9422
|
}
|
|
9423
9423
|
this.res_columns();
|
|
9424
|
-
if (localStorage.getItem(this.grid_key + '_POS') != null)
|
|
9424
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null)
|
|
9425
9425
|
this.b_restored = true;
|
|
9426
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
|
|
9427
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != '') {
|
|
9426
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') != null)
|
|
9427
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') != '') {
|
|
9428
9428
|
this.ric_libera =
|
|
9429
|
-
localStorage.getItem(this.grid_key + '_FILTER_UP') || '';
|
|
9429
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') || '';
|
|
9430
9430
|
let arr = this.ric_libera.split(' ');
|
|
9431
9431
|
let arr_F = new Array();
|
|
9432
9432
|
for (let i = 0; i < arr.length; i++)
|
|
@@ -9521,26 +9521,26 @@ class FHGridComponent {
|
|
|
9521
9521
|
let b_rip = false;
|
|
9522
9522
|
if (this.toggle_mantieni != null)
|
|
9523
9523
|
b_mantieni_ck = this.toggle_mantieni.checked;
|
|
9524
|
-
if ((localStorage.getItem(this.grid_key + '_COLS') || '') == '') {
|
|
9524
|
+
if ((localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '') == '') {
|
|
9525
9525
|
this.set_init_size();
|
|
9526
9526
|
return;
|
|
9527
9527
|
}
|
|
9528
9528
|
if (b_mantieni_ck || forza) {
|
|
9529
9529
|
b_rip = true;
|
|
9530
9530
|
try {
|
|
9531
|
-
let a = JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '[]');
|
|
9531
|
+
let a = JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '[]');
|
|
9532
9532
|
let annulla = true;
|
|
9533
9533
|
for (let i = 0; i < a.length; i++) {
|
|
9534
9534
|
if (!a[i].hide)
|
|
9535
9535
|
annulla = false;
|
|
9536
9536
|
}
|
|
9537
9537
|
if (annulla)
|
|
9538
|
-
localStorage.getItem(this.grid_key + '_COLS');
|
|
9538
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
|
|
9539
9539
|
else {
|
|
9540
|
-
if (localStorage.getItem(this.grid_key + '_COLS'))
|
|
9540
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS'))
|
|
9541
9541
|
if (this.gridApi) {
|
|
9542
9542
|
let colState = {
|
|
9543
|
-
state: JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '{}'),
|
|
9543
|
+
state: JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '{}'),
|
|
9544
9544
|
};
|
|
9545
9545
|
this.gridApi.applyColumnState(colState);
|
|
9546
9546
|
}
|
|
@@ -9550,12 +9550,12 @@ class FHGridComponent {
|
|
|
9550
9550
|
console.log(eer);
|
|
9551
9551
|
}
|
|
9552
9552
|
}
|
|
9553
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
|
|
9553
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null &&
|
|
9554
9554
|
(b_mantieni_ck || forza))
|
|
9555
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
|
|
9555
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != '') {
|
|
9556
9556
|
try {
|
|
9557
9557
|
if (this.gridApi)
|
|
9558
|
-
this.gridApi.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER') || ''));
|
|
9558
|
+
this.gridApi.setFilterModel(JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') || ''));
|
|
9559
9559
|
}
|
|
9560
9560
|
catch (eer) {
|
|
9561
9561
|
console.log(eer);
|
|
@@ -9597,10 +9597,10 @@ class FHGridComponent {
|
|
|
9597
9597
|
else
|
|
9598
9598
|
this.gf.sql = 'SELECT_CFG_GRID_BY_USER';
|
|
9599
9599
|
this.gf.types = ['string'];
|
|
9600
|
-
this.gf.values = [this.grid_key];
|
|
9600
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
9601
9601
|
this.gf.fillCombo();
|
|
9602
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO')
|
|
9603
|
-
if (localStorage.getItem(this.grid_key + '_CFG_DEFAULT') != null) {
|
|
9602
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI') != 'NO')
|
|
9603
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT') != null) {
|
|
9604
9604
|
return;
|
|
9605
9605
|
}
|
|
9606
9606
|
}
|
|
@@ -9615,16 +9615,16 @@ class FHGridComponent {
|
|
|
9615
9615
|
}
|
|
9616
9616
|
save_cfg() {
|
|
9617
9617
|
if (this.gridApi)
|
|
9618
|
-
localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
9618
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
9619
9619
|
}
|
|
9620
9620
|
fe_cfg() {
|
|
9621
9621
|
if (this.gf != null)
|
|
9622
9622
|
if (this.gf.getObj() != null)
|
|
9623
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO') {
|
|
9624
|
-
this.gf.setByDescri(localStorage.getItem(this.grid_key + '_CFG_DEFAULT') || '');
|
|
9625
|
-
localStorage.setItem(this.grid_key + '_COLS', this.gf.getObj().COLS);
|
|
9626
|
-
// localStorage.setItem(this.
|
|
9627
|
-
localStorage.setItem(this.grid_key + '_FILTER', this.gf.getObj().FILTER);
|
|
9623
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI') != 'NO') {
|
|
9624
|
+
this.gf.setByDescri(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT') || '');
|
|
9625
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', this.gf.getObj().COLS);
|
|
9626
|
+
// localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
9627
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', this.gf.getObj().FILTER);
|
|
9628
9628
|
this.curr_config = this.gf.getValue();
|
|
9629
9629
|
}
|
|
9630
9630
|
this.onready_go();
|
|
@@ -9652,10 +9652,10 @@ class FHGridComponent {
|
|
|
9652
9652
|
this.pulisci_filtri();
|
|
9653
9653
|
this.fix_flt_temp = '';
|
|
9654
9654
|
this.doFill('', true, false);
|
|
9655
|
-
localStorage.removeItem(this.grid_key + '_FILTER_UP');
|
|
9655
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
|
|
9656
9656
|
return;
|
|
9657
9657
|
}
|
|
9658
|
-
localStorage.setItem(this.grid_key + '_FILTER_UP', this.ric_libera);
|
|
9658
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP', this.ric_libera);
|
|
9659
9659
|
let arr = this.ric_libera.split(' ');
|
|
9660
9660
|
let arr_F = new Array();
|
|
9661
9661
|
for (let i = 0; i < arr.length; i++)
|
|
@@ -9741,7 +9741,7 @@ class FHGridComponent {
|
|
|
9741
9741
|
if (this.b_init) {
|
|
9742
9742
|
console.log('salvo f: ' + this.gridApi.getColumnState(), this.gridApi);
|
|
9743
9743
|
if (this.gridApi)
|
|
9744
|
-
localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
9744
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
9745
9745
|
}
|
|
9746
9746
|
}
|
|
9747
9747
|
onFilterModified() {
|
|
@@ -9752,7 +9752,7 @@ class FHGridComponent {
|
|
|
9752
9752
|
setTimeout(() => {
|
|
9753
9753
|
if (this.b_init) {
|
|
9754
9754
|
if (this.gridApi)
|
|
9755
|
-
localStorage.setItem(this.grid_key + '_FILTER', JSON.stringify(this.gridApi.getFilterModel()));
|
|
9755
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', JSON.stringify(this.gridApi.getFilterModel()));
|
|
9756
9756
|
}
|
|
9757
9757
|
}, 200);
|
|
9758
9758
|
}
|
|
@@ -9765,12 +9765,12 @@ class FHGridComponent {
|
|
|
9765
9765
|
return;
|
|
9766
9766
|
if (this.b_init) {
|
|
9767
9767
|
if (this.gridApi)
|
|
9768
|
-
localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
9768
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
9769
9769
|
// console.log('salvo s: '+this.gridApi.getSortModel());
|
|
9770
9770
|
/*
|
|
9771
9771
|
|
|
9772
9772
|
localStorage.setItem(
|
|
9773
|
-
this.
|
|
9773
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT",
|
|
9774
9774
|
JSON.stringify(this.gridApi.getSortModel())
|
|
9775
9775
|
);*/
|
|
9776
9776
|
}
|
|
@@ -9790,15 +9790,15 @@ class FHGridComponent {
|
|
|
9790
9790
|
if (selectedInGrid != null)
|
|
9791
9791
|
if (selectedInGrid[0] != null) {
|
|
9792
9792
|
// console.log((this.gridApi.getVerticalPixelRange()));
|
|
9793
|
-
localStorage.setItem(this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
|
|
9793
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
|
|
9794
9794
|
if (this.gridApi)
|
|
9795
|
-
localStorage.setItem(this.grid_key + '_POS_BAR', JSON.stringify(this.gridApi.getVerticalPixelRange()));
|
|
9796
|
-
localStorage.setItem(this.grid_key + '_POS2', this.getRowId(selectedInGrid[0]));
|
|
9795
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS_BAR', JSON.stringify(this.gridApi.getVerticalPixelRange()));
|
|
9796
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2', this.getRowId(selectedInGrid[0]));
|
|
9797
9797
|
// this.m_appService.getState().grid_obj=new Object();
|
|
9798
|
-
// this.m_appService.getState().grid_obj[this.grid_key+'_NODE']=this.gridApi.getSelectedRows[0];
|
|
9798
|
+
// this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_NODE']=this.gridApi.getSelectedRows[0];
|
|
9799
9799
|
}
|
|
9800
9800
|
this.sRow = $event.data;
|
|
9801
|
-
localStorage.setItem(this.grid_key + '_LAST_ROW', JSON.stringify(this.sRow));
|
|
9801
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW', JSON.stringify(this.sRow));
|
|
9802
9802
|
this.clicked.emit($event.data);
|
|
9803
9803
|
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
9804
9804
|
if (iOS) {
|
|
@@ -9826,7 +9826,7 @@ class FHGridComponent {
|
|
|
9826
9826
|
return;
|
|
9827
9827
|
this.columndclicked.emit($event);
|
|
9828
9828
|
// console.log('onColumnEvent: ' + $event);
|
|
9829
|
-
// localStorage.setItem(this.grid_key+'_COLUMN',JSON.stringify(this.gridApi.getColumnDef()));
|
|
9829
|
+
// localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_COLUMN',JSON.stringify(this.gridApi.getColumnDef()));
|
|
9830
9830
|
}
|
|
9831
9831
|
fix_flt = '';
|
|
9832
9832
|
fix_flt_temp = '';
|
|
@@ -10887,10 +10887,10 @@ class FHGridJSONComponent {
|
|
|
10887
10887
|
return;
|
|
10888
10888
|
this.b_ensure = true;
|
|
10889
10889
|
try {
|
|
10890
|
-
if (localStorage.getItem(this.grid_key + '_POS') != null &&
|
|
10890
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null &&
|
|
10891
10891
|
this.gridOptions.api != null) {
|
|
10892
|
-
this.gridOptions.api.ensureIndexVisible(parseInt(localStorage.getItem(this.grid_key + '_POS') || '0'));
|
|
10893
|
-
localStorage.removeItem(this.grid_key + '_POS');
|
|
10892
|
+
this.gridOptions.api.ensureIndexVisible(parseInt(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') || '0'));
|
|
10893
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS');
|
|
10894
10894
|
}
|
|
10895
10895
|
}
|
|
10896
10896
|
catch (e) {
|
|
@@ -10903,10 +10903,10 @@ class FHGridJSONComponent {
|
|
|
10903
10903
|
setTimeout(() => {
|
|
10904
10904
|
if (this.toggle_mantieni)
|
|
10905
10905
|
if (this.toggle_mantieni.checked) {
|
|
10906
|
-
localStorage.setItem(this.grid_key + '_MANTIENI', 'SI');
|
|
10906
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'SI');
|
|
10907
10907
|
}
|
|
10908
10908
|
else {
|
|
10909
|
-
localStorage.setItem(this.grid_key + '_MANTIENI', 'NO');
|
|
10909
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'NO');
|
|
10910
10910
|
}
|
|
10911
10911
|
}, 100);
|
|
10912
10912
|
}
|
|
@@ -10922,22 +10922,22 @@ class FHGridJSONComponent {
|
|
|
10922
10922
|
this.curr_config = this.gf.getValue();
|
|
10923
10923
|
if (this.curr_config == '-1')
|
|
10924
10924
|
return;
|
|
10925
|
-
localStorage.removeItem(this.grid_key + '_COLS');
|
|
10926
|
-
localStorage.removeItem(this.grid_key + '_SORT');
|
|
10927
|
-
localStorage.removeItem(this.grid_key + '_FILTER');
|
|
10928
|
-
localStorage.removeItem(this.grid_key + '_CFG_DEFAULT');
|
|
10925
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
|
|
10926
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT');
|
|
10927
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
10928
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT');
|
|
10929
10929
|
if (this.gf.getObj().COL != null)
|
|
10930
10930
|
if (this.gf.getObj().COL != '')
|
|
10931
|
-
localStorage.setItem(this.grid_key + '_COLS', this.gf.getObj().COL);
|
|
10931
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', this.gf.getObj().COL);
|
|
10932
10932
|
if (this.gf.getObj().SORT != null)
|
|
10933
10933
|
if (this.gf.getObj().SORT != '')
|
|
10934
|
-
localStorage.setItem(this.grid_key + '_SORT', this.gf.getObj().SORT);
|
|
10934
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT', this.gf.getObj().SORT);
|
|
10935
10935
|
if (this.gf.getObj().FILTER != null)
|
|
10936
10936
|
if (this.gf.getObj().FILTER != '')
|
|
10937
|
-
localStorage.setItem(this.grid_key + '_FILTER', this.gf.getObj().FILTER);
|
|
10937
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', this.gf.getObj().FILTER);
|
|
10938
10938
|
if (this.gf.getDescri() != null)
|
|
10939
10939
|
if (this.gf.getDescri() != '-1')
|
|
10940
|
-
localStorage.setItem(this.grid_key + '_CFG_DEFAULT', this.gf.getDescri() || '');
|
|
10940
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT', this.gf.getDescri() || '');
|
|
10941
10941
|
this.curr_config = this.gf.getValue();
|
|
10942
10942
|
}
|
|
10943
10943
|
this.res_columns(true);
|
|
@@ -10965,16 +10965,16 @@ class FHGridJSONComponent {
|
|
|
10965
10965
|
let p_col = '';
|
|
10966
10966
|
let p_sort = '';
|
|
10967
10967
|
let p_filter = '';
|
|
10968
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null)
|
|
10969
|
-
p_col = localStorage.getItem(this.grid_key + '_COLS');
|
|
10970
|
-
if (localStorage.getItem(this.grid_key + '_SORT') != null)
|
|
10971
|
-
p_sort = localStorage.getItem(this.grid_key + '_SORT');
|
|
10972
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null)
|
|
10973
|
-
p_filter = localStorage.getItem(this.grid_key + '_FILTER');
|
|
10968
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != null)
|
|
10969
|
+
p_col = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
|
|
10970
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT') != null)
|
|
10971
|
+
p_sort = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT');
|
|
10972
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null)
|
|
10973
|
+
p_filter = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
10974
10974
|
p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
|
|
10975
10975
|
p.values = [
|
|
10976
10976
|
dtv || '',
|
|
10977
|
-
this.grid_key,
|
|
10977
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key,
|
|
10978
10978
|
p_col,
|
|
10979
10979
|
p_sort,
|
|
10980
10980
|
p_filter,
|
|
@@ -10988,7 +10988,7 @@ class FHGridJSONComponent {
|
|
|
10988
10988
|
this._toast.info('Configurazione salvata');
|
|
10989
10989
|
if (this.gf) {
|
|
10990
10990
|
this.gf.types = ['string'];
|
|
10991
|
-
this.gf.values = [this.grid_key];
|
|
10991
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
10992
10992
|
this.gf.fillCombo();
|
|
10993
10993
|
}
|
|
10994
10994
|
}
|
|
@@ -11019,12 +11019,12 @@ class FHGridJSONComponent {
|
|
|
11019
11019
|
let p_col = '';
|
|
11020
11020
|
let p_sort = '';
|
|
11021
11021
|
let p_filter = '';
|
|
11022
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null)
|
|
11023
|
-
p_col = localStorage.getItem(this.grid_key + '_COLS');
|
|
11024
|
-
if (localStorage.getItem(this.grid_key + '_SORT') != null)
|
|
11025
|
-
p_sort = localStorage.getItem(this.grid_key + '_SORT');
|
|
11026
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null)
|
|
11027
|
-
p_filter = localStorage.getItem(this.grid_key + '_FILTER');
|
|
11022
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != null)
|
|
11023
|
+
p_col = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
|
|
11024
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT') != null)
|
|
11025
|
+
p_sort = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT');
|
|
11026
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null)
|
|
11027
|
+
p_filter = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
11028
11028
|
p.types = [
|
|
11029
11029
|
'string',
|
|
11030
11030
|
'string',
|
|
@@ -11035,7 +11035,7 @@ class FHGridJSONComponent {
|
|
|
11035
11035
|
];
|
|
11036
11036
|
p.values = [
|
|
11037
11037
|
result,
|
|
11038
|
-
this.grid_key,
|
|
11038
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key,
|
|
11039
11039
|
p_col,
|
|
11040
11040
|
p_sort,
|
|
11041
11041
|
p_filter,
|
|
@@ -11050,7 +11050,7 @@ class FHGridJSONComponent {
|
|
|
11050
11050
|
ok_op = true;
|
|
11051
11051
|
if (this.gf) {
|
|
11052
11052
|
this.gf.types = ['string'];
|
|
11053
|
-
this.gf.values = [this.grid_key];
|
|
11053
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
11054
11054
|
this.gf.fillCombo();
|
|
11055
11055
|
}
|
|
11056
11056
|
}
|
|
@@ -11274,7 +11274,7 @@ class FHGridJSONComponent {
|
|
|
11274
11274
|
});
|
|
11275
11275
|
}
|
|
11276
11276
|
pulisci_filtri(resetr = true) {
|
|
11277
|
-
localStorage.removeItem(this.grid_key + '_FILTER');
|
|
11277
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
11278
11278
|
if (resetr)
|
|
11279
11279
|
this.ric_libera = '';
|
|
11280
11280
|
this.fix_flt_temp = '';
|
|
@@ -11433,13 +11433,13 @@ class FHGridJSONComponent {
|
|
|
11433
11433
|
this.ckk_ed = true;
|
|
11434
11434
|
if (this.toggle_mantieni != null) {
|
|
11435
11435
|
this.toggle_mantieni.checked = true;
|
|
11436
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != null)
|
|
11437
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') == 'NO') {
|
|
11436
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI') != null)
|
|
11437
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI') == 'NO') {
|
|
11438
11438
|
this.toggle_mantieni.checked = false;
|
|
11439
11439
|
}
|
|
11440
11440
|
}
|
|
11441
11441
|
this.res_columns();
|
|
11442
|
-
if (localStorage.getItem(this.grid_key + '_POS') != null)
|
|
11442
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null)
|
|
11443
11443
|
this.b_restored = true;
|
|
11444
11444
|
if (this.init_fill) {
|
|
11445
11445
|
setTimeout(() => {
|
|
@@ -11452,14 +11452,14 @@ class FHGridJSONComponent {
|
|
|
11452
11452
|
let b_rip = false;
|
|
11453
11453
|
if (this.toggle_mantieni != null)
|
|
11454
11454
|
b_mantieni_ck = this.toggle_mantieni.checked;
|
|
11455
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null &&
|
|
11455
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != null &&
|
|
11456
11456
|
(b_mantieni_ck || forza))
|
|
11457
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != '') {
|
|
11457
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != '') {
|
|
11458
11458
|
b_rip = true;
|
|
11459
11459
|
try {
|
|
11460
11460
|
if (this.gridOptions)
|
|
11461
11461
|
if (this.gridOptions.columnApi)
|
|
11462
|
-
this.gridOptions.columnApi.applyColumnState(JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '{}'));
|
|
11462
|
+
this.gridOptions.columnApi.applyColumnState(JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '{}'));
|
|
11463
11463
|
}
|
|
11464
11464
|
catch (eer) {
|
|
11465
11465
|
console.log(eer);
|
|
@@ -11471,13 +11471,13 @@ class FHGridJSONComponent {
|
|
|
11471
11471
|
catch (eer) {
|
|
11472
11472
|
console.log(eer);
|
|
11473
11473
|
}
|
|
11474
|
-
if (localStorage.getItem(this.grid_key + '_SORT') != null &&
|
|
11474
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT') != null &&
|
|
11475
11475
|
(b_mantieni_ck || forza))
|
|
11476
|
-
if (localStorage.getItem(this.grid_key + '_SORT') != '') {
|
|
11477
|
-
// console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
|
|
11478
|
-
// console.log(localStorage.getItem(this.grid_key+'_SORT'));
|
|
11476
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT') != '') {
|
|
11477
|
+
// console.log('setto sort: '+localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_SORT'));
|
|
11478
|
+
// console.log(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_SORT'));
|
|
11479
11479
|
try {
|
|
11480
|
-
this.getGridApi().setSortModel(JSON.parse(localStorage.getItem(this.grid_key + '_SORT') || '{}'));
|
|
11480
|
+
this.getGridApi().setSortModel(JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT') || '{}'));
|
|
11481
11481
|
}
|
|
11482
11482
|
catch (eer) {
|
|
11483
11483
|
console.log(eer);
|
|
@@ -11489,13 +11489,13 @@ class FHGridJSONComponent {
|
|
|
11489
11489
|
catch (eer) {
|
|
11490
11490
|
console.log(eer);
|
|
11491
11491
|
}
|
|
11492
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
|
|
11492
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null &&
|
|
11493
11493
|
(b_mantieni_ck || forza))
|
|
11494
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
|
|
11495
|
-
// console.log(localStorage.getItem(this.grid_key+'_FILTER'));
|
|
11496
|
-
// console.log('setto _FILTER: '+localStorage.getItem(this.grid_key+'_FILTER'));
|
|
11494
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != '') {
|
|
11495
|
+
// console.log(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_FILTER'));
|
|
11496
|
+
// console.log('setto _FILTER: '+localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_FILTER'));
|
|
11497
11497
|
try {
|
|
11498
|
-
this.getGridApi().setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER') || '{}'));
|
|
11498
|
+
this.getGridApi().setFilterModel(JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') || '{}'));
|
|
11499
11499
|
}
|
|
11500
11500
|
catch (eer) {
|
|
11501
11501
|
console.log(eer);
|
|
@@ -11544,10 +11544,10 @@ class FHGridJSONComponent {
|
|
|
11544
11544
|
if (this.gf != null && this.show_buttons) {
|
|
11545
11545
|
this.gf.sql = 'SELECT_CFG_GRID';
|
|
11546
11546
|
this.gf.types = ['string'];
|
|
11547
|
-
this.gf.values = [this.grid_key];
|
|
11547
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
11548
11548
|
this.gf.fillCombo();
|
|
11549
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO')
|
|
11550
|
-
if (localStorage.getItem(this.grid_key + '_CFG_DEFAULT') != null) {
|
|
11549
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI') != 'NO')
|
|
11550
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT') != null) {
|
|
11551
11551
|
return;
|
|
11552
11552
|
}
|
|
11553
11553
|
}
|
|
@@ -11557,16 +11557,16 @@ class FHGridJSONComponent {
|
|
|
11557
11557
|
}
|
|
11558
11558
|
save_cfg() {
|
|
11559
11559
|
if (this.gridOptions.columnApi)
|
|
11560
|
-
localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridOptions.columnApi.getColumnState()));
|
|
11560
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridOptions.columnApi.getColumnState()));
|
|
11561
11561
|
}
|
|
11562
11562
|
fe_cfg() {
|
|
11563
11563
|
if (this.gf != null)
|
|
11564
11564
|
if (this.gf.getObj() != null)
|
|
11565
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO') {
|
|
11566
|
-
this.gf.setByDescri(localStorage.getItem(this.grid_key + '_CFG_DEFAULT') || '');
|
|
11567
|
-
localStorage.setItem(this.grid_key + '_COL', this.gf.getObj().COLS);
|
|
11568
|
-
localStorage.setItem(this.grid_key + '_SORT', this.gf.getObj().SORT);
|
|
11569
|
-
localStorage.setItem(this.grid_key + '_FILTER', this.gf.getObj().FILTER);
|
|
11565
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI') != 'NO') {
|
|
11566
|
+
this.gf.setByDescri(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT') || '');
|
|
11567
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COL', this.gf.getObj().COLS);
|
|
11568
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT', this.gf.getObj().SORT);
|
|
11569
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', this.gf.getObj().FILTER);
|
|
11570
11570
|
this.curr_config = this.gf.getValue();
|
|
11571
11571
|
}
|
|
11572
11572
|
this.onready_go();
|
|
@@ -11660,16 +11660,16 @@ class FHGridJSONComponent {
|
|
|
11660
11660
|
if (this.b_init) {
|
|
11661
11661
|
// console.log('salvo f: '+JSON.stringify(this.gridOptions.columnApi.getColumnState()));
|
|
11662
11662
|
if (this.gridOptions.columnApi)
|
|
11663
|
-
localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridOptions.columnApi.getColumnState()));
|
|
11663
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridOptions.columnApi.getColumnState()));
|
|
11664
11664
|
}
|
|
11665
11665
|
}
|
|
11666
11666
|
onAfterFilterChanged() {
|
|
11667
11667
|
// console.log('afterFilterChanged');
|
|
11668
|
-
localStorage.removeItem(this.grid_key + '_POS');
|
|
11668
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS');
|
|
11669
11669
|
if (this.b_init) {
|
|
11670
11670
|
// console.log('salvo f: '+JSON.stringify(this.gridOptions.api.getFilterModel()));
|
|
11671
11671
|
if (this.gridOptions.api)
|
|
11672
|
-
localStorage.setItem(this.grid_key + '_FILTER', JSON.stringify(this.gridOptions.api.getFilterModel()));
|
|
11672
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', JSON.stringify(this.gridOptions.api.getFilterModel()));
|
|
11673
11673
|
}
|
|
11674
11674
|
}
|
|
11675
11675
|
onFilterModified() {
|
|
@@ -11677,7 +11677,7 @@ class FHGridJSONComponent {
|
|
|
11677
11677
|
if (this.b_init) {
|
|
11678
11678
|
//console.log('salvo f: '+JSON.stringify(this.gridOptions.api.getFilterModel()));
|
|
11679
11679
|
if (this.gridOptions.api)
|
|
11680
|
-
localStorage.setItem(this.grid_key + '_FILTER', JSON.stringify(this.gridOptions.api.getFilterModel()));
|
|
11680
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', JSON.stringify(this.gridOptions.api.getFilterModel()));
|
|
11681
11681
|
}
|
|
11682
11682
|
}
|
|
11683
11683
|
onBeforeSortChanged() {
|
|
@@ -11685,7 +11685,7 @@ class FHGridJSONComponent {
|
|
|
11685
11685
|
}
|
|
11686
11686
|
onAfterSortChanged() {
|
|
11687
11687
|
if (this.b_init) {
|
|
11688
|
-
localStorage.setItem(this.grid_key + '_SORT', JSON.stringify(this.getGridApi().getSortModel()));
|
|
11688
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT', JSON.stringify(this.getGridApi().getSortModel()));
|
|
11689
11689
|
}
|
|
11690
11690
|
}
|
|
11691
11691
|
onVirtualRowRemoved($event) {
|
|
@@ -11701,12 +11701,12 @@ class FHGridJSONComponent {
|
|
|
11701
11701
|
if (selectedInGrid != null)
|
|
11702
11702
|
if (selectedInGrid[0] != null) {
|
|
11703
11703
|
// console.log((this.gridOptions.api.getVerticalPixelRange()));
|
|
11704
|
-
localStorage.setItem(this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
|
|
11704
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
|
|
11705
11705
|
if (this.gridOptions.api)
|
|
11706
|
-
localStorage.setItem(this.grid_key + '_POS_BAR', JSON.stringify(this.gridOptions.api.getVerticalPixelRange()));
|
|
11707
|
-
localStorage.setItem(this.grid_key + '_POS2', this.getRowId(selectedInGrid[0]));
|
|
11706
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS_BAR', JSON.stringify(this.gridOptions.api.getVerticalPixelRange()));
|
|
11707
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2', this.getRowId(selectedInGrid[0]));
|
|
11708
11708
|
// this.m_appService.getState().grid_obj=new Object();
|
|
11709
|
-
// this.m_appService.getState().grid_obj[this.grid_key+'_NODE']=this.gridOptions.api.getSelectedRows[0];
|
|
11709
|
+
// this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_NODE']=this.gridOptions.api.getSelectedRows[0];
|
|
11710
11710
|
}
|
|
11711
11711
|
this.sRow = $event.data;
|
|
11712
11712
|
this.clicked.emit($event.data);
|
|
@@ -11736,7 +11736,7 @@ class FHGridJSONComponent {
|
|
|
11736
11736
|
onColumnEvent($event) {
|
|
11737
11737
|
this.columndclicked.emit($event);
|
|
11738
11738
|
//console.log('onColumnEvent: ' + $event);
|
|
11739
|
-
// localStorage.setItem(this.grid_key+'_COLUMN',JSON.stringify(this.gridOptions.api.getColumnDef()));
|
|
11739
|
+
// localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_COLUMN',JSON.stringify(this.gridOptions.api.getColumnDef()));
|
|
11740
11740
|
}
|
|
11741
11741
|
fix_flt = '';
|
|
11742
11742
|
fix_flt_temp = '';
|
|
@@ -26426,10 +26426,10 @@ class FHGridInternalComponent {
|
|
|
26426
26426
|
return;
|
|
26427
26427
|
this.b_ensure = true;
|
|
26428
26428
|
try {
|
|
26429
|
-
if (localStorage.getItem(this.grid_key + '_POS') != null) {
|
|
26429
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null) {
|
|
26430
26430
|
if (this.gridApi)
|
|
26431
|
-
this.gridApi.ensureIndexVisible(parseInt(localStorage.getItem(this.grid_key + '_POS') || '0'));
|
|
26432
|
-
localStorage.removeItem(this.grid_key + '_POS');
|
|
26431
|
+
this.gridApi.ensureIndexVisible(parseInt(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') || '0'));
|
|
26432
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS');
|
|
26433
26433
|
}
|
|
26434
26434
|
}
|
|
26435
26435
|
catch (e) {
|
|
@@ -26442,10 +26442,10 @@ class FHGridInternalComponent {
|
|
|
26442
26442
|
setTimeout(() => {
|
|
26443
26443
|
if (this.toggle_mantieni)
|
|
26444
26444
|
if (this.toggle_mantieni.checked) {
|
|
26445
|
-
localStorage.setItem(this.grid_key + '_MANTIENI', 'SI');
|
|
26445
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'SI');
|
|
26446
26446
|
}
|
|
26447
26447
|
else {
|
|
26448
|
-
localStorage.setItem(this.grid_key + '_MANTIENI', 'NO');
|
|
26448
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'NO');
|
|
26449
26449
|
}
|
|
26450
26450
|
}, 100);
|
|
26451
26451
|
}
|
|
@@ -26465,26 +26465,26 @@ class FHGridInternalComponent {
|
|
|
26465
26465
|
this.curr_config = this.gf.getValue();
|
|
26466
26466
|
if (this.curr_config == '-1')
|
|
26467
26467
|
return;
|
|
26468
|
-
localStorage.removeItem(this.grid_key + '_COLS');
|
|
26469
|
-
// localStorage.removeItem(this.
|
|
26470
|
-
localStorage.removeItem(this.grid_key + '_FILTER');
|
|
26471
|
-
localStorage.removeItem(this.grid_key + '_CFG_DEFAULT');
|
|
26472
|
-
localStorage.removeItem(this.grid_key + '_FILTER_UP');
|
|
26468
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
|
|
26469
|
+
// localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT");
|
|
26470
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
26471
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT');
|
|
26472
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
|
|
26473
26473
|
if (this.gf)
|
|
26474
26474
|
if (this.gf.getObj().COL != null)
|
|
26475
26475
|
if (this.gf.getObj().COL != '')
|
|
26476
|
-
localStorage.setItem(this.grid_key + '_COLS', this.gf.getObj().COL);
|
|
26476
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', this.gf.getObj().COL);
|
|
26477
26477
|
// if (this.gf.getObj().SORT != null)
|
|
26478
26478
|
// if (this.gf.getObj().SORT != "")
|
|
26479
|
-
// localStorage.setItem(this.
|
|
26479
|
+
// localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
26480
26480
|
if (this.gf)
|
|
26481
26481
|
if (this.gf.getObj().FILTER != null)
|
|
26482
26482
|
if (this.gf.getObj().FILTER != '')
|
|
26483
|
-
localStorage.setItem(this.grid_key + '_FILTER', this.gf.getObj().FILTER);
|
|
26483
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', this.gf.getObj().FILTER);
|
|
26484
26484
|
if (this.gf)
|
|
26485
26485
|
if (this.gf.getDescri() != null)
|
|
26486
26486
|
if (this.gf.getDescri() != '-1')
|
|
26487
|
-
localStorage.setItem(this.grid_key + '_CFG_DEFAULT', this.gf.getDescri() || '');
|
|
26487
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT', this.gf.getDescri() || '');
|
|
26488
26488
|
if (this.gf)
|
|
26489
26489
|
this.curr_config = this.gf.getValue();
|
|
26490
26490
|
this.res_columns(true);
|
|
@@ -26510,7 +26510,7 @@ class FHGridInternalComponent {
|
|
|
26510
26510
|
p.sql = 'DELETE_CFG_GRID';
|
|
26511
26511
|
p.types = ['string', 'string'];
|
|
26512
26512
|
if (this.gf)
|
|
26513
|
-
p.values = [this.gf.getDescri(), this.grid_key];
|
|
26513
|
+
p.values = [this.gf.getDescri(), this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
26514
26514
|
let ok_op = false;
|
|
26515
26515
|
this._dataService.doQuery(p).subscribe((data) => {
|
|
26516
26516
|
let ok_op = false;
|
|
@@ -26519,7 +26519,7 @@ class FHGridInternalComponent {
|
|
|
26519
26519
|
this._toast.info('Configurazione eliminata');
|
|
26520
26520
|
if (this.gf) {
|
|
26521
26521
|
this.gf.types = ['string'];
|
|
26522
|
-
this.gf.values = [this.grid_key];
|
|
26522
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
26523
26523
|
this.gf.fillCombo();
|
|
26524
26524
|
}
|
|
26525
26525
|
this.curr_config = '-1';
|
|
@@ -26550,17 +26550,17 @@ class FHGridInternalComponent {
|
|
|
26550
26550
|
let p_col = '';
|
|
26551
26551
|
// let p_sort: string = "";
|
|
26552
26552
|
let p_filter = '';
|
|
26553
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null)
|
|
26554
|
-
p_col = localStorage.getItem(this.grid_key + '_COLS');
|
|
26555
|
-
// if (localStorage.getItem(this.
|
|
26556
|
-
// p_sort = localStorage.getItem(this.
|
|
26557
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null)
|
|
26558
|
-
p_filter = localStorage.getItem(this.grid_key + '_FILTER');
|
|
26553
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != null)
|
|
26554
|
+
p_col = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
|
|
26555
|
+
// if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT") != null)
|
|
26556
|
+
// p_sort = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT");
|
|
26557
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null)
|
|
26558
|
+
p_filter = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
26559
26559
|
p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
|
|
26560
26560
|
if (this.gf)
|
|
26561
26561
|
p.values = [
|
|
26562
26562
|
this.gf.getDescri(),
|
|
26563
|
-
this.grid_key,
|
|
26563
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key,
|
|
26564
26564
|
p_col,
|
|
26565
26565
|
'',
|
|
26566
26566
|
p_filter,
|
|
@@ -26574,7 +26574,7 @@ class FHGridInternalComponent {
|
|
|
26574
26574
|
this._toast.info('Configurazione salvata');
|
|
26575
26575
|
if (this.gf) {
|
|
26576
26576
|
this.gf.types = ['string'];
|
|
26577
|
-
this.gf.values = [this.grid_key];
|
|
26577
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
26578
26578
|
this.gf.fillCombo();
|
|
26579
26579
|
}
|
|
26580
26580
|
this.curr_config = '-1';
|
|
@@ -26613,12 +26613,12 @@ class FHGridInternalComponent {
|
|
|
26613
26613
|
let p_col;
|
|
26614
26614
|
// let p_sort: string = "";
|
|
26615
26615
|
let p_filter;
|
|
26616
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null)
|
|
26617
|
-
p_col = localStorage.getItem(this.grid_key + '_COLS');
|
|
26618
|
-
// if (localStorage.getItem(this.
|
|
26619
|
-
// p_sort = localStorage.getItem(this.
|
|
26620
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null)
|
|
26621
|
-
p_filter = localStorage.getItem(this.grid_key + '_FILTER');
|
|
26616
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != null)
|
|
26617
|
+
p_col = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
|
|
26618
|
+
// if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT") != null)
|
|
26619
|
+
// p_sort = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT");
|
|
26620
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null)
|
|
26621
|
+
p_filter = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
26622
26622
|
p.types = [
|
|
26623
26623
|
'string',
|
|
26624
26624
|
'string',
|
|
@@ -26629,7 +26629,7 @@ class FHGridInternalComponent {
|
|
|
26629
26629
|
];
|
|
26630
26630
|
p.values = [
|
|
26631
26631
|
result,
|
|
26632
|
-
this.grid_key,
|
|
26632
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key,
|
|
26633
26633
|
p_col,
|
|
26634
26634
|
'',
|
|
26635
26635
|
p_filter,
|
|
@@ -26644,7 +26644,7 @@ class FHGridInternalComponent {
|
|
|
26644
26644
|
ok_op = true;
|
|
26645
26645
|
if (this.gf) {
|
|
26646
26646
|
this.gf.types = ['string'];
|
|
26647
|
-
this.gf.values = [this.grid_key];
|
|
26647
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
26648
26648
|
this.gf.fillCombo();
|
|
26649
26649
|
}
|
|
26650
26650
|
}
|
|
@@ -27080,21 +27080,21 @@ class FHGridInternalComponent {
|
|
|
27080
27080
|
this.fill_end.emit();
|
|
27081
27081
|
this.check_width();
|
|
27082
27082
|
// console.log("end");
|
|
27083
|
-
// console.log(localStorage.getItem(this.grid_key+'_POS'));
|
|
27084
|
-
localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
|
|
27085
|
-
if (localStorage.getItem(this.grid_key + '_POS2') != null)
|
|
27083
|
+
// console.log(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_POS'));
|
|
27084
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS1', JSON.stringify(p));
|
|
27085
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2') != null)
|
|
27086
27086
|
if (this.gridOptions != null)
|
|
27087
27087
|
if (this.gridApi != null)
|
|
27088
27088
|
this.gridApi.forEachNode((node) => {
|
|
27089
27089
|
// console.log(node:any)
|
|
27090
27090
|
if (this.getRowId(node) ===
|
|
27091
|
-
localStorage.getItem(this.grid_key + '_POS2')) {
|
|
27091
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2')) {
|
|
27092
27092
|
node.setSelected(true);
|
|
27093
|
-
localStorage.removeItem(this.grid_key + '_POS2');
|
|
27094
|
-
if (localStorage.getItem(this.grid_key + '_LAST_ROW') !=
|
|
27093
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2');
|
|
27094
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW') !=
|
|
27095
27095
|
null)
|
|
27096
|
-
this.sRow = JSON.parse(localStorage.getItem(this.grid_key + '_LAST_ROW') || '{}');
|
|
27097
|
-
localStorage.removeItem(this.grid_key + '_LAST_ROW');
|
|
27096
|
+
this.sRow = JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW') || '{}');
|
|
27097
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW');
|
|
27098
27098
|
}
|
|
27099
27099
|
});
|
|
27100
27100
|
let b_mantieni_ck = false;
|
|
@@ -27106,7 +27106,7 @@ class FHGridInternalComponent {
|
|
|
27106
27106
|
}
|
|
27107
27107
|
this.b_init1 = true;
|
|
27108
27108
|
this.ensure_visible();
|
|
27109
|
-
if (localStorage.getItem(this.grid_key + '_COLS') == null &&
|
|
27109
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') == null &&
|
|
27110
27110
|
this.autosize_at_ini)
|
|
27111
27111
|
setTimeout(() => {
|
|
27112
27112
|
this.set_init_size();
|
|
@@ -27156,21 +27156,21 @@ class FHGridInternalComponent {
|
|
|
27156
27156
|
this.fill_end.emit();
|
|
27157
27157
|
this.check_width();
|
|
27158
27158
|
// console.log("end");
|
|
27159
|
-
// console.log(localStorage.getItem(this.grid_key+'_POS'));
|
|
27160
|
-
localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
|
|
27161
|
-
if (localStorage.getItem(this.grid_key + '_POS2') != null)
|
|
27159
|
+
// console.log(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_POS'));
|
|
27160
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS1', JSON.stringify(p));
|
|
27161
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2') != null)
|
|
27162
27162
|
if (this.gridOptions != null)
|
|
27163
27163
|
if (this.gridApi != null)
|
|
27164
27164
|
this.gridApi.forEachNode((node) => {
|
|
27165
27165
|
// console.log(node:any)
|
|
27166
27166
|
if (this.getRowId(node) ===
|
|
27167
|
-
localStorage.getItem(this.grid_key + '_POS2')) {
|
|
27167
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2')) {
|
|
27168
27168
|
node.setSelected(true);
|
|
27169
|
-
localStorage.removeItem(this.grid_key + '_POS2');
|
|
27170
|
-
if (localStorage.getItem(this.grid_key + '_LAST_ROW') !=
|
|
27169
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2');
|
|
27170
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW') !=
|
|
27171
27171
|
null)
|
|
27172
|
-
this.sRow = JSON.parse(localStorage.getItem(this.grid_key + '_LAST_ROW') || '{}');
|
|
27173
|
-
localStorage.removeItem(this.grid_key + '_LAST_ROW');
|
|
27172
|
+
this.sRow = JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW') || '{}');
|
|
27173
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW');
|
|
27174
27174
|
}
|
|
27175
27175
|
});
|
|
27176
27176
|
let b_mantieni_ck = false;
|
|
@@ -27182,33 +27182,33 @@ class FHGridInternalComponent {
|
|
|
27182
27182
|
}
|
|
27183
27183
|
this.b_init1 = true;
|
|
27184
27184
|
this.ensure_visible();
|
|
27185
|
-
/*if (localStorage.getItem(this.
|
|
27185
|
+
/*if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS')==null && this.first_ref) {
|
|
27186
27186
|
setTimeout(() => {
|
|
27187
27187
|
this.autoSizeAll();
|
|
27188
27188
|
}, 300);
|
|
27189
27189
|
this.first_ref = false;
|
|
27190
27190
|
|
|
27191
27191
|
|
|
27192
|
-
} else*/ if (localStorage.getItem(this.grid_key + '_COLS') == null &&
|
|
27192
|
+
} else*/ if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') == null &&
|
|
27193
27193
|
this.autosize_at_ini)
|
|
27194
27194
|
setTimeout(() => {
|
|
27195
27195
|
this.autoSizeAll();
|
|
27196
27196
|
}, 300);
|
|
27197
27197
|
//console.log('xxxxxxxxxxxxxxxxxxx');
|
|
27198
|
-
// console.log(this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
27199
|
-
//if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
27198
|
+
// console.log(this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_NODE'].id);
|
|
27199
|
+
//if(this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_NODE']!=null)
|
|
27200
27200
|
/*
|
|
27201
27201
|
|
|
27202
27202
|
this.gridApi.forEachNode( (node:any) =>{
|
|
27203
27203
|
// select the node
|
|
27204
|
-
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
27205
|
-
if(node.rowIndex==parseInt(localStorage.getItem(this.grid_key+'_POS'))){
|
|
27206
|
-
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
27204
|
+
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_NODE'].id);
|
|
27205
|
+
if(node.rowIndex==parseInt(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_POS'))){
|
|
27206
|
+
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_NODE'].id);
|
|
27207
27207
|
node.setSelected(true);
|
|
27208
27208
|
|
|
27209
27209
|
}}*/
|
|
27210
|
-
// if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
27211
|
-
//this.gridApi.get(parseInt(localStorage.getItem(this.grid_key+'_POS'))).setSelected(true);
|
|
27210
|
+
// if(this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_NODE']!=null)
|
|
27211
|
+
//this.gridApi.get(parseInt(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_POS'))).setSelected(true);
|
|
27212
27212
|
// console.log(this.myData);
|
|
27213
27213
|
}
|
|
27214
27214
|
if (!ok_op) {
|
|
@@ -27297,14 +27297,14 @@ class FHGridInternalComponent {
|
|
|
27297
27297
|
innerWidth = 750;
|
|
27298
27298
|
size;
|
|
27299
27299
|
ngAfterViewInit() {
|
|
27300
|
-
if (this.grid_key == 'PRO_H')
|
|
27300
|
+
if (this.m_appService.COMPANY_KEY + '_' + this.grid_key == 'PRO_H')
|
|
27301
27301
|
this.no_pref = true;
|
|
27302
27302
|
setTimeout(() => {
|
|
27303
27303
|
if (this.end_point == null)
|
|
27304
27304
|
this.end_point =
|
|
27305
27305
|
this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
|
|
27306
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
|
|
27307
|
-
this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
|
|
27306
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') != null)
|
|
27307
|
+
this.ric_libera = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
|
|
27308
27308
|
this.onResize();
|
|
27309
27309
|
});
|
|
27310
27310
|
}
|
|
@@ -27421,12 +27421,12 @@ class FHGridInternalComponent {
|
|
|
27421
27421
|
}
|
|
27422
27422
|
last_riclib = false;
|
|
27423
27423
|
pulisci_filtri(resetr = true) {
|
|
27424
|
-
localStorage.removeItem(this.grid_key + '_FILTER');
|
|
27424
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
27425
27425
|
if (resetr) {
|
|
27426
27426
|
if (this.ric_libera != '' || this.last_riclib)
|
|
27427
27427
|
this.doFill('', true, false);
|
|
27428
27428
|
this.ric_libera = '';
|
|
27429
|
-
localStorage.removeItem(this.grid_key + '_FILTER_UP');
|
|
27429
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
|
|
27430
27430
|
}
|
|
27431
27431
|
this.fix_flt_temp = '';
|
|
27432
27432
|
if (this.gridApi)
|
|
@@ -27737,17 +27737,17 @@ class FHGridInternalComponent {
|
|
|
27737
27737
|
this.ckk_ed = true;
|
|
27738
27738
|
if (this.toggle_mantieni != null) {
|
|
27739
27739
|
this.toggle_mantieni.checked = true;
|
|
27740
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != null)
|
|
27741
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') == 'NO') {
|
|
27740
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI') != null)
|
|
27741
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI') == 'NO') {
|
|
27742
27742
|
this.toggle_mantieni.checked = false;
|
|
27743
27743
|
}
|
|
27744
27744
|
}
|
|
27745
27745
|
this.res_columns();
|
|
27746
|
-
if (localStorage.getItem(this.grid_key + '_POS') != null)
|
|
27746
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null)
|
|
27747
27747
|
this.b_restored = true;
|
|
27748
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
|
|
27749
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != '') {
|
|
27750
|
-
this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
|
|
27748
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') != null)
|
|
27749
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') != '') {
|
|
27750
|
+
this.ric_libera = localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
|
|
27751
27751
|
let arr = (this.ric_libera || '').split(' ');
|
|
27752
27752
|
let arr_F = new Array();
|
|
27753
27753
|
for (let i = 0; i < arr.length; i++)
|
|
@@ -27820,10 +27820,10 @@ class FHGridInternalComponent {
|
|
|
27820
27820
|
}
|
|
27821
27821
|
// this.createNewDatasource();
|
|
27822
27822
|
/*
|
|
27823
|
-
if(this.m_appService.getState().grid_obj[this.grid_key+'_startPage']!=null)
|
|
27823
|
+
if(this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_startPage']!=null)
|
|
27824
27824
|
{
|
|
27825
|
-
//console.log('setto pag: '+this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
|
|
27826
|
-
this.gridApi.paginationGoToPage(this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
|
|
27825
|
+
//console.log('setto pag: '+this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_startPage']);
|
|
27826
|
+
this.gridApi.paginationGoToPage(this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_startPage']);
|
|
27827
27827
|
} */
|
|
27828
27828
|
}
|
|
27829
27829
|
set_init_size() {
|
|
@@ -27855,26 +27855,26 @@ class FHGridInternalComponent {
|
|
|
27855
27855
|
let b_rip = false;
|
|
27856
27856
|
if (this.toggle_mantieni != null)
|
|
27857
27857
|
b_mantieni_ck = this.toggle_mantieni.checked;
|
|
27858
|
-
if ((localStorage.getItem(this.grid_key + '_COLS') || '') == '') {
|
|
27858
|
+
if ((localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '') == '') {
|
|
27859
27859
|
this.set_init_size();
|
|
27860
27860
|
return;
|
|
27861
27861
|
}
|
|
27862
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null &&
|
|
27862
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != null &&
|
|
27863
27863
|
(b_mantieni_ck || forza))
|
|
27864
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != '') {
|
|
27864
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != '') {
|
|
27865
27865
|
b_rip = true;
|
|
27866
27866
|
try {
|
|
27867
|
-
let a = JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '[]');
|
|
27867
|
+
let a = JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '[]');
|
|
27868
27868
|
let annulla = true;
|
|
27869
27869
|
for (let i = 0; i < a.length; i++) {
|
|
27870
27870
|
if (!a[i].hide)
|
|
27871
27871
|
annulla = false;
|
|
27872
27872
|
}
|
|
27873
27873
|
if (annulla)
|
|
27874
|
-
localStorage.getItem(this.grid_key + '_COLS');
|
|
27874
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
|
|
27875
27875
|
else {
|
|
27876
27876
|
if (this.gridApi) {
|
|
27877
|
-
let saved_state = JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '[]');
|
|
27877
|
+
let saved_state = JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '[]');
|
|
27878
27878
|
// console.log('BEFORE ',this.gridApi.getColumnState())
|
|
27879
27879
|
this.gridApi.applyColumnState({
|
|
27880
27880
|
state: saved_state,
|
|
@@ -27895,15 +27895,15 @@ class FHGridInternalComponent {
|
|
|
27895
27895
|
console.log(eer);
|
|
27896
27896
|
}
|
|
27897
27897
|
if (
|
|
27898
|
-
localStorage.getItem(this.
|
|
27898
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT") != null &&
|
|
27899
27899
|
(b_mantieni_ck || forza)
|
|
27900
27900
|
)
|
|
27901
|
-
if (localStorage.getItem(this.
|
|
27902
|
-
// console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
|
|
27903
|
-
// console.log(localStorage.getItem(this.grid_key+'_SORT'));
|
|
27901
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT") != "") {
|
|
27902
|
+
// console.log('setto sort: '+localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_SORT'));
|
|
27903
|
+
// console.log(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_SORT'));
|
|
27904
27904
|
try {
|
|
27905
27905
|
this.gridApi.setSortModel(
|
|
27906
|
-
JSON.parse(localStorage.getItem(this.
|
|
27906
|
+
JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT"))
|
|
27907
27907
|
);
|
|
27908
27908
|
} catch (eer) {
|
|
27909
27909
|
console.log(eer);
|
|
@@ -27914,12 +27914,12 @@ class FHGridInternalComponent {
|
|
|
27914
27914
|
} catch (eer) {
|
|
27915
27915
|
console.log(eer);
|
|
27916
27916
|
}*/
|
|
27917
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
|
|
27917
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null &&
|
|
27918
27918
|
(b_mantieni_ck || forza))
|
|
27919
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
|
|
27919
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != '') {
|
|
27920
27920
|
try {
|
|
27921
27921
|
if (this.gridApi)
|
|
27922
|
-
this.gridApi.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER') || ''));
|
|
27922
|
+
this.gridApi.setFilterModel(JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') || ''));
|
|
27923
27923
|
}
|
|
27924
27924
|
catch (eer) {
|
|
27925
27925
|
console.log(eer);
|
|
@@ -27968,10 +27968,10 @@ class FHGridInternalComponent {
|
|
|
27968
27968
|
else
|
|
27969
27969
|
this.gf.sql = 'SELECT_CFG_GRID_BY_USER';
|
|
27970
27970
|
this.gf.types = ['string'];
|
|
27971
|
-
this.gf.values = [this.grid_key];
|
|
27971
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
27972
27972
|
this.gf.fillCombo();
|
|
27973
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO')
|
|
27974
|
-
if (localStorage.getItem(this.grid_key + '_CFG_DEFAULT') != null) {
|
|
27973
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI') != 'NO')
|
|
27974
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT') != null) {
|
|
27975
27975
|
return;
|
|
27976
27976
|
}
|
|
27977
27977
|
}
|
|
@@ -27986,16 +27986,16 @@ class FHGridInternalComponent {
|
|
|
27986
27986
|
}
|
|
27987
27987
|
save_cfg() {
|
|
27988
27988
|
if (this.gridApi)
|
|
27989
|
-
localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
27989
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
27990
27990
|
}
|
|
27991
27991
|
fe_cfg() {
|
|
27992
27992
|
if (this.gf != null)
|
|
27993
27993
|
if (this.gf.getObj() != null)
|
|
27994
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO') {
|
|
27995
|
-
this.gf.setByDescri(localStorage.getItem(this.grid_key + '_CFG_DEFAULT') || '');
|
|
27996
|
-
localStorage.setItem(this.grid_key + '_COLS', this.gf.getObj().COLS);
|
|
27997
|
-
// localStorage.setItem(this.
|
|
27998
|
-
localStorage.setItem(this.grid_key + '_FILTER', this.gf.getObj().FILTER);
|
|
27994
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI') != 'NO') {
|
|
27995
|
+
this.gf.setByDescri(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT') || '');
|
|
27996
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', this.gf.getObj().COLS);
|
|
27997
|
+
// localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
27998
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', this.gf.getObj().FILTER);
|
|
27999
27999
|
this.curr_config = this.gf.getValue();
|
|
28000
28000
|
}
|
|
28001
28001
|
this.onready_go();
|
|
@@ -28026,10 +28026,10 @@ class FHGridInternalComponent {
|
|
|
28026
28026
|
this.pulisci_filtri();
|
|
28027
28027
|
this.fix_flt_temp = '';
|
|
28028
28028
|
this.doFill('', true, false);
|
|
28029
|
-
localStorage.removeItem(this.grid_key + '_FILTER_UP');
|
|
28029
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
|
|
28030
28030
|
return;
|
|
28031
28031
|
}
|
|
28032
|
-
localStorage.setItem(this.grid_key + '_FILTER_UP', this.ric_libera || '');
|
|
28032
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP', this.ric_libera || '');
|
|
28033
28033
|
let arr = (this.ric_libera || '').split(' ');
|
|
28034
28034
|
let arr_F = new Array();
|
|
28035
28035
|
for (let i = 0; i < arr.length; i++)
|
|
@@ -28127,7 +28127,7 @@ class FHGridInternalComponent {
|
|
|
28127
28127
|
// console.log('oncolumnEverythingChanged');
|
|
28128
28128
|
if (this.b_init) {
|
|
28129
28129
|
if (this.gridApi)
|
|
28130
|
-
localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
28130
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
28131
28131
|
}
|
|
28132
28132
|
}
|
|
28133
28133
|
onFilterModified() {
|
|
@@ -28136,7 +28136,7 @@ class FHGridInternalComponent {
|
|
|
28136
28136
|
setTimeout(() => {
|
|
28137
28137
|
if (this.b_init) {
|
|
28138
28138
|
if (this.gridApi)
|
|
28139
|
-
localStorage.setItem(this.grid_key + '_FILTER', JSON.stringify(this.gridApi.getFilterModel() || '{}'));
|
|
28139
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', JSON.stringify(this.gridApi.getFilterModel() || '{}'));
|
|
28140
28140
|
}
|
|
28141
28141
|
}, 200);
|
|
28142
28142
|
}
|
|
@@ -28149,12 +28149,12 @@ class FHGridInternalComponent {
|
|
|
28149
28149
|
return;
|
|
28150
28150
|
if (this.b_init) {
|
|
28151
28151
|
if (this.gridApi)
|
|
28152
|
-
localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
28152
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
|
|
28153
28153
|
// console.log('salvo s: '+this.gridApi.getSortModel());
|
|
28154
28154
|
/*
|
|
28155
28155
|
|
|
28156
28156
|
localStorage.setItem(
|
|
28157
|
-
this.
|
|
28157
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT",
|
|
28158
28158
|
JSON.stringify(this.gridApi.getSortModel())
|
|
28159
28159
|
);*/
|
|
28160
28160
|
}
|
|
@@ -28172,15 +28172,15 @@ class FHGridInternalComponent {
|
|
|
28172
28172
|
if (selectedInGrid != null)
|
|
28173
28173
|
if (selectedInGrid[0] != null) {
|
|
28174
28174
|
// console.log((this.gridApi.getVerticalPixelRange()));
|
|
28175
|
-
localStorage.setItem(this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
|
|
28175
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
|
|
28176
28176
|
if (this.gridApi)
|
|
28177
|
-
localStorage.setItem(this.grid_key + '_POS_BAR', JSON.stringify(this.gridApi.getVerticalPixelRange()));
|
|
28178
|
-
localStorage.setItem(this.grid_key + '_POS2', this.getRowId(selectedInGrid[0]));
|
|
28177
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS_BAR', JSON.stringify(this.gridApi.getVerticalPixelRange()));
|
|
28178
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2', this.getRowId(selectedInGrid[0]));
|
|
28179
28179
|
// this.m_appService.getState().grid_obj=new Object();
|
|
28180
|
-
// this.m_appService.getState().grid_obj[this.grid_key+'_NODE']=this.gridApi.getSelectedRows[0];
|
|
28180
|
+
// this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_NODE']=this.gridApi.getSelectedRows[0];
|
|
28181
28181
|
}
|
|
28182
28182
|
this.sRow = $event.data;
|
|
28183
|
-
localStorage.setItem(this.grid_key + '_LAST_ROW', JSON.stringify(this.sRow));
|
|
28183
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW', JSON.stringify(this.sRow));
|
|
28184
28184
|
this.clicked.emit($event.data);
|
|
28185
28185
|
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
28186
28186
|
if (iOS) {
|
|
@@ -28208,7 +28208,7 @@ class FHGridInternalComponent {
|
|
|
28208
28208
|
onColumnEvent($event) {
|
|
28209
28209
|
this.columndclicked.emit($event);
|
|
28210
28210
|
// console.log('onColumnEvent: ' + $event);
|
|
28211
|
-
// localStorage.setItem(this.grid_key+'_COLUMN',JSON.stringify(this.gridApi.getColumnDef()));
|
|
28211
|
+
// localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_COLUMN',JSON.stringify(this.gridApi.getColumnDef()));
|
|
28212
28212
|
}
|
|
28213
28213
|
fix_flt = '';
|
|
28214
28214
|
fix_flt_temp = '';
|