@fluxhub/fluxhub-lib 10.0.416 → 10.0.418

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.
@@ -16690,11 +16690,87 @@ class dati_aggiuntivi {
16690
16690
  ];
16691
16691
  let ok_op = false;
16692
16692
  this.m_wkf.doQuery(p).subscribe((data) => { });
16693
+ let ical = null;
16694
+ let comm = "";
16695
+ console.log('QUI COMMMM');
16696
+ if (this.nota != "")
16697
+ comm = "<br>Commento: <br>" + this.nota;
16698
+ if (this.nlevel.ical == 1) {
16699
+ if (this.m_obj.ical_dt_ini == null) {
16700
+ this.alert("Attenzione ical non configurato ical_dt_ini", 1);
16701
+ }
16702
+ else if (this.m_obj.ical_dt_fin == null) {
16703
+ this.alert("Attenzione ical non configurato ical_dt_fin", 1);
16704
+ }
16705
+ else
16706
+ ical = {
16707
+ start: this.m_obj.ical_dt_ini,
16708
+ end: this.m_obj.ical_dt_fin,
16709
+ summary: this.app_info.descrizione_breve + " " + this.getTitle(),
16710
+ description: this.getDescri() +
16711
+ comm +
16712
+ "<br>" +
16713
+ this.app_s.COMPANY_SITE_ROOT +
16714
+ "#/" +
16715
+ this.app_info.modulo_swf +
16716
+ "/" +
16717
+ this.id_applicativo +
16718
+ "/" +
16719
+ this.id_documento +
16720
+ "/edit",
16721
+ organizer: this.user_nome +
16722
+ " " +
16723
+ this.user_cognome +
16724
+ " <" +
16725
+ this.user_email +
16726
+ ">",
16727
+ url: this.app_s.COMPANY_SITE_ROOT +
16728
+ "#/" +
16729
+ this.app_info.modulo_swf +
16730
+ "/" +
16731
+ this.id_applicativo +
16732
+ "/" +
16733
+ this.id_documento +
16734
+ "/edit",
16735
+ };
16736
+ }
16737
+ let s_ogg = this.nlevel.oggetto_email;
16738
+ if (s_ogg == null)
16739
+ s_ogg = '';
16740
+ if (this.nlevel != null)
16741
+ if (this.nlevel.descri_livello != null)
16742
+ s_ogg = s_ogg
16743
+ .split("%new_step%")
16744
+ .join(this.nlevel.descri_livello);
16745
+ if (this.clevel != null)
16746
+ if (this.clevel.descri_livello != null)
16747
+ s_ogg = s_ogg
16748
+ .split("%old_step%")
16749
+ .join(this.clevel.descri_livello);
16750
+ s_ogg = s_ogg.split("%new_step%").join("");
16751
+ s_ogg = s_ogg.split("%old_step%").join("");
16752
+ for (let prop in this.m_obj)
16753
+ if (this.m_obj[prop] != null) {
16754
+ console.log(prop +
16755
+ " " +
16756
+ Object.prototype.toString.call(this.m_obj[prop]));
16757
+ if (Object.prototype.toString.call(this.m_obj[prop]) ===
16758
+ "[object Date]") {
16759
+ s_ogg = s_ogg
16760
+ .split("%" + prop + "%")
16761
+ .join(this.uti_s.date2String(this.m_obj[prop]));
16762
+ }
16763
+ else if (("" + this.m_obj[prop]).indexOf("T00:00:00") == -1)
16764
+ s_ogg = s_ogg
16765
+ .split("%" + prop + "%")
16766
+ .join(this.m_obj[prop]);
16767
+ else
16768
+ s_ogg = s_ogg
16769
+ .split("%" + prop + "%")
16770
+ .join(this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2)));
16771
+ }
16693
16772
  //myRPC.query("UPDATE_FLAG_CARICO",new Array("0",id_applicativo, id_documento,''));
