@fluxhub/fluxhub-lib 1.0.442 → 1.0.444

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.
@@ -5269,7 +5269,6 @@ class wkfapp {
5269
5269
  if (!m_service.checkCredentials()) {
5270
5270
  return;
5271
5271
  }
5272
- this.sort_field = "case when CHARINDEX('" + this.user_idp + "',autori)>0 then 1 else 0 end desc,codice desc";
5273
5272
  }
5274
5273
  /**
5275
5274
  * @param {?} a
@@ -5647,7 +5646,7 @@ class wkfapp {
5647
5646
  */
5648
5647
  test_utente() {
5649
5648
  /** @type {?} */
5650
- var p = new QParam();
5649
+ const p = new QParam();
5651
5650
  p.sql = "SELECT_UTENTI_WORKFLOW";
5652
5651
  p.types = ['string'];
5653
5652
  p.values = [this.id_applicativo];
@@ -5674,7 +5673,8 @@ class wkfapp {
5674
5673
  if (result != null)
5675
5674
  if (result.result != null)
5676
5675
  if (result.result == 'ok') {
5677
- p = new QParam();
5676
+ /** @type {?} */
5677
+ let p = new QParam();
5678
5678
  p.sql = "SELECT_USER_INFO_WKF";
5679
5679
  p.types = ['string'];
5680
5680
  p.values = [result.arrsel[0].username];
@@ -5702,18 +5702,12 @@ class wkfapp {
5702
5702
  this.user_email = data.result_data[0].email;
5703
5703
  this.imp = 'ANN. IMP: ' + data.result_data[0].cognome + ' ' + data.result_data[0].nome;
5704
5704
  this.get_grid().doFill('');
5705
- //browser.refresh()
5705
+ console.log(' this.user_idp ', this.user_idp);
5706
5706
  }
5707
5707
  }));
5708
5708
  }
5709
5709
  }));
5710
5710
  }
5711
- }), (/**
5712
- * @param {?} err
5713
- * @return {?}
5714
- */
5715
- err => {
5716
- console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
5717
5711
  }));
5718
5712
  }
5719
5713
  /**
@@ -5723,7 +5717,7 @@ class wkfapp {
5723
5717
  this
5724
5718
  .app_s
5725
5719
  .getState()
5726
- .wkf_obj = new Object();
5720
+ .wkf_obj = {};
5727
5721
  this
5728
5722
  .app_s
5729
5723
  .getState()
@@ -5962,6 +5956,7 @@ class wkfapp {
5962
5956
  () => { this.do_init(); }), 500);
5963
5957
  return;
5964
5958
  }
5959
+ this.sort_field = "case when CHARINDEX('" + this.user_idp + "',autori)>0 then 1 else 0 end desc,codice desc";
5965
5960
  /** @type {?} */
5966
5961
  let p = new QParam();
5967
5962
  p.sql = "SELECT_WKF_APP_INFO";
