@fluxhub/fluxhub-lib 10.0.392 → 10.0.394

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.
@@ -19641,6 +19641,7 @@
19641
19641
  this.b_valid = true;
19642
19642
  this.s_uto = "";
19643
19643
  this.b_apprf = false;
19644
+ this.loaded = false;
19644
19645
  setTimeout(function () {
19645
19646
  var px = new QParam();
19646
19647
  px.sql = "SELECT_ROLES_WKF_V2";
@@ -19683,6 +19684,7 @@
19683
19684
  }
19684
19685
  });
19685
19686
  });
19687
+ this.init_engine();
19686
19688
  }
19687
19689
  dati_aggiuntivi_v2.prototype.hasRole = function (s, b_check_admin) {
19688
19690
  if (b_check_admin === void 0) { b_check_admin = true; }
@@ -20557,6 +20559,10 @@
20557
20559
  };
20558
20560
  dati_aggiuntivi_v2.prototype.load_document = function () {
20559
20561
  var _this = this;
20562
+ if (this.app_info == null) {
20563
+ setTimeout(function () { _this.load_document(); }, 200);
20564
+ return;
20565
+ }
20560
20566
  console.log('start load_document', new Date());
20561
20567
  var p = new QParam();
20562
20568
  p.sql = "SELECT_WKF_DOCUMENT_NOREP";
@@ -21046,7 +21052,7 @@
21046
21052
  this.btnAssegna_label = "Assegna";
21047
21053
  this.btnRespingi_label = "RESPINGI";
21048
21054
  this.uti_s.set_home_title(this.app_info.descrizione_breve + " - Nuova Richiesta");
21049
- this.reset_form(this.app_info.descrizione_breve + " - Nuova Richiesta");
21055
+ this.reset_form_v(this.app_info.descrizione_breve + " - Nuova Richiesta");
21050
21056
  this.reset_counters_int(0, 0);
21051
21057
  /*
21052
21058
  dati_aggiuntivi.id_doc=id_documento;
@@ -21137,11 +21143,19 @@
21137
21143
  this.m_obj.codice + "/" + this.m_obj.v +
21138
21144
  " - " +
21139
21145
  this.m_obj.stat_stato);
21140
- this.reset_form(this.app_info.descrizione_breve +
21146
+ this.reset_form_v(this.app_info.descrizione_breve +
21141
21147
  " " +
21142
21148
  this.m_obj.codice +
21143
21149
  " - " +
21144
- this.m_obj.stat_stato); //+' ('+s_uto+')');
21150
+ this.m_obj.stat_stato);
21151
+ //+' ('+s_uto+')');
21152
+ };
21153
+ dati_aggiuntivi_v2.prototype.reset_form_v = function (t) {
21154
+ var _this = this;
21155
+ if (!this.loaded) {
21156
+ setTimeout(function () { _this.reset_form_v(t); return; }, 500);
21157
+ }
21158
+ this.reset_form(t);
21145
21159
  };
21146
21160
  dati_aggiuntivi_v2.prototype.revisione = function () {
21147
21161
  var _this = this;
@@ -21208,10 +21222,7 @@
21208
21222
  this.edit_doc();
21209
21223
  };
21210
21224
  dati_aggiuntivi_v2.prototype.ngAfterViewInit = function () {
21211
- var _this = this;
21212
- setTimeout(function () {
21213
- _this.init_engine();
21214
- });
21225
+ this.loaded = false;
21215
21226
  };
21216
21227
  dati_aggiuntivi_v2.prototype.setta_info_app = function (o) {
21217
21228
  this.app_info = o;