@fluxhub/fluxhub-lib 1.0.318 → 1.0.320
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 +52 -19
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +6 -6
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +43 -10
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +53 -20
- package/fesm2015/fluxhub-fluxhub-lib.js +42 -9
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +52 -19
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -17319,9 +17319,11 @@
|
|
|
17319
17319
|
/** @type {?} */
|
|
17320
17320
|
var nomi_autori = "";
|
|
17321
17321
|
for (var i = 0; i < this.arrUsersSelected.length; i++) {
|
|
17322
|
-
if (this.
|
|
17323
|
-
|
|
17324
|
-
|
|
17322
|
+
if (this.nlevel.email_partecipanti == 1) {
|
|
17323
|
+
if (this.m_danotificare != "")
|
|
17324
|
+
this.m_danotificare = this.m_danotificare + ",";
|
|
17325
|
+
this.m_danotificare = this.m_danotificare + this.arrUsersSelected[i].idp;
|
|
17326
|
+
}
|
|
17325
17327
|
if (this.m_lettori.toLowerCase().indexOf(this.arrUsersSelected[i].idp.toLowerCase()) == -1) {
|
|
17326
17328
|
if (this.m_lettori != "")
|
|
17327
17329
|
this.m_lettori = this.m_lettori + ",";
|
|
@@ -17389,14 +17391,14 @@
|
|
|
17389
17391
|
}
|
|
17390
17392
|
/** @type {?} */
|
|
17391
17393
|
var ccan = "$$";
|
|
17392
|
-
for (var
|
|
17393
|
-
if (this.livs[
|
|
17394
|
+
for (var i = 0; i < this.livs.length; i++) {
|
|
17395
|
+
if (this.livs[i].livello == this.clevel.livello && this.livs[i].idp == this.app_s.user) {
|
|
17394
17396
|
if (ccan != "$$") {
|
|
17395
17397
|
ccan = "$$";
|
|
17396
17398
|
break;
|
|
17397
17399
|
}
|
|
17398
17400
|
else
|
|
17399
|
-
ccan = this.livs[
|
|
17401
|
+
ccan = this.livs[i].gruppo_parallelo;
|
|
17400
17402
|
}
|
|
17401
17403
|
}
|
|
17402
17404
|
/** @type {?} */
|
|
@@ -17407,7 +17409,7 @@
|
|
|
17407
17409
|
a = new Array(this.m_autori, "", this.m_liv, this.m_statox, this.m_autori_paralleli, this.m_obj.assegnati_paralleli, this.getLvlDescri(String(this.m_liv), this.m_statox), this.getUsersList(this.m_autori, this.m_obj.assegnati_paralleli), this.user_idp, this.getTitle(), this.getDescri(), this.id_applicativo, this.id_documento, ccan);
|
|
17408
17410
|
/** @type {?} */
|
|
17409
17411
|
var t = new Array();
|
|
17410
|
-
for (var
|
|
17412
|
+
for (var i = 0; i < a.length; i++)
|
|
17411
17413
|
t.push('string');
|
|
17412
17414
|
this.m_crea_att = 1;
|
|
17413
17415
|
if (this.m_liv >= 900)
|
|
@@ -17536,11 +17538,11 @@
|
|
|
17536
17538
|
if (data.result_msg == "OK") {
|
|
17537
17539
|
/** @type {?} */
|
|
17538
17540
|
var lista_p = _this.user_idp;
|
|
17539
|
-
for (var
|
|
17540
|
-
if (lista_p.indexOf(data.result_data[
|
|
17541
|
-
console.log('username:', data.result_data[
|
|
17541
|
+
for (var i = 0; i < data.result_data.length; i++)
|
|
17542
|
+
if (lista_p.indexOf(data.result_data[i].username) == -1) {
|
|
17543
|
+
console.log('username:', data.result_data[i].username);
|
|
17542
17544
|
lista_p += ',';
|
|
17543
|
-
lista_p += data.result_data[
|
|
17545
|
+
lista_p += data.result_data[i].username;
|
|
17544
17546
|
}
|
|
17545
17547
|
console.log('lista_p ', lista_p);
|
|
17546
17548
|
_this.sendEMail_ex(_this.user_idp, lista_p, _this.app_info.descrizione_breve + ", Il documento numero: " + _this.m_obj.codice + " è passato allo STEP: " + _this.nlevel.descri_livello + " " + _this.getTitle(), _this.m_statox + "<br>" + _this.getDescri() + comm_1, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
|
|
@@ -17561,11 +17563,11 @@
|
|
|
17561
17563
|
if (data.result_msg == "OK") {
|
|
17562
17564
|
/** @type {?} */
|
|
17563
17565
|
var lista_p = _this.user_idp;
|
|
17564
|
-
for (var
|
|
17565
|
-
if (lista_p.indexOf(data.result_data[
|
|
17566
|
-
console.log('username:', data.result_data[
|
|
17566
|
+
for (var i = 0; i < data.result_data.length; i++)
|
|
17567
|
+
if (lista_p.indexOf(data.result_data[i].username) == -1) {
|
|
17568
|
+
console.log('username:', data.result_data[i].username);
|
|
17567
17569
|
lista_p += ',';
|
|
17568
|
-
lista_p += data.result_data[
|
|
17570
|
+
lista_p += data.result_data[i].username;
|
|
17569
17571
|
}
|
|
17570
17572
|
_this.sendEMail_ex(_this.user_idp, lista_p, _this.app_info.descrizione_breve + ", Il documento numero: " + _this.m_obj.codice + " è passato allo STEP: " + _this.nlevel.descri_livello + " " + _this.getTitle(), _this.m_statox + "<br>" + _this.getDescri() + comm_1, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
|
|
17571
17573
|
}
|
|
@@ -18286,10 +18288,21 @@
|
|
|
18286
18288
|
/** @type {?} */
|
|
18287
18289
|
var s = "";
|
|
18288
18290
|
/** @type {?} */
|
|
18291
|
+
var s_notif = "";
|
|
18292
|
+
/** @type {?} */
|
|
18293
|
+
var oggetto_email = "";
|
|
18294
|
+
/** @type {?} */
|
|
18289
18295
|
var s_auto = "";
|
|
18290
18296
|
/** @type {?} */
|
|
18291
18297
|
var descris = "";
|
|
18292
|
-
for (var i = 0; i < this.livs.length; i++)
|
|
18298
|
+
for (var i = 0; i < this.livs.length; i++) {
|
|
18299
|
+
if (lvlb == this.livs[i].livello && (can == "" || this.livs[i].canale)) {
|
|
18300
|
+
if ((this.livs[i].email_ospiti == 1 && this.livs[i].notifica == 1) || (this.nlevel.email_partecipanti == 1 && this.livs[i].notifica == 0)) {
|
|
18301
|
+
if (s_notif != "")
|
|
18302
|
+
s_notif = s_notif + ",";
|
|
18303
|
+
s_notif = s_notif + this.livs[i].idp;
|
|
18304
|
+
}
|
|
18305
|
+
}
|
|
18293
18306
|
if (lvlb == this.livs[i].livello && this.livs[i].notifica == 0 && (can == "" || this.livs[i].canale)) {
|
|
18294
18307
|
if (s != "")
|
|
18295
18308
|
s = s + ',';
|
|
@@ -18298,7 +18311,11 @@
|
|
|
18298
18311
|
s_auto = s_auto + ',';
|
|
18299
18312
|
s_auto = s_auto + this.livs[i].nc;
|
|
18300
18313
|
descris = this.livs[i].descri_livello;
|
|
18314
|
+
if (this.livs[i].oggetto_email != null)
|
|
18315
|
+
if (this.livs[i].oggetto_email != "")
|
|
18316
|
+
oggetto_email = this.livs[i].oggetto_email;
|
|
18301
18317
|
}
|
|
18318
|
+
}
|
|
18302
18319
|
if (s == "") {
|
|
18303
18320
|
return "NESSUN UTENTE CONFIGURATO STEP: " + lvlb + " CANALE: " + can;
|
|
18304
18321
|
}
|
|
@@ -18376,8 +18393,24 @@
|
|
|
18376
18393
|
*/function (err) {
|
|
18377
18394
|
_this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
|
|
18378
18395
|
}));
|
|
18379
|
-
if (b_send_email) {
|
|
18380
|
-
|
|
18396
|
+
if (b_send_email && s_notif != "") {
|
|
18397
|
+
/** @type {?} */
|
|
18398
|
+
var s_ogg = oggetto_email;
|
|
18399
|
+
for (var prop in this.m_obj)
|
|
18400
|
+
if (this.m_obj[prop] != null) {
|
|
18401
|
+
console.log(prop + " " + Object.prototype.toString.call(this.m_obj[prop]));
|
|
18402
|
+
if (Object.prototype.toString.call(this.m_obj[prop]) === '[object Date]') {
|
|
18403
|
+
s_ogg = s_ogg.split('%' + prop + '%').join(this.uti_s.date2String(this.m_obj[prop]));
|
|
18404
|
+
}
|
|
18405
|
+
else if (('' + this.m_obj[prop]).indexOf('T00:00:00') == -1)
|
|
18406
|
+
s_ogg = s_ogg.split('%' + prop + '%').join(this.m_obj[prop]);
|
|
18407
|
+
else
|
|
18408
|
+
s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
|
|
18409
|
+
}
|
|
18410
|
+
if (s_ogg == "")
|
|
18411
|
+
this.sendEMail_ex(this.user_idp, s_notif, this.app_info.descrizione_breve + ", Ti è stato assegnato il documento numero: " + this.m_obj.codice + " " + this.getTitle(), "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri(), this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, '', true, "");
|
|
18412
|
+
else
|
|
18413
|
+
this.sendEMail_ex(this.user_idp, s_notif, s_ogg, "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri(), this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, '', true, "");
|
|
18381
18414
|
}
|
|
18382
18415
|
else
|
|
18383
18416
|
this.goto_edit_doc();
|
|
@@ -18543,7 +18576,7 @@
|
|
|
18543
18576
|
}
|
|
18544
18577
|
if (this.m_obj.autori == null)
|
|
18545
18578
|
this.m_obj.autori = '';
|
|
18546
|
-
if (this.m_obj.autori.toLowerCase().indexOf(this.user_idp.toLowerCase()) != -1) {
|
|
18579
|
+
if (("," + this.m_obj.autori.toLowerCase() + ",").indexOf("," + this.user_idp.toLowerCase() + ",") != -1) {
|
|
18547
18580
|
this.edit_b(true);
|
|
18548
18581
|
if (this.respingi_enabled)
|
|
18549
18582
|
this.resp_b(true);
|