@fluxhub/fluxhub-lib 10.0.581 → 10.0.583

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.
Files changed (38) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +130 -106
  2. package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
  3. package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
  4. package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/controls/fhconfirm.js +6 -6
  6. package/esm2015/lib/wkf_engine_v2/win_assegna.js +14 -13
  7. package/esm2015/lib/wkf_engine_v2/win_commenti.js +24 -21
  8. package/esm2015/lib/wkf_engine_v2/win_commento_sel_notif.js +11 -7
  9. package/esm2015/lib/wkf_engine_v2/win_conferma.js +13 -10
  10. package/esm2015/lib/wkf_engine_v2/win_insert_commento.js +12 -9
  11. package/esm2015/lib/wkf_engine_v2/win_log.js +24 -21
  12. package/esm2015/lib/wkf_engine_v2/win_recupera.js +13 -10
  13. package/esm2015/lib/wkf_engine_v2/win_riassegna_select_level.js +15 -12
  14. package/esm2015/lib/wkf_engine_v2/win_riassegna_select_user.js +12 -9
  15. package/esm2015/lib/wkf_engine_v2/win_salva_annulla.js +4 -4
  16. package/esm2015/lib/wkf_engine_v2/win_select_canale.js +14 -11
  17. package/esm2015/lib/wkf_engine_v2/win_select_level.js +10 -7
  18. package/esm2015/lib/wkf_engine_v2/win_sostituisci_utente.js +17 -14
  19. package/esm2015/lib/wkf_engine_v2/win_uploads.js +2 -2
  20. package/esm2015/lib/wkf_engine_v2/wkfapp.js +2 -2
  21. package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +22 -22
  22. package/fesm2015/fluxhub-fluxhub-lib.js +186 -162
  23. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  24. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  25. package/lib/wkf_engine_v2/win_assegna.d.ts +3 -3
  26. package/lib/wkf_engine_v2/win_commenti.d.ts +3 -1
  27. package/lib/wkf_engine_v2/win_commento_sel_notif.d.ts +3 -1
  28. package/lib/wkf_engine_v2/win_conferma.d.ts +3 -1
  29. package/lib/wkf_engine_v2/win_insert_commento.d.ts +3 -1
  30. package/lib/wkf_engine_v2/win_log.d.ts +3 -1
  31. package/lib/wkf_engine_v2/win_recupera.d.ts +3 -1
  32. package/lib/wkf_engine_v2/win_riassegna_select_level.d.ts +3 -1
  33. package/lib/wkf_engine_v2/win_riassegna_select_user.d.ts +3 -1
  34. package/lib/wkf_engine_v2/win_select_canale.d.ts +3 -1
  35. package/lib/wkf_engine_v2/win_select_level.d.ts +3 -1
  36. package/lib/wkf_engine_v2/win_sostituisci_utente.d.ts +3 -1
  37. package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +5 -5
  38. package/package.json +1 -1
