@fluxhub/fluxhub-lib 10.0.437 → 10.0.439

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.
@@ -905,6 +905,13 @@
905
905
  var m = dt.split("/").map(function (m) { return parseInt(m); });
906
906
  return new Date(m[2], m[1] - 1, m[0]);
907
907
  }
908
+ if (f == 5) {
909
+ // parse date in 20181017 (dd/MM/YYYY)
910
+ if (!dt || dt.length != 8) {
911
+ return null;
912
+ }
913
+ return new Date(parseInt(dt.substring(0, 4)), parseInt(dt.substring(4, 2)) - 1, parseInt(dt.substring(6, 2)));
914
+ }
908
915
  return null;
909
916
  };
910
917
  UtilityService.prototype.sql_number = function (a) {
@@ -12201,7 +12208,7 @@
12201
12208
  FHGridToolBarComponent.decorators = [
12202
12209
  { type: i0.Component, args: [{
12203
12210
  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 ",
12211
+ 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
12212
  styles: ["\n\n "]
12206
12213
  },] }
12207
12214
  ];
@@ -16405,42 +16412,49 @@
16405
16412
  });
16406
16413
  dialogRef.afterClosed().subscribe(function (result) {
16407
16414
  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;
16415
+ var p_1 = new QParam();
16416
+ p_1.sql = "SELECT_DOCUMENTS_BY_UIID";
16417
+ p_1.types = ["string", "string"];
16418
+ p_1.values = [_this.id_applicativo, _this.get_grid().sRow.uiid];
16419
+ _this.m_dataService.doQuery(p_1).subscribe(function (data) {
16420
+ var stato_doc = data.result_data[0].stato;
16421
+ p_1 = new QParam();
16422
+ p_1.sql = "SELECT_WKF_SELECT_USER_MIN";
16423
+ p_1.types = ["string", "string"];
16424
+ p_1.values = [_this.id_applicativo, _this.get_grid().sRow.uiid];
16425
+ _this.m_dataService.doQuery(p_1).subscribe(function (data) {
16426
+ var b_found = false;
16427
+ var livello = 0;
16428
+ var descri_livello = '';
16429
+ for (var i = 0; i < data.result_data.length; i++) {
16430
+ if (data.result_data[i].idp == _this.app_s.user) {
16431
+ livello = data.result_data[i].livello;
16432
+ descri_livello = data.result_data[i].descri_livello;
16433
+ b_found = true;
16434
+ break;
16435
+ }
16422
16436
  }
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;
16437
+ if (b_found) {
16438
+ if (livello != stato_doc) {
16439
+ _this._toastr.error('Il documento non è in stato Bozza');
16440
+ return;
16441
+ }
16442
+ var p_2 = new QParam();
16443
+ p_2.sql = "UPDATE_WKF_STATO_BOZZA";
16444
+ p_2.types = ["string", "string", "int", 'string'];
16445
+ p_2.values = [_this.id_applicativo, _this.get_grid().sRow.uiid, livello, descri_livello];
16446
+ _this.m_dataService.doQuery(p_2).subscribe(function (data) {
16447
+ if (data != null)
16448
+ if (data.result_msg == "OK") {
16449
+ _this._toastr.info('Documento aggiornato');
16450
+ _this.get_grid().doFill("");
16451
+ }
16452
+ });
16428
16453
  }
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
- }
16454
+ else {
16455
+ _this._toastr.error('L\'utente non è configurato per lo step BOZZA');
16456
+ }
16457
+ });
16444
16458
  });
16445
16459
  }
16446
16460
  });
@@ -16485,16 +16499,16 @@
16485
16499
  if (result != null)
16486
16500
  if (result.result != null)