16694
16773
  if (this.m_danotificare != "") {
16695
- let comm = "";
16696
- if (this.nota != "")
16697
- comm = "<br>Commento: <br>" + this.nota;
16698
16774
  if (this.clevel.ccn_mittente == 1) {
16699
16775
  if (this.m_danotificare != "")
16700
16776
  this.m_danotificare = this.m_danotificare + ",";
@@ -16703,46 +16779,6 @@ class dati_aggiuntivi {
16703
16779
  if (this.nlevel.approvazione_email == 1) {
16704
16780
  }
16705
16781
  else {
16706
- let ical = null;
16707
- if (this.nlevel.ical == 1) {
16708
- if (this.m_obj.ical_dt_ini == null) {
16709
- this.alert("Attenzione ical non configurato ical_dt_ini", 1);
16710
- }
16711
- else if (this.m_obj.ical_dt_fin == null) {
16712
- this.alert("Attenzione ical non configurato ical_dt_fin", 1);
16713
- }
16714
- else
16715
- ical = {
16716
- start: this.m_obj.ical_dt_ini,
16717
- end: this.m_obj.ical_dt_fin,
16718
- summary: this.app_info.descrizione_breve + " " + this.getTitle(),
16719
- description: this.getDescri() +
16720
- comm +
16721
- "<br>" +
16722
- this.app_s.COMPANY_SITE_ROOT +
16723
- "#/" +
16724
- this.app_info.modulo_swf +
16725
- "/" +
16726
- this.id_applicativo +
16727
- "/" +
16728
- this.id_documento +
16729
- "/edit",
16730
- organizer: this.user_nome +
16731
- " " +
16732
- this.user_cognome +
16733
- " <" +
16734
- this.user_email +
16735
- ">",
16736
- url: this.app_s.COMPANY_SITE_ROOT +
16737
- "#/" +
16738
- this.app_info.modulo_swf +
16739
- "/" +
16740
- this.id_applicativo +
16741
- "/" +
16742
- this.id_documento +
16743
- "/edit",
16744
- };
16745
- }
16746
16782
  if (this.nlevel.email_partecipanti == 1 ||
16747
16783
  this.nlevel.email_ospiti == 1) {
16748
16784
  if (this.b_respingi)
@@ -16805,39 +16841,6 @@ class dati_aggiuntivi {
16805
16841
  this.id_documento +
16806
16842
  "/edit", this.m_obj.codice, this.nota, true, ical);
16807
16843
  else {
16808
- let s_ogg = this.nlevel.oggetto_email;
16809
- if (this.nlevel != null)
16810
- if (this.nlevel.descri_livello != null)
16811
- s_ogg = s_ogg
16812
- .split("%new_step%")
16813
- .join(this.nlevel.descri_livello);
16814
- if (this.clevel != null)
16815
- if (this.clevel.descri_livello != null)
16816
- s_ogg = s_ogg
16817
- .split("%old_step%")
16818
- .join(this.clevel.descri_livello);
16819
- s_ogg = s_ogg.split("%new_step%").join("");
16820
- s_ogg = s_ogg.split("%old_step%").join("");
16821
- for (let prop in this.m_obj)
16822
- if (this.m_obj[prop] != null) {
16823
- console.log(prop +
16824
- " " +
16825
- Object.prototype.toString.call(this.m_obj[prop]));
16826
- if (Object.prototype.toString.call(this.m_obj[prop]) ===
16827
- "[object Date]") {
16828
- s_ogg = s_ogg
16829
- .split("%" + prop + "%")
16830
- .join(this.uti_s.date2String(this.m_obj[prop]));
16831
- }
16832
- else if (("" + this.m_obj[prop]).indexOf("T00:00:00") == -1)
16833
- s_ogg = s_ogg
16834
- .split("%" + prop + "%")
16835
- .join(this.m_obj[prop]);
16836
- else
16837
- s_ogg = s_ogg
16838
- .split("%" + prop + "%")
16839
- .join(this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2)));
16840
- }
16841
16844
  this.sendEMail_ex(this.user_idp, this.m_danotificare, s_ogg, "<br>Attività:" +
16842
16845
  this.getLvlDescri(String(this.m_liv), this.m_statox) +
16843
16846
  "<br>" +
@@ -16857,90 +16860,83 @@ class dati_aggiuntivi {
16857
16860
  }
16858
16861
  else
16859
16862
  this.goto_edit_doc();
16860
- if (this.nlevel.tipo_notifica_aggiuntiva != 0) {
16861
- if (this.nlevel.tipo_notifica_aggiuntiva == 1)
16862
- this.sendEMail_ex(this.user_idp, this.m_obj.creatore, this.app_info.descrizione_breve +
16863
- ", Il documento numero: " +
16864
- this.m_obj.codice +
16865
- " è passato allo STEP: " +
16866
- this.nlevel.descri_livello +
16867
- " " +
16868
- this.getTitle(), this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
16869
- "#/" +
16870
- this.app_info.modulo_swf +
16871
- "/" +
16872
- this.id_applicativo +
16873
- "/" +
16874
- this.id_documento +
16875
- "/edit", this.m_obj.codice, this.nota, true, ical, false);
16876
- if (this.nlevel.tipo_notifica_aggiuntiva == 2) {
16877
- let p = new QParam();
16878
- p.sql = "SELECT_PARTECIPANTI_DOC";
16879
- p.values = [this.id_applicativo, this.id_documento];
16880
- p.types = ["string", "string"];
16881
- this.m_dataService.doQuery(p).subscribe((data) => {
16882
- if (data != null)
16883
- if (data.result_msg == "OK") {
16884
- let lista_p = this.user_idp;
16885
- for (let i = 0; i < data.result_data.length; i++)
16886
- if (lista_p.indexOf(data.result_data[i].username) == -1) {
16887
- lista_p += ",";
16888
- lista_p += data.result_data[i].username;
16889
- }
16890
- this.sendEMail_ex(this.user_idp, lista_p, this.app_info.descrizione_breve +
16891
- ", Il documento numero: " +
16892
- this.m_obj.codice +
16893
- " è passato allo STEP: " +
16894
- this.nlevel.descri_livello +
16895
- " " +
16896
- this.getTitle(), this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
16897
- "#/" +
16898
- this.app_info.modulo_swf +
16899
- "/" +
16900
- this.id_applicativo +
16901
- "/" +
16902
- this.id_documento +
16903
- "/edit", this.m_obj.codice, this.nota, true, ical, false);
16863
+ }
16864
+ }
16865
+ console.log('this.nlevel ', this.nlevel);
16866
+ console.log('this.nlevel.tipo_notifica_aggiuntiva ', this.nlevel.tipo_notifica_aggiuntiva);
16867
+ if (s_ogg == '')
16868
+ s_ogg = this.app_info.descrizione_breve +
16869
+ ", Il documento numero: " +
16870
+ this.m_obj.codice +
16871
+ " è passato allo STEP: " +
16872
+ this.nlevel.descri_livello +
16873
+ " " +
16874
+ this.getTitle();
16875
+ if (this.nlevel.tipo_notifica_aggiuntiva != 0) {
16876
+ if (this.nlevel.tipo_notifica_aggiuntiva == 1)
16877
+ this.sendEMail_ex(this.user_idp, this.m_obj.creatore, s_ogg, this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
16878
+ "#/" +
16879
+ this.app_info.modulo_swf +
16880
+ "/" +
16881
+ this.id_applicativo +
16882
+ "/" +
16883
+ this.id_documento +
16884
+ "/edit", this.m_obj.codice, this.nota, true, ical, false);
16885
+ if (this.nlevel.tipo_notifica_aggiuntiva == 2) {
16886
+ console.log('SELECT_PARTECIPANTI_DOC ');
16887
+ let p = new QParam();
16888
+ p.sql = "SELECT_PARTECIPANTI_DOC";
16889
+ p.values = [this.id_applicativo, this.id_documento];
16890
+ p.types = ["string", "string"];
16891
+ this.m_dataService.doQuery(p).subscribe((data) => {
16892
+ if (data != null)
16893
+ if (data.result_msg == "OK") {
16894
+ let lista_p = this.user_idp;
16895
+ for (let i = 0; i < data.result_data.length; i++)
16896
+ if (lista_p.indexOf(data.result_data[i].username) == -1) {
16897
+ lista_p += ",";
16898
+ lista_p += data.result_data[i].username;
16904
16899
  }
16905
- });
16906
- }
16907
- if (this.nlevel.tipo_notifica_aggiuntiva == 3) {
16908
- let p = new QParam();
16909
- p.sql = "SELECT_ALL_USERS_DOC";
16910
- p.values = [this.id_applicativo, this.id_documento];
16911
- p.types = ["string", "string"];
16912
- this.m_dataService.doQuery(p).subscribe((data) => {
16913
- if (data != null)
16914
- if (data.result_msg == "OK") {
16915
- let lista_p = this.user_idp;
16916
- for (let i = 0; i < data.result_data.length; i++)
16917
- if (lista_p.indexOf(data.result_data[i].username) == -1) {
16918
- console.log("username:", data.result_data[i].username);
16919
- lista_p += ",";
16920
- lista_p += data.result_data[i].username;
16921
- }
16922
- this.sendEMail_ex(this.user_idp, lista_p, this.app_info.descrizione_breve +
16923
- ", Il documento numero: " +
16924
- this.m_obj.codice +
16925
- " è passato allo STEP: " +
16926
- this.nlevel.descri_livello +
16927
- " " +
16928
- this.getTitle(), this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
16929
- "#/" +
16930
- this.app_info.modulo_swf +
16931
- "/" +
16932
- this.id_applicativo +
16933
- "/" +
16934
- this.id_documento +
16935
- "/edit", this.m_obj.codice, this.nota, true, ical, false);
16900
+ console.log('lista_p ', lista_p);
16901
+ this.sendEMail_ex(this.user_idp, lista_p, s_ogg, this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
16902
+ "#/" +
16903
+ this.app_info.modulo_swf +
16904
+ "/" +
16905
+ this.id_applicativo +
16906
+ "/" +
16907
+ this.id_documento +
16908
+ "/edit", this.m_obj.codice, this.nota, true, ical, false);
16909
+ }
16910
+ });
16911
+ }
16912
+ if (this.nlevel.tipo_notifica_aggiuntiva == 3) {
16913
+ let p = new QParam();
16914
+ p.sql = "SELECT_ALL_USERS_DOC";
16915
+ p.values = [this.id_applicativo, this.id_documento];
16916
+ p.types = ["string", "string"];
16917
+ this.m_dataService.doQuery(p).subscribe((data) => {
16918
+ if (data != null)
16919
+ if (data.result_msg == "OK") {
16920
+ let lista_p = this.user_idp;
16921
+ for (let i = 0; i < data.result_data.length; i++)
16922
+ if (lista_p.indexOf(data.result_data[i].username) == -1) {
16923
+ console.log("username:", data.result_data[i].username);
16924
+ lista_p += ",";
16925
+ lista_p += data.result_data[i].username;
16936
16926
  }
16937
- });
16938
- }
16939
- }
16927
+ this.sendEMail_ex(this.user_idp, lista_p, s_ogg, this.m_statox + "<br>" + this.getDescri() + comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
16928
+ "#/" +
16929
+ this.app_info.modulo_swf +
16930
+ "/" +
16931
+ this.id_applicativo +
16932
+ "/" +
16933
+ this.id_documento +
16934
+ "/edit", this.m_obj.codice, this.nota, true, ical, false);
16935
+ }
16936
+ });
16940
16937
  }
16941
16938
  }
16942
- else
16943
- this.goto_edit_doc();
16939
+ this.goto_edit_doc();
16944
16940
  }
16945
16941
  sendEMail_ex(mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av = true, ical = "", b_exit = true) {
16946
16942
  if (to == null) {