@fluxhub/fluxhub-lib 10.0.33 → 10.0.34

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.
@@ -16500,6 +16500,11 @@ class dati_aggiuntivi {
16500
16500
  if (b_notif_av)
16501
16501
  this.alert("Avanzamento effettuato", 0);
16502
16502
  }
16503
+ addOverrideLvlUser(lvlcfg) {
16504
+ if (this.override_livs == null)
16505
+ this.override_livs = [];
16506
+ this.override_livs.push(lvlcfg);
16507
+ }
16503
16508
  getLvlInfo(lvl) {
16504
16509
  for (let i = 0; i < this.livs.length; i++)
16505
16510
  if (lvl == this.livs[i].livello) {
@@ -16767,19 +16772,29 @@ class dati_aggiuntivi {
16767
16772
  }, (err) => { });
16768
16773
  }
16769
16774
  ok_load_document(o) {
16770
- this.m_obj = JSON.parse(JSON.stringify(o));
16775
+ this.m_obj = (JSON.parse(JSON.stringify(o)));
16771
16776
  this.edit_b(false);
16772
16777
  this.save_to_app_state();
16773
16778
  let p = new QParam();
16774
16779
  p.sql = "SELECT_LIVELLI_DOC";
16775
- p.types = ["string", "string"];
16780
+ p.types = ['string', 'string'];
16776
16781
  p.values = [this.id_applicativo, this.id_documento];
16777
- this.m_dataService.doQuery(p).subscribe((data) => {
16782
+ this.m_dataService.doQuery(p).subscribe(data => {
16778
16783
  if (data != null)
16779
16784
  if (data.result_msg == "OK") {
16785
+ if (this.override_livs != null)
16786
+ if (data.result_data != null)
16787
+ for (var y = 0; y < this.override_livs.length; y++)
16788
+ for (var i = 0; i < data.result_data.length; i++)
16789
+ if (data.result_data[i].id_Applicativo != null)
16790
+ if (data.result_data[i].id_Applicativo == this.override_livs[y].id_Applicativo) {
16791
+ data.result_data[i].idp = this.override_livs[y].idp;
16792
+ data.result_data[i].gruppo_parallelo = this.override_livs[y].gruppo_parallelo;
16793
+ data.result_data[i].nc = this.override_livs[y].nc;
16794
+ }
16780
16795
  this.ok_livelli_doc(data.result_data);
16781
16796
  }
16782
- }, (err) => { });
16797
+ });
16783
16798
  }
16784
16799
  ok_livelli_doc(r) {
16785
16800
  this.livs = r;