@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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +34 -32
- 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 +15 -13
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +6 -6
- package/esm5/lib/wkf_engine/wkfapp.js +15 -13
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +21 -21
- package/fesm2015/fluxhub-fluxhub-lib.js +20 -18
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +35 -33
- 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,
|
|
37
|
+
import { Injectable, Component, Pipe, Inject, PLATFORM_ID, Directive, Input, forwardRef, ViewChild, Output, EventEmitter, 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
|
-
|
|
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
|
-
|
|
5407
|
-
|
|
5408
|
-
if (this.
|
|
5409
|
-
|
|
5410
|
-
|
|
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 {?}
|
|
@@ -14860,10 +14863,8 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14860
14863
|
}
|
|
14861
14864
|
if (this.clevel == null)
|
|
14862
14865
|
for (var i = 0; i < this.livs.length; i++) {
|
|
14863
|
-
console.log(this.livs[i]);
|
|
14864
14866
|
if (this.livs[i].livello == liv) {
|
|
14865
14867
|
if (this.user_idp.toUpperCase() == this.livs[i].idp.toUpperCase() || this.livs[i].gruppo_parallelo == '*ALLUSERS') {
|
|
14866
|
-
console.log(this.c_canale + " " + this.livs[i].gruppo_parallelo);
|
|
14867
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')) {
|
|
14868
14869
|
this.clevel = this.livs[i];
|
|
14869
14870
|
break;
|
|
@@ -14999,10 +15000,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14999
15000
|
var cliv = 100000;
|
|
15000
15001
|
liv = this.clevel.livello;
|
|
15001
15002
|
console.log('liv: ' + liv);
|
|
15002
|
-
for (var
|
|
15003
|
-
if (liv == 0 || (liv < this.livs[
|
|
15004
|
-
|
|
15005
|
-
|
|
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
|
+
console.log('calcolo next ', this.nlevel);
|
|
15006
|
+
this.nlevel = this.livs[i_1];
|
|
15007
|
+
cliv = this.livs[i_1].livello;
|
|
15006
15008
|
}
|
|
15007
15009
|
liv = this.wkf_rule(cliv);
|
|
15008
15010
|
/** @type {?} */
|
|
@@ -15084,10 +15086,10 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15084
15086
|
this.app_s.getState().wkf_doc_info.title = 'Avanzamento';
|
|
15085
15087
|
/** @type {?} */
|
|
15086
15088
|
var sp = "";
|
|
15087
|
-
for (var
|
|
15089
|
+
for (var i_2 = 0; i_2 < arrAutori.length; i_2++) {
|
|
15088
15090
|
if (sp != '')
|
|
15089
15091
|
sp = sp + ';';
|
|
15090
|
-
sp = sp + arrAutori[
|
|
15092
|
+
sp = sp + arrAutori[i_2].nc;
|
|
15091
15093
|
}
|
|
15092
15094
|
this.app_s.getState().wkf_doc_info.utenti = "";
|
|
15093
15095
|
if (this.nlevel.livello < 900)
|
|
@@ -15275,14 +15277,14 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15275
15277
|
}
|
|
15276
15278
|
/** @type {?} */
|
|
15277
15279
|
var ccan = "$$";
|
|
15278
|
-
for (var
|
|
15279
|
-
if (this.livs[
|
|
15280
|
+
for (var i_3 = 0; i_3 < this.livs.length; i_3++) {
|
|
15281
|
+
if (this.livs[i_3].livello == this.clevel.livello && this.livs[i_3].idp == this.app_s.user) {
|
|
15280
15282
|
if (ccan != "$$") {
|
|
15281
15283
|
ccan = "$$";
|
|
15282
15284
|
break;
|
|
15283
15285
|
}
|
|
15284
15286
|
else
|
|
15285
|
-
ccan = this.livs[
|
|
15287
|
+
ccan = this.livs[i_3].gruppo_parallelo;
|
|
15286
15288
|
}
|
|
15287
15289
|
}
|
|
15288
15290
|
/** @type {?} */
|
|
@@ -15293,7 +15295,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15293
15295
|
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);
|
|
15294
15296
|
/** @type {?} */
|
|
15295
15297
|
var t = new Array();
|
|
15296
|
-
for (var
|
|
15298
|
+
for (var i_4 = 0; i_4 < a.length; i_4++)
|
|
15297
15299
|
t.push('string');
|
|
15298
15300
|
this.m_crea_att = 1;
|
|
15299
15301
|
if (this.m_liv >= 900)
|
|
@@ -15427,11 +15429,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15427
15429
|
if (data.result_msg == "OK") {
|
|
15428
15430
|
/** @type {?} */
|
|
15429
15431
|
var lista_p = _this.user_idp;
|
|
15430
|
-
for (var
|
|
15431
|
-
if (lista_p.indexOf(data.result_data[
|
|
15432
|
-
console.log('username:', data.result_data[
|
|
15432
|
+
for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
|
|
15433
|
+
if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
|
|
15434
|
+
console.log('username:', data.result_data[i_5].username);
|
|
15433
15435
|
lista_p += ',';
|
|
15434
|
-
lista_p += data.result_data[
|
|
15436
|
+
lista_p += data.result_data[i_5].username;
|
|
15435
15437
|
}
|
|
15436
15438
|
console.log('lista_p ', lista_p);
|
|
15437
15439
|
_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);
|
|
@@ -15453,11 +15455,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15453
15455
|
if (data.result_msg == "OK") {
|
|
15454
15456
|
/** @type {?} */
|
|
15455
15457
|
var lista_p = _this.user_idp;
|
|
15456
|
-
for (var
|
|
15457
|
-
if (lista_p.indexOf(data.result_data[
|
|
15458
|
-
console.log('username:', data.result_data[
|
|
15458
|
+
for (var i_6 = 0; i_6 < data.result_data.length; i_6++)
|
|
15459
|
+
if (lista_p.indexOf(data.result_data[i_6].username) == -1) {
|
|
15460
|
+
console.log('username:', data.result_data[i_6].username);
|
|
15459
15461
|
lista_p += ',';
|
|
15460
|
-
lista_p += data.result_data[
|
|
15462
|
+
lista_p += data.result_data[i_6].username;
|
|
15461
15463
|
}
|
|
15462
15464
|
_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);
|
|
15463
15465
|
}
|