@fluxhub/fluxhub-lib 10.0.32 → 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.
@@ -1083,7 +1083,7 @@ class FHComboboxComponent {
1083
1083
  this.smtr.nativeElement.focus();
1084
1084
  }
1085
1085
  reset() {
1086
- console.log("reset");
1086
+ //console.log("reset");
1087
1087
  this.selval = "-1";
1088
1088
  this.valDef = "-1";
1089
1089
  this.myData = new Array();
@@ -1151,11 +1151,9 @@ class FHComboboxComponent {
1151
1151
  b_found = true;
1152
1152
  });
1153
1153
  if (!b_found) {
1154
- console.log('Inserisco ', o);
1154
+ // console.log('Inserisco ',o);
1155
1155
  this.myData.push(o);
1156
- }
1157
- else
1158
- console.log('Esiste già ', o);
1156
+ } //else console.log('Esiste già ',o);
1159
1157
  }
1160
1158
  resetD(o) {
1161
1159
  this.myData = o;
@@ -16502,6 +16500,11 @@ class dati_aggiuntivi {
16502
16500
  if (b_notif_av)
16503
16501
  this.alert("Avanzamento effettuato", 0);
16504
16502
  }
16503
+ addOverrideLvlUser(lvlcfg) {
16504
+ if (this.override_livs == null)
16505
+ this.override_livs = [];
16506
+ this.override_livs.push(lvlcfg);
16507
+ }
16505
16508
  getLvlInfo(lvl) {
16506
16509
  for (let i = 0; i < this.livs.length; i++)
16507
16510
  if (lvl == this.livs[i].livello) {
@@ -16769,19 +16772,29 @@ class dati_aggiuntivi {
16769
16772
  }, (err) => { });
16770
16773
  }
16771
16774
  ok_load_document(o) {
16772
- this.m_obj = JSON.parse(JSON.stringify(o));
16775
+ this.m_obj = (JSON.parse(JSON.stringify(o)));
16773
16776
  this.edit_b(false);
16774
16777
  this.save_to_app_state();
16775
16778
  let p = new QParam();
16776
16779
  p.sql = "SELECT_LIVELLI_DOC";
16777
- p.types = ["string", "string"];
16780
+ p.types = ['string', 'string'];
16778
16781
  p.values = [this.id_applicativo, this.id_documento];
16779
- this.m_dataService.doQuery(p).subscribe((data) => {
16782
+ this.m_dataService.doQuery(p).subscribe(data => {
16780
16783
  if (data != null)
16781
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
+ }
16782
16795
  this.ok_livelli_doc(data.result_data);
16783
16796
  }
16784
- }, (err) => { });
16797
+ });
16785
16798
  }
16786
16799
  ok_livelli_doc(r) {
16787
16800
  this.livs = r;
@@ -17378,6 +17391,7 @@ class wkf_header_bar {
17378
17391
  this.edit_button = false;
17379
17392
  this.respingi_button = false;
17380
17393
  this.procedi_button = true;
17394
+ this.force_save = false;
17381
17395
  this.button_clicked = new EventEmitter();
17382
17396
  }
17383
17397
  back() { this.button_clicked.emit('back'); if (this.dt_agg != null)
@@ -17422,7 +17436,7 @@ wkf_header_bar.decorators = [
17422
17436
  <button
17423
17437
  mat-flat-button
17424
17438
  (click)="evt_salv()"
17425
- *ngIf="edit_button && !m_appService.getState().pageFullscreen"
17439
+ *ngIf="edit_button || force_save"
17426
17440
  color="primary"
17427
17441
  >
17428
17442
  Salva</button
@@ -17504,6 +17518,7 @@ wkf_header_bar.propDecorators = {
17504
17518
  edit_button: [{ type: Input }],
17505
17519
  respingi_button: [{ type: Input }],
17506
17520
  procedi_button: [{ type: Input }],
17521
+ force_save: [{ type: Input }],
17507
17522
  button_clicked: [{ type: Output }]
17508
17523
  };
17509
17524