@fluxhub/fluxhub-lib 10.0.437 → 10.0.438
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 +134 -119
- 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/fhgrid_toolbar.js +4 -4
- package/esm2015/lib/wkf_engine/wkfapp.js +38 -31
- package/esm2015/lib/wkf_engine_v2/wkfapp.js +39 -31
- package/fesm2015/fluxhub-fluxhub-lib.js +78 -63
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -7037,41 +7037,48 @@ class wkfapp {
|
|
|
7037
7037
|
dialogRef.afterClosed().subscribe((result) => {
|
|
7038
7038
|
if (result) {
|
|
7039
7039
|
let p = new QParam();
|
|
7040
|
-
p.sql = "
|
|
7040
|
+
p.sql = "SELECT_DOCUMENTS_BY_UIID";
|
|
7041
7041
|
p.types = ["string", "string"];
|
|
7042
7042
|
p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
|
|
7043
7043
|
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
7044
|
-
let
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7044
|
+
let stato_doc = data.result_data[0].stato;
|
|
7045
|
+
p = new QParam();
|
|
7046
|
+
p.sql = "SELECT_WKF_SELECT_USER_MIN";
|
|
7047
|
+
p.types = ["string", "string"];
|
|
7048
|
+
p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
|
|
7049
|
+
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
7050
|
+
let b_found = false;
|
|
7051
|
+
let livello = 0;
|
|
7052
|
+
let descri_livello = '';
|
|
7053
|
+
for (let i = 0; i < data.result_data.length; i++) {
|
|
7054
|
+
if (data.result_data[i].idp == this.app_s.user) {
|
|
7055
|
+
livello = data.result_data[i].livello;
|
|
7056
|
+
descri_livello = data.result_data[i].descri_livello;
|
|
7057
|
+
b_found = true;
|
|
7058
|
+
break;
|
|
7059
|
+
}
|
|
7053
7060
|
}
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7061
|
+
if (b_found) {
|
|
7062
|
+
if (livello != stato_doc) {
|
|
7063
|
+
this._toastr.error('Il documento non è in stato Bozza');
|
|
7064
|
+
return;
|
|
7065
|
+
}
|
|
7066
|
+
let p = new QParam();
|
|
7067
|
+
p.sql = "UPDATE_WKF_STATO_BOZZA";
|
|
7068
|
+
p.types = ["string", "string", "int", 'string'];
|
|
7069
|
+
p.values = [this.id_applicativo, this.get_grid().sRow.uiid, livello, descri_livello];
|
|
7070
|
+
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
7071
|
+
if (data != null)
|
|
7072
|
+
if (data.result_msg == "OK") {
|
|
7073
|
+
this._toastr.info('Documento aggiornato');
|
|
7074
|
+
this.get_grid().doFill("");
|
|
7075
|
+
}
|
|
7076
|
+
});
|
|
7059
7077
|
}
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
7065
|
-
if (data != null)
|
|
7066
|
-
if (data.result_msg == "OK") {
|
|
7067
|
-
this._toastr.info('Documento aggiornato');
|
|
7068
|
-
this.get_grid().doFill("");
|
|
7069
|
-
}
|
|
7070
|
-
});
|
|
7071
|
-
}
|
|
7072
|
-
else {
|
|
7073
|
-
this._toastr.error('L\'utente non è configurato per lo step BOZZA');
|
|
7074
|
-
}
|
|
7078
|
+
else {
|
|
7079
|
+
this._toastr.error('L\'utente non è configurato per lo step BOZZA');
|
|
7080
|
+
}
|
|
7081
|
+
});
|
|
7075
7082
|
});
|
|
7076
7083
|
}
|
|
7077
7084
|
});
|
|
@@ -15761,7 +15768,7 @@ FHGridToolBarComponent.decorators = [
|
|
|
15761
15768
|
{ type: Component, args: [{
|
|
15762
15769
|
selector: "FHGridToolBar",
|
|
15763
15770
|
template: `
|
|
15764
|
-
|
|
15771
|
+
|
|
15765
15772
|
<div
|
|
15766
15773
|
*ngIf="type == 'WKF_NO_EDIT'"
|
|
15767
15774
|
fxLayoutGap="3px"
|
|
@@ -15821,7 +15828,7 @@ FHGridToolBarComponent.decorators = [
|
|
|
15821
15828
|
{{ "SOSTITUISCI UTENTE" | translate }}
|
|
15822
15829
|
</button>
|
|
15823
15830
|
<button
|
|
15824
|
-
mat-menu-item [hidden]="sRow==null
|
|
15831
|
+
mat-menu-item [hidden]="sRow==null"
|
|
15825
15832
|
style="background-color: #F5F5F5"
|
|
15826
15833
|
(click)="reclama_bozza()"
|
|
15827
15834
|
*ngIf="toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin"
|
|
@@ -15935,7 +15942,7 @@ FHGridToolBarComponent.decorators = [
|
|
|
15935
15942
|
{{ "SOSTITUISCI UTENTE" | translate }}
|
|
15936
15943
|
</button>
|
|
15937
15944
|
<button
|
|
15938
|
-
mat-menu-item [hidden]="sRow==null
|
|
15945
|
+
mat-menu-item [hidden]="sRow==null"
|
|
15939
15946
|
style="background-color: #F5F5F5"
|
|
15940
15947
|
(click)="reclama_bozza()"
|
|
15941
15948
|
*ngIf="toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin"
|
|
@@ -25608,41 +25615,49 @@ class wkfapp_v2 {
|
|
|
25608
25615
|
dialogRef.afterClosed().subscribe((result) => {
|
|
25609
25616
|
if (result) {
|
|
25610
25617
|
let p = new QParam();
|
|
25611
|
-
p.sql = "
|
|
25618
|
+
p.sql = "SELECT_DOCUMENTS_BY_UIID";
|
|
25612
25619
|
p.types = ["string", "string"];
|
|
25613
25620
|
p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
|
|
25614
25621
|
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
25615
|
-
let
|
|
25616
|
-
|
|
25617
|
-
|
|
25618
|
-
|
|
25619
|
-
|
|
25620
|
-
|
|
25621
|
-
|
|
25622
|
-
|
|
25623
|
-
|
|
25622
|
+
let stato_doc = data.result_data[0].stato;
|
|
25623
|
+
p = new QParam();
|
|
25624
|
+
p.sql = "SELECT_WKF2_SELECT_USER_MIN";
|
|
25625
|
+
p.types = ["string", "string"];
|
|
25626
|
+
p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
|
|
25627
|
+
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
25628
|
+
let b_found = false;
|
|
25629
|
+
let livello = 0;
|
|
25630
|
+
let descri_livello = '';
|
|
25631
|
+
for (let i = 0; i < data.result_data.length; i++) {
|
|
25632
|
+
if (data.result_data[i].username == this.app_s.user) {
|
|
25633
|
+
livello = data.result_data[i].step;
|
|
25634
|
+
descri_livello = data.result_data[i].des_step;
|
|
25635
|
+
b_found = true;
|
|
25636
|
+
break;
|
|
25637
|
+
}
|
|
25624
25638
|
}
|
|
25625
|
-
|
|
25626
|
-
|
|
25627
|
-
|
|
25628
|
-
|
|
25629
|
-
|
|
25639
|
+
if (b_found) {
|
|
25640
|
+
console.log(livello, stato_doc);
|
|
25641
|
+
if (livello != stato_doc) {
|
|
25642
|
+
this._toastr.error('Il documento non è in stato Bozza');
|
|
25643
|
+
return;
|
|
25644
|
+
}
|
|
25645
|
+
let p = new QParam();
|
|
25646
|
+
p.sql = "UPDATE_WKF_STATO_BOZZA";
|
|
25647
|
+
p.types = ["string", "string", "int", 'string'];
|
|
25648
|
+
p.values = [this.id_applicativo, this.get_grid().sRow.uiid, livello, descri_livello];
|
|
25649
|
+
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
25650
|
+
if (data != null)
|
|
25651
|
+
if (data.result_msg == "OK") {
|
|
25652
|
+
this._toastr.info('Documento aggiornato');
|
|
25653
|
+
this.get_grid().doFill("");
|
|
25654
|
+
}
|
|
25655
|
+
});
|
|
25630
25656
|
}
|
|
25631
|
-
|
|
25632
|
-
|
|
25633
|
-
|
|
25634
|
-
|
|
25635
|
-
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
25636
|
-
if (data != null)
|
|
25637
|
-
if (data.result_msg == "OK") {
|
|
25638
|
-
this._toastr.info('Documento aggiornato');
|
|
25639
|
-
this.get_grid().doFill("");
|
|
25640
|
-
}
|
|
25641
|
-
});
|
|
25642
|
-
}
|
|
25643
|
-
else {
|
|
25644
|
-
this._toastr.error('L\'utente non è configurato per lo step BOZZA');
|
|
25645
|
-
}
|
|
25657
|
+
else {
|
|
25658
|
+
this._toastr.error('L\'utente non è configurato per lo step BOZZA');
|
|
25659
|
+
}
|
|
25660
|
+
});
|
|
25646
25661
|
});
|
|
25647
25662
|
}
|
|
25648
25663
|
});
|