@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.
@@ -12201,7 +12201,7 @@
12201
12201
  FHGridToolBarComponent.decorators = [
12202
12202
  { type: i0.Component, args: [{
12203
12203
  selector: "FHGridToolBar",
12204
- template: "\n SROW: {{sRow | json}}\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 ",
12204
+ template: "\n\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\"\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\"\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 ",
12205
12205
  styles: ["\n\n "]
12206
12206
  },] }
12207
12207
  ];
@@ -16405,42 +16405,49 @@
16405
16405
  });
16406
16406
  dialogRef.afterClosed().subscribe(function (result) {
16407
16407
  if (result) {
16408
- var p = new QParam();
16409
- p.sql = "SELECT_WKF_SELECT_USER_MIN";
16410
- p.types = ["string", "string"];
16411
- p.values = [_this.id_applicativo, _this.get_grid().sRow.uiid];
16412
- _this.m_dataService.doQuery(p).subscribe(function (data) {
16413
- var b_found = false;
16414
- var livello = 0;
16415
- var descri_livello = '';
16416
- for (var i = 0; i < data.result_data.length; i++) {
16417
- if (data.result_data[i].idp == _this.app_s.user) {
16418
- livello = data.result_data[i].livello;
16419
- descri_livello = data.result_data[i].descri_livello;
16420
- b_found = true;
16421
- break;
16408
+ var p_1 = new QParam();
16409
+ p_1.sql = "SELECT_DOCUMENTS_BY_UIID";
16410
+ p_1.types = ["string", "string"];
16411
+ p_1.values = [_this.id_applicativo, _this.get_grid().sRow.uiid];
16412
+ _this.m_dataService.doQuery(p_1).subscribe(function (data) {
16413
+ var stato_doc = data.result_data[0].stato;
16414
+ p_1 = new QParam();
16415
+ p_1.sql = "SELECT_WKF_SELECT_USER_MIN";
16416
+ p_1.types = ["string", "string"];
16417
+ p_1.values = [_this.id_applicativo, _this.get_grid().sRow.uiid];
16418
+ _this.m_dataService.doQuery(p_1).subscribe(function (data) {
16419
+ var b_found = false;
16420
+ var livello = 0;
16421
+ var descri_livello = '';
16422
+ for (var i = 0; i < data.result_data.length; i++) {
16423
+ if (data.result_data[i].idp == _this.app_s.user) {
16424
+ livello = data.result_data[i].livello;
16425
+ descri_livello = data.result_data[i].descri_livello;
16426
+ b_found = true;
16427
+ break;
16428
+ }
16422
16429
  }
16423
- }
16424
- if (b_found) {
16425
- if (livello != _this.get_grid().sRow.stato) {
16426
- _this._toastr.error('Il documento non è in stato Bozza');
16427
- return;
16430
+ if (b_found) {
16431
+ if (livello != stato_doc) {
16432
+ _this._toastr.error('Il documento non è in stato Bozza');
16433
+ return;
16434
+ }
16435
+ var p_2 = new QParam();
16436
+ p_2.sql = "UPDATE_WKF_STATO_BOZZA";
16437
+ p_2.types = ["string", "string", "int", 'string'];
16438
+ p_2.values = [_this.id_applicativo, _this.get_grid().sRow.uiid, livello, descri_livello];
16439
+ _this.m_dataService.doQuery(p_2).subscribe(function (data) {
16440
+ if (data != null)
16441
+ if (data.result_msg == "OK") {
16442
+ _this._toastr.info('Documento aggiornato');
16443
+ _this.get_grid().doFill("");
16444
+ }
16445
+ });
16428
16446
  }
16429
- var p_1 = new QParam();
16430
- p_1.sql = "UPDATE_WKF_STATO_BOZZA";
16431
- p_1.types = ["string", "string", "int", 'string'];
16432
- p_1.values = [_this.id_applicativo, _this.get_grid().sRow.uiid, livello, descri_livello];
16433
- _this.m_dataService.doQuery(p_1).subscribe(function (data) {
16434
- if (data != null)
16435
- if (data.result_msg == "OK") {
16436
- _this._toastr.info('Documento aggiornato');
16437
- _this.get_grid().doFill("");
16438
- }
16439
- });
16440
- }
16441
- else {
16442
- _this._toastr.error('L\'utente non è configurato per lo step BOZZA');
16443
- }
16447
+ else {
16448
+ _this._toastr.error('L\'utente non è configurato per lo step BOZZA');
16449
+ }
16450
+ });
16444
16451
  });
16445
16452
  }
16446
16453
  });
@@ -16485,16 +16492,16 @@
16485
16492
  if (result != null)
16486
16493
  if (result.result != null)
16487
16494
  if (result.result == "ok") {
16488
- var p_2 = new QParam();
16489
- p_2.sql = "UPDATE_USER_WORKFLOW";
16490
- p_2.types = ["string", "string", "string", "string"];
16491
- p_2.values = [
16495
+ var p_3 = new QParam();
16496
+ p_3.sql = "UPDATE_USER_WORKFLOW";
16497
+ p_3.types = ["string", "string", "string", "string"];
16498
+ p_3.values = [
16492
16499
  _this.id_applicativo,
16493
16500
  _this.get_grid().sRow.uiid,
16494
16501
  result.u1,
16495
16502
  result.u2,
16496
16503
  ];
16497
- _this.m_dataService.doQuery(p_2).subscribe(function (data) {
16504
+ _this.m_dataService.doQuery(p_3).subscribe(function (data) {
16498
16505
  if (data != null)
16499
16506
  if (data.result_msg == "OK") {
16500
16507
  _this._toastr.info("Workflow Aggiornato");
@@ -16820,11 +16827,11 @@
16820
16827
  if (result != null)
16821
16828
  if (result.result != null)
16822
16829
  if (result.result == "ok") {
16823
- var p_3 = new QParam();
16824
- p_3.sql = "SELECT_USER_INFO_WKF";
16825
- p_3.types = ["string"];
16826
- p_3.values = [result.arrsel[0].username];
16827
- _this.m_dataService.doQuery(p_3).subscribe(function (data) {
16830
+ var p_4 = new QParam();
16831
+ p_4.sql = "SELECT_USER_INFO_WKF";
16832
+ p_4.types = ["string"];
16833
+ p_4.values = [result.arrsel[0].username];
16834
+ _this.m_dataService.doQuery(p_4).subscribe(function (data) {
16828
16835
  if (data != null)
16829
16836
  if (data.result_msg == "OK") {
16830
16837
  _this.app_s.user_name_ori = _this.app_s.user_name;
@@ -16973,11 +16980,11 @@
16973
16980
  _this.user_cognome = _this.app_s.user_surname;
16974
16981
  _this.user_email = _this.app_s.user_email;
16975
16982
  _this.m_uti.set_home_title(_this.att_panelcat);
16976
- var p_4 = new QParam();
16977
- p_4.sql = "SELECT_UTENTE_WKF_ADMIN";
16978
- p_4.types = ["string", "string"];
16979
- p_4.values = [_this.id_applicativo, _this.app_s.user];
16980
- _this.m_dataService.doQuery(p_4).subscribe(function (data) {
16983
+ var p_5 = new QParam();
16984
+ p_5.sql = "SELECT_UTENTE_WKF_ADMIN";
16985
+ p_5.types = ["string", "string"];
16986
+ p_5.values = [_this.id_applicativo, _this.app_s.user];
16987
+ _this.m_dataService.doQuery(p_5).subscribe(function (data) {
16981
16988
  if (data != null)
16982
16989
  if (data.result_msg == "OK") {
16983
16990
  var a = data.result_data;
@@ -16994,19 +17001,19 @@
16994
17001
  if (a[0].tipo == "2")
16995
17002
  _this.is_PowerUser = true;
16996
17003
  }
16997
- var p_5 = new QParam();
16998
- p_5.sql = "SELECT_WLIVELLIV2";
16999
- p_5.types = ["string", "string"];
17000
- p_5.values = [_this.id_applicativo, ""];
17001
- _this.m_dataService.doQuery(p_5).subscribe(function (data) {
17004
+ var p_6 = new QParam();
17005
+ p_6.sql = "SELECT_WLIVELLIV2";
17006
+ p_6.types = ["string", "string"];
17007
+ p_6.values = [_this.id_applicativo, ""];
17008
+ _this.m_dataService.doQuery(p_6).subscribe(function (data) {
17002
17009
  if (data != null)
17003
17010
  if (data.result_msg == "OK") {
17004
17011
  _this.ok_conf_s(data.result_data);
17005
- var p_6 = new QParam();
17006
- p_6.sql = "SELECT_ROLES_VISORI";
17007
- p_6.types = ["string"];
17008
- p_6.values = [_this.id_applicativo];
17009
- _this.m_dataService.doQuery(p_6).subscribe(function (data) {
17012
+ var p_7 = new QParam();
17013
+ p_7.sql = "SELECT_ROLES_VISORI";
17014
+ p_7.types = ["string"];
17015
+ p_7.values = [_this.id_applicativo];
17016
+ _this.m_dataService.doQuery(p_7).subscribe(function (data) {
17010
17017
  if (data != null)
17011
17018
  if (data.result_msg == "OK") {
17012
17019
  _this.is_Visor = false;
@@ -19088,42 +19095,50 @@
19088
19095
  });
19089
19096
  dialogRef.afterClosed().subscribe(function (result) {
19090
19097
  if (result) {
19091
- var p = new QParam();
19092
- p.sql = "SELECT_WKF2_SELECT_USER_MIN";
19093
- p.types = ["string", "string"];
19094
- p.values = [_this.id_applicativo, _this.get_grid().sRow.uiid];
19095
- _this.m_dataService.doQuery(p).subscribe(function (data) {
19096
- var b_found = false;
19097
- var livello = 0;
19098
- var descri_livello = '';
19099
- for (var i = 0; i < data.result_data.length; i++) {
19100
- if (data.result_data[i].username == _this.app_s.user) {
19101
- livello = data.result_data[i].step;
19102
- descri_livello = data.result_data[i].des_step;
19103
- b_found = true;
19104
- break;
19098
+ var p_1 = new QParam();
19099
+ p_1.sql = "SELECT_DOCUMENTS_BY_UIID";
19100
+ p_1.types = ["string", "string"];
19101
+ p_1.values = [_this.id_applicativo, _this.get_grid().sRow.uiid];
19102
+ _this.m_dataService.doQuery(p_1).subscribe(function (data) {
19103
+ var stato_doc = data.result_data[0].stato;
19104
+ p_1 = new QParam();
19105
+ p_1.sql = "SELECT_WKF2_SELECT_USER_MIN";
19106
+ p_1.types = ["string", "string"];
19107
+ p_1.values = [_this.id_applicativo, _this.get_grid().sRow.uiid];
19108
+ _this.m_dataService.doQuery(p_1).subscribe(function (data) {
19109
+ var b_found = false;
19110
+ var livello = 0;
19111
+ var descri_livello = '';
19112
+ for (var i = 0; i < data.result_data.length; i++) {
19113
+ if (data.result_data[i].username == _this.app_s.user) {
19114
+ livello = data.result_data[i].step;
19115
+ descri_livello = data.result_data[i].des_step;
19116
+ b_found = true;
19117
+ break;
19118
+ }
19105
19119
  }
19106
- }
19107
- if (b_found) {
19108
- if (livello != _this.get_grid().sRow.stato) {
19109
- _this._toastr.error('Il documento non è in stato Bozza');
19110
- return;
19120
+ if (b_found) {
19121
+ console.log(livello, stato_doc);
19122
+ if (livello != stato_doc) {
19123
+ _this._toastr.error('Il documento non è in stato Bozza');
19124
+ return;
19125
+ }
19126
+ var p_2 = new QParam();
19127
+ p_2.sql = "UPDATE_WKF_STATO_BOZZA";
19128
+ p_2.types = ["string", "string", "int", 'string'];
19129
+ p_2.values = [_this.id_applicativo, _this.get_grid().sRow.uiid, livello, descri_livello];
19130
+ _this.m_dataService.doQuery(p_2).subscribe(function (data) {
19131
+ if (data != null)
19132
+ if (data.result_msg == "OK") {
19133
+ _this._toastr.info('Documento aggiornato');
19134
+ _this.get_grid().doFill("");
19135
+ }
19136
+ });
19111
19137
  }
19112
- var p_1 = new QParam();
19113
- p_1.sql = "UPDATE_WKF_STATO_BOZZA";
19114
- p_1.types = ["string", "string", "int", 'string'];
19115
- p_1.values = [_this.id_applicativo, _this.get_grid().sRow.uiid, livello, descri_livello];
19116
- _this.m_dataService.doQuery(p_1).subscribe(function (data) {
19117
- if (data != null)
19118
- if (data.result_msg == "OK") {
19119
- _this._toastr.info('Documento aggiornato');
19120
- _this.get_grid().doFill("");
19121
- }
19122
- });
19123
- }
19124
- else {
19125
- _this._toastr.error('L\'utente non è configurato per lo step BOZZA');
19126
- }
19138
+ else {
19139
+ _this._toastr.error('L\'utente non è configurato per lo step BOZZA');
19140
+ }
19141
+ });
19127
19142
  });
19128
19143
  }
19129
19144
  });
@@ -19158,16 +19173,16 @@
19158
19173
  if (result != null)
19159
19174
  if (result.result != null)
19160
19175
  if (result.result == "ok") {
19161
- var p_2 = new QParam();
19162
- p_2.sql = "UPDATE_USER_WORKFLOW";
19163
- p_2.types = ["string", "string", "string", "string"];
19164
- p_2.values = [
19176
+ var p_3 = new QParam();
19177
+ p_3.sql = "UPDATE_USER_WORKFLOW";
19178
+ p_3.types = ["string", "string", "string", "string"];
19179
+ p_3.values = [
19165
19180
  _this.id_applicativo,
19166
19181
  _this.get_grid().sRow.uiid,
19167
19182
  result.u1,
19168
19183
  result.u2,
19169
19184
  ];
19170
- _this.m_dataService.doQuery(p_2).subscribe(function (data) {
19185
+ _this.m_dataService.doQuery(p_3).subscribe(function (data) {
19171
19186
  if (data != null)
19172
19187
  if (data.result_msg == "OK") {
19173
19188
  _this._toastr.info("Workflow Aggiornato");
@@ -19534,11 +19549,11 @@
19534
19549
  if (result != null)
19535
19550
  if (result.result != null)
19536
19551
  if (result.result == "ok") {
19537
- var p_3 = new QParam();
19538
- p_3.sql = "SELECT_USER_INFO_WKF";
19539
- p_3.types = ["string"];
19540
- p_3.values = [result.arrsel[0].username];
19541
- _this.m_dataService.doQuery(p_3).subscribe(function (data) {
19552
+ var p_4 = new QParam();
19553
+ p_4.sql = "SELECT_USER_INFO_WKF";
19554
+ p_4.types = ["string"];
19555
+ p_4.values = [result.arrsel[0].username];
19556
+ _this.m_dataService.doQuery(p_4).subscribe(function (data) {
19542
19557
  if (data != null)
19543
19558
  if (data.result_msg == "OK") {
19544
19559
  _this.app_s.user_name_ori = _this.app_s.user_name;
@@ -19686,11 +19701,11 @@
19686
19701
  _this.user_cognome = _this.app_s.user_surname;
19687
19702
  _this.user_email = _this.app_s.user_email;
19688
19703
  _this.m_uti.set_home_title(_this.att_panelcat);
19689
- var p_4 = new QParam();
19690
- p_4.sql = "SELECT_UTENTE_WKF_ADMIN";
19691
- p_4.types = ["string", "string"];
19692
- p_4.values = [_this.id_applicativo, _this.app_s.user];
19693
- _this.m_dataService.doQuery(p_4).subscribe(function (data) {
19704
+ var p_5 = new QParam();
19705
+ p_5.sql = "SELECT_UTENTE_WKF_ADMIN";
19706
+ p_5.types = ["string", "string"];
19707
+ p_5.values = [_this.id_applicativo, _this.app_s.user];
19708
+ _this.m_dataService.doQuery(p_5).subscribe(function (data) {
19694
19709
  if (data != null)
19695
19710
  if (data.result_msg == "OK") {
19696
19711
  var a = data.result_data;
@@ -19707,19 +19722,19 @@
19707
19722
  if (a[0].tipo == "2")
19708
19723
  _this.is_PowerUser = true;
19709
19724
  }
19710
- var p_5 = new QParam();
19711
- p_5.sql = "SELECT_WLIVELLIV2_2";
19712
- p_5.types = ["string"];
19713
- p_5.values = [_this.id_applicativo];
19714
- _this.m_dataService.doQuery(p_5).subscribe(function (data) {
19725
+ var p_6 = new QParam();
19726
+ p_6.sql = "SELECT_WLIVELLIV2_2";
19727
+ p_6.types = ["string"];
19728
+ p_6.values = [_this.id_applicativo];
19729
+ _this.m_dataService.doQuery(p_6).subscribe(function (data) {
19715
19730
  if (data != null)
19716
19731
  if (data.result_msg == "OK") {
19717
19732
  _this.ok_conf_s(data.result_data);
19718
- var p_6 = new QParam();
19719
- p_6.sql = "SELECT_ROLES_VISORI";
19720
- p_6.types = ["string"];
19721
- p_6.values = [_this.id_applicativo];
19722
- _this.m_dataService.doQuery(p_6).subscribe(function (data) {
19733
+ var p_7 = new QParam();
19734
+ p_7.sql = "SELECT_ROLES_VISORI";
19735
+ p_7.types = ["string"];
19736
+ p_7.values = [_this.id_applicativo];
19737
+ _this.m_dataService.doQuery(p_7).subscribe(function (data) {
19723
19738
  if (data != null)
19724
19739
  if (data.result_msg == "OK") {
19725
19740
  _this.is_Visor = false;