@@ -1920,14 +1920,14 @@ class fh_win_confirm {
1920
1920
  fh_win_confirm.decorators = [
1921
1921
  { type: Component, args: [{
1922
1922
  template: `
1923
- <h1 mat-dialog-title>{{ title }}</h1>
1923
+ <h1 mat-dialog-title>{{ title | translate }}</h1>
1924
1924
  <div mat-dialog-content>
1925
1925
  <div fxLayout="column" fxLayoutGap="15px">
1926
- {{ msg }}
1926
+ {{ msg | translate }}
1927
1927
  <div style="width:400px" [hidden]="!b_commento"><br /></div>
1928
1928
  <div style="width:400px" [hidden]="!b_commento">
1929
1929
  <FHTextArea
1930
- label="{{ commento_mgs }}"
1930
+ label="{{ commento_mgs | translate }}"
1931
1931
  required
1932
1932
  [(ngModel)]="commento"
1933
1933
  ></FHTextArea>
@@ -1937,10 +1937,10 @@ fh_win_confirm.decorators = [
1937
1937
 
1938
1938
  <div mat-dialog-actions>
1939
1939
  <button mat-flat-button (click)="ok()" color="primary">
1940
- {{ confirm_mgs }}
1940
+ {{ confirm_mgs | translate}}
1941
1941
  </button>
1942
1942
  <button mat-flat-button #btn_annulla (click)="dialogRef.close(false)" color="warn">
1943
- {{ annulla_mgs }}
1943
+ {{ annulla_mgs | translate }}
1944
1944
  </button>
1945
1945
  </div>
1946
1946
  `,
@@ -21546,16 +21546,16 @@ FHCheckBox.propDecorators = {
21546
21546
  };
21547
21547
 
21548
21548
  class win_assegna_v2 {
21549
- constructor(dialogRef, m_appService, toastr, _dataService, data) {
21549
+ constructor(dialogRef, m_appService, toastr, _trs, data) {
21550
21550
  this.dialogRef = dialogRef;
21551
21551
  this.m_appService = m_appService;
21552
21552
  this.toastr = toastr;
21553
- this._dataService = _dataService;
21553
+ this._trs = _trs;
21554
21554
  this.data = data;
21555
21555
  this.lbl = "";
21556
21556
  this.nota = "";
21557
21557
  this.nota_commento = "";
21558
- this.title = "ASSEGNA DOCUMENTO";
21558
+ this.title = "";
21559
21559
  this.comm_notrequired = 0;
21560
21560
  if (data != null) {
21561
21561
  if (data.commento_default != null)
@@ -21569,12 +21569,13 @@ class win_assegna_v2 {
21569
21569
  if (data.utenti != null)
21570
21570
  this.arrAutori = data.utenti;
21571
21571
  }
21572
+ this.title = this._trs.instant("ASSEGNA DOCUMENTO");
21572
21573
  for (let i = 0; i < this.arrAutori.length; i++) {
21573
21574
  if (this.arrAutori[i].username == null)
21574
21575
  this.arrAutori[i].username = this.arrAutori[i].idp;
21575
21576
  }
21576
21577
  if (this.comm_notrequired == 2)
21577
- this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
21578
+ this.nota_commento = this._trs.instant(" (COMMENTO NON OBBLIGATORIO)");
21578
21579
  if (data != null) {
21579
21580
  if (data.commento_default != null)
21580
21581
  this.nota = data.commento_default;
@@ -21587,7 +21588,7 @@ class win_assegna_v2 {
21587
21588
  }
21588
21589
  ok() {
21589
21590
  if (this.up.getSelArr().length == 0) {
21590
- this.toastr.error("ERRORE", "SELEZIONARE ALMENO UN UTENTE", {
21591
+ this.toastr.error("ERRORE", this._trs.instant("SELEZIONARE ALMENO UN UTENTE"), {
21591
21592
  timeOut: 1000,
21592
21593
  progressBar: true,
21593
21594
  });
@@ -21595,7 +21596,7 @@ class win_assegna_v2 {
21595
21596
  }
21596
21597
  if (this.comm_notrequired == 0)
21597
21598
  if (this.nota == "") {
21598
- this.toastr.error("ERRORE", "INSERIRE IL COMMENTO", {
21599
+ this.toastr.error("ERRORE", this._trs.instant("INSERIRE IL COMMENTO"), {
21599
21600
  timeOut: 1000,
21600
21601
  progressBar: true,
21601
21602
  });
@@ -21613,7 +21614,7 @@ win_assegna_v2.decorators = [
21613
21614
  template: `
21614
21615
  <div fxLayout="column">
21615
21616
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
21616
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
21617
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
21617
21618
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
21618
21619
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
21619
21620
  </div>
@@ -21633,21 +21634,21 @@ win_assegna_v2.decorators = [
21633
21634
  <div *ngIf="comm_notrequired != 1">
21634
21635
  <br />
21635
21636
  <mat-form-field appearance="outline" floatLabel="always"
21636
- ><mat-label>Commento {{ nota_commento }}</mat-label>
21637
+ ><mat-label>{{'Commento' | translate}} {{ nota_commento }}</mat-label>
21637
21638
  <textarea required matInput [(ngModel)]="nota" rows="4"></textarea>
21638
21639
  </mat-form-field>
21639
21640
  </div>
21640
21641
  </div>
21641
21642
  <br />
21642
21643
  <div style="width:100%;text-align:center;">
21643
- <button mat-flat-button color="primary" (click)="ok()">OK</button
21644
+ <button mat-flat-button color="primary" (click)="ok()"> {{'OK' | translate }}</button
21644
21645
  >&nbsp;&nbsp;&nbsp;
21645
21646
  <button
21646
21647
  mat-flat-button
21647
21648
  style="background-color: #F5F5F5"
21648
21649
  (click)="close()"
21649
21650
  >
21650
- ANNULLA
21651
+ {{'ANNULLA' | translate }}
21651
21652
  </button>
21652
21653
  </div>
21653
21654
  </div>
@@ -21658,7 +21659,7 @@ win_assegna_v2.ctorParameters = () => [
21658
21659
  { type: MatDialogRef },
21659
21660
  { type: AppService },
21660
21661
  { type: ToastrService },
21661
- { type: QueryService },
21662
+ { type: TranslateService },
21662
21663
  { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
21663
21664
  ];
21664
21665
  win_assegna_v2.propDecorators = {
@@ -21666,9 +21667,10 @@ win_assegna_v2.propDecorators = {
21666
21667
  };
21667
21668
 
21668
21669
  class win_commento_sel_notif_v2 {
21669
- constructor(dialogRef, toastr) {
21670
+ constructor(dialogRef, toastr, _tsr) {
21670
21671
  this.dialogRef = dialogRef;
21671
21672
  this.toastr = toastr;
21673
+ this._tsr = _tsr;
21672
21674
  this.title = "SELEZIONA CHI NOTIFICARE";
21673
21675
  }
21674
21676
  close() {
@@ -21699,14 +21701,15 @@ class win_commento_sel_notif_v2 {
21699
21701
  o.arrsel = this.up.getSelArr();
21700
21702
  this.dialogRef.close(o);
21701
21703
  }
21702
- ngAfterViewInit() { }
21704
+ ngAfterViewInit() {
21705
+ }
21703
21706
  }
21704
21707
  win_commento_sel_notif_v2.decorators = [
21705
21708
  { type: Component, args: [{
21706
21709
  template: `
21707
21710
  <div fxLayout="column">
21708
21711
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
21709
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
21712
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
21710
21713
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
21711
21714
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
21712
21715
  </div>
@@ -21719,9 +21722,9 @@ win_commento_sel_notif_v2.decorators = [
21719
21722
  </div>
21720
21723
  <br />
21721
21724
  <div style="width:100%;text-align:center;">
21722
- <button mat-flat-button color="primary" (click)="ok()">OK</button
21725
+ <button mat-flat-button color="primary" (click)="ok()"> {{'OK' | translate }}</button
21723
21726
  >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
21724
- <button mat-flat-button color="warn" (click)="close()">ANNULLA</button>
21727
+ <button mat-flat-button color="warn" (click)="close()">{{'ANNULLA' | translate }}</button>
21725
21728
  </div>
21726
21729
  </div>
21727
21730
  `
@@ -21729,14 +21732,15 @@ win_commento_sel_notif_v2.decorators = [
21729
21732
  ];
21730
21733
  win_commento_sel_notif_v2.ctorParameters = () => [
21731
21734
  { type: MatDialogRef },
21732
- { type: ToastrService }
21735
+ { type: ToastrService },
21736
+ { type: TranslateService }
21733
21737
  ];
21734
21738
  win_commento_sel_notif_v2.propDecorators = {
21735
21739
  up: [{ type: ViewChild, args: ["up",] }]
21736
21740
  };
21737
21741
 
21738
21742
  class win_commenti_v2 {
21739
- constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
21743
+ constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file, _tsr) {
21740
21744
  this.dialogRef = dialogRef;
21741
21745
  this.m_dialogRef = m_dialogRef;
21742
21746
  this.m_appService = m_appService;
@@ -21744,6 +21748,7 @@ class win_commenti_v2 {
21744
21748
  this._dataService = _dataService;
21745
21749
  this.m_wkf = m_wkf;
21746
21750
  this.m_file = m_file;
21751
+ this._tsr = _tsr;
21747
21752
  this.notifica_commenti = 1;
21748
21753
  this.notifica_commenti_obbl = 0;
21749
21754
  this.not_comm = false;
@@ -21773,7 +21778,7 @@ class win_commenti_v2 {
21773
21778
  this.b_ins = false;
21774
21779
  this.nota = event.commento;
21775
21780
  this.edit_id = event.id_comment;
21776
- this.title = "MODIFICA COMMENTO";
21781
+ this.title = this._tsr.instant("MODIFICA COMMENTO");
21777
21782
  }
21778
21783
  refresh_list() {
21779
21784
  let p = new QParam();
@@ -21793,7 +21798,7 @@ class win_commenti_v2 {
21793
21798
  this.commenti_list[i].commento.replace(/\n/g, "<br/>") +
21794
21799
  "</b>";
21795
21800
  }
21796
- this.title = "COMMENTI";
21801
+ this.title = this._tsr.instant("COMMENTI");
21797
21802
  }
21798
21803
  }, (err) => { });
21799
21804
  }
@@ -21803,7 +21808,7 @@ class win_commenti_v2 {
21803
21808
  }
21804
21809
  else {
21805
21810
  if (this.nota == "") {
21806
- this.toastr.error("INSERIRE UN COMMENTO");
21811
+ this.toastr.error(this._tsr.instant("INSERIRE UN COMMENTO"));
21807
21812
  return;
21808
21813
  }
21809
21814
  if (this.notifica_commenti != 2)
@@ -21816,7 +21821,7 @@ class win_commenti_v2 {
21816
21821
  let dialo = this.m_dialogRef.open(fh_win_list, { disableClose: true });
21817
21822
  setTimeout(() => {
21818
21823
  dialo.componentInstance.title =
21819
- "Selezione almeno un gruppo da notificare";
21824
+ this._tsr.instant("Selezione almeno un gruppo da notificare");
21820
21825
  dialo.componentInstance.types = ["string"];
21821
21826
  dialo.componentInstance.values = [
21822
21827
  this.m_appService.getState().wkf_doc_info.uiid_app,
@@ -21970,7 +21975,7 @@ class win_commenti_v2 {
21970
21975
  if (sdest != "")
21971
21976
  this.sendEMail_ex(this.m_appService.getState().wkf_doc_info.curr_user, sdest, this.subject
21972
21977
  .split("<OP>")
21973
- .join("E' stato modificato un commento"), "<br><br>Commento modificato: <br>" +
21978
+ .join(this._tsr.instant("E' stato modificato un commento")), "<br><br>" + this._tsr.instant('Commento modificato') + ": <br>" +
21974
21979
  this.nota.split("\n").join("<br>"), this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.link, this.codice_doc, "");
21975
21980
  this.refresh_list();
21976
21981
  }
@@ -21981,8 +21986,8 @@ class win_commenti_v2 {
21981
21986
  }
21982
21987
  }
21983
21988
  annulla() {
21984
- localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", "Conferma Operazione");
21985
- localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
21989
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", this._tsr.instant("Conferma Operazione"));
21990
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", this._tsr.instant("Confermi di voler annullare l'inserimento del commento?"));
21986
21991
  let dialogRef1 = this.m_dialogRef.open(fh_win_confirm);
21987
21992
  dialogRef1.afterClosed().subscribe((result) => {
21988
21993
  if (result) {
@@ -21997,7 +22002,7 @@ class win_commenti_v2 {
21997
22002
  this.nota = "";
21998
22003
  this.b_edit = true;
21999
22004
  this.b_ins = true;
22000
- this.title = "INSERISCI COMMENTO";
22005
+ this.title = this._tsr.instant("INSERISCI COMMENTO");
22001
22006
  }
22002
22007
  }
22003
22008
  win_commenti_v2.decorators = [
@@ -22015,20 +22020,20 @@ win_commenti_v2.decorators = [
22015
22020
  <span class="fill-remaining-space"></span>
22016
22021
  <button color="primary" (click)="ins()" *ngIf="!b_edit">
22017
22022
  <mat-icon>note_add</mat-icon>
22018
- INSERISCI
22023
+ {{'INSERISCI' | translate}}
22019
22024
  </button>
22020
22025
  </mat-toolbar>
22021
22026
  <br />
22022
22027
  <div mat-dialog-content style="min-width:800px;font-size: 15px;">
22023
22028
  <mat-form-field *ngIf="b_edit" appearance="outline" floatLabel="always"
22024
- ><mat-label>Commento</mat-label>
22029
+ ><mat-label>{{'Commento' | translate}}</mat-label>
22025
22030
  <textarea matInput [(ngModel)]="nota" rows="12"></textarea>
22026
22031
  </mat-form-field>
22027
22032
 
22028
22033
  <div *ngIf="b_edit" fxLayoutAlign="center center" fxLayout="row">
22029
- <button mat-flat-button color="primary" (click)="ok()">OK</button
22034
+ <button mat-flat-button color="primary" (click)="ok()"> {{'OK' | translate}}</button
22030
22035
  >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
22031
- <button mat-flat-button color="warn" (click)="annulla()">ANNULLA</button
22036
+ <button mat-flat-button color="warn" (click)="annulla()"> {{'ANNULLA' | translate}}</button
22032
22037
  >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
22033
22038
  <mat-checkbox
22034
22039
  [disabled]="not_comm_disabled"
@@ -22036,17 +22041,17 @@ win_commenti_v2.decorators = [
22036
22041
  [hidden]="
22037
22042
  notifica_commenti == 0 || (notifica_commenti == 1 && lettori == '')
22038
22043
  "
22039
- >
22040
- Notifica Interessati
22044
+ >{{'Notifica Interessati' | translate}}
22045
+
22041
22046
  </mat-checkbox>
22042
22047
  </div>
22043
22048
  <section class="bs" *ngIf="!b_edit">
22044
22049
  <table style="min-width: 100%" class="fh_table">
22045
22050
  <thead>
22046
22051
  <tr>
22047
- <th>Commento</th>
22048
- <th width="15%">Autore</th>
22049
- <th width="15%">Data</th>
22052
+ <th>{{'Commento' | translate}}</th>
22053
+ <th width="15%">{{'Autore' | translate}}</th>
22054
+ <th width="15%">{{'Data' | translate}}</th>
22050
22055
  <th></th>
22051
22056
  <th></th>
22052
22057
  </tr>
@@ -22095,7 +22100,7 @@ win_commenti_v2.decorators = [
22095
22100
  style="background-color: #F5F5F5"
22096
22101
  (click)="close()"
22097
22102
  >
22098
- CHIUDI
22103
+ {{'CHIUDI' | translate}}
22099
22104
  </button>
22100
22105
  </div>
22101
22106
  </div>
@@ -22110,14 +22115,16 @@ win_commenti_v2.ctorParameters = () => [
22110
22115
  { type: ToastrService },
22111
22116
  { type: QueryService },
22112
22117
  { type: WkfService },
22113
- { type: FileService }
22118
+ { type: FileService },
22119
+ { type: TranslateService }
22114
22120
  ];
22115
22121
 
22116
22122
  class win_conferma_v2 {
22117
- constructor(dialogRef, m_appService, toastr, data) {
22123
+ constructor(dialogRef, m_appService, toastr, _tsr, data) {
22118
22124
  this.dialogRef = dialogRef;
22119
22125
  this.m_appService = m_appService;
22120
22126
  this.toastr = toastr;
22127
+ this._tsr = _tsr;
22121
22128
  this.data = data;
22122
22129
  this.utenti = "";
22123
22130
  this.lbl = "";
@@ -22155,7 +22162,7 @@ class win_conferma_v2 {
22155
22162
  ok() {
22156
22163
  if (this.comm_notrequired == 0)
22157
22164
  if (this.nota == "") {
22158
- this.toastr.error("ERRORE", "INSERIRE IL COMMENTO", {
22165
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("INSERIRE IL COMMENTO"), {
22159
22166
  timeOut: 1000,
22160
22167
  progressBar: true,
22161
22168
  });
@@ -22173,7 +22180,7 @@ win_conferma_v2.decorators = [
22173
22180
  template: `
22174
22181
  <div fxLayout="column">
22175
22182
           <div  fxFlex="100" fxLayout="row"   class="dialog_header">
22176
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{ title }}</div>
22183
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{ title| translate }}</div>
22177
22184
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
22178
22185
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
22179
22186
  </div>
@@ -22183,8 +22190,8 @@ win_conferma_v2.decorators = [
22183
22190
  <mat-toolbar [style.background-color]="color"
22184
22191
  [style.color]="color_font">
22185
22192
  <i *ngIf="icon!=null && icon!=''" class="fa {{icon}}" aria-hidden="true"></i>&nbsp;&nbsp;&nbsp;
22186
- <div style="font-size:10px" *ngIf="mobile">{{ lbl }}</div>
22187
- <div *ngIf="!mobile">{{ lbl }}</div>
22193
+ <div style="font-size:10px" *ngIf="mobile">{{ lbl | translate}}</div>
22194
+ <div *ngIf="!mobile">{{ lbl| translate }}</div>
22188
22195
  </mat-toolbar>
22189
22196
  <br />
22190
22197
  <div mat-dialog-content style="min-width:800px;font-size: 15px;">
@@ -22192,25 +22199,25 @@ win_conferma_v2.decorators = [
22192
22199
  *ngIf="mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1"
22193
22200
  style="font-size:10px"
22194
22201
  >
22195
- Assegnata a: {{ utenti }}
22202
+ {{'Assegnata a'| translate}}: {{ utenti }}
22196
22203
  </div>
22197
22204
  <h3
22198
22205
  *ngIf="!mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1"
22199
22206
  >
22200
- Assegnata a: {{ utenti }}
22207
+ {{'Assegnata a'| translate}}: {{ utenti }}
22201
22208
  </h3>
22202
22209
  <br />
22203
22210
  <mat-form-field
22204
22211
  [hidden]="comm_notrequired == 1"
22205
22212
  appearance="outline"
22206
22213
  floatLabel="always"
22207
- ><mat-label>Commento {{ nota_commento }}</mat-label>
22214
+ ><mat-label>{{'Commento'| translate}} {{ nota_commento | translate}}</mat-label>
22208
22215
  <textarea matInput [(ngModel)]="nota" rows="6"></textarea>
22209
22216
  </mat-form-field>
22210
22217
  </div>
22211
22218
  <br />
22212
22219
  <div style="width:100%;text-align:center;">
22213
- <button mat-flat-button color="primary" (click)="ok()">OK</button>
22220
+ <button mat-flat-button color="primary" (click)="ok()">{{'OK'| translate}}</button>
22214
22221
 
22215
22222
  </div>
22216
22223
  `
@@ -22220,6 +22227,7 @@ win_conferma_v2.ctorParameters = () => [
22220
22227
  { type: MatDialogRef },
22221
22228
  { type: AppService },
22222
22229
  { type: ToastrService },
22230
+ { type: TranslateService },
22223
22231
  { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
22224
22232
  ];
22225
22233
 
@@ -22345,13 +22353,14 @@ win_info_doc_v2.ctorParameters = () => [
22345
22353
  ];
22346
22354
 
22347
22355
  class win_insert_commento_v2 {
22348
- constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
22356
+ constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, _tsr) {
22349
22357
  this.dialogRef = dialogRef;
22350
22358
  this.m_dialogRef = m_dialogRef;
22351
22359
  this.m_appService = m_appService;
22352
22360
  this.toastr = toastr;
22353
22361
  this._dataService = _dataService;
22354
22362
  this.m_wkf = m_wkf;
22363
+ this._tsr = _tsr;
22355
22364
  this.not_int = true;
22356
22365
  this.nota = "";
22357
22366
  this.title = "COMMENTI";
@@ -22440,13 +22449,13 @@ class win_insert_commento_v2 {
22440
22449
  let ok_op = false;
22441
22450
  if (data != null)
22442
22451
  if (data.result_msg == "OK") {
22443
- this.toastr.info("INFO", "COMMENTO INSERITO", {
22452
+ this.toastr.info(this._tsr.instant("INFO"), this._tsr.instant("COMMENTO INSERITO"), {
22444
22453
  timeOut: 1000,
22445
22454
  progressBar: true,
22446
22455
  });
22447
22456
  this.b_edit = false;
22448
22457
  if (sdest != "")
22449
- this.sendEMail_ex(this.m_appService.getState().wkf_doc_info.curr_user, sdest, this.subject.split("<OP>").join("E' stato inserito un commento"), "<br><br>Commento inserito: <br>" +
22458
+ this.sendEMail_ex(this.m_appService.getState().wkf_doc_info.curr_user, sdest, this.subject.split("<OP>").join(this._tsr.instant("E' stato inserito un commento")), "<br><br>" + this._tsr.instant("Commento inserito") + ": <br>" +
22450
22459
  this.nota.split("\n").join("<br>"), this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.link, this.codice_doc, "");
22451
22460
  }
22452
22461
  });
@@ -22478,17 +22487,17 @@ win_insert_commento_v2.decorators = [
22478
22487
 
22479
22488
  <div mat-dialog-content style="min-width:800px;font-size: 15px;">
22480
22489
  <mat-form-field appearance="outline" floatLabel="always"
22481
- ><mat-label>Commento</mat-label>
22490
+ ><mat-label>{{'Commento' | translate}}</mat-label>
22482
22491
  <textarea matInput [(ngModel)]="nota" rows="12"></textarea>
22483
22492
  </mat-form-field>
22484
22493
 
22485
22494
  <div>
22486
- <button mat-flat-button color="primary" (click)="ok()">OK</button
22495
+ <button mat-flat-button color="primary" (click)="ok()">{{'OK' | translate}}</button
22487
22496
  >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
22488
- <button mat-flat-button color="warn" (click)="annulla()">ANNULLA</button
22497
+ <button mat-flat-button color="warn" (click)="annulla()">{{'ANNULLA' | translate}}</button
22489
22498
  >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
22490
22499
  <mat-checkbox [(ngModel)]="not_int" [hidden]="lettori === ''">
22491
- Notifica Interessati
22500
+ {{'Notifica Interessati' | translate}
22492
22501
  </mat-checkbox>
22493
22502
  </div>
22494
22503
  </div>
@@ -22502,11 +22511,12 @@ win_insert_commento_v2.ctorParameters = () => [
22502
22511
  { type: AppService },
22503
22512
  { type: ToastrService },
22504
22513
  { type: QueryService },
22505
- { type: WkfService }
22514
+ { type: WkfService },
22515
+ { type: TranslateService }
22506
22516
  ];
22507
22517
 
22508
22518
  class win_log_v2 {
22509
- constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
22519
+ constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file, _tsr) {
22510
22520
  this.dialogRef = dialogRef;
22511
22521
  this.m_dialogRef = m_dialogRef;
22512
22522
  this.m_appService = m_appService;
@@ -22514,6 +22524,7 @@ class win_log_v2 {
22514
22524
  this._dataService = _dataService;
22515
22525
  this.m_wkf = m_wkf;
22516
22526
  this.m_file = m_file;
22527
+ this._tsr = _tsr;
22517
22528
  this.ossv = false;
22518
22529
  this.not_comm = false;
22519
22530
  this.not_comm_disabled = false;
@@ -22592,14 +22603,14 @@ class win_log_v2 {
22592
22603
  });
22593
22604
  }
22594
22605
  annulla() {
22595
- localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", "Conferma Operazione");
22596
- localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
22606
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", this._tsr.instant("Conferma Operazione"));
22607
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", this._tsr.instant("Confermi di voler annullare l'inserimento del commento?"));
22597
22608
  let dialogRef1 = this.m_dialogRef.open(fh_win_confirm);
22598
22609
  dialogRef1.afterClosed().subscribe((result) => {
22599
22610
  if (result) {
22600
22611
  this.nota = "";
22601
22612
  this.b_edit = false;
22602
- this.title = "LOG WORKFLOW E COMMENTI";
22613
+ this.title = this._tsr.instant("LOG WORKFLOW E COMMENTI");
22603
22614
  }
22604
22615
  });
22605
22616
  }
@@ -22607,7 +22618,7 @@ class win_log_v2 {
22607
22618
  this.nota = "";
22608
22619
  this.b_edit = true;
22609
22620
  this.b_ins = true;
22610
- this.title = "INSERISCI COMMENTO";
22621
+ this.title = this._tsr.instant("INSERISCI COMMENTO");
22611
22622
  }
22612
22623
  ngAfterViewInit() {
22613
22624
  setTimeout(() => {
@@ -22619,7 +22630,7 @@ class win_log_v2 {
22619
22630
  this.b_ins = false;
22620
22631
  this.nota = event.stato_attuale;
22621
22632
  this.edit_id = event.id_comment;
22622
- this.title = "MODIFICA COMMENTO";
22633
+ this.title = this._tsr.instant("MODIFICA COMMENTO");
22623
22634
  }
22624
22635
  refresh_list() {
22625
22636
  let p = new QParam();
@@ -22661,7 +22672,7 @@ class win_log_v2 {
22661
22672
  }
22662
22673
  else {
22663
22674
  if (this.nota == "") {
22664
- this.toastr.error("INSERIRE UN COMMENTO");
22675
+ this.toastr.error(this._tsr.instant("INSERIRE UN COMMENTO"));
22665
22676
  return;
22666
22677
  }
22667
22678
  if (this.notifica_commenti == 1)
@@ -22700,7 +22711,7 @@ class win_log_v2 {
22700
22711
  let dialo = this.m_dialogRef.open(fh_win_list, { disableClose: true });
22701
22712
  setTimeout(() => {
22702
22713
  dialo.componentInstance.title =
22703
- "Selezione almeno un gruppo da notificare";
22714
+ this._tsr.instant("Selezione almeno un gruppo da notificare");
22704
22715
  dialo.componentInstance.types = ["string"];
22705
22716
  dialo.componentInstance.values = [
22706
22717
  this.m_appService.getState().wkf_doc_info.uiid_app,
@@ -22771,7 +22782,7 @@ class win_log_v2 {
22771
22782
  let ok_op = false;
22772
22783
  if (data != null)
22773
22784
  if (data.result_msg == "OK") {
22774
- this.toastr.info("INFO", "COMMENTO INSERITO", {
22785
+ this.toastr.info(this._tsr.instant("INFO"), this._tsr.instant("COMMENTO INSERITO"), {
22775
22786
  timeOut: 1000,
22776
22787
  progressBar: true,
22777
22788
  });
@@ -22788,7 +22799,7 @@ class win_log_v2 {
22788
22799
  if (sdest != "")
22789
22800
  this.sendEMail_ex(this.m_appService.getState().wkf_doc_info.curr_user, sdest, this.subject
22790
22801
  .split("<OP>")
22791
- .join("E' stato inserito un commento"), "<br><br>Commento inserito: <br>" +
22802
+ .join(this._tsr.instant("E' stato inserito un commento")), "<br><br>" + this._tsr.instant("Commento inserito") + ": <br>" +
22792
22803
  this.nota.split("\n").join("<br>"), this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.link, this.codice_doc, "");
22793
22804
  this.refresh_list();
22794
22805
  }
@@ -22803,7 +22814,7 @@ class win_log_v2 {
22803
22814
  let ok_op = false;
22804
22815
  if (data != null)
22805
22816
  if (data.result_msg == "OK") {
22806
- this.toastr.info("INFO", "COMMENTO AGGIORNATO", {
22817
+ this.toastr.info(this._tsr.instant("INFO"), this._tsr.instant("COMMENTO AGGIORNATO"), {
22807
22818
  timeOut: 1000,
22808
22819
  progressBar: true,
22809
22820
  });
@@ -22820,7 +22831,7 @@ class win_log_v2 {
22820
22831
  if (sdest != "")
22821
22832
  this.sendEMail_ex(this.m_appService.getState().wkf_doc_info.curr_user, sdest, this.subject
22822
22833
  .split("<OP>")
22823
- .join("E' stato modificato un commento"), "<br><br>Commento modificato: <br>" +
22834
+ .join(this._tsr.instant("E' stato modificato un commento")), "<br><br>" + this._tsr.instant("Commento modificato") + ": <br>" +
22824
22835
  this.nota.split("\n").join("<br>"), this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.link, this.codice_doc, "");
22825
22836
  this.refresh_list();
22826
22837
  }
@@ -22864,7 +22875,7 @@ win_log_v2.decorators = [
22864
22875
  >
22865
22876
  <button mat-flat-button color="accent" (click)="ins()">
22866
22877
  <mat-icon>note_add</mat-icon>
22867
- INSERISCI</button
22878
+ {{'INSERISCI' | translate}}</button
22868
22879
  >&nbsp;&nbsp;&nbsp;&nbsp;
22869
22880
  </div>
22870
22881
 
@@ -22874,7 +22885,7 @@ win_log_v2.decorators = [
22874
22885
  *ngIf="b_edit"
22875
22886
  appearance="outline"
22876
22887
  floatLabel="always"
22877
- ><mat-label>Commento</mat-label>
22888
+ ><mat-label>{{'Commento' | translate}}</mat-label>
22878
22889
  <textarea matInput [(ngModel)]="nota" rows="12"></textarea>
22879
22890
  </mat-form-field>
22880
22891
 
@@ -22886,7 +22897,7 @@ win_log_v2.decorators = [
22886
22897
  style="background-color: #F5F5F5"
22887
22898
  (click)="annulla()"
22888
22899
  >
22889
- ANNULLA</button
22900
+ {{'ANNULLA' | translate}}</button
22890
22901
  >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
22891
22902
  <mat-checkbox
22892
22903
  [disabled]="not_comm_disabled"
@@ -22896,7 +22907,7 @@ win_log_v2.decorators = [
22896
22907
  (notifica_commenti == 1 && lettori == '')
22897
22908
  "
22898
22909
  >
22899
- Notifica Interessati
22910
+ {{'Notifica Interessati' | translate}}
22900
22911
  </mat-checkbox>
22901
22912
  </div>
22902
22913
  <br /><br />
@@ -22904,9 +22915,9 @@ win_log_v2.decorators = [
22904
22915
  <table *ngIf="!b_edit" class="fh_table" style="width:90%">
22905
22916
  <thead>
22906
22917
  <tr>
22907
- <th width="15%">Data</th>
22908
- <th width="15%">Utente</th>
22909
- <th>Operazione</th>
22918
+ <th width="15%"> {{'Data' | translate}}</th>
22919
+ <th width="15%"> {{'Utente' | translate}}</th>
22920
+ <th> {{'Operazione' | translate}}</th>
22910
22921
  <td></td>
22911
22922
  <td></td>
22912
22923
  </tr>
@@ -22959,18 +22970,20 @@ win_log_v2.ctorParameters = () => [
22959
22970
  { type: ToastrService },
22960
22971
  { type: QueryService },
22961
22972
  { type: WkfService },
22962
- { type: FileService }
22973
+ { type: FileService },
22974
+ { type: TranslateService }
22963
22975
  ];
22964
22976
  win_log_v2.propDecorators = {
22965
22977
  zz: [{ type: ViewChild, args: ["zz",] }]
22966
22978
  };
22967
22979
 
22968
22980
  class win_recupera_doc_v2 {
22969
- constructor(dialogRef, m_appService, toastr, _dataService) {
22981
+ constructor(dialogRef, m_appService, toastr, _dataService, _tsr) {
22970
22982
  this.dialogRef = dialogRef;
22971
22983
  this.m_appService = m_appService;
22972
22984
  this.toastr = toastr;
22973
22985
  this._dataService = _dataService;
22986
+ this._tsr = _tsr;
22974
22987
  this.flt_grid = "1=1";
22975
22988
  this.title = "RECUPERA DOCUMENTO";
22976
22989
  }
@@ -22985,7 +22998,7 @@ class win_recupera_doc_v2 {
22985
22998
  this._dataService.doQuery(p).subscribe((data) => {
22986
22999
  if (data != null)
22987
23000
  if (data.result_msg == "OK") {
22988
- this.toastr.info("Documento " + this.datagrid.sRow.codice + " Recuperato");
23001
+ this.toastr.info(this._tsr.instant("Documento") + " " + this.datagrid.sRow.codice + " " + this._tsr.instant("Recuperato"));
22989
23002
  this.dialogRef.close("ok");
22990
23003
  }
22991
23004
  }, (err) => {
@@ -22995,25 +23008,25 @@ class win_recupera_doc_v2 {
22995
23008
  init_w(id_app) {
22996
23009
  this.datagrid.columnDefs = [
22997
23010
  {
22998
- headerName: "Codice",
23011
+ headerName: this._tsr.instant("Codice"),
22999
23012
  field: "codice",
23000
23013
  filter: "agTextColumnFilter",
23001
23014
  filterParams: { newRowsAction: "keep" },
23002
23015
  },
23003
23016
  {
23004
- headerName: "Oggetto",
23017
+ headerName: this._tsr.instant("Oggetto"),
23005
23018
  field: "oggetto",
23006
23019
  filter: "agTextColumnFilter",
23007
23020
  filterParams: { newRowsAction: "keep" },
23008
23021
  },
23009
23022
  {
23010
- headerName: "Stato",
23023
+ headerName: this._tsr.instant("Stato"),
23011
23024
  field: "stat_stato",
23012
23025
  filter: "agTextColumnFilter",
23013
23026
  filterParams: { newRowsAction: "keep" },
23014
23027
  },
23015
23028
  {
23016
- headerName: "Richiedente",
23029
+ headerName: this._tsr.instant("Richiedente"),
23017
23030
  field: "nc",
23018
23031
  filter: "agTextColumnFilter",
23019
23032
  filterParams: { newRowsAction: "keep" },
@@ -23028,7 +23041,7 @@ win_recupera_doc_v2.decorators = [
23028
23041
  template: `
23029
23042
  <div fxLayout="column">
23030
23043
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
23031
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
23044
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
23032
23045
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
23033
23046
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
23034
23047
  </div>
@@ -23063,7 +23076,7 @@ win_recupera_doc_v2.decorators = [
23063
23076
  style="background-color: #F5F5F5"
23064
23077
  (click)="dialogRef.close('')"
23065
23078
  >
23066
- CHIUDI
23079
+ {{'CHIUDI' | translate}}
23067
23080
  </button>
23068
23081
  </div>
23069
23082
  </div>
@@ -23075,16 +23088,18 @@ win_recupera_doc_v2.ctorParameters = () => [
23075
23088
  { type: MatDialogRef },
23076
23089
  { type: AppService },
23077
23090
  { type: ToastrService },
23078
- { type: QueryService }
23091
+ { type: QueryService },
23092
+ { type: TranslateService }
23079
23093
  ];
23080
23094
  win_recupera_doc_v2.propDecorators = {
23081
23095
  datagrid: [{ type: ViewChild, args: ["dtm",] }]
23082
23096
  };
23083
23097
 
23084
23098
  class win_riassegna_select_level_v2 {
23085
- constructor(dialogRef, toastr) {
23099
+ constructor(dialogRef, toastr, _tsr) {
23086
23100
  this.dialogRef = dialogRef;
23087
23101
  this.toastr = toastr;
23102
+ this._tsr = _tsr;
23088
23103
  this.selval = "-1";
23089
23104
  this.title = "";
23090
23105
  this.errorMsg = "";
@@ -23110,14 +23125,14 @@ class win_riassegna_select_level_v2 {
23110
23125
  }
23111
23126
  ok() {
23112
23127
  if (this.selval == null) {
23113
- this.toastr.error("ERRORE", "SELEZIONARE LO STEP", {
23128
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE LO STEP"), {
23114
23129
  timeOut: 1000,
23115
23130
  progressBar: true,
23116
23131
  });
23117
23132
  return;
23118
23133
  }
23119
23134
  if (this.selval == "-1") {
23120
- this.toastr.error("ERRORE", "SELEZIONARE LO STEP", {
23135
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE LO STEP"), {
23121
23136
  timeOut: 1000,
23122
23137
  progressBar: true,
23123
23138
  });
@@ -23133,7 +23148,7 @@ class win_riassegna_select_level_v2 {
23133
23148
  }
23134
23149
  }
23135
23150
  if (lvl == null) {
23136
- this.toastr.error("ERRORE", "SELEZIONARE LO STEP", {
23151
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE LO STEP"), {
23137
23152
  timeOut: 1000,
23138
23153
  progressBar: true,
23139
23154
  });
@@ -23148,7 +23163,7 @@ win_riassegna_select_level_v2.decorators = [
23148
23163
  template: `
23149
23164
  <div fxLayout="column">
23150
23165
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
23151
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
23166
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
23152
23167
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
23153
23168
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
23154
23169
  </div>
@@ -23161,11 +23176,11 @@ win_riassegna_select_level_v2.decorators = [
23161
23176
  style="width:100%"
23162
23177
  appearance="outline"
23163
23178
  floatLabel="always"
23164
- ><mat-label>Seleziona Step:</mat-label>
23179
+ ><mat-label>{{'Seleziona Step' | translate}}:</mat-label>
23165
23180
  <mat-select #cmb [(ngModel)]="selval" (change)="sc()">
23166
23181
  <mat-option value="-1">Seleziona</mat-option>
23167
- <mat-option value="{{ app.step }}" *ngFor="let app of myData">{{
23168
- app.description
23182
+ <mat-option value="{{ app.step }}" *ngFor="let app of myData">
23183
+ {{app.description | translate }}
23169
23184
  }}</mat-option>
23170
23185
  </mat-select>
23171
23186
  </mat-form-field>
@@ -23173,14 +23188,14 @@ win_riassegna_select_level_v2.decorators = [
23173
23188
  <br /><br /><br /><br />
23174
23189
  <div style="width:100%;text-align:center;">
23175
23190
  <button mat-flat-button color="primary" (click)="ok()">
23176
- {{ OK_BUTTON }}</button
23191
+ {{ OK_BUTTON | translate }}</button
23177
23192
  >&nbsp;&nbsp;&nbsp;
23178
23193
  <button
23179
23194
  mat-flat-button
23180
23195
  style="background-color: #F5F5F5"
23181
23196
  (click)="close()"
23182
23197
  >
23183
- ANNULLA
23198
+ {{'ANNULLA' | translate }}
23184
23199
  </button>
23185
23200
  </div>
23186
23201
  <br /><br />
@@ -23195,16 +23210,18 @@ win_riassegna_select_level_v2.decorators = [
23195
23210
  ];
23196
23211
  win_riassegna_select_level_v2.ctorParameters = () => [
23197
23212
  { type: MatDialogRef },
23198
- { type: ToastrService }
23213
+ { type: ToastrService },
23214
+ { type: TranslateService }
23199
23215
  ];
23200
23216
  win_riassegna_select_level_v2.propDecorators = {
23201
23217
  smtr: [{ type: ViewChild, args: ["cmb",] }]
23202
23218
  };
23203
23219
 
23204
23220
  class win_riassegna_select_user_v2 {
23205
- constructor(dialogRef, toastr) {
23221
+ constructor(dialogRef, toastr, _tsr) {
23206
23222
  this.dialogRef = dialogRef;
23207
23223
  this.toastr = toastr;
23224
+ this._tsr = _tsr;
23208
23225
  this.commento_hidden = false;
23209
23226
  this.nota = "";
23210
23227
  this.nota_commento = "";
@@ -23218,14 +23235,14 @@ class win_riassegna_select_user_v2 {
23218
23235
  ok() {
23219
23236
  if (!this.commento_hidden)
23220
23237
  if (this.nota == "") {
23221
- this.toastr.error("ERRORE", "INSERIRE IL COMMENTO", {
23238
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("INSERIRE IL COMMENTO"), {
23222
23239
  timeOut: 1000,
23223
23240
  progressBar: true,
23224
23241
  });
23225
23242
  return;
23226
23243
  }
23227
23244
  if (this.up.getSelArr().length == 0) {
23228
- this.toastr.error("ERRORE", "SELEZIONARE ALMENO UN UTENTE", {
23245
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE ALMENO UN UTENTE"), {
23229
23246
  timeOut: 1000,
23230
23247
  progressBar: true,
23231
23248
  });
@@ -23244,7 +23261,7 @@ win_riassegna_select_user_v2.decorators = [
23244
23261
  template: `
23245
23262
  <div fxLayout="column">
23246
23263
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
23247
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
23264
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate }}</div>
23248
23265
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
23249
23266
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
23250
23267
  </div>
@@ -23262,13 +23279,13 @@ win_riassegna_select_user_v2.decorators = [
23262
23279
  [hidden]="commento_hidden"
23263
23280
  appearance="outline"
23264
23281
  floatLabel="always"
23265
- ><mat-label>Commento {{ nota_commento }}</mat-label>
23282
+ ><mat-label>{{'Commento' | translate }} {{ nota_commento | translate }}</mat-label>
23266
23283
  <textarea matInput [(ngModel)]="nota" rows="2"></textarea>
23267
23284
  </mat-form-field>
23268
23285
  </div>
23269
23286
  <div mat-dialog-actions fxLayout="row" fxLayoutAlign="center center">
23270
23287
  <div>
23271
- <button mat-flat-button color="primary" (click)="ok()">OK</button>
23288
+ <button mat-flat-button color="primary" (click)="ok()"> {{'OK' | translate }}</button>
23272
23289
  </div>
23273
23290
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
23274
23291
  <div>
@@ -23277,7 +23294,7 @@ win_riassegna_select_user_v2.decorators = [
23277
23294
  style="background-color: #F5F5F5"
23278
23295
  (click)="close()"
23279
23296
  >
23280
- ANNULLA
23297
+ {{'ANNULLA' | translate }}
23281
23298
  </button>
23282
23299
  </div>
23283
23300
  </div>
@@ -23290,7 +23307,8 @@ win_riassegna_select_user_v2.decorators = [
23290
23307
  ];
23291
23308
  win_riassegna_select_user_v2.ctorParameters = () => [
23292
23309
  { type: MatDialogRef },
23293
- { type: ToastrService }
23310
+ { type: ToastrService },
23311
+ { type: TranslateService }
23294
23312
  ];
23295
23313
  win_riassegna_select_user_v2.propDecorators = {
23296
23314
  up: [{ type: ViewChild, args: ["up",] }]
@@ -23351,7 +23369,7 @@ win_salva_annulla_v2.decorators = [
23351
23369
  <div style="width:400px" [hidden]="!b_commento"><br /></div>
23352
23370
  <div style="width:400px" [hidden]="!b_commento">
23353
23371
  <FHTextArea
23354
- label="{{ commento_mgs }}"
23372
+ label="{{ commento_mgs |translate }}"
23355
23373
  required
23356
23374
  [(ngModel)]="commento"
23357
23375
  ></FHTextArea>
@@ -23359,10 +23377,10 @@ win_salva_annulla_v2.decorators = [
23359
23377
  <br />
23360
23378
  <div style="width:100%;text-align:center;">
23361
23379
  <button mat-flat-button color="primary" (click)="salva_esci()">
23362
- {{ salva_ed_esci }}</button
23380
+ {{ salva_ed_esci|translate }}</button
23363
23381
  >&nbsp;&nbsp;&nbsp;&nbsp;
23364
23382
  <button mat-flat-button color="warn" (click)="esci_senza_salv()">
23365
- {{ esci_senza_salvataggi }}
23383
+ {{ esci_senza_salvataggi |translate }}
23366
23384
  </button>
23367
23385
  </div>
23368
23386
  </div>
@@ -23376,10 +23394,11 @@ win_salva_annulla_v2.ctorParameters = () => [
23376
23394
  ];
23377
23395
 
23378
23396
  class win_select_canale_v2 {
23379
- constructor(dialogRef, m_appService, toastr) {
23397
+ constructor(dialogRef, m_appService, toastr, _tsr) {
23380
23398
  this.dialogRef = dialogRef;
23381
23399
  this.m_appService = m_appService;
23382
23400
  this.toastr = toastr;
23401
+ this._tsr = _tsr;
23383
23402
  this.selval = "-1";
23384
23403
  this.errorMsg = "";
23385
23404
  this.title = 'SELEZIONA AMBITO';
@@ -23391,7 +23410,7 @@ class win_select_canale_v2 {
23391
23410
  }
23392
23411
  ok() {
23393
23412
  if (this.selval == "-1") {
23394
- this.toastr.error("ERRORE", "SELEZIONARE AMBITO", {
23413
+ this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE AMBITO"), {
23395
23414
  timeOut: 1000,
23396
23415
  progressBar: true,
23397
23416
  });
@@ -23406,7 +23425,7 @@ win_select_canale_v2.decorators = [
23406
23425
  template: `
23407
23426
  <div fxLayout="column">
23408
23427
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
23409
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
23428
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title|translate }}</div>
23410
23429
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
23411
23430
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
23412
23431
  </div>
@@ -23419,21 +23438,21 @@ win_select_canale_v2.decorators = [
23419
23438
  style="width:100%"
23420
23439
  appearance="outline"
23421
23440
  floatLabel="always"
23422
- ><mat-label>Seleziona Ambito:</mat-label>
23441
+ ><mat-label>{{'Seleziona Ambito'|translate }}:</mat-label>
23423
23442
  <mat-select #cmb [(ngModel)]="selval">
23424
- <mat-option value="-1">Seleziona</mat-option>
23425
- <mat-option value="{{ app }}" *ngFor="let app of myData">{{
23426
- app
23443
+ <mat-option value="-1">{{'Seleziona' |translate }}</mat-option>
23444
+ <mat-option value="{{ app }}" *ngFor="let app of myData">
23445
+ {{app |translate }}
23427
23446
  }}</mat-option>
23428
23447
  </mat-select>
23429
23448
  </mat-form-field>
23430
23449
  </div>
23431
23450
  <br />
23432
23451
  <div style="width:100%;text-align:center;">
23433
- <button mat-flat-button color="primary" (click)="ok()">OK</button>
23452
+ <button mat-flat-button color="primary" (click)="ok()"> {{'OK' | translate }}</button>
23434
23453
  </div>
23435
23454
  <p style="color:#CC0000;font-size:9px;" *ngIf="errorMsg != ''">
23436
- {{ errorMsg }}
23455
+ {{ errorMsg |translate }}
23437
23456
  </p>
23438
23457
  </div>
23439
23458
  </div>
@@ -23443,16 +23462,18 @@ win_select_canale_v2.decorators = [
23443
23462
  win_select_canale_v2.ctorParameters = () => [
23444
23463
  { type: MatDialogRef },
23445
23464
  { type: AppService },
23446
- { type: ToastrService }
23465
+ { type: ToastrService },
23466
+ { type: TranslateService }
23447
23467
  ];
23448
23468
  win_select_canale_v2.propDecorators = {
23449
23469
  smtr: [{ type: ViewChild, args: ["cmb",] }]
23450
23470
  };
23451
23471
 
23452
23472
  class win_select_level_v2 {
23453
- constructor(dialogRef, toastr, data) {
23473
+ constructor(dialogRef, toastr, _tsr, data) {
23454
23474
  this.dialogRef = dialogRef;
23455
23475
  this.toastr = toastr;
23476
+ this._tsr = _tsr;
23456
23477
  this.data = data;
23457
23478
  this.selval = "-1";
23458
23479
  this.errorMsg = "";
@@ -23482,7 +23503,7 @@ class win_select_level_v2 {
23482
23503
  }
23483
23504
  for (let i = 0; i < this.trans.length; i++) {
23484
23505
  if (this.selval == this.trans[i].uiid) {
23485
- this.OK_BUTTON = "OK (" + this.trans[i].description + ")";
23506
+ this.OK_BUTTON = this._tsr.instant('OK') + " (" + this.trans[i].description + ")";
23486
23507
  break;
23487
23508
  }
23488
23509
  }
@@ -23523,7 +23544,7 @@ class win_select_level_v2 {
23523
23544
  }*/
23524
23545
  ok() {
23525
23546
  if (this.selval == null || this.selval == '' || this.selval == '-1') {
23526
- this.toastr.error('Selezionare lo step di destinazione');
23547
+ this.toastr.error(this._tsr.instant('Selezionare lo step di destinazione'));
23527
23548
  return;
23528
23549
  }
23529
23550
  for (let i = 0; i < this.trans.length; i++) {
@@ -23540,7 +23561,7 @@ win_select_level_v2.decorators = [
23540
23561
  <div fxLayout="column">
23541
23562
  <div  fxFlex="100" fxLayout="row"   fxLayoutAlign="start center"   class="dialog_header"> 
23542
23563
 
23543
- <div fxLayout="row"  fxLayoutAlign="start center" fxFlex="90"><div>{{title}}</div></div> 
23564
+ <div fxLayout="row"  fxLayoutAlign="start center" fxFlex="90"><div>{{title|translate}}</div></div> 
23544
23565
 
23545
23566
  <div   fxFlex="10" fxLayout="row" fxLayoutAlign="end center">
23546
23567
  <div><img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="dialogRef.close(null)" />  </div>
@@ -23559,13 +23580,13 @@ win_select_level_v2.decorators = [
23559
23580
  [style.color]="app.color_font" style="font-weight:bold;font-size:18px;min-width:300px">
23560
23581
  <i *ngIf="app.icon!=null && app.icon!=''" class="fa {{app.icon}}" aria-hidden="true"></i>
23561
23582
 
23562
- {{ app.description}}</button>
23583
+ {{ app.description|translate}}</button>
23563
23584
  <br><br>
23564
23585
 
23565
23586
 
23566
23587
  </div>
23567
23588
  </div>
23568
- </mat-dialog-content>
23589
+ </mat-dialog-content>
23569
23590
 
23570
23591
 
23571
23592
  `
@@ -23574,6 +23595,7 @@ win_select_level_v2.decorators = [
23574
23595
  win_select_level_v2.ctorParameters = () => [
23575
23596
  { type: MatDialogRef },
23576
23597
  { type: ToastrService },
23598
+ { type: TranslateService },
23577
23599
  { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
23578
23600
  ];
23579
23601
  win_select_level_v2.propDecorators = {
@@ -23581,9 +23603,10 @@ win_select_level_v2.propDecorators = {
23581
23603
  };
23582
23604
 
23583
23605
  class win_sostituisci_utente_v2 {
23584
- constructor(dialogRef, toastr) {
23606
+ constructor(dialogRef, toastr, _tsr) {
23585
23607
  this.dialogRef = dialogRef;
23586
23608
  this.toastr = toastr;
23609
+ this._tsr = _tsr;
23587
23610
  this.nota = "";
23588
23611
  this.title = "";
23589
23612
  this.comm_notrequired = true;
@@ -23595,27 +23618,27 @@ class win_sostituisci_utente_v2 {
23595
23618
  ok() {
23596
23619
  console.log(this.up.getUsersUsername(), this.up1.getUsersUsername());
23597
23620
  if (this.up.getUsersUsername() == null) {
23598
- this.toastr.error("selezionare utente origine");
23621
+ this.toastr.error(this._tsr.instant("selezionare utente origine"));
23599
23622
  return;
23600
23623
  }
23601
23624
  if (this.up.getUsersUsername() == "-1") {
23602
- this.toastr.error("selezionare utente origine");
23625
+ this.toastr.error(this._tsr.instant("selezionare utente origine"));
23603
23626
  return;
23604
23627
  }
23605
23628
  if (this.up.getUsersUsername() == "") {
23606
- this.toastr.error("selezionare utente origine");
23629
+ this.toastr.error(this._tsr.instant("selezionare utente origine"));
23607
23630
  return;
23608
23631
  }
23609
23632
  if (this.up1.getUsersUsername() == null) {
23610
- this.toastr.error("selezionare utente destinazione");
23633
+ this.toastr.error(this._tsr.instant("selezionare utente destinazione"));
23611
23634
  return;
23612
23635
  }
23613
23636
  if (this.up1.getUsersUsername() == "-1") {
23614
- this.toastr.error("selezionare utente destinazione");
23637
+ this.toastr.error(this._tsr.instant("selezionare utente destinazione"));
23615
23638
  return;
23616
23639
  }
23617
23640
  if (this.up1.getUsersUsername() == "") {
23618
- this.toastr.error("selezionare utente destinazione");
23641
+ this.toastr.error(this._tsr.instant("selezionare utente destinazione"));
23619
23642
  return;
23620
23643
  }
23621
23644
  let o = new Object();
@@ -23631,7 +23654,7 @@ win_sostituisci_utente_v2.decorators = [
23631
23654
  template: `
23632
23655
  <div fxLayout="column">
23633
23656
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
23634
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
23657
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title|translate}}</div>
23635
23658
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
23636
23659
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
23637
23660
  </div>
@@ -23643,15 +23666,15 @@ win_sostituisci_utente_v2.decorators = [
23643
23666
  style="font-size:12px"
23644
23667
  >
23645
23668
  <div style="width:100%">
23646
- <FHUserField label="Utente da sostituire" #up></FHUserField>
23669
+ <FHUserField [label]="'Utente da sostituire' |translate" #up></FHUserField>
23647
23670
  </div>
23648
23671
  <div style="width:100%">
23649
- <FHUserField label="Utente sostituto" #up1></FHUserField>
23672
+ <FHUserField [label]="'Utente sostituto' |translate" #up1></FHUserField>
23650
23673
  </div>
23651
23674
  </div>
23652
23675
  <div mat-dialog-actions fxLayout="row" fxLayoutAlign="center center">
23653
23676
  <div>
23654
- <button mat-flat-button color="primary" (click)="ok()">OK</button>
23677
+ <button mat-flat-button color="primary" (click)="ok()"> {{'OK' | translate }}</button>
23655
23678
  </div>
23656
23679
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
23657
23680
  <div>
@@ -23660,7 +23683,7 @@ win_sostituisci_utente_v2.decorators = [
23660
23683
  style="background-color: #F5F5F5"
23661
23684
  (click)="close()"
23662
23685
  >
23663
- ANNULLA
23686
+ {{'ANNULLA' | translate }}
23664
23687
  </button>
23665
23688
  </div>
23666
23689
  </div>
@@ -23670,7 +23693,8 @@ win_sostituisci_utente_v2.decorators = [
23670
23693
  ];
23671
23694
  win_sostituisci_utente_v2.ctorParameters = () => [
23672
23695
  { type: MatDialogRef },
23673
- { type: ToastrService }
23696
+ { type: ToastrService },
23697
+ { type: TranslateService }
23674
23698
  ];
23675
23699
  win_sostituisci_utente_v2.propDecorators = {
23676
23700
  up: [{ type: ViewChild, args: ["up",] }],
@@ -23723,7 +23747,7 @@ win_uploads_v2.decorators = [
23723
23747
  template: `
23724
23748
  <div   fxLayout="column" fxLayoutGap="5px">
23725
23749
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
23726
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
23750
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title |translate}}</div>
23727
23751
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
23728
23752
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
23729
23753
  </div>
@@ -23816,11 +23840,11 @@ class dati_aggiuntivi_v2 {
23816
23840
  this.bNuovaRev_Agg = false;
23817
23841
  this.hide_richiedente = false;
23818
23842
  this.bEdit_Agg = false;
23819
- this.btnSalva_label = "SALVA";
23820
- this.btnTerminaOp_label = "Termina Attività";
23821
- this.btnApprova_label = "APPROVA";
23822
- this.btnAssegna_label = "Assegna";
23823
- this.btnRespingi_label = "RESPINGI";
23843
+ this.btnSalva_label = this.tsr.instant("SALVA");
23844
+ this.btnTerminaOp_label = this.tsr.instant("Termina Attività");
23845
+ this.btnApprova_label = this.tsr.instant("APPROVA");
23846
+ this.btnAssegna_label = this.tsr.instant("Assegna");
23847
+ this.btnRespingi_label = this.tsr.instant("RESPINGI");
23824
23848
  this.id_documento = "";
23825
23849
  this.m_autori = "";
23826
23850
  this.m_lettori = "";
@@ -25263,13 +25287,13 @@ class dati_aggiuntivi_v2 {
25263
25287
  this.bEdit_bozza = false;
25264
25288
  this.bNuovaRev_Agg = false;
25265
25289
  this.bEdit_Agg = this.bEdit_wkf;
25266
- this.btnSalva_label = "SALVA";
25267
- this.btnTerminaOp_label = "Termina Attività";
25268
- this.btnApprova_label = "APPROVA";
25269
- this.btnAssegna_label = "Assegna";
25270
- this.btnRespingi_label = "RESPINGI";
25271
- this.uti_s.set_home_title(this.app_info.descrizione_breve + " - Nuova Richiesta");
25272
- this.reset_form_v(this.app_info.descrizione_breve + " - Nuova Richiesta");
25290
+ this.btnSalva_label = this.tsr.instant("SALVA");
25291
+ this.btnTerminaOp_label = this.tsr.instant("Termina Attività");
25292
+ this.btnApprova_label = this.tsr.instant("APPROVA");
25293
+ this.btnAssegna_label = this.tsr.instant("Assegna");
25294
+ this.btnRespingi_label = this.tsr.instant("RESPINGI");
25295
+ this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) + " - " + this.tsr.instant("Nuova Richiesta"));
25296
+ this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) + " - " + this.tsr.instant("Nuova Richiesta"));
25273
25297
  this.reset_counters_int(0, 0);
25274
25298
  /*
25275
25299
  dati_aggiuntivi.id_doc=id_documento;
@@ -25355,22 +25379,22 @@ class dati_aggiuntivi_v2 {
25355
25379
  }
25356
25380
  this.app_s.getState().wkf_doc_info.in_carico_a = this.s_uto;
25357
25381
  if (this.m_obj.v == null)
25358
- this.uti_s.set_home_title(this.app_info.descrizione_breve +
25382
+ this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) +
25359
25383
  " " +
25360
25384
  this.m_obj.codice +
25361
25385
  " - " +
25362
- this.m_obj.stat_stato);
25386
+ this.tsr.instant(this.m_obj.stat_stato));
25363
25387
  else
25364
- this.uti_s.set_home_title(this.app_info.descrizione_breve +
25388
+ this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) +
25365
25389
  " " +
25366
25390
  this.m_obj.codice + "/" + this.m_obj.v +
25367
25391
  " - " +
25368
- this.m_obj.stat_stato);
25369
- this.reset_form_v(this.app_info.descrizione_breve +
25392
+ this.tsr.instant(this.m_obj.stat_stato));
25393
+ this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) +
25370
25394
  " " +
25371
25395
  this.m_obj.codice +
25372
25396
  " - " +
25373
- this.m_obj.stat_stato);
25397
+ this.tsr.instant(this.m_obj.stat_stato));
25374
25398
  this.old_doc = (JSON.parse(JSON.stringify(this.getfieldvalues())));
25375
25399
  //+' ('+s_uto+')');
25376
25400
  }
@@ -25386,8 +25410,8 @@ class dati_aggiuntivi_v2 {
25386
25410
  revisione() {
25387
25411
  let dialogRef = this.m_dialog.open(fh_win_confirm, {
25388
25412
  disableClose: true, data: {
25389
- title_dialog: "Conferma Operazione",
25390
- msg_dialog: "Confermi di voler revisionare il documento?"
25413
+ title_dialog: this.tsr.instant("Conferma Operazione"),
25414
+ msg_dialog: this.tsr.instant("Confermi di voler revisionare il documento?")
25391
25415
  }
25392
25416
  });
25393
25417
  dialogRef.afterClosed().subscribe((result) => {
@@ -25399,7 +25423,7 @@ class dati_aggiuntivi_v2 {
25399
25423
  this.m_dataService.doQuery(p).subscribe((data) => {
25400
25424
  if (data != null)
25401
25425
  if (data.result_msg == "OK") {
25402
- this.alert('Revisione generata', 0);
25426
+ this.alert(this.tsr.instant('Revisione generata'), 0);
25403
25427
  window.location.reload();
25404
25428
  }
25405
25429
  });
@@ -28818,7 +28842,7 @@ class wkfapp_v2 {
28818
28842
  this.user_nome = this.app_s.user_name;
28819
28843
  this.user_cognome = this.app_s.user_surname;
28820
28844
  this.user_email = this.app_s.user_email;
28821
- this.m_uti.set_home_title(this.att_panelcat);
28845
+ this.m_uti.set_home_title(this.tsr.instant(this.att_panelcat));
28822
28846
  let p = new QParam();
28823
28847
  p.sql = "SELECT_UTENTE_WKF_ADMIN";
28824
28848
  p.types = ["string", "string"];