@fluxhub/fluxhub-lib 10.0.659 → 10.0.661

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.
@@ -22726,7 +22726,7 @@
22726
22726
  ]; };
22727
22727
 
22728
22728
  var dati_aggiuntivi_v2 = /** @class */ (function () {
22729
- function dati_aggiuntivi_v2(app_s, m_dataService, m_router, m_dialog, m_route, m_wkf, uti_s, m_fileservice, tsr, _toastr) {
22729
+ function dati_aggiuntivi_v2(app_s, m_dataService, m_router, m_dialog, m_route, m_wkf, uti_s, m_fileservice, tsr) {
22730
22730
  var _this = this;
22731
22731
  this.app_s = app_s;
22732
22732
  this.m_dataService = m_dataService;
@@ -22737,7 +22737,6 @@
22737
22737
  this.uti_s = uti_s;
22738
22738
  this.m_fileservice = m_fileservice;
22739
22739
  this.tsr = tsr;
22740
- this._toastr = _toastr;
22741
22740
  this.m_obj = {};
22742
22741
  this.sort_field = "";
22743
22742
  this.in_carico = false;
@@ -23273,7 +23272,7 @@
23273
23272
  _this.update_status(true, true, null, null, 5);
23274
23273
  return;
23275
23274
  }
23276
- _this.exec_wkf(o, _this.nlevel, result.arrsel, result.nota, _this.transizione_info.create_ver);
23275
+ _this.exec_wkf(o, _this.nlevel, result.arrsel, result.nota, _this.transizione_info.create_ver, null);
23277
23276
  });
23278
23277
  }
23279
23278
  else {
@@ -23282,7 +23281,24 @@
23282
23281
  if (v.nc == null)
23283
23282
  v.nc = v.value.split('*').join('');
23284
23283
  });
23285
- console.log('arrAutori ', arrAutori);
23284
+ var arr_aut_1 = [];
23285
+ var arr_aut_all_1 = JSON.parse(JSON.stringify(arrAutori));
23286
+ var b_f_1 = false;
23287
+ arrAutori.map(function (v) {
23288
+ if (v.default_value != null)
23289
+ if (v.default_value == 1)
23290
+ b_f_1 = true;
23291
+ });
23292
+ console.log('b_f ', b_f_1);
23293
+ if (b_f_1) {
23294
+ arrAutori.map(function (v) {
23295
+ if (v.default_value != null)
23296
+ if (v.default_value == 1)
23297
+ arr_aut_1.push(v);
23298
+ });
23299
+ arrAutori = JSON.parse(JSON.stringify(arr_aut_1));
23300
+ }
23301
+ console.log('arrAutori ', arrAutori); //qui6
23286
23302
  for (var i = 0; i < arrAutori.length; i++)
23287
23303
  if (arrAutori[i].nc != null)
23288
23304
  if (sp.indexOf(arrAutori[i].nc) == -1) {
@@ -23311,7 +23327,7 @@
23311
23327
  _this.update_status(true, true, null, null, 7);
23312
23328
  return;
23313
23329
  }
23314
- _this.exec_wkf(o, _this.nlevel, arrAutori, result, _this.transizione_info.create_ver);
23330
+ _this.exec_wkf(o, _this.nlevel, arrAutori, result, _this.transizione_info.create_ver, arr_aut_all_1);
23315
23331
  });
23316
23332
  }
23317
23333
  /*
@@ -23424,7 +23440,7 @@
23424
23440
  dialogRef.afterClosed().subscribe(function (result) {
23425
23441
  if (result) {
23426
23442
  if (result.arrsel.lenght == 0) {
23427
- _this._toastr.error('Impossibile riassegnare');
23443
+ _this.alert("Impossibile riassegnare", 1);
23428
23444
  return;
23429
23445
  }
23430
23446
  console.log(' result.arrsel ', result.arrsel);
@@ -23486,7 +23502,7 @@
23486
23502
  }
23487
23503
  });
23488
23504
  };
23489
- dati_aggiuntivi_v2.prototype.exec_wkf = function (trans, liv, arrdest, comm, crea_ver) {
23505
+ dati_aggiuntivi_v2.prototype.exec_wkf = function (trans, liv, arrdest, comm, crea_ver, assegnati_paralleli) {
23490
23506
  var _this = this;
23491
23507
  if (crea_ver === void 0) { crea_ver = false; }
23492
23508
  if (crea_ver == null)
@@ -23495,6 +23511,8 @@
23495
23511
  disableClose: true, data: { label: this.tsr.instant('Attendere') }
23496
23512
  });
23497
23513
  this.ttw = 0;
23514
+ if (assegnati_paralleli == null)
23515
+ assegnati_paralleli = JSON.parse(JSON.stringify(arrdest));
23498
23516
  var fs = new FSInput();
23499
23517
  fs.command = "exec_app";
23500
23518
  if (!crea_ver)
@@ -23505,6 +23523,7 @@
23505
23523
  transizione: trans,
23506
23524
  destinatari: arrdest,
23507
23525
  commento: comm,
23526
+ assegnati_paralleli: assegnati_paralleli,
23508
23527
  id_applicazione: this.id_applicativo,
23509
23528
  id_documento: this.id_documento,
23510
23529
  username: this.app_s.user,
@@ -24654,8 +24673,7 @@
24654
24673
  { type: WkfService },
24655
24674
  { type: UtilityService },
24656
24675
  { type: FileService },
24657
- { type: core.TranslateService },
24658
- { type: i3.ToastrService }
24676
+ { type: core.TranslateService }
24659
24677
  ]; };
24660
24678
  dati_aggiuntivi_v2.propDecorators = {
24661
24679
  onResize: [{ type: i0.HostListener, args: ["window:resize", ["event"],] }]