@fluxhub/fluxhub-lib 10.0.437 → 10.0.438
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/fluxhub-fluxhub-lib.umd.js +134 -119
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhgrid_toolbar.js +4 -4
- package/esm2015/lib/wkf_engine/wkfapp.js +38 -31
- package/esm2015/lib/wkf_engine_v2/wkfapp.js +39 -31
- package/fesm2015/fluxhub-fluxhub-lib.js +78 -63
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -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> {{\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 > {{ 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> {{\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> {{\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> {{\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 > {{ 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> {{\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> {{\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> {{\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> \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 > {{ 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> {{\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 > {{ 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> {{\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> {{\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> {{\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 > {{ 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> {{\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> {{\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> {{\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 > {{ 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> {{\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> {{\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> {{\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> \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 > {{ 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> {{\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 > {{ 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> {{\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> {{\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
|
|
16409
|
-
|
|
16410
|
-
|
|
16411
|
-
|
|
16412
|
-
_this.m_dataService.doQuery(
|
|
16413
|
-
var
|
|
16414
|
-
|
|
16415
|
-
|
|
16416
|
-
|
|
16417
|
-
|
|
16418
|
-
|
|
16419
|
-
|
|
16420
|
-
|
|
16421
|
-
|
|
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
|
-
|
|
16425
|
-
|
|
16426
|
-
|
|
16427
|
-
|
|
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
|
-
|
|
16430
|
-
|
|
16431
|
-
|
|
16432
|
-
|
|
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
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
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(
|
|
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
|
|
16824
|
-
|
|
16825
|
-
|
|
16826
|
-
|
|
16827
|
-
_this.m_dataService.doQuery(
|
|
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
|
|
16977
|
-
|
|
16978
|
-
|
|
16979
|
-
|
|
16980
|
-
_this.m_dataService.doQuery(
|
|
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
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
-
_this.m_dataService.doQuery(
|
|
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
|
|
17006
|
-
|
|
17007
|
-
|
|
17008
|
-
|
|
17009
|
-
_this.m_dataService.doQuery(
|
|
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
|
|
19092
|
-
|
|
19093
|
-
|
|
19094
|
-
|
|
19095
|
-
_this.m_dataService.doQuery(
|
|
19096
|
-
var
|
|
19097
|
-
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
|
|
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
|
-
|
|
19108
|
-
|
|
19109
|
-
|
|
19110
|
-
|
|
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
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
19115
|
-
|
|
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
|
|
19162
|
-
|
|
19163
|
-
|
|
19164
|
-
|
|
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(
|
|
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
|
|
19538
|
-
|
|
19539
|
-
|
|
19540
|
-
|
|
19541
|
-
_this.m_dataService.doQuery(
|
|
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
|
|
19690
|
-
|
|
19691
|
-
|
|
19692
|
-
|
|
19693
|
-
_this.m_dataService.doQuery(
|
|
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
|
|
19711
|
-
|
|
19712
|
-
|
|
19713
|
-
|
|
19714
|
-
_this.m_dataService.doQuery(
|
|
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
|
|
19719
|
-
|
|
19720
|
-
|
|
19721
|
-
|
|
19722
|
-
_this.m_dataService.doQuery(
|
|
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;
|