@fluxhub/fluxhub-lib 1.0.332 → 1.0.335
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 +39 -40
- 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/docs/js/search/search_index.js +1 -1
- package/docs/miscellaneous/variables.html +2 -2
- package/esm2015/lib/controls/fhgrid.js +40 -40
- package/esm5/lib/controls/fhgrid.js +40 -41
- package/fesm2015/fluxhub-fluxhub-lib.js +39 -39
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +39 -40
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6996,43 +6996,42 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6996
6996
|
* @return {?}
|
|
6997
6997
|
*/
|
|
6998
6998
|
function () {
|
|
6999
|
-
|
|
7000
|
-
|
|
6999
|
+
this.export_excel();
|
|
7000
|
+
/*
|
|
7001
7001
|
var params = {
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
this.gridOptions.api.exportDataAsExcel(params);
|
|
7002
|
+
skipHeader: false,
|
|
7003
|
+
columnGroups: false,
|
|
7004
|
+
skipFooters: true,
|
|
7005
|
+
skipGroups: true,
|
|
7006
|
+
skipPinnedTop: true,
|
|
7007
|
+
skipPinnedBottom: true,
|
|
7008
|
+
allColumns: true,
|
|
7009
|
+
onlySelected: false,
|
|
7010
|
+
suppressQuotes: false,
|
|
7011
|
+
processCellCallback: (params) => {
|
|
7012
|
+
if (params.value) {
|
|
7013
|
+
// console.log(params.value);
|
|
7014
|
+
if (params.value == null) return '';
|
|
7015
|
+
if (typeof params.value.getMonth === 'function') {
|
|
7016
|
+
|
|
7017
|
+
return this.uti_s.pad(params.value.getDate(), 2) + '/' + this.uti_s.pad(params.value.getMonth() + 1, 2) + '/' + params.value.getFullYear();
|
|
7018
|
+
} else if (params.value.length == 24 && params.value.indexOf(':00.000Z') > -1) {
|
|
7019
|
+
// console.log( new Date(params.value));
|
|
7020
|
+
let arrdt: Date = new Date(params.value);
|
|
7021
|
+
|
|
7022
|
+
// let arrdt2=arrdt[1].split(':');
|
|
7023
|
+
return this.uti_s.pad(arrdt.getDate(), 2) + '/' + this.uti_s.pad(arrdt.getMonth() + 1, 2) + '/' + arrdt.getFullYear() + ' ' + this.uti_s.pad(arrdt.getHours(), 2) + ':' + this.uti_s.pad(arrdt.getMinutes(), 2);
|
|
7024
|
+
|
|
7025
|
+
|
|
7026
|
+
}
|
|
7027
|
+
else
|
|
7028
|
+
return params.value;
|
|
7029
|
+
}
|
|
7030
|
+
|
|
7031
|
+
}
|
|
7032
|
+
}
|
|
7033
|
+
|
|
7034
|
+
this.gridOptions.api.exportDataAsExcel(params);*/
|
|
7036
7035
|
};
|
|
7037
7036
|
/**
|
|
7038
7037
|
* @param {?} n
|
|
@@ -7314,9 +7313,9 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
7314
7313
|
str_fields += ',';
|
|
7315
7314
|
str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
|
|
7316
7315
|
}
|
|
7317
|
-
cmds.push(this.officeService.operation("
|
|
7318
|
-
cmds.push(this.officeService.operation("
|
|
7319
|
-
cmds.push(this.officeService.operation("
|
|
7316
|
+
cmds.push(this.officeService.operation("EXCEL_APRI_EXP_GRID_NEW", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
|
|
7317
|
+
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++));
|
|
7318
|
+
cmds.push(this.officeService.operation("EXCEL_SALVA_EXP_GRID_NEW", "" + this.uiid_stampa + "_" + this.m_appService.user + ".xlsx", "", this.xxopx++));
|
|
7320
7319
|
this.officeService.runCommands(this.uiid_stampa, cmds, this.dialogRef_W).subscribe((/**
|
|
7321
7320
|
* @param {?} data
|
|
7322
7321
|
* @return {?}
|
|
@@ -7338,7 +7337,7 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
7338
7337
|
if (data.msg == "N")
|
|
7339
7338
|
_this._toast.error(data.result_msg);
|
|
7340
7339
|
else {
|
|
7341
|
-
window.open(_this.m_appService.COMPANY_SITE_ROOT + "/
|
|
7340
|
+
window.open(_this.m_appService.COMPANY_SITE_ROOT + "/grid_reports/" +
|
|
7342
7341
|
_this.uiid_stampa + "_" + _this.m_appService.user +
|
|
7343
7342
|
".xlsx");
|
|
7344
7343
|
}
|