@fluxhub/fluxhub-lib 1.0.442 → 1.0.443

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
@@ -13361,34 +13354,47 @@ class win_log {
13361
13354
  win_log.decorators = [
13362
13355
  { type: Component, args: [{
13363
13356
  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
13357
 
13358
+ <mat-card-content>
13359
+
13360
+ <mat-tab-group #zz style="width:100%">
13361
+
13362
+ <mat-tab label="DIAGRAMMA" style="width:100%;height:100%" *ngIf="b_flussook">
13363
+ <mat-toolbar color="primary" style="width:90%;"><div fxFlex="20">WORKFLOW</div>
13364
+ <div fxLayout="row" fxLayoutAlign="center end" fxFlex="80" >
13365
+
13366
+ <button mat-flat-button color="accent" (click)="dialogRef.close('')">
13367
+ <mat-icon>close</mat-icon>
13368
+ CHIUDI
13369
+ </button>
13370
+ </div>
13371
+ </mat-toolbar>
13372
+ <div [style.height]="(m_appService.getState().body_h-90)+'px'" style="overflow:auto;" >
13369
13373
  <div style="width:100%;height:100%" id="canvas"></div>
13370
-
13374
+ </div>
13371
13375
 
13372
13376
  </mat-tab>
13373
13377
 
13374
13378
  <mat-tab label="LOGS">
13375
- <mat-toolbar color="primary">{{title}}
13376
- <div fxLayout="row" fxLayoutAlign="center end" style="width:100%;">
13377
13379
 
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>
13380
+ <mat-toolbar color="primary">
13381
+ <div fxLayout="row" >
13382
+ {{title}}
13383
+ <div fxLayout="row" fxLayoutAlign="center end" >
13384
+
13385
+ <button mat-flat-button color="accent" (click)="ins()" *ngIf="!b_edit && commenti_insert">
13386
+ <mat-icon>note_add</mat-icon>
13387
+ INSERISCI
13388
+ </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
13389
+ <button mat-flat-button color="accent" (click)="dialogRef.close('')" *ngIf="!b_edit && commenti_insert">
13390
+ <mat-icon>close</mat-icon>
13391
+ CHIUDI
13392
+ </button>
13393
+ </div></div>
13389
13394
  </mat-toolbar>
13390
13395
  <br>
13391
- <div mat-dialog-content>
13396
+ <div [style.height]="(m_appService.getState().body_h-90)+'px'" style="overflow:auto;width:90%">
13397
+
13392
13398
  <section class="bs" *ngIf="b_edit">
13393
13399
  <br>
13394
13400
  <mat-form-field *ngIf="b_edit" appearance="outline" floatLabel="always"><mat-label>Commento</mat-label>
@@ -13405,7 +13411,6 @@ win_log.decorators = [
13405
13411
  <br><br>
13406
13412
  </section>
13407
13413
  <table *ngIf="!b_edit" class="fh_table">
13408
-
13409
13414
  <thead>
13410
13415
  <tr>
13411
13416
  <th width="15%">Data</th>
@@ -13430,11 +13435,14 @@ win_log.decorators = [
13430
13435
  </tr>
13431
13436
  </tbody>
13432
13437
  </table>
13433
- </div>
13438
+
13434
13439
  <br>
13440
+ </div>
13441
+
13435
13442
  </mat-tab>
13443
+
13436
13444
  </mat-tab-group>
13437
- </div>
13445
+ </mat-card-content>
13438
13446
  <div style="width:100%;text-align:center;" *ngIf="!b_edit && !commenti_insert">
13439
13447
 
13440
13448
  <button mat-flat-button color="accent" (click)="dialogRef.close('')" >
@@ -15886,7 +15894,7 @@ class dati_aggiuntivi {
15886
15894
  */
15887
15895
  open_wkf(inser_c = false) {
15888
15896
  /** @type {?} */
15889
- let dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: "95%" });
15897
+ let dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%" });
15890
15898
  dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
15891
15899
  dialogRef.componentInstance.lettori = this.m_obj.lettori;
15892
15900
  dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
@@ -16548,9 +16556,6 @@ class dati_aggiuntivi {
16548
16556
  * @return {?}
16549
16557
  */
16550
16558
  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
16559
  for (let i = 0; i < this.livs.length; i++)
16555
16560
  if (this.livs[i].livello == this.m_obj.stato) {
16556
16561
  if (this.livs[i].abilita_indietro == 1)