@fluxhub/fluxhub-lib 1.0.289 → 1.0.291
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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +23 -21
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/wkf_engine/wkfapp.js +2 -2
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +10 -8
- package/esm5/lib/wkf_engine/wkfapp.js +2 -2
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +23 -21
- package/fesm2015/fluxhub-fluxhub-lib.js +10 -8
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +24 -22
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -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, Component, Directive, Inject, PLATFORM_ID,
|
|
37
|
+
import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, 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';
|
|
@@ -5943,7 +5943,7 @@ wkfapp = /** @class */ (function () {
|
|
|
5943
5943
|
if (this.livs[i].idp != null)
|
|
5944
5944
|
if (this.user_idp != null)
|
|
5945
5945
|
if ((this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() || this.livs[i].gruppo_parallelo == "*ALLUSERS"))
|
|
5946
|
-
if (this.livs[i].livello
|
|
5946
|
+
if (this.livs[i].livello <= 10 && this.livs[i].notifica == 0) {
|
|
5947
5947
|
this.is_Ins = true;
|
|
5948
5948
|
if (this.livs[i].gruppo_parallelo == "*ALLUSERS") {
|
|
5949
5949
|
this.livs[i].gruppo_parallelo = "";
|
|
@@ -14863,10 +14863,8 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14863
14863
|
}
|
|
14864
14864
|
if (this.clevel == null)
|
|
14865
14865
|
for (var i = 0; i < this.livs.length; i++) {
|
|
14866
|
-
console.log(this.livs[i]);
|
|
14867
14866
|
if (this.livs[i].livello == liv) {
|
|
14868
14867
|
if (this.user_idp.toUpperCase() == this.livs[i].idp.toUpperCase() || this.livs[i].gruppo_parallelo == '*ALLUSERS') {
|
|
14869
|
-
console.log(this.c_canale + " " + this.livs[i].gruppo_parallelo);
|
|
14870
14868
|
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')) {
|
|
14871
14869
|
this.clevel = this.livs[i];
|
|
14872
14870
|
break;
|
|
@@ -15002,10 +15000,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15002
15000
|
var cliv = 100000;
|
|
15003
15001
|
liv = this.clevel.livello;
|
|
15004
15002
|
console.log('liv: ' + liv);
|
|
15005
|
-
for (var
|
|
15006
|
-
if (liv == 0 || (liv < this.livs[
|
|
15007
|
-
this.nlevel = this.livs[
|
|
15008
|
-
cliv = this.livs[
|
|
15003
|
+
for (var i_1 = 0; i_1 < this.livs.length; i_1++)
|
|
15004
|
+
if (liv == 0 || (liv < this.livs[i_1].livello && cliv > this.livs[i_1].livello)) {
|
|
15005
|
+
this.nlevel = this.livs[i_1];
|
|
15006
|
+
cliv = this.livs[i_1].livello;
|
|
15007
|
+
console.log('calcolo next ', this.nlevel);
|
|
15009
15008
|
}
|
|
15010
15009
|
liv = this.wkf_rule(cliv);
|
|
15011
15010
|
/** @type {?} */
|
|
@@ -15059,13 +15058,16 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15059
15058
|
/** @type {?} */
|
|
15060
15059
|
var arrAutori = new Array();
|
|
15061
15060
|
if (this.clevel.gruppo_parallelo == "") {
|
|
15061
|
+
console.log('senza gp ', this.clevel.gruppo_parallelo + " " + this.nlevel.livello);
|
|
15062
15062
|
for (var i = 0; i < this.livs.length; i++)
|
|
15063
15063
|
if (this.livs[i].livello == this.nlevel.livello && this.livs[i].notifica == 0)
|
|
15064
15064
|
arrAutori.push(this.livs[i]);
|
|
15065
|
+
console.log('arrAutori ', arrAutori);
|
|
15065
15066
|
}
|
|
15066
15067
|
else {
|
|
15067
15068
|
/** @type {?} */
|
|
15068
15069
|
var b_canale = false;
|
|
15070
|
+
console.log('con gp ', this.clevel.gruppo_parallelo);
|
|
15069
15071
|
for (var i = 0; i < this.livs.length; i++)
|
|
15070
15072
|
if (this.livs[i].livello == this.nlevel.livello && this.livs[i].gruppo_parallelo != "")
|
|
15071
15073
|
b_canale = true;
|
|
@@ -15087,10 +15089,10 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15087
15089
|
this.app_s.getState().wkf_doc_info.title = 'Avanzamento';
|
|
15088
15090
|
/** @type {?} */
|
|
15089
15091
|
var sp = "";
|
|
15090
|
-
for (var
|
|
15092
|
+
for (var i_2 = 0; i_2 < arrAutori.length; i_2++) {
|
|
15091
15093
|
if (sp != '')
|
|
15092
15094
|
sp = sp + ';';
|
|
15093
|
-
sp = sp + arrAutori[
|
|
15095
|
+
sp = sp + arrAutori[i_2].nc;
|
|
15094
15096
|
}
|
|
15095
15097
|
this.app_s.getState().wkf_doc_info.utenti = "";
|
|
15096
15098
|
if (this.nlevel.livello < 900)
|
|
@@ -15278,14 +15280,14 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15278
15280
|
}
|
|
15279
15281
|
/** @type {?} */
|
|
15280
15282
|
var ccan = "$$";
|
|
15281
|
-
for (var
|
|
15282
|
-
if (this.livs[
|
|
15283
|
+
for (var i_3 = 0; i_3 < this.livs.length; i_3++) {
|
|
15284
|
+
if (this.livs[i_3].livello == this.clevel.livello && this.livs[i_3].idp == this.app_s.user) {
|
|
15283
15285
|
if (ccan != "$$") {
|
|
15284
15286
|
ccan = "$$";
|
|
15285
15287
|
break;
|
|
15286
15288
|
}
|
|
15287
15289
|
else
|
|
15288
|
-
ccan = this.livs[
|
|
15290
|
+
ccan = this.livs[i_3].gruppo_parallelo;
|
|
15289
15291
|
}
|
|
15290
15292
|
}
|
|
15291
15293
|
/** @type {?} */
|
|
@@ -15296,7 +15298,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15296
15298
|
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);
|
|
15297
15299
|
/** @type {?} */
|
|
15298
15300
|
var t = new Array();
|
|
15299
|
-
for (var
|
|
15301
|
+
for (var i_4 = 0; i_4 < a.length; i_4++)
|
|
15300
15302
|
t.push('string');
|
|
15301
15303
|
this.m_crea_att = 1;
|
|
15302
15304
|
if (this.m_liv >= 900)
|
|
@@ -15430,11 +15432,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15430
15432
|
if (data.result_msg == "OK") {
|
|
15431
15433
|
/** @type {?} */
|
|
15432
15434
|
var lista_p = _this.user_idp;
|
|
15433
|
-
for (var
|
|
15434
|
-
if (lista_p.indexOf(data.result_data[
|
|
15435
|
-
console.log('username:', data.result_data[
|
|
15435
|
+
for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
|
|
15436
|
+
if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
|
|
15437
|
+
console.log('username:', data.result_data[i_5].username);
|
|
15436
15438
|
lista_p += ',';
|
|
15437
|
-
lista_p += data.result_data[
|
|
15439
|
+
lista_p += data.result_data[i_5].username;
|
|
15438
15440
|
}
|
|
15439
15441
|
console.log('lista_p ', lista_p);
|
|
15440
15442
|
_this.sendEMail_ex(_this.user_idp, lista_p, _this.app_info.descrizione_breve + ", Il documento numero: " + _this.m_obj.codice + " è passato allo STEP: " + _this.nlevel.descri_livello + " " + _this.getTitle(), _this.m_statox + "<br>" + _this.getDescri() + comm_1, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
|
|
@@ -15456,11 +15458,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15456
15458
|
if (data.result_msg == "OK") {
|
|
15457
15459
|
/** @type {?} */
|
|
15458
15460
|
var lista_p = _this.user_idp;
|
|
15459
|
-
for (var
|
|
15460
|
-
if (lista_p.indexOf(data.result_data[
|
|
15461
|
-
console.log('username:', data.result_data[
|
|
15461
|
+
for (var i_6 = 0; i_6 < data.result_data.length; i_6++)
|
|
15462
|
+
if (lista_p.indexOf(data.result_data[i_6].username) == -1) {
|
|
15463
|
+
console.log('username:', data.result_data[i_6].username);
|
|
15462
15464
|
lista_p += ',';
|
|
15463
|
-
lista_p += data.result_data[
|
|
15465
|
+
lista_p += data.result_data[i_6].username;
|
|
15464
15466
|
}
|
|
15465
15467
|
_this.sendEMail_ex(_this.user_idp, lista_p, _this.app_info.descrizione_breve + ", Il documento numero: " + _this.m_obj.codice + " è passato allo STEP: " + _this.nlevel.descri_livello + " " + _this.getTitle(), _this.m_statox + "<br>" + _this.getDescri() + comm_1, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
|
|
15466
15468
|
}
|