@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.
@@ -14629,7 +14629,9 @@
14629
14629
  };
14630
14630
  win_info_doc_v2.prototype.load_info = function (data) {
14631
14631
  console.log('data ', data);
14632
- this.codice = data.codice;
14632
+ if (data.v == null)
14633
+ data.v = 1;
14634
+ this.codice = data.codice + '/' + data.v;
14633
14635
  this.data_richiesta = data.data_richiesta;
14634
14636
  this.richiedente = data.richiedente;
14635
14637
  this.stato = data.stato;
@@ -20184,8 +20186,7 @@
20184
20186
  _this.resp_b(true);
20185
20187
  return;
20186
20188
  }
20187
- console.log('this.transizione_info.create_ver ', _this.transizione_info.create_ver);
20188
- _this.exec_wkf(o, _this.nlevel, result.arrsel, result.nota);
20189
+ _this.exec_wkf(o, _this.nlevel, result.arrsel, result.nota, _this.transizione_info.create_ver);
20189
20190
  });
20190
20191
  }
20191
20192
  else {
@@ -20220,8 +20221,7 @@
20220
20221
  _this.resp_b(true);
20221
20222
  return;
20222
20223
  }
20223
- console.log('this.transizione_info.create_ver ', _this.transizione_info.create_ver);
20224
- _this.exec_wkf(o, _this.nlevel, arrAutori, result);
20224
+ _this.exec_wkf(o, _this.nlevel, arrAutori, result, _this.transizione_info.create_ver);
20225
20225
  });
20226
20226
  }
20227
20227
  /*
@@ -20303,16 +20303,21 @@
20303
20303
  });
20304
20304
  }*/
20305
20305
  };
20306
- dati_aggiuntivi_v2.prototype.exec_wkf = function (trans, liv, arrdest, comm) {
20306
+ dati_aggiuntivi_v2.prototype.exec_wkf = function (trans, liv, arrdest, comm, crea_ver) {
20307
20307
  var _this = this;
20308
- console.log(trans, liv, arrdest, comm);
20308
+ if (crea_ver === void 0) { crea_ver = false; }
20309
+ if (crea_ver == null)
20310
+ crea_ver = false;
20309
20311
  this.dialogRef_ww = this.m_dialog.open(fh_win_wait, {
20310
20312
  disableClose: true, data: { label: 'Attendere' }
20311
20313
  });
20312
20314
  this.ttw = 0;
20313
20315
  var fs = new FSInput();
20314
20316
  fs.command = "exec_app";
20315
- fs.p1 = 'exec_wkf';
20317
+ if (!crea_ver)
20318
+ fs.p1 = 'exec_wkf';
20319
+ else
20320
+ fs.p1 = 'create_ver';
20316
20321
  fs.p2 = JSON.stringify({
20317
20322
  transizione: trans,
20318
20323
  destinatari: arrdest,