@fluxhub/fluxhub-lib 10.0.392 → 10.0.393

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)
@@ -24313,7 +24315,7 @@ class dati_aggiuntivi_v2 {
24313
24315
  this.btnAssegna_label = "Assegna";
24314
24316
  this.btnRespingi_label = "RESPINGI";
24315
24317
  this.uti_s.set_home_title(this.app_info.descrizione_breve + " - Nuova Richiesta");
24316
- this.reset_form(this.app_info.descrizione_breve + " - Nuova Richiesta");
24318
+ this.reset_form_v(this.app_info.descrizione_breve + " - Nuova Richiesta");
24317
24319
  this.reset_counters_int(0, 0);
24318
24320
  /*
24319
24321
  dati_aggiuntivi.id_doc=id_documento;
@@ -24404,11 +24406,18 @@ class dati_aggiuntivi_v2 {
24404
24406
  this.m_obj.codice + "/" + this.m_obj.v +
24405
24407
  " - " +
24406
24408
  this.m_obj.stat_stato);
24407
- this.reset_form(this.app_info.descrizione_breve +
24409
+ this.reset_form_v(this.app_info.descrizione_breve +
24408
24410
  " " +
24409
24411
  this.m_obj.codice +
24410
24412
  " - " +
24411
- this.m_obj.stat_stato); //+' ('+s_uto+')');
24413
+ this.m_obj.stat_stato);
24414
+ //+' ('+s_uto+')');
24415
+ }
24416
+ reset_form_v(t) {
24417
+ if (!this.loaded) {
24418
+ setTimeout(() => { this.reset_form_v(t); return; }, 500);
24419
+ }
24420
+ this.reset_form(t);
24412
24421
  }
24413
24422
  revisione() {
24414
24423
  let dialogRef = this.m_dialog.open(fh_win_confirm, {
@@ -24473,9 +24482,7 @@ class dati_aggiuntivi_v2 {
24473
24482
  this.edit_doc();
24474
24483
  }
24475
24484
  ngAfterViewInit() {
24476
- setTimeout(() => {
24477
- this.init_engine();
24478
- });
24485
+ this.loaded = false;
24479
24486
  }
24480
24487
  setta_info_app(o) {
24481
24488
  this.app_info = o;