@fluxhub/fluxhub-lib 10.0.33 → 10.0.35

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.
@@ -8191,7 +8191,7 @@ class FHGridComponent {
8191
8191
  q =
8192
8192
  " " +
8193
8193
  key +
8194
- " >= " +
8194
+ " > " +
8195
8195
  this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) +
8196
8196
  "";
8197
8197
  if (obj_filtro.type == "equals")
@@ -8216,7 +8216,7 @@ class FHGridComponent {
8216
8216
  q =
8217
8217
  " " +
8218
8218
  key +
8219
- " <= " +
8219
+ " < " +
8220
8220
  this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) +
8221
8221
  "";
8222
8222
  if (obj_filtro.type == "lessThanOrEqual")
@@ -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;