@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.
@@ -24177,6 +24177,9 @@ class dati_aggiuntivi_v2 {
24177
24177
  });
24178
24178
  }
24179
24179
  */
24180
+ wkf_rule_before(transazioni, step, context) {
24181
+ return transazioni;
24182
+ }
24180
24183
  calcolanextandjump() {
24181
24184
  console.log('calcolanextandjump');
24182
24185
  let p = new QParam();
@@ -24188,6 +24191,7 @@ class dati_aggiuntivi_v2 {
24188
24191
  if (data.result_msg == "OK") {
24189
24192
  let transazioni = data.result_data;
24190
24193
  console.log('transazioni ', transazioni);
24194
+ transazioni = this.wkf_rule_before(transazioni, this.clevel.step, this.clevel.context);
24191
24195
  if (transazioni.length == 0) {
24192
24196
  this.alert('Nessuna transizione definita dallo step: ' + this.clevel.step, 1);
24193
24197
  return;
@@ -24732,6 +24736,7 @@ class dati_aggiuntivi_v2 {
24732
24736
  });
24733
24737
  }
24734
24738
  save_agg() {
24739
+ this.before_save();
24735
24740
  this.b_edit_before = this.b_edit && this.b_rip_pulsanti;
24736
24741
  this.edit_b(false);
24737
24742
  let arr = this.getfieldvalues();
@@ -24803,7 +24808,7 @@ class dati_aggiuntivi_v2 {
24803
24808
  ok_insert_aggiuntivi() {
24804
24809
  if (!this.btnprocedi) {
24805
24810
  this.alert("DOCUMENTO SALVATO", 0);
24806
- this.saved_event();
24811
+ this.after_save();
24807
24812
  this.edit_b(this.b_edit_before);
24808
24813
  if (!this.b_edit && !this.btnprocedi)
24809
24814
  this.m_router.navigate([
@@ -25354,7 +25359,8 @@ class dati_aggiuntivi_v2 {
25354
25359
  }
25355
25360
  }
25356
25361
  }
25357
- saved_event() { }
25362
+ after_save() { }
25363
+ before_save() { }
25358
25364
  edit_doc() {
25359
25365
  this.load_document();
25360
25366
  }