@fluxhub/fluxhub-lib 1.0.278 → 1.0.280

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, Pipe, Directive, Inject, PLATFORM_ID, Input, Output, EventEmitter, forwardRef, ViewChild, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
36
+ import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, Output, EventEmitter, forwardRef, 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';
@@ -12329,11 +12329,12 @@ win_log.decorators = [
12329
12329
  <div style="width:100%;text-align: right;">
12330
12330
 
12331
12331
  </div>
12332
+ <!--
12332
12333
  <button color="primary" (click)="ins()" *ngIf="!b_edit">
12333
12334
  <mat-icon>note_add</mat-icon>
12334
12335
  INSERISCI
12335
12336
  </button>
12336
-
12337
+ -->
12337
12338
  </mat-toolbar>
12338
12339
  <br>
12339
12340
  <div mat-dialog-content>
@@ -14213,7 +14214,7 @@ class dati_aggiuntivi {
14213
14214
  this.user_nome = this.app_s.user_name;
14214
14215
  this.user_cognome = this.app_s.user_surname;
14215
14216
  this.user_email = this.app_s.user_email;
14216
- // console.log('user_idp: '+ this.user_idp);
14217
+ console.log('user_idp: ' + this.user_idp);
14217
14218
  }
14218
14219
  /**
14219
14220
  * @return {?}
@@ -14612,7 +14613,6 @@ class dati_aggiuntivi {
14612
14613
  this.m_lettori = this.m_lettori + ",";
14613
14614
  this.m_lettori = this.m_lettori + this.arrUsersSelected[i].idp;
14614
14615
  }
14615
- console.log('m_lettori2 ' + this.m_lettori);
14616
14616
  if (this.m_autori.toLowerCase().indexOf(this.arrUsersSelected[i].idp.toLowerCase()) == -1) {
14617
14617
  if (this.m_autori != "")
14618
14618
  this.m_autori = this.m_autori + ",";
@@ -14621,7 +14621,6 @@ class dati_aggiuntivi {
14621
14621
  this.m_autori = this.m_autori + this.arrUsersSelected[i].idp;
14622
14622
  nomi_autori = nomi_autori + this.arrUsersSelected[i].nc;
14623
14623
  }
14624
- console.log('m_lettori3 ' + this.m_lettori);
14625
14624
  }
14626
14625
  if (this.nota != "") {
14627
14626
  this.insert_commento(this.id_applicativo, this.id_documento, this.nota, this.user_idp); //id_applicativo,uiid,commento,creatore
@@ -14632,7 +14631,10 @@ class dati_aggiuntivi {
14632
14631
  this.m_obj.assegnati_paralleli = "";
14633
14632
  this.chstato(this.m_liv);
14634
14633
  if (this.m_obj.stato <= 10) {
14635
- this.insert_wkf_variabile(this.id_applicativo, this.id_documento, "REQUESTER", this.user_idp);
14634
+ if (this.m_obj.creatore == null || this.m_obj.creatore == '')
14635
+ this.insert_wkf_variabile(this.id_applicativo, this.id_documento, "REQUESTER", this.user_idp);
14636
+ else
14637
+ this.insert_wkf_variabile(this.id_applicativo, this.id_documento, "REQUESTER", this.m_obj.creatore);
14636
14638
  }
14637
14639
  for (var i = 0; i < this.livs.length; i++)
14638
14640
  if (this.livs[i].livello == this.m_liv && this.livs[i].notifica == 1) {
@@ -14954,7 +14956,7 @@ class dati_aggiuntivi {
14954
14956
  */
14955
14957
  insert_wkf_variabile(p_id_applicativo, p_id_documento, p_var, p_user_idp) {
14956
14958
  /** @type {?} */
14957
- var p = new QParam();
14959
+ let p = new QParam();
14958
14960
  p.sql = "insert_wkf_variabile";
14959
14961
  p.values = [p_id_applicativo, p_id_documento, p_var, p_user_idp];
14960
14962
  this.m_wkf.doQuery(p).subscribe((/**
@@ -15219,7 +15221,6 @@ class dati_aggiuntivi {
15219
15221
  * @return {?}
15220
15222
  */
15221
15223
  ok_load_document(o) {
15222
- console.log(o);
15223
15224
  this.m_obj = (JSON.parse(JSON.stringify(o)));
15224
15225
  this.edit_b(false);
15225
15226
  this.save_to_app_state();
@@ -15711,6 +15712,7 @@ class dati_aggiuntivi {
15711
15712
  * @return {?}
15712
15713
  */
15713
15714
  ngOnInit() {
15715
+ console.log('ngOnInit ');
15714
15716
  this.m_route.params.subscribe((/**
15715
15717
  * @param {?} params
15716
15718
  * @return {?}