@fluxhub/fluxhub-lib 1.0.288 → 1.0.290
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 +34 -32
- 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/wkfapp.js +15 -13
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +6 -6
- package/esm5/lib/wkf_engine/wkfapp.js +15 -13
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +21 -21
- package/fesm2015/fluxhub-fluxhub-lib.js +20 -18
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +35 -33
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -15676,8 +15676,16 @@
|
|
|
15676
15676
|
a_partecipanti = this.get_grid().sRow.partecipanti;
|
|
15677
15677
|
/** @type {?} */
|
|
15678
15678
|
var a_datanot = "";
|
|
15679
|
-
|
|
15679
|
+
/** @type {?} */
|
|
15680
|
+
var old_grp = "XCXXX";
|
|
15680
15681
|
for (var i = 0; i < this.wax.length; i++) {
|
|
15682
|
+
if (old_grp == "XCXXX" || old_grp == this.wax[i].gruppo_parallelo) {
|
|
15683
|
+
old_grp = this.wax[i].gruppo_parallelo;
|
|
15684
|
+
}
|
|
15685
|
+
else {
|
|
15686
|
+
this._toastr.error('impossibile assegnare a utenti di gruppi distiniti');
|
|
15687
|
+
return;
|
|
15688
|
+
}
|
|
15681
15689
|
if (a_datanot != "")
|
|
15682
15690
|
a_datanot = a_datanot + ",";
|
|
15683
15691
|
a_datanot = a_datanot + this.wax[i].idp;
|
|
@@ -15727,17 +15735,11 @@
|
|
|
15727
15735
|
}));
|
|
15728
15736
|
/** @type {?} */
|
|
15729
15737
|
var ccan = "$$";
|
|
15730
|
-
|
|
15731
|
-
|
|
15732
|
-
if (this.
|
|
15733
|
-
|
|
15734
|
-
|
|
15735
|
-
break;
|
|
15736
|
-
}
|
|
15737
|
-
else
|
|
15738
|
-
ccan = this.livs_adm[i].gruppo_parallelo;
|
|
15739
|
-
}
|
|
15740
|
-
}
|
|
15738
|
+
if (this.wax.length > 0) {
|
|
15739
|
+
if (this.wax[0].gruppo_parallelo != null)
|
|
15740
|
+
if (this.wax[0].gruppo_parallelo != '')
|
|
15741
|
+
ccan = this.wax[0].gruppo_parallelo;
|
|
15742
|
+
}
|
|
15741
15743
|
console.log('riassegnazione canale: ', ccan);
|
|
15742
15744
|
/** @type {?} */
|
|
15743
15745
|
var p = new QParam();
|
|
@@ -16427,6 +16429,7 @@
|
|
|
16427
16429
|
this.app_s.getState().wkf_doc_info.stato = this.m_obj.stat_stato;
|
|
16428
16430
|
this.app_s.getState().wkf_doc_info.uiid_app = this.id_applicativo;
|
|
16429
16431
|
this.app_s.getState().wkf_doc_info.uiid_doc = this.m_obj.id_documento;
|
|
16432
|
+
this.app_s.getState().wkf_doc_info.canale = this.m_obj.canale;
|
|
16430
16433
|
};
|
|
16431
16434
|
/**
|
|
16432
16435
|
* @return {?}
|
|
@@ -16489,10 +16492,8 @@
|
|
|
16489
16492
|
}
|
|
16490
16493
|
if (this.clevel == null)
|
|
16491
16494
|
for (var i = 0; i < this.livs.length; i++) {
|
|
16492
|
-
console.log(this.livs[i]);
|
|
16493
16495
|
if (this.livs[i].livello == liv) {
|
|
16494
16496
|
if (this.user_idp.toUpperCase() == this.livs[i].idp.toUpperCase() || this.livs[i].gruppo_parallelo == '*ALLUSERS') {
|
|
16495
|
-
console.log(this.c_canale + " " + this.livs[i].gruppo_parallelo);
|
|
16496
16497
|
if (this.livs[i].notifica == 0 && (this.c_canale == "" || this.livs[i].gruppo_parallelo == "" || this.c_canale == this.livs[i].gruppo_parallelo || this.livs[i].gruppo_parallelo == '*ALLUSERS')) {
|
|
16497
16498
|
this.clevel = this.livs[i];
|
|
16498
16499
|
break;
|
|
@@ -16627,10 +16628,11 @@
|
|
|
16627
16628
|
var cliv = 100000;
|
|
16628
16629
|
liv = this.clevel.livello;
|
|
16629
16630
|
console.log('liv: ' + liv);
|
|
16630
|
-
for (var
|
|
16631
|
-
if (liv == 0 || (liv < this.livs[
|
|
16632
|
-
|
|
16633
|
-
|
|
16631
|
+
for (var i_1 = 0; i_1 < this.livs.length; i_1++)
|
|
16632
|
+
if (liv == 0 || (liv < this.livs[i_1].livello && cliv > this.livs[i_1].livello)) {
|
|
16633
|
+
console.log('calcolo next ', this.nlevel);
|
|
16634
|
+
this.nlevel = this.livs[i_1];
|
|
16635
|
+
cliv = this.livs[i_1].livello;
|
|
16634
16636
|
}
|
|
16635
16637
|
liv = this.wkf_rule(cliv);
|
|
16636
16638
|
/** @type {?} */
|
|
@@ -16712,10 +16714,10 @@
|
|
|
16712
16714
|
this.app_s.getState().wkf_doc_info.title = 'Avanzamento';
|
|
16713
16715
|
/** @type {?} */
|
|
16714
16716
|
var sp = "";
|
|
16715
|
-
for (var
|
|
16717
|
+
for (var i_2 = 0; i_2 < arrAutori.length; i_2++) {
|
|
16716
16718
|
if (sp != '')
|
|
16717
16719
|
sp = sp + ';';
|
|
16718
|
-
sp = sp + arrAutori[
|
|
16720
|
+
sp = sp + arrAutori[i_2].nc;
|
|
16719
16721
|
}
|
|
16720
16722
|
this.app_s.getState().wkf_doc_info.utenti = "";
|
|
16721
16723
|
if (this.nlevel.livello < 900)
|
|
@@ -16898,14 +16900,14 @@
|
|
|
16898
16900
|
}
|
|
16899
16901
|
/** @type {?} */
|
|
16900
16902
|
var ccan = "$$";
|
|
16901
|
-
for (var
|
|
16902
|
-
if (this.livs[
|
|
16903
|
+
for (var i_3 = 0; i_3 < this.livs.length; i_3++) {
|
|
16904
|
+
if (this.livs[i_3].livello == this.clevel.livello && this.livs[i_3].idp == this.app_s.user) {
|
|
16903
16905
|
if (ccan != "$$") {
|
|
16904
16906
|
ccan = "$$";
|
|
16905
16907
|
break;
|
|
16906
16908
|
}
|
|
16907
16909
|
else
|
|
16908
|
-
ccan = this.livs[
|
|
16910
|
+
ccan = this.livs[i_3].gruppo_parallelo;
|
|
16909
16911
|
}
|
|
16910
16912
|
}
|
|
16911
16913
|
/** @type {?} */
|
|
@@ -16916,7 +16918,7 @@
|
|
|
16916
16918
|
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);
|
|
16917
16919
|
/** @type {?} */
|
|
16918
16920
|
var t = new Array();
|
|
16919
|
-
for (var
|
|
16921
|
+
for (var i_4 = 0; i_4 < a.length; i_4++)
|
|
16920
16922
|
t.push('string');
|
|
16921
16923
|
this.m_crea_att = 1;
|
|
16922
16924
|
if (this.m_liv >= 900)
|
|
@@ -17046,11 +17048,11 @@
|
|
|
17046
17048
|
if (data.result_msg == "OK") {
|
|
17047
17049
|
/** @type {?} */
|
|
17048
17050
|
var lista_p = _this.user_idp;
|
|
17049
|
-
for (var
|
|
17050
|
-
if (lista_p.indexOf(data.result_data[
|
|
17051
|
-
console.log('username:', data.result_data[
|
|
17051
|
+
for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
|
|
17052
|
+
if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
|
|
17053
|
+
console.log('username:', data.result_data[i_5].username);
|
|
17052
17054
|
lista_p += ',';
|
|
17053
|
-
lista_p += data.result_data[
|
|
17055
|
+
lista_p += data.result_data[i_5].username;
|
|
17054
17056
|
}
|
|
17055
17057
|
console.log('lista_p ', lista_p);
|
|
17056
17058
|
_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);
|
|
@@ -17071,11 +17073,11 @@
|
|
|
17071
17073
|
if (data.result_msg == "OK") {
|
|
17072
17074
|
/** @type {?} */
|
|
17073
17075
|
var lista_p = _this.user_idp;
|
|
17074
|
-
for (var
|
|
17075
|
-
if (lista_p.indexOf(data.result_data[
|
|
17076
|
-
console.log('username:', data.result_data[
|
|
17076
|
+
for (var i_6 = 0; i_6 < data.result_data.length; i_6++)
|
|
17077
|
+
if (lista_p.indexOf(data.result_data[i_6].username) == -1) {
|
|
17078
|
+
console.log('username:', data.result_data[i_6].username);
|
|
17077
17079
|
lista_p += ',';
|
|
17078
|
-
lista_p += data.result_data[
|
|
17080
|
+
lista_p += data.result_data[i_6].username;
|
|
17079
17081
|
}
|
|
17080
17082
|
_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);
|
|
17081
17083
|
}
|