@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.
@@ -33,7 +33,7 @@ import { DomSanitizer } from '@angular/platform-browser';
33
33
  import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
34
34
  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';
35
35
  import { ActivatedRoute, Router } from '@angular/router';
36
- import { Injectable, Component, Directive, Pipe, Input, Output, EventEmitter, forwardRef, ViewChild, ElementRef, Inject, PLATFORM_ID, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
36
+ import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
37
37
  import { Http } from '@angular/http';
38
38
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
39
39
  import { ToastrService } from 'ngx-toastr';
@@ -14675,11 +14675,23 @@ class dati_aggiuntivi {
14675
14675
  }));
14676
14676
  }
14677
14677
  /** @type {?} */
14678
+ let ccan = "$$";
14679
+ for (let i = 0; i < this.livs.length; i++) {
14680
+ if (this.livs[i].livello == this.clevel.livello && this.livs[i].idp == this.app_s.user) {
14681
+ if (ccan != "$$") {
14682
+ ccan = "$$";
14683
+ break;
14684
+ }
14685
+ else
14686
+ ccan = this.livs[i].gruppo_parallelo;
14687
+ }
14688
+ }
14689
+ /** @type {?} */
14678
14690
  let a;
14679
14691
  if (!this.app_info.documento_pubblico)
14680
- 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);
14692
+ 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);
14681
14693
  else
14682
- 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);
14694
+ 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);
14683
14695
  /** @type {?} */
14684
14696
  let t = new Array();
14685
14697
  for (let i = 0; i < a.length; i++)
@@ -14695,6 +14707,7 @@ class dati_aggiuntivi {
14695
14707
  if (this.nlevel != null)
14696
14708
  if (this.nlevel.descri_livello != null)
14697
14709
  this.m_oper = this.m_oper + " -> " + this.nlevel.descri_livello;
14710
+ console.log('ccan ', ccan);
14698
14711
  /** @type {?} */
14699
14712
  let p = new QParam();
14700
14713
  p.sql = "doWKF";
@@ -17339,6 +17352,7 @@ class FHGuard {
17339
17352
  this.appService.user_roles = this.appService.user_roles.substr(1);
17340
17353
  this.appService.user_isadmin = data.result_data[0].isadmin;
17341
17354
  this.appService.user = data.result_data[0].username;
17355
+ console.log('this.app_s.user_isadmin ', this.app_s.user_isadmin);
17342
17356
  if (this.app_s.user_isadmin != null)
17343
17357
  if (this.app_s.user_isadmin == "1") {
17344
17358
  resolve(true);
@@ -17358,7 +17372,7 @@ class FHGuard {
17358
17372
  data => {
17359
17373
  this.arr_accessi = data.result_data;
17360
17374
  for (let i = 0; i < this.arr_accessi.length; i++) {
17361
- //console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
17375
+ console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
17362
17376
  if (this.arr_accessi[i].type == 'M') {
17363
17377
  if ('[' + this.arr_accessi[i].url.split('/')[0] + ']' == '[' + this.routingDestination.split('/')[0] + ']') {
17364
17378
  resolve(true);