@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.
@@ -7017,43 +7017,42 @@
7017
7017
  * @return {?}
7018
7018
  */
7019
7019
  function () {
7020
- var _this = this;
7021
- /** @type {?} */
7020
+ this.export_excel();
7021
+ /*
7022
7022
  var params = {
7023
- skipHeader: false,
7024
- columnGroups: false,
7025
- skipFooters: true,
7026
- skipGroups: true,
7027
- skipPinnedTop: true,
7028
- skipPinnedBottom: true,
7029
- allColumns: true,
7030
- onlySelected: false,
7031
- suppressQuotes: false,
7032
- processCellCallback: (/**
7033
- * @param {?} params
7034
- * @return {?}
7035
- */
7036
- function (params) {
7037
- if (params.value) {
7038
- // console.log(params.value);
7039
- if (params.value == null)
7040
- return '';
7041
- if (typeof params.value.getMonth === 'function') {
7042
- return _this.uti_s.pad(params.value.getDate(), 2) + '/' + _this.uti_s.pad(params.value.getMonth() + 1, 2) + '/' + params.value.getFullYear();
7043
- }
7044
- else if (params.value.length == 24 && params.value.indexOf(':00.000Z') > -1) {
7045
- // console.log( new Date(params.value));
7046
- /** @type {?} */
7047
- var arrdt = new Date(params.value);
7048
- // let arrdt2=arrdt[1].split(':');
7049
- 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);
7050
- }
7051
- else
7052
- return params.value;
7053
- }
7054
- })
7055
- };
7056
- this.gridOptions.api.exportDataAsExcel(params);
7023
+ skipHeader: false,
7024
+ columnGroups: false,
7025
+ skipFooters: true,
7026
+ skipGroups: true,
7027
+ skipPinnedTop: true,
7028
+ skipPinnedBottom: true,
7029
+ allColumns: true,
7030
+ onlySelected: false,
7031
+ suppressQuotes: false,
7032
+ processCellCallback: (params) => {
7033
+ if (params.value) {
7034
+ // console.log(params.value);
7035
+ if (params.value == null) return '';
7036
+ if (typeof params.value.getMonth === 'function') {
7037
+
7038
+ return this.uti_s.pad(params.value.getDate(), 2) + '/' + this.uti_s.pad(params.value.getMonth() + 1, 2) + '/' + params.value.getFullYear();
7039
+ } else if (params.value.length == 24 && params.value.indexOf(':00.000Z') > -1) {
7040
+ // console.log( new Date(params.value));
7041
+ let arrdt: Date = new Date(params.value);
7042
+
7043
+ // let arrdt2=arrdt[1].split(':');
7044
+ 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);
7045
+
7046
+
7047
+ }
7048
+ else
7049
+ return params.value;
7050
+ }
7051
+
7052
+ }
7053
+ }
7054
+
7055
+ this.gridOptions.api.exportDataAsExcel(params);*/
7057
7056
  };
7058
7057
  /**
7059
7058
  * @param {?} n
@@ -7335,9 +7334,9 @@
7335
7334
  str_fields += ',';
7336
7335
  str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
7337
7336
  }
7338
- cmds.push(this.officeService.operation("EXCEL_APRI_EXP_GRID", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
7339
- cmds.push(this.officeService.operation("EXCEL_CREA_TABELLA_FROM_DB_EXP_GRID", "select " + str_fields + " from " + this.tbl_name + " " + this.str_curr_q_p, "", this.xxopx++));
7340
- cmds.push(this.officeService.operation("EXCEL_SALVA_EXP_GRID", "" + this.uiid_stampa + "_" + this.m_appService.user + ".xlsx", "", this.xxopx++));
7337
+ cmds.push(this.officeService.operation("EXCEL_APRI_EXP_GRID_NEW", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
7338
+ 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++));
7339
+ cmds.push(this.officeService.operation("EXCEL_SALVA_EXP_GRID_NEW", "" + this.uiid_stampa + "_" + this.m_appService.user + ".xlsx", "", this.xxopx++));
7341
7340
  this.officeService.runCommands(this.uiid_stampa, cmds, this.dialogRef_W).subscribe((/**
7342
7341
  * @param {?} data
7343
7342
  * @return {?}
@@ -7359,7 +7358,7 @@
7359
7358
  if (data.msg == "N")
7360
7359
  _this._toast.error(data.result_msg);
7361
7360
  else {
7362
- window.open(_this.m_appService.COMPANY_SITE_ROOT + "/exp_grid/" +
7361
+ window.open(_this.m_appService.COMPANY_SITE_ROOT + "/grid_reports/" +
7363
7362
  _this.uiid_stampa + "_" + _this.m_appService.user +
7364
7363
  ".xlsx");
7365
7364
  }