@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.
@@ -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, Inject, PLATFORM_ID, Input, Output, EventEmitter, forwardRef, ViewChild, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
36
+ import { Injectable, Component, Directive, Inject, PLATFORM_ID, Pipe, 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';
@@ -5104,8 +5104,16 @@ class wkfapp {
5104
5104
  a_partecipanti = this.get_grid().sRow.partecipanti;
5105
5105
  /** @type {?} */
5106
5106
  let a_datanot = "";
5107
- //Alert.show(String(wax.dataSelect.length));
5107
+ /** @type {?} */
5108
+ let old_grp = "XCXXX";
5108
5109
  for (let i = 0; i < this.wax.length; i++) {
5110
+ if (old_grp == "XCXXX" || old_grp == this.wax[i].gruppo_parallelo) {
5111
+ old_grp = this.wax[i].gruppo_parallelo;
5112
+ }
5113
+ else {
5114
+ this._toastr.error('impossibile assegnare a utenti di gruppi distiniti');
5115
+ return;
5116
+ }
5109
5117
  if (a_datanot != "")
5110
5118
  a_datanot = a_datanot + ",";
5111
5119
  a_datanot = a_datanot + this.wax[i].idp;
@@ -5157,17 +5165,11 @@ class wkfapp {
5157
5165
  }));
5158
5166
  /** @type {?} */
5159
5167
  let ccan = "$$";
5160
- for (let i = 0; i < this.livs_adm.length; i++)
5161
- for (let y = 0; y < this.wax.length; y++) {
5162
- if (this.livs_adm[i].livello == this.os_r.livello && this.wax[y].idp == this.livs_adm[i].idp) {
5163
- if (ccan != "$$") {
5164
- ccan = "$$";
5165
- break;
5166
- }
5167
- else
5168
- ccan = this.livs_adm[i].gruppo_parallelo;
5169
- }
5170
- }
5168
+ if (this.wax.length > 0) {
5169
+ if (this.wax[0].gruppo_parallelo != null)
5170
+ if (this.wax[0].gruppo_parallelo != '')
5171
+ ccan = this.wax[0].gruppo_parallelo;
5172
+ }
5171
5173
  console.log('riassegnazione canale: ', ccan);
5172
5174
  /** @type {?} */
5173
5175
  var p = new QParam();
@@ -14250,6 +14252,7 @@ class dati_aggiuntivi {
14250
14252
  this.app_s.getState().wkf_doc_info.stato = this.m_obj.stat_stato;
14251
14253
  this.app_s.getState().wkf_doc_info.uiid_app = this.id_applicativo;
14252
14254
  this.app_s.getState().wkf_doc_info.uiid_doc = this.m_obj.id_documento;
14255
+ this.app_s.getState().wkf_doc_info.canale = this.m_obj.canale;
14253
14256
  }
14254
14257
  /**
14255
14258
  * @return {?}
@@ -14303,10 +14306,8 @@ class dati_aggiuntivi {
14303
14306
  }
14304
14307
  if (this.clevel == null)
14305
14308
  for (let i = 0; i < this.livs.length; i++) {
14306
- console.log(this.livs[i]);
14307
14309
  if (this.livs[i].livello == liv) {
14308
14310
  if (this.user_idp.toUpperCase() == this.livs[i].idp.toUpperCase() || this.livs[i].gruppo_parallelo == '*ALLUSERS') {
14309
- console.log(this.c_canale + " " + this.livs[i].gruppo_parallelo);
14310
14311
  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')) {
14311
14312
  this.clevel = this.livs[i];
14312
14313
  break;
@@ -14429,13 +14430,14 @@ class dati_aggiuntivi {
14429
14430
  */
14430
14431
  calcolanextandjump() {
14431
14432
  /** @type {?} */
14432
- var liv = 0;
14433
+ let liv = 0;
14433
14434
  /** @type {?} */
14434
- var cliv = 100000;
14435
+ let cliv = 100000;
14435
14436
  liv = this.clevel.livello;
14436
14437
  console.log('liv: ' + liv);
14437
- for (var i = 0; i < this.livs.length; i++)
14438
+ for (let i = 0; i < this.livs.length; i++)
14438
14439
  if (liv == 0 || (liv < this.livs[i].livello && cliv > this.livs[i].livello)) {
14440
+ console.log('calcolo next ', this.nlevel);
14439
14441
  this.nlevel = this.livs[i];
14440
14442
  cliv = this.livs[i].livello;
14441
14443
  }