@fluxhub/fluxhub-lib 1.0.289 → 1.0.291

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.
@@ -16254,7 +16254,7 @@
16254
16254
  if (this.livs[i].idp != null)
16255
16255
  if (this.user_idp != null)
16256
16256
  if ((this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() || this.livs[i].gruppo_parallelo == "*ALLUSERS"))
16257
- if (this.livs[i].livello == 10 && this.livs[i].notifica == 0) {
16257
+ if (this.livs[i].livello <= 10 && this.livs[i].notifica == 0) {
16258
16258
  this.is_Ins = true;
16259
16259
  if (this.livs[i].gruppo_parallelo == "*ALLUSERS") {
16260
16260
  this.livs[i].gruppo_parallelo = "";
@@ -16492,10 +16492,8 @@
16492
16492
  }
16493
16493
  if (this.clevel == null)
16494
16494
  for (var i = 0; i < this.livs.length; i++) {
16495
- console.log(this.livs[i]);
16496
16495
  if (this.livs[i].livello == liv) {
16497
16496
  if (this.user_idp.toUpperCase() == this.livs[i].idp.toUpperCase() || this.livs[i].gruppo_parallelo == '*ALLUSERS') {
16498
- console.log(this.c_canale + " " + this.livs[i].gruppo_parallelo);
16499
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')) {
16500
16498
  this.clevel = this.livs[i];
16501
16499
  break;
@@ -16630,10 +16628,11 @@
16630
16628
  var cliv = 100000;
16631
16629
  liv = this.clevel.livello;
16632
16630
  console.log('liv: ' + liv);
16633
- for (var i = 0; i < this.livs.length; i++)
16634
- if (liv == 0 || (liv < this.livs[i].livello && cliv > this.livs[i].livello)) {
16635
- this.nlevel = this.livs[i];
16636
- cliv = this.livs[i].livello;
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
+ this.nlevel = this.livs[i_1];
16634
+ cliv = this.livs[i_1].livello;
16635
+ console.log('calcolo next ', this.nlevel);
16637
16636
  }
16638
16637
  liv = this.wkf_rule(cliv);
16639
16638
  /** @type {?} */
@@ -16687,13 +16686,16 @@
16687
16686
  /** @type {?} */
16688
16687
  var arrAutori = new Array();
16689
16688
  if (this.clevel.gruppo_parallelo == "") {
16689
+ console.log('senza gp ', this.clevel.gruppo_parallelo + " " + this.nlevel.livello);
16690
16690
  for (var i = 0; i < this.livs.length; i++)
16691
16691
  if (this.livs[i].livello == this.nlevel.livello && this.livs[i].notifica == 0)
16692
16692
  arrAutori.push(this.livs[i]);
16693
+ console.log('arrAutori ', arrAutori);
16693
16694
  }
16694
16695
  else {
16695
16696
  /** @type {?} */
16696
16697
  var b_canale = false;
16698
+ console.log('con gp ', this.clevel.gruppo_parallelo);
16697
16699
  for (var i = 0; i < this.livs.length; i++)
16698
16700
  if (this.livs[i].livello == this.nlevel.livello && this.livs[i].gruppo_parallelo != "")
16699
16701
  b_canale = true;
@@ -16715,10 +16717,10 @@
16715
16717
  this.app_s.getState().wkf_doc_info.title = 'Avanzamento';
16716
16718
  /** @type {?} */
16717
16719
  var sp = "";
16718
- for (var i_1 = 0; i_1 < arrAutori.length; i_1++) {
16720
+ for (var i_2 = 0; i_2 < arrAutori.length; i_2++) {
16719
16721
  if (sp != '')
16720
16722
  sp = sp + ';';
16721
- sp = sp + arrAutori[i_1].nc;
16723
+ sp = sp + arrAutori[i_2].nc;
16722
16724
  }
16723
16725
  this.app_s.getState().wkf_doc_info.utenti = "";
16724
16726
  if (this.nlevel.livello < 900)
@@ -16901,14 +16903,14 @@
16901
16903
  }
16902
16904
  /** @type {?} */
16903
16905
  var ccan = "$$";
16904
- for (var i_2 = 0; i_2 < this.livs.length; i_2++) {
16905
- if (this.livs[i_2].livello == this.clevel.livello && this.livs[i_2].idp == this.app_s.user) {
16906
+ for (var i_3 = 0; i_3 < this.livs.length; i_3++) {
16907
+ if (this.livs[i_3].livello == this.clevel.livello && this.livs[i_3].idp == this.app_s.user) {
16906
16908
  if (ccan != "$$") {
16907
16909
  ccan = "$$";
16908
16910
  break;
16909
16911
  }
16910
16912
  else
16911
- ccan = this.livs[i_2].gruppo_parallelo;
16913
+ ccan = this.livs[i_3].gruppo_parallelo;
16912
16914
  }
16913
16915
  }
16914
16916
  /** @type {?} */
@@ -16919,7 +16921,7 @@
16919
16921
  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);
16920
16922
  /** @type {?} */
16921
16923
  var t = new Array();
16922
- for (var i_3 = 0; i_3 < a.length; i_3++)
16924
+ for (var i_4 = 0; i_4 < a.length; i_4++)
16923
16925
  t.push('string');
16924
16926
  this.m_crea_att = 1;
16925
16927
  if (this.m_liv >= 900)
@@ -17049,11 +17051,11 @@
17049
17051
  if (data.result_msg == "OK") {
17050
17052
  /** @type {?} */
17051
17053
  var lista_p = _this.user_idp;
17052
- for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
17053
- if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
17054
- console.log('username:', data.result_data[i_4].username);
17054
+ for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
17055
+ if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
17056
+ console.log('username:', data.result_data[i_5].username);
17055
17057
  lista_p += ',';
17056
- lista_p += data.result_data[i_4].username;
17058
+ lista_p += data.result_data[i_5].username;
17057
17059
  }
17058
17060
  console.log('lista_p ', lista_p);
17059
17061
  _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);
@@ -17074,11 +17076,11 @@
17074
17076
  if (data.result_msg == "OK") {
17075
17077
  /** @type {?} */
17076
17078
  var lista_p = _this.user_idp;
17077
- for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
17078
- if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
17079
- console.log('username:', data.result_data[i_5].username);
17079
+ for (var i_6 = 0; i_6 < data.result_data.length; i_6++)
17080
+ if (lista_p.indexOf(data.result_data[i_6].username) == -1) {
17081
+ console.log('username:', data.result_data[i_6].username);
17080
17082
  lista_p += ',';
17081
- lista_p += data.result_data[i_5].username;
17083
+ lista_p += data.result_data[i_6].username;
17082
17084
  }
17083
17085
  _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);
17084
17086
  }