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