@fluxhub/fluxhub-lib 10.0.432 → 10.0.435

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.
@@ -6781,7 +6781,7 @@
6781
6781
  FHGridComponent.decorators = [
6782
6782
  { type: i0.Component, args: [{
6783
6783
  selector: "FHGrid",
6784
- 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 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\n <div>\n <h5>{{num_r}}&nbsp;{{label_elementi}}</h5>\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\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>&nbsp;\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 &nbsp;\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 &nbsp;&nbsp;&nbsp;&nbsp;\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",
6784
+ 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 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\">\n <div>\n <h5>{{num_r}}&nbsp;{{label_elementi}}</h5>\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\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>&nbsp;\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 &nbsp;\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 &nbsp;&nbsp;&nbsp;&nbsp;\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",
6785
6785
  styles: [""]
6786
6786
  },] }
6787
6787
  ];
@@ -12150,6 +12150,7 @@
12150
12150
  this.type = "NONE";
12151
12151
  this.toolbar_wkfapp = null;
12152
12152
  this.custom_commands = [];
12153
+ this.sRow = null;
12153
12154
  this.command = new i0.EventEmitter();
12154
12155
  }
12155
12156
  FHGridToolBarComponent.prototype.refresh_access = function (wkfx) {
@@ -12182,6 +12183,9 @@
12182
12183
  FHGridToolBarComponent.prototype.sostituisci_utente = function () {
12183
12184
  this.command.emit({ cmd: "sostituisci_utente" });
12184
12185
  };
12186
+ FHGridToolBarComponent.prototype.reclama_bozza = function () {
12187
+ this.command.emit({ cmd: "reclama_bozza" });
12188
+ };
12185
12189
  FHGridToolBarComponent.prototype.test_utente = function () {
12186
12190
  this.command.emit({ cmd: "test_utente" });
12187
12191
  };
@@ -12199,7 +12203,7 @@
12199
12203
  FHGridToolBarComponent.decorators = [
12200
12204
  { type: i0.Component, args: [{
12201
12205
  selector: "FHGridToolBar",
12202
- template: "\n <div\n *ngIf=\"type == 'WKF_NO_EDIT'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n <button\n mat-flat-button\n color=\"warn\"\n mat-button\n fxHide\n fxShow.gt-sm\n [matMenuTriggerFor]=\"gest_menu\"\n *ngIf=\"\n toolbar_wkfapp?.is_Supervisor ||\n toolbar_wkfapp?.is_Admin ||\n toolbar_wkfapp?.is_PowerUser\n \"\n >\n <mat-icon>label_important</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"Gestione\" | translate\n }}\n </button>\n <mat-menu #gest_menu=\"matMenu\">\n <button\n mat-menu-item\n style=\"background-color: #F5F5F5\"\n (click)=\"annulla_richiesta()\"\n >\n {{ \"ANNULLA DOCUMENTO\" | translate }}\n </button>\n <button\n mat-menu-item\n style=\"background-color: #F5F5F5\"\n (click)=\"recupera_richiesta()\"\n >\n {{ \"RECUPERA DOCUMENTO\" | translate }}\n </button>\n <button\n mat-menu-item\n style=\"background-color: #F5F5F5\"\n (click)=\"riassegna_richiesta()\"\n *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin\"\n >\n {{ \"RIASSEGNA DOCUMENTO\" | translate }}\n </button>\n <button\n mat-menu-item\n style=\"background-color: #F5F5F5\"\n (click)=\"sostituisci_utente()\"\n *ngIf=\"toolbar_wkfapp?.is_Admin\"\n >\n {{ \"SOSTITUISCI UTENTE\" | translate }}\n </button>\n\n <button\n mat-menu-item\n style=\"background-color: #F5F5F5\"\n (click)=\"test_utente()\"\n *ngIf=\"toolbar_wkfapp?.is_Admin\"\n >\n {{ \"TEST UTENTE\" | translate }}\n </button>\n </mat-menu>\n <button\n mat-flat-button\n (click)=\"annulla_imp()\"\n *ngIf=\"toolbar_wkfapp?.imp != ''\"\n >\n {{ toolbar_wkfapp?.imp }}\n </button>\n <div *ngFor=\"let app of custom_commands\">\n <div *ngIf=\"app.type == 'button' || app.type == null\">\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n <FHCheckBox\n\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\"></div>\n <div *ngIf=\"app.type == 'table_manager'\">\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div\n *ngIf=\"type == 'WKF'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n <button mat-flat-button (click)=\"help_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_help\">\n <mat-icon>help</mat-icon>&nbsp;&nbsp;&nbsp;{{\n help_label | translate\n }}\n </button>\n <div style=\"width:200px\" fxHide fxShow.gt-sm *ngIf=\"show_link || show_help\"></div>\n <table><tr><td style=\"width:130px\">\n <button\n mat-flat-button\n (click)=\"insert_doc()\"\n *ngIf=\"toolbar_wkfapp?.is_Ins\"\n color=\"accent\"\n style=\"width:130px\"\n >\n <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"INSERISCI\" | translate\n }}</button\n >\n </td><td style=\"width:130px\">\n <button\n mat-flat-button\n color=\"warn\"\n mat-button style=\"width:130px\"\n fxHide\n fxShow.gt-sm\n [matMenuTriggerFor]=\"gest_menu\"\n *ngIf=\"toolbar_wkfapp?.is_Supervisor\"\n >\n {{ \"Gestione\" | translate }}\n </button>\n </td></tr></table>\n <mat-menu #gest_menu=\"matMenu\">\n <button mat-menu-item (click)=\"annulla_richiesta()\">\n {{ \"ANNULLA DOCUMENTO\" | translate }}\n </button>\n <button mat-menu-item (click)=\"recupera_richiesta()\">\n {{ \"RECUPERA DOCUMENTO\" | translate }}\n </button>\n <button mat-menu-item (click)=\"riassegna_richiesta()\">\n {{ \"RIASSEGNA DOCUMENTO\" | translate }}\n </button>\n <button\n mat-menu-item\n (click)=\"sostituisci_utente()\"\n *ngIf=\"toolbar_wkfapp?.is_Admin\"\n >\n {{ \"SOSTITUISCI UTENTE\" | translate }}\n </button>\n\n <button\n mat-menu-item\n (click)=\"test_utente()\"\n *ngIf=\"toolbar_wkfapp?.is_Admin\"\n >\n {{ \"TEST UTENTE\" | translate }}\n </button>\n </mat-menu>\n <button\n mat-flat-button\n (click)=\"annulla_imp()\"\n *ngIf=\"toolbar_wkfapp?.imp != null && toolbar_wkfapp?.imp != ''\"\n >\n {{ toolbar_wkfapp?.imp }}\n </button>\n <div *ngFor=\"let app of custom_commands\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"10px\">\n\n <div *ngIf=\"app.type == 'button' || app.type == null\">\n\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n\n <FHCheckBox\n\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\">\n\n </div>\n <div *ngIf=\"app.type == 'table_manager'\">\n\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div\n *ngIf=\"type == 'INSERT_DELETE' || type == 'INSERT'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"5px\" fxLayoutAlign=\"end center\">\n <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n <button mat-flat-button (click)=\"help_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_help\">\n <mat-icon>help</mat-icon>&nbsp;&nbsp;&nbsp;{{\n help_label | translate\n }}\n </button>\n <div style=\"width:200px\" fxHide fxShow.gt-sm *ngIf=\"show_link || show_help\"></div>\n <button mat-flat-button (click)=\"new_doc()\" color=\"primary\">\n <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"INSERISCI\" | translate\n }}\n </button>\n\n <button\n *ngIf=\"type == 'INSERT_DELETE'\"\n mat-flat-button\n (click)=\"del_doc()\"\n color=\"warn\"\n >\n <mat-icon>delete</mat-icon>&nbsp;&nbsp;&nbsp;\n {{elimina_label | translate}}\n\n </button>\n <div *ngFor=\"let app of custom_commands\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div *ngIf=\"app.type == 'button' || app.type == null\">\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;&nbsp;&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n <FHCheckBox\n\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\"></div>\n <div *ngIf=\"app.type == 'table_manager'\">\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div\n *ngIf=\"type == 'CUSTOM'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n > <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n <div *ngFor=\"let app of custom_commands\" fxLayoutAlign=\"end center\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div *ngIf=\"app.type == 'button' || app.type == null\">\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;&nbsp;&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n <FHCheckBox\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\"></div>\n <div *ngIf=\"app.type == 'table_manager'\">\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"type == 'NONE' && show_link\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n\n <button mat-flat-button (click)=\"help_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_help\">\n <mat-icon>help</mat-icon>&nbsp;&nbsp;&nbsp;{{\n help_label | translate\n }}\n </button>\n </div>\n ",
12206
+ template: "\n <div\n *ngIf=\"type == 'WKF_NO_EDIT'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n <button\n mat-flat-button\n color=\"warn\"\n mat-button\n fxHide\n fxShow.gt-sm\n [matMenuTriggerFor]=\"gest_menu\"\n *ngIf=\"\n toolbar_wkfapp?.is_Supervisor ||\n toolbar_wkfapp?.is_Admin ||\n toolbar_wkfapp?.is_PowerUser\n \"\n >\n <mat-icon>label_important</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"Gestione\" | translate\n }}\n </button>\n <mat-menu #gest_menu=\"matMenu\">\n <button [hidden]=\"sRow==null\"\n mat-menu-item\n style=\"background-color: #F5F5F5\"\n (click)=\"annulla_richiesta()\"\n >\n {{ \"ANNULLA DOCUMENTO\" | translate }}\n </button>\n <button\n mat-menu-item\n style=\"background-color: #F5F5F5\"\n (click)=\"recupera_richiesta()\"\n >\n {{ \"RECUPERA DOCUMENTO\" | translate }}\n </button>\n <button [hidden]=\"sRow==null\"\n mat-menu-item\n style=\"background-color: #F5F5F5\"\n (click)=\"riassegna_richiesta()\"\n *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin\"\n >\n {{ \"RIASSEGNA DOCUMENTO\" | translate }}\n </button>\n <button\n mat-menu-item [hidden]=\"sRow==null\"\n style=\"background-color: #F5F5F5\"\n (click)=\"sostituisci_utente()\"\n *ngIf=\"toolbar_wkfapp?.is_Admin\"\n >\n {{ \"SOSTITUISCI UTENTE\" | translate }}\n </button>\n <button\n mat-menu-item [hidden]=\"sRow==null || sRow?.stato<=10\"\n style=\"background-color: #F5F5F5\"\n (click)=\"reclama_bozza()\"\n *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin\"\n >\n {{ \"RECLAMA BOZZA\" | translate }}\n </button>\n <button\n mat-menu-item\n style=\"background-color: #F5F5F5\"\n (click)=\"test_utente()\"\n *ngIf=\"toolbar_wkfapp?.is_Admin\"\n >\n {{ \"TEST UTENTE\" | translate }}\n </button>\n </mat-menu>\n <button\n mat-flat-button\n (click)=\"annulla_imp()\"\n *ngIf=\"toolbar_wkfapp?.imp != ''\"\n >\n {{ toolbar_wkfapp?.imp }}\n </button>\n <div *ngFor=\"let app of custom_commands\">\n <div *ngIf=\"app.type == 'button' || app.type == null\">\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n <FHCheckBox\n\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\"></div>\n <div *ngIf=\"app.type == 'table_manager'\">\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div\n *ngIf=\"type == 'WKF'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n <button mat-flat-button (click)=\"help_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_help\">\n <mat-icon>help</mat-icon>&nbsp;&nbsp;&nbsp;{{\n help_label | translate\n }}\n </button>\n <div style=\"width:200px\" fxHide fxShow.gt-sm *ngIf=\"show_link || show_help\"></div>\n <table><tr><td style=\"width:130px\">\n <button\n mat-flat-button\n (click)=\"insert_doc()\"\n *ngIf=\"toolbar_wkfapp?.is_Ins\"\n color=\"accent\"\n style=\"width:130px\"\n >\n <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"INSERISCI\" | translate\n }}</button\n >\n </td><td style=\"width:130px\">\n <button\n mat-flat-button\n color=\"warn\"\n mat-button style=\"width:130px\"\n fxHide\n fxShow.gt-sm\n [matMenuTriggerFor]=\"gest_menu\"\n *ngIf=\"toolbar_wkfapp?.is_Supervisor\"\n >\n {{ \"Gestione\" | translate }}\n </button>\n </td></tr></table>\n <mat-menu #gest_menu=\"matMenu\">\n <button mat-menu-item [hidden]=\"sRow==null\" (click)=\"annulla_richiesta()\">\n {{ \"ANNULLA DOCUMENTO\" | translate }}\n </button>\n <button mat-menu-item (click)=\"recupera_richiesta()\">\n {{ \"RECUPERA DOCUMENTO\" | translate }}\n </button>\n <button mat-menu-item [hidden]=\"sRow==null\" (click)=\"riassegna_richiesta()\">\n {{ \"RIASSEGNA DOCUMENTO\" | translate }}\n </button>\n <button\n mat-menu-item [hidden]=\"sRow==null\"\n (click)=\"sostituisci_utente()\"\n *ngIf=\"toolbar_wkfapp?.is_Admin\"\n >\n {{ \"SOSTITUISCI UTENTE\" | translate }}\n </button>\n <button\n mat-menu-item [hidden]=\"sRow==null || sRow?.stato<=10\"\n style=\"background-color: #F5F5F5\"\n (click)=\"reclama_bozza()\"\n *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin\"\n >\n {{ \"RECLAMA BOZZA\" | translate }}\n </button>\n <button\n mat-menu-item\n (click)=\"test_utente()\"\n *ngIf=\"toolbar_wkfapp?.is_Admin\"\n >\n {{ \"TEST UTENTE\" | translate }}\n </button>\n </mat-menu>\n <button\n mat-flat-button\n (click)=\"annulla_imp()\"\n *ngIf=\"toolbar_wkfapp?.imp != null && toolbar_wkfapp?.imp != ''\"\n >\n {{ toolbar_wkfapp?.imp }}\n </button>\n <div *ngFor=\"let app of custom_commands\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"10px\">\n\n <div *ngIf=\"app.type == 'button' || app.type == null\">\n\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n\n <FHCheckBox\n\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\">\n\n </div>\n <div *ngIf=\"app.type == 'table_manager'\">\n\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div\n *ngIf=\"type == 'INSERT_DELETE' || type == 'INSERT'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"5px\" fxLayoutAlign=\"end center\">\n <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n <button mat-flat-button (click)=\"help_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_help\">\n <mat-icon>help</mat-icon>&nbsp;&nbsp;&nbsp;{{\n help_label | translate\n }}\n </button>\n <div style=\"width:200px\" fxHide fxShow.gt-sm *ngIf=\"show_link || show_help\"></div>\n <button mat-flat-button (click)=\"new_doc()\" color=\"primary\">\n <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"INSERISCI\" | translate\n }}\n </button>\n\n <button\n *ngIf=\"type == 'INSERT_DELETE'\"\n mat-flat-button\n (click)=\"del_doc()\"\n color=\"warn\"\n >\n <mat-icon>delete</mat-icon>&nbsp;&nbsp;&nbsp;\n {{elimina_label | translate}}\n\n </button>\n <div *ngFor=\"let app of custom_commands\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div *ngIf=\"app.type == 'button' || app.type == null\">\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;&nbsp;&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n <FHCheckBox\n\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\"></div>\n <div *ngIf=\"app.type == 'table_manager'\">\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div\n *ngIf=\"type == 'CUSTOM'\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n > <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n <div *ngFor=\"let app of custom_commands\" fxLayoutAlign=\"end center\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div *ngIf=\"app.type == 'button' || app.type == null\">\n <button [hidden]=\"app.hidden!=null && app.hidden\"\n\n mat-flat-button\n [color]=\"app.color\"\n (click)=\"exec_command(app.command)\"\n >\n <mat-icon *ngIf=\"app.icon != null\">{{ app.icon }}</mat-icon\n >&nbsp;&nbsp;&nbsp;{{ app.label | translate }}\n </button>\n </div>\n <div *ngIf=\"app.type == 'checkbox'\" style=\"font-size:12px\">\n <FHCheckBox\n (change)=\"selx(app.command, $event)\"\n [label]=\"app.label | translate\"\n [(ngModel)]=\"app.default_value\"\n ></FHCheckBox>\n </div>\n <div *ngIf=\"app.type == 'spacer'\" style=\"width:60px\"></div>\n <div *ngIf=\"app.type == 'table_manager'\">\n <FHTableManager [application]=\"app.default_value\"></FHTableManager>\n </div>\n </div>\n </div>\n <div\n *ngIf=\"type == 'NONE' && show_link\"\n fxLayoutGap=\"3px\"\n fxLayout=\"row\"\n fxFlex=\"100\"\n style=\"height: 70px;\"\n fxLayoutAlign=\"end center\"\n >\n <button mat-flat-button (click)=\"link_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_link\">\n <mat-icon>launch</mat-icon>&nbsp;&nbsp;&nbsp;{{\n \"LINK\" | translate\n }}\n </button>\n\n <button mat-flat-button (click)=\"help_doc()\" style=\"background-color: #2B7CD3;color:#FFFFFF\" *ngIf=\"show_help\">\n <mat-icon>help</mat-icon>&nbsp;&nbsp;&nbsp;{{\n help_label | translate\n }}\n </button>\n </div>\n ",
12203
12207
  styles: ["\n\n "]
12204
12208
  },] }
12205
12209
  ];
@@ -12211,6 +12215,7 @@
12211
12215
  type: [{ type: i0.Input }],
12212
12216
  toolbar_wkfapp: [{ type: i0.Input }],
12213
12217
  custom_commands: [{ type: i0.Input }],
12218
+ sRow: [{ type: i0.Input }],
12214
12219
  command: [{ type: i0.Output }]
12215
12220
  };
