@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.
@@ -15865,6 +15865,11 @@
15865
15865
  if (b_notif_av)
15866
15866
  this.alert("Avanzamento effettuato", 0);
15867
15867
  };
15868
+ dati_aggiuntivi.prototype.addOverrideLvlUser = function (lvlcfg) {
15869
+ if (this.override_livs == null)
15870
+ this.override_livs = [];
15871
+ this.override_livs.push(lvlcfg);
15872
+ };
15868
15873
  dati_aggiuntivi.prototype.getLvlInfo = function (lvl) {
15869
15874
  for (var i = 0; i < this.livs.length; i++)
15870
15875
  if (lvl == this.livs[i].livello) {
@@ -16141,19 +16146,29 @@
16141
16146
  };
16142
16147
  dati_aggiuntivi.prototype.ok_load_document = function (o) {
16143
16148
  var _this = this;
16144
- this.m_obj = JSON.parse(JSON.stringify(o));
16149
+ this.m_obj = (JSON.parse(JSON.stringify(o)));
16145
16150
  this.edit_b(false);
16146
16151
  this.save_to_app_state();
16147
16152
  var p = new QParam();
16148
16153
  p.sql = "SELECT_LIVELLI_DOC";
16149
- p.types = ["string", "string"];
16154
+ p.types = ['string', 'string'];
16150
16155
  p.values = [this.id_applicativo, this.id_documento];
16151
16156
  this.m_dataService.doQuery(p).subscribe(function (data) {
16152
16157
  if (data != null)
16153
16158
  if (data.result_msg == "OK") {
16159
+ if (_this.override_livs != null)
16160
+ if (data.result_data != null)
16161
+ for (var y = 0; y < _this.override_livs.length; y++)
16162
+ for (var i = 0; i < data.result_data.length; i++)
16163
+ if (data.result_data[i].id_Applicativo != null)
16164
+ if (data.result_data[i].id_Applicativo == _this.override_livs[y].id_Applicativo) {
16165
+ data.result_data[i].idp = _this.override_livs[y].idp;
16166
+ data.result_data[i].gruppo_parallelo = _this.override_livs[y].gruppo_parallelo;
16167
+ data.result_data[i].nc = _this.override_livs[y].nc;
16168
+ }
16154
16169
  _this.ok_livelli_doc(data.result_data);
16155
16170
  }
16156
- }, function (err) { });
16171
+ });
16157
16172
  };
16158
16173
  dati_aggiuntivi.prototype.ok_livelli_doc = function (r) {
16159
16174
  this.livs = r;