@fluxhub/fluxhub-lib 10.0.339 → 10.0.340

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.
@@ -4851,6 +4851,7 @@ class FHUploadPanelComponent {
4851
4851
  tipo: this.m_p_tipo,
4852
4852
  local_path: this._appservice.LOCAL_PATH,
4853
4853
  p1: this.m_programma_da_eseguire,
4854
+ ver: this.current_v
4854
4855
  });
4855
4856
  }
4856
4857
  preview_email(ax) {
@@ -24245,17 +24246,35 @@ class dati_aggiuntivi_v2 {
24245
24246
  break;
24246
24247
  }
24247
24248
  this.app_s.getState().wkf_doc_info.in_carico_a = this.s_uto;
24248
- this.uti_s.set_home_title(this.app_info.descrizione_breve +
24249
- " " +
24250
- this.m_obj.codice +
24251
- " - " +
24252
- this.m_obj.stat_stato);
24249
+ if (this.m_obj.v == null)
24250
+ this.uti_s.set_home_title(this.app_info.descrizione_breve +
24251
+ " " +
24252
+ this.m_obj.codice +
24253
+ " - " +
24254
+ this.m_obj.stat_stato);
24255
+ else
24256
+ this.uti_s.set_home_title(this.app_info.descrizione_breve +
24257
+ " " +
24258
+ this.m_obj.codice + "/" + this.m_obj.v +
24259
+ " - " +
24260
+ this.m_obj.stat_stato);
24253
24261
  this.reset_form(this.app_info.descrizione_breve +
24254
24262
  " " +
24255
24263
  this.m_obj.codice +
24256
24264
  " - " +
24257
24265
  this.m_obj.stat_stato); //+' ('+s_uto+')');
24258
24266
  }
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
+ }
24276
+ });
24277
+ }
24259
24278
  onResize(event) { }
24260
24279
  init_engine() {
24261
24280
  if (this.user_idp == null || this.m_route.params == null) {
@@ -24396,10 +24415,13 @@ class wkf_header_bar_v2 {
24396
24415
  this.utility_button = true;
24397
24416
  this.force_save = false;
24398
24417
  this.check_on_save = false;
24418
+ this.b_revisione = false;
24399
24419
  this.admin_role = '[ZZZ_DIS_CC]';
24400
24420
  this.sovra_path = '';
24401
24421
  this.button_clicked = new EventEmitter();
24402
24422
  }
24423
+ revisione() { this.button_clicked.emit('revisione'); if (this.dt_agg != null)
24424
+ this.dt_agg.revisione(); }
24403
24425
  back() { this.button_clicked.emit('back'); if (this.dt_agg != null)
24404
24426
  this.dt_agg.back(this.edit_button); }
24405
24427
  evt_salv() { this.button_clicked.emit('evt_salv'); if (this.dt_agg != null)
@@ -24466,6 +24488,16 @@ wkf_header_bar_v2.decorators = [
24466
24488
  Respingi
24467
24489
  </button>
24468
24490
  </div>
24491
+ <div>
24492
+ <button
24493
+ mat-flat-button
24494
+ (click)="revisione()"
24495
+ *ngIf="b_revisione"
24496
+ color="accent"
24497
+ >
24498
+ Revisione
24499
+ </button>
24500
+ </div>
24469
24501
  <!-- <button mat-flat-button (click)="doEnd(900)" color="warn" >test</button>&nbsp;&nbsp;
24470
24502
  -->
24471
24503
  </div>
@@ -24540,6 +24572,7 @@ wkf_header_bar_v2.propDecorators = {
24540
24572
  utility_button: [{ type: Input }],
24541
24573
  force_save: [{ type: Input }],
24542
24574
  check_on_save: [{ type: Input }],
24575
+ b_revisione: [{ type: Input }],
24543
24576
  admin_role: [{ type: Input }],
24544
24577
  sovra_path: [{ type: Input }],
24545
24578
  button_clicked: [{ type: Output }]