@fluxhub/fluxhub-lib 10.0.341 → 10.0.343

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.
@@ -5886,6 +5886,7 @@
5886
5886
  }
5887
5887
  else {
5888
5888
  // if(obj_filtro.length>0)filter_v= filter_v+' and ';
5889
+ var like_f = '';
5889
5890
  var sq = "";
5890
5891
  var include_null_value = false;
5891
5892
  if (obj_filtro.values != null)
@@ -5894,6 +5895,13 @@
5894
5895
  if (sq != "")
5895
5896
  sq = sq + ",";
5896
5897
  sq = sq + "'" + obj_filtro.values[i].replace("'", "''") + "'";
5898
+ if (like_f != "")
5899
+ like_f = like_f + " or ";
5900
+ like_f = like_f + " upper(" +
5901
+ key +
5902
+ ") like '%" +
5903
+ obj_filtro.values[i].replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
5904
+ "' ESCAPE '$'";
5897
5905
  }
5898
5906
  else {
5899
5907
  include_null_value = true;
@@ -5908,26 +5916,31 @@
5908
5916
  if (model_1 != null)
5909
5917
  num_all = model_1.length;
5910
5918
  }
5911
- if (sq != "") {
5912
- if (obj_filtro.values.length != num_all) {
5919
+ if (key != 'pers_int ') {
5920
+ if (sq != "") {
5921
+ if (obj_filtro.values.length != num_all) {
5922
+ b_filter = true;
5923
+ if (add_end)
5924
+ filter_v = filter_v + " and ";
5925
+ if (!include_null_value)
5926
+ filter_v = filter_v + key + " in (" + sq + ")";
5927
+ else
5928
+ filter_v =
5929
+ filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
5930
+ }
5931
+ }
5932
+ else {
5913
5933
  b_filter = true;
5914
5934
  if (add_end)
5915
5935
  filter_v = filter_v + " and ";
5916
5936
  if (!include_null_value)
5917
- filter_v = filter_v + key + " in (" + sq + ")";
5937
+ filter_v = filter_v + " (1=0)";
5918
5938
  else
5919
- filter_v =
5920
- filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
5939
+ filter_v = filter_v + " " + key + " is null";
5921
5940
  }
5922
5941
  }
5923
5942
  else {
5924
- b_filter = true;
5925
- if (add_end)
5926
- filter_v = filter_v + " and ";
5927
- if (!include_null_value)
5928
- filter_v = filter_v + " (1=0)";
5929
- else
5930
- filter_v = filter_v + " " + key + " is null";
5943
+ filter_v = filter_v + "(" + like_f + ")";
5931
5944
  }
5932
5945
  }
5933
5946
  return filter_v;
@@ -15654,7 +15667,7 @@
15654
15667
  wkf_header_bar_v2.decorators = [
15655
15668
  { type: i0.Component, args: [{
15656
15669
  selector: "wkf_header_bar_v2",
15657
- template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayoutGap=\"15px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.lt-md=\"8px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <div>\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n Indietro</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"respingi()\"\n *ngIf=\"respingi_button\"\n color=\"warn\"\n >\n Respingi\n </button>\n </div>\n <div>\n <button\n mat-flat-button\n (click)=\"revisione()\"\n *ngIf=\"b_revisione\"\n color=\"accent\"\n >\n Revisione\n </button>\n </div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;\n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"8px\"\n >\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button\n ></div>\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.comm_c ? dt_agg?.comm_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_commenti()\"\n >\n <mat-icon>insert_comment</mat-icon>Commenti</button\n ></div>\n\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.all_c ? dt_agg?.all_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_upload()\"\n >\n <mat-icon>attach_file</mat-icon>Allegati</button\n ></div>\n\n <div>\n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>transfer_within_a_station</mat-icon>Workflow\n </button>\n </div>\n\n\n\n </div>\n </div>\n </div>\n "
15670
+ template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayoutGap=\"15px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.lt-md=\"8px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <div>\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n Indietro</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n ></div><div *ngIf=\"respingi_button\">\n <button\n mat-flat-button\n (click)=\"respingi()\"\n\n color=\"warn\"\n >\n Respingi\n </button>\n </div>\n <div *ngIf=\"b_revisione\">\n <button\n mat-flat-button\n (click)=\"revisione()\"\n\n color=\"accent\"\n >\n Revisione\n </button>\n </div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;\n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"8px\"\n >\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button\n ></div>\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.comm_c ? dt_agg?.comm_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_commenti()\"\n >\n <mat-icon>insert_comment</mat-icon>Commenti</button\n ></div>\n\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.all_c ? dt_agg?.all_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_upload()\"\n >\n <mat-icon>attach_file</mat-icon>Allegati</button\n ></div>\n\n <div>\n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>transfer_within_a_station</mat-icon>Workflow\n </button>\n </div>\n\n\n\n </div>\n </div>\n </div>\n "
15658
15671
  },] }
15659
15672
  ];
15660
15673
  wkf_header_bar_v2.ctorParameters = function () { return [
@@ -20995,21 +21008,26 @@
20995
21008
  };
20996
21009
  dati_aggiuntivi_v2.prototype.revisione = function () {
20997
21010
  var _this = this;
20998
- var p = new QParam();
20999
- p.sql = "UPDATE_DOCUMENTO_REV";
21000
- p.values = [this.id_applicativo, this.id_documento];
21001
- p.types = ['string', 'string'];
21002
- this.m_dataService.doQuery(p).subscribe(function (data) {
21003
- if (data != null)
21004
- if (data.result_msg == "OK") {
21005
- _this.alert('Revisione generata', 0);
21006
- _this.m_router.navigate([
21007
- _this.app_info.modulo_swf,
21008
- _this.id_applicativo,
21009
- _this.id_documento,
21010
- "edit",
21011
- ]);
21012
- }
21011
+ var dialogRef = this.m_dialog.open(fh_win_confirm, {
21012
+ disableClose: true, data: {
21013
+ title_dialog: "Conferma Operazione",
21014
+ msg_dialog: "Confermi di voler revisionare il documento?"
21015
+ }
21016
+ });
21017
+ dialogRef.afterClosed().subscribe(function (result) {
21018
+ if (result) {
21019
+ var p = new QParam();
21020
+ p.sql = "UPDATE_DOCUMENTO_REV";
21021
+ p.values = [_this.id_applicativo, _this.id_documento];
21022
+ p.types = ['string', 'string'];
21023
+ _this.m_dataService.doQuery(p).subscribe(function (data) {
21024
+ if (data != null)
21025
+ if (data.result_msg == "OK") {
21026
+ _this.alert('Revisione generata', 0);
21027
+ window.location.reload();
21028
+ }
21029
+ });
21030
+ }
21013
21031
  });
21014
21032
  };
21015
21033
  dati_aggiuntivi_v2.prototype.onResize = function (event) { };