@fluxhub/fluxhub-lib 10.0.660 → 10.0.662

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.
@@ -24657,7 +24657,7 @@ class dati_aggiuntivi_v2 {
24657
24657
  this.update_status(true, true, null, null, 5);
24658
24658
  return;
24659
24659
  }
24660
- this.exec_wkf(o, this.nlevel, result.arrsel, result.nota, this.transizione_info.create_ver);
24660
+ this.exec_wkf(o, this.nlevel, result.arrsel, result.nota, this.transizione_info.create_ver, null);
24661
24661
  });
24662
24662
  }
24663
24663
  else {
@@ -24666,7 +24666,24 @@ class dati_aggiuntivi_v2 {
24666
24666
  if (v.nc == null)
24667
24667
  v.nc = v.value.split('*').join('');
24668
24668
  });
24669
- console.log('arrAutori ', arrAutori);
24669
+ let arr_aut = [];
24670
+ let arr_aut_all = JSON.parse(JSON.stringify(arrAutori));
24671
+ let b_f = false;
24672
+ arrAutori.map((v) => {
24673
+ if (v.default_value != null)
24674
+ if (v.default_value == 1)
24675
+ b_f = true;
24676
+ });
24677
+ console.log('b_f ', b_f);
24678
+ if (b_f) {
24679
+ arrAutori.map((v) => {
24680
+ if (v.default_value != null)
24681
+ if (v.default_value == 1)
24682
+ arr_aut.push(v);
24683
+ });
24684
+ arrAutori = JSON.parse(JSON.stringify(arr_aut));
24685
+ }
24686
+ console.log('arrAutori ', arrAutori); //qui6
24670
24687
  for (let i = 0; i < arrAutori.length; i++)
24671
24688
  if (arrAutori[i].nc != null)
24672
24689
  if (sp.indexOf(arrAutori[i].nc) == -1) {
@@ -24695,7 +24712,7 @@ class dati_aggiuntivi_v2 {
24695
24712
  this.update_status(true, true, null, null, 7);
24696
24713
  return;
24697
24714
  }
24698
- this.exec_wkf(o, this.nlevel, arrAutori, result, this.transizione_info.create_ver);
24715
+ this.exec_wkf(o, this.nlevel, arrAutori, result, this.transizione_info.create_ver, arr_aut_all);
24699
24716
  });
24700
24717
  }
24701
24718
  /*
@@ -24869,13 +24886,15 @@ class dati_aggiuntivi_v2 {
24869
24886
  }
24870
24887
  });
24871
24888
  }
24872
- exec_wkf(trans, liv, arrdest, comm, crea_ver = false) {
24889
+ exec_wkf(trans, liv, arrdest, comm, crea_ver = false, assegnati_paralleli) {
24873
24890
  if (crea_ver == null)
24874
24891
  crea_ver = false;
24875
24892
  this.dialogRef_ww = this.m_dialog.open(fh_win_wait, {
24876
24893
  disableClose: true, data: { label: this.tsr.instant('Attendere') }
24877
24894
  });
24878
24895
  this.ttw = 0;
24896
+ if (assegnati_paralleli == null)
24897
+ assegnati_paralleli = JSON.parse(JSON.stringify(arrdest));
24879
24898
  let fs = new FSInput();
24880
24899
  fs.command = "exec_app";
24881
24900
  if (!crea_ver)
@@ -24886,6 +24905,7 @@ class dati_aggiuntivi_v2 {
24886
24905
  transizione: trans,
24887
24906
  destinatari: arrdest,
24888
24907
  commento: comm,
24908
+ assegnati_paralleli: assegnati_paralleli,
24889
24909
  id_applicazione: this.id_applicativo,
24890
24910
  id_documento: this.id_documento,
24891
24911
  username: this.app_s.user,