@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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +90 -24
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhgrid.js +81 -13
- package/esm2015/lib/wkf_engine/win_commenti.js +4 -11
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +4 -28
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +2 -2
- package/esm5/lib/controls/fhgrid.js +90 -13
- package/esm5/lib/wkf_engine/win_commenti.js +3 -10
- package/esm5/lib/wkf_engine/wkf_header_bar.js +3 -7
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +83 -46
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +90 -24
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhgrid.d.ts +3 -1
- package/lib/wkf_engine/wkf_header_bar.d.ts +0 -1
- package/package.json +1 -1
|
@@ -7131,6 +7131,51 @@
|
|
|
7131
7131
|
this.curr_config = this.gf.getValue();
|
|
7132
7132
|
this.res_columns(true);
|
|
7133
7133
|
};
|
|
7134
|
+
/**
|
|
7135
|
+
* @return {?}
|
|
7136
|
+
*/
|
|
7137
|
+
FHGridComponent.prototype.elimina_config = /**
|
|
7138
|
+
* @return {?}
|
|
7139
|
+
*/
|
|
7140
|
+
function () {
|
|
7141
|
+
var _this = this;
|
|
7142
|
+
if (this.gf.getObj().username != null)
|
|
7143
|
+
if (this.m_appService.user != this.gf.getObj().username) {
|
|
7144
|
+
this._toast.error('Configurazione gestibile da: ' + this.gf.getObj().username);
|
|
7145
|
+
return;
|
|
7146
|
+
}
|
|
7147
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
|
|
7148
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler cancellare la configurazione " + this.gf.getDescri() + "?");
|
|
7149
|
+
/** @type {?} */
|
|
7150
|
+
var dialogRef = this.m_dialog.open(FHConfirmComponent, { 'disableClose': true });
|
|
7151
|
+
dialogRef.afterClosed().subscribe((/**
|
|
7152
|
+
* @param {?} result
|
|
7153
|
+
* @return {?}
|
|
7154
|
+
*/
|
|
7155
|
+
function (result) {
|
|
7156
|
+
if (result) {
|
|
7157
|
+
/** @type {?} */
|
|
7158
|
+
var p = new QParam();
|
|
7159
|
+
p.sql = "DELETE_CFG_GRID";
|
|
7160
|
+
p.types = ['string', 'string'];
|
|
7161
|
+
p.values = [_this.gf.getDescri(), _this.grid_key];
|
|
7162
|
+
_this._dataService.doQuery(p).subscribe((/**
|
|
7163
|
+
* @param {?} data
|
|
7164
|
+
* @return {?}
|
|
7165
|
+
*/
|
|
7166
|
+
function (data) {
|
|
7167
|
+
if (data != null)
|
|
7168
|
+
if (data.result_msg == "OK") {
|
|
7169
|
+
_this._toast.info('Configurazione eliminata');
|
|
7170
|
+
_this.gf.types = ['string'];
|
|
7171
|
+
_this.gf.values = [_this.grid_key];
|
|
7172
|
+
_this.gf.fillCombo();
|
|
7173
|
+
_this.curr_config = '-1';
|
|
7174
|
+
}
|
|
7175
|
+
}));
|
|
7176
|
+
}
|
|
7177
|
+
}));
|
|
7178
|
+
};
|
|
7134
7179
|
/**
|
|
7135
7180
|
* @return {?}
|
|
7136
7181
|
*/
|
|
@@ -7139,6 +7184,11 @@
|
|
|
7139
7184
|
*/
|
|
7140
7185
|
function () {
|
|
7141
7186
|
var _this = this;
|
|
7187
|
+
if (this.gf.getObj().username != null)
|
|
7188
|
+
if (this.m_appService.user != this.gf.getObj().username) {
|
|
7189
|
+
this._toast.error('Configurazione gestibile da: ' + this.gf.getObj().username);
|
|
7190
|
+
return;
|
|
7191
|
+
}
|
|
7142
7192
|
localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
|
|
7143
7193
|
localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler sovrascrivere la configurazione " + this.gf.getDescri() + "?");
|
|
7144
7194
|
/** @type {?} */
|
|
@@ -7177,6 +7227,7 @@
|
|
|
7177
7227
|
_this.gf.types = ['string'];
|
|
7178
7228
|
_this.gf.values = [_this.grid_key];
|
|
7179
7229
|
_this.gf.fillCombo();
|
|
7230
|
+
_this.curr_config = '-1';
|
|
7180
7231
|
}
|
|
7181
7232
|
}), (/**
|
|
7182
7233
|
* @param {?} err
|
|
@@ -7683,13 +7734,17 @@
|
|
|
7683
7734
|
this.show_pulisci_filtri = false;
|
|
7684
7735
|
};
|
|
7685
7736
|
/**
|
|
7737
|
+
* @param {?=} format
|
|
7686
7738
|
* @return {?}
|
|
7687
7739
|
*/
|
|
7688
7740
|
FHGridComponent.prototype.export_excel = /**
|
|
7741
|
+
* @param {?=} format
|
|
7689
7742
|
* @return {?}
|
|
7690
7743
|
*/
|
|
7691
|
-
function () {
|
|
7744
|
+
function (format) {
|
|
7692
7745
|
var _this = this;
|
|
7746
|
+
if (format === void 0) { format = 'xlsx'; }
|
|
7747
|
+
format = '.' + format;
|
|
7693
7748
|
this.uiid_stampa = this.uti_s.newGuid();
|
|
7694
7749
|
this.xxopx = 0;
|
|
7695
7750
|
this.dialogRef_W = this.m_dialog.open(WinWait, {
|
|
@@ -7700,19 +7755,28 @@
|
|
|
7700
7755
|
var cmds = [];
|
|
7701
7756
|
/** @type {?} */
|
|
7702
7757
|
var str_fields = "";
|
|
7758
|
+
/** @type {?} */
|
|
7759
|
+
var p_col = this.gridOptions.columnApi.getColumnState();
|
|
7703
7760
|
for (var i = 0; i < this.columnDefs.length; i++)
|
|
7704
7761
|
if (this.columnDefs[i] != null)
|
|
7705
7762
|
if (this.columnDefs[i].field != null)
|
|
7706
7763
|
if (this.columnDefs[i].headerName != null)
|
|
7707
7764
|
if (this.columnDefs[i].field != '')
|
|
7708
|
-
if (this.columnDefs[i].headerName != '')
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7765
|
+
if (this.columnDefs[i].headerName != '')
|
|
7766
|
+
for (var j = 0; j < p_col.length; j++) {
|
|
7767
|
+
if (this.columnDefs[i].field == p_col[j].colId) {
|
|
7768
|
+
if (!p_col[j].hide) {
|
|
7769
|
+
if (str_fields != '')
|
|
7770
|
+
str_fields += ',';
|
|
7771
|
+
str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
|
|
7772
|
+
}
|
|
7773
|
+
}
|
|
7774
|
+
}
|
|
7775
|
+
if (this.fields.indexOf('DISTINCT') != -1)
|
|
7776
|
+
str_fields = 'DISTINCT ' + str_fields;
|
|
7777
|
+
cmds.push(this.officeService.operation("GB_XLS_APRI", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
|
|
7778
|
+
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++));
|
|
7779
|
+
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++));
|
|
7716
7780
|
this.officeService.runCommands(this.uiid_stampa, cmds, this.dialogRef_W).subscribe((/**
|
|
7717
7781
|
* @param {?} data
|
|
7718
7782
|
* @return {?}
|
|
@@ -7723,7 +7787,7 @@
|
|
|
7723
7787
|
var p = new FSInput();
|
|
7724
7788
|
p.p1 =
|
|
7725
7789
|
_this.m_appService.LOCAL_PATH + "grid_reports\\" + _this.uiid_stampa + "_" + _this.m_appService.user +
|
|
7726
|
-
|
|
7790
|
+
format;
|
|
7727
7791
|
p.command = "check_file";
|
|
7728
7792
|
_this._fileService.doQuery(p).subscribe((/**
|
|
7729
7793
|
* @param {?} data
|
|
@@ -7754,11 +7818,20 @@
|
|
|
7754
7818
|
else {
|
|
7755
7819
|
window.open(_this.m_appService.COMPANY_SITE_ROOT + "/grid_reports/" +
|
|
7756
7820
|
_this.uiid_stampa + "_" + _this.m_appService.user +
|
|
7757
|
-
|
|
7821
|
+
format);
|
|
7758
7822
|
}
|
|
7759
7823
|
}));
|
|
7760
7824
|
}));
|
|
7761
7825
|
};
|
|
7826
|
+
/**
|
|
7827
|
+
* @return {?}
|
|
7828
|
+
*/
|
|
7829
|
+
FHGridComponent.prototype.print = /**
|
|
7830
|
+
* @return {?}
|
|
7831
|
+
*/
|
|
7832
|
+
function () {
|
|
7833
|
+
this.export_excel('pdf');
|
|
7834
|
+
};
|
|
7762
7835
|
/**
|
|
7763
7836
|
* @private
|
|
7764
7837
|
* @return {?}
|
|
@@ -8505,7 +8578,7 @@
|
|
|
8505
8578
|
FHGridComponent.decorators = [
|
|
8506
8579
|
{ type: core.Component, args: [{
|
|
8507
8580
|
selector: 'FHGrid',
|
|
8508
|
-
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 <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\" >\r\n <div>\r\n\t\t \t\t<h5>{{num_r}} {{label_elementi}}</h5>\r\n </div>\r\n \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> \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 \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> \r\n <div *ngIf=\"abilita_export\" matTooltip=\"EXPORT EXCEL\" matTooltipPosition=\"above\">\r\n
|
|
8581
|
+
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 <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"start center\" >\r\n <div>\r\n\t\t \t\t<h5>{{num_r}} {{label_elementi}}</h5>\r\n </div>\r\n \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> \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 \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> \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> \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",
|
|
8509
8582
|
styles: ["\n\n "]
|
|
8510
8583
|
}] }
|
|
8511
8584
|
];
|
|
@@ -13327,19 +13400,14 @@
|
|
|
13327
13400
|
* @return {?}
|
|
13328
13401
|
*/
|
|
13329
13402
|
function (data) {
|
|
13330
|
-
/** @type {?} */
|
|
13331
|
-
var ok_op = false;
|
|
13332
13403
|
if (data != null)
|
|
13333
13404
|
if (data.result_msg == "OK") {
|
|
13334
13405
|
_this.commenti_list = data.result_data;
|
|
13335
13406
|
for (var i = 0; i < _this.commenti_list.length; i++) {
|
|
13336
13407
|
_this.commenti_list[i].v_commento = '<b>' + _this.commenti_list[i].commento.replace(/\n/g, '<br/>') + '</b>';
|
|
13337
13408
|
}
|
|
13338
|
-
|
|
13409
|
+
_this.title = 'COMMENTI';
|
|
13339
13410
|
}
|
|
13340
|
-
if (!ok_op) {
|
|
13341
|
-
_this.toastr.error("ERRORE", data.msg);
|
|
13342
|
-
}
|
|
13343
13411
|
}), (/**
|
|
13344
13412
|
* @param {?} err
|
|
13345
13413
|
* @return {?}
|
|
@@ -13362,7 +13430,7 @@
|
|
|
13362
13430
|
this.toastr.error("INSERIRE UN COMMENTO");
|
|
13363
13431
|
return;
|
|
13364
13432
|
}
|
|
13365
|
-
if (this.notifica_commenti
|
|
13433
|
+
if (this.notifica_commenti != 2)
|
|
13366
13434
|
this.select_destinatari();
|
|
13367
13435
|
else
|
|
13368
13436
|
this.select_destinatari_grp();
|
|
@@ -17665,7 +17733,7 @@
|
|
|
17665
17733
|
function () { _this.init_user_i(); _this.init_engine(); }), 100);
|
|
17666
17734
|
return;
|
|
17667
17735
|
}
|
|
17668
|
-
console.log('init_engine ');
|
|
17736
|
+
//console.log('init_engine ');
|
|
17669
17737
|
this.m_route.params.subscribe((/**
|
|
17670
17738
|
* @param {?} params
|
|
17671
17739
|
* @return {?}
|
|
@@ -17831,7 +17899,6 @@
|
|
|
17831
17899
|
this.edit_button = false;
|
|
17832
17900
|
this.respingi_button = false;
|
|
17833
17901
|
this.procedi_button = true;
|
|
17834
|
-
this.icon_mode = false;
|
|
17835
17902
|
}
|
|
17836
17903
|
/**
|
|
17837
17904
|
* @return {?}
|
|
@@ -17908,7 +17975,7 @@
|
|
|
17908
17975
|
wkf_header_bar.decorators = [
|
|
17909
17976
|
{ type: core.Component, args: [{
|
|
17910
17977
|
selector: 'wkf_header_bar',
|
|
17911
|
-
template: "\n\n
|
|
17978
|
+
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> \n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button> \n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button> \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> \n-->\n</div>\n \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> Info Doc</button> \n<button mat-flat-button (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon> Commenti {{dt_agg?.comm_c}}</button> \n<button mat-flat-button (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon> Allegati {{dt_agg?.all_c}}</button> \n<button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon> Workflow</button>\n</div>\n \n "
|
|
17912
17979
|
}] }
|
|
17913
17980
|
];
|
|
17914
17981
|
/** @nocollapse */
|
|
@@ -17919,8 +17986,7 @@
|
|
|
17919
17986
|
dt_agg: [{ type: core.Input }],
|
|
17920
17987
|
edit_button: [{ type: core.Input }],
|
|
17921
17988
|
respingi_button: [{ type: core.Input }],
|
|
17922
|
-
procedi_button: [{ type: core.Input }]
|
|
17923
|
-
icon_mode: [{ type: core.Input }]
|
|
17989
|
+
procedi_button: [{ type: core.Input }]
|
|
17924
17990
|
};
|
|
17925
17991
|
return wkf_header_bar;
|
|
17926
17992
|
}());
|