@fluxhub/fluxhub-lib 10.0.416 → 10.0.417
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 +155 -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 +148 -157
- package/fesm2015/fluxhub-fluxhub-lib.js +147 -156
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -17658,11 +17658,86 @@
|
|
|
17658
17658
|
];
|
|
17659
17659
|
var ok_op = false;
|
|
17660
17660
|
this.m_wkf.doQuery(p).subscribe(function (data) { });
|
|
17661
|
+
var ical = null;
|
|
17662
|
+
var comm = "";
|
|
17663
|
+
if (this.nota != "")
|
|
17664
|
+
comm = "<br>Commento: <br>" + this.nota;
|
|
17665
|
+
if (this.nlevel.ical == 1) {
|
|
17666
|
+
if (this.m_obj.ical_dt_ini == null) {
|
|
17667
|
+
this.alert("Attenzione ical non configurato ical_dt_ini", 1);
|
|
17668
|
+
}
|
|
17669
|
+
else if (this.m_obj.ical_dt_fin == null) {
|
|
17670
|
+
this.alert("Attenzione ical non configurato ical_dt_fin", 1);
|
|
17671
|
+
}
|
|
17672
|
+
else
|
|
17673
|
+
ical = {
|
|
17674
|
+
start: this.m_obj.ical_dt_ini,
|
|
17675
|
+
end: this.m_obj.ical_dt_fin,
|
|
17676
|
+
summary: this.app_info.descrizione_breve + " " + this.getTitle(),
|
|
17677
|
+
description: this.getDescri() +
|
|
17678
|
+
comm +
|
|
17679
|
+
"<br>" +
|
|
17680
|
+
this.app_s.COMPANY_SITE_ROOT +
|
|
17681
|
+
"#/" +
|
|
17682
|
+
this.app_info.modulo_swf +
|
|
17683
|
+
"/" +
|
|
17684
|
+
this.id_applicativo +
|
|
17685
|
+
"/" +
|
|
17686
|
+
this.id_documento +
|
|
17687
|
+
"/edit",
|
|
17688
|
+
organizer: this.user_nome +
|
|
17689
|
+
" " +
|
|
17690
|
+
this.user_cognome +
|
|
17691
|
+
" <" +
|
|
17692
|
+
this.user_email +
|
|
17693
|
+
">",
|
|
17694
|
+
url: this.app_s.COMPANY_SITE_ROOT +
|
|
17695
|
+
"#/" +
|
|
17696
|
+
this.app_info.modulo_swf +
|
|
17697
|
+
"/" +
|
|
17698
|
+
this.id_applicativo +
|
|
17699
|
+
"/" +
|
|
17700
|
+
this.id_documento +
|
|
17701
|
+
"/edit",
|
|
17702
|
+
};
|
|
17703
|
+
}
|
|
17704
|
+
var s_ogg = this.nlevel.oggetto_email;
|
|
17705
|
+
if (s_ogg == null)
|
|
17706
|
+
s_ogg = '';
|
|
17707
|
+
if (this.nlevel != null)
|
|
17708
|
+
if (this.nlevel.descri_livello != null)
|
|
17709
|
+
s_ogg = s_ogg
|
|
17710
|
+
.split("%new_step%")
|
|
17711
|
+
.join(this.nlevel.descri_livello);
|
|
17712
|
+
if (this.clevel != null)
|
|
17713
|
+
if (this.clevel.descri_livello != null)
|
|
17714
|
+
s_ogg = s_ogg
|
|
17715
|
+
.split("%old_step%")
|
|
17716
|
+
.join(this.clevel.descri_livello);
|
|
17717
|
+
s_ogg = s_ogg.split("%new_step%").join("");
|
|
17718
|
+
s_ogg = s_ogg.split("%old_step%").join("");
|
|
17719
|
+
for (var prop in this.m_obj)
|
|
17720
|
+
if (this.m_obj[prop] != null) {
|
|
17721
|
+
console.log(prop +
|
|
17722
|
+
" " +
|
|
17723
|
+
Object.prototype.toString.call(this.m_obj[prop]));
|
|
17724
|
+
if (Object.prototype.toString.call(this.m_obj[prop]) ===
|
|
17725
|
+
"[object Date]") {
|
|
17726
|
+
s_ogg = s_ogg
|
|
17727
|
+
.split("%" + prop + "%")
|
|
17728
|
+
.join(this.uti_s.date2String(this.m_obj[prop]));
|
|
17729
|
+
}
|
|
17730
|
+
else if (("" + this.m_obj[prop]).indexOf("T00:00:00") == -1)
|
|
17731
|
+
s_ogg = s_ogg
|
|
17732
|
+
.split("%" + prop + "%")
|
|
17733
|
+
.join(this.m_obj[prop]);
|
|
17734
|
+
else
|
|
17735
|
+
s_ogg = s_ogg
|
|
17736
|
+
.split("%" + prop + "%")
|
|
17737
|
+
.join(this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2)));
|
|
17738
|
+
}
|
|
17661
17739
|
//myRPC.query("UPDATE_FLAG_CARICO",new Array("0",id_applicativo, id_documento,''));
|
|
17662
17740
|
if (this.m_danotificare != "") {
|
|
17663
|
-
var comm_1 = "";
|
|
17664
|
-
if (this.nota != "")
|
|
17665
|
-
comm_1 = "<br>Commento: <br>" + this.nota;
|
|
17666
17741
|
if (this.clevel.ccn_mittente == 1) {
|
|
17667
17742
|
if (this.m_danotificare != "")
|
|
17668
17743
|
this.m_danotificare = this.m_danotificare + ",";
|
|
@@ -17671,46 +17746,6 @@
|
|
|
17671
17746
|
if (this.nlevel.approvazione_email == 1) {
|
|
17672
17747
|
}
|
|
17673
17748
|
else {
|
|
17674
|
-
var ical_1 = null;
|
|
17675
|
-
if (this.nlevel.ical == 1) {
|
|
17676
|
-
if (this.m_obj.ical_dt_ini == null) {
|
|
17677
|
-
this.alert("Attenzione ical non configurato ical_dt_ini", 1);
|
|
17678
|
-
}
|
|
17679
|
-
else if (this.m_obj.ical_dt_fin == null) {
|
|
17680
|
-
this.alert("Attenzione ical non configurato ical_dt_fin", 1);
|
|
17681
|
-
}
|
|
17682
|
-
else
|
|
17683
|
-
ical_1 = {
|
|
17684
|
-
start: this.m_obj.ical_dt_ini,
|
|
17685
|
-
end: this.m_obj.ical_dt_fin,
|
|
17686
|
-
summary: this.app_info.descrizione_breve + " " + this.getTitle(),
|
|
17687
|
-
description: this.getDescri() +
|
|
17688
|
-
comm_1 +
|
|
17689
|
-
"<br>" +
|
|
17690
|
-
this.app_s.COMPANY_SITE_ROOT +
|
|
17691
|
-
"#/" +
|
|
17692
|
-
this.app_info.modulo_swf +
|
|
17693
|
-
"/" +
|
|
17694
|
-
this.id_applicativo +
|
|
17695
|
-
"/" +
|
|
17696
|
-
this.id_documento +
|
|
17697
|
-
"/edit",
|
|
17698
|
-
organizer: this.user_nome +
|
|
17699
|
-
" " +
|
|
17700
|
-
this.user_cognome +
|
|
17701
|
-
" <" +
|
|
17702
|
-
this.user_email +
|
|
17703
|
-
">",
|
|
17704
|
-
url: this.app_s.COMPANY_SITE_ROOT +
|
|
17705
|
-
"#/" +
|
|
17706
|
-
this.app_info.modulo_swf +
|
|
17707
|
-
"/" +
|
|
17708
|
-
this.id_applicativo +
|
|
17709
|
-
"/" +
|
|
17710
|
-
this.id_documento +
|
|
17711
|
-
"/edit",
|
|
17712
|
-
};
|
|
17713
|
-
}
|
|
17714
17749
|
if (this.nlevel.email_partecipanti == 1 ||
|
|
17715
17750
|
this.nlevel.email_ospiti == 1) {
|
|
17716
17751
|
if (this.b_respingi)
|
|
@@ -17721,14 +17756,14 @@
|
|
|
17721
17756
|
"<br>" +
|
|
17722
17757
|
this.getDescri() +
|
|
17723
17758
|
"<br>Commenti:" +
|
|
17724
|
-
|
|
17759
|
+
comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
|
|
17725
17760
|
"#/" +
|
|
17726
17761
|
this.app_info.modulo_swf +
|
|
17727
17762
|
"/" +
|
|
17728
17763
|
this.id_applicativo +
|
|
17729
17764
|
"/" +
|
|
17730
17765
|
this.id_documento +
|
|
17731
|
-
"/edit", this.m_obj.codice, this.nota, true,
|
|
17766
|
+
"/edit", this.m_obj.codice, this.nota, true, ical);
|
|
17732
17767
|
else {
|
|
17733
17768
|
if (this.nlevel.oggetto_email == null)
|
|
17734
17769
|
this.sendEMail_ex(this.user_idp, this.m_danotificare, this.app_info.descrizione_breve +
|
|
@@ -17743,14 +17778,14 @@
|
|
|
17743
17778
|
this.m_statox +
|
|
17744
17779
|
"<br>" +
|
|
17745
17780
|
this.getDescri() +
|
|
17746
|
-
|
|
17781
|
+
comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
|
|
17747
17782
|
"#/" +
|
|
17748
17783
|
this.app_info.modulo_swf +
|
|
17749
17784
|
"/" +
|
|
17750
17785
|
this.id_applicativo +
|
|
17751
17786
|
"/" +
|
|
17752
17787
|
this.id_documento +
|
|
17753
|
-
"/edit", this.m_obj.codice, this.nota, true,
|
|
17788
|
+
"/edit", this.m_obj.codice, this.nota, true, ical);
|
|
17754
17789
|
else if (this.nlevel.oggetto_email == "")
|
|
17755
17790
|
this.sendEMail_ex(this.user_idp, this.m_danotificare, this.app_info.descrizione_breve +
|
|
17756
17791
|
", Ti è stato assegnato il documento numero: " +
|
|
@@ -17764,151 +17799,107 @@
|
|
|
17764
17799
|
this.m_statox +
|
|
17765
17800
|
"<br>" +
|
|
17766
17801
|
this.getDescri() +
|
|
17767
|
-
|
|
17802
|
+
comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
|
|
17768
17803
|
"#/" +
|
|
17769
17804
|
this.app_info.modulo_swf +
|
|
17770
17805
|
"/" +
|
|
17771
17806
|
this.id_applicativo +
|
|
17772
17807
|
"/" +
|
|
17773
17808
|
this.id_documento +
|
|
17774
|
-
"/edit", this.m_obj.codice, this.nota, true,
|
|
17809
|
+
"/edit", this.m_obj.codice, this.nota, true, ical);
|
|
17775
17810
|
else {
|
|
17776
|
-
var s_ogg = this.nlevel.oggetto_email;
|
|
17777
|
-
if (this.nlevel != null)
|
|
17778
|
-
if (this.nlevel.descri_livello != null)
|
|
17779
|
-
s_ogg = s_ogg
|
|
17780
|
-
.split("%new_step%")
|
|
17781
|
-
.join(this.nlevel.descri_livello);
|
|
17782
|
-
if (this.clevel != null)
|
|
17783
|
-
if (this.clevel.descri_livello != null)
|
|
17784
|
-
s_ogg = s_ogg
|
|
17785
|
-
.split("%old_step%")
|
|
17786
|
-
.join(this.clevel.descri_livello);
|
|
17787
|
-
s_ogg = s_ogg.split("%new_step%").join("");
|
|
17788
|
-
s_ogg = s_ogg.split("%old_step%").join("");
|
|
17789
|
-
for (var prop in this.m_obj)
|
|
17790
|
-
if (this.m_obj[prop] != null) {
|
|
17791
|
-
console.log(prop +
|
|
17792
|
-
" " +
|
|
17793
|
-
Object.prototype.toString.call(this.m_obj[prop]));
|
|
17794
|
-
if (Object.prototype.toString.call(this.m_obj[prop]) ===
|
|
17795
|
-
"[object Date]") {
|
|
17796
|
-
s_ogg = s_ogg
|
|
17797
|
-
.split("%" + prop + "%")
|
|
17798
|
-
.join(this.uti_s.date2String(this.m_obj[prop]));
|
|
17799
|
-
}
|
|
17800
|
-
else if (("" + this.m_obj[prop]).indexOf("T00:00:00") == -1)
|
|
17801
|
-
s_ogg = s_ogg
|
|
17802
|
-
.split("%" + prop + "%")
|
|
17803
|
-
.join(this.m_obj[prop]);
|
|
17804
|
-
else
|
|
17805
|
-
s_ogg = s_ogg
|
|
17806
|
-
.split("%" + prop + "%")
|
|
17807
|
-
.join(this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2)));
|
|
17808
|
-
}
|
|
17809
17811
|
this.sendEMail_ex(this.user_idp, this.m_danotificare, s_ogg, "<br>Attività:" +
|
|
17810
17812
|
this.getLvlDescri(String(this.m_liv), this.m_statox) +
|
|
17811
17813
|
"<br>" +
|
|
17812
17814
|
this.m_statox +
|
|
17813
17815
|
"<br>" +
|
|
17814
17816
|
this.getDescri() +
|
|
17815
|
-
|
|
17817
|
+
comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
|
|
17816
17818
|
"#/" +
|
|
17817
17819
|
this.app_info.modulo_swf +
|
|
17818
17820
|
"/" +
|
|
17819
17821
|
this.id_applicativo +
|
|
17820
17822
|
"/" +
|
|
17821
17823
|
this.id_documento +
|
|
17822
|
-
"/edit", this.m_obj.codice, this.nota, true,
|
|
17824
|
+
"/edit", this.m_obj.codice, this.nota, true, ical);
|
|
17823
17825
|
}
|
|
17824
17826
|
}
|
|
17825
17827
|
}
|
|
17826
17828
|
else
|
|
17827
17829
|
this.goto_edit_doc();
|
|
17828
|
-
|
|
17829
|
-
|
|
17830
|
-
|
|
17831
|
-
|
|
17832
|
-
|
|
17833
|
-
|
|
17834
|
-
|
|
17835
|
-
|
|
17836
|
-
|
|
17837
|
-
|
|
17838
|
-
|
|
17839
|
-
|
|
17840
|
-
|
|
17841
|
-
|
|
17842
|
-
|
|
17843
|
-
|
|
17844
|
-
|
|
17845
|
-
|
|
17846
|
-
|
|
17847
|
-
|
|
17848
|
-
|
|
17849
|
-
|
|
17850
|
-
|
|
17851
|
-
|
|
17852
|
-
|
|
17853
|
-
|
|
17854
|
-
|
|
17855
|
-
|
|
17856
|
-
|
|
17857
|
-
|
|
17858
|
-
|
|
17859
|
-
|
|
17860
|
-
|
|
17861
|
-
" è passato allo STEP: " +
|
|
17862
|
-
_this.nlevel.descri_livello +
|
|
17863
|
-
" " +
|
|
17864
|
-
_this.getTitle(), _this.m_statox + "<br>" + _this.getDescri() + comm_1, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT +
|
|
17865
|
-
"#/" +
|
|
17866
|
-
_this.app_info.modulo_swf +
|
|
17867
|
-
"/" +
|
|
17868
|
-
_this.id_applicativo +
|
|
17869
|
-
"/" +
|
|
17870
|
-
_this.id_documento +
|
|
17871
|
-
"/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
|
|
17830
|
+
}
|
|
17831
|
+
}
|
|
17832
|
+
if (s_ogg == '')
|
|
17833
|
+
s_ogg = this.app_info.descrizione_breve +
|
|
17834
|
+
", Il documento numero: " +
|
|
17835
|
+
this.m_obj.codice +
|
|
17836
|
+
" è passato allo STEP: " +
|
|
17837
|
+
this.nlevel.descri_livello +
|
|
17838
|
+
" " +
|
|
17839
|
+
this.getTitle();
|
|
17840
|
+
if (this.nlevel.tipo_notifica_aggiuntiva != 0) {
|
|
17841
|
+
if (this.nlevel.tipo_notifica_aggiuntiva == 1)
|
|
17842
|
+
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 +
|
|
17843
|
+
"#/" +
|
|
17844
|
+
this.app_info.modulo_swf +
|
|
17845
|
+
"/" +
|
|
17846
|
+
this.id_applicativo +
|
|
17847
|
+
"/" +
|
|
17848
|
+
this.id_documento +
|
|
17849
|
+
"/edit", this.m_obj.codice, this.nota, true, ical, false);
|
|
17850
|
+
if (this.nlevel.tipo_notifica_aggiuntiva == 2) {
|
|
17851
|
+
var p_2 = new QParam();
|
|
17852
|
+
p_2.sql = "SELECT_PARTECIPANTI_DOC";
|
|
17853
|
+
p_2.values = [this.id_applicativo, this.id_documento];
|
|
17854
|
+
p_2.types = ["string", "string"];
|
|
17855
|
+
this.m_dataService.doQuery(p_2).subscribe(function (data) {
|
|
17856
|
+
if (data != null)
|
|
17857
|
+
if (data.result_msg == "OK") {
|
|
17858
|
+
var lista_p = _this.user_idp;
|
|
17859
|
+
for (var i = 0; i < data.result_data.length; i++)
|
|
17860
|
+
if (lista_p.indexOf(data.result_data[i].username) == -1) {
|
|
17861
|
+
lista_p += ",";
|
|
17862
|
+
lista_p += data.result_data[i].username;
|
|
17872
17863
|
}
|
|
17873
|
-
|
|
17874
|
-
|
|
17875
|
-
|
|
17876
|
-
|
|
17877
|
-
|
|
17878
|
-
|
|
17879
|
-
|
|
17880
|
-
|
|
17881
|
-
|
|
17882
|
-
|
|
17883
|
-
|
|
17884
|
-
|
|
17885
|
-
|
|
17886
|
-
|
|
17887
|
-
|
|
17888
|
-
|
|
17889
|
-
|
|
17890
|
-
|
|
17891
|
-
|
|
17892
|
-
|
|
17893
|
-
|
|
17894
|
-
|
|
17895
|
-
|
|
17896
|
-
|
|
17897
|
-
|
|
17898
|
-
_this.app_info.modulo_swf +
|
|
17899
|
-
"/" +
|
|
17900
|
-
_this.id_applicativo +
|
|
17901
|
-
"/" +
|
|
17902
|
-
_this.id_documento +
|
|
17903
|
-
"/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
|
|
17864
|
+
_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 +
|
|
17865
|
+
"#/" +
|
|
17866
|
+
_this.app_info.modulo_swf +
|
|
17867
|
+
"/" +
|
|
17868
|
+
_this.id_applicativo +
|
|
17869
|
+
"/" +
|
|
17870
|
+
_this.id_documento +
|
|
17871
|
+
"/edit", _this.m_obj.codice, _this.nota, true, ical, false);
|
|
17872
|
+
}
|
|
17873
|
+
});
|
|
17874
|
+
}
|
|
17875
|
+
if (this.nlevel.tipo_notifica_aggiuntiva == 3) {
|
|
17876
|
+
var p_3 = new QParam();
|
|
17877
|
+
p_3.sql = "SELECT_ALL_USERS_DOC";
|
|
17878
|
+
p_3.values = [this.id_applicativo, this.id_documento];
|
|
17879
|
+
p_3.types = ["string", "string"];
|
|
17880
|
+
this.m_dataService.doQuery(p_3).subscribe(function (data) {
|
|
17881
|
+
if (data != null)
|
|
17882
|
+
if (data.result_msg == "OK") {
|
|
17883
|
+
var lista_p = _this.user_idp;
|
|
17884
|
+
for (var i = 0; i < data.result_data.length; i++)
|
|
17885
|
+
if (lista_p.indexOf(data.result_data[i].username) == -1) {
|
|
17886
|
+
console.log("username:", data.result_data[i].username);
|
|
17887
|
+
lista_p += ",";
|
|
17888
|
+
lista_p += data.result_data[i].username;
|
|
17904
17889
|
}
|
|
17905
|
-
|
|
17906
|
-
|
|
17907
|
-
|
|
17890
|
+
_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 +
|
|
17891
|
+
"#/" +
|
|
17892
|
+
_this.app_info.modulo_swf +
|
|
17893
|
+
"/" +
|
|
17894
|
+
_this.id_applicativo +
|
|
17895
|
+
"/" +
|
|
17896
|
+
_this.id_documento +
|
|
17897
|
+
"/edit", _this.m_obj.codice, _this.nota, true, ical, false);
|
|
17898
|
+
}
|
|
17899
|
+
});
|
|
17908
17900
|
}
|
|
17909
17901
|
}
|
|
17910
|
-
|
|
17911
|
-
this.goto_edit_doc();
|
|
17902
|
+
this.goto_edit_doc();
|
|
17912
17903
|
};
|
|
17913
17904
|
dati_aggiuntivi.prototype.sendEMail_ex = function (mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av, ical, b_exit) {
|
|
17914
17905
|
var _this = this;
|