@fluxhub/fluxhub-lib 10.0.722 → 10.0.723
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 +130 -105
- 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 +130 -106
- package/fesm2015/fluxhub-fluxhub-lib.js +129 -105
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +1 -1
- package/package.json +1 -1
|
@@ -24995,37 +24995,55 @@ class dati_aggiuntivi_v2 {
|
|
|
24995
24995
|
if (this.app_info.body_riassegna != "")
|
|
24996
24996
|
body_email = this.app_info.body_riassegna;
|
|
24997
24997
|
console.log('this.app_info.subject_riassegna ', this.app_info.subject_riassegna);
|
|
24998
|
-
for (let prop in this.m_obj)
|
|
24999
|
-
|
|
25000
|
-
|
|
25001
|
-
|
|
25002
|
-
|
|
25003
|
-
|
|
25004
|
-
|
|
25005
|
-
|
|
25006
|
-
|
|
25007
|
-
|
|
25008
|
-
|
|
25009
|
-
|
|
25010
|
-
|
|
25011
|
-
|
|
25012
|
-
|
|
25013
|
-
|
|
25014
|
-
|
|
25015
|
-
|
|
25016
|
-
|
|
25017
|
-
|
|
25018
|
-
|
|
25019
|
-
|
|
25020
|
-
|
|
25021
|
-
|
|
25022
|
-
|
|
25023
|
-
|
|
25024
|
-
|
|
25025
|
-
|
|
25026
|
-
|
|
25027
|
-
|
|
25028
|
-
|
|
24998
|
+
/* for (let prop in this.m_obj)
|
|
24999
|
+
if (this.m_obj[prop] != null) {
|
|
25000
|
+
|
|
25001
|
+
if (
|
|
25002
|
+
Object.prototype.toString.call(this.m_obj[prop]) ===
|
|
25003
|
+
"[object Date]"
|
|
25004
|
+
) {
|
|
25005
|
+
oggetto_email = oggetto_email
|
|
25006
|
+
.split("{{" + prop + "}}")
|
|
25007
|
+
.join(this.uti_s.date2String(this.m_obj[prop]));
|
|
25008
|
+
} else if (
|
|
25009
|
+
("" + this.m_obj[prop]).indexOf("T00:00:00") == -1
|
|
25010
|
+
)
|
|
25011
|
+
oggetto_email = oggetto_email
|
|
25012
|
+
.split("{{" + prop + "}}")
|
|
25013
|
+
.join(this.m_obj[prop]);
|
|
25014
|
+
else
|
|
25015
|
+
oggetto_email = oggetto_email
|
|
25016
|
+
.split("{{" + prop + "}}")
|
|
25017
|
+
.join(
|
|
25018
|
+
this.uti_s.date2String(
|
|
25019
|
+
this.uti_s.string2date(this.m_obj[prop], 2)
|
|
25020
|
+
)
|
|
25021
|
+
);
|
|
25022
|
+
|
|
25023
|
+
|
|
25024
|
+
|
|
25025
|
+
if (
|
|
25026
|
+
Object.prototype.toString.call(this.m_obj[prop]) ===
|
|
25027
|
+
"[object Date]"
|
|
25028
|
+
) {
|
|
25029
|
+
body_email = body_email
|
|
25030
|
+
.split("{{" + prop + "}}")
|
|
25031
|
+
.join(this.uti_s.date2String(this.m_obj[prop]));
|
|
25032
|
+
} else if (
|
|
25033
|
+
("" + this.m_obj[prop]).indexOf("T00:00:00") == -1
|
|
25034
|
+
)
|
|
25035
|
+
body_email = body_email
|
|
25036
|
+
.split("{{" + prop + "}}")
|
|
25037
|
+
.join(this.m_obj[prop]);
|
|
25038
|
+
else
|
|
25039
|
+
body_email = body_email
|
|
25040
|
+
.split("{{" + prop + "}}")
|
|
25041
|
+
.join(
|
|
25042
|
+
this.uti_s.date2String(
|
|
25043
|
+
this.uti_s.string2date(this.m_obj[prop], 2)
|
|
25044
|
+
)
|
|
25045
|
+
);
|
|
25046
|
+
}*/
|
|
25029
25047
|
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
25048
|
"#/" +
|
|
25031
25049
|
this.app_info.modulo_swf +
|
|
@@ -25033,7 +25051,7 @@ class dati_aggiuntivi_v2 {
|
|
|
25033
25051
|
this.id_applicativo +
|
|
25034
25052
|
"/" +
|
|
25035
25053
|
this.id_documento +
|
|
25036
|
-
"/edit", this.m_obj.codice, "", true, "", false);
|
|
25054
|
+
"/edit", this.m_obj.codice, "", true, "", false, '');
|
|
25037
25055
|
}
|
|
25038
25056
|
/* else
|
|
25039
25057
|
this.sendEMail_ex(
|
|
@@ -25185,48 +25203,35 @@ class dati_aggiuntivi_v2 {
|
|
|
25185
25203
|
});
|
|
25186
25204
|
}
|
|
25187
25205
|
}
|
|
25188
|
-
sendEMail_ex(mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av = true, ical = "", b_exit = true) {
|
|
25189
|
-
|
|
25190
|
-
if (
|
|
25191
|
-
if (
|
|
25192
|
-
|
|
25193
|
-
|
|
25194
|
-
|
|
25195
|
-
|
|
25196
|
-
|
|
25197
|
-
|
|
25198
|
-
|
|
25199
|
-
|
|
25200
|
-
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
|
|
25206
|
+
sendEMail_ex(mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av = true, ical = "", b_exit = true, commento = "") {
|
|
25207
|
+
let dev_mode = false;
|
|
25208
|
+
if (this.app_s.dev_mode != null)
|
|
25209
|
+
if (this.app_s.dev_mode == "1")
|
|
25210
|
+
dev_mode = true;
|
|
25211
|
+
let obj_r = {
|
|
25212
|
+
destinatari: to.split(','),
|
|
25213
|
+
commento: commento,
|
|
25214
|
+
id_applicazione: idapp,
|
|
25215
|
+
id_documento: iddoc,
|
|
25216
|
+
username: mit,
|
|
25217
|
+
e_subject: ogg,
|
|
25218
|
+
e_body: descri,
|
|
25219
|
+
dev_mode: dev_mode ? 1 : 0,
|
|
25220
|
+
};
|
|
25221
|
+
let fs = new FSInput();
|
|
25222
|
+
fs.command = "exec_app";
|
|
25223
|
+
fs.p1 = 'send_email';
|
|
25224
|
+
let uiid_op = this.uti_s.newGuid();
|
|
25225
|
+
fs.p2 = uiid_op;
|
|
25205
25226
|
let p = new QParam();
|
|
25206
|
-
p.sql = "
|
|
25207
|
-
|
|
25208
|
-
|
|
25209
|
-
|
|
25210
|
-
|
|
25211
|
-
|
|
25212
|
-
|
|
25213
|
-
|
|
25214
|
-
ical = JSON.stringify(ical);
|
|
25215
|
-
p.values = [
|
|
25216
|
-
mit,
|
|
25217
|
-
to,
|
|
25218
|
-
ogg,
|
|
25219
|
-
descri.split("\n").join("<br>"),
|
|
25220
|
-
idapp,
|
|
25221
|
-
iddoc,
|
|
25222
|
-
link,
|
|
25223
|
-
cc,
|
|
25224
|
-
nota,
|
|
25225
|
-
ical,
|
|
25226
|
-
];
|
|
25227
|
-
this.m_wkf.doQuery(p).subscribe((data) => {
|
|
25228
|
-
if (b_exit)
|
|
25229
|
-
this.goto_edit_doc(notif_av);
|
|
25227
|
+
p.sql = "INSERT_WKF_OP";
|
|
25228
|
+
p.values = [uiid_op, JSON.stringify(obj_r)];
|
|
25229
|
+
p.types = ['string', 'string'];
|
|
25230
|
+
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
25231
|
+
this.m_fileservice.doQuery(fs).subscribe((data) => {
|
|
25232
|
+
if (b_exit)
|
|
25233
|
+
this.goto_edit_doc(notif_av);
|
|
25234
|
+
});
|
|
25230
25235
|
});
|
|
25231
25236
|
}
|
|
25232
25237
|
goto_edit_doc(b_notif_av = true) {
|
|
@@ -25886,37 +25891,56 @@ class dati_aggiuntivi_v2 {
|
|
|
25886
25891
|
if (this.app_info.body_riassegna != null)
|
|
25887
25892
|
if (this.app_info.body_riassegna != "")
|
|
25888
25893
|
body_email = this.app_info.body_riassegna;
|
|
25889
|
-
|
|
25890
|
-
|
|
25891
|
-
|
|
25892
|
-
|
|
25893
|
-
|
|
25894
|
-
|
|
25895
|
-
|
|
25896
|
-
|
|
25897
|
-
|
|
25898
|
-
|
|
25899
|
-
|
|
25900
|
-
|
|
25901
|
-
|
|
25902
|
-
|
|
25903
|
-
|
|
25904
|
-
|
|
25905
|
-
|
|
25906
|
-
|
|
25907
|
-
|
|
25908
|
-
|
|
25909
|
-
|
|
25910
|
-
|
|
25911
|
-
|
|
25912
|
-
|
|
25913
|
-
|
|
25914
|
-
|
|
25915
|
-
|
|
25916
|
-
|
|
25917
|
-
|
|
25918
|
-
|
|
25919
|
-
|
|
25894
|
+
/*
|
|
25895
|
+
for (let prop in this.m_obj)
|
|
25896
|
+
if (this.m_obj[prop] != null) {
|
|
25897
|
+
|
|
25898
|
+
if (
|
|
25899
|
+
Object.prototype.toString.call(this.m_obj[prop]) ===
|
|
25900
|
+
"[object Date]"
|
|
25901
|
+
) {
|
|
25902
|
+
oggetto_email = oggetto_email
|
|
25903
|
+
.split("{{" + prop + "}}")
|
|
25904
|
+
.join(this.uti_s.date2String(this.m_obj[prop]));
|
|
25905
|
+
} else if (
|
|
25906
|
+
("" + this.m_obj[prop]).indexOf("T00:00:00") == -1
|
|
25907
|
+
)
|
|
25908
|
+
oggetto_email = oggetto_email
|
|
25909
|
+
.split("{{" + prop + "}}")
|
|
25910
|
+
.join(this.m_obj[prop]);
|
|
25911
|
+
else
|
|
25912
|
+
oggetto_email = oggetto_email
|
|
25913
|
+
.split("{{" + prop + "}}")
|
|
25914
|
+
.join(
|
|
25915
|
+
this.uti_s.date2String(
|
|
25916
|
+
this.uti_s.string2date(this.m_obj[prop], 2)
|
|
25917
|
+
)
|
|
25918
|
+
);
|
|
25919
|
+
|
|
25920
|
+
|
|
25921
|
+
|
|
25922
|
+
if (
|
|
25923
|
+
Object.prototype.toString.call(this.m_obj[prop]) ===
|
|
25924
|
+
"[object Date]"
|
|
25925
|
+
) {
|
|
25926
|
+
body_email = body_email
|
|
25927
|
+
.split("{{" + prop + "}}")
|
|
25928
|
+
.join(this.uti_s.date2String(this.m_obj[prop]));
|
|
25929
|
+
} else if (
|
|
25930
|
+
("" + this.m_obj[prop]).indexOf("T00:00:00") == -1
|
|
25931
|
+
)
|
|
25932
|
+
body_email = body_email
|
|
25933
|
+
.split("{{" + prop + "}}")
|
|
25934
|
+
.join(this.m_obj[prop]);
|
|
25935
|
+
else
|
|
25936
|
+
body_email = body_email
|
|
25937
|
+
.split("{{" + prop + "}}")
|
|
25938
|
+
.join(
|
|
25939
|
+
this.uti_s.date2String(
|
|
25940
|
+
this.uti_s.string2date(this.m_obj[prop], 2)
|
|
25941
|
+
)
|
|
25942
|
+
);
|
|
25943
|
+
}*/
|
|
25920
25944
|
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
25945
|
"#/" +
|
|
25922
25946
|
this.app_info.modulo_swf +
|
|
@@ -25924,7 +25948,7 @@ class dati_aggiuntivi_v2 {
|
|
|
25924
25948
|
this.id_applicativo +
|
|
25925
25949
|
"/" +
|
|
25926
25950
|
this.id_documento +
|
|
25927
|
-
"/edit", this.m_obj.codice, "", true, "");
|
|
25951
|
+
"/edit", this.m_obj.codice, "", true, "", true, '');
|
|
25928
25952
|
}
|
|
25929
25953
|
else
|
|
25930
25954
|
this.goto_edit_doc();
|