@fluxhub/fluxhub-lib 11.0.30 → 11.0.32

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.
@@ -3948,8 +3948,8 @@ class FHPickFieldComponent {
3948
3948
  return;
3949
3949
  let dialogRef = this.dialog.open(fh_win_picklist, {
3950
3950
  disableClose: true,
3951
- width: "700px",
3952
- height: "550px", data: {
3951
+ width: "800px",
3952
+ height: "650px", data: {
3953
3953
  value_list: JSON.parse(JSON.stringify(this.value_list)),
3954
3954
  single_sel: this.single_sel,
3955
3955
  vis_buttons: this.vis_buttons,
@@ -7084,6 +7084,9 @@ class FHGridComponent {
7084
7084
  }
7085
7085
  });
7086
7086
  }
7087
+ prepare_filter(s) {
7088
+ return s.split("'").join("$'").split("*").join("$*").split("?").join("$?").split("[").join("$[").split("]").join("$]").split("!").join("!$").toUpperCase();
7089
+ }
7087
7090
  calcola_filtro(obj_filtro, filter_v, key, add_end = true) {
7088
7091
  console.log('calcola_filtro ', key, add_end);
7089
7092
  let b_filter = false;
@@ -7125,7 +7128,7 @@ class FHGridComponent {
7125
7128
  " upper(" +
7126
7129
  key +
7127
7130
  ") like '%" +
7128
- obj_filtro.filter.replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7131
+ this.prepare_filter(obj_filtro.filter) +
7129
7132
  "%' ESCAPE '$'";
7130
7133
  if (obj_filtro.type == "startsWith")
7131
7134
  filter_v =
@@ -7133,7 +7136,7 @@ class FHGridComponent {
7133
7136
  " upper(" +
7134
7137
  key +
7135
7138
  ") like '" +
7136
- obj_filtro.filter.replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7139
+ this.prepare_filter(obj_filtro.filter) +
7137
7140
  "%' ESCAPE '$'";
7138
7141
  if (obj_filtro.type == "equals")
7139
7142
  filter_v =
@@ -7149,7 +7152,7 @@ class FHGridComponent {
7149
7152
  "not upper(" +
7150
7153
  key +
7151
7154
  ") like '%" +
7152
- obj_filtro.filter.replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7155
+ this.prepare_filter(obj_filtro.filter) +
7153
7156
  "%' ESCAPE '$'";
7154
7157
  if (obj_filtro.type == "notEqual")
7155
7158
  filter_v =
@@ -7165,7 +7168,7 @@ class FHGridComponent {
7165
7168
  " upper(" +
7166
7169
  key +
7167
7170
  ") like '%" +
7168
- obj_filtro.replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7171
+ this.prepare_filter(obj_filtro.filter) +
7169
7172
  "' ESCAPE '$'";
7170
7173
  // if(obj_filtro.type=="startsWith") filter_v = filter_v +' upper('+ key + ') like \'' + obj_filtro.filter.replace('\'', '\'\'').toUpperCase() + '%\'';
7171
7174
  }
@@ -7696,7 +7699,7 @@ class FHGridComponent {
7696
7699
  ss_r +=
7697
7700
  this.columnDefs[y].field +
7698
7701
  " LIKE '%" +
7699
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7702
+ this.prepare_filter(arr_F[i]) +
7700
7703
  "%' ESCAPE '$'";
7701
7704
  }
7702
7705
  }
@@ -7709,7 +7712,7 @@ class FHGridComponent {
7709
7712
  ss_r +=
7710
7713
  v +
7711
7714
  " LIKE '%" +
7712
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7715
+ this.prepare_filter(arr_F[i]) +
7713
7716
  "%' ESCAPE '$'";
7714
7717
  }
7715
7718
  });
@@ -7951,7 +7954,7 @@ class FHGridComponent {
7951
7954
  ss_r +=
7952
7955
  this.columnDefs[y].field +
7953
7956
  " LIKE '%" +
7954
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7957
+ this.prepare_filter(arr_F[i]) +
7955
7958
  "%' ESCAPE '$'";
7956
7959
  }
7957
7960
  }
@@ -7964,8 +7967,9 @@ class FHGridComponent {
7964
7967
  ss_r +=
7965
7968
  v +
7966
7969
  " LIKE '%" +
7967
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
7968
- "%' ESCAPE '$'";
7970
+ this.prepare_filter(arr_F[i])
7971
+ +
7972
+ "%' ESCAPE '$'";
7969
7973
  }
7970
7974
  });
