@fluxhub/fluxhub-lib 10.0.341 → 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,21 +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
- this.alert('Revisione generata', 0);
24276
- this.m_router.navigate([
24277
- this.app_info.modulo_swf,
24278
- this.id_applicativo,
24279
- this.id_documento,
24280
- "edit",
24281
- ]);
24282
- }
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
+ }
24283
24288
  });
24284
24289
  }
24285
24290
  onResize(event) { }
@@ -24485,21 +24490,21 @@ wkf_header_bar_v2.decorators = [
24485
24490
  color="accent"
24486
24491
  >
24487
24492
  Procedi</button
24488
- ></div><div>
24493
+ ></div><div *ngIf="respingi_button">
24489
24494
  <button
24490
24495
  mat-flat-button
24491
24496
  (click)="respingi()"
24492
- *ngIf="respingi_button"
24497
+
24493
24498
  color="warn"
24494
24499
  >
24495
24500
  Respingi
24496
24501
  </button>
24497
24502
  </div>
24498
- <div>
24503
+ <div *ngIf="b_revisione">
24499
24504
  <button
24500
24505
  mat-flat-button
24501
24506
  (click)="revisione()"
24502
- *ngIf="b_revisione"
24507
+
24503
24508
  color="accent"
24504
24509
  >
24505
24510
  Revisione