@fluxhub/fluxhub-lib 10.0.580 → 10.0.582
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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +152 -126
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhcombobox.js +4 -2
- package/esm2015/lib/controls/fhgrid_toolbar.js +3 -3
- package/esm2015/lib/wkf_engine_v2/win_assegna.js +14 -13
- package/esm2015/lib/wkf_engine_v2/win_commenti.js +24 -21
- package/esm2015/lib/wkf_engine_v2/win_commento_sel_notif.js +11 -7
- package/esm2015/lib/wkf_engine_v2/win_conferma.js +13 -10
- package/esm2015/lib/wkf_engine_v2/win_insert_commento.js +11 -8
- package/esm2015/lib/wkf_engine_v2/win_log.js +24 -21
- package/esm2015/lib/wkf_engine_v2/win_recupera.js +13 -10
- package/esm2015/lib/wkf_engine_v2/win_riassegna_select_level.js +15 -12
- package/esm2015/lib/wkf_engine_v2/win_riassegna_select_user.js +12 -9
- package/esm2015/lib/wkf_engine_v2/win_salva_annulla.js +4 -4
- package/esm2015/lib/wkf_engine_v2/win_select_canale.js +14 -11
- package/esm2015/lib/wkf_engine_v2/win_select_level.js +10 -7
- package/esm2015/lib/wkf_engine_v2/win_sostituisci_utente.js +17 -14
- package/esm2015/lib/wkf_engine_v2/win_uploads.js +2 -2
- package/esm2015/lib/wkf_engine_v2/wkfapp.js +21 -21
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +22 -22
- package/fesm2015/fluxhub-fluxhub-lib.js +204 -178
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine_v2/win_assegna.d.ts +3 -3
- package/lib/wkf_engine_v2/win_commenti.d.ts +3 -1
- package/lib/wkf_engine_v2/win_commento_sel_notif.d.ts +3 -1
- package/lib/wkf_engine_v2/win_conferma.d.ts +3 -1
- package/lib/wkf_engine_v2/win_insert_commento.d.ts +3 -1
- package/lib/wkf_engine_v2/win_log.d.ts +3 -1
- package/lib/wkf_engine_v2/win_recupera.d.ts +3 -1
- package/lib/wkf_engine_v2/win_riassegna_select_level.d.ts +3 -1
- package/lib/wkf_engine_v2/win_riassegna_select_user.d.ts +3 -1
- package/lib/wkf_engine_v2/win_select_canale.d.ts +3 -1
- package/lib/wkf_engine_v2/win_select_level.d.ts +3 -1
- package/lib/wkf_engine_v2/win_sostituisci_utente.d.ts +3 -1
- package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +5 -5
- package/package.json +1 -1
|
@@ -1215,7 +1215,9 @@ class FHComboboxComponent {
|
|
|
1215
1215
|
// console.log(this.smtr); console.log(this.smtr.nativeElement);
|
|
1216
1216
|
this.setByValue(this.valDef);
|
|
1217
1217
|
if (this.getValue() == "-1" && this.valDef != "-1")
|
|
1218
|
-
|
|
1218
|
+
if (this.valDef != null)
|
|
1219
|
+
if (this.valDef != '')
|
|
1220
|
+
this.setByDescri(this._tsr.instant(this.valDef));
|
|
1219
1221
|
this.is_loaded = true;
|
|
1220
1222
|
this.fillend.emit();
|
|
1221
1223
|
}
|
|
@@ -16504,8 +16506,8 @@ FHGridToolBarComponent.decorators = [
|
|
|
16504
16506
|
</button>
|
|
16505
16507
|
</div>
|
|
16506
16508
|
<mat-menu #gest_menu_custom="matMenu">
|
|
16507
|
-
<div fxLayout="row" style="width:300px" fxLayoutAlign="center center"
|
|
16508
|
-
<div fxLayout="column" fxLayoutGap="
|
|
16509
|
+
<div fxLayout="row" style="width:300px" fxLayoutAlign="center center">
|
|
16510
|
+
<div fxLayout="column" fxLayoutGap="8px" fxFlex="100" fxLayoutAlign="center start">
|
|
16509
16511
|
<ng-container *ngFor="let app of custom_commands">
|
|
16510
16512
|
|
|
16511
16513
|
<div style="width:280px"><button *ngIf="app.type == 'button'" [hidden]="app.hidden"
|
|
@@ -21544,16 +21546,16 @@ FHCheckBox.propDecorators = {
|
|
|
21544
21546
|
};
|
|
21545
21547
|
|
|
21546
21548
|
class win_assegna_v2 {
|
|
21547
|
-
constructor(dialogRef, m_appService, toastr,
|
|
21549
|
+
constructor(dialogRef, m_appService, toastr, _trs, data) {
|
|
21548
21550
|
this.dialogRef = dialogRef;
|
|
21549
21551
|
this.m_appService = m_appService;
|
|
21550
21552
|
this.toastr = toastr;
|
|
21551
|
-
this.
|
|
21553
|
+
this._trs = _trs;
|
|
21552
21554
|
this.data = data;
|
|
21553
21555
|
this.lbl = "";
|
|
21554
21556
|
this.nota = "";
|
|
21555
21557
|
this.nota_commento = "";
|
|
21556
|
-
this.title = "
|
|
21558
|
+
this.title = "";
|
|
21557
21559
|
this.comm_notrequired = 0;
|
|
21558
21560
|
if (data != null) {
|
|
21559
21561
|
if (data.commento_default != null)
|
|
@@ -21567,12 +21569,13 @@ class win_assegna_v2 {
|
|
|
21567
21569
|
if (data.utenti != null)
|
|
21568
21570
|
this.arrAutori = data.utenti;
|
|
21569
21571
|
}
|
|
21572
|
+
this.title = this._trs.instant("ASSEGNA DOCUMENTO");
|
|
21570
21573
|
for (let i = 0; i < this.arrAutori.length; i++) {
|
|
21571
21574
|
if (this.arrAutori[i].username == null)
|
|
21572
21575
|
this.arrAutori[i].username = this.arrAutori[i].idp;
|
|
21573
21576
|
}
|
|
21574
21577
|
if (this.comm_notrequired == 2)
|
|
21575
|
-
this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
|
|
21578
|
+
this.nota_commento = this._trs.instant(" (COMMENTO NON OBBLIGATORIO)");
|
|
21576
21579
|
if (data != null) {
|
|
21577
21580
|
if (data.commento_default != null)
|
|
21578
21581
|
this.nota = data.commento_default;
|
|
@@ -21585,7 +21588,7 @@ class win_assegna_v2 {
|
|
|
21585
21588
|
}
|
|
21586
21589
|
ok() {
|
|
21587
21590
|
if (this.up.getSelArr().length == 0) {
|
|
21588
|
-
this.toastr.error("ERRORE", "SELEZIONARE ALMENO UN UTENTE", {
|
|
21591
|
+
this.toastr.error("ERRORE", this._trs.instant("SELEZIONARE ALMENO UN UTENTE"), {
|
|
21589
21592
|
timeOut: 1000,
|
|
21590
21593
|
progressBar: true,
|
|
21591
21594
|
});
|
|
@@ -21593,7 +21596,7 @@ class win_assegna_v2 {
|
|
|
21593
21596
|
}
|
|
21594
21597
|
if (this.comm_notrequired == 0)
|
|
21595
21598
|
if (this.nota == "") {
|
|
21596
|
-
this.toastr.error("ERRORE", "INSERIRE IL COMMENTO", {
|
|
21599
|
+
this.toastr.error("ERRORE", this._trs.instant("INSERIRE IL COMMENTO"), {
|
|
21597
21600
|
timeOut: 1000,
|
|
21598
21601
|
progressBar: true,
|
|
21599
21602
|
});
|
|
@@ -21611,7 +21614,7 @@ win_assegna_v2.decorators = [
|
|
|
21611
21614
|
template: `
|
|
21612
21615
|
<div fxLayout="column">
|
|
21613
21616
|
<div fxFlex="100" fxLayout="row" class="dialog_header">
|
|
21614
|
-
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
|
|
21617
|
+
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
|
|
21615
21618
|
<div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
|
|
21616
21619
|
<img src="assets/icons/x.png" style="cursor: pointer;" (click)="close()" />
|
|
21617
21620
|
</div>
|
|
@@ -21631,21 +21634,21 @@ win_assegna_v2.decorators = [
|
|
|
21631
21634
|
<div *ngIf="comm_notrequired != 1">
|
|
21632
21635
|
<br />
|
|
21633
21636
|
<mat-form-field appearance="outline" floatLabel="always"
|
|
21634
|
-
><mat-label>Commento {{ nota_commento }}</mat-label>
|
|
21637
|
+
><mat-label>{{'Commento' | translate}} {{ nota_commento }}</mat-label>
|
|
21635
21638
|
<textarea required matInput [(ngModel)]="nota" rows="4"></textarea>
|
|
21636
21639
|
</mat-form-field>
|
|
21637
21640
|
</div>
|
|
21638
21641
|
</div>
|
|
21639
21642
|
<br />
|
|
21640
21643
|
<div style="width:100%;text-align:center;">
|
|
21641
|
-
<button mat-flat-button color="primary" (click)="ok()">OK</button
|
|
21644
|
+
<button mat-flat-button color="primary" (click)="ok()"> {{'OK' | translate }}</button
|
|
21642
21645
|
>
|
|
21643
21646
|
<button
|
|
21644
21647
|
mat-flat-button
|
|
21645
21648
|
style="background-color: #F5F5F5"
|
|
21646
21649
|
(click)="close()"
|
|
21647
21650
|
>
|
|
21648
|
-
ANNULLA
|
|
21651
|
+
{{'ANNULLA' | translate }}
|
|
21649
21652
|
</button>
|
|
21650
21653
|
</div>
|
|
21651
21654
|
</div>
|
|
@@ -21656,7 +21659,7 @@ win_assegna_v2.ctorParameters = () => [
|
|
|
21656
21659
|
{ type: MatDialogRef },
|
|
21657
21660
|
{ type: AppService },
|
|
21658
21661
|
{ type: ToastrService },
|
|
21659
|
-
{ type:
|
|
21662
|
+
{ type: TranslateService },
|
|
21660
21663
|
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
21661
21664
|
];
|
|
21662
21665
|
win_assegna_v2.propDecorators = {
|
|
@@ -21664,9 +21667,10 @@ win_assegna_v2.propDecorators = {
|
|
|
21664
21667
|
};
|
|
21665
21668
|
|
|
21666
21669
|
class win_commento_sel_notif_v2 {
|
|
21667
|
-
constructor(dialogRef, toastr) {
|
|
21670
|
+
constructor(dialogRef, toastr, _tsr) {
|
|
21668
21671
|
this.dialogRef = dialogRef;
|
|
21669
21672
|
this.toastr = toastr;
|
|
21673
|
+
this._tsr = _tsr;
|
|
21670
21674
|
this.title = "SELEZIONA CHI NOTIFICARE";
|
|
21671
21675
|
}
|
|
21672
21676
|
close() {
|
|
@@ -21697,14 +21701,15 @@ class win_commento_sel_notif_v2 {
|
|
|
21697
21701
|
o.arrsel = this.up.getSelArr();
|
|
21698
21702
|
this.dialogRef.close(o);
|
|
21699
21703
|
}
|
|
21700
|
-
ngAfterViewInit() {
|
|
21704
|
+
ngAfterViewInit() {
|
|
21705
|
+
}
|
|
21701
21706
|
}
|
|
21702
21707
|
win_commento_sel_notif_v2.decorators = [
|
|
21703
21708
|
{ type: Component, args: [{
|
|
21704
21709
|
template: `
|
|
21705
21710
|
<div fxLayout="column">
|
|
21706
21711
|
<div fxFlex="100" fxLayout="row" class="dialog_header">
|
|
21707
|
-
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
|
|
21712
|
+
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
|
|
21708
21713
|
<div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
|
|
21709
21714
|
<img src="assets/icons/x.png" style="cursor: pointer;" (click)="close()" />
|
|
21710
21715
|
</div>
|
|
@@ -21717,9 +21722,9 @@ win_commento_sel_notif_v2.decorators = [
|
|
|
21717
21722
|
</div>
|
|
21718
21723
|
<br />
|
|
21719
21724
|
<div style="width:100%;text-align:center;">
|
|
21720
|
-
<button mat-flat-button color="primary" (click)="ok()">OK</button
|
|
21725
|
+
<button mat-flat-button color="primary" (click)="ok()"> {{'OK' | translate }}</button
|
|
21721
21726
|
>
|
|
21722
|
-
<button mat-flat-button color="warn" (click)="close()">ANNULLA</button>
|
|
21727
|
+
<button mat-flat-button color="warn" (click)="close()">{{'ANNULLA' | translate }}</button>
|
|
21723
21728
|
</div>
|
|
21724
21729
|
</div>
|
|
21725
21730
|
`
|
|
@@ -21727,14 +21732,15 @@ win_commento_sel_notif_v2.decorators = [
|
|
|
21727
21732
|
];
|
|
21728
21733
|
win_commento_sel_notif_v2.ctorParameters = () => [
|
|
21729
21734
|
{ type: MatDialogRef },
|
|
21730
|
-
{ type: ToastrService }
|
|
21735
|
+
{ type: ToastrService },
|
|
21736
|
+
{ type: TranslateService }
|
|
21731
21737
|
];
|
|
21732
21738
|
win_commento_sel_notif_v2.propDecorators = {
|
|
21733
21739
|
up: [{ type: ViewChild, args: ["up",] }]
|
|
21734
21740
|
};
|
|
21735
21741
|
|
|
21736
21742
|
class win_commenti_v2 {
|
|
21737
|
-
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) {
|
|
21738
21744
|
this.dialogRef = dialogRef;
|
|
21739
21745
|
this.m_dialogRef = m_dialogRef;
|
|
21740
21746
|
this.m_appService = m_appService;
|
|
@@ -21742,6 +21748,7 @@ class win_commenti_v2 {
|
|
|
21742
21748
|
this._dataService = _dataService;
|
|
21743
21749
|
this.m_wkf = m_wkf;
|
|
21744
21750
|
this.m_file = m_file;
|
|
21751
|
+
this._tsr = _tsr;
|
|
21745
21752
|
this.notifica_commenti = 1;
|
|
21746
21753
|
this.notifica_commenti_obbl = 0;
|
|
21747
21754
|
this.not_comm = false;
|
|
@@ -21771,7 +21778,7 @@ class win_commenti_v2 {
|
|
|
21771
21778
|
this.b_ins = false;
|
|
21772
21779
|
this.nota = event.commento;
|
|
21773
21780
|
this.edit_id = event.id_comment;
|
|
21774
|
-
this.title = "MODIFICA COMMENTO";
|
|
21781
|
+
this.title = this._tsr.instant("MODIFICA COMMENTO");
|
|
21775
21782
|
}
|
|
21776
21783
|
refresh_list() {
|
|
21777
21784
|
let p = new QParam();
|
|
@@ -21791,7 +21798,7 @@ class win_commenti_v2 {
|
|
|
21791
21798
|
this.commenti_list[i].commento.replace(/\n/g, "<br/>") +
|
|
21792
21799
|
"</b>";
|
|
21793
21800
|
}
|
|
21794
|
-
this.title = "COMMENTI";
|
|
21801
|
+
this.title = this._tsr.instant("COMMENTI");
|
|
21795
21802
|
}
|
|
21796
21803
|
}, (err) => { });
|
|
21797
21804
|
}
|
|
@@ -21801,7 +21808,7 @@ class win_commenti_v2 {
|
|
|
21801
21808
|
}
|
|
21802
21809
|
else {
|
|
21803
21810
|
if (this.nota == "") {
|
|
21804
|
-
this.toastr.error("INSERIRE UN COMMENTO");
|
|
21811
|
+
this.toastr.error(this._tsr.instant("INSERIRE UN COMMENTO"));
|
|
21805
21812
|
return;
|
|
21806
21813
|
}
|
|
21807
21814
|
if (this.notifica_commenti != 2)
|
|
@@ -21814,7 +21821,7 @@ class win_commenti_v2 {
|
|
|
21814
21821
|
let dialo = this.m_dialogRef.open(fh_win_list, { disableClose: true });
|
|
21815
21822
|
setTimeout(() => {
|
|
21816
21823
|
dialo.componentInstance.title =
|
|
21817
|
-
"Selezione almeno un gruppo da notificare";
|
|
21824
|
+
this._tsr.instant("Selezione almeno un gruppo da notificare");
|
|
21818
21825
|
dialo.componentInstance.types = ["string"];
|
|
21819
21826
|
dialo.componentInstance.values = [
|
|
21820
21827
|
this.m_appService.getState().wkf_doc_info.uiid_app,
|
|
@@ -21968,7 +21975,7 @@ class win_commenti_v2 {
|
|
|
21968
21975
|
if (sdest != "")
|
|
21969
21976
|
this.sendEMail_ex(this.m_appService.getState().wkf_doc_info.curr_user, sdest, this.subject
|
|
21970
21977
|
.split("<OP>")
|
|
21971
|
-
.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>" +
|
|
21972
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, "");
|
|
21973
21980
|
this.refresh_list();
|
|
21974
21981
|
}
|
|
@@ -21979,8 +21986,8 @@ class win_commenti_v2 {
|
|
|
21979
21986
|
}
|
|
21980
21987
|
}
|
|
21981
21988
|
annulla() {
|
|
21982
|
-
localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", "Conferma Operazione");
|
|
21983
|
-
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?"));
|
|
21984
21991
|
let dialogRef1 = this.m_dialogRef.open(fh_win_confirm);
|
|
21985
21992
|
dialogRef1.afterClosed().subscribe((result) => {
|
|
21986
21993
|
if (result) {
|
|
@@ -21995,7 +22002,7 @@ class win_commenti_v2 {
|
|
|
21995
22002
|
this.nota = "";
|
|
21996
22003
|
this.b_edit = true;
|
|
21997
22004
|
this.b_ins = true;
|
|
21998
|
-
this.title = "INSERISCI COMMENTO";
|
|
22005
|
+
this.title = this._tsr.instant("INSERISCI COMMENTO");
|
|
21999
22006
|
}
|
|
22000
22007
|
}
|
|
22001
22008
|
win_commenti_v2.decorators = [
|
|
@@ -22013,20 +22020,20 @@ win_commenti_v2.decorators = [
|
|
|
22013
22020
|
<span class="fill-remaining-space"></span>
|
|
22014
22021
|
<button color="primary" (click)="ins()" *ngIf="!b_edit">
|
|
22015
22022
|
<mat-icon>note_add</mat-icon>
|
|
22016
|
-
INSERISCI
|
|
22023
|
+
{{'INSERISCI' | translate}}
|
|
22017
22024
|
</button>
|
|
22018
22025
|
</mat-toolbar>
|
|
22019
22026
|
<br />
|
|
22020
22027
|
<div mat-dialog-content style="min-width:800px;font-size: 15px;">
|
|
22021
22028
|
<mat-form-field *ngIf="b_edit" appearance="outline" floatLabel="always"
|
|
22022
|
-
><mat-label>Commento</mat-label>
|
|
22029
|
+
><mat-label>{{'Commento' | translate}}</mat-label>
|
|
22023
22030
|
<textarea matInput [(ngModel)]="nota" rows="12"></textarea>
|
|
22024
22031
|
</mat-form-field>
|
|
22025
22032
|
|
|
22026
22033
|
<div *ngIf="b_edit" fxLayoutAlign="center center" fxLayout="row">
|
|
22027
|
-
<button mat-flat-button color="primary" (click)="ok()">OK</button
|
|
22034
|
+
<button mat-flat-button color="primary" (click)="ok()"> {{'OK' | translate}}</button
|
|
22028
22035
|
>
|
|
22029
|
-
<button mat-flat-button color="warn" (click)="annulla()">ANNULLA</button
|
|
22036
|
+
<button mat-flat-button color="warn" (click)="annulla()"> {{'ANNULLA' | translate}}</button
|
|
22030
22037
|
>
|
|
22031
22038
|
<mat-checkbox
|
|
22032
22039
|
[disabled]="not_comm_disabled"
|
|
@@ -22034,17 +22041,17 @@ win_commenti_v2.decorators = [
|
|
|
22034
22041
|
[hidden]="
|
|
22035
22042
|
notifica_commenti == 0 || (notifica_commenti == 1 && lettori == '')
|
|
22036
22043
|
"
|
|
22037
|
-
>
|
|
22038
|
-
|
|
22044
|
+
>{{'Notifica Interessati' | translate}}
|
|
22045
|
+
|
|
22039
22046
|
</mat-checkbox>
|
|
22040
22047
|
</div>
|
|
22041
22048
|
<section class="bs" *ngIf="!b_edit">
|
|
22042
22049
|
<table style="min-width: 100%" class="fh_table">
|
|
22043
22050
|
<thead>
|
|
22044
22051
|
<tr>
|
|
22045
|
-
<th>Commento</th>
|
|
22046
|
-
<th width="15%">Autore</th>
|
|
22047
|
-
<th width="15%">Data</th>
|
|
22052
|
+
<th>{{'Commento' | translate}}</th>
|
|
22053
|
+
<th width="15%">{{'Autore' | translate}}</th>
|
|
22054
|
+
<th width="15%">{{'Data' | translate}}</th>
|
|
22048
22055
|
<th></th>
|
|
22049
22056
|
<th></th>
|
|
22050
22057
|
</tr>
|
|
@@ -22093,7 +22100,7 @@ win_commenti_v2.decorators = [
|
|
|
22093
22100
|
style="background-color: #F5F5F5"
|
|
22094
22101
|
(click)="close()"
|
|
22095
22102
|
>
|
|
22096
|
-
CHIUDI
|
|
22103
|
+
{{'CHIUDI' | translate}}
|
|
22097
22104
|
</button>
|
|
22098
22105
|
</div>
|
|
22099
22106
|
</div>
|
|
@@ -22108,14 +22115,16 @@ win_commenti_v2.ctorParameters = () => [
|
|
|
22108
22115
|
{ type: ToastrService },
|
|
22109
22116
|
{ type: QueryService },
|
|
22110
22117
|
{ type: WkfService },
|
|
22111
|
-
{ type: FileService }
|
|
22118
|
+
{ type: FileService },
|
|
22119
|
+
{ type: TranslateService }
|
|
22112
22120
|
];
|
|
22113
22121
|
|
|
22114
22122
|
class win_conferma_v2 {
|
|
22115
|
-
constructor(dialogRef, m_appService, toastr, data) {
|
|
22123
|
+
constructor(dialogRef, m_appService, toastr, _tsr, data) {
|
|
22116
22124
|
this.dialogRef = dialogRef;
|
|
22117
22125
|
this.m_appService = m_appService;
|
|
22118
22126
|
this.toastr = toastr;
|
|
22127
|
+
this._tsr = _tsr;
|
|
22119
22128
|
this.data = data;
|
|
22120
22129
|
this.utenti = "";
|
|
22121
22130
|
this.lbl = "";
|
|
@@ -22153,7 +22162,7 @@ class win_conferma_v2 {
|
|
|
22153
22162
|
ok() {
|
|
22154
22163
|
if (this.comm_notrequired == 0)
|
|
22155
22164
|
if (this.nota == "") {
|
|
22156
|
-
this.toastr.error("ERRORE", "INSERIRE IL COMMENTO", {
|
|
22165
|
+
this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("INSERIRE IL COMMENTO"), {
|
|
22157
22166
|
timeOut: 1000,
|
|
22158
22167
|
progressBar: true,
|
|
22159
22168
|
});
|
|
@@ -22171,7 +22180,7 @@ win_conferma_v2.decorators = [
|
|
|
22171
22180
|
template: `
|
|
22172
22181
|
<div fxLayout="column">
|
|
22173
22182
|
<div fxFlex="100" fxLayout="row" class="dialog_header">
|
|
22174
|
-
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{ title }}</div>
|
|
22183
|
+
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{ title| translate }}</div>
|
|
22175
22184
|
<div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
|
|
22176
22185
|
<img src="assets/icons/x.png" style="cursor: pointer;" (click)="close()" />
|
|
22177
22186
|
</div>
|
|
@@ -22181,8 +22190,8 @@ win_conferma_v2.decorators = [
|
|
|
22181
22190
|
<mat-toolbar [style.background-color]="color"
|
|
22182
22191
|
[style.color]="color_font">
|
|
22183
22192
|
<i *ngIf="icon!=null && icon!=''" class="fa {{icon}}" aria-hidden="true"></i>
|
|
22184
|
-
<div style="font-size:10px" *ngIf="mobile">{{ lbl }}</div>
|
|
22185
|
-
<div *ngIf="!mobile">{{ lbl }}</div>
|
|
22193
|
+
<div style="font-size:10px" *ngIf="mobile">{{ lbl | translate}}</div>
|
|
22194
|
+
<div *ngIf="!mobile">{{ lbl| translate }}</div>
|
|
22186
22195
|
</mat-toolbar>
|
|
22187
22196
|
<br />
|
|
22188
22197
|
<div mat-dialog-content style="min-width:800px;font-size: 15px;">
|
|
@@ -22190,25 +22199,25 @@ win_conferma_v2.decorators = [
|
|
|
22190
22199
|
*ngIf="mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1"
|
|
22191
22200
|
style="font-size:10px"
|
|
22192
22201
|
>
|
|
22193
|
-
Assegnata a: {{ utenti }}
|
|
22202
|
+
{{'Assegnata a'| translate}}: {{ utenti }}
|
|
22194
22203
|
</div>
|
|
22195
22204
|
<h3
|
|
22196
22205
|
*ngIf="!mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1"
|
|
22197
22206
|
>
|
|
22198
|
-
|
|
22207
|
+
{{'Assegnata a'| translate}}: {{ utenti }}
|
|
22199
22208
|
</h3>
|
|
22200
22209
|
<br />
|
|
22201
22210
|
<mat-form-field
|
|
22202
22211
|
[hidden]="comm_notrequired == 1"
|
|
22203
22212
|
appearance="outline"
|
|
22204
22213
|
floatLabel="always"
|
|
22205
|
-
><mat-label>Commento {{ nota_commento }}</mat-label>
|
|
22214
|
+
><mat-label>{{'Commento'| translate}} {{ nota_commento | translate}}</mat-label>
|
|
22206
22215
|
<textarea matInput [(ngModel)]="nota" rows="6"></textarea>
|
|
22207
22216
|
</mat-form-field>
|
|
22208
22217
|
</div>
|
|
22209
22218
|
<br />
|
|
22210
22219
|
<div style="width:100%;text-align:center;">
|
|
22211
|
-
<button mat-flat-button color="primary" (click)="ok()">OK</button>
|
|
22220
|
+
<button mat-flat-button color="primary" (click)="ok()">{{'OK'| translate}}</button>
|
|
22212
22221
|
|
|
22213
22222
|
</div>
|
|
22214
22223
|
`
|
|
@@ -22218,6 +22227,7 @@ win_conferma_v2.ctorParameters = () => [
|
|
|
22218
22227
|
{ type: MatDialogRef },
|
|
22219
22228
|
{ type: AppService },
|
|
22220
22229
|
{ type: ToastrService },
|
|
22230
|
+
{ type: TranslateService },
|
|
22221
22231
|
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
22222
22232
|
];
|
|
22223
22233
|
|
|
@@ -22343,13 +22353,14 @@ win_info_doc_v2.ctorParameters = () => [
|
|
|
22343
22353
|
];
|
|
22344
22354
|
|
|
22345
22355
|
class win_insert_commento_v2 {
|
|
22346
|
-
constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
|
|
22356
|
+
constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, _tsr) {
|
|
22347
22357
|
this.dialogRef = dialogRef;
|
|
22348
22358
|
this.m_dialogRef = m_dialogRef;
|
|
22349
22359
|
this.m_appService = m_appService;
|
|
22350
22360
|
this.toastr = toastr;
|
|
22351
22361
|
this._dataService = _dataService;
|
|
22352
22362
|
this.m_wkf = m_wkf;
|
|
22363
|
+
this._tsr = _tsr;
|
|
22353
22364
|
this.not_int = true;
|
|
22354
22365
|
this.nota = "";
|
|
22355
22366
|
this.title = "COMMENTI";
|
|
@@ -22438,13 +22449,13 @@ class win_insert_commento_v2 {
|
|
|
22438
22449
|
let ok_op = false;
|
|
22439
22450
|
if (data != null)
|
|
22440
22451
|
if (data.result_msg == "OK") {
|
|
22441
|
-
this.toastr.info("INFO", "COMMENTO INSERITO", {
|
|
22452
|
+
this.toastr.info(this._tsr.instant("INFO"), this._tsr.instant("COMMENTO INSERITO"), {
|
|
22442
22453
|
timeOut: 1000,
|
|
22443
22454
|
progressBar: true,
|
|
22444
22455
|
});
|
|
22445
22456
|
this.b_edit = false;
|
|
22446
22457
|
if (sdest != "")
|
|
22447
|
-
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>" +
|
|
22448
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, "");
|
|
22449
22460
|
}
|
|
22450
22461
|
});
|
|
@@ -22476,14 +22487,14 @@ win_insert_commento_v2.decorators = [
|
|
|
22476
22487
|
|
|
22477
22488
|
<div mat-dialog-content style="min-width:800px;font-size: 15px;">
|
|
22478
22489
|
<mat-form-field appearance="outline" floatLabel="always"
|
|
22479
|
-
><mat-label>Commento</mat-label>
|
|
22490
|
+
><mat-label>{{'Commento' | translate}}</mat-label>
|
|
22480
22491
|
<textarea matInput [(ngModel)]="nota" rows="12"></textarea>
|
|
22481
22492
|
</mat-form-field>
|
|
22482
22493
|
|
|
22483
22494
|
<div>
|
|
22484
|
-
<button mat-flat-button color="primary" (click)="ok()">OK</button
|
|
22495
|
+
<button mat-flat-button color="primary" (click)="ok()">{{'OK' | translate}}</button
|
|
22485
22496
|
>
|
|
22486
|
-
<button mat-flat-button color="warn" (click)="annulla()">ANNULLA</button
|
|
22497
|
+
<button mat-flat-button color="warn" (click)="annulla()">{{'ANNULLA' | translate}}</button
|
|
22487
22498
|
>
|
|
22488
22499
|
<mat-checkbox [(ngModel)]="not_int" [hidden]="lettori === ''">
|
|
22489
22500
|
Notifica Interessati
|
|
@@ -22500,11 +22511,12 @@ win_insert_commento_v2.ctorParameters = () => [
|
|
|
22500
22511
|
{ type: AppService },
|
|
22501
22512
|
{ type: ToastrService },
|
|
22502
22513
|
{ type: QueryService },
|
|
22503
|
-
{ type: WkfService }
|
|
22514
|
+
{ type: WkfService },
|
|
22515
|
+
{ type: TranslateService }
|
|
22504
22516
|
];
|
|
22505
22517
|
|
|
22506
22518
|
class win_log_v2 {
|
|
22507
|
-
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) {
|
|
22508
22520
|
this.dialogRef = dialogRef;
|
|
22509
22521
|
this.m_dialogRef = m_dialogRef;
|
|
22510
22522
|
this.m_appService = m_appService;
|
|
@@ -22512,6 +22524,7 @@ class win_log_v2 {
|
|
|
22512
22524
|
this._dataService = _dataService;
|
|
22513
22525
|
this.m_wkf = m_wkf;
|
|
22514
22526
|
this.m_file = m_file;
|
|
22527
|
+
this._tsr = _tsr;
|
|
22515
22528
|
this.ossv = false;
|
|
22516
22529
|
this.not_comm = false;
|
|
22517
22530
|
this.not_comm_disabled = false;
|
|
@@ -22590,14 +22603,14 @@ class win_log_v2 {
|
|
|
22590
22603
|
});
|
|
22591
22604
|
}
|
|
22592
22605
|
annulla() {
|
|
22593
|
-
localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", "Conferma Operazione");
|
|
22594
|
-
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?"));
|
|
22595
22608
|
let dialogRef1 = this.m_dialogRef.open(fh_win_confirm);
|
|
22596
22609
|
dialogRef1.afterClosed().subscribe((result) => {
|
|
22597
22610
|
if (result) {
|
|
22598
22611
|
this.nota = "";
|
|
22599
22612
|
this.b_edit = false;
|
|
22600
|
-
this.title = "LOG WORKFLOW E COMMENTI";
|
|
22613
|
+
this.title = this._tsr.instant("LOG WORKFLOW E COMMENTI");
|
|
22601
22614
|
}
|
|
22602
22615
|
});
|
|
22603
22616
|
}
|
|
@@ -22605,7 +22618,7 @@ class win_log_v2 {
|
|
|
22605
22618
|
this.nota = "";
|
|
22606
22619
|
this.b_edit = true;
|
|
22607
22620
|
this.b_ins = true;
|
|
22608
|
-
this.title = "INSERISCI COMMENTO";
|
|
22621
|
+
this.title = this._tsr.instant("INSERISCI COMMENTO");
|
|
22609
22622
|
}
|
|
22610
22623
|
ngAfterViewInit() {
|
|
22611
22624
|
setTimeout(() => {
|
|
@@ -22617,7 +22630,7 @@ class win_log_v2 {
|
|
|
22617
22630
|
this.b_ins = false;
|
|
22618
22631
|
this.nota = event.stato_attuale;
|
|
22619
22632
|
this.edit_id = event.id_comment;
|
|
22620
|
-
this.title = "MODIFICA COMMENTO";
|
|
22633
|
+
this.title = this._tsr.instant("MODIFICA COMMENTO");
|
|
22621
22634
|
}
|
|
22622
22635
|
refresh_list() {
|
|
22623
22636
|
let p = new QParam();
|
|
@@ -22659,7 +22672,7 @@ class win_log_v2 {
|
|
|
22659
22672
|
}
|
|
22660
22673
|
else {
|
|
22661
22674
|
if (this.nota == "") {
|
|
22662
|
-
this.toastr.error("INSERIRE UN COMMENTO");
|
|
22675
|
+
this.toastr.error(this._tsr.instant("INSERIRE UN COMMENTO"));
|
|
22663
22676
|
return;
|
|
22664
22677
|
}
|
|
22665
22678
|
if (this.notifica_commenti == 1)
|
|
@@ -22698,7 +22711,7 @@ class win_log_v2 {
|
|
|
22698
22711
|
let dialo = this.m_dialogRef.open(fh_win_list, { disableClose: true });
|
|
22699
22712
|
setTimeout(() => {
|
|
22700
22713
|
dialo.componentInstance.title =
|
|
22701
|
-
"Selezione almeno un gruppo da notificare";
|
|
22714
|
+
this._tsr.instant("Selezione almeno un gruppo da notificare");
|
|
22702
22715
|
dialo.componentInstance.types = ["string"];
|
|
22703
22716
|
dialo.componentInstance.values = [
|
|
22704
22717
|
this.m_appService.getState().wkf_doc_info.uiid_app,
|
|
@@ -22769,7 +22782,7 @@ class win_log_v2 {
|
|
|
22769
22782
|
let ok_op = false;
|
|
22770
22783
|
if (data != null)
|
|
22771
22784
|
if (data.result_msg == "OK") {
|
|
22772
|
-
this.toastr.info("INFO", "COMMENTO INSERITO", {
|
|
22785
|
+
this.toastr.info(this._tsr.instant("INFO"), this._tsr.instant("COMMENTO INSERITO"), {
|
|
22773
22786
|
timeOut: 1000,
|
|
22774
22787
|
progressBar: true,
|
|
22775
22788
|
});
|
|
@@ -22786,7 +22799,7 @@ class win_log_v2 {
|
|
|
22786
22799
|
if (sdest != "")
|
|
22787
22800
|
this.sendEMail_ex(this.m_appService.getState().wkf_doc_info.curr_user, sdest, this.subject
|
|
22788
22801
|
.split("<OP>")
|
|
22789
|
-
.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>" +
|
|
22790
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, "");
|
|
22791
22804
|
this.refresh_list();
|
|
22792
22805
|
}
|
|
@@ -22801,7 +22814,7 @@ class win_log_v2 {
|
|
|
22801
22814
|
let ok_op = false;
|
|
22802
22815
|
if (data != null)
|
|
22803
22816
|
if (data.result_msg == "OK") {
|
|
22804
|
-
this.toastr.info("INFO", "COMMENTO AGGIORNATO", {
|
|
22817
|
+
this.toastr.info(this._tsr.instant("INFO"), this._tsr.instant("COMMENTO AGGIORNATO"), {
|
|
22805
22818
|
timeOut: 1000,
|
|
22806
22819
|
progressBar: true,
|
|
22807
22820
|
});
|
|
@@ -22818,7 +22831,7 @@ class win_log_v2 {
|
|
|
22818
22831
|
if (sdest != "")
|
|
22819
22832
|
this.sendEMail_ex(this.m_appService.getState().wkf_doc_info.curr_user, sdest, this.subject
|
|
22820
22833
|
.split("<OP>")
|
|
22821
|
-
.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>" +
|
|
22822
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, "");
|
|
22823
22836
|
this.refresh_list();
|
|
22824
22837
|
}
|
|
@@ -22862,7 +22875,7 @@ win_log_v2.decorators = [
|
|
|
22862
22875
|
>
|
|
22863
22876
|
<button mat-flat-button color="accent" (click)="ins()">
|
|
22864
22877
|
<mat-icon>note_add</mat-icon>
|
|
22865
|
-
INSERISCI</button
|
|
22878
|
+
{{'INSERISCI' | translate}}</button
|
|
22866
22879
|
>
|
|
22867
22880
|
</div>
|
|
22868
22881
|
|
|
@@ -22872,7 +22885,7 @@ win_log_v2.decorators = [
|
|
|
22872
22885
|
*ngIf="b_edit"
|
|
22873
22886
|
appearance="outline"
|
|
22874
22887
|
floatLabel="always"
|
|
22875
|
-
><mat-label>Commento</mat-label>
|
|
22888
|
+
><mat-label>{{'Commento' | translate}}</mat-label>
|
|
22876
22889
|
<textarea matInput [(ngModel)]="nota" rows="12"></textarea>
|
|
22877
22890
|
</mat-form-field>
|
|
22878
22891
|
|
|
@@ -22884,7 +22897,7 @@ win_log_v2.decorators = [
|
|
|
22884
22897
|
style="background-color: #F5F5F5"
|
|
22885
22898
|
(click)="annulla()"
|
|
22886
22899
|
>
|
|
22887
|
-
|
|
22900
|
+
{{'ANNULLA' | translate}}</button
|
|
22888
22901
|
>
|
|
22889
22902
|
<mat-checkbox
|
|
22890
22903
|
[disabled]="not_comm_disabled"
|
|
@@ -22894,7 +22907,7 @@ win_log_v2.decorators = [
|
|
|
22894
22907
|
(notifica_commenti == 1 && lettori == '')
|
|
22895
22908
|
"
|
|
22896
22909
|
>
|
|
22897
|
-
|
|
22910
|
+
{{'Notifica Interessati' | translate}}
|
|
22898
22911
|
</mat-checkbox>
|
|
22899
22912
|
</div>
|
|
22900
22913
|
<br /><br />
|
|
@@ -22902,9 +22915,9 @@ win_log_v2.decorators = [
|
|
|
22902
22915
|
<table *ngIf="!b_edit" class="fh_table" style="width:90%">
|
|
22903
22916
|
<thead>
|
|
22904
22917
|
<tr>
|
|
22905
|
-
<th width="15%">Data</th>
|
|
22906
|
-
<th width="15%">Utente</th>
|
|
22907
|
-
<th>Operazione</th>
|
|
22918
|
+
<th width="15%"> {{'Data' | translate}}</th>
|
|
22919
|
+
<th width="15%"> {{'Utente' | translate}}</th>
|
|
22920
|
+
<th> {{'Operazione' | translate}}</th>
|
|
22908
22921
|
<td></td>
|
|
22909
22922
|
<td></td>
|
|
22910
22923
|
</tr>
|
|
@@ -22957,18 +22970,20 @@ win_log_v2.ctorParameters = () => [
|
|
|
22957
22970
|
{ type: ToastrService },
|
|
22958
22971
|
{ type: QueryService },
|
|
22959
22972
|
{ type: WkfService },
|
|
22960
|
-
{ type: FileService }
|
|
22973
|
+
{ type: FileService },
|
|
22974
|
+
{ type: TranslateService }
|
|
22961
22975
|
];
|
|
22962
22976
|
win_log_v2.propDecorators = {
|
|
22963
22977
|
zz: [{ type: ViewChild, args: ["zz",] }]
|
|
22964
22978
|
};
|
|
22965
22979
|
|
|
22966
22980
|
class win_recupera_doc_v2 {
|
|
22967
|
-
constructor(dialogRef, m_appService, toastr, _dataService) {
|
|
22981
|
+
constructor(dialogRef, m_appService, toastr, _dataService, _tsr) {
|
|
22968
22982
|
this.dialogRef = dialogRef;
|
|
22969
22983
|
this.m_appService = m_appService;
|
|
22970
22984
|
this.toastr = toastr;
|
|
22971
22985
|
this._dataService = _dataService;
|
|
22986
|
+
this._tsr = _tsr;
|
|
22972
22987
|
this.flt_grid = "1=1";
|
|
22973
22988
|
this.title = "RECUPERA DOCUMENTO";
|
|
22974
22989
|
}
|
|
@@ -22983,7 +22998,7 @@ class win_recupera_doc_v2 {
|
|
|
22983
22998
|
this._dataService.doQuery(p).subscribe((data) => {
|
|
22984
22999
|
if (data != null)
|
|
22985
23000
|
if (data.result_msg == "OK") {
|
|
22986
|
-
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"));
|
|
22987
23002
|
this.dialogRef.close("ok");
|
|
22988
23003
|
}
|
|
22989
23004
|
}, (err) => {
|
|
@@ -22993,25 +23008,25 @@ class win_recupera_doc_v2 {
|
|
|
22993
23008
|
init_w(id_app) {
|
|
22994
23009
|
this.datagrid.columnDefs = [
|
|
22995
23010
|
{
|
|
22996
|
-
headerName: "Codice",
|
|
23011
|
+
headerName: this._tsr.instant("Codice"),
|
|
22997
23012
|
field: "codice",
|
|
22998
23013
|
filter: "agTextColumnFilter",
|
|
22999
23014
|
filterParams: { newRowsAction: "keep" },
|
|
23000
23015
|
},
|
|
23001
23016
|
{
|
|
23002
|
-
headerName: "Oggetto",
|
|
23017
|
+
headerName: this._tsr.instant("Oggetto"),
|
|
23003
23018
|
field: "oggetto",
|
|
23004
23019
|
filter: "agTextColumnFilter",
|
|
23005
23020
|
filterParams: { newRowsAction: "keep" },
|
|
23006
23021
|
},
|
|
23007
23022
|
{
|
|
23008
|
-
headerName: "Stato",
|
|
23023
|
+
headerName: this._tsr.instant("Stato"),
|
|
23009
23024
|
field: "stat_stato",
|
|
23010
23025
|
filter: "agTextColumnFilter",
|
|
23011
23026
|
filterParams: { newRowsAction: "keep" },
|
|
23012
23027
|
},
|
|
23013
23028
|
{
|
|
23014
|
-
headerName: "Richiedente",
|
|
23029
|
+
headerName: this._tsr.instant("Richiedente"),
|
|
23015
23030
|
field: "nc",
|
|
23016
23031
|
filter: "agTextColumnFilter",
|
|
23017
23032
|
filterParams: { newRowsAction: "keep" },
|
|
@@ -23026,7 +23041,7 @@ win_recupera_doc_v2.decorators = [
|
|
|
23026
23041
|
template: `
|
|
23027
23042
|
<div fxLayout="column">
|
|
23028
23043
|
<div fxFlex="100" fxLayout="row" class="dialog_header">
|
|
23029
|
-
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
|
|
23044
|
+
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
|
|
23030
23045
|
<div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
|
|
23031
23046
|
<img src="assets/icons/x.png" style="cursor: pointer;" (click)="close()" />
|
|
23032
23047
|
</div>
|
|
@@ -23061,7 +23076,7 @@ win_recupera_doc_v2.decorators = [
|
|
|
23061
23076
|
style="background-color: #F5F5F5"
|
|
23062
23077
|
(click)="dialogRef.close('')"
|
|
23063
23078
|
>
|
|
23064
|
-
CHIUDI
|
|
23079
|
+
{{'CHIUDI' | translate}}
|
|
23065
23080
|
</button>
|
|
23066
23081
|
</div>
|
|
23067
23082
|
</div>
|
|
@@ -23073,16 +23088,18 @@ win_recupera_doc_v2.ctorParameters = () => [
|
|
|
23073
23088
|
{ type: MatDialogRef },
|
|
23074
23089
|
{ type: AppService },
|
|
23075
23090
|
{ type: ToastrService },
|
|
23076
|
-
{ type: QueryService }
|
|
23091
|
+
{ type: QueryService },
|
|
23092
|
+
{ type: TranslateService }
|
|
23077
23093
|
];
|
|
23078
23094
|
win_recupera_doc_v2.propDecorators = {
|
|
23079
23095
|
datagrid: [{ type: ViewChild, args: ["dtm",] }]
|
|
23080
23096
|
};
|
|
23081
23097
|
|
|
23082
23098
|
class win_riassegna_select_level_v2 {
|
|
23083
|
-
constructor(dialogRef, toastr) {
|
|
23099
|
+
constructor(dialogRef, toastr, _tsr) {
|
|
23084
23100
|
this.dialogRef = dialogRef;
|
|
23085
23101
|
this.toastr = toastr;
|
|
23102
|
+
this._tsr = _tsr;
|
|
23086
23103
|
this.selval = "-1";
|
|
23087
23104
|
this.title = "";
|
|
23088
23105
|
this.errorMsg = "";
|
|
@@ -23108,14 +23125,14 @@ class win_riassegna_select_level_v2 {
|
|
|
23108
23125
|
}
|
|
23109
23126
|
ok() {
|
|
23110
23127
|
if (this.selval == null) {
|
|
23111
|
-
this.toastr.error("ERRORE", "SELEZIONARE LO STEP", {
|
|
23128
|
+
this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE LO STEP"), {
|
|
23112
23129
|
timeOut: 1000,
|
|
23113
23130
|
progressBar: true,
|
|
23114
23131
|
});
|
|
23115
23132
|
return;
|
|
23116
23133
|
}
|
|
23117
23134
|
if (this.selval == "-1") {
|
|
23118
|
-
this.toastr.error("ERRORE", "SELEZIONARE LO STEP", {
|
|
23135
|
+
this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE LO STEP"), {
|
|
23119
23136
|
timeOut: 1000,
|
|
23120
23137
|
progressBar: true,
|
|
23121
23138
|
});
|
|
@@ -23131,7 +23148,7 @@ class win_riassegna_select_level_v2 {
|
|
|
23131
23148
|
}
|
|
23132
23149
|
}
|
|
23133
23150
|
if (lvl == null) {
|
|
23134
|
-
this.toastr.error("ERRORE", "SELEZIONARE LO STEP", {
|
|
23151
|
+
this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE LO STEP"), {
|
|
23135
23152
|
timeOut: 1000,
|
|
23136
23153
|
progressBar: true,
|
|
23137
23154
|
});
|
|
@@ -23146,7 +23163,7 @@ win_riassegna_select_level_v2.decorators = [
|
|
|
23146
23163
|
template: `
|
|
23147
23164
|
<div fxLayout="column">
|
|
23148
23165
|
<div fxFlex="100" fxLayout="row" class="dialog_header">
|
|
23149
|
-
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
|
|
23166
|
+
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate}}</div>
|
|
23150
23167
|
<div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
|
|
23151
23168
|
<img src="assets/icons/x.png" style="cursor: pointer;" (click)="close()" />
|
|
23152
23169
|
</div>
|
|
@@ -23159,11 +23176,11 @@ win_riassegna_select_level_v2.decorators = [
|
|
|
23159
23176
|
style="width:100%"
|
|
23160
23177
|
appearance="outline"
|
|
23161
23178
|
floatLabel="always"
|
|
23162
|
-
><mat-label>Seleziona Step:</mat-label>
|
|
23179
|
+
><mat-label>{{'Seleziona Step' | translate}}:</mat-label>
|
|
23163
23180
|
<mat-select #cmb [(ngModel)]="selval" (change)="sc()">
|
|
23164
23181
|
<mat-option value="-1">Seleziona</mat-option>
|
|
23165
|
-
<mat-option value="{{ app.step }}" *ngFor="let app of myData">
|
|
23166
|
-
app.description
|
|
23182
|
+
<mat-option value="{{ app.step }}" *ngFor="let app of myData">
|
|
23183
|
+
{{app.description | translate }}
|
|
23167
23184
|
}}</mat-option>
|
|
23168
23185
|
</mat-select>
|
|
23169
23186
|
</mat-form-field>
|
|
@@ -23171,14 +23188,14 @@ win_riassegna_select_level_v2.decorators = [
|
|
|
23171
23188
|
<br /><br /><br /><br />
|
|
23172
23189
|
<div style="width:100%;text-align:center;">
|
|
23173
23190
|
<button mat-flat-button color="primary" (click)="ok()">
|
|
23174
|
-
{{ OK_BUTTON }}</button
|
|
23191
|
+
{{ OK_BUTTON | translate }}</button
|
|
23175
23192
|
>
|
|
23176
23193
|
<button
|
|
23177
23194
|
mat-flat-button
|
|
23178
23195
|
style="background-color: #F5F5F5"
|
|
23179
23196
|
(click)="close()"
|
|
23180
23197
|
>
|
|
23181
|
-
|
|
23198
|
+
{{'ANNULLA' | translate }}
|
|
23182
23199
|
</button>
|
|
23183
23200
|
</div>
|
|
23184
23201
|
<br /><br />
|
|
@@ -23193,16 +23210,18 @@ win_riassegna_select_level_v2.decorators = [
|
|
|
23193
23210
|
];
|
|
23194
23211
|
win_riassegna_select_level_v2.ctorParameters = () => [
|
|
23195
23212
|
{ type: MatDialogRef },
|
|
23196
|
-
{ type: ToastrService }
|
|
23213
|
+
{ type: ToastrService },
|
|
23214
|
+
{ type: TranslateService }
|
|
23197
23215
|
];
|
|
23198
23216
|
win_riassegna_select_level_v2.propDecorators = {
|
|
23199
23217
|
smtr: [{ type: ViewChild, args: ["cmb",] }]
|
|
23200
23218
|
};
|
|
23201
23219
|
|
|
23202
23220
|
class win_riassegna_select_user_v2 {
|
|
23203
|
-
constructor(dialogRef, toastr) {
|
|
23221
|
+
constructor(dialogRef, toastr, _tsr) {
|
|
23204
23222
|
this.dialogRef = dialogRef;
|
|
23205
23223
|
this.toastr = toastr;
|
|
23224
|
+
this._tsr = _tsr;
|
|
23206
23225
|
this.commento_hidden = false;
|
|
23207
23226
|
this.nota = "";
|
|
23208
23227
|
this.nota_commento = "";
|
|
@@ -23216,14 +23235,14 @@ class win_riassegna_select_user_v2 {
|
|
|
23216
23235
|
ok() {
|
|
23217
23236
|
if (!this.commento_hidden)
|
|
23218
23237
|
if (this.nota == "") {
|
|
23219
|
-
this.toastr.error("ERRORE", "INSERIRE IL COMMENTO", {
|
|
23238
|
+
this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("INSERIRE IL COMMENTO"), {
|
|
23220
23239
|
timeOut: 1000,
|
|
23221
23240
|
progressBar: true,
|
|
23222
23241
|
});
|
|
23223
23242
|
return;
|
|
23224
23243
|
}
|
|
23225
23244
|
if (this.up.getSelArr().length == 0) {
|
|
23226
|
-
this.toastr.error("ERRORE", "SELEZIONARE ALMENO UN UTENTE", {
|
|
23245
|
+
this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE ALMENO UN UTENTE"), {
|
|
23227
23246
|
timeOut: 1000,
|
|
23228
23247
|
progressBar: true,
|
|
23229
23248
|
});
|
|
@@ -23242,7 +23261,7 @@ win_riassegna_select_user_v2.decorators = [
|
|
|
23242
23261
|
template: `
|
|
23243
23262
|
<div fxLayout="column">
|
|
23244
23263
|
<div fxFlex="100" fxLayout="row" class="dialog_header">
|
|
23245
|
-
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
|
|
23264
|
+
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title | translate }}</div>
|
|
23246
23265
|
<div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
|
|
23247
23266
|
<img src="assets/icons/x.png" style="cursor: pointer;" (click)="close()" />
|
|
23248
23267
|
</div>
|
|
@@ -23260,13 +23279,13 @@ win_riassegna_select_user_v2.decorators = [
|
|
|
23260
23279
|
[hidden]="commento_hidden"
|
|
23261
23280
|
appearance="outline"
|
|
23262
23281
|
floatLabel="always"
|
|
23263
|
-
><mat-label>Commento {{ nota_commento }}</mat-label>
|
|
23282
|
+
><mat-label>{{'Commento' | translate }} {{ nota_commento | translate }}</mat-label>
|
|
23264
23283
|
<textarea matInput [(ngModel)]="nota" rows="2"></textarea>
|
|
23265
23284
|
</mat-form-field>
|
|
23266
23285
|
</div>
|
|
23267
23286
|
<div mat-dialog-actions fxLayout="row" fxLayoutAlign="center center">
|
|
23268
23287
|
<div>
|
|
23269
|
-
<button mat-flat-button color="primary" (click)="ok()">OK</button>
|
|
23288
|
+
<button mat-flat-button color="primary" (click)="ok()"> {{'OK' | translate }}</button>
|
|
23270
23289
|
</div>
|
|
23271
23290
|
|
|
23272
23291
|
<div>
|
|
@@ -23275,7 +23294,7 @@ win_riassegna_select_user_v2.decorators = [
|
|
|
23275
23294
|
style="background-color: #F5F5F5"
|
|
23276
23295
|
(click)="close()"
|
|
23277
23296
|
>
|
|
23278
|
-
|
|
23297
|
+
{{'ANNULLA' | translate }}
|
|
23279
23298
|
</button>
|
|
23280
23299
|
</div>
|
|
23281
23300
|
</div>
|
|
@@ -23288,7 +23307,8 @@ win_riassegna_select_user_v2.decorators = [
|
|
|
23288
23307
|
];
|
|
23289
23308
|
win_riassegna_select_user_v2.ctorParameters = () => [
|
|
23290
23309
|
{ type: MatDialogRef },
|
|
23291
|
-
{ type: ToastrService }
|
|
23310
|
+
{ type: ToastrService },
|
|
23311
|
+
{ type: TranslateService }
|
|
23292
23312
|
];
|
|
23293
23313
|
win_riassegna_select_user_v2.propDecorators = {
|
|
23294
23314
|
up: [{ type: ViewChild, args: ["up",] }]
|
|
@@ -23349,7 +23369,7 @@ win_salva_annulla_v2.decorators = [
|
|
|
23349
23369
|
<div style="width:400px" [hidden]="!b_commento"><br /></div>
|
|
23350
23370
|
<div style="width:400px" [hidden]="!b_commento">
|
|
23351
23371
|
<FHTextArea
|
|
23352
|
-
label="{{ commento_mgs }}"
|
|
23372
|
+
label="{{ commento_mgs |translate }}"
|
|
23353
23373
|
required
|
|
23354
23374
|
[(ngModel)]="commento"
|
|
23355
23375
|
></FHTextArea>
|
|
@@ -23357,10 +23377,10 @@ win_salva_annulla_v2.decorators = [
|
|
|
23357
23377
|
<br />
|
|
23358
23378
|
<div style="width:100%;text-align:center;">
|
|
23359
23379
|
<button mat-flat-button color="primary" (click)="salva_esci()">
|
|
23360
|
-
{{ salva_ed_esci
|
|
23380
|
+
{{ salva_ed_esci|translate }}</button
|
|
23361
23381
|
>
|
|
23362
23382
|
<button mat-flat-button color="warn" (click)="esci_senza_salv()">
|
|
23363
|
-
{{ esci_senza_salvataggi }}
|
|
23383
|
+
{{ esci_senza_salvataggi |translate }}
|
|
23364
23384
|
</button>
|
|
23365
23385
|
</div>
|
|
23366
23386
|
</div>
|
|
@@ -23374,10 +23394,11 @@ win_salva_annulla_v2.ctorParameters = () => [
|
|
|
23374
23394
|
];
|
|
23375
23395
|
|
|
23376
23396
|
class win_select_canale_v2 {
|
|
23377
|
-
constructor(dialogRef, m_appService, toastr) {
|
|
23397
|
+
constructor(dialogRef, m_appService, toastr, _tsr) {
|
|
23378
23398
|
this.dialogRef = dialogRef;
|
|
23379
23399
|
this.m_appService = m_appService;
|
|
23380
23400
|
this.toastr = toastr;
|
|
23401
|
+
this._tsr = _tsr;
|
|
23381
23402
|
this.selval = "-1";
|
|
23382
23403
|
this.errorMsg = "";
|
|
23383
23404
|
this.title = 'SELEZIONA AMBITO';
|
|
@@ -23389,7 +23410,7 @@ class win_select_canale_v2 {
|
|
|
23389
23410
|
}
|
|
23390
23411
|
ok() {
|
|
23391
23412
|
if (this.selval == "-1") {
|
|
23392
|
-
this.toastr.error("ERRORE", "SELEZIONARE AMBITO", {
|
|
23413
|
+
this.toastr.error(this._tsr.instant("ERRORE"), this._tsr.instant("SELEZIONARE AMBITO"), {
|
|
23393
23414
|
timeOut: 1000,
|
|
23394
23415
|
progressBar: true,
|
|
23395
23416
|
});
|
|
@@ -23404,7 +23425,7 @@ win_select_canale_v2.decorators = [
|
|
|
23404
23425
|
template: `
|
|
23405
23426
|
<div fxLayout="column">
|
|
23406
23427
|
<div fxFlex="100" fxLayout="row" class="dialog_header">
|
|
23407
|
-
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
|
|
23428
|
+
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title|translate }}</div>
|
|
23408
23429
|
<div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
|
|
23409
23430
|
<img src="assets/icons/x.png" style="cursor: pointer;" (click)="close()" />
|
|
23410
23431
|
</div>
|
|
@@ -23417,21 +23438,21 @@ win_select_canale_v2.decorators = [
|
|
|
23417
23438
|
style="width:100%"
|
|
23418
23439
|
appearance="outline"
|
|
23419
23440
|
floatLabel="always"
|
|
23420
|
-
><mat-label>Seleziona Ambito:</mat-label>
|
|
23441
|
+
><mat-label>{{'Seleziona Ambito'|translate }}:</mat-label>
|
|
23421
23442
|
<mat-select #cmb [(ngModel)]="selval">
|
|
23422
|
-
<mat-option value="-1">Seleziona</mat-option>
|
|
23423
|
-
<mat-option value="{{ app }}" *ngFor="let app of myData">
|
|
23424
|
-
app
|
|
23443
|
+
<mat-option value="-1">{{'Seleziona' |translate }}</mat-option>
|
|
23444
|
+
<mat-option value="{{ app }}" *ngFor="let app of myData">
|
|
23445
|
+
{{app |translate }}
|
|
23425
23446
|
}}</mat-option>
|
|
23426
23447
|
</mat-select>
|
|
23427
23448
|
</mat-form-field>
|
|
23428
23449
|
</div>
|
|
23429
23450
|
<br />
|
|
23430
23451
|
<div style="width:100%;text-align:center;">
|
|
23431
|
-
<button mat-flat-button color="primary" (click)="ok()">OK</button>
|
|
23452
|
+
<button mat-flat-button color="primary" (click)="ok()"> {{'OK' | translate }}</button>
|
|
23432
23453
|
</div>
|
|
23433
23454
|
<p style="color:#CC0000;font-size:9px;" *ngIf="errorMsg != ''">
|
|
23434
|
-
{{ errorMsg }}
|
|
23455
|
+
{{ errorMsg |translate }}
|
|
23435
23456
|
</p>
|
|
23436
23457
|
</div>
|
|
23437
23458
|
</div>
|
|
@@ -23441,16 +23462,18 @@ win_select_canale_v2.decorators = [
|
|
|
23441
23462
|
win_select_canale_v2.ctorParameters = () => [
|
|
23442
23463
|
{ type: MatDialogRef },
|
|
23443
23464
|
{ type: AppService },
|
|
23444
|
-
{ type: ToastrService }
|
|
23465
|
+
{ type: ToastrService },
|
|
23466
|
+
{ type: TranslateService }
|
|
23445
23467
|
];
|
|
23446
23468
|
win_select_canale_v2.propDecorators = {
|
|
23447
23469
|
smtr: [{ type: ViewChild, args: ["cmb",] }]
|
|
23448
23470
|
};
|
|
23449
23471
|
|
|
23450
23472
|
class win_select_level_v2 {
|
|
23451
|
-
constructor(dialogRef, toastr, data) {
|
|
23473
|
+
constructor(dialogRef, toastr, _tsr, data) {
|
|
23452
23474
|
this.dialogRef = dialogRef;
|
|
23453
23475
|
this.toastr = toastr;
|
|
23476
|
+
this._tsr = _tsr;
|
|
23454
23477
|
this.data = data;
|
|
23455
23478
|
this.selval = "-1";
|
|
23456
23479
|
this.errorMsg = "";
|
|
@@ -23480,7 +23503,7 @@ class win_select_level_v2 {
|
|
|
23480
23503
|
}
|
|
23481
23504
|
for (let i = 0; i < this.trans.length; i++) {
|
|
23482
23505
|
if (this.selval == this.trans[i].uiid) {
|
|
23483
|
-
this.OK_BUTTON =
|
|
23506
|
+
this.OK_BUTTON = this._tsr.instant('OK') + " (" + this.trans[i].description + ")";
|
|
23484
23507
|
break;
|
|
23485
23508
|
}
|
|
23486
23509
|
}
|
|
@@ -23521,7 +23544,7 @@ class win_select_level_v2 {
|
|
|
23521
23544
|
}*/
|
|
23522
23545
|
ok() {
|
|
23523
23546
|
if (this.selval == null || this.selval == '' || this.selval == '-1') {
|
|
23524
|
-
this.toastr.error('Selezionare lo step di destinazione');
|
|
23547
|
+
this.toastr.error(this._tsr.instant('Selezionare lo step di destinazione'));
|
|
23525
23548
|
return;
|
|
23526
23549
|
}
|
|
23527
23550
|
for (let i = 0; i < this.trans.length; i++) {
|
|
@@ -23538,7 +23561,7 @@ win_select_level_v2.decorators = [
|
|
|
23538
23561
|
<div fxLayout="column">
|
|
23539
23562
|
<div fxFlex="100" fxLayout="row" fxLayoutAlign="start center" class="dialog_header">
|
|
23540
23563
|
|
|
23541
|
-
<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>
|
|
23542
23565
|
|
|
23543
23566
|
<div fxFlex="10" fxLayout="row" fxLayoutAlign="end center">
|
|
23544
23567
|
<div><img src="assets/icons/x.png" style="cursor: pointer;" (click)="dialogRef.close(null)" /> </div>
|
|
@@ -23557,13 +23580,13 @@ win_select_level_v2.decorators = [
|
|
|
23557
23580
|
[style.color]="app.color_font" style="font-weight:bold;font-size:18px;min-width:300px">
|
|
23558
23581
|
<i *ngIf="app.icon!=null && app.icon!=''" class="fa {{app.icon}}" aria-hidden="true"></i>
|
|
23559
23582
|
|
|
23560
|
-
{{ app.description}}</button>
|
|
23583
|
+
{{ app.description|translate}}</button>
|
|
23561
23584
|
<br><br>
|
|
23562
23585
|
|
|
23563
23586
|
|
|
23564
23587
|
</div>
|
|
23565
23588
|
</div>
|
|
23566
|
-
|
|
23589
|
+
</mat-dialog-content>
|
|
23567
23590
|
|
|
23568
23591
|
|
|
23569
23592
|
`
|
|
@@ -23572,6 +23595,7 @@ win_select_level_v2.decorators = [
|
|
|
23572
23595
|
win_select_level_v2.ctorParameters = () => [
|
|
23573
23596
|
{ type: MatDialogRef },
|
|
23574
23597
|
{ type: ToastrService },
|
|
23598
|
+
{ type: TranslateService },
|
|
23575
23599
|
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
23576
23600
|
];
|
|
23577
23601
|
win_select_level_v2.propDecorators = {
|
|
@@ -23579,9 +23603,10 @@ win_select_level_v2.propDecorators = {
|
|
|
23579
23603
|
};
|
|
23580
23604
|
|
|
23581
23605
|
class win_sostituisci_utente_v2 {
|
|
23582
|
-
constructor(dialogRef, toastr) {
|
|
23606
|
+
constructor(dialogRef, toastr, _tsr) {
|
|
23583
23607
|
this.dialogRef = dialogRef;
|
|
23584
23608
|
this.toastr = toastr;
|
|
23609
|
+
this._tsr = _tsr;
|
|
23585
23610
|
this.nota = "";
|
|
23586
23611
|
this.title = "";
|
|
23587
23612
|
this.comm_notrequired = true;
|
|
@@ -23593,27 +23618,27 @@ class win_sostituisci_utente_v2 {
|
|
|
23593
23618
|
ok() {
|
|
23594
23619
|
console.log(this.up.getUsersUsername(), this.up1.getUsersUsername());
|
|
23595
23620
|
if (this.up.getUsersUsername() == null) {
|
|
23596
|
-
this.toastr.error("selezionare utente origine");
|
|
23621
|
+
this.toastr.error(this._tsr.instant("selezionare utente origine"));
|
|
23597
23622
|
return;
|
|
23598
23623
|
}
|
|
23599
23624
|
if (this.up.getUsersUsername() == "-1") {
|
|
23600
|
-
this.toastr.error("selezionare utente origine");
|
|
23625
|
+
this.toastr.error(this._tsr.instant("selezionare utente origine"));
|
|
23601
23626
|
return;
|
|
23602
23627
|
}
|
|
23603
23628
|
if (this.up.getUsersUsername() == "") {
|
|
23604
|
-
this.toastr.error("selezionare utente origine");
|
|
23629
|
+
this.toastr.error(this._tsr.instant("selezionare utente origine"));
|
|
23605
23630
|
return;
|
|
23606
23631
|
}
|
|
23607
23632
|
if (this.up1.getUsersUsername() == null) {
|
|
23608
|
-
this.toastr.error("selezionare utente destinazione");
|
|
23633
|
+
this.toastr.error(this._tsr.instant("selezionare utente destinazione"));
|
|
23609
23634
|
return;
|
|
23610
23635
|
}
|
|
23611
23636
|
if (this.up1.getUsersUsername() == "-1") {
|
|
23612
|
-
this.toastr.error("selezionare utente destinazione");
|
|
23637
|
+
this.toastr.error(this._tsr.instant("selezionare utente destinazione"));
|
|
23613
23638
|
return;
|
|
23614
23639
|
}
|
|
23615
23640
|
if (this.up1.getUsersUsername() == "") {
|
|
23616
|
-
this.toastr.error("selezionare utente destinazione");
|
|
23641
|
+
this.toastr.error(this._tsr.instant("selezionare utente destinazione"));
|
|
23617
23642
|
return;
|
|
23618
23643
|
}
|
|
23619
23644
|
let o = new Object();
|
|
@@ -23629,7 +23654,7 @@ win_sostituisci_utente_v2.decorators = [
|
|
|
23629
23654
|
template: `
|
|
23630
23655
|
<div fxLayout="column">
|
|
23631
23656
|
<div fxFlex="100" fxLayout="row" class="dialog_header">
|
|
23632
|
-
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
|
|
23657
|
+
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title|translate}}</div>
|
|
23633
23658
|
<div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
|
|
23634
23659
|
<img src="assets/icons/x.png" style="cursor: pointer;" (click)="close()" />
|
|
23635
23660
|
</div>
|
|
@@ -23641,15 +23666,15 @@ win_sostituisci_utente_v2.decorators = [
|
|
|
23641
23666
|
style="font-size:12px"
|
|
23642
23667
|
>
|
|
23643
23668
|
<div style="width:100%">
|
|
23644
|
-
<FHUserField label="Utente da sostituire" #up></FHUserField>
|
|
23669
|
+
<FHUserField [label]="'Utente da sostituire' |translate" #up></FHUserField>
|
|
23645
23670
|
</div>
|
|
23646
23671
|
<div style="width:100%">
|
|
23647
|
-
<FHUserField label="Utente sostituto" #up1></FHUserField>
|
|
23672
|
+
<FHUserField [label]="'Utente sostituto' |translate" #up1></FHUserField>
|
|
23648
23673
|
</div>
|
|
23649
23674
|
</div>
|
|
23650
23675
|
<div mat-dialog-actions fxLayout="row" fxLayoutAlign="center center">
|
|
23651
23676
|
<div>
|
|
23652
|
-
<button mat-flat-button color="primary" (click)="ok()">OK</button>
|
|
23677
|
+
<button mat-flat-button color="primary" (click)="ok()"> {{'OK' | translate }}</button>
|
|
23653
23678
|
</div>
|
|
23654
23679
|
|
|
23655
23680
|
<div>
|
|
@@ -23658,7 +23683,7 @@ win_sostituisci_utente_v2.decorators = [
|
|
|
23658
23683
|
style="background-color: #F5F5F5"
|
|
23659
23684
|
(click)="close()"
|
|
23660
23685
|
>
|
|
23661
|
-
|
|
23686
|
+
{{'ANNULLA' | translate }}
|
|
23662
23687
|
</button>
|
|
23663
23688
|
</div>
|
|
23664
23689
|
</div>
|
|
@@ -23668,7 +23693,8 @@ win_sostituisci_utente_v2.decorators = [
|
|
|
23668
23693
|
];
|
|
23669
23694
|
win_sostituisci_utente_v2.ctorParameters = () => [
|
|
23670
23695
|
{ type: MatDialogRef },
|
|
23671
|
-
{ type: ToastrService }
|
|
23696
|
+
{ type: ToastrService },
|
|
23697
|
+
{ type: TranslateService }
|
|
23672
23698
|
];
|
|
23673
23699
|
win_sostituisci_utente_v2.propDecorators = {
|
|
23674
23700
|
up: [{ type: ViewChild, args: ["up",] }],
|
|
@@ -23721,7 +23747,7 @@ win_uploads_v2.decorators = [
|
|
|
23721
23747
|
template: `
|
|
23722
23748
|
<div fxLayout="column" fxLayoutGap="5px">
|
|
23723
23749
|
<div fxFlex="100" fxLayout="row" class="dialog_header">
|
|
23724
|
-
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
|
|
23750
|
+
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title |translate}}</div>
|
|
23725
23751
|
<div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
|
|
23726
23752
|
<img src="assets/icons/x.png" style="cursor: pointer;" (click)="close()" />
|
|
23727
23753
|
</div>
|
|
@@ -23814,11 +23840,11 @@ class dati_aggiuntivi_v2 {
|
|
|
23814
23840
|
this.bNuovaRev_Agg = false;
|
|
23815
23841
|
this.hide_richiedente = false;
|
|
23816
23842
|
this.bEdit_Agg = false;
|
|
23817
|
-
this.btnSalva_label = "SALVA";
|
|
23818
|
-
this.btnTerminaOp_label = "Termina Attività";
|
|
23819
|
-
this.btnApprova_label = "APPROVA";
|
|
23820
|
-
this.btnAssegna_label = "Assegna";
|
|
23821
|
-
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");
|
|
23822
23848
|
this.id_documento = "";
|
|
23823
23849
|
this.m_autori = "";
|
|
23824
23850
|
this.m_lettori = "";
|
|
@@ -25261,13 +25287,13 @@ class dati_aggiuntivi_v2 {
|
|
|
25261
25287
|
this.bEdit_bozza = false;
|
|
25262
25288
|
this.bNuovaRev_Agg = false;
|
|
25263
25289
|
this.bEdit_Agg = this.bEdit_wkf;
|
|
25264
|
-
this.btnSalva_label = "SALVA";
|
|
25265
|
-
this.btnTerminaOp_label = "Termina Attività";
|
|
25266
|
-
this.btnApprova_label = "APPROVA";
|
|
25267
|
-
this.btnAssegna_label = "Assegna";
|
|
25268
|
-
this.btnRespingi_label = "RESPINGI";
|
|
25269
|
-
this.uti_s.set_home_title(this.app_info.descrizione_breve + " - Nuova Richiesta");
|
|
25270
|
-
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"));
|
|
25271
25297
|
this.reset_counters_int(0, 0);
|
|
25272
25298
|
/*
|
|
25273
25299
|
dati_aggiuntivi.id_doc=id_documento;
|
|
@@ -25353,22 +25379,22 @@ class dati_aggiuntivi_v2 {
|
|
|
25353
25379
|
}
|
|
25354
25380
|
this.app_s.getState().wkf_doc_info.in_carico_a = this.s_uto;
|
|
25355
25381
|
if (this.m_obj.v == null)
|
|
25356
|
-
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) +
|
|
25357
25383
|
" " +
|
|
25358
25384
|
this.m_obj.codice +
|
|
25359
25385
|
" - " +
|
|
25360
|
-
this.m_obj.stat_stato);
|
|
25386
|
+
this.tsr.instant(this.m_obj.stat_stato));
|
|
25361
25387
|
else
|
|
25362
|
-
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) +
|
|
25363
25389
|
" " +
|
|
25364
25390
|
this.m_obj.codice + "/" + this.m_obj.v +
|
|
25365
25391
|
" - " +
|
|
25366
|
-
this.m_obj.stat_stato);
|
|
25367
|
-
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) +
|
|
25368
25394
|
" " +
|
|
25369
25395
|
this.m_obj.codice +
|
|
25370
25396
|
" - " +
|
|
25371
|
-
this.m_obj.stat_stato);
|
|
25397
|
+
this.tsr.instant(this.m_obj.stat_stato));
|
|
25372
25398
|
this.old_doc = (JSON.parse(JSON.stringify(this.getfieldvalues())));
|
|
25373
25399
|
//+' ('+s_uto+')');
|
|
25374
25400
|
}
|
|
@@ -25384,8 +25410,8 @@ class dati_aggiuntivi_v2 {
|
|
|
25384
25410
|
revisione() {
|
|
25385
25411
|
let dialogRef = this.m_dialog.open(fh_win_confirm, {
|
|
25386
25412
|
disableClose: true, data: {
|
|
25387
|
-
title_dialog: "Conferma Operazione",
|
|
25388
|
-
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?")
|
|
25389
25415
|
}
|
|
25390
25416
|
});
|
|
25391
25417
|
dialogRef.afterClosed().subscribe((result) => {
|
|
@@ -25397,7 +25423,7 @@ class dati_aggiuntivi_v2 {
|
|
|
25397
25423
|
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
25398
25424
|
if (data != null)
|
|
25399
25425
|
if (data.result_msg == "OK") {
|
|
25400
|
-
this.alert('Revisione generata', 0);
|
|
25426
|
+
this.alert(this.tsr.instant('Revisione generata'), 0);
|
|
25401
25427
|
window.location.reload();
|
|
25402
25428
|
}
|
|
25403
25429
|
});
|
|
@@ -28171,11 +28197,11 @@ class wkfapp_v2 {
|
|
|
28171
28197
|
}
|
|
28172
28198
|
annulla_richiesta() {
|
|
28173
28199
|
if (this.get_grid().sRow == null) {
|
|
28174
|
-
this._toastr.error("Selezionare il documento da annullare");
|
|
28200
|
+
this._toastr.error(this.tsr.instant("Selezionare il documento da annullare"));
|
|
28175
28201
|
return;
|
|
28176
28202
|
}
|
|
28177
|
-
localStorage.setItem(this.app_s.COMPANY_KEY + "title_dialog", "Conferma Operazione");
|
|
28178
|
-
localStorage.setItem(this.app_s.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare il documento numero: " +
|
|
28203
|
+
localStorage.setItem(this.app_s.COMPANY_KEY + "title_dialog", this.tsr.instant("Conferma Operazione"));
|
|
28204
|
+
localStorage.setItem(this.app_s.COMPANY_KEY + "msg_dialog", this.tsr.instant("Confermi di voler annullare il documento numero: ") +
|
|
28179
28205
|
this.get_grid().sRow.codice +
|
|
28180
28206
|
"?");
|
|
28181
28207
|
let dialogRef = this.dialog.open(fh_win_confirm, {
|
|
@@ -28212,7 +28238,7 @@ class wkfapp_v2 {
|
|
|
28212
28238
|
return;
|
|
28213
28239
|
}
|
|
28214
28240
|
let dialogRef = this.dialog.open(fh_win_confirm, {
|
|
28215
|
-
disableClose: true, data: { title_dialog: "Conferma Operazione", msg_dialog: "Confermi di voler assegnarti il documento?" }
|
|
28241
|
+
disableClose: true, data: { title_dialog: this.tsr.instant("Conferma Operazione"), msg_dialog: this.tsr.instant("Confermi di voler assegnarti il documento?") }
|
|
28216
28242
|
});
|
|
28217
28243
|
dialogRef.afterClosed().subscribe((result) => {
|
|
28218
28244
|
if (result) {
|
|
@@ -28241,7 +28267,7 @@ class wkfapp_v2 {
|
|
|
28241
28267
|
if (b_found) {
|
|
28242
28268
|
console.log(livello, stato_doc);
|
|
28243
28269
|
if (livello != stato_doc) {
|
|
28244
|
-
this._toastr.error('Il documento non è in stato Bozza');
|
|
28270
|
+
this._toastr.error(this.tsr.instant('Il documento non è in stato Bozza'));
|
|
28245
28271
|
return;
|
|
28246
28272
|
}
|
|
28247
28273
|
let p = new QParam();
|
|
@@ -28251,13 +28277,13 @@ class wkfapp_v2 {
|
|
|
28251
28277
|
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
28252
28278
|
if (data != null)
|
|
28253
28279
|
if (data.result_msg == "OK") {
|
|
28254
|
-
this._toastr.info('Documento aggiornato');
|
|
28280
|
+
this._toastr.info(this.tsr.instant('Documento aggiornato'));
|
|
28255
28281
|
this.get_grid().doFill("");
|
|
28256
28282
|
}
|
|
28257
28283
|
});
|
|
28258
28284
|
}
|
|
28259
28285
|
else {
|
|
28260
|
-
this._toastr.error('L\'utente non è configurato per lo step BOZZA');
|
|
28286
|
+
this._toastr.error(this.tsr.instant('L\'utente non è configurato per lo step BOZZA'));
|
|
28261
28287
|
}
|
|
28262
28288
|
});
|
|
28263
28289
|
});
|
|
@@ -28266,7 +28292,7 @@ class wkfapp_v2 {
|
|
|
28266
28292
|
}
|
|
28267
28293
|
sostituisci_utente() {
|
|
28268
28294
|
if (this.get_grid().sRow == null) {
|
|
28269
|
-
this._toastr.error("Selezionare il documento");
|
|
28295
|
+
this._toastr.error(this.tsr.instant("Selezionare il documento"));
|
|
28270
28296
|
return;
|
|
28271
28297
|
}
|
|
28272
28298
|
let p = new QParam();
|
|
@@ -28284,7 +28310,7 @@ class wkfapp_v2 {
|
|
|
28284
28310
|
setTimeout(() => {
|
|
28285
28311
|
dialogRef.componentInstance.up.all_user = data.result_data;
|
|
28286
28312
|
dialogRef.componentInstance.title =
|
|
28287
|
-
"Sostituzione utente: " +
|
|
28313
|
+
this.tsr.instant("Sostituzione utente: ") +
|
|
28288
28314
|
this.get_grid().sRow.codice +
|
|
28289
28315
|
" - " +
|
|
28290
28316
|
this.get_grid().sRow.oggetto;
|
|
@@ -28305,7 +28331,7 @@ class wkfapp_v2 {
|
|
|
28305
28331
|
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
28306
28332
|
if (data != null)
|
|
28307
28333
|
if (data.result_msg == "OK") {
|
|
28308
|
-
this._toastr.info("Workflow Aggiornato");
|
|
28334
|
+
this._toastr.info(this.tsr.instant("Workflow Aggiornato"));
|
|
28309
28335
|
}
|
|
28310
28336
|
});
|
|
28311
28337
|
}
|
|
@@ -28344,7 +28370,7 @@ class wkfapp_v2 {
|
|
|
28344
28370
|
setTimeout(() => {
|
|
28345
28371
|
dialogRef.componentInstance.setStepCombo(s_i);
|
|
28346
28372
|
dialogRef.componentInstance.title =
|
|
28347
|
-
"Riassegnazione documento: " +
|
|
28373
|
+
this.tsr.instant("Riassegnazione documento: ") +
|
|
28348
28374
|
this.get_grid().sRow.codice +
|
|
28349
28375
|
" - " +
|
|
28350
28376
|
this.get_grid().sRow.oggetto;
|
|
@@ -28420,7 +28446,7 @@ class wkfapp_v2 {
|
|
|
28420
28446
|
setTimeout(() => {
|
|
28421
28447
|
dialogRef.componentInstance.arrAutori = arrAutori;
|
|
28422
28448
|
dialogRef.componentInstance.title =
|
|
28423
|
-
"Riassegnazione documento: " +
|
|
28449
|
+
this.tsr.instant("Riassegnazione documento: ") +
|
|
28424
28450
|
this.get_grid().sRow.codice +
|
|
28425
28451
|
" - " +
|
|
28426
28452
|
this.get_grid().sRow.oggetto;
|
|
@@ -28475,7 +28501,7 @@ class wkfapp_v2 {
|
|
|
28475
28501
|
old_grp = this.wax[i].gruppo_parallelo;
|
|
28476
28502
|
}
|
|
28477
28503
|
else {
|
|
28478
|
-
this._toastr.error("impossibile assegnare a utenti di gruppi distiniti");
|
|
28504
|
+
this._toastr.error(this.tsr.instant("impossibile assegnare a utenti di gruppi distiniti"));
|
|
28479
28505
|
return;
|
|
28480
28506
|
}
|
|
28481
28507
|
if (a_datanot != "")
|
|
@@ -28506,11 +28532,11 @@ class wkfapp_v2 {
|
|
|
28506
28532
|
}
|
|
28507
28533
|
forkJoin(op).subscribe((result) => { });
|
|
28508
28534
|
this.sendEMail_ex(this.user_idp, a_datanot, this.titolo_email +
|
|
28509
|
-
"L'utente " +
|
|
28535
|
+
this.tsr.instant("L'utente ") +
|
|
28510
28536
|
this.user_cognome +
|
|
28511
28537
|
" " +
|
|
28512
28538
|
this.user_nome +
|
|
28513
|
-
" ti ha riassegnato il documento: " +
|
|
28539
|
+
this.tsr.instant(" ti ha riassegnato il documento: ") +
|
|
28514
28540
|
this.get_grid().sRow.codice, "Commento:\n\n" + this.nota_wax, this.id_applicativo, this.get_grid().sRow.uiid, this.app_s.COMPANY_SITE_ROOT +
|
|
28515
28541
|
"#/" +
|
|
28516
28542
|
this.app_root +
|
|
@@ -28525,7 +28551,7 @@ class wkfapp_v2 {
|
|
|
28525
28551
|
p.values = [
|
|
28526
28552
|
this.id_applicativo,
|
|
28527
28553
|
this.get_grid().sRow.uiid,
|
|
28528
|
-
"Documento riassegnato a " + a_utif,
|
|
28554
|
+
this.tsr.instant("Documento riassegnato a ") + a_utif,
|
|
28529
28555
|
this.user_idp,
|
|
28530
28556
|
this.os_r.description,
|
|
28531
28557
|
this.get_grid().sRow.stato,
|
|
@@ -28583,7 +28609,7 @@ class wkfapp_v2 {
|
|
|
28583
28609
|
p.values = [
|
|
28584
28610
|
this.id_applicativo,
|
|
28585
28611
|
this.get_grid().sRow.uiid,
|
|
28586
|
-
"Documento riassegnato, commento
|
|
28612
|
+
this.tsr.instant("Documento riassegnato, commento:") + "\n" + this.nota_wax,
|
|
28587
28613
|
this.user_idp,
|
|
28588
28614
|
"",
|
|
28589
28615
|
];
|
|
@@ -28660,7 +28686,7 @@ class wkfapp_v2 {
|
|
|
28660
28686
|
});
|
|
28661
28687
|
setTimeout(() => {
|
|
28662
28688
|
dialogRef.componentInstance.arrAutori = data.result_data;
|
|
28663
|
-
dialogRef.componentInstance.title = "Impersona Utente";
|
|
28689
|
+
dialogRef.componentInstance.title = this.tsr.instant("Impersona Utente");
|
|
28664
28690
|
dialogRef.componentInstance.commento_hidden = true;
|
|
28665
28691
|
});
|
|
28666
28692
|
dialogRef.afterClosed().subscribe((result) => {
|
|
@@ -28739,7 +28765,7 @@ class wkfapp_v2 {
|
|
|
28739
28765
|
this.user_idp = this.app_s.getState().wkf_obj.user_idp;
|
|
28740
28766
|
this.app_root = this.app_s.getState().wkf_obj.app_root;
|
|
28741
28767
|
this.title = this.app_s.getState().wkf_obj.title;
|
|
28742
|
-
this.m_uti.set_home_title(this.att_panelcat);
|
|
28768
|
+
this.m_uti.set_home_title(this.tsr.instant(this.att_panelcat));
|
|
28743
28769
|
}
|
|
28744
28770
|
init_Panel(cod_documento, id_Doc) {
|
|
28745
28771
|
this.m_id_Doc = id_Doc;
|
|
@@ -28816,7 +28842,7 @@ class wkfapp_v2 {
|
|
|
28816
28842
|
this.user_nome = this.app_s.user_name;
|
|
28817
28843
|
this.user_cognome = this.app_s.user_surname;
|
|
28818
28844
|
this.user_email = this.app_s.user_email;
|
|
28819
|
-
this.m_uti.set_home_title(this.att_panelcat);
|
|
28845
|
+
this.m_uti.set_home_title(this.tsr.instant(this.att_panelcat));
|
|
28820
28846
|
let p = new QParam();
|
|
28821
28847
|
p.sql = "SELECT_UTENTE_WKF_ADMIN";
|
|
28822
28848
|
p.types = ["string", "string"];
|