@fluxhub/fluxhub-lib 10.0.720 → 10.0.722
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 +114 -55
- 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_v2/wkfdatiaggiuntivi.js +114 -55
- package/fesm2015/fluxhub-fluxhub-lib.js +113 -54
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -24921,11 +24921,11 @@ class dati_aggiuntivi_v2 {
|
|
|
24921
24921
|
} });
|
|
24922
24922
|
dialogRef.afterClosed().subscribe(result => {
|
|
24923
24923
|
if (result) {
|
|
24924
|
-
if (result.arrsel.
|
|
24924
|
+
if (result.arrsel.length == 0) {
|
|
24925
24925
|
this.alert("Impossibile riassegnare", 1);
|
|
24926
24926
|
return;
|
|
24927
24927
|
}
|
|
24928
|
-
console.log(' result.arrsel ', result.arrsel);
|
|
24928
|
+
// console.log(' result.arrsel ', result.arrsel);
|
|
24929
24929
|
let arr_new_arr = '';
|
|
24930
24930
|
this.m_obj.autori = '';
|
|
24931
24931
|
this.m_obj.pers_int = '';
|
|
@@ -24971,8 +24971,70 @@ class dati_aggiuntivi_v2 {
|
|
|
24971
24971
|
values: [this.id_applicativo, this.user_idp, 'DOCUMENTO RIASSEGNATO', 'DOCUMENTO RIASSEGNATO A: ' + arr_new_arr, this.id_documento],
|
|
24972
24972
|
types: ['string', 'string', 'string', 'string', 'string'], names: [] }).subscribe((data) => {
|
|
24973
24973
|
});
|
|
24974
|
-
if (result.op == 'C')
|
|
24974
|
+
if (result.op == 'C') {
|
|
24975
24975
|
this.update_status(true, this.respingi_enabled, this.in_carico, this.b_assengna_a, 18);
|
|
24976
|
+
}
|
|
24977
|
+
if (result.op == 'A') {
|
|
24978
|
+
let oggetto_email = this.app_info.descrizione_breve +
|
|
24979
|
+
", Ti è stato assegnato il documento numero: " +
|
|
24980
|
+
this.m_obj.codice +
|
|
24981
|
+
" " +
|
|
24982
|
+
this.getTitle() +
|
|
24983
|
+
" - " +
|
|
24984
|
+
this.getLvlDescri(String(this.m_liv), this.m_statox);
|
|
24985
|
+
let body_email = "<br>Attività:" +
|
|
24986
|
+
this.getLvlDescri(String(this.m_liv), this.m_statox) +
|
|
24987
|
+
"<br>" +
|
|
24988
|
+
this.m_statox +
|
|
24989
|
+
"<br>" +
|
|
24990
|
+
this.getDescri();
|
|
24991
|
+
if (this.app_info.subject_riassegna != null)
|
|
24992
|
+
if (this.app_info.subject_riassegna != "")
|
|
24993
|
+
oggetto_email = this.app_info.subject_riassegna;
|
|
24994
|
+
if (this.app_info.body_riassegna != null)
|
|
24995
|
+
if (this.app_info.body_riassegna != "")
|
|
24996
|
+
body_email = this.app_info.body_riassegna;
|
|
24997
|
+
console.log('this.app_info.subject_riassegna ', this.app_info.subject_riassegna);
|
|
24998
|
+
for (let prop in this.m_obj)
|
|
24999
|
+
if (this.m_obj[prop] != null) {
|
|
25000
|
+
if (Object.prototype.toString.call(this.m_obj[prop]) ===
|
|
25001
|
+
"[object Date]") {
|
|
25002
|
+
oggetto_email = oggetto_email
|
|
25003
|
+
.split("{{" + prop + "}}")
|
|
25004
|
+
.join(this.uti_s.date2String(this.m_obj[prop]));
|
|
25005
|
+
}
|
|
25006
|
+
else if (("" + this.m_obj[prop]).indexOf("T00:00:00") == -1)
|
|
25007
|
+
oggetto_email = oggetto_email
|
|
25008
|
+
.split("{{" + prop + "}}")
|
|
25009
|
+
.join(this.m_obj[prop]);
|
|
25010
|
+
else
|
|
25011
|
+
oggetto_email = oggetto_email
|
|
25012
|
+
.split("{{" + prop + "}}")
|
|
25013
|
+
.join(this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2)));
|
|
25014
|
+
if (Object.prototype.toString.call(this.m_obj[prop]) ===
|
|
25015
|
+
"[object Date]") {
|
|
25016
|
+
body_email = body_email
|
|
25017
|
+
.split("{{" + prop + "}}")
|
|
25018
|
+
.join(this.uti_s.date2String(this.m_obj[prop]));
|
|
25019
|
+
}
|
|
25020
|
+
else if (("" + this.m_obj[prop]).indexOf("T00:00:00") == -1)
|
|
25021
|
+
body_email = body_email
|
|
25022
|
+
.split("{{" + prop + "}}")
|
|
25023
|
+
.join(this.m_obj[prop]);
|
|
25024
|
+
else
|
|
25025
|
+
body_email = body_email
|
|
25026
|
+
.split("{{" + prop + "}}")
|
|
25027
|
+
.join(this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2)));
|
|
25028
|
+
}
|
|
25029
|
+
this.sendEMail_ex(this.user_idp, arr_new_arr, oggetto_email, body_email, this.id_applicativo, this.id_documento, this.app_info.COMPANY_SITE_ROOT +
|
|
25030
|
+
"#/" +
|
|
25031
|
+
this.app_info.modulo_swf +
|
|
25032
|
+
"/" +
|
|
25033
|
+
this.id_applicativo +
|
|
25034
|
+
"/" +
|
|
25035
|
+
this.id_documento +
|
|
25036
|
+
"/edit", this.m_obj.codice, "", true, "", false);
|
|
25037
|
+
}
|
|
24976
25038
|
/* else
|
|
24977
25039
|
this.sendEMail_ex(
|
|
24978
25040
|
this.user_idp,
|
|
@@ -25680,6 +25742,7 @@ class dati_aggiuntivi_v2 {
|
|
|
25680
25742
|
let s = "";
|
|
25681
25743
|
let s_notif = "";
|
|
25682
25744
|
let oggetto_email = "";
|
|
25745
|
+
let body_email = "";
|
|
25683
25746
|
let s_auto = "";
|
|
25684
25747
|
let descris = "";
|
|
25685
25748
|
for (let i = 0; i < this.livs.length; i++) {
|
|
@@ -25701,9 +25764,6 @@ class dati_aggiuntivi_v2 {
|
|
|
25701
25764
|
s_auto = s_auto + ",";
|
|
25702
25765
|
s_auto = s_auto + this.livs[i].nc;
|
|
25703
25766
|
descris = this.livs[i].descri_livello;
|
|
25704
|
-
if (this.livs[i].oggetto_email != null)
|
|
25705
|
-
if (this.livs[i].oggetto_email != "")
|
|
25706
|
-
oggetto_email = this.livs[i].oggetto_email;
|
|
25707
25767
|
}
|
|
25708
25768
|
}
|
|
25709
25769
|
if (s == "") {
|
|
@@ -25803,69 +25863,68 @@ class dati_aggiuntivi_v2 {
|
|
|
25803
25863
|
"" + lvlb,
|
|
25804
25864
|
];
|
|
25805
25865
|
this.insert_wkf_variabile(this.id_applicativo, this.id_documento, this.m_obj.stato + "_PLAYER", this.user_idp);
|
|
25806
|
-
let ok_op = false;
|
|
25807
25866
|
this.m_wkf.doQuery(p).subscribe((data) => {
|
|
25808
|
-
let ok_op = false;
|
|
25809
25867
|
if (data != null)
|
|
25810
25868
|
if (data.result_msg == "OK") {
|
|
25811
25869
|
if (b_send_email && s_notif != "") {
|
|
25812
|
-
|
|
25870
|
+
oggetto_email = this.app_info.descrizione_breve +
|
|
25871
|
+
", Ti è stato assegnato il documento numero: " +
|
|
25872
|
+
this.m_obj.codice +
|
|
25873
|
+
" " +
|
|
25874
|
+
this.getTitle() +
|
|
25875
|
+
" - " +
|
|
25876
|
+
this.getLvlDescri(String(this.m_liv), this.m_statox);
|
|
25877
|
+
body_email = "<br>Attività:" +
|
|
25878
|
+
this.getLvlDescri(String(this.m_liv), this.m_statox) +
|
|
25879
|
+
"<br>" +
|
|
25880
|
+
this.m_statox +
|
|
25881
|
+
"<br>" +
|
|
25882
|
+
this.getDescri();
|
|
25883
|
+
if (this.app_info.subject_riassegna != null)
|
|
25884
|
+
if (this.app_info.subject_riassegna != "")
|
|
25885
|
+
oggetto_email = this.app_info.subject_riassegna;
|
|
25886
|
+
if (this.app_info.body_riassegna != null)
|
|
25887
|
+
if (this.app_info.body_riassegna != "")
|
|
25888
|
+
body_email = this.app_info.body_riassegna;
|
|
25813
25889
|
for (let prop in this.m_obj)
|
|
25814
25890
|
if (this.m_obj[prop] != null) {
|
|
25815
|
-
console.log(prop +
|
|
25816
|
-
" " +
|
|
25817
|
-
Object.prototype.toString.call(this.m_obj[prop]));
|
|
25818
25891
|
if (Object.prototype.toString.call(this.m_obj[prop]) ===
|
|
25819
25892
|
"[object Date]") {
|
|
25820
|
-
|
|
25821
|
-
.split("
|
|
25893
|
+
oggetto_email = oggetto_email
|
|
25894
|
+
.split("{{" + prop + "}}")
|
|
25822
25895
|
.join(this.uti_s.date2String(this.m_obj[prop]));
|
|
25823
25896
|
}
|
|
25824
25897
|
else if (("" + this.m_obj[prop]).indexOf("T00:00:00") == -1)
|
|
25825
|
-
|
|
25826
|
-
.split("
|
|
25898
|
+
oggetto_email = oggetto_email
|
|
25899
|
+
.split("{{" + prop + "}}")
|
|
25827
25900
|
.join(this.m_obj[prop]);
|
|
25828
25901
|
else
|
|
25829
|
-
|
|
25830
|
-
.split("
|
|
25902
|
+
oggetto_email = oggetto_email
|
|
25903
|
+
.split("{{" + prop + "}}")
|
|
25904
|
+
.join(this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2)));
|
|
25905
|
+
if (Object.prototype.toString.call(this.m_obj[prop]) ===
|
|
25906
|
+
"[object Date]") {
|
|
25907
|
+
body_email = body_email
|
|
25908
|
+
.split("{{" + prop + "}}")
|
|
25909
|
+
.join(this.uti_s.date2String(this.m_obj[prop]));
|
|
25910
|
+
}
|
|
25911
|
+
else if (("" + this.m_obj[prop]).indexOf("T00:00:00") == -1)
|
|
25912
|
+
body_email = body_email
|
|
25913
|
+
.split("{{" + prop + "}}")
|
|
25914
|
+
.join(this.m_obj[prop]);
|
|
25915
|
+
else
|
|
25916
|
+
body_email = body_email
|
|
25917
|
+
.split("{{" + prop + "}}")
|
|
25831
25918
|
.join(this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2)));
|
|
25832
25919
|
}
|
|
25833
|
-
|
|
25834
|
-
|
|
25835
|
-
|
|
25836
|
-
|
|
25837
|
-
|
|
25838
|
-
|
|
25839
|
-
|
|
25840
|
-
|
|
25841
|
-
this.getLvlDescri(String(this.m_liv), this.m_statox) +
|
|
25842
|
-
"<br>" +
|
|
25843
|
-
this.m_statox +
|
|
25844
|
-
"<br>" +
|
|
25845
|
-
this.getDescri(), this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
|
|
25846
|
-
"#/" +
|
|
25847
|
-
this.app_info.modulo_swf +
|
|
25848
|
-
"/" +
|
|
25849
|
-
this.id_applicativo +
|
|
25850
|
-
"/" +
|
|
25851
|
-
this.id_documento +
|
|
25852
|
-
"/edit", this.m_obj.codice, "", true, "");
|
|
25853
|
-
else
|
|
25854
|
-
this.sendEMail_ex(this.user_idp, s_notif, s_ogg +
|
|
25855
|
-
" - " +
|
|
25856
|
-
this.getLvlDescri(String(this.m_liv), this.m_statox), "<br>Attività:" +
|
|
25857
|
-
this.getLvlDescri(String(this.m_liv), this.m_statox) +
|
|
25858
|
-
"<br>" +
|
|
25859
|
-
this.m_statox +
|
|
25860
|
-
"<br>" +
|
|
25861
|
-
this.getDescri(), this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
|
|
25862
|
-
"#/" +
|
|
25863
|
-
this.app_info.modulo_swf +
|
|
25864
|
-
"/" +
|
|
25865
|
-
this.id_applicativo +
|
|
25866
|
-
"/" +
|
|
25867
|
-
this.id_documento +
|
|
25868
|
-
"/edit", this.m_obj.codice, "", true, "");
|
|
25920
|
+
this.sendEMail_ex(this.user_idp, s_notif, oggetto_email, body_email, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
|
|
25921
|
+
"#/" +
|
|
25922
|
+
this.app_info.modulo_swf +
|
|
25923
|
+
"/" +
|
|
25924
|
+
this.id_applicativo +
|
|
25925
|
+
"/" +
|
|
25926
|
+
this.id_documento +
|
|
25927
|
+
"/edit", this.m_obj.codice, "", true, "");
|
|
25869
25928
|
}
|
|
25870
25929
|
else
|
|
25871
25930
|
this.goto_edit_doc();
|