@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.
@@ -7109,6 +7109,51 @@ var FHGridComponent = /** @class */ (function () {
7109
7109
  this.curr_config = this.gf.getValue();
7110
7110
  this.res_columns(true);
7111
7111
  };
7112
+ /**
7113
+ * @return {?}
7114
+ */
7115
+ FHGridComponent.prototype.elimina_config = /**
7116
+ * @return {?}
7117
+ */
7118
+ function () {
7119
+ var _this = this;
7120
+ if (this.gf.getObj().username != null)
7121
+ if (this.m_appService.user != this.gf.getObj().username) {
7122
+ this._toast.error('Configurazione gestibile da: ' + this.gf.getObj().username);
7123
+ return;
7124
+ }
7125
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
7126
+ localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler cancellare la configurazione " + this.gf.getDescri() + "?");
7127
+ /** @type {?} */
7128
+ var dialogRef = this.m_dialog.open(FHConfirmComponent, { 'disableClose': true });
7129
+ dialogRef.afterClosed().subscribe((/**
7130
+ * @param {?} result
7131
+ * @return {?}
7132
+ */
7133
+ function (result) {
7134
+ if (result) {
7135
+ /** @type {?} */
7136
+ var p = new QParam();
7137
+ p.sql = "DELETE_CFG_GRID";
7138
+ p.types = ['string', 'string'];
7139
+ p.values = [_this.gf.getDescri(), _this.grid_key];
7140
+ _this._dataService.doQuery(p).subscribe((/**
7141
+ * @param {?} data
7142
+ * @return {?}
7143
+ */
7144
+ function (data) {
7145
+ if (data != null)
7146
+ if (data.result_msg == "OK") {
7147
+ _this._toast.info('Configurazione eliminata');
7148
+ _this.gf.types = ['string'];
7149
+ _this.gf.values = [_this.grid_key];
7150
+ _this.gf.fillCombo();
7151
+ _this.curr_config = '-1';
7152
+ }
7153
+ }));
7154
+ }
7155
+ }));
7156
+ };
7112
7157
  /**
7113
7158
  * @return {?}
7114
7159
  */
@@ -7117,6 +7162,11 @@ var FHGridComponent = /** @class */ (function () {
7117
7162
  */
7118
7163
  function () {
7119
7164
  var _this = this;
7165
+ if (this.gf.getObj().username != null)
7166
+ if (this.m_appService.user != this.gf.getObj().username) {
7167
+ this._toast.error('Configurazione gestibile da: ' + this.gf.getObj().username);
7168
+ return;
7169
+ }
7120
7170
  localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
7121
7171
  localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler sovrascrivere la configurazione " + this.gf.getDescri() + "?");
7122
7172
  /** @type {?} */
@@ -7155,6 +7205,7 @@ var FHGridComponent = /** @class */ (function () {
7155
7205
  _this.gf.types = ['string'];
7156
7206
  _this.gf.values = [_this.grid_key];
7157
7207
  _this.gf.fillCombo();
7208
+ _this.curr_config = '-1';
7158
7209
  }
7159
7210
  }), (/**
7160
7211
  * @param {?} err
@@ -7661,13 +7712,17 @@ var FHGridComponent = /** @class */ (function () {
7661
7712
  this.show_pulisci_filtri = false;
7662
7713
  };
7663
7714
  /**
7715
+ * @param {?=} format
7664
7716
  * @return {?}
7665
7717
  */
7666
7718
  FHGridComponent.prototype.export_excel = /**
7719
+ * @param {?=} format
7667
7720
  * @return {?}
7668
7721
  */
7669
- function () {
7722
+ function (format) {
7670
7723
  var _this = this;
7724
+ if (format === void 0) { format = 'xlsx'; }
7725
+ format = '.' + format;
7671
7726
  this.uiid_stampa = this.uti_s.newGuid();
7672
7727
  this.xxopx = 0;
7673
7728
  this.dialogRef_W = this.m_dialog.open(WinWait, {
@@ -7678,19 +7733,28 @@ var FHGridComponent = /** @class */ (function () {
7678
7733
  var cmds = [];
7679
7734
  /** @type {?} */
7680
7735
  var str_fields = "";
7736
+ /** @type {?} */
7737
+ var p_col = this.gridOptions.columnApi.getColumnState();
7681
7738
  for (var i = 0; i < this.columnDefs.length; i++)
7682
7739
  if (this.columnDefs[i] != null)
7683
7740
  if (this.columnDefs[i].field != null)
7684
7741
  if (this.columnDefs[i].headerName != null)
7685
7742
  if (this.columnDefs[i].field != '')
7686
- if (this.columnDefs[i].headerName != '') {
7687
- if (str_fields != '')
7688
- str_fields += ',';
7689
- str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
7690
- }
7691
- cmds.push(this.officeService.operation("EXCEL_APRI_EXP_GRID_NEW", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
7692
- 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++));
7693
- cmds.push(this.officeService.operation("EXCEL_SALVA_EXP_GRID_NEW", "" + this.uiid_stampa + "_" + this.m_appService.user + ".xlsx", "", this.xxopx++));
7743
+ if (this.columnDefs[i].headerName != '')
7744
+ for (var j = 0; j < p_col.length; j++) {
7745
+ if (this.columnDefs[i].field == p_col[j].colId) {
7746
+ if (!p_col[j].hide) {
7747
+ if (str_fields != '')
7748
+ str_fields += ',';
7749
+ str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
7750
+ }
7751
+ }
7752
+ }
7753
+ if (this.fields.indexOf('DISTINCT') != -1)
7754
+ str_fields = 'DISTINCT ' + str_fields;
7755
+ cmds.push(this.officeService.operation("GB_XLS_APRI", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
7756
+ 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++));
7757
+ 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++));
7694
7758
  this.officeService.runCommands(this.uiid_stampa, cmds, this.dialogRef_W).subscribe((/**
7695
7759
  * @param {?} data
7696
7760
  * @return {?}
@@ -7701,7 +7765,7 @@ var FHGridComponent = /** @class */ (function () {
7701
7765
  var p = new FSInput();
7702
7766
  p.p1 =
7703
7767
  _this.m_appService.LOCAL_PATH + "grid_reports\\" + _this.uiid_stampa + "_" + _this.m_appService.user +
7704
- ".xlsx";
7768
+ format;
7705
7769
  p.command = "check_file";
7706
7770
  _this._fileService.doQuery(p).subscribe((/**
7707
7771
  * @param {?} data
@@ -7732,11 +7796,20 @@ var FHGridComponent = /** @class */ (function () {
7732
7796
  else {
7733
7797
  window.open(_this.m_appService.COMPANY_SITE_ROOT + "/grid_reports/" +
7734
7798
  _this.uiid_stampa + "_" + _this.m_appService.user +
7735
- ".xlsx");
7799
+ format);
7736
7800
  }
7737
7801
  }));
7738
7802
  }));
7739
7803
  };
7804
+ /**
7805
+ * @return {?}
7806
+ */
7807
+ FHGridComponent.prototype.print = /**
7808
+ * @return {?}
7809
+ */
7810
+ function () {
7811
+ this.export_excel('pdf');
7812
+ };
7740
7813
  /**
7741
7814
  * @private
7742
7815
  * @return {?}
@@ -8483,7 +8556,7 @@ var FHGridComponent = /** @class */ (function () {
8483
8556
  FHGridComponent.decorators = [
8484
8557
  { type: Component, args: [{
8485
8558
  selector: 'FHGrid',
8486
- 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",
8559
+ 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",
8487
8560
  styles: ["\n\n "]
8488
8561
  }] }
8489
8562
  ];
@@ -13305,19 +13378,14 @@ var win_commenti = /** @class */ (function () {
13305
13378
  * @return {?}
13306
13379
  */
13307
13380
  function (data) {
13308
- /** @type {?} */
13309
- var ok_op = false;
13310
13381
  if (data != null)
13311
13382
  if (data.result_msg == "OK") {
13312
13383
  _this.commenti_list = data.result_data;
13313
13384
  for (var i = 0; i < _this.commenti_list.length; i++) {
13314
13385
  _this.commenti_list[i].v_commento = '<b>' + _this.commenti_list[i].commento.replace(/\n/g, '<br/>') + '</b>';
13315
13386
  }
13316
- ok_op = true;
13387
+ _this.title = 'COMMENTI';
13317
13388
  }
13318
- if (!ok_op) {
13319
- _this.toastr.error("ERRORE", data.msg);
13320
- }
13321
13389
  }), (/**
13322
13390
  * @param {?} err
13323
13391
  * @return {?}
@@ -13340,7 +13408,7 @@ var win_commenti = /** @class */ (function () {
13340
13408
  this.toastr.error("INSERIRE UN COMMENTO");
13341
13409
  return;
13342
13410
  }
13343
- if (this.notifica_commenti == 1)
13411
+ if (this.notifica_commenti != 2)
13344
13412
  this.select_destinatari();
13345
13413
  else
13346
13414
  this.select_destinatari_grp();
@@ -17643,7 +17711,7 @@ var dati_aggiuntivi = /** @class */ (function () {
17643
17711
  function () { _this.init_user_i(); _this.init_engine(); }), 100);
17644
17712
  return;
17645
17713
  }
17646
- console.log('init_engine ');
17714
+ //console.log('init_engine ');
17647
17715
  this.m_route.params.subscribe((/**
17648
17716
  * @param {?} params
17649
17717
  * @return {?}
@@ -17809,7 +17877,6 @@ var wkf_header_bar = /** @class */ (function () {
17809
17877
  this.edit_button = false;
17810
17878
  this.respingi_button = false;
17811
17879
  this.procedi_button = true;
17812
- this.icon_mode = false;
17813
17880
  }
17814
17881
  /**
17815
17882
  * @return {?}
@@ -17886,7 +17953,7 @@ var wkf_header_bar = /** @class */ (function () {
17886
17953
  wkf_header_bar.decorators = [
17887
17954
  { type: Component, args: [{
17888
17955
  selector: 'wkf_header_bar',
17889
- template: "\n\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" style=\"background-color: #F5F5F5\" *ngIf=\"!icon_mode\">\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n<button mat-flat-button (click)=\"back()\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n</div>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" >\n<button mat-flat-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button>&nbsp;&nbsp;\n<button mat-flat-button (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon>&nbsp;&nbsp;Commenti {{dt_agg?.comm_c}}</button>&nbsp;&nbsp;\n<button mat-flat-button (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon>&nbsp;&nbsp;Allegati {{dt_agg?.all_c}}</button>&nbsp;&nbsp;\n<button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon>&nbsp;&nbsp;Workflow</button>\n</div>\n</div>\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" style=\"background-color: #F5F5F5\" *ngIf=\"icon_mode\">\n <div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n <mat-icon matTooltip=\"Indietro\"(click)=\"back()\" style=\"cursor:pointer\" >list</mat-icon>&nbsp;&nbsp;\n <mat-icon matTooltip=\"Salva\" (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" style=\"cursor:pointer\" >save</mat-icon>&nbsp;&nbsp;\n <mat-icon matTooltip=\"Procedi\" (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" style=\"cursor:pointer\" >check</mat-icon>&nbsp;&nbsp;\n <mat-icon matTooltip=\"Respingi\" (click)=\"respingi()\" *ngIf=\"respingi_button\" style=\"cursor:pointer\" >cancel_presentation</mat-icon>&nbsp;&nbsp;\n\n \n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n -->\n </div>\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" >\n<mat-icon matTooltip=\"Info Doc\" (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\">info_outline</mat-icon>&nbsp;&nbsp;\n <mat-icon [matTooltip]=\"'Commenti '+dt_agg?.comm_c\" (click)=\"open_commenti()\">insert_comment</mat-icon>&nbsp;&nbsp;\n <mat-icon [matTooltip]=\"'Allegati '+dt_agg?.all_c\" (click)=\"open_upload()\">attach_file</mat-icon>&nbsp;&nbsp;\n <mat-icon [matTooltip]=\"'Workflow'\" *ngIf=\"!m_appService.getState().pageFullscreen\" (click)=\"open_wkf()\">transfer_within_a_station</mat-icon>\n\n </div>\n</div>\n "
17956
+ template: "\n\n\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n<button mat-flat-button (click)=\"back()\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button>&nbsp;&nbsp;\n <button mat-flat-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n</div>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" >\n<button mat-flat-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button>&nbsp;&nbsp;\n<button mat-flat-button (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon>&nbsp;&nbsp;Commenti {{dt_agg?.comm_c}}</button>&nbsp;&nbsp;\n<button mat-flat-button (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon>&nbsp;&nbsp;Allegati {{dt_agg?.all_c}}</button>&nbsp;&nbsp;\n<button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon>&nbsp;&nbsp;Workflow</button>\n</div>\n \n "
17890
17957
  }] }
17891
17958
  ];
17892
17959
  /** @nocollapse */
@@ -17897,8 +17964,7 @@ var wkf_header_bar = /** @class */ (function () {
17897
17964
  dt_agg: [{ type: Input }],
17898
17965
  edit_button: [{ type: Input }],
17899
17966
  respingi_button: [{ type: Input }],
17900
- procedi_button: [{ type: Input }],
17901
- icon_mode: [{ type: Input }]
17967
+ procedi_button: [{ type: Input }]
17902
17968
  };
17903
17969
  return wkf_header_bar;
17904
17970
  }());