@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.
@@ -24920,37 +24920,44 @@ class dati_aggiuntivi_v2 {
24920
24920
  fs.p1 = 'exec_wkf';
24921
24921
  else
24922
24922
  fs.p1 = 'create_ver';
24923
- fs.p2 = JSON.stringify({
24924
- transizione: trans,
24925
- destinatari: arrdest,
24926
- commento: comm,
24927
- assegnati_paralleli: assegnati_paralleli,
24928
- id_applicazione: this.id_applicativo,
24929
- id_documento: this.id_documento,
24930
- username: this.app_s.user,
24931
- title: this.getTitle().split('"').join("_doppiap_"),
24932
- descri: this.getDescri().split('"').join("_doppiap_")
24933
- }).split('\"').join("\"\"");
24934
- if (crea_ver) {
24935
- fs.p2 = JSON.stringify({
24936
- transizione: { uiid_wkf: trans.uiid_wkf, uiid: trans.uiid, step_d: trans.step_d },
24937
- commento: comm,
24938
- id_applicazione: this.id_applicativo,
24939
- id_documento: this.id_documento,
24940
- username: this.app_s.user
24941
- }).split('\"').join("\"\"");
24942
- }
24943
- this.reset_updw();
24944
- this.m_fileservice.doQuery(fs).subscribe(data => {
24945
- console.log(data);
24946
- if (trans.step_d >= 900)
24947
- this.doEnd(trans.step_d);
24948
- else
24949
- this.chstato(trans.step_d);
24950
- if (this.dialogRef_ww != null)
24951
- if (this.dialogRef_ww.componentInstance != null)
24952
- this.dialogRef_ww.componentInstance.update_progess(100);
24953
- this.goto_edit_doc();
24923
+ let uiid_op = this.uti_s.newGuid();
24924
+ fs.p2 = uiid_op;
24925
+ let p = new QParam();
24926
+ p.sql = "INSERT_WKF_OP";
24927
+ if (!crea_ver)
24928
+ p.values = [uiid_op, JSON.stringify({
24929
+ transizione: trans,
24930
+ destinatari: arrdest,
24931
+ commento: comm,
24932
+ assegnati_paralleli: assegnati_paralleli,
24933
+ id_applicazione: this.id_applicativo,
24934
+ id_documento: this.id_documento,
24935
+ username: this.app_s.user,
24936
+ title: this.getTitle().split('"').join("_doppiap_"),
24937
+ descri: this.getDescri().split('"').join("_doppiap_")
24938
+ })];
24939
+ else
24940
+ p.values = [uiid_op, JSON.stringify({
24941
+ transizione: { uiid_wkf: trans.uiid_wkf, uiid: trans.uiid, step_d: trans.step_d },
24942
+ commento: comm,
24943
+ id_applicazione: this.id_applicativo,
24944
+ id_documento: this.id_documento,
24945
+ username: this.app_s.user
24946
+ })];
24947
+ p.types = ["string", "string"];
24948
+ this.m_dataService.doQuery(p).subscribe((data) => {
24949
+ this.reset_updw();
24950
+ this.m_fileservice.doQuery(fs).subscribe(data => {
24951
+ console.log(data);
24952
+ if (trans.step_d >= 900)
24953
+ this.doEnd(trans.step_d);
24954
+ else
24955
+ this.chstato(trans.step_d);
24956
+ if (this.dialogRef_ww != null)
24957
+ if (this.dialogRef_ww.componentInstance != null)
24958
+ this.dialogRef_ww.componentInstance.update_progess(100);
24959
+ this.goto_edit_doc();
24960
+ });
24954
24961
  });
24955
24962
  }
24956
24963
  reset_updw() {