7971
7975
  if (ss_r != '') {
@@ -21637,32 +21641,6 @@ class fh_win_user_info {
21637
21641
  this.dialogRef.close(null);
21638
21642
  }
21639
21643
  ngAfterViewInit() {
21640
- setTimeout(() => {
21641
- if (this.isadmin == "1")
21642
- if (this.appService.dev_mode != null)
21643
- if (this.appService.dev_mode == "1")
21644
- this.dev_mode = true;
21645
- let p = new QParam();
21646
- p.sql = "SELECT_ALLEGATI_DOCUMENTO";
21647
- p.types = ["string", "string"];
21648
- p.values = ["FOTO_UTENTI", this.appService.user];
21649
- this._dataService.doQuery(p).subscribe((data) => {
21650
- if (data != null)
21651
- if (data.result_msg == "OK") {
21652
- if (data.result_data.length > 0) {
21653
- this.b_filef = true;
21654
- this.foto_ut =
21655
- this.appService.COMPANY_SITE_ROOT +
21656
- "uploads/" +
21657
- data.result_data[0].App +
21658
- "/" +
21659
- data.result_data[0].K +
21660
- "/" +
21661
- data.result_data[0].Filename;
21662
- }
21663
- }
21664
- });
21665
- });
21666
21644
  }
21667
21645
  upd_dev(dv) {
21668
21646
  if (dv) {
@@ -21678,17 +21656,18 @@ class fh_win_user_info {
21678
21656
  fh_win_user_info.decorators = [
21679
21657
  { type: Component, args: [{
21680
21658
  template: `
21681
- <div   fxLayout="column" fxLayoutGap="5px">
21682
-         <div  fxFlex="100" fxLayout="row"   class="dialog_header">
21683
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{'INFO UTENTE' | translate}}</div>
21684
- <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
21685
- <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
21686
- </div>
21687
- </div>
21659
+ <div fxLayout="column" fxLayoutGap="5px">
21660
+ <table class="dialog_header" style="width:100%"><tr><td>
21661
+ {{'INFO UTENTE'}}
21662
+ </td>
21663
+ <td style="text-align:right">
21664
+ <img src="assets/icons/x.png" style="cursor: pointer;" (click)="close()" /></td>
21665
+ </table>
21666
+
21688
21667
  <hr width="100%" size="0.5" color="#DDDDDD">
21689
21668
 
21690
21669
  <mat-dialog-content style="font-size:12px">
21691
- <table class="fh_table">
21670
+ <table class="fh_table" style="width:100%">
21692
21671
  <tbody>
21693
21672
  <tr class="odd">
21694
21673
  <td>{{'Nome' | translate}}</td>
@@ -21745,12 +21724,6 @@ fh_win_user_info.decorators = [
21745
21724
  aria-hidden
21746
21725
  src="{{ foto_ut }}"
21747
21726
  />
21748
-
21749
- <div fxLayoutAlign="center center" fxLayout="row">
21750
- <button mat-flat-button color="primary" (click)="dialogRef.close()">
21751
- {{'CHIUDI' | translate}}
21752
- </button>
21753
- </div>
21754
21727
  </mat-dialog-content>
21755
21728
  </div>
21756
21729
  `
@@ -28231,7 +28204,7 @@ class FHGridComponentN {
28231
28204
  ss_r +=
28232
28205
  this.columnDefs[y].field +
28233
28206
  " LIKE '%" +
28234
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28207
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28235
28208
  "%' ESCAPE '$'";
28236
28209
  }
28237
28210
  }
@@ -28244,7 +28217,7 @@ class FHGridComponentN {
28244
28217
  ss_r +=
28245
28218
  v +
28246
28219
  " LIKE '%" +
28247
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28220
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28248
28221
  "%' ESCAPE '$'";
28249
28222
  }
28250
28223
  });
@@ -28472,7 +28445,7 @@ class FHGridComponentN {
28472
28445
  ss_r +=
28473
28446
  this.columnDefs[y].field +
28474
28447
  " LIKE '%" +
28475
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28448
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28476
28449
  "%' ESCAPE '$'";
28477
28450
  }
28478
28451
  }
@@ -28485,7 +28458,7 @@ class FHGridComponentN {
28485
28458
  ss_r +=
28486
28459
  v +
28487
28460
  " LIKE '%" +
28488
- this.uti_s.string_sqlvalue(arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28461
+ (arr_F[i]).replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
28489
28462
  "%' ESCAPE '$'";
28490
28463
  }
28491
28464
  });