12216
12221
 
@@ -16354,6 +16359,8 @@
16354
16359
  this.riassegna_richiesta();
16355
16360
  if (o.cmd == "sostituisci_utente")
16356
16361
  this.sostituisci_utente();
16362
+ if (o.cmd == "reclama_bozza")
16363
+ this.reclama_bozza();
16357
16364
  if (o.cmd == "annulla_imp")
16358
16365
  this.annulla_imp();
16359
16366
  if (o.cmd == "test_utente")
@@ -16389,6 +16396,50 @@
16389
16396
  }
16390
16397
  });
16391
16398
  };
16399
+ wkfapp.prototype.reclama_bozza = function () {
16400
+ var _this = this;
16401
+ if (this.get_grid().sRow == null) {
16402
+ this._toastr.error("Selezionare il documento");
16403
+ return;
16404
+ }
16405
+ var p = new QParam();
16406
+ p.sql = "SELECT_WKF_SELECT_USER_MIN";
16407
+ p.types = ["string", "string"];
16408
+ p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
16409
+ this.m_dataService.doQuery(p).subscribe(function (data) {
16410
+ var b_found = false;
16411
+ var livello = 0;
16412
+ var descri_livello = '';
16413
+ for (var i = 0; i < data.result_data.length; i++) {
16414
+ if (data.result_data[i].idp == _this.app_s.user) {
16415
+ livello = data.result_data[i].livello;
16416
+ descri_livello = data.result_data[i].descri_livello;
16417
+ b_found = true;
16418
+ break;
16419
+ }
16420
+ }
16421
+ if (b_found) {
16422
+ if (livello != _this.get_grid().sRow.stato) {
16423
+ _this._toastr.error('Il documento non è in stato Bozza');
16424
+ return;
16425
+ }
16426
+ var p_1 = new QParam();
16427
+ p_1.sql = "UPDATE_WKF_STATO_BOZZA";
16428
+ p_1.types = ["string", "string", "int", 'string'];
16429
+ p_1.values = [_this.id_applicativo, _this.get_grid().sRow.uiid, livello, descri_livello];
16430
+ _this.m_dataService.doQuery(p_1).subscribe(function (data) {
16431
+ if (data != null)
16432
+ if (data.result_msg == "OK") {
16433
+ _this._toastr.info('Documento aggiornato');
16434
+ _this.get_grid().doFill("");
16435
+ }
16436
+ });
16437
+ }
16438
+ else {
16439
+ _this._toastr.error('L\'utente non è configurato per lo step BOZZA');
16440
+ }
16441
+ });
16442
+ };
16392
16443
  wkfapp.prototype.recupera_richiesta = function () {
16393
16444
  var _this = this;
16394
16445
  var dialogRef = this.dialog.open(win_recupera_doc, { disableClose: true });
@@ -16410,7 +16461,6 @@
16410
16461
  p.sql = "SELECT_USERS_BY_WKF_DOC";
16411
16462
  p.types = ["string", "string"];
16412
16463
  p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
16413
- var ok_op = false;
16414
16464
  this.m_dataService.doQuery(p).subscribe(function (data) {
16415
16465
  if (data != null)
16416
16466
  if (data.result_msg == "OK") {
@@ -16430,16 +16480,16 @@
16430
16480
  if (result != null)
16431
16481
  if (result.result != null)
16432
16482
  if (result.result == "ok") {
16433
- var p_1 = new QParam();
16434
- p_1.sql = "UPDATE_USER_WORKFLOW";
16435
- p_1.types = ["string", "string", "string", "string"];
16436
- p_1.values = [
16483
+ var p_2 = new QParam();
16484
+ p_2.sql = "UPDATE_USER_WORKFLOW";
16485
+ p_2.types = ["string", "string", "string", "string"];
16486
+ p_2.values = [
16437
16487
  _this.id_applicativo,
16438
16488
  _this.get_grid().sRow.uiid,
16439
16489
  result.u1,
16440
16490
  result.u2,
16441
16491
  ];
16442
- _this.m_dataService.doQuery(p_1).subscribe(function (data) {
16492
+ _this.m_dataService.doQuery(p_2).subscribe(function (data) {
16443
16493
  if (data != null)
16444
16494
  if (data.result_msg == "OK") {
16445
16495
  _this._toastr.info("Workflow Aggiornato");
@@ -16765,11 +16815,11 @@
16765
16815
  if (result != null)
16766
16816
  if (result.result != null)
16767
16817
  if (result.result == "ok") {
16768
- var p_2 = new QParam();
16769
- p_2.sql = "SELECT_USER_INFO_WKF";
16770
- p_2.types = ["string"];
16771
- p_2.values = [result.arrsel[0].username];
16772
- _this.m_dataService.doQuery(p_2).subscribe(function (data) {
16818
+ var p_3 = new QParam();
16819
+ p_3.sql = "SELECT_USER_INFO_WKF";
16820
+ p_3.types = ["string"];
16821
+ p_3.values = [result.arrsel[0].username];
16822
+ _this.m_dataService.doQuery(p_3).subscribe(function (data) {
16773
16823
  if (data != null)
16774
16824
  if (data.result_msg == "OK") {
16775
16825
  _this.app_s.user_name_ori = _this.app_s.user_name;
@@ -16918,11 +16968,11 @@
16918
16968
  _this.user_cognome = _this.app_s.user_surname;
16919
16969
  _this.user_email = _this.app_s.user_email;
16920
16970
  _this.m_uti.set_home_title(_this.att_panelcat);
16921
- var p_3 = new QParam();
16922
- p_3.sql = "SELECT_UTENTE_WKF_ADMIN";
16923
- p_3.types = ["string", "string"];
16924
- p_3.values = [_this.id_applicativo, _this.app_s.user];
16925
- _this.m_dataService.doQuery(p_3).subscribe(function (data) {
16971
+ var p_4 = new QParam();
16972
+ p_4.sql = "SELECT_UTENTE_WKF_ADMIN";
16973
+ p_4.types = ["string", "string"];
16974
+ p_4.values = [_this.id_applicativo, _this.app_s.user];
16975
+ _this.m_dataService.doQuery(p_4).subscribe(function (data) {
16926
16976
  if (data != null)
16927
16977
  if (data.result_msg == "OK") {
16928
16978
  var a = data.result_data;
@@ -16939,19 +16989,19 @@
16939
16989
  if (a[0].tipo == "2")
16940
16990
  _this.is_PowerUser = true;
16941
16991
  }
16942
- var p_4 = new QParam();
16943
- p_4.sql = "SELECT_WLIVELLIV2";
16944
- p_4.types = ["string", "string"];
16945
- p_4.values = [_this.id_applicativo, ""];
16946
- _this.m_dataService.doQuery(p_4).subscribe(function (data) {
16992
+ var p_5 = new QParam();
16993
+ p_5.sql = "SELECT_WLIVELLIV2";
16994
+ p_5.types = ["string", "string"];
16995
+ p_5.values = [_this.id_applicativo, ""];
16996
+ _this.m_dataService.doQuery(p_5).subscribe(function (data) {
16947
16997
  if (data != null)
16948
16998
  if (data.result_msg == "OK") {
16949
16999
  _this.ok_conf_s(data.result_data);
16950
- var p_5 = new QParam();
16951
- p_5.sql = "SELECT_ROLES_VISORI";
16952
- p_5.types = ["string"];
16953
- p_5.values = [_this.id_applicativo];
16954
- _this.m_dataService.doQuery(p_5).subscribe(function (data) {
17000
+ var p_6 = new QParam();
17001
+ p_6.sql = "SELECT_ROLES_VISORI";
17002
+ p_6.types = ["string"];
17003
+ p_6.values = [_this.id_applicativo];
17004
+ _this.m_dataService.doQuery(p_6).subscribe(function (data) {
16955
17005
  if (data != null)
16956
17006
  if (data.result_msg == "OK") {
16957
17007
  _this.is_Visor = false;
@@ -18980,6 +19030,8 @@
18980
19030
  this.test_utente();
18981
19031
  if (o.cmd == "insert_doc")
18982
19032
  this.insert_doc();
19033
+ if (o.cmd == "reclama_bozza")
19034
+ this.reclama_bozza();
18983
19035
  };
18984
19036
  wkfapp_v2.prototype.annulla_richiesta = function () {
18985
19037
  var _this = this;
@@ -19020,6 +19072,50 @@
19020
19072
  _this.get_grid().doFill("");
19021
19073
  });
19022
19074
  };
19075
+ wkfapp_v2.prototype.reclama_bozza = function () {
19076
+ var _this = this;
19077
+ if (this.get_grid().sRow == null) {
19078
+ this._toastr.error("Selezionare il documento");
19079
+ return;
19080
+ }
19081
+ var p = new QParam();
19082
+ p.sql = "SELECT_WKF2_SELECT_USER_MIN";
19083
+ p.types = ["string", "string"];
19084
+ p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
19085
+ this.m_dataService.doQuery(p).subscribe(function (data) {
19086
+ var b_found = false;
19087
+ var livello = 0;
19088
+ var descri_livello = '';
19089
+ for (var i = 0; i < data.result_data.length; i++) {
19090
+ if (data.result_data[i].username == _this.app_s.user) {
19091
+ livello = data.result_data[i].step;
19092
+ descri_livello = data.result_data[i].des_step;
19093
+ b_found = true;
19094
+ break;
19095
+ }
19096
+ }
19097
+ if (b_found) {
19098
+ if (livello != _this.get_grid().sRow.stato) {
19099
+ _this._toastr.error('Il documento non è in stato Bozza');
19100
+ return;
19101
+ }
19102
+ var p_1 = new QParam();
19103
+ p_1.sql = "UPDATE_WKF_STATO_BOZZA";
19104
+ p_1.types = ["string", "string", "int", 'string'];
19105
+ p_1.values = [_this.id_applicativo, _this.get_grid().sRow.uiid, livello, descri_livello];
19106
+ _this.m_dataService.doQuery(p_1).subscribe(function (data) {
19107
+ if (data != null)
19108
+ if (data.result_msg == "OK") {
19109
+ _this._toastr.info('Documento aggiornato');
19110
+ _this.get_grid().doFill("");
19111
+ }
19112
+ });
19113
+ }
19114
+ else {
19115
+ _this._toastr.error('L\'utente non è configurato per lo step BOZZA');
19116
+ }
19117
+ });
19118
+ };
19023
19119
  wkfapp_v2.prototype.sostituisci_utente = function () {
19024
19120
  var _this = this;
19025
19121
  if (this.get_grid().sRow == null) {
@@ -19050,16 +19146,16 @@
19050
19146
  if (result != null)
19051
19147
  if (result.result != null)
19052
19148
  if (result.result == "ok") {
19053
- var p_1 = new QParam();
19054
- p_1.sql = "UPDATE_USER_WORKFLOW";
19055
- p_1.types = ["string", "string", "string", "string"];
19056
- p_1.values = [
19149
+ var p_2 = new QParam();
19150
+ p_2.sql = "UPDATE_USER_WORKFLOW";
19151
+ p_2.types = ["string", "string", "string", "string"];
19152
+ p_2.values = [
19057
19153
  _this.id_applicativo,
19058
19154
  _this.get_grid().sRow.uiid,
19059
19155
  result.u1,
19060
19156
  result.u2,
19061
19157
  ];
19062
- _this.m_dataService.doQuery(p_1).subscribe(function (data) {
19158
+ _this.m_dataService.doQuery(p_2).subscribe(function (data) {
19063
19159
  if (data != null)
19064
19160
  if (data.result_msg == "OK") {
19065
19161
  _this._toastr.info("Workflow Aggiornato");
@@ -19426,11 +19522,11 @@
19426
19522
  if (result != null)
19427
19523
  if (result.result != null)
19428
19524
  if (result.result == "ok") {
19429
- var p_2 = new QParam();
19430
- p_2.sql = "SELECT_USER_INFO_WKF";
19431
- p_2.types = ["string"];
19432
- p_2.values = [result.arrsel[0].username];
19433
- _this.m_dataService.doQuery(p_2).subscribe(function (data) {
19525
+ var p_3 = new QParam();
19526
+ p_3.sql = "SELECT_USER_INFO_WKF";
19527
+ p_3.types = ["string"];
19528
+ p_3.values = [result.arrsel[0].username];
19529
+ _this.m_dataService.doQuery(p_3).subscribe(function (data) {
19434
19530
  if (data != null)
19435
19531
  if (data.result_msg == "OK") {
19436
19532
  _this.app_s.user_name_ori = _this.app_s.user_name;
@@ -19578,11 +19674,11 @@
19578
19674
  _this.user_cognome = _this.app_s.user_surname;
19579
19675
  _this.user_email = _this.app_s.user_email;
19580
19676
  _this.m_uti.set_home_title(_this.att_panelcat);
19581
- var p_3 = new QParam();
19582
- p_3.sql = "SELECT_UTENTE_WKF_ADMIN";
19583
- p_3.types = ["string", "string"];
19584
- p_3.values = [_this.id_applicativo, _this.app_s.user];
19585
- _this.m_dataService.doQuery(p_3).subscribe(function (data) {
19677
+ var p_4 = new QParam();
19678
+ p_4.sql = "SELECT_UTENTE_WKF_ADMIN";
19679
+ p_4.types = ["string", "string"];
19680
+ p_4.values = [_this.id_applicativo, _this.app_s.user];
19681
+ _this.m_dataService.doQuery(p_4).subscribe(function (data) {
19586
19682
  if (data != null)
19587
19683
  if (data.result_msg == "OK") {
19588
19684
  var a = data.result_data;
@@ -19599,19 +19695,19 @@
19599
19695
  if (a[0].tipo == "2")
19600
19696
  _this.is_PowerUser = true;
19601
19697
  }
19602
- var p_4 = new QParam();
19603
- p_4.sql = "SELECT_WLIVELLIV2_2";
19604
- p_4.types = ["string"];
19605
- p_4.values = [_this.id_applicativo];
19606
- _this.m_dataService.doQuery(p_4).subscribe(function (data) {
19698
+ var p_5 = new QParam();
19699
+ p_5.sql = "SELECT_WLIVELLIV2_2";
19700
+ p_5.types = ["string"];
19701
+ p_5.values = [_this.id_applicativo];
19702
+ _this.m_dataService.doQuery(p_5).subscribe(function (data) {
19607
19703
  if (data != null)
19608
19704
  if (data.result_msg == "OK") {
19609
19705
  _this.ok_conf_s(data.result_data);
19610
- var p_5 = new QParam();
19611
- p_5.sql = "SELECT_ROLES_VISORI";
19612
- p_5.types = ["string"];
19613
- p_5.values = [_this.id_applicativo];
19614
- _this.m_dataService.doQuery(p_5).subscribe(function (data) {
19706
+ var p_6 = new QParam();
19707
+ p_6.sql = "SELECT_ROLES_VISORI";
19708
+ p_6.types = ["string"];
19709
+ p_6.values = [_this.id_applicativo];
19710
+ _this.m_dataService.doQuery(p_6).subscribe(function (data) {
19615
19711
  if (data != null)
19616
19712
  if (data.result_msg == "OK") {
19617
19713
  _this.is_Visor = false;