@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.
@@ -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, Directive, Component, Pipe, Inject, PLATFORM_ID, Input, forwardRef, ViewChild, Output, EventEmitter, 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 {?}