@fluxhub/fluxhub-lib 10.0.436 → 10.0.437
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 +84 -72
- 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/controls/fhgrid_json.js +4 -6
- package/esm2015/lib/controls/fhgrid_toolbar.js +2 -2
- package/esm2015/lib/wkf_engine/wkfapp.js +39 -32
- package/esm2015/lib/wkf_engine_v2/wkfapp.js +39 -32
- package/fesm2015/fluxhub-fluxhub-lib.js +80 -68
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -7031,42 +7031,49 @@ class wkfapp {
|
|
|
7031
7031
|
this._toastr.error("Selezionare il documento");
|
|
7032
7032
|
return;
|
|
7033
7033
|
}
|
|
7034
|
-
let
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
let b_found = false;
|
|
7040
|
-
let livello = 0;
|
|
7041
|
-
let descri_livello = '';
|
|
7042
|
-
for (let i = 0; i < data.result_data.length; i++) {
|
|
7043
|
-
if (data.result_data[i].idp == this.app_s.user) {
|
|
7044
|
-
livello = data.result_data[i].livello;
|
|
7045
|
-
descri_livello = data.result_data[i].descri_livello;
|
|
7046
|
-
b_found = true;
|
|
7047
|
-
break;
|
|
7048
|
-
}
|
|
7049
|
-
}
|
|
7050
|
-
if (b_found) {
|
|
7051
|
-
if (livello != this.get_grid().sRow.stato) {
|
|
7052
|
-
this._toastr.error('Il documento non è in stato Bozza');
|
|
7053
|
-
return;
|
|
7054
|
-
}
|
|
7034
|
+
let dialogRef = this.dialog.open(fh_win_confirm, {
|
|
7035
|
+
disableClose: true, data: { title_dialog: "Conferma Operazione", msg_dialog: "Confermi di voler assegnarti il documento?" }
|
|
7036
|
+
});
|
|
7037
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
7038
|
+
if (result) {
|
|
7055
7039
|
let p = new QParam();
|
|
7056
|
-
p.sql = "
|
|
7057
|
-
p.types = ["string", "string"
|
|
7058
|
-
p.values = [this.id_applicativo, this.get_grid().sRow.uiid
|
|
7040
|
+
p.sql = "SELECT_WKF_SELECT_USER_MIN";
|
|
7041
|
+
p.types = ["string", "string"];
|
|
7042
|
+
p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
|
|
7059
7043
|
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7044
|
+
let b_found = false;
|
|
7045
|
+
let livello = 0;
|
|
7046
|
+
let descri_livello = '';
|
|
7047
|
+
for (let i = 0; i < data.result_data.length; i++) {
|
|
7048
|
+
if (data.result_data[i].idp == this.app_s.user) {
|
|
7049
|
+
livello = data.result_data[i].livello;
|
|
7050
|
+
descri_livello = data.result_data[i].descri_livello;
|
|
7051
|
+
b_found = true;
|
|
7052
|
+
break;
|
|
7064
7053
|
}
|
|
7054
|
+
}
|
|
7055
|
+
if (b_found) {
|
|
7056
|
+
if (livello != this.get_grid().sRow.stato) {
|
|
7057
|
+
this._toastr.error('Il documento non è in stato Bozza');
|
|
7058
|
+
return;
|
|
7059
|
+
}
|
|
7060
|
+
let p = new QParam();
|
|
7061
|
+
p.sql = "UPDATE_WKF_STATO_BOZZA";
|
|
7062
|
+
p.types = ["string", "string", "int", 'string'];
|
|
7063
|
+
p.values = [this.id_applicativo, this.get_grid().sRow.uiid, livello, descri_livello];
|
|
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
|
+
}
|
|
7065
7075
|
});
|
|
7066
7076
|
}
|
|
7067
|
-
else {
|
|
7068
|
-
this._toastr.error('L\'utente non è configurato per lo step BOZZA');
|
|
7069
|
-
}
|
|
7070
7077
|
});
|
|
7071
7078
|
}
|
|
7072
7079
|
recupera_richiesta() {
|
|
@@ -14930,12 +14937,10 @@ class FHGridJSONComponent {
|
|
|
14930
14937
|
this.res_columns(true);
|
|
14931
14938
|
}
|
|
14932
14939
|
edit_config() {
|
|
14933
|
-
localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", "Conferma Operazione");
|
|
14934
|
-
localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler sovrascrivere la configurazione " +
|
|
14935
|
-
this.gf.getDescri() +
|
|
14936
|
-
"?");
|
|
14937
14940
|
let dialogRef = this.m_dialog.open(fh_win_confirm, {
|
|
14938
|
-
disableClose: true,
|
|
14941
|
+
disableClose: true, data: { title_dialog: "Conferma Operazione", msg_dialog: "Confermi di voler sovrascrivere la configurazione " +
|
|
14942
|
+
this.gf.getDescri() +
|
|
14943
|
+
"?" }
|
|
14939
14944
|
});
|
|
14940
14945
|
dialogRef.afterClosed().subscribe((result) => {
|
|
14941
14946
|
if (result) {
|
|
@@ -15756,7 +15761,7 @@ FHGridToolBarComponent.decorators = [
|
|
|
15756
15761
|
{ type: Component, args: [{
|
|
15757
15762
|
selector: "FHGridToolBar",
|
|
15758
15763
|
template: `
|
|
15759
|
-
|
|
15764
|
+
SROW: {{sRow | json}}
|
|
15760
15765
|
<div
|
|
15761
15766
|
*ngIf="type == 'WKF_NO_EDIT'"
|
|
15762
15767
|
fxLayoutGap="3px"
|
|
@@ -25597,42 +25602,49 @@ class wkfapp_v2 {
|
|
|
25597
25602
|
this._toastr.error("Selezionare il documento");
|
|
25598
25603
|
return;
|
|
25599
25604
|
}
|
|
25600
|
-
let
|
|
25601
|
-
|
|
25602
|
-
|
|
25603
|
-
|
|
25604
|
-
|
|
25605
|
-
let b_found = false;
|
|
25606
|
-
let livello = 0;
|
|
25607
|
-
let descri_livello = '';
|
|
25608
|
-
for (let i = 0; i < data.result_data.length; i++) {
|
|
25609
|
-
if (data.result_data[i].username == this.app_s.user) {
|
|
25610
|
-
livello = data.result_data[i].step;
|
|
25611
|
-
descri_livello = data.result_data[i].des_step;
|
|
25612
|
-
b_found = true;
|
|
25613
|
-
break;
|
|
25614
|
-
}
|
|
25615
|
-
}
|
|
25616
|
-
if (b_found) {
|
|
25617
|
-
if (livello != this.get_grid().sRow.stato) {
|
|
25618
|
-
this._toastr.error('Il documento non è in stato Bozza');
|
|
25619
|
-
return;
|
|
25620
|
-
}
|
|
25605
|
+
let dialogRef = this.dialog.open(fh_win_confirm, {
|
|
25606
|
+
disableClose: true, data: { title_dialog: "Conferma Operazione", msg_dialog: "Confermi di voler assegnarti il documento?" }
|
|
25607
|
+
});
|
|
25608
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
25609
|
+
if (result) {
|
|
25621
25610
|
let p = new QParam();
|
|
25622
|
-
p.sql = "
|
|
25623
|
-
p.types = ["string", "string"
|
|
25624
|
-
p.values = [this.id_applicativo, this.get_grid().sRow.uiid
|
|
25611
|
+
p.sql = "SELECT_WKF2_SELECT_USER_MIN";
|
|
25612
|
+
p.types = ["string", "string"];
|
|
25613
|
+
p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
|
|
25625
25614
|
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
25626
|
-
|
|
25627
|
-
|
|
25628
|
-
|
|
25629
|
-
|
|
25615
|
+
let b_found = false;
|
|
25616
|
+
let livello = 0;
|
|
25617
|
+
let descri_livello = '';
|
|
25618
|
+
for (let i = 0; i < data.result_data.length; i++) {
|
|
25619
|
+
if (data.result_data[i].username == this.app_s.user) {
|
|
25620
|
+
livello = data.result_data[i].step;
|
|
25621
|
+
descri_livello = data.result_data[i].des_step;
|
|
25622
|
+
b_found = true;
|
|
25623
|
+
break;
|
|
25624
|
+
}
|
|
25625
|
+
}
|
|
25626
|
+
if (b_found) {
|
|
25627
|
+
if (livello != this.get_grid().sRow.stato) {
|
|
25628
|
+
this._toastr.error('Il documento non è in stato Bozza');
|
|
25629
|
+
return;
|
|
25630
25630
|
}
|
|
25631
|
+
let p = new QParam();
|
|
25632
|
+
p.sql = "UPDATE_WKF_STATO_BOZZA";
|
|
25633
|
+
p.types = ["string", "string", "int", 'string'];
|
|
25634
|
+
p.values = [this.id_applicativo, this.get_grid().sRow.uiid, livello, descri_livello];
|
|
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
|
+
}
|
|
25631
25646
|
});
|
|
25632
25647
|
}
|
|
25633
|
-
else {
|
|
25634
|
-
this._toastr.error('L\'utente non è configurato per lo step BOZZA');
|
|
25635
|
-
}
|
|
25636
25648
|
});
|
|
25637
25649
|
}
|
|
25638
25650
|
sostituisci_utente() {
|