@fluxhub/fluxhub-lib 1.0.288 → 1.0.289

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, Component, Pipe, Inject, PLATFORM_ID, Input, Output, EventEmitter, ViewChild, forwardRef, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
37
+ import { Injectable, Component, Directive, Inject, PLATFORM_ID, Pipe, Input, forwardRef, Output, EventEmitter, 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';
@@ -5350,8 +5350,16 @@ wkfapp = /** @class */ (function () {
5350
5350
  a_partecipanti = this.get_grid().sRow.partecipanti;
5351
5351
  /** @type {?} */
5352
5352
  var a_datanot = "";
5353
- //Alert.show(String(wax.dataSelect.length));
5353
+ /** @type {?} */
5354
+ var old_grp = "XCXXX";
5354
5355
  for (var i = 0; i < this.wax.length; i++) {
5356
+ if (old_grp == "XCXXX" || old_grp == this.wax[i].gruppo_parallelo) {
5357
+ old_grp = this.wax[i].gruppo_parallelo;
5358
+ }
5359
+ else {
5360
+ this._toastr.error('impossibile assegnare a utenti di gruppi distiniti');
5361
+ return;
5362
+ }
5355
5363
  if (a_datanot != "")
5356
5364
  a_datanot = a_datanot + ",";
5357
5365
  a_datanot = a_datanot + this.wax[i].idp;
@@ -5403,17 +5411,11 @@ wkfapp = /** @class */ (function () {
5403
5411
  }));
5404
5412
  /** @type {?} */
5405
5413
  var ccan = "$$";
5406
- for (var i = 0; i < this.livs_adm.length; i++)
5407
- for (var y = 0; y < this.wax.length; y++) {
5408
- if (this.livs_adm[i].livello == this.os_r.livello && this.wax[y].idp == this.livs_adm[i].idp) {
5409
- if (ccan != "$$") {
5410
- ccan = "$$";
5411
- break;
5412
- }
5413
- else
5414
- ccan = this.livs_adm[i].gruppo_parallelo;
5415
- }
5416
- }
5414
+ if (this.wax.length > 0) {
5415
+ if (this.wax[0].gruppo_parallelo != null)
5416
+ if (this.wax[0].gruppo_parallelo != '')
5417
+ ccan = this.wax[0].gruppo_parallelo;
5418
+ }
5417
5419
  console.log('riassegnazione canale: ', ccan);
5418
5420
  /** @type {?} */
5419
5421
  var p = new QParam();
@@ -14798,6 +14800,7 @@ var dati_aggiuntivi = /** @class */ (function () {
14798
14800
  this.app_s.getState().wkf_doc_info.stato = this.m_obj.stat_stato;
14799
14801
  this.app_s.getState().wkf_doc_info.uiid_app = this.id_applicativo;
14800
14802
  this.app_s.getState().wkf_doc_info.uiid_doc = this.m_obj.id_documento;
14803
+ this.app_s.getState().wkf_doc_info.canale = this.m_obj.canale;
14801
14804
  };
14802
14805
  /**
14803
14806
  * @return {?}