@fluxhub/fluxhub-lib 10.0.431 → 10.0.434
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 +150 -54
- 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.js +2 -2
- package/esm2015/lib/controls/fhgrid_toolbar.js +28 -9
- package/esm2015/lib/controls/fhuploadpanel.js +4 -2
- package/esm2015/lib/wkf_engine/wkfapp.js +46 -2
- package/esm2015/lib/wkf_engine_v2/wkfapp.js +44 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +119 -11
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhgrid_toolbar.d.ts +2 -0
- package/lib/controls/fhuploadpanel.d.ts +1 -0
- package/lib/wkf_engine/wkfapp.d.ts +1 -0
- package/lib/wkf_engine_v2/wkfapp.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4859,6 +4859,7 @@ class FHUploadPanelComponent {
|
|
|
4859
4859
|
this.show_upload = true;
|
|
4860
4860
|
this.show_download = true;
|
|
4861
4861
|
this.description_required = false;
|
|
4862
|
+
this.selezionare_tipologia = "Selezionare la Tipologia";
|
|
4862
4863
|
this.b_initt = false;
|
|
4863
4864
|
this.change = new EventEmitter();
|
|
4864
4865
|
this.call_upload = new EventEmitter();
|
|
@@ -5172,7 +5173,7 @@ FHUploadPanelComponent.decorators = [
|
|
|
5172
5173
|
|
|
5173
5174
|
<FHUpload
|
|
5174
5175
|
[single]="b_False"
|
|
5175
|
-
|
|
5176
|
+
[selezionare_tipologia]="selezionare_tipologia"
|
|
5176
5177
|
[lascia_il_file] = "force_en ? 'Drop here to confim':'Lascia il file per confermarmare upload'"
|
|
5177
5178
|
[trascina_il_file] = "force_en ? 'Drop a file here o click to upload a file':'Trascina un file qui o Clicca per avviare upload'"
|
|
5178
5179
|
|
|
@@ -5564,6 +5565,7 @@ FHUploadPanelComponent.propDecorators = {
|
|
|
5564
5565
|
show_upload: [{ type: Input }],
|
|
5565
5566
|
show_download: [{ type: Input }],
|
|
5566
5567
|
description_required: [{ type: Input }],
|
|
5568
|
+
selezionare_tipologia: [{ type: Input }],
|
|
5567
5569
|
change: [{ type: Output }],
|
|
5568
5570
|
call_upload: [{ type: Output }],
|
|
5569
5571
|
init_end: [{ type: Output }],
|
|
@@ -6988,6 +6990,8 @@ class wkfapp {
|
|
|
6988
6990
|
this.riassegna_richiesta();
|
|
6989
6991
|
if (o.cmd == "sostituisci_utente")
|
|
6990
6992
|
this.sostituisci_utente();
|
|
6993
|
+
if (o.cmd == "reclama_bozza")
|
|
6994
|
+
this.reclama_bozza();
|
|
6991
6995
|
if (o.cmd == "annulla_imp")
|
|
6992
6996
|
this.annulla_imp();
|
|
6993
6997
|
if (o.cmd == "test_utente")
|
|
@@ -7022,6 +7026,49 @@ class wkfapp {
|
|
|
7022
7026
|
}
|
|
7023
7027
|
});
|
|
7024
7028
|
}
|
|
7029
|
+
reclama_bozza() {
|
|
7030
|
+
if (this.get_grid().sRow == null) {
|
|
7031
|
+
this._toastr.error("Selezionare il documento");
|
|
7032
|
+
return;
|
|
7033
|
+
}
|
|
7034
|
+
let p = new QParam();
|
|
7035
|
+
p.sql = "SELECT_WKF_SELECT_USER_MIN";
|
|
7036
|
+
p.types = ["string", "string"];
|
|
7037
|
+
p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
|
|
7038
|
+
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
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
|
+
}
|
|
7055
|
+
let p = new QParam();
|
|
7056
|
+
p.sql = "UPDATE_WKF_STATO_BOZZA";
|
|
7057
|
+
p.types = ["string", "string", "int", 'string'];
|
|
7058
|
+
p.values = [this.id_applicativo, this.get_grid().sRow.uiid, livello, descri_livello];
|
|
7059
|
+
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
7060
|
+
if (data != null)
|
|
7061
|
+
if (data.result_msg == "OK") {
|
|
7062
|
+
this._toastr.info('Documento aggiornato');
|
|
7063
|
+
this.get_grid().doFill("");
|
|
7064
|
+
}
|
|
7065
|
+
});
|
|
7066
|
+
}
|
|
7067
|
+
else {
|
|
7068
|
+
this._toastr.error('L\'utente non è configurato per lo step BOZZA');
|
|
7069
|
+
}
|
|
7070
|
+
});
|
|
7071
|
+
}
|
|
7025
7072
|
recupera_richiesta() {
|
|
7026
7073
|
let dialogRef = this.dialog.open(win_recupera_doc, { disableClose: true });
|
|
7027
7074
|
setTimeout(() => {
|
|
@@ -7041,7 +7088,6 @@ class wkfapp {
|
|
|
7041
7088
|
p.sql = "SELECT_USERS_BY_WKF_DOC";
|
|
7042
7089
|
p.types = ["string", "string"];
|
|
7043
7090
|
p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
|
|
7044
|
-
let ok_op = false;
|
|
7045
7091
|
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
7046
7092
|
if (data != null)
|
|
7047
7093
|
if (data.result_msg == "OK") {
|
|
@@ -9370,7 +9416,7 @@ class FHGridComponent {
|
|
|
9370
9416
|
FHGridComponent.decorators = [
|
|
9371
9417
|
{ type: Component, args: [{
|
|
9372
9418
|
selector: "FHGrid",
|
|
9373
|
-
template: "<div fxLayout=\"column\" fxFlexFill>\n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutAlign=\"center start\"\n fxLayoutGap=\"3px\"\n style=\"min-height: 55px;\"\n [hidden]=\"!show_buttons\"\n >\n \n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\n <div>\n <h5>{{num_r}} {{label_elementi}}</h5>\n </div>\n \n\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <input\n matInput\n [placeholder]=\"trova_label\"\n (keydown)=\"keyDownFunctioncl($event)\"\n [(ngModel)]=\"ric_libera\"\n style=\"\n width: 200px;\n border: 1px solid;\n min-height: 30px;\n \"\n />\n </div>\n\n <div\n matTooltip=\"REMOVE FILTER\"\n matTooltipPosition=\"above\"\n *ngIf=\"show_pulisci_filtri\"\n >\n <button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\">\n <mat-icon>filter_none</mat-icon> \n </button>\n </div>\n <div matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"autoSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>swap_horiz</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"fitSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>keyboard_tab</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"Refresh()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>autorenew</mat-icon>\n </button>\n </div>\n <FHFilterComboBox\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (selchange)=\"ch_config()\"\n (fillend)=\"fe_cfg()\"\n #gf\n init_fill=\"false\"\n ></FHFilterComboBox>\n <div\n matTooltip=\"Modifica Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"edit_config()\">save</mat-icon>\n </button>\n </div>\n <div\n matTooltip=\"Elimina Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\n </button>\n </div>\n <div\n fxHide\n fxShow.gt-sm\n matTooltip=\"Crea Nuova Preferenza\"\n matTooltipPosition=\"above\"\n >\n <button\n mat-icon-button\n style=\"color: rgb(16, 98, 16);\"\n *ngIf=\"show_buttons && !pref_hidden\"\n >\n <mat-icon (click)=\"insert_config()\">library_add</mat-icon>\n </button>\n </div>\n\n <mat-slide-toggle\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (click)=\"ck_flag()\"\n #toggle_mantieni\n >\n {{mantieni_impostazioni}}\n </mat-slide-toggle>\n\n \n <div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"help_window()\"\n color=\"primary\"\n *ngIf=\"show_buttons && show_help\"\n >\n <mat-icon>help</mat-icon>\n </button>\n </div>\n \n\n <img\n *ngIf=\"enable_export && enable_export_pdf\"\n matTooltip=\"EXPORT PDF\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/pdf.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"print()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n\n <img *ngIf=\"enable_export && enable_export_xls\"\n matTooltip=\"EXPORT EXCEL\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/xlsx.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"export_excel()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n </div>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n\n [style.width]=\"width_max\"\n *ngIf=\"enabled\"\n >\n\n <FHGridToolBar\n (command)=\"docmd($event)\"\n [type]=\"toolbar_type\"\n [show_link]=\"show_link\"\n [show_help]=\"show_help_bar\"\n [help_label]=\"help_label_bar\"\n [custom_commands]=\"toolbar_custom_commands\"\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\n [elimina_label]=\"elimina_label\"\n ></FHGridToolBar>\n </div>\n </div>\n\n\n <div fxLayout=\"row\" style=\"width: 100%;\" [fxFlex]=\"show_buttons ? 100:95\">\n <ag-grid-angular\n ref-agGrid\n style=\"width: 100%; height: 100%;\"\n id=\"myGrid\"\n (cellDoubleClicked)=\"onColumnEvent($event)\"\n (cellClicked)=\"onCellClicked($event)\"\n [headerHeight]=\"header_h\"\n [groupHeaderHeight]=\"header_h\"\n class=\"ag-theme-balham\"\n [singleClickEdit]=\"true\"\n [gridOptions]=\"gridOptions\"\n [columnDefs]=\"columnDefs\"\n [rowData]=\"rowData\"\n [rowSelection]=\"selection_mode\"\n\n [getContextMenuItems]=\"enable_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\n (filterModified)=\"onFilterModified()\"\n (rowDoubleClicked)=\"onRowDClicked($event)\"\n (rowClicked)=\"onRowClicked($event)\"\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\n (columnResized)=\"oncolumnEverythingChanged($event)\"\n (columnMoved)=\"oncolumnEverythingChanged($event)\"\n (cellValueChanged)=\"okr($event)\"\n (sortChanged)=\"onAfterSortChanged()\"\n [paginationPageSize]=\"num_per_pag\"\n (gridReady)=\"onReady($event)\"\n >\n </ag-grid-angular>\n </div>\n</div>\n",
|
|
9419
|
+
template: "<div fxLayout=\"column\" fxFlexFill>\n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutAlign=\"center start\"\n fxLayoutGap=\"3px\"\n style=\"min-height: 55px;\"\n [hidden]=\"!show_buttons\"\n >\n \n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\n <div>\n <h5>{{num_r}} {{label_elementi}}</h5>\n </div>\n \n\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <input\n matInput\n [placeholder]=\"trova_label\"\n (keydown)=\"keyDownFunctioncl($event)\"\n [(ngModel)]=\"ric_libera\"\n style=\"\n width: 200px;\n border: 1px solid;\n min-height: 30px;\n \"\n />\n </div>\n\n <div\n matTooltip=\"REMOVE FILTER\"\n matTooltipPosition=\"above\"\n *ngIf=\"show_pulisci_filtri\"\n >\n <button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\">\n <mat-icon>filter_none</mat-icon> \n </button>\n </div>\n <div matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"autoSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>swap_horiz</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"fitSizeAll()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>keyboard_tab</mat-icon>\n </button>\n </div>\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"Refresh()\"\n color=\"primary\"\n *ngIf=\"show_buttons\"\n >\n <mat-icon>autorenew</mat-icon>\n </button>\n </div>\n <FHFilterComboBox\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (selchange)=\"ch_config()\"\n (fillend)=\"fe_cfg()\"\n #gf\n init_fill=\"false\"\n ></FHFilterComboBox>\n <div\n matTooltip=\"Modifica Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"edit_config()\">save</mat-icon>\n </button>\n </div>\n <div\n matTooltip=\"Elimina Preferenza\"\n matTooltipPosition=\"above\"\n *ngIf=\"curr_config!='-1'\"\n >\n <button\n mat-icon-button\n *ngIf=\"show_buttons && !pref_hidden\"\n style=\"color: rgb(248, 105, 10);\"\n >\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\n </button>\n </div>\n <div\n fxHide\n fxShow.gt-sm\n matTooltip=\"Crea Nuova Preferenza\"\n matTooltipPosition=\"above\"\n >\n <button\n mat-icon-button\n style=\"color: rgb(16, 98, 16);\"\n *ngIf=\"show_buttons && !pref_hidden\"\n >\n <mat-icon (click)=\"insert_config()\">library_add</mat-icon>\n </button>\n </div>\n\n <mat-slide-toggle\n fxHide\n fxShow.gt-sm\n [hidden]=\"!show_buttons || pref_hidden\"\n (click)=\"ck_flag()\"\n #toggle_mantieni\n >\n {{mantieni_impostazioni}}\n </mat-slide-toggle>\n\n \n <div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\n <button\n mat-flat-button\n (click)=\"help_window()\"\n color=\"primary\"\n *ngIf=\"show_buttons && show_help\"\n >\n <mat-icon>help</mat-icon>\n </button>\n </div>\n \n\n <img\n *ngIf=\"enable_export && enable_export_pdf\"\n matTooltip=\"EXPORT PDF\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/pdf.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"print()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n\n <img *ngIf=\"enable_export && enable_export_xls\"\n matTooltip=\"EXPORT EXCEL\"\n matTooltipPosition=\"above\"\n src=\"assets/icons/square-o/xlsx.svg\"\n style=\"width: 24px; height: 24px; cursor: pointer\"\n (click)=\"export_excel()\"\n alt=\"Export Excel\"\n width=\"24\" height=\"24\"\n />\n\n </div>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n\n [style.width]=\"width_max\"\n *ngIf=\"enabled\"\n >\n\n <FHGridToolBar\n (command)=\"docmd($event)\"\n [type]=\"toolbar_type\"\n [show_link]=\"show_link\"\n [show_help]=\"show_help_bar\"\n [help_label]=\"help_label_bar\"\n [custom_commands]=\"toolbar_custom_commands\"\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\n [elimina_label]=\"elimina_label\"\n [sRow]=\"sRow\"\n ></FHGridToolBar>\n </div>\n </div>\n\n\n <div fxLayout=\"row\" style=\"width: 100%;\" [fxFlex]=\"show_buttons ? 100:95\">\n <ag-grid-angular\n ref-agGrid\n style=\"width: 100%; height: 100%;\"\n id=\"myGrid\"\n (cellDoubleClicked)=\"onColumnEvent($event)\"\n (cellClicked)=\"onCellClicked($event)\"\n [headerHeight]=\"header_h\"\n [groupHeaderHeight]=\"header_h\"\n class=\"ag-theme-balham\"\n [singleClickEdit]=\"true\"\n [gridOptions]=\"gridOptions\"\n [columnDefs]=\"columnDefs\"\n [rowData]=\"rowData\"\n [rowSelection]=\"selection_mode\"\n\n [getContextMenuItems]=\"enable_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\n (filterModified)=\"onFilterModified()\"\n (rowDoubleClicked)=\"onRowDClicked($event)\"\n (rowClicked)=\"onRowClicked($event)\"\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\n (columnResized)=\"oncolumnEverythingChanged($event)\"\n (columnMoved)=\"oncolumnEverythingChanged($event)\"\n (cellValueChanged)=\"okr($event)\"\n (sortChanged)=\"onAfterSortChanged()\"\n [paginationPageSize]=\"num_per_pag\"\n (gridReady)=\"onReady($event)\"\n >\n </ag-grid-angular>\n </div>\n</div>\n",
|
|
9374
9420
|
styles: [``]
|
|
9375
9421
|
},] }
|
|
9376
9422
|
];
|
|
@@ -15657,6 +15703,7 @@ class FHGridToolBarComponent {
|
|
|
15657
15703
|
this.type = "NONE";
|
|
15658
15704
|
this.toolbar_wkfapp = null;
|
|
15659
15705
|
this.custom_commands = [];
|
|
15706
|
+
this.sRow = null;
|
|
15660
15707
|
this.command = new EventEmitter();
|
|
15661
15708
|
}
|
|
15662
15709
|
refresh_access(wkfx) {
|
|
@@ -15689,6 +15736,9 @@ class FHGridToolBarComponent {
|
|
|
15689
15736
|
sostituisci_utente() {
|
|
15690
15737
|
this.command.emit({ cmd: "sostituisci_utente" });
|
|
15691
15738
|
}
|
|
15739
|
+
reclama_bozza() {
|
|
15740
|
+
this.command.emit({ cmd: "reclama_bozza" });
|
|
15741
|
+
}
|
|
15692
15742
|
test_utente() {
|
|
15693
15743
|
this.command.emit({ cmd: "test_utente" });
|
|
15694
15744
|
}
|
|
@@ -15734,7 +15784,7 @@ FHGridToolBarComponent.decorators = [
|
|
|
15734
15784
|
}}
|
|
15735
15785
|
</button>
|
|
15736
15786
|
<mat-menu #gest_menu="matMenu">
|
|
15737
|
-
<button
|
|
15787
|
+
<button [hidden]="sRow==null"
|
|
15738
15788
|
mat-menu-item
|
|
15739
15789
|
style="background-color: #F5F5F5"
|
|
15740
15790
|
(click)="annulla_richiesta()"
|
|
@@ -15748,7 +15798,7 @@ FHGridToolBarComponent.decorators = [
|
|
|
15748
15798
|
>
|
|
15749
15799
|
{{ "RECUPERA DOCUMENTO" | translate }}
|
|
15750
15800
|
</button>
|
|
15751
|
-
<button
|
|
15801
|
+
<button [hidden]="sRow==null"
|
|
15752
15802
|
mat-menu-item
|
|
15753
15803
|
style="background-color: #F5F5F5"
|
|
15754
15804
|
(click)="riassegna_richiesta()"
|
|
@@ -15757,14 +15807,21 @@ FHGridToolBarComponent.decorators = [
|
|
|
15757
15807
|
{{ "RIASSEGNA DOCUMENTO" | translate }}
|
|
15758
15808
|
</button>
|
|
15759
15809
|
<button
|
|
15760
|
-
mat-menu-item
|
|
15810
|
+
mat-menu-item [hidden]="sRow==null"
|
|
15761
15811
|
style="background-color: #F5F5F5"
|
|
15762
15812
|
(click)="sostituisci_utente()"
|
|
15763
15813
|
*ngIf="toolbar_wkfapp?.is_Admin"
|
|
15764
15814
|
>
|
|
15765
15815
|
{{ "SOSTITUISCI UTENTE" | translate }}
|
|
15766
15816
|
</button>
|
|
15767
|
-
|
|
15817
|
+
<button
|
|
15818
|
+
mat-menu-item [hidden]="sRow==null || sRow?.stato<=10"
|
|
15819
|
+
style="background-color: #F5F5F5"
|
|
15820
|
+
(click)="reclama_bozza()"
|
|
15821
|
+
*ngIf="toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin"
|
|
15822
|
+
>
|
|
15823
|
+
{{ "RECLAMA BOZZA" | translate }}
|
|
15824
|
+
</button>
|
|
15768
15825
|
<button
|
|
15769
15826
|
mat-menu-item
|
|
15770
15827
|
style="background-color: #F5F5F5"
|
|
@@ -15855,23 +15912,30 @@ FHGridToolBarComponent.decorators = [
|
|
|
15855
15912
|
</button>
|
|
15856
15913
|
</td></tr></table>
|
|
15857
15914
|
<mat-menu #gest_menu="matMenu">
|
|
15858
|
-
<button mat-menu-item (click)="annulla_richiesta()">
|
|
15915
|
+
<button mat-menu-item [hidden]="sRow==null" (click)="annulla_richiesta()">
|
|
15859
15916
|
{{ "ANNULLA DOCUMENTO" | translate }}
|
|
15860
15917
|
</button>
|
|
15861
15918
|
<button mat-menu-item (click)="recupera_richiesta()">
|
|
15862
15919
|
{{ "RECUPERA DOCUMENTO" | translate }}
|
|
15863
15920
|
</button>
|
|
15864
|
-
<button mat-menu-item (click)="riassegna_richiesta()">
|
|
15921
|
+
<button mat-menu-item [hidden]="sRow==null" (click)="riassegna_richiesta()">
|
|
15865
15922
|
{{ "RIASSEGNA DOCUMENTO" | translate }}
|
|
15866
15923
|
</button>
|
|
15867
15924
|
<button
|
|
15868
|
-
mat-menu-item
|
|
15925
|
+
mat-menu-item [hidden]="sRow==null"
|
|
15869
15926
|
(click)="sostituisci_utente()"
|
|
15870
15927
|
*ngIf="toolbar_wkfapp?.is_Admin"
|
|
15871
15928
|
>
|
|
15872
15929
|
{{ "SOSTITUISCI UTENTE" | translate }}
|
|
15873
15930
|
</button>
|
|
15874
|
-
|
|
15931
|
+
<button
|
|
15932
|
+
mat-menu-item [hidden]="sRow==null || sRow?.stato<=10"
|
|
15933
|
+
style="background-color: #F5F5F5"
|
|
15934
|
+
(click)="reclama_bozza()"
|
|
15935
|
+
*ngIf="toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin"
|
|
15936
|
+
>
|
|
15937
|
+
{{ "RECLAMA BOZZA" | translate }}
|
|
15938
|
+
</button>
|
|
15875
15939
|
<button
|
|
15876
15940
|
mat-menu-item
|
|
15877
15941
|
(click)="test_utente()"
|
|
@@ -16055,6 +16119,7 @@ FHGridToolBarComponent.propDecorators = {
|
|
|
16055
16119
|
type: [{ type: Input }],
|
|
16056
16120
|
toolbar_wkfapp: [{ type: Input }],
|
|
16057
16121
|
custom_commands: [{ type: Input }],
|
|
16122
|
+
sRow: [{ type: Input }],
|
|
16058
16123
|
command: [{ type: Output }]
|
|
16059
16124
|
};
|
|
16060
16125
|
|
|
@@ -25524,6 +25589,49 @@ class wkfapp_v2 {
|
|
|
25524
25589
|
this.get_grid().doFill("");
|
|
25525
25590
|
});
|
|
25526
25591
|
}
|
|
25592
|
+
reclama_bozza() {
|
|
25593
|
+
if (this.get_grid().sRow == null) {
|
|
25594
|
+
this._toastr.error("Selezionare il documento");
|
|
25595
|
+
return;
|
|
25596
|
+
}
|
|
25597
|
+
let p = new QParam();
|
|
25598
|
+
p.sql = "SELECT_WKF2_SELECT_USER_MIN";
|
|
25599
|
+
p.types = ["string", "string"];
|
|
25600
|
+
p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
|
|
25601
|
+
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
25602
|
+
let b_found = false;
|
|
25603
|
+
let livello = 0;
|
|
25604
|
+
let descri_livello = '';
|
|
25605
|
+
for (let i = 0; i < data.result_data.length; i++) {
|
|
25606
|
+
if (data.result_data[i].username == this.app_s.user) {
|
|
25607
|
+
livello = data.result_data[i].step;
|
|
25608
|
+
descri_livello = data.result_data[i].des_step;
|
|
25609
|
+
b_found = true;
|
|
25610
|
+
break;
|
|
25611
|
+
}
|
|
25612
|
+
}
|
|
25613
|
+
if (b_found) {
|
|
25614
|
+
if (livello != this.get_grid().sRow.stato) {
|
|
25615
|
+
this._toastr.error('Il documento non è in stato Bozza');
|
|
25616
|
+
return;
|
|
25617
|
+
}
|
|
25618
|
+
let p = new QParam();
|
|
25619
|
+
p.sql = "UPDATE_WKF_STATO_BOZZA";
|
|
25620
|
+
p.types = ["string", "string", "int", 'string'];
|
|
25621
|
+
p.values = [this.id_applicativo, this.get_grid().sRow.uiid, livello, descri_livello];
|
|
25622
|
+
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
25623
|
+
if (data != null)
|
|
25624
|
+
if (data.result_msg == "OK") {
|
|
25625
|
+
this._toastr.info('Documento aggiornato');
|
|
25626
|
+
this.get_grid().doFill("");
|
|
25627
|
+
}
|
|
25628
|
+
});
|
|
25629
|
+
}
|
|
25630
|
+
else {
|
|
25631
|
+
this._toastr.error('L\'utente non è configurato per lo step BOZZA');
|
|
25632
|
+
}
|
|
25633
|
+
});
|
|
25634
|
+
}
|
|
25527
25635
|
sostituisci_utente() {
|
|
25528
25636
|
if (this.get_grid().sRow == null) {
|
|
25529
25637
|
this._toastr.error("Selezionare il documento");
|