@fluxhub/fluxhub-lib 10.0.237 → 10.0.239

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.
@@ -4996,7 +4996,7 @@
4996
4996
  if (data != null) {
4997
4997
  if (data.result_msg == "OK") {
4998
4998
  var p_1 = new FSInput();
4999
- p_1.command = "exec_app";
4999
+ p_1.command = "exec_app_async";
5000
5000
  p_1.p1 = "print_manager";
5001
5001
  p_1.p2 = uiid;
5002
5002
  if (dialogRef_W != null)
@@ -6118,44 +6118,38 @@
6118
6118
  this.officeService
6119
6119
  .runCommands(this.uiid_stampa, cmds, this.dialogRef_W)
6120
6120
  .subscribe(function (data) {
6121
- setTimeout(function () {
6122
- _this.dialogRef_W.componentInstance.update_progess(100);
6123
- });
6124
- var p = new FSInput();
6125
- p.p1 =
6126
- _this.m_appService.LOCAL_PATH +
6127
- "grid_reports\\" +
6128
- _this.uiid_stampa +
6129
- "_" +
6130
- _this.m_appService.user +
6131
- format;
6132
- p.command = "check_file";
6133
- _this._fileService.doQuery(p).subscribe(function (data) {
6134
- if (data != null)
6135
- if (data.msg == "N") {
6136
- var p_1 = new QParam();
6137
- p_1.sql = "SELECT_OFFICE_OPERATION_FINISCHED";
6138
- p_1.types = ["string"];
6139
- p_1.values = [_this.uiid_stampa];
6140
- _this._dataService.doQuery(p_1).subscribe(function (data) {
6141
- if (data != null)
6142
- if (data.result_msg == "OK")
6143
- if (data.result_data.length > 0) {
6144
- _this._toast.error(data.result_data[0].result_msg);
6145
- return;
6146
- }
6147
- _this._toast.error("ERRORE DI STAMPA");
6148
- });
6149
- }
6150
- else {
6151
- window.open(_this.m_appService.COMPANY_SITE_ROOT +
6152
- "/grid_reports/" +
6153
- _this.uiid_stampa +
6154
- "_" +
6155
- _this.m_appService.user +
6156
- format);
6157
- }
6158
- });
6121
+ _this.check_end(format);
6122
+ });
6123
+ };
6124
+ FHGridComponent.prototype.check_end = function (format) {
6125
+ var _this = this;
6126
+ var p = new FSInput();
6127
+ p.p1 =
6128
+ this.m_appService.LOCAL_PATH +
6129
+ "grid_reports\\" +
6130
+ this.uiid_stampa +
6131
+ "_" +
6132
+ this.m_appService.user +
6133
+ format;
6134
+ p.command = "check_file";
6135
+ this._fileService.doQuery(p).subscribe(function (data) {
6136
+ if (data != null)
6137
+ if (data.msg == "N") {
6138
+ setTimeout(function () {
6139
+ _this.check_end(format);
6140
+ }, 1000);
6141
+ }
6142
+ else {
6143
+ setTimeout(function () {
6144
+ _this.dialogRef_W.componentInstance.update_progess(100);
6145
+ });
6146
+ window.open(_this.m_appService.COMPANY_SITE_ROOT +
6147
+ "/grid_reports/" +
6148
+ _this.uiid_stampa +
6149
+ "_" +
6150
+ _this.m_appService.user +
6151
+ format);
6152
+ }
6159
6153
  });
6160
6154
  };
6161
6155
  FHGridComponent.prototype.print = function () {