@fluxhub/fluxhub-lib 22.0.9 → 22.0.11
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.
|
@@ -10929,13 +10929,15 @@ class FHGridComponent {
|
|
|
10929
10929
|
this.check_end(type == 'pdf' ? '.pdf' : '.xlsx');
|
|
10930
10930
|
});
|
|
10931
10931
|
}
|
|
10932
|
-
|
|
10932
|
+
// uiid e finestra dell'export che ha avviato il controllo: con un secondo export
|
|
10933
|
+
// partito nel frattempo (doppio clic) this.uiid_stampa/dialogRef_W sono gia' dell'altro
|
|
10934
|
+
check_end(format, uiid = this.uiid_stampa, dialogRef = this.dialogRef_W) {
|
|
10933
10935
|
let p = new FSInput();
|
|
10934
10936
|
p.p1 =
|
|
10935
10937
|
this.m_appService.LOCAL_PATH +
|
|
10936
10938
|
'grid_reports' +
|
|
10937
10939
|
(this.m_appService.LOCAL_PATH.indexOf('/') >= 0 ? '/' : '\\') +
|
|
10938
|
-
|
|
10940
|
+
uiid +
|
|
10939
10941
|
'_' +
|
|
10940
10942
|
this.m_appService.user +
|
|
10941
10943
|
format;
|
|
@@ -10944,20 +10946,20 @@ class FHGridComponent {
|
|
|
10944
10946
|
if (data != null)
|
|
10945
10947
|
if (data.msg == 'N') {
|
|
10946
10948
|
setTimeout(() => {
|
|
10947
|
-
this.check_end(format);
|
|
10949
|
+
this.check_end(format, uiid, dialogRef);
|
|
10948
10950
|
}, 1000);
|
|
10949
10951
|
}
|
|
10950
10952
|
else {
|
|
10951
10953
|
setTimeout(() => {
|
|
10952
|
-
|
|
10954
|
+
dialogRef?.componentInstance?.update_progess(100);
|
|
10953
10955
|
});
|
|
10954
10956
|
setTimeout(() => {
|
|
10955
10957
|
this.downloadFile(this.m_appService.COMPANY_SITE_ROOT +
|
|
10956
10958
|
'/grid_reports/' +
|
|
10957
|
-
|
|
10959
|
+
uiid +
|
|
10958
10960
|
'_' +
|
|
10959
10961
|
this.m_appService.user +
|
|
10960
|
-
format,
|
|
10962
|
+
format, uiid + '_' + this.m_appService.user + format);
|
|
10961
10963
|
}, 2000);
|
|
10962
10964
|
}
|
|
10963
10965
|
});
|
|
@@ -11317,6 +11319,9 @@ class FHGridComponent {
|
|
|
11317
11319
|
* (pulsante in toolbar): in quel caso la grid è per definizione a video, quindi
|
|
11318
11320
|
* si salta l'euristica di visibilità e non si rimanda mai. */
|
|
11319
11321
|
autoSizeAll(force = false) {
|
|
11322
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
11323
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
11324
|
+
return;
|
|
11320
11325
|
if (this.gridOptions == null)
|
|
11321
11326
|
return;
|
|
11322
11327
|
if (this.gridApi == null)
|
|
@@ -11347,6 +11352,9 @@ class FHGridComponent {
|
|
|
11347
11352
|
this.save_cfg();
|
|
11348
11353
|
}
|
|
11349
11354
|
fitSizeAll() {
|
|
11355
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
11356
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
11357
|
+
return;
|
|
11350
11358
|
console.log('fitSizeAll called');
|
|
11351
11359
|
if (this.gridApi)
|
|
11352
11360
|
this.gridApi.sizeColumnsToFit();
|
|
@@ -26353,6 +26361,9 @@ class FHWinGridSelection {
|
|
|
26353
26361
|
}, 100);
|
|
26354
26362
|
}
|
|
26355
26363
|
autoSizeAll() {
|
|
26364
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
26365
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
26366
|
+
return;
|
|
26356
26367
|
if (this.gridOptions == null)
|
|
26357
26368
|
return;
|
|
26358
26369
|
if (this.gridApi == null)
|
|
@@ -26371,6 +26382,9 @@ class FHWinGridSelection {
|
|
|
26371
26382
|
}
|
|
26372
26383
|
}
|
|
26373
26384
|
fitSizeAll() {
|
|
26385
|
+
// richiamata anche da setTimeout: la griglia puo' essere gia' distrutta
|
|
26386
|
+
if (!this.gridApi || this.gridApi.isDestroyed?.())
|
|
26387
|
+
return;
|
|
26374
26388
|
if (this.gridApi)
|
|
26375
26389
|
this.gridApi.sizeColumnsToFit();
|
|
26376
26390
|
}
|