@fluxhub/fluxhub-lib 19.0.29 → 19.0.30

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.
@@ -2464,7 +2464,7 @@ const noop$8 = () => { };
2464
2464
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b = {
2465
2465
  provide: NG_VALUE_ACCESSOR,
2466
2466
  useExisting: forwardRef(() => FHAutoCompleteComponent),
2467
- multi: true
2467
+ multi: true,
2468
2468
  };
2469
2469
  class FHAutoCompleteComponent {
2470
2470
  _dataService;
@@ -2543,57 +2543,46 @@ class FHAutoCompleteComponent {
2543
2543
  setTimeout(() => {
2544
2544
  if (!this.only_from_list) {
2545
2545
  this.onChange(this.sItem);
2546
- this
2547
- .change
2548
- .emit(this.sItem);
2546
+ this.change.emit(this.sItem);
2549
2547
  }
2550
2548
  else {
2551
2549
  this.onChange(this.getValue());
2552
- this
2553
- .change
2554
- .emit(this.getValue());
2550
+ this.change.emit(this.getValue());
2555
2551
  setTimeout(() => {
2556
2552
  this.sItem = this.getDescri();
2557
2553
  }, 500);
2558
2554
  }
2559
2555
  });
2560
- this
2561
- .focusout
2562
- .emit();
2556
+ this.focusout.emit();
2563
2557
  }
2564
2558
  onChange_up(e) {
2565
2559
  // console.log('onChange()');
2566
2560
  this.searchItemsFiltered = [];
2567
2561
  if (this.sItem != null) {
2568
2562
  if (this.sItem != '') {
2569
- let ps = this
2570
- .sItem
2571
- .toLowerCase();
2563
+ let ps = this.sItem.toLowerCase();
2572
2564
  if (ps.length < this.min_length_search)
2573
2565
  return;
2574
2566
  if (this.myData != null)
2575
2567
  for (let i = 0; i < this.myData.length; i++) {
2576
2568
  if (this.myData[i].descrizione_valore != null) {
2577
- if (this.myData[i].descrizione_valore.toLowerCase().indexOf(ps) != -1) {
2578
- this
2579
- .searchItemsFiltered
2580
- .push(this.myData[i]);
2569
+ if (this.myData[i].descrizione_valore.toLowerCase().indexOf(ps) !=
2570
+ -1) {
2571
+ this.searchItemsFiltered.push(this.myData[i]);
2581
2572
  }
2582
2573
  }
2583
- if (ps.length < 4 && this.searchItemsFiltered.length == this.max_item_show) {
2574
+ if (ps.length < 4 &&
2575
+ this.searchItemsFiltered.length == this.max_item_show) {
2584
2576
  break;
2585
2577
  }
2586
2578
  }
2587
2579
  }
2588
2580
  else {
2589
- // console.log('onChange()1');
2590
2581
  if (this.min_length_search > 0)
2591
2582
  return;
2592
2583
  if (this.myData != null)
2593
2584
  for (let i = 0; i < this.myData.length; i++) {
2594
- this
2595
- .searchItemsFiltered
2596
- .push(this.myData[i]);
2585
+ this.searchItemsFiltered.push(this.myData[i]);
2597
2586
  if (i == this.max_item_show) {
2598
2587
  break;
2599
2588
  }
@@ -2602,11 +2591,8 @@ class FHAutoCompleteComponent {
2602
2591
  }
2603
2592
  }
2604
2593
  translateValue(val) {
2605
- // console.log("🚀 ~ file: fh-autocomplete.ts:196 ~ translateValue ~
2606
- // translateValue:", val)
2607
- if (!val)
2608
- return '';
2609
- if (val == '')
2594
+ console.log('🚀 ~ file: fh-autocomplete.ts:196 ~ translateValue ~ translateValue:', val);
2595
+ if ((val || '') == '')
2610
2596
  return '';
2611
2597
  if (!this.disableTranslation && this.only_from_list)
2612
2598
  return this._tsr.instant(val);
@@ -2615,18 +2601,14 @@ class FHAutoCompleteComponent {
2615
2601
  }
2616
2602
  add_option(o) {
2617
2603
  let b_found = false;
2618
- this
2619
- .myData
2620
- .map((v) => {
2604
+ this.myData.map((v) => {
2621
2605
  o.descrizione_valore = this.translateValue(o.descrizione_valore);
2622
2606
  if (v.descrizione_valore == o.descrizione_valore || v.valore == o.valore)
2623
2607
  b_found = true;
2624
2608
  });
2625
2609
  if (!b_found) {
2626
2610
  // console.log('Inserisco ',o);
2627
- this
2628
- .myData
2629
- .push(o);
2611
+ this.myData.push(o);
2630
2612
  } //else console.log('Esiste già ',o);
2631
2613
  }
2632
2614
  selectedSearchItem(event) {
@@ -2636,27 +2618,23 @@ class FHAutoCompleteComponent {
2636
2618
  }
2637
2619
  ch($event) {
2638
2620
  const value = this.getValue();
2639
- this
2640
- .selchange
2641
- .emit({
2621
+ this.selchange.emit({
2642
2622
  event: $event,
2643
2623
  valore: this.getValue(),
2644
- descrizione_valore: this.sItem
2624
+ descrizione_valore: this.sItem,
2645
2625
  });
2646
2626
  if (!this.only_from_list) {
2647
2627
  this.onChange(this.sItem);
2648
- this
2649
- .change
2650
- .emit(this.sItem);
2628
+ this.change.emit(this.sItem);
2651
2629
  }
2652
2630
  else {
2653
2631
  this.onChange(this.getValue());
2654
- this
2655
- .change
2656
- .emit(this.getValue());
2632
+ this.change.emit(this.getValue());
2657
2633
  }
2658
2634
  }
2659
- myListFormatter(data) { return data['descrizione_valore']; }
2635
+ myListFormatter(data) {
2636
+ return data['descrizione_valore'];
2637
+ }
2660
2638
  resetValue(b_res_valdef = true) {
2661
2639
  //console.log(">>>resetValue<<<");
2662
2640
  this.selval = '';
@@ -2703,26 +2681,18 @@ class FHAutoCompleteComponent {
2703
2681
  p.types = this.types;
2704
2682
  p.values = this.values;
2705
2683
  if (this.db_type == '1') {
2706
- this
2707
- ._dataService
2708
- .doQuery(p)
2709
- .subscribe((data) => {
2684
+ this._dataService.doQuery(p).subscribe((data) => {
2710
2685
  if (data != null) {
2711
2686
  if (data.result_msg == 'OK') {
2712
2687
  this.resetD(data.result_data);
2713
2688
  this.is_loaded = true;
2714
- this
2715
- .fillend
2716
- .emit();
2689
+ this.fillend.emit();
2717
2690
  }
2718
2691
  }
2719
2692
  });
2720
2693
  }
2721
2694
  if (this.db_type == '2') {
2722
- this
2723
- ._dataService_odbc
2724
- .doQuery(p)
2725
- .subscribe((data) => {
2695
+ this._dataService_odbc.doQuery(p).subscribe((data) => {
2726
2696
  let ok_op = false;
2727
2697
  if (data != null) {
2728
2698
  if (data.result_msg == 'OK') {
@@ -2736,9 +2706,7 @@ class FHAutoCompleteComponent {
2736
2706
  }
2737
2707
  this.resetD(data.result_data);
2738
2708
  this.is_loaded = true;
2739
- this
2740
- .fillend
2741
- .emit();
2709
+ this.fillend.emit();
2742
2710
  ok_op = true;
2743
2711
  }
2744
2712
  }
@@ -2762,7 +2730,8 @@ class FHAutoCompleteComponent {
2762
2730
  return;
2763
2731
  }
2764
2732
  this.setByValue(this.valDef);
2765
- if ((this.getValue() == null || this.getValue() == '') && this.valDef != '') {
2733
+ if ((this.getValue() == null || this.getValue() == '') &&
2734
+ this.valDef != '') {
2766
2735
  this.setByDescri(this.valDef);
2767
2736
  }
2768
2737
  }
@@ -2854,7 +2823,8 @@ class FHAutoCompleteComponent {
2854
2823
  }
2855
2824
  getObj() {
2856
2825
  for (let x in this.myData) {
2857
- if (this.myData[x]['descrizione_valore'] == this.selval || this.myData[x]['valore'] == this.selval) {
2826
+ if (this.myData[x]['descrizione_valore'] == this.selval ||
2827
+ this.myData[x]['valore'] == this.selval) {
2858
2828
  return this.myData[x];
2859
2829
  }
2860
2830
  }
@@ -2880,9 +2850,7 @@ class FHAutoCompleteComponent {
2880
2850
  var av = a[i].split('|');
2881
2851
  o.valore = av[1];
2882
2852
  o.descrizione_valore = this.translateValue(av[0]);
2883
- this
2884
- .myData
2885
- .push(o);
2853
+ this.myData.push(o);
2886
2854
  }
2887
2855
  this.table_hidden = false;
2888
2856
  this.is_loaded = true;
@@ -2905,10 +2873,9 @@ class FHAutoCompleteComponent {
2905
2873
  this.fillCombo();
2906
2874
  }, this.load_delay);
2907
2875
  }
2908
- else { }
2909
- this
2910
- .initend
2911
- .emit();
2876
+ else {
2877
+ }
2878
+ this.initend.emit();
2912
2879
  setTimeout(() => {
2913
2880
  this.is_loaded = true;
2914
2881
  }, 1000);
@@ -2998,7 +2965,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
2998
2965
  MatFormFieldModule,
2999
2966
  MatAutocompleteModule,
3000
2967
  FormsModule,
3001
- MatInputModule
2968
+ MatInputModule,
3002
2969
  ], providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b], template: `
3003
2970
  <div
3004
2971
  style="min-height:45px"
@@ -8669,10 +8636,10 @@ class FHGridComponent {
8669
8636
  return;
8670
8637
  this.b_ensure = true;
8671
8638
  try {
8672
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null) {
8639
+ if (localStorage.getItem(this.grid_key + '_POS') != null) {
8673
8640
  if (this.gridApi)
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');
8641
+ this.gridApi.ensureIndexVisible(parseInt(localStorage.getItem(this.grid_key + '_POS') || '0'));
8642
+ localStorage.removeItem(this.grid_key + '_POS');
8676
8643
  }
8677
8644
  }
8678
8645
  catch (e) {
@@ -8685,10 +8652,10 @@ class FHGridComponent {
8685
8652
  setTimeout(() => {
8686
8653
  if (this.toggle_mantieni)
8687
8654
  if (this.toggle_mantieni.checked) {
8688
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'SI');
8655
+ localStorage.setItem(this.grid_key + '_MANTIENI', 'SI');
8689
8656
  }
8690
8657
  else {
8691
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'NO');
8658
+ localStorage.setItem(this.grid_key + '_MANTIENI', 'NO');
8692
8659
  }
8693
8660
  }, 100);
8694
8661
  }
@@ -8708,25 +8675,25 @@ class FHGridComponent {
8708
8675
  this.curr_config = this.gf.getValue();
8709
8676
  if (this.curr_config == '-1')
8710
8677
  return;
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');
8678
+ localStorage.removeItem(this.grid_key + '_COLS');
8679
+ localStorage.removeItem(this.grid_key + '_FILTER');
8680
+ localStorage.removeItem(this.grid_key + '_CFG_DEFAULT');
8681
+ localStorage.removeItem(this.grid_key + '_FILTER_UP');
8715
8682
  if (this.gf)
8716
8683
  if (this.gf.getObj().COL != null)
8717
8684
  if (this.gf.getObj().COL != '')
8718
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', this.gf.getObj().COL);
8685
+ localStorage.setItem(this.grid_key + '_COLS', this.gf.getObj().COL);
8719
8686
  // if (this.gf.getObj().SORT != null)
8720
8687
  // if (this.gf.getObj().SORT != "")
8721
- // localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT", this.gf.getObj().SORT);
8688
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
8722
8689
  if (this.gf)
8723
8690
  if (this.gf.getObj().FILTER != null)
8724
8691
  if (this.gf.getObj().FILTER != '')
8725
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', this.gf.getObj().FILTER);
8692
+ localStorage.setItem(this.grid_key + '_FILTER', this.gf.getObj().FILTER);
8726
8693
  if (this.gf)
8727
8694
  if (this.gf.getDescri() != null)
8728
8695
  if (this.gf.getDescri() != '-1')
8729
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT', this.gf.getDescri() || '');
8696
+ localStorage.setItem(this.grid_key + '_CFG_DEFAULT', this.gf.getDescri() || '');
8730
8697
  if (this.gf)
8731
8698
  this.curr_config = this.gf.getValue();
8732
8699
  this.res_columns(true);
@@ -8752,14 +8719,14 @@ class FHGridComponent {
8752
8719
  let p = new QParam();
8753
8720
  p.sql = 'DELETE_CFG_GRID';
8754
8721
  p.types = ['string', 'string'];
8755
- p.values = [this.gf.getDescri(), this.m_appService.COMPANY_KEY + '_' + this.grid_key];
8722
+ p.values = [this.gf.getDescri(), this.grid_key];
8756
8723
  this._dataService.doQuery(p).subscribe((data) => {
8757
8724
  if (data != null)
8758
8725
  if (data.result_msg == 'OK') {
8759
8726
  this._toast.info('Configurazione eliminata');
8760
8727
  if (this.gf) {
8761
8728
  this.gf.types = ['string'];
8762
- this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
8729
+ this.gf.values = [this.grid_key];
8763
8730
  this.gf.fillCombo();
8764
8731
  }
8765
8732
  this.curr_config = '-1';
@@ -8791,12 +8758,12 @@ class FHGridComponent {
8791
8758
  let p_col;
8792
8759
  // let p_sort: string = "";
8793
8760
  let p_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');
8761
+ if (localStorage.getItem(this.grid_key + '_COLS') != null)
8762
+ p_col = localStorage.getItem(this.grid_key + '_COLS');
8763
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
8764
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
8765
+ if (localStorage.getItem(this.grid_key + '_FILTER') != null)
8766
+ p_filter = localStorage.getItem(this.grid_key + '_FILTER');
8800
8767
  p.types = [
8801
8768
  'string',
8802
8769
  'string',
@@ -8808,7 +8775,7 @@ class FHGridComponent {
8808
8775
  if (this.gf)
8809
8776
  p.values = [
8810
8777
  this.gf.getDescri(),
8811
- this.m_appService.COMPANY_KEY + '_' + this.grid_key,
8778
+ this.grid_key,
8812
8779
  p_col,
8813
8780
  '',
8814
8781
  p_filter,
@@ -8821,7 +8788,7 @@ class FHGridComponent {
8821
8788
  this._toast.info('Configurazione salvata');
8822
8789
  if (this.gf) {
8823
8790
  this.gf.types = ['string'];
8824
- this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
8791
+ this.gf.values = [this.grid_key];
8825
8792
  this.gf.fillCombo();
8826
8793
  }
8827
8794
  this.curr_config = '-1';
@@ -8861,12 +8828,12 @@ class FHGridComponent {
8861
8828
  let p_col;
8862
8829
  // let p_sort: string = "";
8863
8830
  let p_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');
8831
+ if (localStorage.getItem(this.grid_key + '_COLS') != null)
8832
+ p_col = localStorage.getItem(this.grid_key + '_COLS');
8833
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
8834
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
8835
+ if (localStorage.getItem(this.grid_key + '_FILTER') != null)
8836
+ p_filter = localStorage.getItem(this.grid_key + '_FILTER');
8870
8837
  p.types = [
8871
8838
  'string',
8872
8839
  'string',
@@ -8877,7 +8844,7 @@ class FHGridComponent {
8877
8844
  ];
8878
8845
  p.values = [
8879
8846
  result,
8880
- this.m_appService.COMPANY_KEY + '_' + this.grid_key,
8847
+ this.grid_key,
8881
8848
  p_col,
8882
8849
  '',
8883
8850
  p_filter,
@@ -8891,7 +8858,7 @@ class FHGridComponent {
8891
8858
  ok_op = true;
8892
8859
  if (this.gf) {
8893
8860
  this.gf.types = ['string'];
8894
- this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
8861
+ this.gf.values = [this.grid_key];
8895
8862
  this.gf.fillCombo();
8896
8863
  }
8897
8864
  }
@@ -8955,23 +8922,23 @@ class FHGridComponent {
8955
8922
  this.fill_end.emit();
8956
8923
  this.check_width();
8957
8924
  // console.log("end");
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)
8925
+ // console.log(localStorage.getItem(this.grid_key+'_POS'));
8926
+ localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
8927
+ if (localStorage.getItem(this.grid_key + '_POS2') != null)
8961
8928
  if (this.gridOptions != null)
8962
8929
  if (this.gridApi != null)
8963
8930
  this.gridApi.forEachNode((node) => {
8964
8931
  // console.log(node:any)
8965
8932
  if (this.getRowId(node) ===
8966
- localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2')) {
8933
+ localStorage.getItem(this.grid_key + '_POS2')) {
8967
8934
  node.setSelected(true);
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') !=
8935
+ localStorage.removeItem(this.grid_key + '_POS2');
8936
+ if (localStorage.getItem(this.grid_key + '_LAST_ROW') !=
8970
8937
  null)
8971
- this.sRow = JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW') || '{}');
8938
+ this.sRow = JSON.parse(localStorage.getItem(this.grid_key + '_LAST_ROW') || '{}');
8972
8939
  else
8973
8940
  this.sRow = null;
8974
- localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW');
8941
+ localStorage.removeItem(this.grid_key + '_LAST_ROW');
8975
8942
  }
8976
8943
  });
8977
8944
  let b_mantieni_ck = false;
@@ -8982,7 +8949,7 @@ class FHGridComponent {
8982
8949
  }
8983
8950
  this.b_init1 = true;
8984
8951
  this.ensure_visible();
8985
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') == null &&
8952
+ if (localStorage.getItem(this.grid_key + '_COLS') == null &&
8986
8953
  this.autosize_at_ini)
8987
8954
  setTimeout(() => {
8988
8955
  this.set_init_size();
@@ -9243,15 +9210,15 @@ class FHGridComponent {
9243
9210
  }
9244
9211
  };
9245
9212
  this.init_opt = true;
9246
- if (this.m_appService.COMPANY_KEY + '_' + this.grid_key == 'PRO_H')
9213
+ if (this.grid_key == 'PRO_H')
9247
9214
  this.no_pref = true;
9248
9215
  setTimeout(() => {
9249
9216
  if (this.end_point == null)
9250
9217
  this.end_point =
9251
9218
  this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
9252
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') != null)
9219
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
9253
9220
  this.ric_libera =
9254
- localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') || '';
9221
+ localStorage.getItem(this.grid_key + '_FILTER_UP') || '';
9255
9222
  this.onResize();
9256
9223
  });
9257
9224
  }
@@ -9346,12 +9313,12 @@ class FHGridComponent {
9346
9313
  });
9347
9314
  }
9348
9315
  pulisci_filtri(resetr = true) {
9349
- localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
9316
+ localStorage.removeItem(this.grid_key + '_FILTER');
9350
9317
  if (resetr) {
9351
9318
  if (this.ric_libera != '')
9352
9319
  this.doFill('', true, false);
9353
9320
  this.ric_libera = '';
9354
- localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
9321
+ localStorage.removeItem(this.grid_key + '_FILTER_UP');
9355
9322
  }
9356
9323
  this.fix_flt_temp = '';
9357
9324
  if (this.gridApi)
@@ -9415,18 +9382,18 @@ class FHGridComponent {
9415
9382
  this.ckk_ed = true;
9416
9383
  if (this.toggle_mantieni != null) {
9417
9384
  this.toggle_mantieni.checked = true;
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') {
9385
+ if (localStorage.getItem(this.grid_key + '_MANTIENI') != null)
9386
+ if (localStorage.getItem(this.grid_key + '_MANTIENI') == 'NO') {
9420
9387
  this.toggle_mantieni.checked = false;
9421
9388
  }
9422
9389
  }
9423
9390
  this.res_columns();
9424
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null)
9391
+ if (localStorage.getItem(this.grid_key + '_POS') != null)
9425
9392
  this.b_restored = true;
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') != '') {
9393
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
9394
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != '') {
9428
9395
  this.ric_libera =
9429
- localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP') || '';
9396
+ localStorage.getItem(this.grid_key + '_FILTER_UP') || '';
9430
9397
  let arr = this.ric_libera.split(' ');
9431
9398
  let arr_F = new Array();
9432
9399
  for (let i = 0; i < arr.length; i++)
@@ -9521,26 +9488,26 @@ class FHGridComponent {
9521
9488
  let b_rip = false;
9522
9489
  if (this.toggle_mantieni != null)
9523
9490
  b_mantieni_ck = this.toggle_mantieni.checked;
9524
- if ((localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '') == '') {
9491
+ if ((localStorage.getItem(this.grid_key + '_COLS') || '') == '') {
9525
9492
  this.set_init_size();
9526
9493
  return;
9527
9494
  }
9528
9495
  if (b_mantieni_ck || forza) {
9529
9496
  b_rip = true;
9530
9497
  try {
9531
- let a = JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '[]');
9498
+ let a = JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '[]');
9532
9499
  let annulla = true;
9533
9500
  for (let i = 0; i < a.length; i++) {
9534
9501
  if (!a[i].hide)
9535
9502
  annulla = false;
9536
9503
  }
9537
9504
  if (annulla)
9538
- localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
9505
+ localStorage.getItem(this.grid_key + '_COLS');
9539
9506
  else {
9540
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS'))
9507
+ if (localStorage.getItem(this.grid_key + '_COLS'))
9541
9508
  if (this.gridApi) {
9542
9509
  let colState = {
9543
- state: JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '{}'),
9510
+ state: JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '{}'),
9544
9511
  };
9545
9512
  this.gridApi.applyColumnState(colState);
9546
9513
  }
@@ -9550,12 +9517,12 @@ class FHGridComponent {
9550
9517
  console.log(eer);
9551
9518
  }
9552
9519
  }
9553
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null &&
9520
+ if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
9554
9521
  (b_mantieni_ck || forza))
9555
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != '') {
9522
+ if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
9556
9523
  try {
9557
9524
  if (this.gridApi)
9558
- this.gridApi.setFilterModel(JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') || ''));
9525
+ this.gridApi.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER') || ''));
9559
9526
  }
9560
9527
  catch (eer) {
9561
9528
  console.log(eer);
@@ -9597,10 +9564,10 @@ class FHGridComponent {
9597
9564
  else
9598
9565
  this.gf.sql = 'SELECT_CFG_GRID_BY_USER';
9599
9566
  this.gf.types = ['string'];
9600
- this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
9567
+ this.gf.values = [this.grid_key];
9601
9568
  this.gf.fillCombo();
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) {
9569
+ if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO')
9570
+ if (localStorage.getItem(this.grid_key + '_CFG_DEFAULT') != null) {
9604
9571
  return;
9605
9572
  }
9606
9573
  }
@@ -9615,16 +9582,16 @@ class FHGridComponent {
9615
9582
  }
9616
9583
  save_cfg() {
9617
9584
  if (this.gridApi)
9618
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
9585
+ localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
9619
9586
  }
9620
9587
  fe_cfg() {
9621
9588
  if (this.gf != null)
9622
9589
  if (this.gf.getObj() != null)
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);
9590
+ if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO') {
9591
+ this.gf.setByDescri(localStorage.getItem(this.grid_key + '_CFG_DEFAULT') || '');
9592
+ localStorage.setItem(this.grid_key + '_COLS', this.gf.getObj().COLS);
9593
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
9594
+ localStorage.setItem(this.grid_key + '_FILTER', this.gf.getObj().FILTER);
9628
9595
  this.curr_config = this.gf.getValue();
9629
9596
  }
9630
9597
  this.onready_go();
@@ -9652,10 +9619,10 @@ class FHGridComponent {
9652
9619
  this.pulisci_filtri();
9653
9620
  this.fix_flt_temp = '';
9654
9621
  this.doFill('', true, false);
9655
- localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
9622
+ localStorage.removeItem(this.grid_key + '_FILTER_UP');
9656
9623
  return;
9657
9624
  }
9658
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP', this.ric_libera);
9625
+ localStorage.setItem(this.grid_key + '_FILTER_UP', this.ric_libera);
9659
9626
  let arr = this.ric_libera.split(' ');
9660
9627
  let arr_F = new Array();
9661
9628
  for (let i = 0; i < arr.length; i++)
@@ -9741,7 +9708,7 @@ class FHGridComponent {
9741
9708
  if (this.b_init) {
9742
9709
  console.log('salvo f: ' + this.gridApi.getColumnState(), this.gridApi);
9743
9710
  if (this.gridApi)
9744
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
9711
+ localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
9745
9712
  }
9746
9713
  }
9747
9714
  onFilterModified() {
@@ -9752,7 +9719,7 @@ class FHGridComponent {
9752
9719
  setTimeout(() => {
9753
9720
  if (this.b_init) {
9754
9721
  if (this.gridApi)
9755
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', JSON.stringify(this.gridApi.getFilterModel()));
9722
+ localStorage.setItem(this.grid_key + '_FILTER', JSON.stringify(this.gridApi.getFilterModel()));
9756
9723
  }
9757
9724
  }, 200);
9758
9725
  }
@@ -9765,12 +9732,12 @@ class FHGridComponent {
9765
9732
  return;
9766
9733
  if (this.b_init) {
9767
9734
  if (this.gridApi)
9768
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
9735
+ localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
9769
9736
  // console.log('salvo s: '+this.gridApi.getSortModel());
9770
9737
  /*
9771
9738
 
9772
9739
  localStorage.setItem(
9773
- this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT",
9740
+ this.grid_key + "_SORT",
9774
9741
  JSON.stringify(this.gridApi.getSortModel())
9775
9742
  );*/
9776
9743
  }
@@ -9790,15 +9757,15 @@ class FHGridComponent {
9790
9757
  if (selectedInGrid != null)
9791
9758
  if (selectedInGrid[0] != null) {
9792
9759
  // console.log((this.gridApi.getVerticalPixelRange()));
9793
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
9760
+ localStorage.setItem(this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
9794
9761
  if (this.gridApi)
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]));
9762
+ localStorage.setItem(this.grid_key + '_POS_BAR', JSON.stringify(this.gridApi.getVerticalPixelRange()));
9763
+ localStorage.setItem(this.grid_key + '_POS2', this.getRowId(selectedInGrid[0]));
9797
9764
  // this.m_appService.getState().grid_obj=new Object();
9798
- // this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_NODE']=this.gridApi.getSelectedRows[0];
9765
+ // this.m_appService.getState().grid_obj[this.grid_key+'_NODE']=this.gridApi.getSelectedRows[0];
9799
9766
  }
9800
9767
  this.sRow = $event.data;
9801
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW', JSON.stringify(this.sRow));
9768
+ localStorage.setItem(this.grid_key + '_LAST_ROW', JSON.stringify(this.sRow));
9802
9769
  this.clicked.emit($event.data);
9803
9770
  var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
9804
9771
  if (iOS) {
@@ -9826,7 +9793,7 @@ class FHGridComponent {
9826
9793
  return;
9827
9794
  this.columndclicked.emit($event);
9828
9795
  // console.log('onColumnEvent: ' + $event);
9829
- // localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_COLUMN',JSON.stringify(this.gridApi.getColumnDef()));
9796
+ // localStorage.setItem(this.grid_key+'_COLUMN',JSON.stringify(this.gridApi.getColumnDef()));
9830
9797
  }
9831
9798
  fix_flt = '';
9832
9799
  fix_flt_temp = '';
@@ -10887,10 +10854,10 @@ class FHGridJSONComponent {
10887
10854
  return;
10888
10855
  this.b_ensure = true;
10889
10856
  try {
10890
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null &&
10857
+ if (localStorage.getItem(this.grid_key + '_POS') != null &&
10891
10858
  this.gridOptions.api != null) {
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');
10859
+ this.gridOptions.api.ensureIndexVisible(parseInt(localStorage.getItem(this.grid_key + '_POS') || '0'));
10860
+ localStorage.removeItem(this.grid_key + '_POS');
10894
10861
  }
10895
10862
  }
10896
10863
  catch (e) {
@@ -10903,10 +10870,10 @@ class FHGridJSONComponent {
10903
10870
  setTimeout(() => {
10904
10871
  if (this.toggle_mantieni)
10905
10872
  if (this.toggle_mantieni.checked) {
10906
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'SI');
10873
+ localStorage.setItem(this.grid_key + '_MANTIENI', 'SI');
10907
10874
  }
10908
10875
  else {
10909
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'NO');
10876
+ localStorage.setItem(this.grid_key + '_MANTIENI', 'NO');
10910
10877
  }
10911
10878
  }, 100);
10912
10879
  }
@@ -10922,22 +10889,22 @@ class FHGridJSONComponent {
10922
10889
  this.curr_config = this.gf.getValue();
10923
10890
  if (this.curr_config == '-1')
10924
10891
  return;
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');
10892
+ localStorage.removeItem(this.grid_key + '_COLS');
10893
+ localStorage.removeItem(this.grid_key + '_SORT');
10894
+ localStorage.removeItem(this.grid_key + '_FILTER');
10895
+ localStorage.removeItem(this.grid_key + '_CFG_DEFAULT');
10929
10896
  if (this.gf.getObj().COL != null)
10930
10897
  if (this.gf.getObj().COL != '')
10931
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', this.gf.getObj().COL);
10898
+ localStorage.setItem(this.grid_key + '_COLS', this.gf.getObj().COL);
10932
10899
  if (this.gf.getObj().SORT != null)
10933
10900
  if (this.gf.getObj().SORT != '')
10934
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT', this.gf.getObj().SORT);
10901
+ localStorage.setItem(this.grid_key + '_SORT', this.gf.getObj().SORT);
10935
10902
  if (this.gf.getObj().FILTER != null)
10936
10903
  if (this.gf.getObj().FILTER != '')
10937
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', this.gf.getObj().FILTER);
10904
+ localStorage.setItem(this.grid_key + '_FILTER', this.gf.getObj().FILTER);
10938
10905
  if (this.gf.getDescri() != null)
10939
10906
  if (this.gf.getDescri() != '-1')
10940
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT', this.gf.getDescri() || '');
10907
+ localStorage.setItem(this.grid_key + '_CFG_DEFAULT', this.gf.getDescri() || '');
10941
10908
  this.curr_config = this.gf.getValue();
10942
10909
  }
10943
10910
  this.res_columns(true);
@@ -10965,16 +10932,16 @@ class FHGridJSONComponent {
10965
10932
  let p_col = '';
10966
10933
  let p_sort = '';
10967
10934
  let p_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');
10935
+ if (localStorage.getItem(this.grid_key + '_COLS') != null)
10936
+ p_col = localStorage.getItem(this.grid_key + '_COLS');
10937
+ if (localStorage.getItem(this.grid_key + '_SORT') != null)
10938
+ p_sort = localStorage.getItem(this.grid_key + '_SORT');
10939
+ if (localStorage.getItem(this.grid_key + '_FILTER') != null)
10940
+ p_filter = localStorage.getItem(this.grid_key + '_FILTER');
10974
10941
  p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
10975
10942
  p.values = [
10976
10943
  dtv || '',
10977
- this.m_appService.COMPANY_KEY + '_' + this.grid_key,
10944
+ this.grid_key,
10978
10945
  p_col,
10979
10946
  p_sort,
10980
10947
  p_filter,
@@ -10988,7 +10955,7 @@ class FHGridJSONComponent {
10988
10955
  this._toast.info('Configurazione salvata');
10989
10956
  if (this.gf) {
10990
10957
  this.gf.types = ['string'];
10991
- this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
10958
+ this.gf.values = [this.grid_key];
10992
10959
  this.gf.fillCombo();
10993
10960
  }
10994
10961
  }
@@ -11019,12 +10986,12 @@ class FHGridJSONComponent {
11019
10986
  let p_col = '';
11020
10987
  let p_sort = '';
11021
10988
  let p_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');
10989
+ if (localStorage.getItem(this.grid_key + '_COLS') != null)
10990
+ p_col = localStorage.getItem(this.grid_key + '_COLS');
10991
+ if (localStorage.getItem(this.grid_key + '_SORT') != null)
10992
+ p_sort = localStorage.getItem(this.grid_key + '_SORT');
10993
+ if (localStorage.getItem(this.grid_key + '_FILTER') != null)
10994
+ p_filter = localStorage.getItem(this.grid_key + '_FILTER');
11028
10995
  p.types = [
11029
10996
  'string',
11030
10997
  'string',
@@ -11035,7 +11002,7 @@ class FHGridJSONComponent {
11035
11002
  ];
11036
11003
  p.values = [
11037
11004
  result,
11038
- this.m_appService.COMPANY_KEY + '_' + this.grid_key,
11005
+ this.grid_key,
11039
11006
  p_col,
11040
11007
  p_sort,
11041
11008
  p_filter,
@@ -11050,7 +11017,7 @@ class FHGridJSONComponent {
11050
11017
  ok_op = true;
11051
11018
  if (this.gf) {
11052
11019
  this.gf.types = ['string'];
11053
- this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
11020
+ this.gf.values = [this.grid_key];
11054
11021
  this.gf.fillCombo();
11055
11022
  }
11056
11023
  }
@@ -11274,7 +11241,7 @@ class FHGridJSONComponent {
11274
11241
  });
11275
11242
  }
11276
11243
  pulisci_filtri(resetr = true) {
11277
- localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
11244
+ localStorage.removeItem(this.grid_key + '_FILTER');
11278
11245
  if (resetr)
11279
11246
  this.ric_libera = '';
11280
11247
  this.fix_flt_temp = '';
@@ -11433,13 +11400,13 @@ class FHGridJSONComponent {
11433
11400
  this.ckk_ed = true;
11434
11401
  if (this.toggle_mantieni != null) {
11435
11402
  this.toggle_mantieni.checked = true;
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') {
11403
+ if (localStorage.getItem(this.grid_key + '_MANTIENI') != null)
11404
+ if (localStorage.getItem(this.grid_key + '_MANTIENI') == 'NO') {
11438
11405
  this.toggle_mantieni.checked = false;
11439
11406
  }
11440
11407
  }
11441
11408
  this.res_columns();
11442
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null)
11409
+ if (localStorage.getItem(this.grid_key + '_POS') != null)
11443
11410
  this.b_restored = true;
11444
11411
  if (this.init_fill) {
11445
11412
  setTimeout(() => {
@@ -11452,14 +11419,14 @@ class FHGridJSONComponent {
11452
11419
  let b_rip = false;
11453
11420
  if (this.toggle_mantieni != null)
11454
11421
  b_mantieni_ck = this.toggle_mantieni.checked;
11455
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != null &&
11422
+ if (localStorage.getItem(this.grid_key + '_COLS') != null &&
11456
11423
  (b_mantieni_ck || forza))
11457
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != '') {
11424
+ if (localStorage.getItem(this.grid_key + '_COLS') != '') {
11458
11425
  b_rip = true;
11459
11426
  try {
11460
11427
  if (this.gridOptions)
11461
11428
  if (this.gridOptions.columnApi)
11462
- this.gridOptions.columnApi.applyColumnState(JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '{}'));
11429
+ this.gridOptions.columnApi.applyColumnState(JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '{}'));
11463
11430
  }
11464
11431
  catch (eer) {
11465
11432
  console.log(eer);
@@ -11471,13 +11438,13 @@ class FHGridJSONComponent {
11471
11438
  catch (eer) {
11472
11439
  console.log(eer);
11473
11440
  }
11474
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT') != null &&
11441
+ if (localStorage.getItem(this.grid_key + '_SORT') != null &&
11475
11442
  (b_mantieni_ck || forza))
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'));
11443
+ if (localStorage.getItem(this.grid_key + '_SORT') != '') {
11444
+ // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
11445
+ // console.log(localStorage.getItem(this.grid_key+'_SORT'));
11479
11446
  try {
11480
- this.getGridApi().setSortModel(JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT') || '{}'));
11447
+ this.getGridApi().setSortModel(JSON.parse(localStorage.getItem(this.grid_key + '_SORT') || '{}'));
11481
11448
  }
11482
11449
  catch (eer) {
11483
11450
  console.log(eer);
@@ -11489,13 +11456,13 @@ class FHGridJSONComponent {
11489
11456
  catch (eer) {
11490
11457
  console.log(eer);
11491
11458
  }
11492
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null &&
11459
+ if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
11493
11460
  (b_mantieni_ck || forza))
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'));
11461
+ if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
11462
+ // console.log(localStorage.getItem(this.grid_key+'_FILTER'));
11463
+ // console.log('setto _FILTER: '+localStorage.getItem(this.grid_key+'_FILTER'));
11497
11464
  try {
11498
- this.getGridApi().setFilterModel(JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') || '{}'));
11465
+ this.getGridApi().setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER') || '{}'));
11499
11466
  }
11500
11467
  catch (eer) {
11501
11468
  console.log(eer);
@@ -11544,10 +11511,10 @@ class FHGridJSONComponent {
11544
11511
  if (this.gf != null && this.show_buttons) {
11545
11512
  this.gf.sql = 'SELECT_CFG_GRID';
11546
11513
  this.gf.types = ['string'];
11547
- this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
11514
+ this.gf.values = [this.grid_key];
11548
11515
  this.gf.fillCombo();
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) {
11516
+ if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO')
11517
+ if (localStorage.getItem(this.grid_key + '_CFG_DEFAULT') != null) {
11551
11518
  return;
11552
11519
  }
11553
11520
  }
@@ -11557,16 +11524,16 @@ class FHGridJSONComponent {
11557
11524
  }
11558
11525
  save_cfg() {
11559
11526
  if (this.gridOptions.columnApi)
11560
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridOptions.columnApi.getColumnState()));
11527
+ localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridOptions.columnApi.getColumnState()));
11561
11528
  }
11562
11529
  fe_cfg() {
11563
11530
  if (this.gf != null)
11564
11531
  if (this.gf.getObj() != null)
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);
11532
+ if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO') {
11533
+ this.gf.setByDescri(localStorage.getItem(this.grid_key + '_CFG_DEFAULT') || '');
11534
+ localStorage.setItem(this.grid_key + '_COL', this.gf.getObj().COLS);
11535
+ localStorage.setItem(this.grid_key + '_SORT', this.gf.getObj().SORT);
11536
+ localStorage.setItem(this.grid_key + '_FILTER', this.gf.getObj().FILTER);
11570
11537
  this.curr_config = this.gf.getValue();
11571
11538
  }
11572
11539
  this.onready_go();
@@ -11660,16 +11627,16 @@ class FHGridJSONComponent {
11660
11627
  if (this.b_init) {
11661
11628
  // console.log('salvo f: '+JSON.stringify(this.gridOptions.columnApi.getColumnState()));
11662
11629
  if (this.gridOptions.columnApi)
11663
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridOptions.columnApi.getColumnState()));
11630
+ localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridOptions.columnApi.getColumnState()));
11664
11631
  }
11665
11632
  }
11666
11633
  onAfterFilterChanged() {
11667
11634
  // console.log('afterFilterChanged');
11668
- localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS');
11635
+ localStorage.removeItem(this.grid_key + '_POS');
11669
11636
  if (this.b_init) {
11670
11637
  // console.log('salvo f: '+JSON.stringify(this.gridOptions.api.getFilterModel()));
11671
11638
  if (this.gridOptions.api)
11672
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', JSON.stringify(this.gridOptions.api.getFilterModel()));
11639
+ localStorage.setItem(this.grid_key + '_FILTER', JSON.stringify(this.gridOptions.api.getFilterModel()));
11673
11640
  }
11674
11641
  }
11675
11642
  onFilterModified() {
@@ -11677,7 +11644,7 @@ class FHGridJSONComponent {
11677
11644
  if (this.b_init) {
11678
11645
  //console.log('salvo f: '+JSON.stringify(this.gridOptions.api.getFilterModel()));
11679
11646
  if (this.gridOptions.api)
11680
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', JSON.stringify(this.gridOptions.api.getFilterModel()));
11647
+ localStorage.setItem(this.grid_key + '_FILTER', JSON.stringify(this.gridOptions.api.getFilterModel()));
11681
11648
  }
11682
11649
  }
11683
11650
  onBeforeSortChanged() {
@@ -11685,7 +11652,7 @@ class FHGridJSONComponent {
11685
11652
  }
11686
11653
  onAfterSortChanged() {
11687
11654
  if (this.b_init) {
11688
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_SORT', JSON.stringify(this.getGridApi().getSortModel()));
11655
+ localStorage.setItem(this.grid_key + '_SORT', JSON.stringify(this.getGridApi().getSortModel()));
11689
11656
  }
11690
11657
  }
11691
11658
  onVirtualRowRemoved($event) {
@@ -11701,12 +11668,12 @@ class FHGridJSONComponent {
11701
11668
  if (selectedInGrid != null)
11702
11669
  if (selectedInGrid[0] != null) {
11703
11670
  // console.log((this.gridOptions.api.getVerticalPixelRange()));
11704
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
11671
+ localStorage.setItem(this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
11705
11672
  if (this.gridOptions.api)
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]));
11673
+ localStorage.setItem(this.grid_key + '_POS_BAR', JSON.stringify(this.gridOptions.api.getVerticalPixelRange()));
11674
+ localStorage.setItem(this.grid_key + '_POS2', this.getRowId(selectedInGrid[0]));
11708
11675
  // this.m_appService.getState().grid_obj=new Object();
11709
- // this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_NODE']=this.gridOptions.api.getSelectedRows[0];
11676
+ // this.m_appService.getState().grid_obj[this.grid_key+'_NODE']=this.gridOptions.api.getSelectedRows[0];
11710
11677
  }
11711
11678
  this.sRow = $event.data;
11712
11679
  this.clicked.emit($event.data);
@@ -11736,7 +11703,7 @@ class FHGridJSONComponent {
11736
11703
  onColumnEvent($event) {
11737
11704
  this.columndclicked.emit($event);
11738
11705
  //console.log('onColumnEvent: ' + $event);
11739
- // localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_COLUMN',JSON.stringify(this.gridOptions.api.getColumnDef()));
11706
+ // localStorage.setItem(this.grid_key+'_COLUMN',JSON.stringify(this.gridOptions.api.getColumnDef()));
11740
11707
  }
11741
11708
  fix_flt = '';
11742
11709
  fix_flt_temp = '';
@@ -26426,10 +26393,10 @@ class FHGridInternalComponent {
26426
26393
  return;
26427
26394
  this.b_ensure = true;
26428
26395
  try {
26429
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null) {
26396
+ if (localStorage.getItem(this.grid_key + '_POS') != null) {
26430
26397
  if (this.gridApi)
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');
26398
+ this.gridApi.ensureIndexVisible(parseInt(localStorage.getItem(this.grid_key + '_POS') || '0'));
26399
+ localStorage.removeItem(this.grid_key + '_POS');
26433
26400
  }
26434
26401
  }
26435
26402
  catch (e) {
@@ -26442,10 +26409,10 @@ class FHGridInternalComponent {
26442
26409
  setTimeout(() => {
26443
26410
  if (this.toggle_mantieni)
26444
26411
  if (this.toggle_mantieni.checked) {
26445
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'SI');
26412
+ localStorage.setItem(this.grid_key + '_MANTIENI', 'SI');
26446
26413
  }
26447
26414
  else {
26448
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_MANTIENI', 'NO');
26415
+ localStorage.setItem(this.grid_key + '_MANTIENI', 'NO');
26449
26416
  }
26450
26417
  }, 100);
26451
26418
  }
@@ -26465,26 +26432,26 @@ class FHGridInternalComponent {
26465
26432
  this.curr_config = this.gf.getValue();
26466
26433
  if (this.curr_config == '-1')
26467
26434
  return;
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');
26435
+ localStorage.removeItem(this.grid_key + '_COLS');
26436
+ // localStorage.removeItem(this.grid_key + "_SORT");
26437
+ localStorage.removeItem(this.grid_key + '_FILTER');
26438
+ localStorage.removeItem(this.grid_key + '_CFG_DEFAULT');
26439
+ localStorage.removeItem(this.grid_key + '_FILTER_UP');
26473
26440
  if (this.gf)
26474
26441
  if (this.gf.getObj().COL != null)
26475
26442
  if (this.gf.getObj().COL != '')
26476
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', this.gf.getObj().COL);
26443
+ localStorage.setItem(this.grid_key + '_COLS', this.gf.getObj().COL);
26477
26444
  // if (this.gf.getObj().SORT != null)
26478
26445
  // if (this.gf.getObj().SORT != "")
26479
- // localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT", this.gf.getObj().SORT);
26446
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
26480
26447
  if (this.gf)
26481
26448
  if (this.gf.getObj().FILTER != null)
26482
26449
  if (this.gf.getObj().FILTER != '')
26483
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', this.gf.getObj().FILTER);
26450
+ localStorage.setItem(this.grid_key + '_FILTER', this.gf.getObj().FILTER);
26484
26451
  if (this.gf)
26485
26452
  if (this.gf.getDescri() != null)
26486
26453
  if (this.gf.getDescri() != '-1')
26487
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_CFG_DEFAULT', this.gf.getDescri() || '');
26454
+ localStorage.setItem(this.grid_key + '_CFG_DEFAULT', this.gf.getDescri() || '');
26488
26455
  if (this.gf)
26489
26456
  this.curr_config = this.gf.getValue();
26490
26457
  this.res_columns(true);
@@ -26510,7 +26477,7 @@ class FHGridInternalComponent {
26510
26477
  p.sql = 'DELETE_CFG_GRID';
26511
26478
  p.types = ['string', 'string'];
26512
26479
  if (this.gf)
26513
- p.values = [this.gf.getDescri(), this.m_appService.COMPANY_KEY + '_' + this.grid_key];
26480
+ p.values = [this.gf.getDescri(), this.grid_key];
26514
26481
  let ok_op = false;
26515
26482
  this._dataService.doQuery(p).subscribe((data) => {
26516
26483
  let ok_op = false;
@@ -26519,7 +26486,7 @@ class FHGridInternalComponent {
26519
26486
  this._toast.info('Configurazione eliminata');
26520
26487
  if (this.gf) {
26521
26488
  this.gf.types = ['string'];
26522
- this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
26489
+ this.gf.values = [this.grid_key];
26523
26490
  this.gf.fillCombo();
26524
26491
  }
26525
26492
  this.curr_config = '-1';
@@ -26550,17 +26517,17 @@ class FHGridInternalComponent {
26550
26517
  let p_col = '';
26551
26518
  // let p_sort: string = "";
26552
26519
  let p_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');
26520
+ if (localStorage.getItem(this.grid_key + '_COLS') != null)
26521
+ p_col = localStorage.getItem(this.grid_key + '_COLS');
26522
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
26523
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
26524
+ if (localStorage.getItem(this.grid_key + '_FILTER') != null)
26525
+ p_filter = localStorage.getItem(this.grid_key + '_FILTER');
26559
26526
  p.types = ['string', 'string', 'string', 'string', 'string', 'string'];
26560
26527
  if (this.gf)
26561
26528
  p.values = [
26562
26529
  this.gf.getDescri(),
26563
- this.m_appService.COMPANY_KEY + '_' + this.grid_key,
26530
+ this.grid_key,
26564
26531
  p_col,
26565
26532
  '',
26566
26533
  p_filter,
@@ -26574,7 +26541,7 @@ class FHGridInternalComponent {
26574
26541
  this._toast.info('Configurazione salvata');
26575
26542
  if (this.gf) {
26576
26543
  this.gf.types = ['string'];
26577
- this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
26544
+ this.gf.values = [this.grid_key];
26578
26545
  this.gf.fillCombo();
26579
26546
  }
26580
26547
  this.curr_config = '-1';
@@ -26613,12 +26580,12 @@ class FHGridInternalComponent {
26613
26580
  let p_col;
26614
26581
  // let p_sort: string = "";
26615
26582
  let p_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');
26583
+ if (localStorage.getItem(this.grid_key + '_COLS') != null)
26584
+ p_col = localStorage.getItem(this.grid_key + '_COLS');
26585
+ // if (localStorage.getItem(this.grid_key + "_SORT") != null)
26586
+ // p_sort = localStorage.getItem(this.grid_key + "_SORT");
26587
+ if (localStorage.getItem(this.grid_key + '_FILTER') != null)
26588
+ p_filter = localStorage.getItem(this.grid_key + '_FILTER');
26622
26589
  p.types = [
26623
26590
  'string',
26624
26591
  'string',
@@ -26629,7 +26596,7 @@ class FHGridInternalComponent {
26629
26596
  ];
26630
26597
  p.values = [
26631
26598
  result,
26632
- this.m_appService.COMPANY_KEY + '_' + this.grid_key,
26599
+ this.grid_key,
26633
26600
  p_col,
26634
26601
  '',
26635
26602
  p_filter,
@@ -26644,7 +26611,7 @@ class FHGridInternalComponent {
26644
26611
  ok_op = true;
26645
26612
  if (this.gf) {
26646
26613
  this.gf.types = ['string'];
26647
- this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
26614
+ this.gf.values = [this.grid_key];
26648
26615
  this.gf.fillCombo();
26649
26616
  }
26650
26617
  }
@@ -27080,21 +27047,21 @@ class FHGridInternalComponent {
27080
27047
  this.fill_end.emit();
27081
27048
  this.check_width();
27082
27049
  // console.log("end");
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)
27050
+ // console.log(localStorage.getItem(this.grid_key+'_POS'));
27051
+ localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
27052
+ if (localStorage.getItem(this.grid_key + '_POS2') != null)
27086
27053
  if (this.gridOptions != null)
27087
27054
  if (this.gridApi != null)
27088
27055
  this.gridApi.forEachNode((node) => {
27089
27056
  // console.log(node:any)
27090
27057
  if (this.getRowId(node) ===
27091
- localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2')) {
27058
+ localStorage.getItem(this.grid_key + '_POS2')) {
27092
27059
  node.setSelected(true);
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') !=
27060
+ localStorage.removeItem(this.grid_key + '_POS2');
27061
+ if (localStorage.getItem(this.grid_key + '_LAST_ROW') !=
27095
27062
  null)
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');
27063
+ this.sRow = JSON.parse(localStorage.getItem(this.grid_key + '_LAST_ROW') || '{}');
27064
+ localStorage.removeItem(this.grid_key + '_LAST_ROW');
27098
27065
  }
27099
27066
  });
27100
27067
  let b_mantieni_ck = false;
@@ -27106,7 +27073,7 @@ class FHGridInternalComponent {
27106
27073
  }
27107
27074
  this.b_init1 = true;
27108
27075
  this.ensure_visible();
27109
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') == null &&
27076
+ if (localStorage.getItem(this.grid_key + '_COLS') == null &&
27110
27077
  this.autosize_at_ini)
27111
27078
  setTimeout(() => {
27112
27079
  this.set_init_size();
@@ -27156,21 +27123,21 @@ class FHGridInternalComponent {
27156
27123
  this.fill_end.emit();
27157
27124
  this.check_width();
27158
27125
  // console.log("end");
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)
27126
+ // console.log(localStorage.getItem(this.grid_key+'_POS'));
27127
+ localStorage.setItem(this.grid_key + '_POS1', JSON.stringify(p));
27128
+ if (localStorage.getItem(this.grid_key + '_POS2') != null)
27162
27129
  if (this.gridOptions != null)
27163
27130
  if (this.gridApi != null)
27164
27131
  this.gridApi.forEachNode((node) => {
27165
27132
  // console.log(node:any)
27166
27133
  if (this.getRowId(node) ===
27167
- localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS2')) {
27134
+ localStorage.getItem(this.grid_key + '_POS2')) {
27168
27135
  node.setSelected(true);
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') !=
27136
+ localStorage.removeItem(this.grid_key + '_POS2');
27137
+ if (localStorage.getItem(this.grid_key + '_LAST_ROW') !=
27171
27138
  null)
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');
27139
+ this.sRow = JSON.parse(localStorage.getItem(this.grid_key + '_LAST_ROW') || '{}');
27140
+ localStorage.removeItem(this.grid_key + '_LAST_ROW');
27174
27141
  }
27175
27142
  });
27176
27143
  let b_mantieni_ck = false;
@@ -27182,33 +27149,33 @@ class FHGridInternalComponent {
27182
27149
  }
27183
27150
  this.b_init1 = true;
27184
27151
  this.ensure_visible();
27185
- /*if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS')==null && this.first_ref) {
27152
+ /*if (localStorage.getItem(this.grid_key + '_COLS')==null && this.first_ref) {
27186
27153
  setTimeout(() => {
27187
27154
  this.autoSizeAll();
27188
27155
  }, 300);
27189
27156
  this.first_ref = false;
27190
27157
 
27191
27158
 
27192
- } else*/ if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') == null &&
27159
+ } else*/ if (localStorage.getItem(this.grid_key + '_COLS') == null &&
27193
27160
  this.autosize_at_ini)
27194
27161
  setTimeout(() => {
27195
27162
  this.autoSizeAll();
27196
27163
  }, 300);
27197
27164
  //console.log('xxxxxxxxxxxxxxxxxxx');
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)
27165
+ // console.log(this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
27166
+ //if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
27200
27167
  /*
27201
27168
 
27202
27169
  this.gridApi.forEachNode( (node:any) =>{
27203
27170
  // select the node
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);
27171
+ // console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
27172
+ if(node.rowIndex==parseInt(localStorage.getItem(this.grid_key+'_POS'))){
27173
+ // console.log(node.id+' '+this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
27207
27174
  node.setSelected(true);
27208
27175
 
27209
27176
  }}*/
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);
27177
+ // if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
27178
+ //this.gridApi.get(parseInt(localStorage.getItem(this.grid_key+'_POS'))).setSelected(true);
27212
27179
  // console.log(this.myData);
27213
27180
  }
27214
27181
  if (!ok_op) {
@@ -27297,14 +27264,14 @@ class FHGridInternalComponent {
27297
27264
  innerWidth = 750;
27298
27265
  size;
27299
27266
  ngAfterViewInit() {
27300
- if (this.m_appService.COMPANY_KEY + '_' + this.grid_key == 'PRO_H')
27267
+ if (this.grid_key == 'PRO_H')
27301
27268
  this.no_pref = true;
27302
27269
  setTimeout(() => {
27303
27270
  if (this.end_point == null)
27304
27271
  this.end_point =
27305
27272
  this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
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');
27273
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
27274
+ this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
27308
27275
  this.onResize();
27309
27276
  });
27310
27277
  }
@@ -27421,12 +27388,12 @@ class FHGridInternalComponent {
27421
27388
  }
27422
27389
  last_riclib = false;
27423
27390
  pulisci_filtri(resetr = true) {
27424
- localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER');
27391
+ localStorage.removeItem(this.grid_key + '_FILTER');
27425
27392
  if (resetr) {
27426
27393
  if (this.ric_libera != '' || this.last_riclib)
27427
27394
  this.doFill('', true, false);
27428
27395
  this.ric_libera = '';
27429
- localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
27396
+ localStorage.removeItem(this.grid_key + '_FILTER_UP');
27430
27397
  }
27431
27398
  this.fix_flt_temp = '';
27432
27399
  if (this.gridApi)
@@ -27737,17 +27704,17 @@ class FHGridInternalComponent {
27737
27704
  this.ckk_ed = true;
27738
27705
  if (this.toggle_mantieni != null) {
27739
27706
  this.toggle_mantieni.checked = true;
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') {
27707
+ if (localStorage.getItem(this.grid_key + '_MANTIENI') != null)
27708
+ if (localStorage.getItem(this.grid_key + '_MANTIENI') == 'NO') {
27742
27709
  this.toggle_mantieni.checked = false;
27743
27710
  }
27744
27711
  }
27745
27712
  this.res_columns();
27746
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS') != null)
27713
+ if (localStorage.getItem(this.grid_key + '_POS') != null)
27747
27714
  this.b_restored = true;
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');
27715
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
27716
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != '') {
27717
+ this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
27751
27718
  let arr = (this.ric_libera || '').split(' ');
27752
27719
  let arr_F = new Array();
27753
27720
  for (let i = 0; i < arr.length; i++)
@@ -27820,10 +27787,10 @@ class FHGridInternalComponent {
27820
27787
  }
27821
27788
  // this.createNewDatasource();
27822
27789
  /*
27823
- if(this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_startPage']!=null)
27790
+ if(this.m_appService.getState().grid_obj[this.grid_key+'_startPage']!=null)
27824
27791
  {
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']);
27792
+ //console.log('setto pag: '+this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
27793
+ this.gridApi.paginationGoToPage(this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
27827
27794
  } */
27828
27795
  }
27829
27796
  set_init_size() {
@@ -27855,26 +27822,26 @@ class FHGridInternalComponent {
27855
27822
  let b_rip = false;
27856
27823
  if (this.toggle_mantieni != null)
27857
27824
  b_mantieni_ck = this.toggle_mantieni.checked;
27858
- if ((localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '') == '') {
27825
+ if ((localStorage.getItem(this.grid_key + '_COLS') || '') == '') {
27859
27826
  this.set_init_size();
27860
27827
  return;
27861
27828
  }
27862
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != null &&
27829
+ if (localStorage.getItem(this.grid_key + '_COLS') != null &&
27863
27830
  (b_mantieni_ck || forza))
27864
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') != '') {
27831
+ if (localStorage.getItem(this.grid_key + '_COLS') != '') {
27865
27832
  b_rip = true;
27866
27833
  try {
27867
- let a = JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '[]');
27834
+ let a = JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '[]');
27868
27835
  let annulla = true;
27869
27836
  for (let i = 0; i < a.length; i++) {
27870
27837
  if (!a[i].hide)
27871
27838
  annulla = false;
27872
27839
  }
27873
27840
  if (annulla)
27874
- localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS');
27841
+ localStorage.getItem(this.grid_key + '_COLS');
27875
27842
  else {
27876
27843
  if (this.gridApi) {
27877
- let saved_state = JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS') || '[]');
27844
+ let saved_state = JSON.parse(localStorage.getItem(this.grid_key + '_COLS') || '[]');
27878
27845
  // console.log('BEFORE ',this.gridApi.getColumnState())
27879
27846
  this.gridApi.applyColumnState({
27880
27847
  state: saved_state,
@@ -27895,15 +27862,15 @@ class FHGridInternalComponent {
27895
27862
  console.log(eer);
27896
27863
  }
27897
27864
  if (
27898
- localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT") != null &&
27865
+ localStorage.getItem(this.grid_key + "_SORT") != null &&
27899
27866
  (b_mantieni_ck || forza)
27900
27867
  )
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'));
27868
+ if (localStorage.getItem(this.grid_key + "_SORT") != "") {
27869
+ // console.log('setto sort: '+localStorage.getItem(this.grid_key+'_SORT'));
27870
+ // console.log(localStorage.getItem(this.grid_key+'_SORT'));
27904
27871
  try {
27905
27872
  this.gridApi.setSortModel(
27906
- JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT"))
27873
+ JSON.parse(localStorage.getItem(this.grid_key + "_SORT"))
27907
27874
  );
27908
27875
  } catch (eer) {
27909
27876
  console.log(eer);
@@ -27914,12 +27881,12 @@ class FHGridInternalComponent {
27914
27881
  } catch (eer) {
27915
27882
  console.log(eer);
27916
27883
  }*/
27917
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != null &&
27884
+ if (localStorage.getItem(this.grid_key + '_FILTER') != null &&
27918
27885
  (b_mantieni_ck || forza))
27919
- if (localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') != '') {
27886
+ if (localStorage.getItem(this.grid_key + '_FILTER') != '') {
27920
27887
  try {
27921
27888
  if (this.gridApi)
27922
- this.gridApi.setFilterModel(JSON.parse(localStorage.getItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER') || ''));
27889
+ this.gridApi.setFilterModel(JSON.parse(localStorage.getItem(this.grid_key + '_FILTER') || ''));
27923
27890
  }
27924
27891
  catch (eer) {
27925
27892
  console.log(eer);
@@ -27968,10 +27935,10 @@ class FHGridInternalComponent {
27968
27935
  else
27969
27936
  this.gf.sql = 'SELECT_CFG_GRID_BY_USER';
27970
27937
  this.gf.types = ['string'];
27971
- this.gf.values = [this.m_appService.COMPANY_KEY + '_' + this.grid_key];
27938
+ this.gf.values = [this.grid_key];
27972
27939
  this.gf.fillCombo();
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) {
27940
+ if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO')
27941
+ if (localStorage.getItem(this.grid_key + '_CFG_DEFAULT') != null) {
27975
27942
  return;
27976
27943
  }
27977
27944
  }
@@ -27986,16 +27953,16 @@ class FHGridInternalComponent {
27986
27953
  }
27987
27954
  save_cfg() {
27988
27955
  if (this.gridApi)
27989
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
27956
+ localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
27990
27957
  }
27991
27958
  fe_cfg() {
27992
27959
  if (this.gf != null)
27993
27960
  if (this.gf.getObj() != null)
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);
27961
+ if (localStorage.getItem(this.grid_key + '_MANTIENI') != 'NO') {
27962
+ this.gf.setByDescri(localStorage.getItem(this.grid_key + '_CFG_DEFAULT') || '');
27963
+ localStorage.setItem(this.grid_key + '_COLS', this.gf.getObj().COLS);
27964
+ // localStorage.setItem(this.grid_key + "_SORT", this.gf.getObj().SORT);
27965
+ localStorage.setItem(this.grid_key + '_FILTER', this.gf.getObj().FILTER);
27999
27966
  this.curr_config = this.gf.getValue();
28000
27967
  }
28001
27968
  this.onready_go();
@@ -28026,10 +27993,10 @@ class FHGridInternalComponent {
28026
27993
  this.pulisci_filtri();
28027
27994
  this.fix_flt_temp = '';
28028
27995
  this.doFill('', true, false);
28029
- localStorage.removeItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP');
27996
+ localStorage.removeItem(this.grid_key + '_FILTER_UP');
28030
27997
  return;
28031
27998
  }
28032
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER_UP', this.ric_libera || '');
27999
+ localStorage.setItem(this.grid_key + '_FILTER_UP', this.ric_libera || '');
28033
28000
  let arr = (this.ric_libera || '').split(' ');
28034
28001
  let arr_F = new Array();
28035
28002
  for (let i = 0; i < arr.length; i++)
@@ -28127,7 +28094,7 @@ class FHGridInternalComponent {
28127
28094
  // console.log('oncolumnEverythingChanged');
28128
28095
  if (this.b_init) {
28129
28096
  if (this.gridApi)
28130
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
28097
+ localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
28131
28098
  }
28132
28099
  }
28133
28100
  onFilterModified() {
@@ -28136,7 +28103,7 @@ class FHGridInternalComponent {
28136
28103
  setTimeout(() => {
28137
28104
  if (this.b_init) {
28138
28105
  if (this.gridApi)
28139
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_FILTER', JSON.stringify(this.gridApi.getFilterModel() || '{}'));
28106
+ localStorage.setItem(this.grid_key + '_FILTER', JSON.stringify(this.gridApi.getFilterModel() || '{}'));
28140
28107
  }
28141
28108
  }, 200);
28142
28109
  }
@@ -28149,12 +28116,12 @@ class FHGridInternalComponent {
28149
28116
  return;
28150
28117
  if (this.b_init) {
28151
28118
  if (this.gridApi)
28152
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
28119
+ localStorage.setItem(this.grid_key + '_COLS', JSON.stringify(this.gridApi.getColumnState()));
28153
28120
  // console.log('salvo s: '+this.gridApi.getSortModel());
28154
28121
  /*
28155
28122
 
28156
28123
  localStorage.setItem(
28157
- this.m_appService.COMPANY_KEY + '_' + this.grid_key + "_SORT",
28124
+ this.grid_key + "_SORT",
28158
28125
  JSON.stringify(this.gridApi.getSortModel())
28159
28126
  );*/
28160
28127
  }
@@ -28172,15 +28139,15 @@ class FHGridInternalComponent {
28172
28139
  if (selectedInGrid != null)
28173
28140
  if (selectedInGrid[0] != null) {
28174
28141
  // console.log((this.gridApi.getVerticalPixelRange()));
28175
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
28142
+ localStorage.setItem(this.grid_key + '_POS', String(selectedInGrid[0].rowIndex));
28176
28143
  if (this.gridApi)
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]));
28144
+ localStorage.setItem(this.grid_key + '_POS_BAR', JSON.stringify(this.gridApi.getVerticalPixelRange()));
28145
+ localStorage.setItem(this.grid_key + '_POS2', this.getRowId(selectedInGrid[0]));
28179
28146
  // this.m_appService.getState().grid_obj=new Object();
28180
- // this.m_appService.getState().grid_obj[this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_NODE']=this.gridApi.getSelectedRows[0];
28147
+ // this.m_appService.getState().grid_obj[this.grid_key+'_NODE']=this.gridApi.getSelectedRows[0];
28181
28148
  }
28182
28149
  this.sRow = $event.data;
28183
- localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key + '_LAST_ROW', JSON.stringify(this.sRow));
28150
+ localStorage.setItem(this.grid_key + '_LAST_ROW', JSON.stringify(this.sRow));
28184
28151
  this.clicked.emit($event.data);
28185
28152
  var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
28186
28153
  if (iOS) {
@@ -28208,7 +28175,7 @@ class FHGridInternalComponent {
28208
28175
  onColumnEvent($event) {
28209
28176
  this.columndclicked.emit($event);
28210
28177
  // console.log('onColumnEvent: ' + $event);
28211
- // localStorage.setItem(this.m_appService.COMPANY_KEY + '_' + this.grid_key +'_COLUMN',JSON.stringify(this.gridApi.getColumnDef()));
28178
+ // localStorage.setItem(this.grid_key+'_COLUMN',JSON.stringify(this.gridApi.getColumnDef()));
28212
28179
  }
28213
28180
  fix_flt = '';
28214
28181
  fix_flt_temp = '';