@fluxhub/fluxhub-lib 10.0.545 → 10.0.547

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.
@@ -22675,6 +22675,9 @@
22675
22675
  });
22676
22676
  }
22677
22677
  */
22678
+ dati_aggiuntivi_v2.prototype.wkf_rule_before = function (transazioni, step, context) {
22679
+ return transazioni;
22680
+ };
22678
22681
  dati_aggiuntivi_v2.prototype.calcolanextandjump = function () {
22679
22682
  var _this = this;
22680
22683
  console.log('calcolanextandjump');
@@ -22687,6 +22690,7 @@
22687
22690
  if (data.result_msg == "OK") {
22688
22691
  var transazioni = data.result_data;
22689
22692
  console.log('transazioni ', transazioni);
22693
+ transazioni = _this.wkf_rule_before(transazioni, _this.clevel.step, _this.clevel.context);
22690
22694
  if (transazioni.length == 0) {
22691
22695
  _this.alert('Nessuna transizione definita dallo step: ' + _this.clevel.step, 1);
22692
22696
  return;
@@ -23249,6 +23253,7 @@
23249
23253
  };
23250
23254
  dati_aggiuntivi_v2.prototype.save_agg = function () {
23251
23255
  var _this = this;
23256
+ this.before_save();
23252
23257
  this.b_edit_before = this.b_edit && this.b_rip_pulsanti;
23253
23258
  this.edit_b(false);
23254
23259
  var arr = this.getfieldvalues();
@@ -23320,7 +23325,7 @@
23320
23325
  dati_aggiuntivi_v2.prototype.ok_insert_aggiuntivi = function () {
23321
23326
  if (!this.btnprocedi) {
23322
23327
  this.alert("DOCUMENTO SALVATO", 0);
23323
- this.saved_event();
23328
+ this.after_save();
23324
23329
  this.edit_b(this.b_edit_before);
23325
23330
  if (!this.b_edit && !this.btnprocedi)
23326
23331
  this.m_router.navigate([
@@ -23882,7 +23887,8 @@
23882
23887
  }
23883
23888
  }
23884
23889
  };
23885
- dati_aggiuntivi_v2.prototype.saved_event = function () { };
23890
+ dati_aggiuntivi_v2.prototype.after_save = function () { };
23891
+ dati_aggiuntivi_v2.prototype.before_save = function () { };
23886
23892
  dati_aggiuntivi_v2.prototype.edit_doc = function () {
23887
23893
  this.load_document();
23888
23894
  };