@fluxhub/fluxhub-lib 10.0.723 → 10.0.724
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 +54 -25
- 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/esm2015/lib/wkf_engine_v2/wkfapp.js +49 -25
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +5 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +50 -25
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine_v2/wkfapp.d.ts +5 -2
- package/package.json +1 -1
|
@@ -21896,7 +21896,7 @@
|
|
|
21896
21896
|
};
|
|
21897
21897
|
|
|
21898
21898
|
var wkfapp_v2 = /** @class */ (function () {
|
|
21899
|
-
function wkfapp_v2(app_s, m_service, m_dataService, m_router, _toastr, dialog, m_wkf, m_uti, tsr) {
|
|
21899
|
+
function wkfapp_v2(app_s, m_service, m_dataService, m_router, _toastr, dialog, m_wkf, m_uti, tsr, m_fileservice) {
|
|
21900
21900
|
this.app_s = app_s;
|
|
21901
21901
|
this.m_service = m_service;
|
|
21902
21902
|
this.m_dataService = m_dataService;
|
|
@@ -21906,6 +21906,7 @@
|
|
|
21906
21906
|
this.m_wkf = m_wkf;
|
|
21907
21907
|
this.m_uti = m_uti;
|
|
21908
21908
|
this.tsr = tsr;
|
|
21909
|
+
this.m_fileservice = m_fileservice;
|
|
21909
21910
|
this.b_editing = false;
|
|
21910
21911
|
this.is_Supervisor = false;
|
|
21911
21912
|
this.is_Visor = false;
|
|
@@ -21930,6 +21931,7 @@
|
|
|
21930
21931
|
this.is_init = false;
|
|
21931
21932
|
this.imp = "";
|
|
21932
21933
|
this.m_cod_documento = "";
|
|
21934
|
+
this.app_info = {};
|
|
21933
21935
|
this.sort_field = "";
|
|
21934
21936
|
if (!m_service.checkCredentials()) {
|
|
21935
21937
|
return;
|
|
@@ -22342,13 +22344,23 @@
|
|
|
22342
22344
|
a_aut = a_aut + this.wax[i].username;
|
|
22343
22345
|
}
|
|
22344
22346
|
rxjs.forkJoin(op).subscribe(function (result) { });
|
|
22345
|
-
|
|
22347
|
+
var oggetto_email = this.titolo_email +
|
|
22346
22348
|
this.tsr.instant("L'utente ") +
|
|
22347
22349
|
this.user_cognome +
|
|
22348
22350
|
" " +
|
|
22349
22351
|
this.user_nome +
|
|
22350
22352
|
this.tsr.instant(" ti ha riassegnato il documento: ") +
|
|
22351
|
-
this.get_grid().sRow.codice
|
|
22353
|
+
this.get_grid().sRow.codice;
|
|
22354
|
+
var body_email = "Commento:\n\n" + this.nota_wax;
|
|
22355
|
+
if (this.app_info.subject_riassegna != null)
|
|
22356
|
+
if (this.app_info.subject_riassegna != "")
|
|
22357
|
+
oggetto_email = this.app_info.subject_riassegna;
|
|
22358
|
+
if (this.app_info.body_riassegna != null)
|
|
22359
|
+
if (this.app_info.body_riassegna != "")
|
|
22360
|
+
body_email = this.app_info.body_riassegna;
|
|
22361
|
+
oggetto_email = oggetto_email.split('{{TRANSITION_DESCRI}}').join(this.os_r.description);
|
|
22362
|
+
body_email = body_email.split('{{TRANSITION_DESCRI}}').join(this.os_r.description);
|
|
22363
|
+
this.sendEMail_ex(this.user_idp, a_datanot, oggetto_email, body_email, this.id_applicativo, this.get_grid().sRow.uiid, this.app_s.COMPANY_SITE_ROOT +
|
|
22352
22364
|
"#/" +
|
|
22353
22365
|
this.app_root +
|
|
22354
22366
|
"/" +
|
|
@@ -22455,27 +22467,39 @@
|
|
|
22455
22467
|
});
|
|
22456
22468
|
}
|
|
22457
22469
|
};
|
|
22458
|
-
wkfapp_v2.prototype.sendEMail_ex = function (mit, to, ogg, descri, idapp, iddoc, link, cc, nota, ical) {
|
|
22470
|
+
wkfapp_v2.prototype.sendEMail_ex = function (mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av, ical, b_exit, commento) {
|
|
22471
|
+
var _this = this;
|
|
22472
|
+
if (notif_av === void 0) { notif_av = true; }
|
|
22459
22473
|
if (ical === void 0) { ical = ""; }
|
|
22460
|
-
if (
|
|
22461
|
-
|
|
22462
|
-
|
|
22463
|
-
|
|
22474
|
+
if (b_exit === void 0) { b_exit = true; }
|
|
22475
|
+
if (commento === void 0) { commento = ""; }
|
|
22476
|
+
var dev_mode = false;
|
|
22477
|
+
if (this.app_s.dev_mode != null)
|
|
22478
|
+
if (this.app_s.dev_mode == "1")
|
|
22479
|
+
dev_mode = true;
|
|
22480
|
+
var obj_r = {
|
|
22481
|
+
destinatari: to.split(','),
|
|
22482
|
+
commento: commento,
|
|
22483
|
+
id_applicazione: idapp,
|
|
22484
|
+
id_documento: iddoc,
|
|
22485
|
+
username: mit,
|
|
22486
|
+
e_subject: ogg,
|
|
22487
|
+
e_body: descri,
|
|
22488
|
+
dev_mode: dev_mode ? 1 : 0,
|
|
22489
|
+
};
|
|
22490
|
+
var fs = new FSInput();
|
|
22491
|
+
fs.command = "exec_app";
|
|
22492
|
+
fs.p1 = 'send_email';
|
|
22493
|
+
var uiid_op = this.m_uti.newGuid();
|
|
22494
|
+
fs.p2 = uiid_op;
|
|
22464
22495
|
var p = new QParam();
|
|
22465
|
-
p.sql = "
|
|
22466
|
-
p.values = [
|
|
22467
|
-
|
|
22468
|
-
|
|
22469
|
-
|
|
22470
|
-
|
|
22471
|
-
|
|
22472
|
-
iddoc,
|
|
22473
|
-
link,
|
|
22474
|
-
cc,
|
|
22475
|
-
nota,
|
|
22476
|
-
ical,
|
|
22477
|
-
];
|
|
22478
|
-
this.m_wkf.doQuery(p).subscribe(function (data) { });
|
|
22496
|
+
p.sql = "INSERT_WKF_OP";
|
|
22497
|
+
p.values = [uiid_op, JSON.stringify(obj_r)];
|
|
22498
|
+
p.types = ['string', 'string'];
|
|
22499
|
+
this.m_dataService.doQuery(p).subscribe(function (data) {
|
|
22500
|
+
_this.m_fileservice.doQuery(fs).subscribe(function (data) {
|
|
22501
|
+
});
|
|
22502
|
+
});
|
|
22479
22503
|
};
|
|
22480
22504
|
wkfapp_v2.prototype.annulla_imp = function () {
|
|
22481
22505
|
var _this = this;
|
|
@@ -22551,7 +22575,7 @@
|
|
|
22551
22575
|
data.result_data[0].cognome +
|
|
22552
22576
|
" " +
|
|
22553
22577
|
data.result_data[0].nome;
|
|
22554
|
-
console.log('SETTO LOCALSTORAGE: ',
|
|
22578
|
+
// console.log('SETTO LOCALSTORAGE: ',this.app_s.COMPANY_KEY+'_imp_user',this.m_uti.encrypt_v3(JSON.stringify(data.result_data[0])));
|
|
22555
22579
|
localStorage.setItem(_this.app_s.COMPANY_KEY + '_imp_user', _this.m_uti.encrypt_v3(JSON.stringify(data.result_data[0])));
|
|
22556
22580
|
_this.get_grid().doFill("");
|
|
22557
22581
|
}
|
|
@@ -22670,6 +22694,7 @@
|
|
|
22670
22694
|
if (data.result_msg == "OK") {
|
|
22671
22695
|
var a_conf = data.result_data;
|
|
22672
22696
|
_this.id_applicativo = a_conf[0].id_gruppo;
|
|
22697
|
+
_this.app_info = a_conf[0];
|
|
22673
22698
|
_this.app_root = a_conf[0].modulo_swf;
|
|
22674
22699
|
_this.codice_app = a_conf[0].codice_documento; //codice documento
|
|
22675
22700
|
_this.att_panelcat = a_conf[0].descrizione_breve; //descrizione breve
|
|
@@ -22821,7 +22846,8 @@
|
|
|
22821
22846
|
{ type: dialog.MatDialog },
|
|
22822
22847
|
{ type: WkfService },
|
|
22823
22848
|
{ type: UtilityService },
|
|
22824
|
-
{ type: core.TranslateService }
|
|
22849
|
+
{ type: core.TranslateService },
|
|
22850
|
+
{ type: FileService }
|
|
22825
22851
|
]; };
|
|
22826
22852
|
|
|
22827
22853
|
var dati_aggiuntivi_v2 = /** @class */ (function () {
|
|
@@ -23626,7 +23652,8 @@
|
|
|
23626
23652
|
if (_this.app_info.body_riassegna != null)
|
|
23627
23653
|
if (_this.app_info.body_riassegna != "")
|
|
23628
23654
|
body_email = _this.app_info.body_riassegna;
|
|
23629
|
-
|
|
23655
|
+
oggetto_email = oggetto_email.split('{{TRANSITION_DESCRI}}').join(_this.getLvlDescri(String(_this.m_liv), _this.m_statox));
|
|
23656
|
+
body_email = body_email.split('{{TRANSITION_DESCRI}}').join(_this.getLvlDescri(String(_this.m_liv), _this.m_statox));
|
|
23630
23657
|
/* for (let prop in this.m_obj)
|
|
23631
23658
|
if (this.m_obj[prop] != null) {
|
|
23632
23659
|
|
|
@@ -24553,6 +24580,8 @@
|
|
|
24553
24580
|
if (_this.app_info.body_riassegna != null)
|
|
24554
24581
|
if (_this.app_info.body_riassegna != "")
|
|
24555
24582
|
body_email = _this.app_info.body_riassegna;
|
|
24583
|
+
oggetto_email = oggetto_email.split('{{TRANSITION_DESCRI}}').join(_this.getLvlDescri(String(_this.m_liv), _this.m_statox));
|
|
24584
|
+
body_email = body_email.split('{{TRANSITION_DESCRI}}').join(_this.getLvlDescri(String(_this.m_liv), _this.m_statox));
|
|
24556
24585
|
/*
|
|
24557
24586
|
for (let prop in this.m_obj)
|
|
24558
24587
|
if (this.m_obj[prop] != null) {
|