@fluxhub/fluxhub-lib 10.0.667 → 10.0.669

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.
@@ -23538,37 +23538,44 @@
23538
23538
  fs.p1 = 'exec_wkf';
23539
23539
  else
23540
23540
  fs.p1 = 'create_ver';
23541
- fs.p2 = JSON.stringify({
23542
- transizione: trans,
23543
- destinatari: arrdest,
23544
- commento: comm,
23545
- assegnati_paralleli: assegnati_paralleli,
23546
- id_applicazione: this.id_applicativo,
23547
- id_documento: this.id_documento,
23548
- username: this.app_s.user,
23549
- title: this.getTitle().split('"').join("_doppiap_"),
23550
- descri: this.getDescri().split('"').join("_doppiap_")
23551
- }).split('\"').join("\"\"");
23552
- if (crea_ver) {
23553
- fs.p2 = JSON.stringify({
23554
- transizione: { uiid_wkf: trans.uiid_wkf, uiid: trans.uiid, step_d: trans.step_d },
23555
- commento: comm,
23556
- id_applicazione: this.id_applicativo,
23557
- id_documento: this.id_documento,
23558
- username: this.app_s.user
23559
- }).split('\"').join("\"\"");
23560
- }
23561
- this.reset_updw();
23562
- this.m_fileservice.doQuery(fs).subscribe(function (data) {
23563
- console.log(data);
23564
- if (trans.step_d >= 900)
23565
- _this.doEnd(trans.step_d);
23566
- else
23567
- _this.chstato(trans.step_d);
23568
- if (_this.dialogRef_ww != null)
23569
- if (_this.dialogRef_ww.componentInstance != null)
23570
- _this.dialogRef_ww.componentInstance.update_progess(100);
23571
- _this.goto_edit_doc();
23541
+ var uiid_op = this.uti_s.newGuid();
23542
+ fs.p2 = uiid_op;
23543
+ var p = new QParam();
23544
+ p.sql = "INSERT_WKF_OP";
23545
+ if (!crea_ver)
23546
+ p.values = [uiid_op, JSON.stringify({
23547
+ transizione: trans,
23548
+ destinatari: arrdest,
23549
+ commento: comm,
23550
+ assegnati_paralleli: assegnati_paralleli,
23551
+ id_applicazione: this.id_applicativo,
23552
+ id_documento: this.id_documento,
23553
+ username: this.app_s.user,
23554
+ title: this.getTitle().split('"').join("_doppiap_"),
23555
+ descri: this.getDescri().split('"').join("_doppiap_")
23556
+ })];
23557
+ else
23558
+ p.values = [uiid_op, JSON.stringify({
23559
+ transizione: { uiid_wkf: trans.uiid_wkf, uiid: trans.uiid, step_d: trans.step_d },
23560
+ commento: comm,
23561
+ id_applicazione: this.id_applicativo,
23562
+ id_documento: this.id_documento,
23563
+ username: this.app_s.user
23564
+ })];
23565
+ p.types = ["string", "string"];
23566
+ this.m_dataService.doQuery(p).subscribe(function (data) {
23567
+ _this.reset_updw();
23568
+ _this.m_fileservice.doQuery(fs).subscribe(function (data) {
23569
+ console.log(data);
23570
+ if (trans.step_d >= 900)
23571
+ _this.doEnd(trans.step_d);
23572
+ else
23573
+ _this.chstato(trans.step_d);
23574
+ if (_this.dialogRef_ww != null)
23575
+ if (_this.dialogRef_ww.componentInstance != null)
23576
+ _this.dialogRef_ww.componentInstance.update_progess(100);
23577
+ _this.goto_edit_doc();
23578
+ });
23572
23579
  });
23573
23580
  };
23574
23581
  dati_aggiuntivi_v2.prototype.reset_updw = function () {