@fluxhub/fluxhub-lib 19.0.29 → 19.0.31

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