@fluxhub/fluxhub-lib 1.0.554 → 1.0.556

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.
@@ -6842,10 +6842,56 @@ class FHGridComponent {
6842
6842
  this.curr_config = this.gf.getValue();
6843
6843
  this.res_columns(true);
6844
6844
  }
6845
+ /**
6846
+ * @return {?}
6847
+ */
6848
+ elimina_config() {
6849
+ if (this.gf.getObj().username != null)
6850
+ if (this.m_appService.user != this.gf.getObj().username) {
6851
+ this._toast.error('Configurazione gestibile da: ' + this.gf.getObj().username);
6852
+ return;
6853
+ }
6854
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
6855
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler cancellare la configurazione " + this.gf.getDescri() + "?");
6856
+ /** @type {?} */
6857
+ let dialogRef = this.m_dialog.open(FHConfirmComponent, { 'disableClose': true });
6858
+ dialogRef.afterClosed().subscribe((/**
6859
+ * @param {?} result
6860
+ * @return {?}
6861
+ */
6862
+ result => {
6863
+ if (result) {
6864
+ /** @type {?} */
6865
+ let p = new QParam();
6866
+ p.sql = "DELETE_CFG_GRID";
6867
+ p.types = ['string', 'string'];
6868
+ p.values = [this.gf.getDescri(), this.grid_key];
6869
+ this._dataService.doQuery(p).subscribe((/**
6870
+ * @param {?} data
6871
+ * @return {?}
6872
+ */
6873
+ data => {
6874
+ if (data != null)
6875
+ if (data.result_msg == "OK") {
6876
+ this._toast.info('Configurazione eliminata');
6877
+ this.gf.types = ['string'];
6878
+ this.gf.values = [this.grid_key];
6879
+ this.gf.fillCombo();
6880
+ this.curr_config = '-1';
6881
+ }
6882
+ }));
6883
+ }
6884
+ }));
6885
+ }
6845
6886
  /**
6846
6887
  * @return {?}
6847
6888
  */
