@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
|
@@ -23553,11 +23553,11 @@
|
|
|
23553
23553
|
} });
|
|
23554
23554
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
23555
23555
|
if (result) {
|
|
23556
|
-
if (result.arrsel.
|
|
23556
|
+
if (result.arrsel.length == 0) {
|
|
23557
23557
|
_this.alert("Impossibile riassegnare", 1);
|
|
23558
23558
|
return;
|
|
23559
23559
|
}
|
|
23560
|
-
console.log(' result.arrsel ', result.arrsel);
|
|
23560
|
+
// console.log(' result.arrsel ', result.arrsel);
|
|
23561
23561
|
var arr_new_arr_1 = '';
|
|
23562
23562
|
_this.m_obj.autori = '';
|
|
23563
23563
|
_this.m_obj.pers_int = '';
|
|
@@ -23603,8 +23603,70 @@
|
|
|
23603
23603
|
values: [_this.id_applicativo, _this.user_idp, 'DOCUMENTO RIASSEGNATO', 'DOCUMENTO RIASSEGNATO A: ' + arr_new_arr_1, _this.id_documento],
|
|
23604
23604
|
types: ['string', 'string', 'string', 'string', 'string'], names: [] }).subscribe(function (data) {
|
|
23605
23605
|
});
|
|
23606
|
-
if (result.op == 'C')
|
|
23606
|
+
if (result.op == 'C') {
|
|
23607
23607
|
_this.update_status(true, _this.respingi_enabled, _this.in_carico, _this.b_assengna_a, 18);
|
|
23608
|
+
}
|
|
23609
|
+
if (result.op == 'A') {
|
|
23610
|
+
var oggetto_email = _this.app_info.descrizione_breve +
|
|
23611
|
+
", Ti è stato assegnato il documento numero: " +
|
|
23612
|
+
_this.m_obj.codice +
|
|
23613
|
+
" " +
|
|
23614
|
+
_this.getTitle() +
|
|
23615
|
+
" - " +
|
|
23616
|
+
_this.getLvlDescri(String(_this.m_liv), _this.m_statox);
|
|
23617
|
+
var body_email = "<br>Attività:" +
|
|
23618
|
+
_this.getLvlDescri(String(_this.m_liv), _this.m_statox) +
|
|
23619
|
+
"<br>" +
|
|
23620
|
+
_this.m_statox +
|
|
23621
|
+
"<br>" +
|
|
23622
|
+
_this.getDescri();
|
|
23623
|
+
if (_this.app_info.subject_riassegna != null)
|
|
23624
|
+
if (_this.app_info.subject_riassegna != "")
|
|
23625
|
+
oggetto_email = _this.app_info.subject_riassegna;
|
|
23626
|
+
if (_this.app_info.body_riassegna != null)
|
|
23627
|
+
if (_this.app_info.body_riassegna != "")
|
|
23628
|
+
body_email = _this.app_info.body_riassegna;
|
|
23629
|
+
console.log('this.app_info.subject_riassegna ', _this.app_info.subject_riassegna);
|
|
23630
|
+
for (var prop in _this.m_obj)
|
|
23631
|
+
if (_this.m_obj[prop] != null) {
|
|
23632
|
+
if (Object.prototype.toString.call(_this.m_obj[prop]) ===
|
|
23633
|
+
"[object Date]") {
|
|
23634
|
+
oggetto_email = oggetto_email
|
|
23635
|
+
.split("{{" + prop + "}}")
|
|
23636
|
+
.join(_this.uti_s.date2String(_this.m_obj[prop]));
|
|
23637
|
+
}
|
|
23638
|
+
else if (("" + _this.m_obj[prop]).indexOf("T00:00:00") == -1)
|
|
23639
|
+
oggetto_email = oggetto_email
|
|
23640
|
+
.split("{{" + prop + "}}")
|
|
23641
|
+
.join(_this.m_obj[prop]);
|
|
23642
|
+
else
|
|
23643
|
+
oggetto_email = oggetto_email
|
|
23644
|
+
.split("{{" + prop + "}}")
|
|
23645
|
+
.join(_this.uti_s.date2String(_this.uti_s.string2date(_this.m_obj[prop], 2)));
|
|
23646
|
+
if (Object.prototype.toString.call(_this.m_obj[prop]) ===
|
|
23647
|
+
"[object Date]") {
|
|
23648
|
+
body_email = body_email
|
|
23649
|
+
.split("{{" + prop + "}}")
|
|
23650
|
+
.join(_this.uti_s.date2String(_this.m_obj[prop]));
|
|
23651
|
+
}
|
|
23652
|
+
else if (("" + _this.m_obj[prop]).indexOf("T00:00:00") == -1)
|
|
23653
|
+
body_email = body_email
|
|
23654
|
+
.split("{{" + prop + "}}")
|
|
23655
|
+
.join(_this.m_obj[prop]);
|
|
23656
|
+
else
|
|
23657
|
+
body_email = body_email
|
|
23658
|
+
.split("{{" + prop + "}}")
|
|
23659
|
+
.join(_this.uti_s.date2String(_this.uti_s.string2date(_this.m_obj[prop], 2)));
|
|
23660
|
+
}
|
|
23661
|
+
_this.sendEMail_ex(_this.user_idp, arr_new_arr_1, oggetto_email, body_email, _this.id_applicativo, _this.id_documento, _this.app_info.COMPANY_SITE_ROOT +
|
|
23662
|
+
"#/" +
|
|
23663
|
+
_this.app_info.modulo_swf +
|
|
23664
|
+
"/" +
|
|
23665
|
+
_this.id_applicativo +
|
|
23666
|
+
"/" +
|
|
23667
|
+
_this.id_documento +
|
|
23668
|
+
"/edit", _this.m_obj.codice, "", true, "", false);
|
|
23669
|
+
}
|
|
23608
23670
|
/* else
|
|
23609
23671
|
this.sendEMail_ex(
|
|
23610
23672
|
this.user_idp,
|
|
@@ -24341,6 +24403,7 @@
|
|
|
24341
24403
|
var s = "";
|
|
24342
24404
|
var s_notif = "";
|
|
24343
24405
|
var oggetto_email = "";
|
|
24406
|
+
var body_email = "";
|
|
24344
24407
|
var s_auto = "";
|
|
24345
24408
|
var descris = "";
|
|
24346
24409
|
for (var i = 0; i < this.livs.length; i++) {
|
|
@@ -24362,9 +24425,6 @@
|
|
|
24362
24425
|
s_auto = s_auto + ",";
|
|
24363
24426
|
s_auto = s_auto + this.livs[i].nc;
|
|
24364
24427
|
descris = this.livs[i].descri_livello;
|
|
24365
|
-
if (this.livs[i].oggetto_email != null)
|
|
24366
|
-
if (this.livs[i].oggetto_email != "")
|
|
24367
|
-
oggetto_email = this.livs[i].oggetto_email;
|
|
24368
24428
|
}
|
|
24369
24429
|
}
|
|
24370
24430
|
if (s == "") {
|
|
@@ -24464,75 +24524,74 @@
|
|
|
24464
24524
|
"" + lvlb,
|
|
24465
24525
|
];
|
|
24466
24526
|
_this.insert_wkf_variabile(_this.id_applicativo, _this.id_documento, _this.m_obj.stato + "_PLAYER", _this.user_idp);
|
|
24467
|
-
var ok_op_1 = false;
|
|
24468
24527
|
_this.m_wkf.doQuery(p_2).subscribe(function (data) {
|
|
24469
|
-
var ok_op = false;
|
|
24470
24528
|
if (data != null)
|
|
24471
24529
|
if (data.result_msg == "OK") {
|
|
24472
24530
|
if (b_send_email && s_notif != "") {
|
|
24473
|
-
|
|
24531
|
+
oggetto_email = _this.app_info.descrizione_breve +
|
|
24532
|
+
", Ti è stato assegnato il documento numero: " +
|
|
24533
|
+
_this.m_obj.codice +
|
|
24534
|
+
" " +
|
|
24535
|
+
_this.getTitle() +
|
|
24536
|
+
" - " +
|
|
24537
|
+
_this.getLvlDescri(String(_this.m_liv), _this.m_statox);
|
|
24538
|
+
body_email = "<br>Attività:" +
|
|
24539
|
+
_this.getLvlDescri(String(_this.m_liv), _this.m_statox) +
|
|
24540
|
+
"<br>" +
|
|
24541
|
+
_this.m_statox +
|
|
24542
|
+
"<br>" +
|
|
24543
|
+
_this.getDescri();
|
|
24544
|
+
if (_this.app_info.subject_riassegna != null)
|
|
24545
|
+
if (_this.app_info.subject_riassegna != "")
|
|
24546
|
+
oggetto_email = _this.app_info.subject_riassegna;
|
|
24547
|
+
if (_this.app_info.body_riassegna != null)
|
|
24548
|
+
if (_this.app_info.body_riassegna != "")
|
|
24549
|
+
body_email = _this.app_info.body_riassegna;
|
|
24474
24550
|
for (var prop in _this.m_obj)
|
|
24475
24551
|
if (_this.m_obj[prop] != null) {
|
|
24476
|
-
console.log(prop +
|
|
24477
|
-
" " +
|
|
24478
|
-
Object.prototype.toString.call(_this.m_obj[prop]));
|
|
24479
24552
|
if (Object.prototype.toString.call(_this.m_obj[prop]) ===
|
|
24480
24553
|
"[object Date]") {
|
|
24481
|
-
|
|
24482
|
-
.split("
|
|
24554
|
+
oggetto_email = oggetto_email
|
|
24555
|
+
.split("{{" + prop + "}}")
|
|
24483
24556
|
.join(_this.uti_s.date2String(_this.m_obj[prop]));
|
|
24484
24557
|
}
|
|
24485
24558
|
else if (("" + _this.m_obj[prop]).indexOf("T00:00:00") == -1)
|
|
24486
|
-
|
|
24487
|
-
.split("
|
|
24559
|
+
oggetto_email = oggetto_email
|
|
24560
|
+
.split("{{" + prop + "}}")
|
|
24488
24561
|
.join(_this.m_obj[prop]);
|
|
24489
24562
|
else
|
|
24490
|
-
|
|
24491
|
-
.split("
|
|
24563
|
+
oggetto_email = oggetto_email
|
|
24564
|
+
.split("{{" + prop + "}}")
|
|
24565
|
+
.join(_this.uti_s.date2String(_this.uti_s.string2date(_this.m_obj[prop], 2)));
|
|
24566
|
+
if (Object.prototype.toString.call(_this.m_obj[prop]) ===
|
|
24567
|
+
"[object Date]") {
|
|
24568
|
+
body_email = body_email
|
|
24569
|
+
.split("{{" + prop + "}}")
|
|
24570
|
+
.join(_this.uti_s.date2String(_this.m_obj[prop]));
|
|
24571
|
+
}
|
|
24572
|
+
else if (("" + _this.m_obj[prop]).indexOf("T00:00:00") == -1)
|
|
24573
|
+
body_email = body_email
|
|
24574
|
+
.split("{{" + prop + "}}")
|
|
24575
|
+
.join(_this.m_obj[prop]);
|
|
24576
|
+
else
|
|
24577
|
+
body_email = body_email
|
|
24578
|
+
.split("{{" + prop + "}}")
|
|
24492
24579
|
.join(_this.uti_s.date2String(_this.uti_s.string2date(_this.m_obj[prop], 2)));
|
|
24493
24580
|
}
|
|
24494
|
-
|
|
24495
|
-
|
|
24496
|
-
|
|
24497
|
-
|
|
24498
|
-
|
|
24499
|
-
|
|
24500
|
-
|
|
24501
|
-
|
|
24502
|
-
_this.getLvlDescri(String(_this.m_liv), _this.m_statox) +
|
|
24503
|
-
"<br>" +
|
|
24504
|
-
_this.m_statox +
|
|
24505
|
-
"<br>" +
|
|
24506
|
-
_this.getDescri(), _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT +
|
|
24507
|
-
"#/" +
|
|
24508
|
-
_this.app_info.modulo_swf +
|
|
24509
|
-
"/" +
|
|
24510
|
-
_this.id_applicativo +
|
|
24511
|
-
"/" +
|
|
24512
|
-
_this.id_documento +
|
|
24513
|
-
"/edit", _this.m_obj.codice, "", true, "");
|
|
24514
|
-
else
|
|
24515
|
-
_this.sendEMail_ex(_this.user_idp, s_notif, s_ogg +
|
|
24516
|
-
" - " +
|
|
24517
|
-
_this.getLvlDescri(String(_this.m_liv), _this.m_statox), "<br>Attività:" +
|
|
24518
|
-
_this.getLvlDescri(String(_this.m_liv), _this.m_statox) +
|
|
24519
|
-
"<br>" +
|
|
24520
|
-
_this.m_statox +
|
|
24521
|
-
"<br>" +
|
|
24522
|
-
_this.getDescri(), _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT +
|
|
24523
|
-
"#/" +
|
|
24524
|
-
_this.app_info.modulo_swf +
|
|
24525
|
-
"/" +
|
|
24526
|
-
_this.id_applicativo +
|
|
24527
|
-
"/" +
|
|
24528
|
-
_this.id_documento +
|
|
24529
|
-
"/edit", _this.m_obj.codice, "", true, "");
|
|
24581
|
+
_this.sendEMail_ex(_this.user_idp, s_notif, oggetto_email, body_email, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT +
|
|
24582
|
+
"#/" +
|
|
24583
|
+
_this.app_info.modulo_swf +
|
|
24584
|
+
"/" +
|
|
24585
|
+
_this.id_applicativo +
|
|
24586
|
+
"/" +
|
|
24587
|
+
_this.id_documento +
|
|
24588
|
+
"/edit", _this.m_obj.codice, "", true, "");
|
|
24530
24589
|
}
|
|
24531
24590
|
else
|
|
24532
24591
|
_this.goto_edit_doc();
|
|
24533
24592
|
}
|
|
24534
24593
|
});
|
|
24535
|
-
|
|
24594
|
+
ok_op = true;
|
|
24536
24595
|
}
|
|
24537
24596
|
if (!ok_op) {
|
|
24538
24597
|
_this.alert(data.msg, 1);
|