@fluxhub/fluxhub-lib 21.0.4 → 21.0.5

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.
@@ -9571,12 +9571,14 @@ class FHGridComponent {
9571
9571
  this.check_end(type == 'pdf' ? '.pdf' : '.xlsx');
9572
9572
  });
9573
9573
  }
9574
- check_end(format) {
9574
+ // uiid e finestra dell'export che ha avviato il controllo: con un secondo export
9575
+ // partito nel frattempo (doppio clic) this.uiid_stampa/dialogRef_W sono gia' dell'altro
9576
+ check_end(format, uiid = this.uiid_stampa, dialogRef = this.dialogRef_W) {
9575
9577
  let p = new FSInput();
9576
9578
  p.p1 =
9577
9579
  this.m_appService.LOCAL_PATH +
9578
9580
  'grid_reports\\' +
9579
- this.uiid_stampa +
9581
+ uiid +
9580
9582
  '_' +
9581
9583
  this.m_appService.user +
9582
9584
  format;
@@ -9585,20 +9587,20 @@ class FHGridComponent {
9585
9587
  if (data != null)
9586
9588
  if (data.msg == 'N') {
9587
9589
  setTimeout(() => {
9588
- this.check_end(format);
9590
+ this.check_end(format, uiid, dialogRef);
9589
9591
  }, 1000);
9590
9592
  }
9591
9593
  else {
9592
9594
  setTimeout(() => {
9593
- this.dialogRef_W.componentInstance.update_progess(100);
9595
+ dialogRef?.componentInstance?.update_progess(100);
9594
9596
  });
9595
9597
  setTimeout(() => {
9596
9598
  this.downloadFile(this.m_appService.COMPANY_SITE_ROOT +
9597
9599
  '/grid_reports/' +
9598
- this.uiid_stampa +
9600
+ uiid +
9599
9601
  '_' +
9600
9602
  this.m_appService.user +
9601
- format, this.uiid_stampa +
9603
+ format, uiid +
9602
9604
  '_' +
9603
9605
  this.m_appService.user +
9604
9606
  format);
@@ -28172,12 +28174,14 @@ class FHGridInternalComponent {
28172
28174
  this.check_end(format);
28173
28175
  });
28174
28176
  }
28175
- check_end(format) {
28177
+ // uiid e finestra dell'export che ha avviato il controllo: con un secondo export
28178
+ // partito nel frattempo (doppio clic) this.uiid_stampa/dialogRef_W sono gia' dell'altro
28179
+ check_end(format, uiid = this.uiid_stampa, dialogRef = this.dialogRef_W) {
28176
28180
  let p = new FSInput();
28177
28181
  p.p1 =
28178
28182
  this.m_appService.LOCAL_PATH +
28179
28183
  'grid_reports\\' +
28180
- this.uiid_stampa +
28184
+ uiid +
28181
28185
  '_' +
28182
28186
  this.m_appService.user +
28183
28187
  format;
@@ -28186,20 +28190,20 @@ class FHGridInternalComponent {
28186
28190
  if (data != null)
28187
28191
  if (data.msg == 'N') {
28188
28192
  setTimeout(() => {
28189
- this.check_end(format);
28193
+ this.check_end(format, uiid, dialogRef);
28190
28194
  }, 5000);
28191
28195
  }
28192
28196
  else {
28193
28197
  setTimeout(() => {
28194
- this.dialogRef_W.componentInstance.update_progess(100);
28198
+ dialogRef?.componentInstance?.update_progess(100);
28195
28199
  });
28196
28200
  setTimeout(() => {
28197
28201
  this.downloadFile(this.m_appService.COMPANY_SITE_ROOT +
28198
28202
  '/grid_reports/' +
28199
- this.uiid_stampa +
28203
+ uiid +
28200
28204
  '_' +
28201
28205
  this.m_appService.user +
28202
- format, this.uiid_stampa +
28206
+ format, uiid +
28203
28207
  '_' +
28204
28208
  this.m_appService.user +
28205
28209
  format);