@fluxhub/fluxhub-lib 10.0.569 → 10.0.571

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.
@@ -306,7 +306,7 @@ class UtilityService {
306
306
  }
307
307
  set_home_title(s) {
308
308
  setTimeout(() => {
309
- this.app_s.getState().topnavTitle = this.app_s.PORTAL_TITLE + s;
309
+ this.app_s.getState().topnavTitle = s;
310
310
  this.titleService.setTitle(s);
311
311
  }, 100);
312
312
  }
@@ -18658,6 +18658,20 @@ class dati_aggiuntivi {
18658
18658
  return rt;
18659
18659
  }
18660
18660
  }
18661
+ dati_aggiuntivi.decorators = [
18662
+ { type: Directive }
18663
+ ];
18664
+ dati_aggiuntivi.ctorParameters = () => [
18665
+ { type: AppService },
18666
+ { type: AuthenticationService },
18667
+ { type: QueryService },
18668
+ { type: Router },
18669
+ { type: MatDialog },
18670
+ { type: ActivatedRoute },
18671
+ { type: WkfService },
18672
+ { type: UtilityService },
18673
+ { type: TranslateService }
18674
+ ];
18661
18675
  dati_aggiuntivi.propDecorators = {
18662
18676
  onResize: [{ type: HostListener, args: ["window:resize", ["event"],] }]
18663
18677
  };
@@ -23760,6 +23774,7 @@ class dati_aggiuntivi_v2 {
23760
23774
  this.m_fileservice = m_fileservice;
23761
23775
  this.tsr = tsr;
23762
23776
  this.m_obj = {};
23777
+ this.in_carico = false;
23763
23778
  this.wkf_users_roles = '';
23764
23779
  this.b_rip_pulsanti = true;
23765
23780
  this.save_alreadypressed = false;
@@ -23873,8 +23888,6 @@ class dati_aggiuntivi_v2 {
23873
23888
  }
23874
23889
  else
23875
23890
  this.alert("CODICE APPLICAZIONE NON VALIDO", 2);
23876
- //this.stabilimento.setByValue(this.obj.stabilimento);
23877
- //this.userRole.setByValue(this.obj.id_application);
23878
23891
  }
23879
23892
  });
23880
23893
  });
@@ -23918,6 +23931,14 @@ class dati_aggiuntivi_v2 {
23918
23931
  return;
23919
23932
  this.salva();
23920
23933
  }
23934
+ prendi_in_carico() {
23935
+ this.in_carico = true;
23936
+ let p = new QParam();
23937
+ p.sql = "UPDATE_WKF_PRENDI_IN_CARICO";
23938
+ p.values = ['string', 'string', 'string'];
23939
+ p.types = [this.id_applicativo, this.id_documento, this.app_s.user_surname + ' ' + this.app_s.user_name];
23940
+ this.m_dataService.doQuery(p).subscribe();
23941
+ }
23921
23942
  salva() {
23922
23943
  if (this.save_alreadypressed)
23923
23944
  return;
@@ -24014,32 +24035,6 @@ class dati_aggiuntivi_v2 {
24014
24035
  }
24015
24036
  this.clevel = this.check_n_levels(this.clevel);
24016
24037
  this.calcolanextandjump();
24017
- //}
24018
- /*
24019
- console.log('this.oper ',this.oper);
24020
- if (this.oper == "procedi") {
24021
- this.clevel = this.check_n_levels(this.clevel);
24022
- // if (this.clevel.livelli_jump == null) this.clevel.livelli_jump = "";
24023
- // if (this.clevel.livelli_jump != "") {
24024
- //console.log("selectLevel " + this.clevel.livelli_jump);
24025
- this.selectLevel();
24026
- return;
24027
- //}
24028
-
24029
- // this.calcolanextandjump();
24030
- }
24031
- if (this.oper == "respingi") {
24032
- //if (this.clevel.livelli_down == null) this.clevel.livelli_down = "";
24033
- if (this.clevel.livelli_down != "") {
24034
- this.selectLevel(this.clevel.livelli_down);
24035
- return;
24036
- } else {
24037
- this.alert(
24038
- "Errore di configurazione pratica contattare ufficio IT [0x004]",
24039
- 1
24040
- );
24041
- }
24042
- }*/
24043
24038
  }