16487
16501
  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 = [
16502
+ var p_3 = new QParam();
16503
+ p_3.sql = "UPDATE_USER_WORKFLOW";
16504
+ p_3.types = ["string", "string", "string", "string"];
16505
+ p_3.values = [
16492
16506
  _this.id_applicativo,
16493
16507
  _this.get_grid().sRow.uiid,
16494
16508
  result.u1,
16495
16509
  result.u2,
16496
16510
  ];
16497
- _this.m_dataService.doQuery(p_2).subscribe(function (data) {
16511
+ _this.m_dataService.doQuery(p_3).subscribe(function (data) {
16498
16512
  if (data != null)
16499
16513
  if (data.result_msg == "OK") {
16500
16514
  _this._toastr.info("Workflow Aggiornato");
@@ -16820,11 +16834,11 @@
16820
16834
  if (result != null)
16821
16835
  if (result.result != null)
16822
16836
  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) {
16837
+ var p_4 = new QParam();
16838
+ p_4.sql = "SELECT_USER_INFO_WKF";
16839
+ p_4.types = ["string"];
16840
+ p_4.values = [result.arrsel[0].username];
16841
+ _this.m_dataService.doQuery(p_4).subscribe(function (data) {
16828
16842
  if (data != null)
16829
16843
  if (data.result_msg == "OK") {
16830
16844
  _this.app_s.user_name_ori = _this.app_s.user_name;
@@ -16973,11 +16987,11 @@
16973
16987
  _this.user_cognome = _this.app_s.user_surname;
16974
16988
  _this.user_email = _this.app_s.user_email;
16975
16989
  _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) {
16990
+ var p_5 = new QParam();
16991
+ p_5.sql = "SELECT_UTENTE_WKF_ADMIN";
16992
+ p_5.types = ["string", "string"];
16993
+ p_5.values = [_this.id_applicativo, _this.app_s.user];
16994
+ _this.m_dataService.doQuery(p_5).subscribe(function (data) {
16981
16995
  if (data != null)
16982
16996
  if (data.result_msg == "OK") {
16983
16997
  var a = data.result_data;
@@ -16994,19 +17008,19 @@
16994
17008
  if (a[0].tipo == "2")
16995
17009
  _this.is_PowerUser = true;
16996
17010
  }
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) {
17011
+ var p_6 = new QParam();
17012
+ p_6.sql = "SELECT_WLIVELLIV2";
17013
+ p_6.types = ["string", "string"];
17014
+ p_6.values = [_this.id_applicativo, ""];
17015
+ _this.m_dataService.doQuery(p_6).subscribe(function (data) {
17002
17016
  if (data != null)
17003
17017
  if (data.result_msg == "OK") {
17004
17018
  _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) {
17019
+ var p_7 = new QParam();
17020
+ p_7.sql = "SELECT_ROLES_VISORI";
17021
+ p_7.types = ["string"];
17022
+ p_7.values = [_this.id_applicativo];
17023
+ _this.m_dataService.doQuery(p_7).subscribe(function (data) {
17010
17024
  if (data != null)
17011
17025
  if (data.result_msg == "OK") {
17012
17026
  _this.is_Visor = false;
@@ -19088,42 +19102,50 @@
19088
19102
  });
19089
19103
  dialogRef.afterClosed().subscribe(function (result) {
19090
19104
  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;
19105
+ var p_1 = new QParam();
19106
+ p_1.sql = "SELECT_DOCUMENTS_BY_UIID";
19107
+ p_1.types = ["string", "string"];
19108
+ p_1.values = [_this.id_applicativo, _this.get_grid().sRow.uiid];
19109
+ _this.m_dataService.doQuery(p_1).subscribe(function (data) {
19110
+ var stato_doc = data.result_data[0].stato;
19111
+ p_1 = new QParam();
19112
+ p_1.sql = "SELECT_WKF2_SELECT_USER_MIN";
19113
+ p_1.types = ["string", "string"];
19114
+ p_1.values = [_this.id_applicativo, _this.get_grid().sRow.uiid];
19115
+ _this.m_dataService.doQuery(p_1).subscribe(function (data) {
19116
+ var b_found = false;
19117
+ var livello = 0;
19118
+ var descri_livello = '';
19119
+ for (var i = 0; i < data.result_data.length; i++) {
19120
+ if (data.result_data[i].username == _this.app_s.user) {
19121
+ livello = data.result_data[i].step;
19122
+ descri_livello = data.result_data[i].des_step;
19123
+ b_found = true;
19124
+ break;
19125
+ }
19105
19126
  }
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;
19127
+ if (b_found) {
19128
+ console.log(livello, stato_doc);
19129
+ if (livello != stato_doc) {
19130
+ _this._toastr.error('Il documento non è in stato Bozza');
19131
+ return;
19132
+ }
19133
+ var p_2 = new QParam();
19134
+ p_2.sql = "UPDATE_WKF_STATO_BOZZA";
19135
+ p_2.types = ["string", "string", "int", 'string'];
19136
+ p_2.values = [_this.id_applicativo, _this.get_grid().sRow.uiid, livello, descri_livello];
19137
+ _this.m_dataService.doQuery(p_2).subscribe(function (data) {
19138
+ if (data != null)
19139
+ if (data.result_msg == "OK") {
19140
+ _this._toastr.info('Documento aggiornato');
19141
+ _this.get_grid().doFill("");
19142
+ }
19143
+ });
19111
19144
  }
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
- }
19145
+ else {
19146
+ _this._toastr.error('L\'utente non è configurato per lo step BOZZA');
19147
+ }
19148
+ });
19127
19149
  });
19128
19150
  }
19129
19151
  });
@@ -19158,16 +19180,16 @@
19158
19180
  if (result != null)
19159
19181
  if (result.result != null)
19160
19182
  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 = [
19183
+ var p_3 = new QParam();
19184
+ p_3.sql = "UPDATE_USER_WORKFLOW";
19185
+ p_3.types = ["string", "string", "string", "string"];
19186
+ p_3.values = [
19165
19187
  _this.id_applicativo,
19166
19188
  _this.get_grid().sRow.uiid,
19167
19189
  result.u1,
19168
19190
  result.u2,
19169
19191
  ];
19170
- _this.m_dataService.doQuery(p_2).subscribe(function (data) {
19192
+ _this.m_dataService.doQuery(p_3).subscribe(function (data) {
19171
19193
  if (data != null)
19172
19194
  if (data.result_msg == "OK") {
19173
19195
  _this._toastr.info("Workflow Aggiornato");
@@ -19534,11 +19556,11 @@
19534
19556
  if (result != null)
19535
19557
  if (result.result != null)
19536
19558
  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) {
19559
+ var p_4 = new QParam();
19560
+ p_4.sql = "SELECT_USER_INFO_WKF";
19561
+ p_4.types = ["string"];
19562
+ p_4.values = [result.arrsel[0].username];
19563
+ _this.m_dataService.doQuery(p_4).subscribe(function (data) {
19542
19564
  if (data != null)
19543
19565
  if (data.result_msg == "OK") {
19544
19566
  _this.app_s.user_name_ori = _this.app_s.user_name;
@@ -19686,11 +19708,11 @@
19686
19708
  _this.user_cognome = _this.app_s.user_surname;
19687
19709
  _this.user_email = _this.app_s.user_email;
19688
19710
  _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) {
19711
+ var p_5 = new QParam();
19712
+ p_5.sql = "SELECT_UTENTE_WKF_ADMIN";
19713
+ p_5.types = ["string", "string"];
19714
+ p_5.values = [_this.id_applicativo, _this.app_s.user];
19715
+ _this.m_dataService.doQuery(p_5).subscribe(function (data) {
19694
19716
  if (data != null)
19695
19717
  if (data.result_msg == "OK") {
19696
19718
  var a = data.result_data;
@@ -19707,19 +19729,19 @@
19707
19729
  if (a[0].tipo == "2")
19708
19730
  _this.is_PowerUser = true;
19709
19731
  }
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) {
19732
+ var p_6 = new QParam();
19733
+ p_6.sql = "SELECT_WLIVELLIV2_2";
19734
+ p_6.types = ["string"];
19735
+ p_6.values = [_this.id_applicativo];
19736
+ _this.m_dataService.doQuery(p_6).subscribe(function (data) {
19715
19737
  if (data != null)
19716
19738
  if (data.result_msg == "OK") {
19717
19739
  _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) {
19740
+ var p_7 = new QParam();
19741
+ p_7.sql = "SELECT_ROLES_VISORI";
19742
+ p_7.types = ["string"];
19743
+ p_7.values = [_this.id_applicativo];
19744
+ _this.m_dataService.doQuery(p_7).subscribe(function (data) {
19723
19745
  if (data != null)
19724
19746
  if (data.result_msg == "OK") {
19725
19747
  _this.is_Visor = false;