@fluxhub/fluxhub-lib 1.0.286 → 1.0.287

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, Directive, Pipe, Component, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
37
+ import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, Output, EventEmitter, forwardRef, ViewChild, 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';
@@ -15259,14 +15259,26 @@ var dati_aggiuntivi = /** @class */ (function () {
15259
15259
  }));
15260
15260
  }
15261
15261
  /** @type {?} */
15262
+ var ccan = "$$";
15263
+ for (var i_2 = 0; i_2 < this.livs.length; i_2++) {
15264
+ if (this.livs[i_2].livello == this.clevel.livello && this.livs[i_2].idp == this.app_s.user) {
15265
+ if (ccan != "$$") {
15266
+ ccan = "$$";
15267
+ break;
15268
+ }
15269
+ else
15270
+ ccan = this.livs[i_2].gruppo_parallelo;
15271
+ }
15272
+ }
15273
+ /** @type {?} */
15262
15274
  var a;
15263
15275
  if (!this.app_info.documento_pubblico)
15264
- a = new Array(this.m_autori, this.m_lettori, 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);
15276
+ a = new Array(this.m_autori, this.m_lettori, 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);
15265
15277
  else
15266
- 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);
15278
+ 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);
15267
15279
  /** @type {?} */
15268
15280
  var t = new Array();
15269
- for (var i_2 = 0; i_2 < a.length; i_2++)
15281
+ for (var i_3 = 0; i_3 < a.length; i_3++)
15270
15282
  t.push('string');
15271
15283
  this.m_crea_att = 1;
15272
15284
  if (this.m_liv >= 900)
@@ -15279,6 +15291,7 @@ var dati_aggiuntivi = /** @class */ (function () {
15279
15291
  if (this.nlevel != null)
15280
15292
  if (this.nlevel.descri_livello != null)
15281
15293
  this.m_oper = this.m_oper + " -> " + this.nlevel.descri_livello;
15294
+ console.log('ccan ', ccan);
15282
15295
  /** @type {?} */
15283
15296
  var p = new QParam();
15284
15297
  p.sql = "doWKF";
@@ -15399,11 +15412,11 @@ var dati_aggiuntivi = /** @class */ (function () {
15399
15412
  if (data.result_msg == "OK") {
15400
15413
  /** @type {?} */
15401
15414
  var lista_p = _this.user_idp;
15402
- for (var i_3 = 0; i_3 < data.result_data.length; i_3++)
15403
- if (lista_p.indexOf(data.result_data[i_3].username) == -1) {
15404
- console.log('username:', data.result_data[i_3].username);
15415
+ for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
15416
+ if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
15417
+ console.log('username:', data.result_data[i_4].username);
15405
15418
  lista_p += ',';
15406
- lista_p += data.result_data[i_3].username;
15419
+ lista_p += data.result_data[i_4].username;
15407
15420
  }
15408
15421
  console.log('lista_p ', lista_p);
15409
15422
  _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);
@@ -15425,11 +15438,11 @@ var dati_aggiuntivi = /** @class */ (function () {
15425
15438
  if (data.result_msg == "OK") {
15426
15439
  /** @type {?} */
15427
15440
  var lista_p = _this.user_idp;
15428
- for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
15429
- if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
15430
- console.log('username:', data.result_data[i_4].username);
15441
+ for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
15442
+ if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
15443
+ console.log('username:', data.result_data[i_5].username);
15431
15444
  lista_p += ',';
15432
- lista_p += data.result_data[i_4].username;
15445
+ lista_p += data.result_data[i_5].username;
15433
15446
  }
15434
15447
  _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);
15435
15448
  }
@@ -18066,6 +18079,7 @@ var FHGuard = /** @class */ (function () {
18066
18079
  _this.appService.user_roles = _this.appService.user_roles.substr(1);
18067
18080
  _this.appService.user_isadmin = data.result_data[0].isadmin;
18068
18081
  _this.appService.user = data.result_data[0].username;
18082
+ console.log('this.app_s.user_isadmin ', _this.app_s.user_isadmin);
18069
18083
  if (_this.app_s.user_isadmin != null)
18070
18084
  if (_this.app_s.user_isadmin == "1") {
18071
18085
  resolve(true);
@@ -18085,7 +18099,7 @@ var FHGuard = /** @class */ (function () {
18085
18099
  function (data) {
18086
18100
  _this.arr_accessi = data.result_data;
18087
18101
  for (var i = 0; i < _this.arr_accessi.length; i++) {
18088
- //console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
18102
+ console.log('[' + _this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + _this.routingDestination.split('/')[0] + ']');
18089
18103
  if (_this.arr_accessi[i].type == 'M') {
18090
18104
  if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
18091
18105
  resolve(true);