24044
24039
  /*
24045
24040
  selectLevel() {
@@ -24197,7 +24192,6 @@ class dati_aggiuntivi_v2 {
24197
24192
  }
24198
24193
  cliv = liv;
24199
24194
  }*/
24200
- console.log('ck_after');
24201
24195
  if (this.ck_after(liv)) {
24202
24196
  this.calcola_destinari(o);
24203
24197
  }
@@ -25323,6 +25317,9 @@ class dati_aggiuntivi_v2 {
25323
25317
  if (this.m_obj.autori == null)
25324
25318
  this.m_obj.autori = "";
25325
25319
  if (("," + this.m_obj.autori.toLowerCase() + ",").indexOf("," + this.user_idp.toLowerCase() + ",") != -1) {
25320
+ if (this.m_obj.autori != null)
25321
+ if (this.m_obj.autori.split(',') > 1)
25322
+ this.in_carico = true;
25326
25323
  this.edit_b(true);
25327
25324
  if (this.respingi_enabled)
25328
25325
  this.resp_b(true);
@@ -25477,6 +25474,20 @@ class dati_aggiuntivi_v2 {
25477
25474
  return rt;
25478
25475
  }
25479
25476
  }
25477
+ dati_aggiuntivi_v2.decorators = [
25478
+ { type: Directive }
25479
+ ];
25480
+ dati_aggiuntivi_v2.ctorParameters = () => [
25481
+ { type: AppService },
25482
+ { type: QueryService },
25483
+ { type: Router },
25484
+ { type: MatDialog },
25485
+ { type: ActivatedRoute },
25486
+ { type: WkfService },
25487
+ { type: UtilityService },
25488
+ { type: FileService },
25489
+ { type: TranslateService }
25490
+ ];
25480
25491
  dati_aggiuntivi_v2.propDecorators = {
25481
25492
  onResize: [{ type: HostListener, args: ["window:resize", ["event"],] }]
25482
25493
  };
@@ -25488,6 +25499,7 @@ class wkf_header_bar_v2 {
25488
25499
  this.custom_commands = [];
25489
25500
  this.dt_agg = null;
25490
25501
  this.edit_button = false;
25502
+ this.in_carico = false;
25491
25503
  this.respingi_button = false;
25492
25504
  this.procedi_button = true;
25493
25505
  this.utility_button = true;
@@ -25503,6 +25515,7 @@ class wkf_header_bar_v2 {
25503
25515
  this.commenti_lbl = 'Commenti';
25504
25516
  this.allegati_lbl = 'Allegati';
25505
25517
  this.workflow_lbl = 'Workflow';
25518
+ this.prendi_in_carico_lbl = 'Prendi in Carico';
25506
25519
  this.b_revisione = false;
25507
25520
  this.admin_role = '[ZZZ_DIS_CC]';
25508
25521
  this.sovra_path = '';
@@ -25518,6 +25531,8 @@ class wkf_header_bar_v2 {
25518
25531
  this.dt_agg.back(this.edit_button); }
25519
25532
  evt_salv() { this.button_clicked.emit('evt_salv'); if (this.dt_agg != null)
25520
25533
  this.dt_agg.evt_salv(this.edit_button, this.check_on_save); }
25534
+ prendi_in_carico() { this.button_clicked.emit('prendi_in_c'); if (this.dt_agg != null)
25535
+ this.dt_agg.prendi_in_carico(); }
25521
25536
  respingi() { this.button_clicked.emit('respingi'); if (this.dt_agg != null)
25522
25537
  this.dt_agg.respingi(); }
25523
25538
  procedi() { this.button_clicked.emit('procedi'); if (this.dt_agg != null)
@@ -25566,40 +25581,52 @@ wkf_header_bar_v2.decorators = [
25566
25581
  *ngIf="!m_appService.getState().pageFullscreen"
25567
25582
  >
25568
25583
  {{back_lbl}}</button
25569
- ></div><div>
25584
+ ></div>
25585
+ <div>
25570
25586
  <button
25571
25587
  mat-flat-button
25572
25588
  (click)="evt_salv()"
25573
- *ngIf="edit_button || force_save"
25589
+ *ngIf="(edit_button || force_save) && in_carico"
25574
25590
  color="primary"
25575
25591
  >
25576
25592
  {{save_lbl}}</button
25577
25593
  ></div><div>
25594
+
25595
+ <div>
25596
+ <button
25597
+ mat-flat-button
25598
+ (click)="prendi_in_carico()"
25599
+ *ngIf="(edit_button) && !in_carico"
25600
+ style="background-color:#709D66"
25601
+ >
25602
+ {{prendi_in_carico_lbl | translate}}</button
25603
+ ></div><div>
25604
+
25578
25605
  <button
25579
25606
  mat-flat-button
25580
25607
  (click)="procedi()"
25581
- *ngIf="edit_button && procedi_button"
25608
+ *ngIf="(edit_button && procedi_button) && in_carico"
25582
25609
  color="accent"
25583
25610
  >
25584
- {{procedi_lbl}}</button
25585
- ></div><div *ngIf="respingi_button">
25611
+ {{procedi_lbl | translate}}</button
25612
+ ></div><div *ngIf="(respingi_button) && in_carico">
25586
25613
  <button
25587
25614
  mat-flat-button
25588
25615
  (click)="respingi()"
25589
25616
 
25590
25617
  color="warn"
25591
25618
  >
25592
- {{respingi_lbl}}
25619
+ {{respingi_lbl | translate}}
25593
25620
  </button>
25594
25621
  </div>
25595
- <div *ngIf="b_revisione">
25622
+ <div *ngIf="(b_revisione) && in_carico">
25596
25623
  <button
25597
25624
  mat-flat-button
25598
25625
  (click)="revisione()"
25599
25626
 
25600
25627
  color="accent"
25601
25628
  >
25602
- {{revisione_lbl}}
25629
+ {{revisione_lbl | translate}}
25603
25630
  </button>
25604
25631
  </div>
25605
25632
  <!-- <button mat-flat-button (click)="doEnd(900)" color="warn" >test</button>&nbsp;&nbsp;
@@ -25619,7 +25646,7 @@ wkf_header_bar_v2.decorators = [
25619
25646
  (click)="open_info()"
25620
25647
  *ngIf="!m_appService.getState().pageFullscreen && utility_button"
25621
25648
  >
25622
- <mat-icon>info_outline</mat-icon>&nbsp;&nbsp; {{info_doc_lbl}}</button
25649
+ <mat-icon>info_outline</mat-icon>&nbsp;&nbsp; {{info_doc_lbl | translate}}</button
25623
25650
  ></div>
25624
25651
  <div>
25625
25652
  <button
@@ -25630,7 +25657,7 @@ wkf_header_bar_v2.decorators = [
25630
25657
  matBadgeColor="primary"
25631
25658
  (click)="open_commenti()"
25632
25659
  >
25633
- <mat-icon>insert_comment</mat-icon> {{commenti_lbl}}</button
25660
+ <mat-icon>insert_comment</mat-icon> {{commenti_lbl | translate}}</button
25634
25661
  ></div>
25635
25662
 
25636
25663
  </div>
@@ -25644,7 +25671,7 @@ wkf_header_bar_v2.decorators = [
25644
25671
  matBadgeColor="primary"
25645
25672
  (click)="open_upload()"
25646
25673
  >
25647
- <mat-icon>attach_file</mat-icon> {{allegati_lbl}}</button
25674
+ <mat-icon>attach_file</mat-icon> {{allegati_lbl | translate}}</button
25648
25675
  ></div>
25649
25676
 
25650
25677
  <div>
@@ -25653,7 +25680,7 @@ wkf_header_bar_v2.decorators = [
25653
25680
  (click)="open_wkf()"
25654
25681
  *ngIf="!m_appService.getState().pageFullscreen && utility_button"
25655
25682
  >
25656
- <mat-icon>transfer_within_a_station</mat-icon> {{workflow_lbl}}
25683
+ <mat-icon>transfer_within_a_station</mat-icon> {{workflow_lbl | translate}}
25657
25684
  </button>
25658
25685
  </div>
25659
25686
 
@@ -25691,6 +25718,7 @@ wkf_header_bar_v2.propDecorators = {
25691
25718
  custom_commands: [{ type: Input }],
25692
25719
  dt_agg: [{ type: Input }],
25693
25720
  edit_button: [{ type: Input }],
25721
+ in_carico: [{ type: Input }],
25694
25722
  respingi_button: [{ type: Input }],
25695
25723
  procedi_button: [{ type: Input }],
25696
25724
  utility_button: [{ type: Input }],