@fluxhub/fluxhub-lib 19.0.27 → 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.
|
@@ -53,7 +53,7 @@ import * as i8$3 from '@angular/material/datepicker';
|
|
|
53
53
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
54
54
|
import * as i4 from '@angular/material/slide-toggle';
|
|
55
55
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
56
|
-
import { ServerSideRowModelModule, RowGroupingModule, CellSelectionModule, ContextMenuModule } from 'ag-grid-enterprise';
|
|
56
|
+
import { ServerSideRowModelModule, RowGroupingModule, CellSelectionModule, ContextMenuModule, SetFilterModule } from 'ag-grid-enterprise';
|
|
57
57
|
import * as i5$1 from '@angular/material/tabs';
|
|
58
58
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
59
59
|
import * as i4$1 from 'ngx-quill';
|
|
@@ -6473,7 +6473,7 @@ class fh_win_list {
|
|
|
6473
6473
|
</div>
|
|
6474
6474
|
</mat-dialog-actions>
|
|
6475
6475
|
</div>
|
|
6476
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FHListComponent, selector: "FHList", inputs: ["init_fill", "sql", "types", "values", "label", "enabled", "single_sel", "enableSearch", "separator"], outputs: ["fillend", "selchange", "initend"] }] });
|
|
6476
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FHListComponent, selector: "FHList", inputs: ["init_fill", "sql", "types", "values", "label", "enabled", "single_sel", "enableSearch", "separator"], outputs: ["fillend", "selchange", "initend"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: FlexLayoutModule }, { kind: "directive", type: i8$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i8$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }] });
|
|
6477
6477
|
}
|
|
6478
6478
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: fh_win_list, decorators: [{
|
|
6479
6479
|
type: Component,
|
|
@@ -6483,7 +6483,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
6483
6483
|
TranslateModule,
|
|
6484
6484
|
MatDialogModule,
|
|
6485
6485
|
CommonModule,
|
|
6486
|
-
FHListComponent
|
|
6486
|
+
FHListComponent,
|
|
6487
|
+
MatButtonModule,
|
|
6488
|
+
FlexLayoutModule
|
|
6487
6489
|
],
|
|
6488
6490
|
template: `
|
|
6489
6491
|
<div fxLayout="column">
|
|
@@ -8545,7 +8547,8 @@ ModuleRegistry.registerModules([
|
|
|
8545
8547
|
RowGroupingModule,
|
|
8546
8548
|
AllCommunityModule,
|
|
8547
8549
|
CellSelectionModule,
|
|
8548
|
-
ContextMenuModule
|
|
8550
|
+
ContextMenuModule,
|
|
8551
|
+
SetFilterModule
|
|
8549
8552
|
]);
|
|
8550
8553
|
class FHGridComponent {
|
|
8551
8554
|
_gridservice;
|
|
@@ -8666,10 +8669,10 @@ class FHGridComponent {
|
|
|
8666
8669
|
return;
|
|
8667
8670
|
this.b_ensure = true;
|
|
8668
8671
|
try {
|
|
8669
|
-
if (localStorage.getItem(this.grid_key + '_POS') != null) {
|
|
8672
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null) {
|
|
8670
8673
|
if (this.gridApi)
|
|
8671
|
-
this.gridApi.ensureIndexVisible(parseInt(localStorage.getItem(this.grid_key + '_POS') || '0'));
|
|
8672
|
-
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');
|
|
8673
8676
|
}
|
|
8674
8677
|
}
|
|
8675
8678
|
catch (e) {
|
|
@@ -8682,10 +8685,10 @@ class FHGridComponent {
|
|
|
8682
8685
|
setTimeout(() => {
|
|
8683
8686
|
if (this.toggle_mantieni)
|
|
8684
8687
|
if (this.toggle_mantieni.checked) {
|
|
8685
|
-
localStorage.setItem(this.grid_key + '_MANTIENI', 'SI');
|
|
8688
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'SI');
|
|
8686
8689
|
}
|
|
8687
8690
|
else {
|
|
8688
|
-
localStorage.setItem(this.grid_key + '_MANTIENI', 'NO');
|
|
8691
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'NO');
|
|
8689
8692
|
}
|
|
8690
8693
|
}, 100);
|
|
8691
8694
|
}
|
|
@@ -8705,25 +8708,25 @@ class FHGridComponent {
|
|
|
8705
8708
|
this.curr_config = this.gf.getValue();
|
|
8706
8709
|
if (this.curr_config == '-1')
|
|
8707
8710
|
return;
|
|
8708
|
-
localStorage.removeItem(this.grid_key + '_COLS');
|
|
8709
|
-
localStorage.removeItem(this.grid_key + '_FILTER');
|
|
8710
|
-
localStorage.removeItem(this.grid_key + '_CFG_DEFAULT');
|
|
8711
|
-
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');
|
|
8712
8715
|
if (this.gf)
|
|
8713
8716
|
if (this.gf.getObj().COL != null)
|
|
8714
8717
|
if (this.gf.getObj().COL != '')
|
|
8715
|
-
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);
|
|
8716
8719
|
// if (this.gf.getObj().SORT != null)
|
|
8717
8720
|
// if (this.gf.getObj().SORT != "")
|
|
8718
|
-
// localStorage.setItem(this.
|
|
8721
|
+
// localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
8719
8722
|
if (this.gf)
|
|
8720
8723
|
if (this.gf.getObj().FILTER != null)
|
|
8721
8724
|
if (this.gf.getObj().FILTER != '')
|
|
8722
|
-
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);
|
|
8723
8726
|
if (this.gf)
|
|
8724
8727
|
if (this.gf.getDescri() != null)
|
|
8725
8728
|
if (this.gf.getDescri() != '-1')
|
|
8726
|
-
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() || '');
|
|
8727
8730
|
if (this.gf)
|
|
8728
8731
|
this.curr_config = this.gf.getValue();
|
|
8729
8732
|
this.res_columns(true);
|
|
@@ -8749,14 +8752,14 @@ class FHGridComponent {
|
|
|
8749
8752
|
let p = new QParam();
|
|
8750
8753
|
p.sql = 'DELETE_CFG_GRID';
|
|
8751
8754
|
p.types = ['string', 'string'];
|
|
8752
|
-
p.values = [this.gf.getDescri(), this.grid_key];
|
|
8755
|
+
p.values = [this.gf.getDescri(), this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
8753
8756
|
this._dataService.doQuery(p).subscribe((data) => {
|
|
8754
8757
|
if (data != null)
|
|
8755
8758
|
if (data.result_msg == 'OK') {
|
|
8756
8759
|
this._toast.info('Configurazione eliminata');
|
|
8757
8760
|
if (this.gf) {
|
|
8758
8761
|
this.gf.types = ['string'];
|
|
8759
|
-
this.gf.values = [this.grid_key];
|
|
8762
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
8760
8763
|
this.gf.fillCombo();
|
|
8761
8764
|
}
|
|
8762
8765
|
this.curr_config = '-1';
|
|
@@ -8788,12 +8791,12 @@ class FHGridComponent {
|
|
|
8788
8791
|
let p_col;
|
|
8789
8792
|
// let p_sort: string = "";
|
|
8790
8793
|
let p_filter;
|
|
8791
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null)
|
|
8792
|
-
p_col = localStorage.getItem(this.grid_key + '_COLS');
|
|
8793
|
-
// if (localStorage.getItem(this.
|
|
8794
|
-
// p_sort = localStorage.getItem(this.
|
|
8795
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null)
|
|
8796
|
-
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');
|
|
8797
8800
|
p.types = [
|
|
8798
8801
|
'string',
|
|
8799
8802
|
'string',
|
|
@@ -8805,7 +8808,7 @@ class FHGridComponent {
|
|
|
8805
8808
|
if (this.gf)
|
|
8806
8809
|
p.values = [
|
|
8807
8810
|
this.gf.getDescri(),
|
|
8808
|
-
this.grid_key,
|
|
8811
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key,
|
|
8809
8812
|
p_col,
|
|
8810
8813
|
'',
|
|
8811
8814
|
p_filter,
|
|
@@ -8818,7 +8821,7 @@ class FHGridComponent {
|
|
|
8818
8821
|
this._toast.info('Configurazione salvata');
|
|
8819
8822
|
if (this.gf) {
|
|
8820
8823
|
this.gf.types = ['string'];
|
|
8821
|
-
this.gf.values = [this.grid_key];
|
|
8824
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
8822
8825
|
this.gf.fillCombo();
|
|
8823
8826
|
}
|
|
8824
8827
|
this.curr_config = '-1';
|
|
@@ -8858,12 +8861,12 @@ class FHGridComponent {
|
|
|
8858
8861
|
let p_col;
|
|
8859
8862
|
// let p_sort: string = "";
|
|
8860
8863
|
let p_filter;
|
|
8861
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null)
|
|
8862
|
-
p_col = localStorage.getItem(this.grid_key + '_COLS');
|
|
8863
|
-
// if (localStorage.getItem(this.
|
|
8864
|
-
// p_sort = localStorage.getItem(this.
|
|
8865
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null)
|
|
8866
|
-
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');
|
|
8867
8870
|
p.types = [
|
|
8868
8871
|
'string',
|
|
8869
8872
|
'string',
|
|
@@ -8874,7 +8877,7 @@ class FHGridComponent {
|
|
|
8874
8877
|
];
|
|
8875
8878
|
p.values = [
|
|
8876
8879
|
result,
|
|
8877
|
-
this.grid_key,
|
|
8880
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key,
|
|
8878
8881
|
p_col,
|
|
8879
8882
|
'',
|
|
8880
8883
|
p_filter,
|
|
@@ -8888,7 +8891,7 @@ class FHGridComponent {
|
|
|
8888
8891
|
ok_op = true;
|
|
8889
8892
|
if (this.gf) {
|
|
8890
8893
|
this.gf.types = ['string'];
|
|
8891
|
-
this.gf.values = [this.grid_key];
|
|
8894
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
8892
8895
|
this.gf.fillCombo();
|
|
8893
8896
|
}
|
|
8894
8897
|
}
|
|
@@ -8952,23 +8955,23 @@ class FHGridComponent {
|
|
|
8952
8955
|
this.fill_end.emit();
|
|
8953
8956
|
this.check_width();
|
|
8954
8957
|
// console.log("end");
|
|
8955
|
-
// console.log(localStorage.getItem(this.grid_key+'_POS'));
|
|
8956
|
-
localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
|
|
8957
|
-
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)
|
|
8958
8961
|
if (this.gridOptions != null)
|
|
8959
8962
|
if (this.gridApi != null)
|
|
8960
8963
|
this.gridApi.forEachNode((node) => {
|
|
8961
8964
|
// console.log(node:any)
|
|
8962
8965
|
if (this.getRowId(node) ===
|
|
8963
|
-
localStorage.getItem(this.grid_key + '_POS2')) {
|
|
8966
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2')) {
|
|
8964
8967
|
node.setSelected(true);
|
|
8965
|
-
localStorage.removeItem(this.grid_key + '_POS2');
|
|
8966
|
-
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') !=
|
|
8967
8970
|
null)
|
|
8968
|
-
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') || '{}');
|
|
8969
8972
|
else
|
|
8970
8973
|
this.sRow = null;
|
|
8971
|
-
localStorage.removeItem(this.grid_key + '_LAST_ROW');
|
|
8974
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW');
|
|
8972
8975
|
}
|
|
8973
8976
|
});
|
|
8974
8977
|
let b_mantieni_ck = false;
|
|
@@ -8979,7 +8982,7 @@ class FHGridComponent {
|
|
|
8979
8982
|
}
|
|
8980
8983
|
this.b_init1 = true;
|
|
8981
8984
|
this.ensure_visible();
|
|
8982
|
-
if (localStorage.getItem(this.grid_key + '_COLS') == null &&
|
|
8985
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') == null &&
|
|
8983
8986
|
this.autosize_at_ini)
|
|
8984
8987
|
setTimeout(() => {
|
|
8985
8988
|
this.set_init_size();
|
|
@@ -9240,15 +9243,15 @@ class FHGridComponent {
|
|
|
9240
9243
|
}
|
|
9241
9244
|
};
|
|
9242
9245
|
this.init_opt = true;
|
|
9243
|
-
if (this.grid_key == 'PRO_H')
|
|
9246
|
+
if (this.m_appService.COMPANY_KEY + '_' + this.grid_key == 'PRO_H')
|
|
9244
9247
|
this.no_pref = true;
|
|
9245
9248
|
setTimeout(() => {
|
|
9246
9249
|
if (this.end_point == null)
|
|
9247
9250
|
this.end_point =
|
|
9248
9251
|
this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
|
|
9249
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
|
|
9252
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') != null)
|
|
9250
9253
|
this.ric_libera =
|
|
9251
|
-
localStorage.getItem(this.grid_key + '_FILTER_UP') || '';
|
|
9254
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') || '';
|
|
9252
9255
|
this.onResize();
|
|
9253
9256
|
});
|
|
9254
9257
|
}
|
|
@@ -9343,12 +9346,12 @@ class FHGridComponent {
|
|
|
9343
9346
|
});
|
|
9344
9347
|
}
|
|
9345
9348
|
pulisci_filtri(resetr = true) {
|
|
9346
|
-
localStorage.removeItem(this.grid_key + '_FILTER');
|
|
9349
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
9347
9350
|
if (resetr) {
|
|
9348
9351
|
if (this.ric_libera != '')
|
|
9349
9352
|
this.doFill('', true, false);
|
|
9350
9353
|
this.ric_libera = '';
|
|
9351
|
-
localStorage.removeItem(this.grid_key + '_FILTER_UP');
|
|
9354
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
|
|
9352
9355
|
}
|
|
9353
9356
|
this.fix_flt_temp = '';
|
|
9354
9357
|
if (this.gridApi)
|
|
@@ -9412,18 +9415,18 @@ class FHGridComponent {
|
|
|
9412
9415
|
this.ckk_ed = true;
|
|
9413
9416
|
if (this.toggle_mantieni != null) {
|
|
9414
9417
|
this.toggle_mantieni.checked = true;
|
|
9415
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != null)
|
|
9416
|
-
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') {
|
|
9417
9420
|
this.toggle_mantieni.checked = false;
|
|
9418
9421
|
}
|
|
9419
9422
|
}
|
|
9420
9423
|
this.res_columns();
|
|
9421
|
-
if (localStorage.getItem(this.grid_key + '_POS') != null)
|
|
9424
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null)
|
|
9422
9425
|
this.b_restored = true;
|
|
9423
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
|
|
9424
|
-
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') != '') {
|
|
9425
9428
|
this.ric_libera =
|
|
9426
|
-
localStorage.getItem(this.grid_key + '_FILTER_UP') || '';
|
|
9429
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') || '';
|
|
9427
9430
|
let arr = this.ric_libera.split(' ');
|
|
9428
9431
|
let arr_F = new Array();
|
|
9429
9432
|
for (let i = 0; i < arr.length; i++)
|
|
@@ -9518,26 +9521,26 @@ class FHGridComponent {
|
|
|
9518
9521
|
let b_rip = false;
|
|
9519
9522
|
if (this.toggle_mantieni != null)
|
|
9520
9523
|
b_mantieni_ck = this.toggle_mantieni.checked;
|
|
9521
|
-
if ((localStorage.getItem(this.grid_key + '_COLS') || '') == '') {
|
|
9524
|
+
if ((localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '') == '') {
|
|
9522
9525
|
this.set_init_size();
|
|
9523
9526
|
return;
|
|
9524
9527
|
}
|
|
9525
9528
|
if (b_mantieni_ck || forza) {
|
|
9526
9529
|
b_rip = true;
|
|
9527
9530
|
try {
|
|
9528
|
-
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') || '[]');
|
|
9529
9532
|
let annulla = true;
|
|
9530
9533
|
for (let i = 0; i < a.length; i++) {
|
|
9531
9534
|
if (!a[i].hide)
|
|
9532
9535
|
annulla = false;
|
|
9533
9536
|
}
|
|
9534
9537
|
if (annulla)
|
|
9535
|
-
localStorage.getItem(this.grid_key + '_COLS');
|
|
9538
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
|
|
9536
9539
|
else {
|
|
9537
|
-
if (localStorage.getItem(this.grid_key + '_COLS'))
|
|
9540
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS'))
|
|
9538
9541
|
if (this.gridApi) {
|
|
9539
9542
|
let colState = {
|
|
9540
|
-
state: JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '{}'),
|
|
9543
|
+
state: JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '{}'),
|
|
9541
9544
|
};
|
|
9542
9545
|
this.gridApi.applyColumnState(colState);
|
|
9543
9546
|
}
|
|
@@ -9547,12 +9550,12 @@ class FHGridComponent {
|
|
|
9547
9550
|
console.log(eer);
|
|
9548
9551
|
}
|
|
9549
9552
|
}
|
|
9550
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
|
|
9553
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null &&
|
|
9551
9554
|
(b_mantieni_ck || forza))
|
|
9552
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
|
|
9555
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != '') {
|
|
9553
9556
|
try {
|
|
9554
9557
|
if (this.gridApi)
|
|
9555
|
-
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') || ''));
|
|
9556
9559
|
}
|
|
9557
9560
|
catch (eer) {
|
|
9558
9561
|
console.log(eer);
|
|
@@ -9594,10 +9597,10 @@ class FHGridComponent {
|
|
|
9594
9597
|
else
|
|
9595
9598
|
this.gf.sql = 'SELECT_CFG_GRID_BY_USER';
|
|
9596
9599
|
this.gf.types = ['string'];
|
|
9597
|
-
this.gf.values = [this.grid_key];
|
|
9600
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
9598
9601
|
this.gf.fillCombo();
|
|
9599
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO')
|
|
9600
|
-
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) {
|
|
9601
9604
|
return;
|
|
9602
9605
|
}
|
|
9603
9606
|
}
|
|
@@ -9612,16 +9615,16 @@ class FHGridComponent {
|
|
|
9612
9615
|
}
|
|
9613
9616
|
save_cfg() {
|
|
9614
9617
|
if (this.gridApi)
|
|
9615
|
-
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()));
|
|
9616
9619
|
}
|
|
9617
9620
|
fe_cfg() {
|
|
9618
9621
|
if (this.gf != null)
|
|
9619
9622
|
if (this.gf.getObj() != null)
|
|
9620
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO') {
|
|
9621
|
-
this.gf.setByDescri(localStorage.getItem(this.grid_key + '_CFG_DEFAULT') || '');
|
|
9622
|
-
localStorage.setItem(this.grid_key + '_COLS', this.gf.getObj().COLS);
|
|
9623
|
-
// localStorage.setItem(this.
|
|
9624
|
-
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);
|
|
9625
9628
|
this.curr_config = this.gf.getValue();
|
|
9626
9629
|
}
|
|
9627
9630
|
this.onready_go();
|
|
@@ -9649,10 +9652,10 @@ class FHGridComponent {
|
|
|
9649
9652
|
this.pulisci_filtri();
|
|
9650
9653
|
this.fix_flt_temp = '';
|
|
9651
9654
|
this.doFill('', true, false);
|
|
9652
|
-
localStorage.removeItem(this.grid_key + '_FILTER_UP');
|
|
9655
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
|
|
9653
9656
|
return;
|
|
9654
9657
|
}
|
|
9655
|
-
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);
|
|
9656
9659
|
let arr = this.ric_libera.split(' ');
|
|
9657
9660
|
let arr_F = new Array();
|
|
9658
9661
|
for (let i = 0; i < arr.length; i++)
|
|
@@ -9738,7 +9741,7 @@ class FHGridComponent {
|
|
|
9738
9741
|
if (this.b_init) {
|
|
9739
9742
|
console.log('salvo f: ' + this.gridApi.getColumnState(), this.gridApi);
|
|
9740
9743
|
if (this.gridApi)
|
|
9741
|
-
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()));
|
|
9742
9745
|
}
|
|
9743
9746
|
}
|
|
9744
9747
|
onFilterModified() {
|
|
@@ -9749,7 +9752,7 @@ class FHGridComponent {
|
|
|
9749
9752
|
setTimeout(() => {
|
|
9750
9753
|
if (this.b_init) {
|
|
9751
9754
|
if (this.gridApi)
|
|
9752
|
-
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()));
|
|
9753
9756
|
}
|
|
9754
9757
|
}, 200);
|
|
9755
9758
|
}
|
|
@@ -9762,12 +9765,12 @@ class FHGridComponent {
|
|
|
9762
9765
|
return;
|
|
9763
9766
|
if (this.b_init) {
|
|
9764
9767
|
if (this.gridApi)
|
|
9765
|
-
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()));
|
|
9766
9769
|
// console.log('salvo s: '+this.gridApi.getSortModel());
|
|
9767
9770
|
/*
|
|
9768
9771
|
|
|
9769
9772
|
localStorage.setItem(
|
|
9770
|
-
this.
|
|
9773
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT",
|
|
9771
9774
|
JSON.stringify(this.gridApi.getSortModel())
|
|
9772
9775
|
);*/
|
|
9773
9776
|
}
|
|
@@ -9787,15 +9790,15 @@ class FHGridComponent {
|
|
|
9787
9790
|
if (selectedInGrid != null)
|
|
9788
9791
|
if (selectedInGrid[0] != null) {
|
|
9789
9792
|
// console.log((this.gridApi.getVerticalPixelRange()));
|
|
9790
|
-
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));
|
|
9791
9794
|
if (this.gridApi)
|
|
9792
|
-
localStorage.setItem(this.grid_key + '_POS_BAR', JSON.stringify(this.gridApi.getVerticalPixelRange()));
|
|
9793
|
-
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]));
|
|
9794
9797
|
// this.m_appService.getState().grid_obj=new Object();
|
|
9795
|
-
// 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];
|
|
9796
9799
|
}
|
|
9797
9800
|
this.sRow = $event.data;
|
|
9798
|
-
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));
|
|
9799
9802
|
this.clicked.emit($event.data);
|
|
9800
9803
|
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
9801
9804
|
if (iOS) {
|
|
@@ -9823,7 +9826,7 @@ class FHGridComponent {
|
|
|
9823
9826
|
return;
|
|
9824
9827
|
this.columndclicked.emit($event);
|
|
9825
9828
|
// console.log('onColumnEvent: ' + $event);
|
|
9826
|
-
// 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()));
|
|
9827
9830
|
}
|
|
9828
9831
|
fix_flt = '';
|
|
9829
9832
|
fix_flt_temp = '';
|
|
@@ -10884,10 +10887,10 @@ class FHGridJSONComponent {
|
|
|
10884
10887
|
return;
|
|
10885
10888
|
this.b_ensure = true;
|
|
10886
10889
|
try {
|
|
10887
|
-
if (localStorage.getItem(this.grid_key + '_POS') != null &&
|
|
10890
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null &&
|
|
10888
10891
|
this.gridOptions.api != null) {
|
|
10889
|
-
this.gridOptions.api.ensureIndexVisible(parseInt(localStorage.getItem(this.grid_key + '_POS') || '0'));
|
|
10890
|
-
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');
|
|
10891
10894
|
}
|
|
10892
10895
|
}
|
|
10893
10896
|
catch (e) {
|
|
@@ -10900,10 +10903,10 @@ class FHGridJSONComponent {
|
|
|
10900
10903
|
setTimeout(() => {
|
|
10901
10904
|
if (this.toggle_mantieni)
|
|
10902
10905
|
if (this.toggle_mantieni.checked) {
|
|
10903
|
-
localStorage.setItem(this.grid_key + '_MANTIENI', 'SI');
|
|
10906
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'SI');
|
|
10904
10907
|
}
|
|
10905
10908
|
else {
|
|
10906
|
-
localStorage.setItem(this.grid_key + '_MANTIENI', 'NO');
|
|
10909
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'NO');
|
|
10907
10910
|
}
|
|
10908
10911
|
}, 100);
|
|
10909
10912
|
}
|
|
@@ -10919,22 +10922,22 @@ class FHGridJSONComponent {
|
|
|
10919
10922
|
this.curr_config = this.gf.getValue();
|
|
10920
10923
|
if (this.curr_config == '-1')
|
|
10921
10924
|
return;
|
|
10922
|
-
localStorage.removeItem(this.grid_key + '_COLS');
|
|
10923
|
-
localStorage.removeItem(this.grid_key + '_SORT');
|
|
10924
|
-
localStorage.removeItem(this.grid_key + '_FILTER');
|
|
10925
|
-
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');
|
|
10926
10929
|
if (this.gf.getObj().COL != null)
|
|
10927
10930
|
if (this.gf.getObj().COL != '')
|
|
10928
|
-
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);
|
|
10929
10932
|
if (this.gf.getObj().SORT != null)
|
|
10930
10933
|
if (this.gf.getObj().SORT != '')
|
|
10931
|
-
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);
|
|
10932
10935
|
if (this.gf.getObj().FILTER != null)
|
|
10933
10936
|
if (this.gf.getObj().FILTER != '')
|
|
10934
|
-
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);
|
|
10935
10938
|
if (this.gf.getDescri() != null)
|
|
10936
10939
|
if (this.gf.getDescri() != '-1')
|
|
10937
|
-
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() || '');
|
|
10938
10941
|
this.curr_config = this.gf.getValue();
|
|
10939
10942
|
}
|
|
10940
10943
|
this.res_columns(true);
|
|
@@ -10962,16 +10965,16 @@ class FHGridJSONComponent {
|
|
|
10962
10965
|
let p_col = '';
|
|
10963
10966
|
let p_sort = '';
|
|
10964
10967
|
let p_filter = '';
|
|
10965
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null)
|
|
10966
|
-
p_col = localStorage.getItem(this.grid_key + '_COLS');
|
|
10967
|
-
if (localStorage.getItem(this.grid_key + '_SORT') != null)
|
|
10968
|
-
p_sort = localStorage.getItem(this.grid_key + '_SORT');
|
|
10969
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null)
|
|
10970
|
-
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');
|
|
10971
10974
|
p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
|
|
10972
10975
|
p.values = [
|
|
10973
10976
|
dtv || '',
|
|
10974
|
-
this.grid_key,
|
|
10977
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key,
|
|
10975
10978
|
p_col,
|
|
10976
10979
|
p_sort,
|
|
10977
10980
|
p_filter,
|
|
@@ -10985,7 +10988,7 @@ class FHGridJSONComponent {
|
|
|
10985
10988
|
this._toast.info('Configurazione salvata');
|
|
10986
10989
|
if (this.gf) {
|
|
10987
10990
|
this.gf.types = ['string'];
|
|
10988
|
-
this.gf.values = [this.grid_key];
|
|
10991
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
10989
10992
|
this.gf.fillCombo();
|
|
10990
10993
|
}
|
|
10991
10994
|
}
|
|
@@ -11016,12 +11019,12 @@ class FHGridJSONComponent {
|
|
|
11016
11019
|
let p_col = '';
|
|
11017
11020
|
let p_sort = '';
|
|
11018
11021
|
let p_filter = '';
|
|
11019
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null)
|
|
11020
|
-
p_col = localStorage.getItem(this.grid_key + '_COLS');
|
|
11021
|
-
if (localStorage.getItem(this.grid_key + '_SORT') != null)
|
|
11022
|
-
p_sort = localStorage.getItem(this.grid_key + '_SORT');
|
|
11023
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null)
|
|
11024
|
-
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');
|
|
11025
11028
|
p.types = [
|
|
11026
11029
|
'string',
|
|
11027
11030
|
'string',
|
|
@@ -11032,7 +11035,7 @@ class FHGridJSONComponent {
|
|
|
11032
11035
|
];
|
|
11033
11036
|
p.values = [
|
|
11034
11037
|
result,
|
|
11035
|
-
this.grid_key,
|
|
11038
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key,
|
|
11036
11039
|
p_col,
|
|
11037
11040
|
p_sort,
|
|
11038
11041
|
p_filter,
|
|
@@ -11047,7 +11050,7 @@ class FHGridJSONComponent {
|
|
|
11047
11050
|
ok_op = true;
|
|
11048
11051
|
if (this.gf) {
|
|
11049
11052
|
this.gf.types = ['string'];
|
|
11050
|
-
this.gf.values = [this.grid_key];
|
|
11053
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
11051
11054
|
this.gf.fillCombo();
|
|
11052
11055
|
}
|
|
11053
11056
|
}
|
|
@@ -11271,7 +11274,7 @@ class FHGridJSONComponent {
|
|
|
11271
11274
|
});
|
|
11272
11275
|
}
|
|
11273
11276
|
pulisci_filtri(resetr = true) {
|
|
11274
|
-
localStorage.removeItem(this.grid_key + '_FILTER');
|
|
11277
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
11275
11278
|
if (resetr)
|
|
11276
11279
|
this.ric_libera = '';
|
|
11277
11280
|
this.fix_flt_temp = '';
|
|
@@ -11430,13 +11433,13 @@ class FHGridJSONComponent {
|
|
|
11430
11433
|
this.ckk_ed = true;
|
|
11431
11434
|
if (this.toggle_mantieni != null) {
|
|
11432
11435
|
this.toggle_mantieni.checked = true;
|
|
11433
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != null)
|
|
11434
|
-
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') {
|
|
11435
11438
|
this.toggle_mantieni.checked = false;
|
|
11436
11439
|
}
|
|
11437
11440
|
}
|
|
11438
11441
|
this.res_columns();
|
|
11439
|
-
if (localStorage.getItem(this.grid_key + '_POS') != null)
|
|
11442
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null)
|
|
11440
11443
|
this.b_restored = true;
|
|
11441
11444
|
if (this.init_fill) {
|
|
11442
11445
|
setTimeout(() => {
|
|
@@ -11449,14 +11452,14 @@ class FHGridJSONComponent {
|
|
|
11449
11452
|
let b_rip = false;
|
|
11450
11453
|
if (this.toggle_mantieni != null)
|
|
11451
11454
|
b_mantieni_ck = this.toggle_mantieni.checked;
|
|
11452
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null &&
|
|
11455
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != null &&
|
|
11453
11456
|
(b_mantieni_ck || forza))
|
|
11454
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != '') {
|
|
11457
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != '') {
|
|
11455
11458
|
b_rip = true;
|
|
11456
11459
|
try {
|
|
11457
11460
|
if (this.gridOptions)
|
|
11458
11461
|
if (this.gridOptions.columnApi)
|
|
11459
|
-
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') || '{}'));
|
|
11460
11463
|
}
|
|
11461
11464
|
catch (eer) {
|
|
11462
11465
|
console.log(eer);
|
|
@@ -11468,13 +11471,13 @@ class FHGridJSONComponent {
|
|
|
11468
11471
|
catch (eer) {
|
|
11469
11472
|
console.log(eer);
|
|
11470
11473
|
}
|
|
11471
|
-
if (localStorage.getItem(this.grid_key + '_SORT') != null &&
|
|
11474
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT') != null &&
|
|
11472
11475
|
(b_mantieni_ck || forza))
|
|
11473
|
-
if (localStorage.getItem(this.grid_key + '_SORT') != '') {
|
|
11474
|
-
// console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
|
|
11475
|
-
// 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'));
|
|
11476
11479
|
try {
|
|
11477
|
-
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') || '{}'));
|
|
11478
11481
|
}
|
|
11479
11482
|
catch (eer) {
|
|
11480
11483
|
console.log(eer);
|
|
@@ -11486,13 +11489,13 @@ class FHGridJSONComponent {
|
|
|
11486
11489
|
catch (eer) {
|
|
11487
11490
|
console.log(eer);
|
|
11488
11491
|
}
|
|
11489
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
|
|
11492
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null &&
|
|
11490
11493
|
(b_mantieni_ck || forza))
|
|
11491
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
|
|
11492
|
-
// console.log(localStorage.getItem(this.grid_key+'_FILTER'));
|
|
11493
|
-
// 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'));
|
|
11494
11497
|
try {
|
|
11495
|
-
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') || '{}'));
|
|
11496
11499
|
}
|
|
11497
11500
|
catch (eer) {
|
|
11498
11501
|
console.log(eer);
|
|
@@ -11541,10 +11544,10 @@ class FHGridJSONComponent {
|
|
|
11541
11544
|
if (this.gf != null && this.show_buttons) {
|
|
11542
11545
|
this.gf.sql = 'SELECT_CFG_GRID';
|
|
11543
11546
|
this.gf.types = ['string'];
|
|
11544
|
-
this.gf.values = [this.grid_key];
|
|
11547
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
11545
11548
|
this.gf.fillCombo();
|
|
11546
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO')
|
|
11547
|
-
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) {
|
|
11548
11551
|
return;
|
|
11549
11552
|
}
|
|
11550
11553
|
}
|
|
@@ -11554,16 +11557,16 @@ class FHGridJSONComponent {
|
|
|
11554
11557
|
}
|
|
11555
11558
|
save_cfg() {
|
|
11556
11559
|
if (this.gridOptions.columnApi)
|
|
11557
|
-
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()));
|
|
11558
11561
|
}
|
|
11559
11562
|
fe_cfg() {
|
|
11560
11563
|
if (this.gf != null)
|
|
11561
11564
|
if (this.gf.getObj() != null)
|
|
11562
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO') {
|
|
11563
|
-
this.gf.setByDescri(localStorage.getItem(this.grid_key + '_CFG_DEFAULT') || '');
|
|
11564
|
-
localStorage.setItem(this.grid_key + '_COL', this.gf.getObj().COLS);
|
|
11565
|
-
localStorage.setItem(this.grid_key + '_SORT', this.gf.getObj().SORT);
|
|
11566
|
-
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);
|
|
11567
11570
|
this.curr_config = this.gf.getValue();
|
|
11568
11571
|
}
|
|
11569
11572
|
this.onready_go();
|
|
@@ -11657,16 +11660,16 @@ class FHGridJSONComponent {
|
|
|
11657
11660
|
if (this.b_init) {
|
|
11658
11661
|
// console.log('salvo f: '+JSON.stringify(this.gridOptions.columnApi.getColumnState()));
|
|
11659
11662
|
if (this.gridOptions.columnApi)
|
|
11660
|
-
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()));
|
|
11661
11664
|
}
|
|
11662
11665
|
}
|
|
11663
11666
|
onAfterFilterChanged() {
|
|
11664
11667
|
// console.log('afterFilterChanged');
|
|
11665
|
-
localStorage.removeItem(this.grid_key + '_POS');
|
|
11668
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS');
|
|
11666
11669
|
if (this.b_init) {
|
|
11667
11670
|
// console.log('salvo f: '+JSON.stringify(this.gridOptions.api.getFilterModel()));
|
|
11668
11671
|
if (this.gridOptions.api)
|
|
11669
|
-
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()));
|
|
11670
11673
|
}
|
|
11671
11674
|
}
|
|
11672
11675
|
onFilterModified() {
|
|
@@ -11674,7 +11677,7 @@ class FHGridJSONComponent {
|
|
|
11674
11677
|
if (this.b_init) {
|
|
11675
11678
|
//console.log('salvo f: '+JSON.stringify(this.gridOptions.api.getFilterModel()));
|
|
11676
11679
|
if (this.gridOptions.api)
|
|
11677
|
-
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()));
|
|
11678
11681
|
}
|
|
11679
11682
|
}
|
|
11680
11683
|
onBeforeSortChanged() {
|
|
@@ -11682,7 +11685,7 @@ class FHGridJSONComponent {
|
|
|
11682
11685
|
}
|
|
11683
11686
|
onAfterSortChanged() {
|
|
11684
11687
|
if (this.b_init) {
|
|
11685
|
-
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()));
|
|
11686
11689
|
}
|
|
11687
11690
|
}
|
|
11688
11691
|
onVirtualRowRemoved($event) {
|
|
@@ -11698,12 +11701,12 @@ class FHGridJSONComponent {
|
|
|
11698
11701
|
if (selectedInGrid != null)
|
|
11699
11702
|
if (selectedInGrid[0] != null) {
|
|
11700
11703
|
// console.log((this.gridOptions.api.getVerticalPixelRange()));
|
|
11701
|
-
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));
|
|
11702
11705
|
if (this.gridOptions.api)
|
|
11703
|
-
localStorage.setItem(this.grid_key + '_POS_BAR', JSON.stringify(this.gridOptions.api.getVerticalPixelRange()));
|
|
11704
|
-
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]));
|
|
11705
11708
|
// this.m_appService.getState().grid_obj=new Object();
|
|
11706
|
-
// 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];
|
|
11707
11710
|
}
|
|
11708
11711
|
this.sRow = $event.data;
|
|
11709
11712
|
this.clicked.emit($event.data);
|
|
@@ -11733,7 +11736,7 @@ class FHGridJSONComponent {
|
|
|
11733
11736
|
onColumnEvent($event) {
|
|
11734
11737
|
this.columndclicked.emit($event);
|
|
11735
11738
|
//console.log('onColumnEvent: ' + $event);
|
|
11736
|
-
// 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()));
|
|
11737
11740
|
}
|
|
11738
11741
|
fix_flt = '';
|
|
11739
11742
|
fix_flt_temp = '';
|
|
@@ -21407,7 +21410,7 @@ class fh_win_ask_number {
|
|
|
21407
21410
|
|
|
21408
21411
|
</mat-dialog-content>
|
|
21409
21412
|
<mat-dialog-actions>
|
|
21410
|
-
<button mat-flat-button color="primary" (click)="do_check()"
|
|
21413
|
+
<button mat-flat-button color="primary" (click)="do_check()"> OK </button
|
|
21411
21414
|
> <button
|
|
21412
21415
|
mat-flat-button
|
|
21413
21416
|
color="warn"
|
|
@@ -21457,7 +21460,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
21457
21460
|
|
|
21458
21461
|
</mat-dialog-content>
|
|
21459
21462
|
<mat-dialog-actions>
|
|
21460
|
-
<button mat-flat-button color="primary" (click)="do_check()"
|
|
21463
|
+
<button mat-flat-button color="primary" (click)="do_check()"> OK </button
|
|
21461
21464
|
> <button
|
|
21462
21465
|
mat-flat-button
|
|
21463
21466
|
color="warn"
|
|
@@ -21820,7 +21823,7 @@ class fh_win_auto_complete {
|
|
|
21820
21823
|
fxLayout="row"
|
|
21821
21824
|
fxLayoutAlign="center center"
|
|
21822
21825
|
>
|
|
21823
|
-
<button mat-flat-button color="primary" (click)="ok()"
|
|
21826
|
+
<button mat-flat-button color="primary" (click)="ok()"> OK </button
|
|
21824
21827
|
>
|
|
21825
21828
|
<button mat-flat-button color="warn" (click)="close()">{{'ANNULLA' | translate}}</button>
|
|
21826
21829
|
</mat-dialog-actions>
|
|
@@ -21880,7 +21883,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
21880
21883
|
fxLayout="row"
|
|
21881
21884
|
fxLayoutAlign="center center"
|
|
21882
21885
|
>
|
|
21883
|
-
<button mat-flat-button color="primary" (click)="ok()"
|
|
21886
|
+
<button mat-flat-button color="primary" (click)="ok()"> OK </button
|
|
21884
21887
|
>
|
|
21885
21888
|
<button mat-flat-button color="warn" (click)="close()">{{'ANNULLA' | translate}}</button>
|
|
21886
21889
|
</mat-dialog-actions>
|
|
@@ -23621,7 +23624,7 @@ class fh_win_time_slider {
|
|
|
23621
23624
|
</mat-dialog-content>
|
|
23622
23625
|
|
|
23623
23626
|
<mat-dialog-actions>
|
|
23624
|
-
<button mat-flat-button color="primary" (click)="ok()"
|
|
23627
|
+
<button mat-flat-button color="primary" (click)="ok()"> OK </button>
|
|
23625
23628
|
<button
|
|
23626
23629
|
mat-flat-button
|
|
23627
23630
|
style="background-color: #F5F5F5"
|
|
@@ -23703,7 +23706,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
23703
23706
|
</mat-dialog-content>
|
|
23704
23707
|
|
|
23705
23708
|
<mat-dialog-actions>
|
|
23706
|
-
<button mat-flat-button color="primary" (click)="ok()"
|
|
23709
|
+
<button mat-flat-button color="primary" (click)="ok()"> OK </button>
|
|
23707
23710
|
<button
|
|
23708
23711
|
mat-flat-button
|
|
23709
23712
|
style="background-color: #F5F5F5"
|
|
@@ -26423,10 +26426,10 @@ class FHGridInternalComponent {
|
|
|
26423
26426
|
return;
|
|
26424
26427
|
this.b_ensure = true;
|
|
26425
26428
|
try {
|
|
26426
|
-
if (localStorage.getItem(this.grid_key + '_POS') != null) {
|
|
26429
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null) {
|
|
26427
26430
|
if (this.gridApi)
|
|
26428
|
-
this.gridApi.ensureIndexVisible(parseInt(localStorage.getItem(this.grid_key + '_POS') || '0'));
|
|
26429
|
-
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');
|
|
26430
26433
|
}
|
|
26431
26434
|
}
|
|
26432
26435
|
catch (e) {
|
|
@@ -26439,10 +26442,10 @@ class FHGridInternalComponent {
|
|
|
26439
26442
|
setTimeout(() => {
|
|
26440
26443
|
if (this.toggle_mantieni)
|
|
26441
26444
|
if (this.toggle_mantieni.checked) {
|
|
26442
|
-
localStorage.setItem(this.grid_key + '_MANTIENI', 'SI');
|
|
26445
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'SI');
|
|
26443
26446
|
}
|
|
26444
26447
|
else {
|
|
26445
|
-
localStorage.setItem(this.grid_key + '_MANTIENI', 'NO');
|
|
26448
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'NO');
|
|
26446
26449
|
}
|
|
26447
26450
|
}, 100);
|
|
26448
26451
|
}
|
|
@@ -26462,26 +26465,26 @@ class FHGridInternalComponent {
|
|
|
26462
26465
|
this.curr_config = this.gf.getValue();
|
|
26463
26466
|
if (this.curr_config == '-1')
|
|
26464
26467
|
return;
|
|
26465
|
-
localStorage.removeItem(this.grid_key + '_COLS');
|
|
26466
|
-
// localStorage.removeItem(this.
|
|
26467
|
-
localStorage.removeItem(this.grid_key + '_FILTER');
|
|
26468
|
-
localStorage.removeItem(this.grid_key + '_CFG_DEFAULT');
|
|
26469
|
-
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');
|
|
26470
26473
|
if (this.gf)
|
|
26471
26474
|
if (this.gf.getObj().COL != null)
|
|
26472
26475
|
if (this.gf.getObj().COL != '')
|
|
26473
|
-
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);
|
|
26474
26477
|
// if (this.gf.getObj().SORT != null)
|
|
26475
26478
|
// if (this.gf.getObj().SORT != "")
|
|
26476
|
-
// localStorage.setItem(this.
|
|
26479
|
+
// localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT", this.gf.getObj().SORT);
|
|
26477
26480
|
if (this.gf)
|
|
26478
26481
|
if (this.gf.getObj().FILTER != null)
|
|
26479
26482
|
if (this.gf.getObj().FILTER != '')
|
|
26480
|
-
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);
|
|
26481
26484
|
if (this.gf)
|
|
26482
26485
|
if (this.gf.getDescri() != null)
|
|
26483
26486
|
if (this.gf.getDescri() != '-1')
|
|
26484
|
-
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() || '');
|
|
26485
26488
|
if (this.gf)
|
|
26486
26489
|
this.curr_config = this.gf.getValue();
|
|
26487
26490
|
this.res_columns(true);
|
|
@@ -26507,7 +26510,7 @@ class FHGridInternalComponent {
|
|
|
26507
26510
|
p.sql = 'DELETE_CFG_GRID';
|
|
26508
26511
|
p.types = ['string', 'string'];
|
|
26509
26512
|
if (this.gf)
|
|
26510
|
-
p.values = [this.gf.getDescri(), this.grid_key];
|
|
26513
|
+
p.values = [this.gf.getDescri(), this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
26511
26514
|
let ok_op = false;
|
|
26512
26515
|
this._dataService.doQuery(p).subscribe((data) => {
|
|
26513
26516
|
let ok_op = false;
|
|
@@ -26516,7 +26519,7 @@ class FHGridInternalComponent {
|
|
|
26516
26519
|
this._toast.info('Configurazione eliminata');
|
|
26517
26520
|
if (this.gf) {
|
|
26518
26521
|
this.gf.types = ['string'];
|
|
26519
|
-
this.gf.values = [this.grid_key];
|
|
26522
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
26520
26523
|
this.gf.fillCombo();
|
|
26521
26524
|
}
|
|
26522
26525
|
this.curr_config = '-1';
|
|
@@ -26547,17 +26550,17 @@ class FHGridInternalComponent {
|
|
|
26547
26550
|
let p_col = '';
|
|
26548
26551
|
// let p_sort: string = "";
|
|
26549
26552
|
let p_filter = '';
|
|
26550
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null)
|
|
26551
|
-
p_col = localStorage.getItem(this.grid_key + '_COLS');
|
|
26552
|
-
// if (localStorage.getItem(this.
|
|
26553
|
-
// p_sort = localStorage.getItem(this.
|
|
26554
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null)
|
|
26555
|
-
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');
|
|
26556
26559
|
p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
|
|
26557
26560
|
if (this.gf)
|
|
26558
26561
|
p.values = [
|
|
26559
26562
|
this.gf.getDescri(),
|
|
26560
|
-
this.grid_key,
|
|
26563
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key,
|
|
26561
26564
|
p_col,
|
|
26562
26565
|
'',
|
|
26563
26566
|
p_filter,
|
|
@@ -26571,7 +26574,7 @@ class FHGridInternalComponent {
|
|
|
26571
26574
|
this._toast.info('Configurazione salvata');
|
|
26572
26575
|
if (this.gf) {
|
|
26573
26576
|
this.gf.types = ['string'];
|
|
26574
|
-
this.gf.values = [this.grid_key];
|
|
26577
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
26575
26578
|
this.gf.fillCombo();
|
|
26576
26579
|
}
|
|
26577
26580
|
this.curr_config = '-1';
|
|
@@ -26610,12 +26613,12 @@ class FHGridInternalComponent {
|
|
|
26610
26613
|
let p_col;
|
|
26611
26614
|
// let p_sort: string = "";
|
|
26612
26615
|
let p_filter;
|
|
26613
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null)
|
|
26614
|
-
p_col = localStorage.getItem(this.grid_key + '_COLS');
|
|
26615
|
-
// if (localStorage.getItem(this.
|
|
26616
|
-
// p_sort = localStorage.getItem(this.
|
|
26617
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null)
|
|
26618
|
-
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');
|
|
26619
26622
|
p.types = [
|
|
26620
26623
|
'string',
|
|
26621
26624
|
'string',
|
|
@@ -26626,7 +26629,7 @@ class FHGridInternalComponent {
|
|
|
26626
26629
|
];
|
|
26627
26630
|
p.values = [
|
|
26628
26631
|
result,
|
|
26629
|
-
this.grid_key,
|
|
26632
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key,
|
|
26630
26633
|
p_col,
|
|
26631
26634
|
'',
|
|
26632
26635
|
p_filter,
|
|
@@ -26641,7 +26644,7 @@ class FHGridInternalComponent {
|
|
|
26641
26644
|
ok_op = true;
|
|
26642
26645
|
if (this.gf) {
|
|
26643
26646
|
this.gf.types = ['string'];
|
|
26644
|
-
this.gf.values = [this.grid_key];
|
|
26647
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
26645
26648
|
this.gf.fillCombo();
|
|
26646
26649
|
}
|
|
26647
26650
|
}
|
|
@@ -27077,21 +27080,21 @@ class FHGridInternalComponent {
|
|
|
27077
27080
|
this.fill_end.emit();
|
|
27078
27081
|
this.check_width();
|
|
27079
27082
|
// console.log("end");
|
|
27080
|
-
// console.log(localStorage.getItem(this.grid_key+'_POS'));
|
|
27081
|
-
localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
|
|
27082
|
-
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)
|
|
27083
27086
|
if (this.gridOptions != null)
|
|
27084
27087
|
if (this.gridApi != null)
|
|
27085
27088
|
this.gridApi.forEachNode((node) => {
|
|
27086
27089
|
// console.log(node:any)
|
|
27087
27090
|
if (this.getRowId(node) ===
|
|
27088
|
-
localStorage.getItem(this.grid_key + '_POS2')) {
|
|
27091
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2')) {
|
|
27089
27092
|
node.setSelected(true);
|
|
27090
|
-
localStorage.removeItem(this.grid_key + '_POS2');
|
|
27091
|
-
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') !=
|
|
27092
27095
|
null)
|
|
27093
|
-
this.sRow = JSON.parse(localStorage.getItem(this.grid_key + '_LAST_ROW') || '{}');
|
|
27094
|
-
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');
|
|
27095
27098
|
}
|
|
27096
27099
|
});
|
|
27097
27100
|
let b_mantieni_ck = false;
|
|
@@ -27103,7 +27106,7 @@ class FHGridInternalComponent {
|
|
|
27103
27106
|
}
|
|
27104
27107
|
this.b_init1 = true;
|
|
27105
27108
|
this.ensure_visible();
|
|
27106
|
-
if (localStorage.getItem(this.grid_key + '_COLS') == null &&
|
|
27109
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') == null &&
|
|
27107
27110
|
this.autosize_at_ini)
|
|
27108
27111
|
setTimeout(() => {
|
|
27109
27112
|
this.set_init_size();
|
|
@@ -27153,21 +27156,21 @@ class FHGridInternalComponent {
|
|
|
27153
27156
|
this.fill_end.emit();
|
|
27154
27157
|
this.check_width();
|
|
27155
27158
|
// console.log("end");
|
|
27156
|
-
// console.log(localStorage.getItem(this.grid_key+'_POS'));
|
|
27157
|
-
localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
|
|
27158
|
-
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)
|
|
27159
27162
|
if (this.gridOptions != null)
|
|
27160
27163
|
if (this.gridApi != null)
|
|
27161
27164
|
this.gridApi.forEachNode((node) => {
|
|
27162
27165
|
// console.log(node:any)
|
|
27163
27166
|
if (this.getRowId(node) ===
|
|
27164
|
-
localStorage.getItem(this.grid_key + '_POS2')) {
|
|
27167
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2')) {
|
|
27165
27168
|
node.setSelected(true);
|
|
27166
|
-
localStorage.removeItem(this.grid_key + '_POS2');
|
|
27167
|
-
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') !=
|
|
27168
27171
|
null)
|
|
27169
|
-
this.sRow = JSON.parse(localStorage.getItem(this.grid_key + '_LAST_ROW') || '{}');
|
|
27170
|
-
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');
|
|
27171
27174
|
}
|
|
27172
27175
|
});
|
|
27173
27176
|
let b_mantieni_ck = false;
|
|
@@ -27179,33 +27182,33 @@ class FHGridInternalComponent {
|
|
|
27179
27182
|
}
|
|
27180
27183
|
this.b_init1 = true;
|
|
27181
27184
|
this.ensure_visible();
|
|
27182
|
-
/*if (localStorage.getItem(this.
|
|
27185
|
+
/*if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS')==null && this.first_ref) {
|
|
27183
27186
|
setTimeout(() => {
|
|
27184
27187
|
this.autoSizeAll();
|
|
27185
27188
|
}, 300);
|
|
27186
27189
|
this.first_ref = false;
|
|
27187
27190
|
|
|
27188
27191
|
|
|
27189
|
-
} else*/ if (localStorage.getItem(this.grid_key + '_COLS') == null &&
|
|
27192
|
+
} else*/ if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') == null &&
|
|
27190
27193
|
this.autosize_at_ini)
|
|
27191
27194
|
setTimeout(() => {
|
|
27192
27195
|
this.autoSizeAll();
|
|
27193
27196
|
}, 300);
|
|
27194
27197
|
//console.log('xxxxxxxxxxxxxxxxxxx');
|
|
27195
|
-
// console.log(this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
27196
|
-
//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)
|
|
27197
27200
|
/*
|
|
27198
27201
|
|
|
27199
27202
|
this.gridApi.forEachNode( (node:any) =>{
|
|
27200
27203
|
// select the node
|
|
27201
|
-
// console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
27202
|
-
if(node.rowIndex==parseInt(localStorage.getItem(this.grid_key+'_POS'))){
|
|
27203
|
-
// 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);
|
|
27204
27207
|
node.setSelected(true);
|
|
27205
27208
|
|
|
27206
27209
|
}}*/
|
|
27207
|
-
// if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
27208
|
-
//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);
|
|
27209
27212
|
// console.log(this.myData);
|
|
27210
27213
|
}
|
|
27211
27214
|
if (!ok_op) {
|
|
@@ -27294,14 +27297,14 @@ class FHGridInternalComponent {
|
|
|
27294
27297
|
innerWidth = 750;
|
|
27295
27298
|
size;
|
|
27296
27299
|
ngAfterViewInit() {
|
|
27297
|
-
if (this.grid_key == 'PRO_H')
|
|
27300
|
+
if (this.m_appService.COMPANY_KEY + '_' + this.grid_key == 'PRO_H')
|
|
27298
27301
|
this.no_pref = true;
|
|
27299
27302
|
setTimeout(() => {
|
|
27300
27303
|
if (this.end_point == null)
|
|
27301
27304
|
this.end_point =
|
|
27302
27305
|
this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
|
|
27303
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
|
|
27304
|
-
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');
|
|
27305
27308
|
this.onResize();
|
|
27306
27309
|
});
|
|
27307
27310
|
}
|
|
@@ -27418,12 +27421,12 @@ class FHGridInternalComponent {
|
|
|
27418
27421
|
}
|
|
27419
27422
|
last_riclib = false;
|
|
27420
27423
|
pulisci_filtri(resetr = true) {
|
|
27421
|
-
localStorage.removeItem(this.grid_key + '_FILTER');
|
|
27424
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
|
|
27422
27425
|
if (resetr) {
|
|
27423
27426
|
if (this.ric_libera != '' || this.last_riclib)
|
|
27424
27427
|
this.doFill('', true, false);
|
|
27425
27428
|
this.ric_libera = '';
|
|
27426
|
-
localStorage.removeItem(this.grid_key + '_FILTER_UP');
|
|
27429
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
|
|
27427
27430
|
}
|
|
27428
27431
|
this.fix_flt_temp = '';
|
|
27429
27432
|
if (this.gridApi)
|
|
@@ -27734,17 +27737,17 @@ class FHGridInternalComponent {
|
|
|
27734
27737
|
this.ckk_ed = true;
|
|
27735
27738
|
if (this.toggle_mantieni != null) {
|
|
27736
27739
|
this.toggle_mantieni.checked = true;
|
|
27737
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != null)
|
|
27738
|
-
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') {
|
|
27739
27742
|
this.toggle_mantieni.checked = false;
|
|
27740
27743
|
}
|
|
27741
27744
|
}
|
|
27742
27745
|
this.res_columns();
|
|
27743
|
-
if (localStorage.getItem(this.grid_key + '_POS') != null)
|
|
27746
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null)
|
|
27744
27747
|
this.b_restored = true;
|
|
27745
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
|
|
27746
|
-
if (localStorage.getItem(this.grid_key + '_FILTER_UP') != '') {
|
|
27747
|
-
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');
|
|
27748
27751
|
let arr = (this.ric_libera || '').split(' ');
|
|
27749
27752
|
let arr_F = new Array();
|
|
27750
27753
|
for (let i = 0; i < arr.length; i++)
|
|
@@ -27817,10 +27820,10 @@ class FHGridInternalComponent {
|
|
|
27817
27820
|
}
|
|
27818
27821
|
// this.createNewDatasource();
|
|
27819
27822
|
/*
|
|
27820
|
-
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)
|
|
27821
27824
|
{
|
|
27822
|
-
//console.log('setto pag: '+this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
|
|
27823
|
-
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']);
|
|
27824
27827
|
} */
|
|
27825
27828
|
}
|
|
27826
27829
|
set_init_size() {
|
|
@@ -27852,26 +27855,26 @@ class FHGridInternalComponent {
|
|
|
27852
27855
|
let b_rip = false;
|
|
27853
27856
|
if (this.toggle_mantieni != null)
|
|
27854
27857
|
b_mantieni_ck = this.toggle_mantieni.checked;
|
|
27855
|
-
if ((localStorage.getItem(this.grid_key + '_COLS') || '') == '') {
|
|
27858
|
+
if ((localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '') == '') {
|
|
27856
27859
|
this.set_init_size();
|
|
27857
27860
|
return;
|
|
27858
27861
|
}
|
|
27859
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != null &&
|
|
27862
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != null &&
|
|
27860
27863
|
(b_mantieni_ck || forza))
|
|
27861
|
-
if (localStorage.getItem(this.grid_key + '_COLS') != '') {
|
|
27864
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != '') {
|
|
27862
27865
|
b_rip = true;
|
|
27863
27866
|
try {
|
|
27864
|
-
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') || '[]');
|
|
27865
27868
|
let annulla = true;
|
|
27866
27869
|
for (let i = 0; i < a.length; i++) {
|
|
27867
27870
|
if (!a[i].hide)
|
|
27868
27871
|
annulla = false;
|
|
27869
27872
|
}
|
|
27870
27873
|
if (annulla)
|
|
27871
|
-
localStorage.getItem(this.grid_key + '_COLS');
|
|
27874
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
|
|
27872
27875
|
else {
|
|
27873
27876
|
if (this.gridApi) {
|
|
27874
|
-
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') || '[]');
|
|
27875
27878
|
// console.log('BEFORE ',this.gridApi.getColumnState())
|
|
27876
27879
|
this.gridApi.applyColumnState({
|
|
27877
27880
|
state: saved_state,
|
|
@@ -27892,15 +27895,15 @@ class FHGridInternalComponent {
|
|
|
27892
27895
|
console.log(eer);
|
|
27893
27896
|
}
|
|
27894
27897
|
if (
|
|
27895
|
-
localStorage.getItem(this.
|
|
27898
|
+
localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT") != null &&
|
|
27896
27899
|
(b_mantieni_ck || forza)
|
|
27897
27900
|
)
|
|
27898
|
-
if (localStorage.getItem(this.
|
|
27899
|
-
// console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
|
|
27900
|
-
// 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'));
|
|
27901
27904
|
try {
|
|
27902
27905
|
this.gridApi.setSortModel(
|
|
27903
|
-
JSON.parse(localStorage.getItem(this.
|
|
27906
|
+
JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT"))
|
|
27904
27907
|
);
|
|
27905
27908
|
} catch (eer) {
|
|
27906
27909
|
console.log(eer);
|
|
@@ -27911,12 +27914,12 @@ class FHGridInternalComponent {
|
|
|
27911
27914
|
} catch (eer) {
|
|
27912
27915
|
console.log(eer);
|
|
27913
27916
|
}*/
|
|
27914
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
|
|
27917
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null &&
|
|
27915
27918
|
(b_mantieni_ck || forza))
|
|
27916
|
-
if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
|
|
27919
|
+
if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != '') {
|
|
27917
27920
|
try {
|
|
27918
27921
|
if (this.gridApi)
|
|
27919
|
-
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') || ''));
|
|
27920
27923
|
}
|
|
27921
27924
|
catch (eer) {
|
|
27922
27925
|
console.log(eer);
|
|
@@ -27965,10 +27968,10 @@ class FHGridInternalComponent {
|
|
|
27965
27968
|
else
|
|
27966
27969
|
this.gf.sql = 'SELECT_CFG_GRID_BY_USER';
|
|
27967
27970
|
this.gf.types = ['string'];
|
|
27968
|
-
this.gf.values = [this.grid_key];
|
|
27971
|
+
this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
|
|
27969
27972
|
this.gf.fillCombo();
|
|
27970
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO')
|
|
27971
|
-
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) {
|
|
27972
27975
|
return;
|
|
27973
27976
|
}
|
|
27974
27977
|
}
|
|
@@ -27983,16 +27986,16 @@ class FHGridInternalComponent {
|
|
|
27983
27986
|
}
|
|
27984
27987
|
save_cfg() {
|
|
27985
27988
|
if (this.gridApi)
|
|
27986
|
-
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()));
|
|
27987
27990
|
}
|
|
27988
27991
|
fe_cfg() {
|
|
27989
27992
|
if (this.gf != null)
|
|
27990
27993
|
if (this.gf.getObj() != null)
|
|
27991
|
-
if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO') {
|
|
27992
|
-
this.gf.setByDescri(localStorage.getItem(this.grid_key + '_CFG_DEFAULT') || '');
|
|
27993
|
-
localStorage.setItem(this.grid_key + '_COLS', this.gf.getObj().COLS);
|
|
27994
|
-
// localStorage.setItem(this.
|
|
27995
|
-
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);
|
|
27996
27999
|
this.curr_config = this.gf.getValue();
|
|
27997
28000
|
}
|
|
27998
28001
|
this.onready_go();
|
|
@@ -28023,10 +28026,10 @@ class FHGridInternalComponent {
|
|
|
28023
28026
|
this.pulisci_filtri();
|
|
28024
28027
|
this.fix_flt_temp = '';
|
|
28025
28028
|
this.doFill('', true, false);
|
|
28026
|
-
localStorage.removeItem(this.grid_key + '_FILTER_UP');
|
|
28029
|
+
localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
|
|
28027
28030
|
return;
|
|
28028
28031
|
}
|
|
28029
|
-
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 || '');
|
|
28030
28033
|
let arr = (this.ric_libera || '').split(' ');
|
|
28031
28034
|
let arr_F = new Array();
|
|
28032
28035
|
for (let i = 0; i < arr.length; i++)
|
|
@@ -28124,7 +28127,7 @@ class FHGridInternalComponent {
|
|
|
28124
28127
|
// console.log('oncolumnEverythingChanged');
|
|
28125
28128
|
if (this.b_init) {
|
|
28126
28129
|
if (this.gridApi)
|
|
28127
|
-
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()));
|
|
28128
28131
|
}
|
|
28129
28132
|
}
|
|
28130
28133
|
onFilterModified() {
|
|
@@ -28133,7 +28136,7 @@ class FHGridInternalComponent {
|
|
|
28133
28136
|
setTimeout(() => {
|
|
28134
28137
|
if (this.b_init) {
|
|
28135
28138
|
if (this.gridApi)
|
|
28136
|
-
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() || '{}'));
|
|
28137
28140
|
}
|
|
28138
28141
|
}, 200);
|
|
28139
28142
|
}
|
|
@@ -28146,12 +28149,12 @@ class FHGridInternalComponent {
|
|
|
28146
28149
|
return;
|
|
28147
28150
|
if (this.b_init) {
|
|
28148
28151
|
if (this.gridApi)
|
|
28149
|
-
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()));
|
|
28150
28153
|
// console.log('salvo s: '+this.gridApi.getSortModel());
|
|
28151
28154
|
/*
|
|
28152
28155
|
|
|
28153
28156
|
localStorage.setItem(
|
|
28154
|
-
this.
|
|
28157
|
+
this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT",
|
|
28155
28158
|
JSON.stringify(this.gridApi.getSortModel())
|
|
28156
28159
|
);*/
|
|
28157
28160
|
}
|
|
@@ -28169,15 +28172,15 @@ class FHGridInternalComponent {
|
|
|
28169
28172
|
if (selectedInGrid != null)
|
|
28170
28173
|
if (selectedInGrid[0] != null) {
|
|
28171
28174
|
// console.log((this.gridApi.getVerticalPixelRange()));
|
|
28172
|
-
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));
|
|
28173
28176
|
if (this.gridApi)
|
|
28174
|
-
localStorage.setItem(this.grid_key + '_POS_BAR', JSON.stringify(this.gridApi.getVerticalPixelRange()));
|
|
28175
|
-
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]));
|
|
28176
28179
|
// this.m_appService.getState().grid_obj=new Object();
|
|
28177
|
-
// 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];
|
|
28178
28181
|
}
|
|
28179
28182
|
this.sRow = $event.data;
|
|
28180
|
-
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));
|
|
28181
28184
|
this.clicked.emit($event.data);
|
|
28182
28185
|
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
28183
28186
|
if (iOS) {
|
|
@@ -28205,7 +28208,7 @@ class FHGridInternalComponent {
|
|
|
28205
28208
|
onColumnEvent($event) {
|
|
28206
28209
|
this.columndclicked.emit($event);
|
|
28207
28210
|
// console.log('onColumnEvent: ' + $event);
|
|
28208
|
-
// 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()));
|
|
28209
28212
|
}
|
|
28210
28213
|
fix_flt = '';
|
|
28211
28214
|
fix_flt_temp = '';
|