@@ -7965,8 +7960,8 @@ class FHAutoCompleteComponent extends FHValueAccessor {
7965
7960
  //automatic load data from database default is true
7966
7961
  this.sql = "";
7967
7962
  this.label = "";
7968
- this.types = new Array();
7969
- this.values = new Array();
7963
+ this.types = [];
7964
+ this.values = [];
7970
7965
  this.hidden = false;
7971
7966
  this.db_type = "1";
7972
7967
  this.enabled = true;
@@ -7980,7 +7975,7 @@ class FHAutoCompleteComponent extends FHValueAccessor {
7980
7975
  this.focusout = new EventEmitter();
7981
7976
  this.descri_val = "";
7982
7977
  this.sItem = "";
7983
- this.searchItemsFiltered = new Array();
7978
+ this.searchItemsFiltered = [];
7984
7979
  this.is_loaded = false;
7985
7980
  this.selval = null;
7986
7981
  this.errorMsg = "";
@@ -8011,10 +8006,10 @@ class FHAutoCompleteComponent extends FHValueAccessor {
8011
8006
  */
8012
8007
  onChange(e) {
8013
8008
  // console.log('onChange()');
8014
- this.searchItemsFiltered = new Array();
8009
+ this.searchItemsFiltered = [];
8015
8010
  if (this.sItem != null) {
8016
8011
  if (this.sItem != '') {
8017
- this.searchItemsFiltered = new Array();
8012
+ this.searchItemsFiltered = [];
8018
8013
  /** @type {?} */
8019
8014
  let ps = this.sItem.toLowerCase();
8020
8015
  for (let i = 0; i < this.myData.length; i++) {
@@ -8044,7 +8039,6 @@ class FHAutoCompleteComponent extends FHValueAccessor {
8044
8039
  * @return {?}
8045
8040
  */
8046
8041
  selectedSearchItem(event) {
8047
- console.log('selectedSearchItem ', event);
8048
8042
  this.setByDescri(event.option.value);
8049
8043
  this.sItem = event.option.value;
8050
8044
  this.ch(event);
@@ -8054,7 +8048,6 @@ class FHAutoCompleteComponent extends FHValueAccessor {
8054
8048
  * @return {?}
8055
8049
  */
8056
8050
  ch($event) {
8057
- console.log('ch ', $event);
8058
8051
  /** @type {?} */
8059
8052
  const value = this.getValue();
8060
8053
  this
@@ -12072,6 +12065,7 @@ class win_uploads {
12072
12065
  this.b_edit_loaded = false;
12073
12066
  this.title = "ALLEGATI";
12074
12067
  this.b_ini = false;
12068
+ this.sovrascrivi_path = '';
12075
12069
  this.single = true;
12076
12070
  this.descrizione = '';
12077
12071
  this.label = 'Descrizione Allegato';
@@ -12116,9 +12110,10 @@ class win_uploads {
12116
12110
  */
12117
12111
  download_all(ax) {
12118
12112
  if (ax.App != null)
12119
- window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12120
- if (ax.APP != null)
12121
- window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.APP + '/' + ax.K + '/' + ax.Filename);
12113
+ if (this.sovrascrivi_path == '')
12114
+ window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12115
+ else
12116
+ window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12122
12117
  }
12123
12118
  /**
12124
12119
  * @param {?} ax
@@ -13361,34 +13356,47 @@ class win_log {
13361
13356
  win_log.decorators = [
13362
13357
  { type: Component, args: [{
13363
13358
  template: `
13364
- <div mat-dialog-content style="width:100%;font-size: 12px;height: 90vh">
13365
- <mat-tab-group #zz style="width:100%;height: 100%"
13366
- [style.height]="m_appService.getState().body_height">
13367
- <mat-tab label="DIAGRAMMA" style="width:100%;height:100%" *ngIf="b_flussook">
13368
13359
 
13360
+ <mat-card-content>
13361
+
13362
+ <mat-tab-group #zz style="width:100%">
13363
+
13364
+ <mat-tab label="DIAGRAMMA" style="width:100%;height:100%" *ngIf="b_flussook">
13365
+ <mat-toolbar color="primary" style="width:90%;"><div fxFlex="20">WORKFLOW</div>
13366
+ <div fxLayout="row" fxLayoutAlign="center end" fxFlex="80" >
13367
+
13368
+ <button mat-flat-button color="accent" (click)="dialogRef.close('')">
13369
+ <mat-icon>close</mat-icon>
13370
+ CHIUDI
13371
+ </button>
13372
+ </div>
13373
+ </mat-toolbar>
13374
+ <div [style.height]="(m_appService.getState().body_h-90)+'px'" style="overflow:auto;" >
13369
13375
  <div style="width:100%;height:100%" id="canvas"></div>
13370
-
13376
+ </div>
13371
13377
 
13372
13378
  </mat-tab>
13373
13379
 
13374
13380
  <mat-tab label="LOGS">
13375
- <mat-toolbar color="primary">{{title}}
13376
- <div fxLayout="row" fxLayoutAlign="center end" style="width:100%;">
13377
13381
 
13378
-
13379
-
13380
- <button mat-flat-button color="accent" (click)="ins()" *ngIf="!b_edit && commenti_insert">
13381
- <mat-icon>note_add</mat-icon>
13382
- INSERISCI
13383
- </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
13384
- <button mat-flat-button color="accent" (click)="dialogRef.close('')" *ngIf="!b_edit && commenti_insert">
13385
- <mat-icon>close</mat-icon>
13386
- CHIUDI
13387
- </button>
13388
- </div>
13382
+ <mat-toolbar color="primary">
13383
+ <div fxLayout="row" >
13384
+ {{title}}
13385
+ <div fxLayout="row" fxLayoutAlign="center end" >
13386
+
13387
+ <button mat-flat-button color="accent" (click)="ins()" *ngIf="!b_edit && commenti_insert">
13388
+ <mat-icon>note_add</mat-icon>
13389
+ INSERISCI
13390
+ </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
13391
+ <button mat-flat-button color="accent" (click)="dialogRef.close('')" *ngIf="!b_edit && commenti_insert">
13392
+ <mat-icon>close</mat-icon>
13393
+ CHIUDI
13394
+ </button>
13395
+ </div></div>
13389
13396
  </mat-toolbar>
13390
13397
  <br>
13391
- <div mat-dialog-content>
13398
+ <div [style.height]="(m_appService.getState().body_h-90)+'px'" style="overflow:auto;width:90%">
13399
+
13392
13400
  <section class="bs" *ngIf="b_edit">
13393
13401
  <br>
13394
13402
  <mat-form-field *ngIf="b_edit" appearance="outline" floatLabel="always"><mat-label>Commento</mat-label>
@@ -13405,7 +13413,6 @@ win_log.decorators = [
13405
13413
  <br><br>
13406
13414
  </section>
13407
13415
  <table *ngIf="!b_edit" class="fh_table">
13408
-
13409
13416
  <thead>
13410
13417
  <tr>
13411
13418
  <th width="15%">Data</th>
@@ -13430,11 +13437,14 @@ win_log.decorators = [
13430
13437
  </tr>
13431
13438
  </tbody>
13432
13439
  </table>
13433
- </div>
13440
+
13434
13441
  <br>
13442
+ </div>
13443
+
13435
13444
  </mat-tab>
13445
+
13436
13446
  </mat-tab-group>
13437
- </div>
13447
+ </mat-card-content>
13438
13448
  <div style="width:100%;text-align:center;" *ngIf="!b_edit && !commenti_insert">
13439
13449
 
13440
13450
  <button mat-flat-button color="accent" (click)="dialogRef.close('')" >
@@ -15886,7 +15896,7 @@ class dati_aggiuntivi {
15886
15896
  */
15887
15897
  open_wkf(inser_c = false) {
15888
15898
  /** @type {?} */
15889
- let dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: "95%" });
15899
+ let dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%" });
15890
15900
  dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
15891
15901
  dialogRef.componentInstance.lettori = this.m_obj.lettori;
15892
15902
  dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
@@ -15921,11 +15931,13 @@ class dati_aggiuntivi {
15921
15931
  }));
15922
15932
  }
15923
15933
  /**
15934
+ * @param {?=} sovra_path
15924
15935
  * @return {?}
15925
15936
  */
15926
- open_upload() {
15937
+ open_upload(sovra_path = '') {
15927
15938
  /** @type {?} */
15928
15939
  let dialogRef = this.m_dialog.open(win_uploads, { 'disableClose': true, width: "90%", height: (this.app_s.getState().body_h - 300) + 'px' });
15940
+ dialogRef.componentInstance.sovrascrivi_path = sovra_path;
15929
15941
  dialogRef.afterClosed().subscribe((/**
15930
15942
  * @param {?} result
15931
15943
  * @return {?}
@@ -16548,9 +16560,6 @@ class dati_aggiuntivi {
16548
16560
  * @return {?}
16549
16561
  */
16550
16562
  return_edit() {
16551
- console.log('return_edit');
16552
- console.log('rthis.m_obj.autori ', this.m_obj.autori);
16553
- console.log('this.user_idp ', this.user_idp);
16554
16563
  for (let i = 0; i < this.livs.length; i++)
16555
16564
  if (this.livs[i].livello == this.m_obj.stato) {
16556
16565
  if (this.livs[i].abilita_indietro == 1)