@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.
@@ -6641,42 +6641,42 @@ class FHGridComponent {
6641
6641
  * @return {?}
6642
6642
  */
6643
6643
  onBtExport() {
6644
- /** @type {?} */
6644
+ this.export_excel();
6645
+ /*
6645
6646
  var params = {
6646
- skipHeader: false,
6647
- columnGroups: false,
6648
- skipFooters: true,
6649
- skipGroups: true,
6650
- skipPinnedTop: true,
6651
- skipPinnedBottom: true,
6652
- allColumns: true,
6653
- onlySelected: false,
6654
- suppressQuotes: false,
6655
- processCellCallback: (/**
6656
- * @param {?} params
6657
- * @return {?}
6658
- */
6659
- (params) => {
6660
- if (params.value) {
6661
- // console.log(params.value);
6662
- if (params.value == null)
6663
- return '';
6664
- if (typeof params.value.getMonth === 'function') {
6665
- return this.uti_s.pad(params.value.getDate(), 2) + '/' + this.uti_s.pad(params.value.getMonth() + 1, 2) + '/' + params.value.getFullYear();
6666
- }
6667
- else if (params.value.length == 24 && params.value.indexOf(':00.000Z') > -1) {
6668
- // console.log( new Date(params.value));
6669
- /** @type {?} */
6670
- let arrdt = new Date(params.value);
6671
- // let arrdt2=arrdt[1].split(':');
6672
- 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);
6673
- }
6674
- else
6675
- return params.value;
6676
- }
6677
- })
6678
- };
6679
- this.gridOptions.api.exportDataAsExcel(params);
6647
+ skipHeader: false,
6648
+ columnGroups: false,
6649
+ skipFooters: true,
6650
+ skipGroups: true,
6651
+ skipPinnedTop: true,
6652
+ skipPinnedBottom: true,
6653
+ allColumns: true,
6654
+ onlySelected: false,
6655
+ suppressQuotes: false,
6656
+ processCellCallback: (params) => {
6657
+ if (params.value) {
6658
+ // console.log(params.value);
6659
+ if (params.value == null) return '';
6660
+ if (typeof params.value.getMonth === 'function') {
6661
+
6662
+ return this.uti_s.pad(params.value.getDate(), 2) + '/' + this.uti_s.pad(params.value.getMonth() + 1, 2) + '/' + params.value.getFullYear();
6663
+ } else if (params.value.length == 24 && params.value.indexOf(':00.000Z') > -1) {
6664
+ // console.log( new Date(params.value));
6665
+ let arrdt: Date = new Date(params.value);
6666
+
6667
+ // let arrdt2=arrdt[1].split(':');
6668
+ 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);
6669
+
6670
+
6671
+ }
6672
+ else
6673
+ return params.value;
6674
+ }
6675
+
6676
+ }
6677
+ }
6678
+
6679
+ this.gridOptions.api.exportDataAsExcel(params);*/
6680
6680
  }
6681
6681
  /**
6682
6682
  * @param {?} n
@@ -6904,9 +6904,9 @@ class FHGridComponent {
6904
6904
  str_fields += ',';
6905
6905
  str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
6906
6906
  }
6907
- cmds.push(this.officeService.operation("EXCEL_APRI_EXP_GRID", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
6908
- 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++));
6909
- cmds.push(this.officeService.operation("EXCEL_SALVA_EXP_GRID", "" + this.uiid_stampa + "_" + this.m_appService.user + ".xlsx", "", this.xxopx++));
6907
+ cmds.push(this.officeService.operation("EXCEL_APRI_EXP_GRID_NEW", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
6908
+ 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++));
6909
+ cmds.push(this.officeService.operation("EXCEL_SALVA_EXP_GRID_NEW", "" + this.uiid_stampa + "_" + this.m_appService.user + ".xlsx", "", this.xxopx++));
6910
6910
  this.officeService.runCommands(this.uiid_stampa, cmds, this.dialogRef_W).subscribe((/**
6911
6911
  * @param {?} data
6912
6912
  * @return {?}
@@ -6928,7 +6928,7 @@ class FHGridComponent {
6928
6928
  if (data.msg == "N")
6929
6929
  this._toast.error(data.result_msg);
6930
6930
  else {
6931
- window.open(this.m_appService.COMPANY_SITE_ROOT + "/exp_grid/" +
6931
+ window.open(this.m_appService.COMPANY_SITE_ROOT + "/grid_reports/" +
6932
6932
  this.uiid_stampa + "_" + this.m_appService.user +
6933
6933
  ".xlsx");
6934
6934
  }