@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.
@@ -22941,6 +22941,7 @@ class dati_aggiuntivi_v2 {
22941
22941
  this.b_valid = true;
22942
22942
  this.s_uto = "";
22943
22943
  this.b_apprf = false;
22944
+ this.loaded = false;
22944
22945
  setTimeout(() => {
22945
22946
  let px = new QParam();
22946
22947
  px.sql = "SELECT_ROLES_WKF_V2";
@@ -22983,6 +22984,7 @@ class dati_aggiuntivi_v2 {
22983
22984
  }
22984
22985
  });
22985
22986
  });
22987
+ this.init_engine();
22986
22988
  }
22987
22989
  hasRole(s, b_check_admin = true) {
22988
22990
  if (this.wkf_users_roles === null)
@@ -23834,6 +23836,10 @@ class dati_aggiuntivi_v2 {
23834
23836
  }
23835
23837
  }
23836
23838
  load_document() {
23839
+ if (this.app_info == null) {
23840
+ setTimeout(() => { this.load_document(); }, 200);
23841
+ return;
23842
+ }
23837
23843
  console.log('start load_document', new Date());
23838
23844
  let p = new QParam();
23839
23845
  p.sql = "SELECT_WKF_DOCUMENT_NOREP";
@@ -24313,7 +24319,7 @@ class dati_aggiuntivi_v2 {
24313
24319
  this.btnAssegna_label = "Assegna";
24314
24320
  this.btnRespingi_label = "RESPINGI";
24315
24321
  this.uti_s.set_home_title(this.app_info.descrizione_breve + " - Nuova Richiesta");
24316
- this.reset_form(this.app_info.descrizione_breve + " - Nuova Richiesta");
24322
+ this.reset_form_v(this.app_info.descrizione_breve + " - Nuova Richiesta");
24317
24323
  this.reset_counters_int(0, 0);
24318
24324
  /*
24319
24325
  dati_aggiuntivi.id_doc=id_documento;
@@ -24404,11 +24410,18 @@ class dati_aggiuntivi_v2 {
24404
24410
  this.m_obj.codice + "/" + this.m_obj.v +
24405
24411
  " - " +
24406
24412
  this.m_obj.stat_stato);
24407
- this.reset_form(this.app_info.descrizione_breve +
24413
+ this.reset_form_v(this.app_info.descrizione_breve +
24408
24414
  " " +
24409
24415
  this.m_obj.codice +
24410
24416
  " - " +
24411
- this.m_obj.stat_stato); //+' ('+s_uto+')');
24417
+ this.m_obj.stat_stato);
24418
+ //+' ('+s_uto+')');
24419
+ }
24420
+ reset_form_v(t) {
24421
+ if (!this.loaded) {
24422
+ setTimeout(() => { this.reset_form_v(t); return; }, 500);
24423
+ }
24424
+ this.reset_form(t);
24412
24425
  }
24413
24426
  revisione() {
24414
24427
  let dialogRef = this.m_dialog.open(fh_win_confirm, {
@@ -24473,9 +24486,7 @@ class dati_aggiuntivi_v2 {
24473
24486
  this.edit_doc();
24474
24487
  }
24475
24488
  ngAfterViewInit() {
24476
- setTimeout(() => {
24477
- this.init_engine();
24478
- });
24489
+ this.loaded = false;
24479
24490
  }
24480
24491
  setta_info_app(o) {
24481
24492
  this.app_info = o;