@fluxhub/fluxhub-lib 10.0.436 → 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.
@@ -11448,12 +11448,10 @@
11448
11448
  };
11449
11449
  FHGridJSONComponent.prototype.edit_config = function () {
11450
11450
  var _this = this;
11451
- localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", "Conferma Operazione");
11452
- localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler sovrascrivere la configurazione " +
11453
- this.gf.getDescri() +
11454
- "?");
11455
11451
  var dialogRef = this.m_dialog.open(fh_win_confirm, {
11456
- disableClose: true,
11452
+ disableClose: true, data: { title_dialog: "Conferma Operazione", msg_dialog: "Confermi di voler sovrascrivere la configurazione " +
11453
+ this.gf.getDescri() +
11454
+ "?" }
11457
11455
  });
11458
11456
  dialogRef.afterClosed().subscribe(function (result) {
11459
11457
  if (result) {
@@ -12203,7 +12201,7 @@
12203
12201
  FHGridToolBarComponent.decorators = [
12204
12202
  { type: i0.Component, args: [{
12205
12203
  selector: "FHGridToolBar",
12206
- template: "\n {{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 ",
12207
12205
  styles: ["\n\n "]
12208
12206
  },] }
12209
12207
  ];
@@ -16402,42 +16400,56 @@
16402
16400
  this._toastr.error("Selezionare il documento");
16403
16401
  return;
16404
16402
  }
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
- }
16403
+ var dialogRef = this.dialog.open(fh_win_confirm, {
16404
+ disableClose: true, data: { title_dialog: "Conferma Operazione", msg_dialog: "Confermi di voler assegnarti il documento?" }
16405
+ });
16406
+ dialogRef.afterClosed().subscribe(function (result) {
16407
+ if (result) {
16426
16408
  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];
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];
16430
16412
  _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("");
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
+ }
16435
16429
  }
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
+ });
16446
+ }
16447
+ else {
16448
+ _this._toastr.error('L\'utente non è configurato per lo step BOZZA');
16449
+ }
16450
+ });
16436
16451
  });
16437
16452
  }
16438
- else {
16439
- _this._toastr.error('L\'utente non è configurato per lo step BOZZA');
16440
- }
16441
16453
  });
16442
16454
  };
16443
16455
  wkfapp.prototype.recupera_richiesta = function () {
@@ -16480,16 +16492,16 @@
16480
16492
  if (result != null)
16481
16493
  if (result.result != null)
16482
16494
  if (result.result == "ok") {
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 = [
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 = [
16487
16499
  _this.id_applicativo,
16488
16500
  _this.get_grid().sRow.uiid,
16489
16501
  result.u1,
16490
16502
  result.u2,
16491
16503
  ];
16492
- _this.m_dataService.doQuery(p_2).subscribe(function (data) {
16504
+ _this.m_dataService.doQuery(p_3).subscribe(function (data) {
16493
16505
  if (data != null)
16494
16506
  if (data.result_msg == "OK") {
16495
16507
  _this._toastr.info("Workflow Aggiornato");
@@ -16815,11 +16827,11 @@
16815
16827
  if (result != null)
16816
16828
  if (result.result != null)
16817
16829
  if (result.result == "ok") {
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) {
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) {
16823
16835
  if (data != null)
16824
16836
  if (data.result_msg == "OK") {
16825
16837
  _this.app_s.user_name_ori = _this.app_s.user_name;
@@ -16968,11 +16980,11 @@
16968
16980
  _this.user_cognome = _this.app_s.user_surname;
16969
16981
  _this.user_email = _this.app_s.user_email;
16970
16982
  _this.m_uti.set_home_title(_this.att_panelcat);
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) {
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) {
16976
16988
  if (data != null)
16977
16989
  if (data.result_msg == "OK") {
16978
16990
  var a = data.result_data;
@@ -16989,19 +17001,19 @@
16989
17001
  if (a[0].tipo == "2")
16990
17002
  _this.is_PowerUser = true;
16991
17003
  }
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) {
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) {
16997
17009
  if (data != null)
16998
17010
  if (data.result_msg == "OK") {
16999
17011
  _this.ok_conf_s(data.result_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) {
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) {
17005
17017
  if (data != null)
17006
17018
  if (data.result_msg == "OK") {
17007
17019
  _this.is_Visor = false;
@@ -19078,42 +19090,57 @@
19078
19090
  this._toastr.error("Selezionare il documento");
19079
19091
  return;
19080
19092
  }
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
- }
19093
+ var dialogRef = this.dialog.open(fh_win_confirm, {
19094
+ disableClose: true, data: { title_dialog: "Conferma Operazione", msg_dialog: "Confermi di voler assegnarti il documento?" }
19095
+ });
19096
+ dialogRef.afterClosed().subscribe(function (result) {
19097
+ if (result) {
19102
19098
  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];
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];
19106
19102
  _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("");
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
+ }
19119
+ }
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
  }
19138
+ else {
19139
+ _this._toastr.error('L\'utente non è configurato per lo step BOZZA');
19140
+ }
19141
+ });
19112
19142
  });
19113
19143
  }
19114
- else {
19115
- _this._toastr.error('L\'utente non è configurato per lo step BOZZA');
19116
- }
19117
19144
  });
19118
19145
  };
19119
19146
  wkfapp_v2.prototype.sostituisci_utente = function () {
@@ -19146,16 +19173,16 @@
19146
19173
  if (result != null)
19147
19174
  if (result.result != null)
19148
19175
  if (result.result == "ok") {
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 = [
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 = [
19153
19180
  _this.id_applicativo,
19154
19181
  _this.get_grid().sRow.uiid,
19155
19182
  result.u1,
19156
19183
  result.u2,
19157
19184
  ];
19158
- _this.m_dataService.doQuery(p_2).subscribe(function (data) {
19185
+ _this.m_dataService.doQuery(p_3).subscribe(function (data) {
19159
19186
  if (data != null)
19160
19187
  if (data.result_msg == "OK") {
19161
19188
  _this._toastr.info("Workflow Aggiornato");
@@ -19522,11 +19549,11 @@
19522
19549
  if (result != null)
19523
19550
  if (result.result != null)
19524
19551
  if (result.result == "ok") {
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) {
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) {
19530
19557
  if (data != null)
19531
19558
  if (data.result_msg == "OK") {
19532
19559
  _this.app_s.user_name_ori = _this.app_s.user_name;
@@ -19674,11 +19701,11 @@
19674
19701
  _this.user_cognome = _this.app_s.user_surname;
19675
19702
  _this.user_email = _this.app_s.user_email;
19676
19703
  _this.m_uti.set_home_title(_this.att_panelcat);
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) {
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) {
19682
19709
  if (data != null)
19683
19710
  if (data.result_msg == "OK") {
19684
19711
  var a = data.result_data;
@@ -19695,19 +19722,19 @@
19695
19722
  if (a[0].tipo == "2")
19696
19723
  _this.is_PowerUser = true;
19697
19724
  }
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) {
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) {
19703
19730
  if (data != null)
19704
19731
  if (data.result_msg == "OK") {
19705
19732
  _this.ok_conf_s(data.result_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) {
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) {
19711
19738
  if (data != null)
19712
19739
  if (data.result_msg == "OK") {
19713
19740
  _this.is_Visor = false;