@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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +160 -164
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +153 -157
- package/fesm2015/fluxhub-fluxhub-lib.js +152 -156
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
16861
|
-
|
|
16862
|
-
|
|
16863
|
-
|
|
16864
|
-
|
|
16865
|
-
|
|
16866
|
-
|
|
16867
|
-
|
|
16868
|
-
|
|
16869
|
-
|
|
16870
|
-
|
|
16871
|
-
|
|
16872
|
-
|
|
16873
|
-
|
|
16874
|
-
|
|
16875
|
-
|
|
16876
|
-
|
|
16877
|
-
|
|
16878
|
-
|
|
16879
|
-
|
|
16880
|
-
|
|
16881
|
-
|
|
16882
|
-
|
|
16883
|
-
|
|
16884
|
-
|
|
16885
|
-
|
|
16886
|
-
|
|
16887
|
-
|
|
16888
|
-
|
|
16889
|
-
|
|
16890
|
-
|
|
16891
|
-
|
|
16892
|
-
|
|
16893
|
-
|
|
16894
|
-
|
|
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
|
-
|
|
16908
|
-
|
|
16909
|
-
|
|
16910
|
-
|
|
16911
|
-
|
|
16912
|
-
|
|
16913
|
-
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
|
|
16917
|
-
|
|
16918
|
-
|
|
16919
|
-
|
|
16920
|
-
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16924
|
-
|
|
16925
|
-
|
|
16926
|
-
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
|
|
16930
|
-
|
|
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
|
-
|
|
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) {
|