@fluxhub/fluxhub-lib 10.0.238 → 10.0.240

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.
@@ -8663,44 +8663,37 @@ class FHGridComponent {
8663
8663
  this.officeService
8664
8664
  .runCommands(this.uiid_stampa, cmds, this.dialogRef_W)
8665
8665
  .subscribe((data) => {
8666
- setTimeout(() => {
8667
- this.dialogRef_W.componentInstance.update_progess(100);
8668
- });
8669
- let p = new FSInput();
8670
- p.p1 =
8671
- this.m_appService.LOCAL_PATH +
8672
- "grid_reports\\" +
8673
- this.uiid_stampa +
8674
- "_" +
8675
- this.m_appService.user +
8676
- format;
8677
- p.command = "check_file";
8678
- this._fileService.doQuery(p).subscribe((data) => {
8679
- if (data != null)
8680
- if (data.msg == "N") {
8681
- let p = new QParam();
8682
- p.sql = "SELECT_OFFICE_OPERATION_FINISCHED";
8683
- p.types = ["string"];
8684
- p.values = [this.uiid_stampa];
8685
- this._dataService.doQuery(p).subscribe((data) => {
8686
- if (data != null)
8687
- if (data.result_msg == "OK")
8688
- if (data.result_data.length > 0) {
8689
- this._toast.error(data.result_data[0].result_msg);
8690
- return;
8691
- }
8692
- this._toast.error("ERRORE DI STAMPA");
8693
- });
8694
- }
8695
- else {
8696
- window.open(this.m_appService.COMPANY_SITE_ROOT +
8697
- "/grid_reports/" +
8698
- this.uiid_stampa +
8699
- "_" +
8700
- this.m_appService.user +
8701
- format);
8702
- }
8703
- });
8666
+ this.check_end(format);
8667
+ });
8668
+ }
8669
+ check_end(format) {
8670
+ let p = new FSInput();
8671
+ p.p1 =
8672
+ this.m_appService.LOCAL_PATH +
8673
+ "grid_reports\\" +
8674
+ this.uiid_stampa +
8675
+ "_" +
8676
+ this.m_appService.user +
8677
+ format;
8678
+ p.command = "check_file";
8679
+ this._fileService.doQuery(p).subscribe((data) => {
8680
+ if (data != null)
8681
+ if (data.msg == "N") {
8682
+ setTimeout(() => {
8683
+ this.check_end(format);
8684
+ }, 5000);
8685
+ }
8686
+ else {
8687
+ setTimeout(() => {
8688
+ this.dialogRef_W.componentInstance.update_progess(100);
8689
+ });
8690
+ window.open(this.m_appService.COMPANY_SITE_ROOT +
8691
+ "/grid_reports/" +
8692
+ this.uiid_stampa +
8693
+ "_" +
8694
+ this.m_appService.user +
8695
+ format);
8696
+ }
8704
8697
  });
8705
8698
  }
8706
8699
  print() {