@fluxhub/fluxhub-lib 1.0.289 → 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.
@@ -34,7 +34,7 @@ import { DomSanitizer } from '@angular/platform-browser';
34
34
  import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
35
35
  import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
36
36
  import { ActivatedRoute, Router } from '@angular/router';
37
- import { Injectable, Component, Directive, Inject, PLATFORM_ID, Pipe, Input, forwardRef, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
37
+ import { Injectable, Component, Pipe, Inject, PLATFORM_ID, Directive, Input, forwardRef, ViewChild, Output, EventEmitter, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
38
38
  import { Http } from '@angular/http';
39
39
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
40
40
  import { ToastrService } from 'ngx-toastr';
@@ -14863,10 +14863,8 @@ var dati_aggiuntivi = /** @class */ (function () {
14863
14863
  }
14864
14864
  if (this.clevel == null)
14865
14865
  for (var i = 0; i < this.livs.length; i++) {
14866
- console.log(this.livs[i]);
14867
14866
  if (this.livs[i].livello == liv) {
14868
14867
  if (this.user_idp.toUpperCase() == this.livs[i].idp.toUpperCase() || this.livs[i].gruppo_parallelo == '*ALLUSERS') {
14869
- console.log(this.c_canale + " " + this.livs[i].gruppo_parallelo);
14870
14868
  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')) {
14871
14869
  this.clevel = this.livs[i];
14872
14870
  break;
@@ -15002,10 +15000,11 @@ var dati_aggiuntivi = /** @class */ (function () {
15002
15000
  var cliv = 100000;
15003
15001
  liv = this.clevel.livello;
15004
15002
  console.log('liv: ' + liv);
15005
- for (var i = 0; i < this.livs.length; i++)
15006
- if (liv == 0 || (liv < this.livs[i].livello && cliv > this.livs[i].livello)) {
15007
- this.nlevel = this.livs[i];
15008
- cliv = this.livs[i].livello;
15003
+ for (var i_1 = 0; i_1 < this.livs.length; i_1++)
15004
+ if (liv == 0 || (liv < this.livs[i_1].livello && cliv > this.livs[i_1].livello)) {
15005
+ console.log('calcolo next ', this.nlevel);
15006
+ this.nlevel = this.livs[i_1];
15007
+ cliv = this.livs[i_1].livello;
15009
15008
  }
15010
15009
  liv = this.wkf_rule(cliv);
15011
15010
  /** @type {?} */
@@ -15087,10 +15086,10 @@ var dati_aggiuntivi = /** @class */ (function () {
15087
15086
  this.app_s.getState().wkf_doc_info.title = 'Avanzamento';
15088
15087
  /** @type {?} */
15089
15088
  var sp = "";
15090
- for (var i_1 = 0; i_1 < arrAutori.length; i_1++) {
15089
+ for (var i_2 = 0; i_2 < arrAutori.length; i_2++) {
15091
15090
  if (sp != '')
15092
15091
  sp = sp + ';';
15093
- sp = sp + arrAutori[i_1].nc;
15092
+ sp = sp + arrAutori[i_2].nc;
15094
15093
  }
15095
15094
  this.app_s.getState().wkf_doc_info.utenti = "";
15096
15095
  if (this.nlevel.livello < 900)
@@ -15278,14 +15277,14 @@ var dati_aggiuntivi = /** @class */ (function () {
15278
15277
  }
15279
15278
  /** @type {?} */
15280
15279
  var ccan = "$$";
15281
- for (var i_2 = 0; i_2 < this.livs.length; i_2++) {
15282
- if (this.livs[i_2].livello == this.clevel.livello && this.livs[i_2].idp == this.app_s.user) {
15280
+ for (var i_3 = 0; i_3 < this.livs.length; i_3++) {
15281
+ if (this.livs[i_3].livello == this.clevel.livello && this.livs[i_3].idp == this.app_s.user) {
15283
15282
  if (ccan != "$$") {
15284
15283
  ccan = "$$";
15285
15284
  break;
15286
15285
  }
15287
15286
  else
15288
- ccan = this.livs[i_2].gruppo_parallelo;
15287
+ ccan = this.livs[i_3].gruppo_parallelo;
15289
15288
  }
15290
15289
  }
15291
15290
  /** @type {?} */
@@ -15296,7 +15295,7 @@ var dati_aggiuntivi = /** @class */ (function () {
15296
15295
  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);
15297
15296
  /** @type {?} */
15298
15297
  var t = new Array();
15299
- for (var i_3 = 0; i_3 < a.length; i_3++)
15298
+ for (var i_4 = 0; i_4 < a.length; i_4++)
15300
15299
  t.push('string');
15301
15300
  this.m_crea_att = 1;
15302
15301
  if (this.m_liv >= 900)
@@ -15430,11 +15429,11 @@ var dati_aggiuntivi = /** @class */ (function () {
15430
15429
  if (data.result_msg == "OK") {
15431
15430
  /** @type {?} */
15432
15431
  var lista_p = _this.user_idp;
15433
- for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
15434
- if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
15435
- console.log('username:', data.result_data[i_4].username);
15432
+ for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
15433
+ if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
15434
+ console.log('username:', data.result_data[i_5].username);
15436
15435
  lista_p += ',';
15437
- lista_p += data.result_data[i_4].username;
15436
+ lista_p += data.result_data[i_5].username;
15438
15437
  }
15439
15438
  console.log('lista_p ', lista_p);
15440
15439
  _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);
@@ -15456,11 +15455,11 @@ var dati_aggiuntivi = /** @class */ (function () {
15456
15455
  if (data.result_msg == "OK") {
15457
15456
  /** @type {?} */
15458
15457
  var lista_p = _this.user_idp;
15459
- for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
15460
- if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
15461
- console.log('username:', data.result_data[i_5].username);
15458
+ for (var i_6 = 0; i_6 < data.result_data.length; i_6++)
15459
+ if (lista_p.indexOf(data.result_data[i_6].username) == -1) {
15460
+ console.log('username:', data.result_data[i_6].username);
15462
15461
  lista_p += ',';
15463
- lista_p += data.result_data[i_5].username;
15462
+ lista_p += data.result_data[i_6].username;
15464
15463
  }
15465
15464
  _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);
15466
15465
  }