@fluxhub/fluxhub-lib 1.0.220 → 1.0.221
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 +113 -96
- 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/classes/dati_aggiuntivi.html +16 -1
- package/docs/classes/wkfapp.html +37 -0
- package/docs/components/FHGridComponent.html +0 -2
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhgrid.js +1 -2
- package/esm2015/lib/wkf_engine/wkfapp.js +32 -38
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +57 -44
- package/esm5/lib/controls/fhgrid.js +1 -2
- package/esm5/lib/wkf_engine/wkfapp.js +43 -45
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +71 -56
- package/fesm2015/fluxhub-fluxhub-lib.js +88 -79
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +111 -96
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine/wkfapp.d.ts +2 -0
- package/lib/wkf_engine/wkfdatiaggiuntivi.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4954,6 +4954,7 @@ wkfapp = /** @class */ (function () {
|
|
|
4954
4954
|
this.b_initd = false;
|
|
4955
4955
|
this.nota_wax = "";
|
|
4956
4956
|
this.imp = "";
|
|
4957
|
+
this.m_cod_documento = '';
|
|
4957
4958
|
this.sort_field = '';
|
|
4958
4959
|
if (!m_service.checkCredentials()) {
|
|
4959
4960
|
return;
|
|
@@ -5556,22 +5557,37 @@ wkfapp = /** @class */ (function () {
|
|
|
5556
5557
|
* @return {?}
|
|
5557
5558
|
*/
|
|
5558
5559
|
function (cod_documento, id_Doc) {
|
|
5560
|
+
this.m_id_Doc = id_Doc;
|
|
5561
|
+
this.m_cod_documento = cod_documento;
|
|
5562
|
+
this.do_init();
|
|
5563
|
+
};
|
|
5564
|
+
/**
|
|
5565
|
+
* @private
|
|
5566
|
+
* @return {?}
|
|
5567
|
+
*/
|
|
5568
|
+
wkfapp.prototype.do_init = /**
|
|
5569
|
+
* @private
|
|
5570
|
+
* @return {?}
|
|
5571
|
+
*/
|
|
5572
|
+
function () {
|
|
5559
5573
|
var _this = this;
|
|
5560
5574
|
if (this.app_s.user_ori != null)
|
|
5561
5575
|
this.imp = 'ANN. IMP: ' + this.app_s.user_name + ' ' + this.app_s.user_surname;
|
|
5562
5576
|
if (this.app_s.getState().wkf_obj != null)
|
|
5563
|
-
if (this.app_s.getState().wkf_obj.codice_app ==
|
|
5577
|
+
if (this.app_s.getState().wkf_obj.codice_app == this.m_cod_documento) {
|
|
5564
5578
|
this.restore_state_wkf();
|
|
5565
5579
|
return;
|
|
5566
5580
|
}
|
|
5567
5581
|
this.user_idp = this.app_s.user;
|
|
5582
|
+
if (this.user_idp == null) {
|
|
5583
|
+
setTimeout(function () { _this.do_init(), 1000; });
|
|
5584
|
+
return;
|
|
5585
|
+
}
|
|
5568
5586
|
/** @type {?} */
|
|
5569
5587
|
var p = new QParam();
|
|
5570
5588
|
p.sql = "SELECT_WKF_APP_INFO";
|
|
5571
5589
|
p.types = ['string'];
|
|
5572
|
-
p.values = [
|
|
5573
|
-
/** @type {?} */
|
|
5574
|
-
var ok_op = false;
|
|
5590
|
+
p.values = [this.m_cod_documento];
|
|
5575
5591
|
this
|
|
5576
5592
|
.m_dataService
|
|
5577
5593
|
.doQuery(p)
|
|
@@ -5580,8 +5596,6 @@ wkfapp = /** @class */ (function () {
|
|
|
5580
5596
|
if (data.result_msg == "OK") {
|
|
5581
5597
|
/** @type {?} */
|
|
5582
5598
|
var a_conf = data.result_data;
|
|
5583
|
-
ok_op = true;
|
|
5584
|
-
_this.m_id_Doc = id_Doc;
|
|
5585
5599
|
_this.id_applicativo = a_conf[0].id_gruppo;
|
|
5586
5600
|
_this.app_root = a_conf[0].modulo_swf;
|
|
5587
5601
|
_this.codice_app = a_conf[0].codice_documento; //codice documento
|
|
@@ -5596,16 +5610,15 @@ wkfapp = /** @class */ (function () {
|
|
|
5596
5610
|
_this.user_email = _this.app_s.user_email;
|
|
5597
5611
|
_this.app_s.getState().topnavTitle = _this.att_panelcat;
|
|
5598
5612
|
/** @type {?} */
|
|
5599
|
-
var
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5613
|
+
var p_1 = new QParam();
|
|
5614
|
+
p_1.sql = "SELECT_UTENTE_WKF_ADMIN";
|
|
5615
|
+
p_1.types = ['string', 'string'];
|
|
5616
|
+
p_1.values = [
|
|
5603
5617
|
_this.id_applicativo, _this.app_s.user
|
|
5604
5618
|
];
|
|
5605
|
-
ok_op = false;
|
|
5606
5619
|
_this
|
|
5607
5620
|
.m_dataService
|
|
5608
|
-
.doQuery(
|
|
5621
|
+
.doQuery(p_1)
|
|
5609
5622
|
.subscribe(function (data) {
|
|
5610
5623
|
if (data != null)
|
|
5611
5624
|
if (data.result_msg == "OK") {
|
|
@@ -5618,39 +5631,23 @@ wkfapp = /** @class */ (function () {
|
|
|
5618
5631
|
if (a[0].tipo == "1")
|
|
5619
5632
|
_this.is_Admin = true;
|
|
5620
5633
|
}
|
|
5621
|
-
ok_op = true;
|
|
5622
5634
|
/** @type {?} */
|
|
5623
|
-
var
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
ok_op = false;
|
|
5635
|
+
var p_2 = new QParam();
|
|
5636
|
+
p_2.sql = "SELECT_WLIVELLIV2";
|
|
5637
|
+
p_2.types = ['string', 'string'];
|
|
5638
|
+
p_2.values = [_this.id_applicativo, ''];
|
|
5628
5639
|
_this
|
|
5629
5640
|
.m_dataService
|
|
5630
|
-
.doQuery(
|
|
5641
|
+
.doQuery(p_2)
|
|
5631
5642
|
.subscribe(function (data) {
|
|
5632
5643
|
if (data != null)
|
|
5633
5644
|
if (data.result_msg == "OK") {
|
|
5634
5645
|
_this.ok_conf_s(data.result_data);
|
|
5635
|
-
ok_op = true;
|
|
5636
5646
|
}
|
|
5637
|
-
if (!ok_op) {
|
|
5638
|
-
console.error(data.msg);
|
|
5639
|
-
}
|
|
5640
|
-
}, function (err) {
|
|
5641
|
-
console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
|
|
5642
5647
|
});
|
|
5643
5648
|
}
|
|
5644
|
-
}, function (err) {
|
|
5645
|
-
console.error("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
|
|
5646
5649
|
});
|
|
5647
|
-
ok_op = true;
|
|
5648
5650
|
}
|
|
5649
|
-
if (!ok_op) {
|
|
5650
|
-
console.error(data.msg);
|
|
5651
|
-
}
|
|
5652
|
-
}, function (err) {
|
|
5653
|
-
console.error("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
|
|
5654
5651
|
});
|
|
5655
5652
|
};
|
|
5656
5653
|
/**
|
|
@@ -5666,15 +5663,16 @@ wkfapp = /** @class */ (function () {
|
|
|
5666
5663
|
this.is_Ins = false;
|
|
5667
5664
|
for (var i = 0; i < this.livs.length; i++)
|
|
5668
5665
|
if (this.livs[i].idp != null)
|
|
5669
|
-
if (
|
|
5670
|
-
if (this.livs[i].
|
|
5671
|
-
this.
|
|
5672
|
-
|
|
5673
|
-
this.livs[i].gruppo_parallelo
|
|
5674
|
-
|
|
5666
|
+
if (this.user_idp != null)
|
|
5667
|
+
if ((this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() || this.livs[i].gruppo_parallelo == "*ALLUSERS"))
|
|
5668
|
+
if (this.livs[i].livello == 10 && this.livs[i].notifica == 0) {
|
|
5669
|
+
this.is_Ins = true;
|
|
5670
|
+
if (this.livs[i].gruppo_parallelo == "*ALLUSERS") {
|
|
5671
|
+
this.livs[i].gruppo_parallelo = "";
|
|
5672
|
+
this.livs[i].idp = this.user_idp;
|
|
5673
|
+
}
|
|
5674
|
+
break;
|
|
5675
5675
|
}
|
|
5676
|
-
break;
|
|
5677
|
-
}
|
|
5678
5676
|
this.save_state_wkf();
|
|
5679
5677
|
// Alert.show(tbl_name);
|
|
5680
5678
|
this.parse_url();
|
|
@@ -6031,7 +6029,6 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6031
6029
|
floatingFilter: true,
|
|
6032
6030
|
enableRangeSelection: true,
|
|
6033
6031
|
defaultColDef: { resizable: true, sortable: true },
|
|
6034
|
-
alwaysShowVerticalScroll: true,
|
|
6035
6032
|
rowSelection: 'multiple',
|
|
6036
6033
|
rowDeselection: false,
|
|
6037
6034
|
// getContextMenuItems: () => this.getContextMenuItems(),
|
|
@@ -14343,22 +14340,13 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14343
14340
|
*/
|
|
14344
14341
|
this.doEnd(this.nlevel.livello);
|
|
14345
14342
|
/** @type {?} */
|
|
14346
|
-
var
|
|
14347
|
-
|
|
14348
|
-
|
|
14349
|
-
|
|
14350
|
-
this.m_dataService.doQuery(
|
|
14351
|
-
/** @type {?} */
|
|
14352
|
-
var ok_op = false;
|
|
14343
|
+
var p_1 = new QParam();
|
|
14344
|
+
p_1.sql = "UPDATE_DATA_CHIUSURA";
|
|
14345
|
+
p_1.values = [this.id_applicativo, this.id_documento];
|
|
14346
|
+
p_1.types = ['string', 'string'];
|
|
14347
|
+
this.m_dataService.doQuery(p_1).subscribe(function (data) {
|
|
14353
14348
|
if (data != null)
|
|
14354
|
-
if (data.result_msg == "OK")
|
|
14355
|
-
ok_op = true;
|
|
14356
|
-
}
|
|
14357
|
-
if (!ok_op) {
|
|
14358
|
-
_this.alert(data.msg, 1);
|
|
14359
|
-
}
|
|
14360
|
-
}, function (err) {
|
|
14361
|
-
_this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
|
|
14349
|
+
if (data.result_msg == "OK") ;
|
|
14362
14350
|
});
|
|
14363
14351
|
}
|
|
14364
14352
|
/** @type {?} */
|
|
@@ -14396,59 +14384,37 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14396
14384
|
this.getDescri(), this.user_idp, this.m_statox, this.m_oper, this.id_applicativo, this.id_documento, '' + this.m_crea_att, '' + this.m_send_email, '' + this.clevel.livello, '' + this.nlevel.livello];
|
|
14397
14385
|
this.insert_wkf_variabile(this.id_applicativo, this.id_documento, this.clevel.livello + "_PLAYER", this.user_idp);
|
|
14398
14386
|
this.m_wkf.doQuery(p).subscribe(function (data) {
|
|
14399
|
-
/** @type {?} */
|
|
14400
|
-
var ok_op = false;
|
|
14401
14387
|
if (data != null)
|
|
14402
|
-
if (data.result_msg == "OK")
|
|
14403
|
-
ok_op = true;
|
|
14404
|
-
}
|
|
14405
|
-
if (!ok_op) {
|
|
14406
|
-
_this.alert(data.msg, 1);
|
|
14407
|
-
}
|
|
14408
|
-
}, function (err) {
|
|
14409
|
-
_this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
|
|
14388
|
+
if (data.result_msg == "OK") ;
|
|
14410
14389
|
});
|
|
14411
|
-
|
|
14412
|
-
var p = new QParam();
|
|
14390
|
+
p = new QParam();
|
|
14413
14391
|
p.sql = "UPDATE_WKF_DOCUMENTOV3_NS";
|
|
14414
14392
|
p.values = a;
|
|
14415
14393
|
p.types = t;
|
|
14416
14394
|
this.m_dataService.doQuery(p).subscribe(function (data) {
|
|
14417
|
-
/** @type {?} */
|
|
14418
|
-
var ok_op = false;
|
|
14419
14395
|
if (data != null)
|
|
14420
|
-
if (data.result_msg == "OK")
|
|
14421
|
-
ok_op = true;
|
|
14422
|
-
}
|
|
14423
|
-
if (!ok_op) {
|
|
14424
|
-
_this.alert(data.msg, 1);
|
|
14425
|
-
}
|
|
14426
|
-
}, function (err) {
|
|
14427
|
-
_this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
|
|
14396
|
+
if (data.result_msg == "OK") ;
|
|
14428
14397
|
});
|
|
14429
14398
|
//myRPC.query("UPDATE_FLAG_CARICO",new Array("0",id_applicativo, id_documento,''));
|
|
14430
14399
|
if (this.m_danotificare != "") {
|
|
14431
14400
|
/** @type {?} */
|
|
14432
|
-
var
|
|
14401
|
+
var comm_1 = "";
|
|
14433
14402
|
if (this.nota != "")
|
|
14434
|
-
|
|
14403
|
+
comm_1 = "<br>Commento: " + this.nota;
|
|
14435
14404
|
if (this.clevel.ccn_mittente == 1) {
|
|
14436
14405
|
if (this.m_danotificare != "")
|
|
14437
14406
|
this.m_danotificare = this.m_danotificare + ",";
|
|
14438
14407
|
this.m_danotificare = this.m_danotificare + this.user_idp;
|
|
14439
14408
|
}
|
|
14440
|
-
|
|
14441
|
-
var p = new QParam();
|
|
14409
|
+
p = new QParam();
|
|
14442
14410
|
p.sql = "exec_app_workflow";
|
|
14443
14411
|
p.values = [this.app_info.codice_documento, this.id_documento, '' + this.clevel.livello, '' + this.nlevel.livello, this.user_idp];
|
|
14444
14412
|
this.m_wkf.doQuery(p).subscribe(function (data) {
|
|
14445
|
-
}, function (err) {
|
|
14446
14413
|
});
|
|
14447
14414
|
if (this.nlevel.approvazione_email == 1) ;
|
|
14448
14415
|
else {
|
|
14449
|
-
console.log('this.nlevel.ical ', this.nlevel.ical);
|
|
14450
14416
|
/** @type {?} */
|
|
14451
|
-
var
|
|
14417
|
+
var ical_1 = null;
|
|
14452
14418
|
if (this.nlevel.ical == 1) {
|
|
14453
14419
|
if (this.m_obj.ical_dt_ini == null) {
|
|
14454
14420
|
this.alert('Attenzione ical non configurato ical_dt_ini', 1);
|
|
@@ -14457,25 +14423,23 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14457
14423
|
this.alert('Attenzione ical non configurato ical_dt_fin', 1);
|
|
14458
14424
|
}
|
|
14459
14425
|
else
|
|
14460
|
-
|
|
14426
|
+
ical_1 = {
|
|
14461
14427
|
start: this.m_obj.ical_dt_ini,
|
|
14462
14428
|
end: this.m_obj.ical_dt_fin,
|
|
14463
14429
|
summary: this.app_info.descrizione_breve + " " + this.getTitle(),
|
|
14464
|
-
description: this.getDescri() +
|
|
14430
|
+
description: this.getDescri() + comm_1 + "<br>" + this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit",
|
|
14465
14431
|
organizer: this.user_nome + ' ' + this.user_cognome + ' <' + this.user_email + '>',
|
|
14466
14432
|
url: this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit"
|
|
14467
14433
|
};
|
|
14468
14434
|
}
|
|
14469
14435
|
if (this.nlevel.email_partecipanti == 1 || this.nlevel.email_ospiti == 1) {
|
|
14470
14436
|
if (this.b_respingi)
|
|
14471
|
-
this.sendEMail_ex(this.user_idp, this.m_danotificare, "Respinta " + this.getTitle() + "-[" + this.m_obj.codice + "]", "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + "<br>Commenti:" +
|
|
14437
|
+
this.sendEMail_ex(this.user_idp, this.m_danotificare, "Respinta " + this.getTitle() + "-[" + this.m_obj.codice + "]", "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + "<br>Commenti:" + 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);
|
|
14472
14438
|
else {
|
|
14473
|
-
console.log("--------------this.clevel.oggetto_text----------------------");
|
|
14474
|
-
console.log(this.nlevel.oggetto_email);
|
|
14475
14439
|
if (this.nlevel.oggetto_email == null)
|
|
14476
|
-
this.sendEMail_ex(this.user_idp, this.m_danotificare, 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() +
|
|
14440
|
+
this.sendEMail_ex(this.user_idp, this.m_danotificare, 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() + 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);
|
|
14477
14441
|
else if (this.nlevel.oggetto_email == "")
|
|
14478
|
-
this.sendEMail_ex(this.user_idp, this.m_danotificare, 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() +
|
|
14442
|
+
this.sendEMail_ex(this.user_idp, this.m_danotificare, 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() + 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);
|
|
14479
14443
|
else {
|
|
14480
14444
|
/** @type {?} */
|
|
14481
14445
|
var s_ogg = this.nlevel.oggetto_email;
|
|
@@ -14490,12 +14454,59 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14490
14454
|
else
|
|
14491
14455
|
s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
|
|
14492
14456
|
}
|
|
14493
|
-
this.sendEMail_ex(this.user_idp, this.m_danotificare, s_ogg, "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() +
|
|
14457
|
+
this.sendEMail_ex(this.user_idp, this.m_danotificare, s_ogg, "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + 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);
|
|
14494
14458
|
}
|
|
14495
14459
|
}
|
|
14496
14460
|
}
|
|
14497
14461
|
else
|
|
14498
14462
|
this.goto_edit_doc();
|
|
14463
|
+
if (this.nlevel.tipo_notifica_aggiuntiva != 0) {
|
|
14464
|
+
if (this.nlevel.tipo_notifica_aggiuntiva == 1)
|
|
14465
|
+
this.sendEMail_ex(this.user_idp, this.m_obj.creatore, 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);
|
|
14466
|
+
if (this.nlevel.tipo_notifica_aggiuntiva == 2) {
|
|
14467
|
+
/** @type {?} */
|
|
14468
|
+
var p_2 = new QParam();
|
|
14469
|
+
p_2.sql = "SELECT_PARTECIPANTI_DOC";
|
|
14470
|
+
p_2.values = [this.id_applicativo, this.id_documento];
|
|
14471
|
+
p_2.types = ['string', 'string'];
|
|
14472
|
+
this.m_dataService.doQuery(p_2).subscribe(function (data) {
|
|
14473
|
+
if (data != null)
|
|
14474
|
+
if (data.result_msg == "OK") {
|
|
14475
|
+
/** @type {?} */
|
|
14476
|
+
var lista_p = _this.user_idp;
|
|
14477
|
+
for (var i_3 = 0; i_3 < data.result_data.length; i_3++)
|
|
14478
|
+
if (lista_p.indexOf(data.result_data[i_3].username) == -1) {
|
|
14479
|
+
console.log('username:', data.result_data[i_3].username);
|
|
14480
|
+
lista_p += ',';
|
|
14481
|
+
lista_p += data.result_data[i_3].username;
|
|
14482
|
+
}
|
|
14483
|
+
console.log('lista_p ', lista_p);
|
|
14484
|
+
_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);
|
|
14485
|
+
}
|
|
14486
|
+
});
|
|
14487
|
+
}
|
|
14488
|
+
if (this.nlevel.tipo_notifica_aggiuntiva == 3) {
|
|
14489
|
+
/** @type {?} */
|
|
14490
|
+
var p_3 = new QParam();
|
|
14491
|
+
p_3.sql = "SELECT_ALL_USERS_DOC";
|
|
14492
|
+
p_3.values = [this.id_applicativo, this.id_documento];
|
|
14493
|
+
p_3.types = ['string', 'string'];
|
|
14494
|
+
this.m_dataService.doQuery(p_3).subscribe(function (data) {
|
|
14495
|
+
if (data != null)
|
|
14496
|
+
if (data.result_msg == "OK") {
|
|
14497
|
+
/** @type {?} */
|
|
14498
|
+
var lista_p = _this.user_idp;
|
|
14499
|
+
for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
|
|
14500
|
+
if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
|
|
14501
|
+
console.log('username:', data.result_data[i_4].username);
|
|
14502
|
+
lista_p += ',';
|
|
14503
|
+
lista_p += data.result_data[i_4].username;
|
|
14504
|
+
}
|
|
14505
|
+
_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);
|
|
14506
|
+
}
|
|
14507
|
+
});
|
|
14508
|
+
}
|
|
14509
|
+
}
|
|
14499
14510
|
}
|
|
14500
14511
|
}
|
|
14501
14512
|
};
|
|
@@ -14511,6 +14522,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14511
14522
|
* @param {?} nota
|
|
14512
14523
|
* @param {?=} notif_av
|
|
14513
14524
|
* @param {?=} ical
|
|
14525
|
+
* @param {?=} b_exit
|
|
14514
14526
|
* @return {?}
|
|
14515
14527
|
*/
|
|
14516
14528
|
dati_aggiuntivi.prototype.sendEMail_ex = /**
|
|
@@ -14525,12 +14537,14 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14525
14537
|
* @param {?} nota
|
|
14526
14538
|
* @param {?=} notif_av
|
|
14527
14539
|
* @param {?=} ical
|
|
14540
|
+
* @param {?=} b_exit
|
|
14528
14541
|
* @return {?}
|
|
14529
14542
|
*/
|
|
14530
|
-
function (mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av, ical) {
|
|
14543
|
+
function (mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av, ical, b_exit) {
|
|
14531
14544
|
var _this = this;
|
|
14532
14545
|
if (notif_av === void 0) { notif_av = true; }
|
|
14533
14546
|
if (ical === void 0) { ical = ''; }
|
|
14547
|
+
if (b_exit === void 0) { b_exit = true; }
|
|
14534
14548
|
/** @type {?} */
|
|
14535
14549
|
var p = new QParam();
|
|
14536
14550
|
p.sql = "send_wkf_mail";
|
|
@@ -14544,7 +14558,8 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14544
14558
|
ical = JSON.stringify(ical);
|
|
14545
14559
|
p.values = [mit, to, ogg, descri, idapp, iddoc, link, cc, nota, ical];
|
|
14546
14560
|
this.m_wkf.doQuery(p).subscribe(function (data) {
|
|
14547
|
-
|
|
14561
|
+
if (b_exit)
|
|
14562
|
+
_this.goto_edit_doc(notif_av);
|
|
14548
14563
|
});
|
|
14549
14564
|
};
|
|
14550
14565
|
/**
|