6848
6889
  edit_config() {
6890
+ if (this.gf.getObj().username != null)
6891
+ if (this.m_appService.user != this.gf.getObj().username) {
6892
+ this._toast.error('Configurazione gestibile da: ' + this.gf.getObj().username);
6893
+ return;
6894
+ }
6849
6895
  localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
6850
6896
  localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler sovrascrivere la configurazione " + this.gf.getDescri() + "?");
6851
6897
  /** @type {?} */
@@ -6884,6 +6930,7 @@ class FHGridComponent {
6884
6930
  this.gf.types = ['string'];
6885
6931
  this.gf.values = [this.grid_key];
6886
6932
  this.gf.fillCombo();
6933
+ this.curr_config = '-1';
6887
6934
  }
6888
6935
  }), (/**
6889
6936
  * @param {?} err
@@ -7317,9 +7364,11 @@ class FHGridComponent {
7317
7364
  this.show_pulisci_filtri = false;
7318
7365
  }
7319
7366
  /**
7367
+ * @param {?=} format
7320
7368
  * @return {?}
7321
7369
  */
7322
- export_excel() {
7370
+ export_excel(format = 'xlsx') {
7371
+ format = '.' + format;
7323
7372
  this.uiid_stampa = this.uti_s.newGuid();
7324
7373
  this.xxopx = 0;
7325
7374
  this.dialogRef_W = this.m_dialog.open(WinWait, {
@@ -7330,19 +7379,28 @@ class FHGridComponent {
7330
7379
  let cmds = [];
7331
7380
  /** @type {?} */
7332
7381
  let str_fields = "";
7382
+ /** @type {?} */
7383
+ let p_col = this.gridOptions.columnApi.getColumnState();
7333
7384
  for (let i = 0; i < this.columnDefs.length; i++)
7334
7385
  if (this.columnDefs[i] != null)
7335
7386
  if (this.columnDefs[i].field != null)
7336
7387
  if (this.columnDefs[i].headerName != null)
7337
7388
  if (this.columnDefs[i].field != '')
7338
- if (this.columnDefs[i].headerName != '') {
7339
- if (str_fields != '')
7340
- str_fields += ',';
7341
- str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
7342
- }
7343
- cmds.push(this.officeService.operation("EXCEL_APRI_EXP_GRID_NEW", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
7344
- cmds.push(this.officeService.operation("EXCEL_CREA_TABELLA_FROM_DB_EXP_GRID_NEW", "select " + str_fields + " from " + this.tbl_name + " " + this.str_curr_q_p, "", this.xxopx++));
7345
- cmds.push(this.officeService.operation("EXCEL_SALVA_EXP_GRID_NEW", "" + this.uiid_stampa + "_" + this.m_appService.user + ".xlsx", "", this.xxopx++));
7389
+ if (this.columnDefs[i].headerName != '')
7390
+ for (let j = 0; j < p_col.length; j++) {
7391
+ if (this.columnDefs[i].field == p_col[j].colId) {
7392
+ if (!p_col[j].hide) {
7393
+ if (str_fields != '')
7394
+ str_fields += ',';
7395
+ str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
7396
+ }
7397
+ }
7398
+ }
7399
+ if (this.fields.indexOf('DISTINCT') != -1)
7400
+ str_fields = 'DISTINCT ' + str_fields;
7401
+ cmds.push(this.officeService.operation("GB_XLS_APRI", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
7402
+ cmds.push(this.officeService.operation("GB_CREA_TABELLA_FROM_DB", "select " + str_fields + " from " + this.tbl_name + " " + this.str_curr_q_p, "3", this.xxopx++));
7403
+ cmds.push(this.officeService.operation("GB_XLS_SAVE", this.m_appService.LOCAL_PATH + "grid_reports\\" + this.uiid_stampa + "_" + this.m_appService.user + format, "", this.xxopx++));
7346
7404
  this.officeService.runCommands(this.uiid_stampa, cmds, this.dialogRef_W).subscribe((/**
7347
7405
  * @param {?} data
7348
7406
  * @return {?}
@@ -7353,7 +7411,7 @@ class FHGridComponent {
7353
7411
  let p = new FSInput();
7354
7412
  p.p1 =
7355
7413
  this.m_appService.LOCAL_PATH + "grid_reports\\" + this.uiid_stampa + "_" + this.m_appService.user +
7356
- ".xlsx";
7414
+ format;
7357
7415
  p.command = "check_file";
7358
7416
  this._fileService.doQuery(p).subscribe((/**
7359
7417
  * @param {?} data
@@ -7384,11 +7442,17 @@ class FHGridComponent {
7384
7442
  else {
7385
7443
  window.open(this.m_appService.COMPANY_SITE_ROOT + "/grid_reports/" +
7386
7444
  this.uiid_stampa + "_" + this.m_appService.user +
7387
- ".xlsx");
7445
+ format);
7388
7446
  }
7389
7447
  }));
7390
7448
  }));
7391
7449
  }
7450
+ /**
7451
+ * @return {?}
7452
+ */
7453
+ print() {
7454
+ this.export_excel('pdf');
7455
+ }
7392
7456
  /**
7393
7457
  * @private
7394
7458
  * @return {?}
@@ -7977,7 +8041,7 @@ class FHGridComponent {
7977
8041
  FHGridComponent.decorators = [
7978
8042
  { type: Component, args: [{
7979
8043
  selector: 'FHGrid',
7980
- template: "\r\n<div fxLayout=\"column\" fxFlexFill>\r\n\r\n <div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutAlign=\"center start\" fxLayoutGap=\"3px\" style=\"min-height: 55px\" [hidden]=\"!show_buttons\">\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\" >\r\n <div>\r\n\t\t \t\t<h5>{{num_r}}&nbsp;{{label_elementi}}</h5>\r\n </div>\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n\r\n\t\t\t<div fxLayout=\"row\" fxLayoutAlign=\"start center\">\t<input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\r\n\t\t\t\t\t\t\t style=\"min-width:100px;max-width:180px;border:1px solid;min-height:30px\"></div>\r\n <div matTooltip=\"REMOVE FILTER\" matTooltipPosition=\"above\" *ngIf=\"show_pulisci_filtri\" >\r\n \t\t\t<button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\">\r\n\t\t\t\t<mat-icon>filter_none</mat-icon>&nbsp;\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n \t\t\t<button mat-flat-button (click)=\"autoSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>compare_arrows</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n\t \t\t<button mat-flat-button (click)=\"fitSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>keyboard_tab</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\r\n <button mat-flat-button (click)=\"Refresh()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n </div>\r\n <FHFilterComboBox fxHide fxShow.gt-sm [hidden]='!show_buttons' (selchange)=\"ch_config()\" (fillend)=\"fe_cfg()\" #gf init_fill=\"false\"></FHFilterComboBox>\r\n\t\t\t\t<div matTooltip=\"Modifica Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n\t\t\t\t\t<button mat-icon-button *ngIf=\"show_buttons\"\r\n\t\t\t\t\t\t\t\t\tstyle=\"color:rgb(248, 105, 10)\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div fxHide fxShow.gt-sm matTooltip=\"Crea Nuova Preferenza\" matTooltipPosition=\"above\">\r\n\t\t\t\t\t<button mat-icon-button style=\"color:rgb(16, 98, 16)\" *ngIf=\"show_buttons\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\r\n <mat-slide-toggle fxHide fxShow.gt-sm [hidden]='!show_buttons' (click)=\"ck_flag()\" #toggle_mantieni>\r\n\t\t\t\t\t{{mantieni_impostazioni}}\r\n\t\t\t\t</mat-slide-toggle>\r\n\r\n\r\n \t&nbsp;\t<div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button mat-flat-button (click)=\"help_window()\" color=\"primary\" *ngIf=\"show_buttons && show_help\" >\r\n\t\t\t<mat-icon>help</mat-icon>\r\n </button></div>&nbsp;&nbsp;&nbsp;&nbsp;\r\n <div *ngIf=\"abilita_export\" matTooltip=\"EXPORT EXCEL\" matTooltipPosition=\"above\">\r\n <img src=\"assets/icons/square-o/xlsx.svg\" style=\"width:24px;height: 24px;cursor:pointer;\" (click)=\"export_excel()\" alt=\"Export Excel\">\r\n </div>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" style=\"width: 100%;\" *ngIf=\"enabled\">\r\n <FHGridToolBar (command)=\"docmd($event)\" [type]=\"toolbar_type\"\r\n\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n\r\n ></FHGridToolBar>\r\n\t\t</div>\r\n </div>\r\n\r\n <div fxLayout=\"row\" style=\"width:100%\" [fxFlex]=\"show_buttons ? 100:95\">\r\n<ag-grid-angular\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%;\"\r\n id=\"myGrid\"\r\n\t\t\t\t\t\t\t\t (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n\t\t\t\t\t\t\t\t [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n\r\n\t\t\t\t\t\t\t\t class=\"ag-theme-balham\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n\t\t\t\t\t\t\t\t [rowData]=\"rowData\"\r\n [getContextMenuItems]=\"abilita_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\r\n\r\n (filterModified)=\"onFilterModified()\"\r\n\t\t\t\t\t\t\t\t (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n\t\t\t\t\t\t\t\t (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnResized)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnMoved)=\"oncolumnEverythingChanged($event)\"\r\n (cellValueChanged)=\"okr($event)\"\r\n\t\t\t\t\t\t\t\t (sortChanged)=\"onAfterSortChanged()\"\r\n [paginationPageSize]=\"num_per_pag\"\r\n (gridReady)=\"onReady($event)\">\r\n</ag-grid-angular>\r\n</div>\r\n</div>\r\n",
8044
+ template: "\r\n<div fxLayout=\"column\" fxFlexFill>\r\n\r\n <div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutAlign=\"center start\" fxLayoutGap=\"3px\" style=\"min-height: 55px\" [hidden]=\"!show_buttons\">\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\" >\r\n <div>\r\n\t\t \t\t<h5>{{num_r}}&nbsp;{{label_elementi}}</h5>\r\n </div>\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n\r\n\t\t\t<div fxLayout=\"row\" fxLayoutAlign=\"start center\">\t<input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\r\n\t\t\t\t\t\t\t style=\"min-width:100px;max-width:180px;border:1px solid;min-height:30px\"></div>\r\n <div matTooltip=\"REMOVE FILTER\" matTooltipPosition=\"above\" *ngIf=\"show_pulisci_filtri\" >\r\n \t\t\t<button mat-flat-button (click)=\"pulisci_filtri()\" color=\"warn\">\r\n\t\t\t\t<mat-icon>filter_none</mat-icon>&nbsp;\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n \t\t\t<button mat-flat-button (click)=\"autoSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>compare_arrows</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n\t \t\t<button mat-flat-button (click)=\"fitSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>keyboard_tab</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"Refresh\" matTooltipPosition=\"above\">\r\n <button mat-flat-button (click)=\"Refresh()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n </div>\r\n <FHFilterComboBox fxHide fxShow.gt-sm [hidden]='!show_buttons' (selchange)=\"ch_config()\" (fillend)=\"fe_cfg()\" #gf init_fill=\"false\"></FHFilterComboBox>\r\n\t\t\t\t<div matTooltip=\"Modifica Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n\t\t\t\t\t<button mat-icon-button *ngIf=\"show_buttons\"\r\n\t\t\t\t\t\t\t\t\tstyle=\"color:rgb(248, 105, 10)\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n\t\t\t\t</div>\r\n <div matTooltip=\"Elimina Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n <button mat-icon-button *ngIf=\"show_buttons\"\r\n style=\"color:rgb(248, 105, 10)\">\r\n <mat-icon (click)=\"elimina_config()\">delete</mat-icon>\r\n </button>\r\n\r\n </div>\r\n\t\t\t\t<div fxHide fxShow.gt-sm matTooltip=\"Crea Nuova Preferenza\" matTooltipPosition=\"above\">\r\n\t\t\t\t\t<button mat-icon-button style=\"color:rgb(16, 98, 16)\" *ngIf=\"show_buttons\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\r\n <mat-slide-toggle fxHide fxShow.gt-sm [hidden]='!show_buttons' (click)=\"ck_flag()\" #toggle_mantieni>\r\n\t\t\t\t\t{{mantieni_impostazioni}}\r\n\t\t\t\t</mat-slide-toggle>\r\n\r\n\r\n \t&nbsp;\t<div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button mat-flat-button (click)=\"help_window()\" color=\"primary\" *ngIf=\"show_buttons && show_help\" >\r\n\t\t\t<mat-icon>help</mat-icon>\r\n </button></div>&nbsp;&nbsp;&nbsp;&nbsp;\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"0\" *ngIf=\"abilita_export\" matTooltip=\"STAMPA\" matTooltipPosition=\"above\">\r\n <mat-icon (click)=\"print()\" style=\"cursor:pointer\" >print</mat-icon>\r\n </div>&nbsp;&nbsp;&nbsp;\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"0\" *ngIf=\"abilita_export\" matTooltip=\"EXPORT EXCEL\" matTooltipPosition=\"above\">\r\n <img src=\"assets/icons/square-o/xlsx.svg\" style=\"width:24px;height: 24px;cursor:pointer;\" (click)=\"export_excel()\" alt=\"Export Excel\">\r\n </div>\r\n\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" style=\"width: 100%;\" *ngIf=\"enabled\">\r\n <FHGridToolBar (command)=\"docmd($event)\" [type]=\"toolbar_type\"\r\n\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n\r\n ></FHGridToolBar>\r\n\t\t</div>\r\n </div>\r\n\r\n <div fxLayout=\"row\" style=\"width:100%\" [fxFlex]=\"show_buttons ? 100:95\">\r\n<ag-grid-angular\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%;\"\r\n id=\"myGrid\"\r\n\t\t\t\t\t\t\t\t (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n\t\t\t\t\t\t\t\t [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n\r\n\t\t\t\t\t\t\t\t class=\"ag-theme-balham\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n\t\t\t\t\t\t\t\t [rowData]=\"rowData\"\r\n [getContextMenuItems]=\"abilita_export ? getContextMenuItems_e:getContextMenuItems_n_e\"\r\n\r\n (filterModified)=\"onFilterModified()\"\r\n\t\t\t\t\t\t\t\t (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n\t\t\t\t\t\t\t\t (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnResized)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnMoved)=\"oncolumnEverythingChanged($event)\"\r\n (cellValueChanged)=\"okr($event)\"\r\n\t\t\t\t\t\t\t\t (sortChanged)=\"onAfterSortChanged()\"\r\n [paginationPageSize]=\"num_per_pag\"\r\n (gridReady)=\"onReady($event)\">\r\n</ag-grid-angular>\r\n</div>\r\n</div>\r\n",
7981
8045
  styles: [`
7982
8046
 
7983
8047
  `]
@@ -12742,19 +12806,14 @@ class win_commenti {
12742
12806
  * @return {?}
12743
12807
  */
12744
12808
  data => {
12745
- /** @type {?} */
12746
- let ok_op = false;
12747
12809
  if (data != null)
12748
12810
  if (data.result_msg == "OK") {
12749
12811
  this.commenti_list = data.result_data;
12750
- for (var i = 0; i < this.commenti_list.length; i++) {
12812
+ for (let i = 0; i < this.commenti_list.length; i++) {
12751
12813
  this.commenti_list[i].v_commento = '<b>' + this.commenti_list[i].commento.replace(/\n/g, '<br/>') + '</b>';
12752
12814
  }
12753
- ok_op = true;
12815
+ this.title = 'COMMENTI';
12754
12816
  }
12755
- if (!ok_op) {
12756
- this.toastr.error("ERRORE", data.msg);
12757
- }
12758
12817
  }), (/**
12759
12818
  * @param {?} err
12760
12819
  * @return {?}
@@ -12774,7 +12833,7 @@ class win_commenti {
12774
12833
  this.toastr.error("INSERIRE UN COMMENTO");
12775
12834
  return;
12776
12835
  }
12777
- if (this.notifica_commenti == 1)
12836
+ if (this.notifica_commenti != 2)
12778
12837
  this.select_destinatari();
12779
12838
  else
12780
12839
  this.select_destinatari_grp();
@@ -16877,7 +16936,7 @@ class dati_aggiuntivi {
16877
16936
  () => { this.init_user_i(); this.init_engine(); }), 100);
16878
16937
  return;
16879
16938
  }
16880
- console.log('init_engine ');
16939
+ //console.log('init_engine ');
16881
16940
  this.m_route.params.subscribe((/**
16882
16941
  * @param {?} params
16883
16942
  * @return {?}
@@ -17024,7 +17083,6 @@ class wkf_header_bar {
17024
17083
  this.edit_button = false;
17025
17084
  this.respingi_button = false;
17026
17085
  this.procedi_button = true;
17027
- this.icon_mode = false;
17028
17086
  }
17029
17087
  /**
17030
17088
  * @return {?}
@@ -17077,7 +17135,7 @@ wkf_header_bar.decorators = [
17077
17135
  selector: 'wkf_header_bar',
17078
17136
  template: `
17079
17137
 
17080
- <div fxLayout="row" fxLayoutGap="3px" style="background-color: #F5F5F5" *ngIf="!icon_mode">
17138
+
17081
17139
  <div fxLayout="row" fxLayout.xs="column" fxLayoutGap="3px" *ngIf="!m_appService.getState().pageFullscreen || edit_button || respingi_button">
17082
17140
  <button mat-flat-button (click)="back()" *ngIf="!m_appService.getState().pageFullscreen">Indietro</button>&nbsp;&nbsp;
17083
17141
  <button mat-flat-button (click)="evt_salv()" *ngIf="edit_button && !m_appService.getState().pageFullscreen" color="primary" >Salva</button>&nbsp;&nbsp;
@@ -17093,27 +17151,7 @@ wkf_header_bar.decorators = [
17093
17151
  <button mat-flat-button (click)="open_upload()"> <mat-icon>attach_file</mat-icon>&nbsp;&nbsp;Allegati {{dt_agg?.all_c}}</button>&nbsp;&nbsp;
17094
17152
  <button mat-flat-button (click)="open_wkf()" *ngIf="!m_appService.getState().pageFullscreen"> <mat-icon>transfer_within_a_station</mat-icon>&nbsp;&nbsp;Workflow</button>
17095
17153
  </div>
17096
- </div>
17097
- <div fxLayout="row" fxLayoutGap="3px" style="background-color: #F5F5F5" *ngIf="icon_mode">
17098
- <div fxLayout="row" fxLayout.xs="column" fxLayoutGap="3px" *ngIf="!m_appService.getState().pageFullscreen || edit_button || respingi_button">
17099
- <mat-icon matTooltip="Indietro"(click)="back()" style="cursor:pointer" >list</mat-icon>&nbsp;&nbsp;
17100
- <mat-icon matTooltip="Salva" (click)="evt_salv()" *ngIf="edit_button && !m_appService.getState().pageFullscreen" style="cursor:pointer" >save</mat-icon>&nbsp;&nbsp;
17101
- <mat-icon matTooltip="Procedi" (click)="procedi()" *ngIf="edit_button && procedi_button" style="cursor:pointer" >check</mat-icon>&nbsp;&nbsp;
17102
- <mat-icon matTooltip="Respingi" (click)="respingi()" *ngIf="respingi_button" style="cursor:pointer" >cancel_presentation</mat-icon>&nbsp;&nbsp;
17103
-
17104
-
17105
- <!-- <button mat-flat-button (click)="doEnd(900)" color="warn" >test</button>&nbsp;&nbsp;
17106
- -->
17107
- </div>
17108
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
17109
- <div fxLayout="row" fxLayout.xs="column" fxLayoutGap="3px" >
17110
- <mat-icon matTooltip="Info Doc" (click)="open_info()" *ngIf="!m_appService.getState().pageFullscreen">info_outline</mat-icon>&nbsp;&nbsp;
17111
- <mat-icon [matTooltip]="'Commenti '+dt_agg?.comm_c" (click)="open_commenti()">insert_comment</mat-icon>&nbsp;&nbsp;
17112
- <mat-icon [matTooltip]="'Allegati '+dt_agg?.all_c" (click)="open_upload()">attach_file</mat-icon>&nbsp;&nbsp;
17113
- <mat-icon [matTooltip]="'Workflow'" *ngIf="!m_appService.getState().pageFullscreen" (click)="open_wkf()">transfer_within_a_station</mat-icon>
17114
-
17115
- </div>
17116
- </div>
17154
+
17117
17155
  `
17118
17156
  }] }
17119
17157
  ];
@@ -17125,8 +17163,7 @@ wkf_header_bar.propDecorators = {
17125
17163
  dt_agg: [{ type: Input }],
17126
17164
  edit_button: [{ type: Input }],
17127
17165
  respingi_button: [{ type: Input }],
17128
- procedi_button: [{ type: Input }],
17129
- icon_mode: [{ type: Input }]
17166
+ procedi_button: [{ type: Input }]
17130
17167
  };
17131
17168
 
17132
17169
  /**