@fluxhub/fluxhub-lib 1.0.332 → 1.0.334

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.
@@ -6996,43 +6996,42 @@ var FHGridComponent = /** @class */ (function () {
6996
6996
  * @return {?}
6997
6997
  */
6998
6998
  function () {
6999
- var _this = this;
7000
- /** @type {?} */
6999
+ this.export_excel();
7000
+ /*
7001
7001
  var 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: (/**
7012
- * @param {?} params
7013
- * @return {?}
7014
- */
7015
- function (params) {
7016
- if (params.value) {
7017
- // console.log(params.value);
7018
- if (params.value == null)
7019
- return '';
7020
- if (typeof params.value.getMonth === 'function') {
7021
- return _this.uti_s.pad(params.value.getDate(), 2) + '/' + _this.uti_s.pad(params.value.getMonth() + 1, 2) + '/' + params.value.getFullYear();
7022
- }
7023
- else if (params.value.length == 24 && params.value.indexOf(':00.000Z') > -1) {
7024
- // console.log( new Date(params.value));
7025
- /** @type {?} */
7026
- var arrdt = new Date(params.value);
7027
- // let arrdt2=arrdt[1].split(':');
7028
- 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);
7029
- }
7030
- else
7031
- return params.value;
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
@@ -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 + "/exp_grid/" +
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
  }