@fluxhub/fluxhub-lib 10.0.340 → 10.0.342

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.
@@ -24265,14 +24265,26 @@ class dati_aggiuntivi_v2 {
24265
24265
  this.m_obj.stat_stato); //+' ('+s_uto+')');
24266
24266
  }
24267
24267
  revisione() {
24268
- let p = new QParam();
24269
- p.sql = "UPDATE_DOCUMENTO_REV";
24270
- p.values = [this.id_applicativo, this.id_documento];
24271
- p.types = ['string', 'string'];
24272
- this.m_dataService.doQuery(p).subscribe((data) => {
24273
- if (data != null)
24274
- if (data.result_msg == "OK") {
24275
- }
24268
+ let dialogRef = this.m_dialog.open(fh_win_confirm, {
24269
+ disableClose: true, data: {
24270
+ title_dialog: "Conferma Operazione",
24271
+ msg_dialog: "Confermi di voler revisionare il documento?"
24272
+ }
24273
+ });
24274
+ dialogRef.afterClosed().subscribe((result) => {
24275
+ if (result) {
24276
+ let p = new QParam();
24277
+ p.sql = "UPDATE_DOCUMENTO_REV";
24278
+ p.values = [this.id_applicativo, this.id_documento];
24279
+ p.types = ['string', 'string'];
24280
+ this.m_dataService.doQuery(p).subscribe((data) => {
24281
+ if (data != null)
24282
+ if (data.result_msg == "OK") {
24283
+ this.alert('Revisione generata', 0);
24284
+ window.location.reload();
24285
+ }
24286
+ });
24287
+ }
24276
24288
  });
24277
24289
  }
24278
24290
  onResize(event) { }
@@ -24478,21 +24490,21 @@ wkf_header_bar_v2.decorators = [
24478
24490
  color="accent"
24479
24491
  >
24480
24492
  Procedi</button
24481
- ></div><div>
24493
+ ></div><div *ngIf="respingi_button">
24482
24494
  <button
24483
24495
  mat-flat-button
24484
24496
  (click)="respingi()"
24485
- *ngIf="respingi_button"
24497
+
24486
24498
  color="warn"
24487
24499
  >
24488
24500
  Respingi
24489
24501
  </button>
24490
24502
  </div>
24491
- <div>
24503
+ <div *ngIf="b_revisione">
24492
24504
  <button
24493
24505
  mat-flat-button
24494
24506
  (click)="revisione()"
24495
- *ngIf="b_revisione"
24507
+
24496
24508
  color="accent"
24497
24509
  >
24498
24510
  Revisione