@fluxhub/fluxhub-lib 10.0.405 → 10.0.407

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.
@@ -21364,7 +21364,9 @@ class win_info_doc_v2 {
21364
21364
  }
21365
21365
  load_info(data) {
21366
21366
  console.log('data ', data);
21367
- this.codice = data.codice;
21367
+ if (data.v == null)
21368
+ data.v = 1;
21369
+ this.codice = data.codice + '/' + data.v;
21368
21370
  this.data_richiesta = data.data_richiesta;
21369
21371
  this.richiedente = data.richiedente;
21370
21372
  this.stato = data.stato;
@@ -23405,8 +23407,7 @@ class dati_aggiuntivi_v2 {
23405
23407
  this.resp_b(true);
23406
23408
  return;
23407
23409
  }
23408
- console.log('this.transizione_info.create_ver ', this.transizione_info.create_ver);
23409
- this.exec_wkf(o, this.nlevel, result.arrsel, result.nota);
23410
+ this.exec_wkf(o, this.nlevel, result.arrsel, result.nota, this.transizione_info.create_ver);
23410
23411
  });
23411
23412
  }
23412
23413
  else {
@@ -23441,8 +23442,7 @@ class dati_aggiuntivi_v2 {
23441
23442
  this.resp_b(true);
23442
23443
  return;
23443
23444
  }
23444
- console.log('this.transizione_info.create_ver ', this.transizione_info.create_ver);
23445
- this.exec_wkf(o, this.nlevel, arrAutori, result);
23445
+ this.exec_wkf(o, this.nlevel, arrAutori, result, this.transizione_info.create_ver);
23446
23446
  });
23447
23447
  }
23448
23448
  /*
@@ -23524,15 +23524,19 @@ class dati_aggiuntivi_v2 {
23524
23524
  });
23525
23525
  }*/
23526
23526
  }
23527
- exec_wkf(trans, liv, arrdest, comm) {
23528
- console.log(trans, liv, arrdest, comm);
23527
+ exec_wkf(trans, liv, arrdest, comm, crea_ver = false) {
23528
+ if (crea_ver == null)
23529
+ crea_ver = false;
23529
23530
  this.dialogRef_ww = this.m_dialog.open(fh_win_wait, {
23530
23531
  disableClose: true, data: { label: 'Attendere' }
23531
23532
  });
23532
23533
  this.ttw = 0;
23533
23534
  let fs = new FSInput();
23534
23535
  fs.command = "exec_app";
23535
- fs.p1 = 'exec_wkf';
23536
+ if (!crea_ver)
23537
+ fs.p1 = 'exec_wkf';
23538
+ else
23539
+ fs.p1 = 'create_ver';
23536
23540
  fs.p2 = JSON.stringify({
23537
23541
  transizione: trans,
23538
23542
  destinatari: arrdest,