@fluxhub/fluxhub-lib 1.0.286 → 1.0.288
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 +43 -14
- 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/docs/components/win_info_doc.html +32 -1
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/auth_guard.js +3 -2
- package/esm2015/lib/wkf_engine/win_info_doc.js +10 -1
- package/esm2015/lib/wkf_engine/wkfapp.js +16 -2
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +16 -3
- package/esm5/lib/auth_guard.js +3 -2
- package/esm5/lib/wkf_engine/win_info_doc.js +5 -2
- package/esm5/lib/wkf_engine/wkfapp.js +16 -2
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +25 -12
- package/fesm2015/fluxhub-fluxhub-lib.js +40 -5
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +44 -15
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine/win_info_doc.d.ts +1 -0
- 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, Directive,
|
|
37
|
+
import { Injectable, Directive, Component, Pipe, Inject, PLATFORM_ID, Input, Output, EventEmitter, ViewChild, forwardRef, 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';
|
|
@@ -5402,9 +5402,23 @@ wkfapp = /** @class */ (function () {
|
|
|
5402
5402
|
console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
|
|
5403
5403
|
}));
|
|
5404
5404
|
/** @type {?} */
|
|
5405
|
+
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
|
+
}
|
|
5417
|
+
console.log('riassegnazione canale: ', ccan);
|
|
5418
|
+
/** @type {?} */
|
|
5405
5419
|
var p = new QParam();
|
|
5406
5420
|
p.sql = "UPDATE_RIASS_DOCUMENTO";
|
|
5407
|
-
p.types = ['string', 'string', 'string', 'string', 'string', 'string', 'string', 'string', 'string'];
|
|
5421
|
+
p.types = ['string', 'string', 'string', 'string', 'string', 'string', 'string', 'string', 'string', 'string', ccan];
|
|
5408
5422
|
p.values = [this.os_r.livello, this.os_r.descri_livello, a_let, a_aut, this.os_r.descri_livello, a_pers_inti, a_partecipanti, this.get_grid().sRow.id_applicativo, this.get_grid().sRow.uiid];
|
|
5409
5423
|
this
|
|
5410
5424
|
.m_dataService
|
|
@@ -12341,6 +12355,7 @@ var win_info_doc = /** @class */ (function () {
|
|
|
12341
12355
|
this.in_carico_a = this.m_appService.getState().wkf_doc_info.in_carico_a;
|
|
12342
12356
|
this.uiid_app = this.m_appService.getState().wkf_doc_info.uiid_app;
|
|
12343
12357
|
this.uiid_doc = this.m_appService.getState().wkf_doc_info.uiid_doc;
|
|
12358
|
+
this.canale = this.m_appService.getState().wkf_doc_info.canale;
|
|
12344
12359
|
}
|
|
12345
12360
|
/**
|
|
12346
12361
|
* @return {?}
|
|
@@ -12352,7 +12367,7 @@ var win_info_doc = /** @class */ (function () {
|
|
|
12352
12367
|
};
|
|
12353
12368
|
win_info_doc.decorators = [
|
|
12354
12369
|
{ type: Component, args: [{
|
|
12355
|
-
template: "\n <mat-toolbar color=\"primary\">INFO DOCUMENTO\n <div style=\"width:100%;text-align: right;\">\n </div>\n </mat-toolbar>\n <div mat-dialog-content>\n \n <table class=\"fh_table\">\n\n <tbody>\n <tr class=\"odd\">\n\n <td>Codice:</td>\n <td><b>{{codice}}</b></td>\n </tr>\n <tr class=\"even\">\n\n <td>Data:</td>\n <td><b>{{data_richiesta | date: 'dd/MM/yyyy hh:mm:ss'}}</b></td>\n </tr>\n <tr *ngIf=\"!hide_richiedente\" class=\"odd\">\n\n <td>Richiedente:</td>\n <td><b>{{richiedente}}</b></td>\n\n </tr>\n <tr class=\"even\">\n\n <td>Stato:</td>\n <td><b>{{stato}}</b></td>\n\n </tr>\n <tr class=\"odd\"> \n\n <td>In Carico a:</td>\n <td><b>{{in_carico_a}}</b></td>\n\n </tr>\n\n <tr class=\"even\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Uiid App:</td>\n <td><b>{{uiid_app}}</b></td>\n\n </tr>\n <tr class=\"odd\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Uiid Doc:</td>\n <td><b>{{uiid_doc}}</b></td>\n\n </tr>\n </tbody>\n </table>\n \n </div>\n <br>\n\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"accent\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </div>\n "
|
|
12370
|
+
template: "\n <mat-toolbar color=\"primary\">INFO DOCUMENTO\n <div style=\"width:100%;text-align: right;\">\n </div>\n </mat-toolbar>\n <div mat-dialog-content>\n \n <table class=\"fh_table\">\n\n <tbody>\n <tr class=\"odd\">\n\n <td>Codice:</td>\n <td><b>{{codice}}</b></td>\n </tr>\n <tr class=\"even\">\n\n <td>Data:</td>\n <td><b>{{data_richiesta | date: 'dd/MM/yyyy hh:mm:ss'}}</b></td>\n </tr>\n <tr *ngIf=\"!hide_richiedente\" class=\"odd\">\n\n <td>Richiedente:</td>\n <td><b>{{richiedente}}</b></td>\n\n </tr>\n <tr class=\"even\">\n\n <td>Stato:</td>\n <td><b>{{stato}}</b></td>\n\n </tr>\n <tr class=\"odd\"> \n\n <td>In Carico a:</td>\n <td><b>{{in_carico_a}}</b></td>\n\n </tr>\n\n <tr class=\"even\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Uiid App:</td>\n <td><b>{{uiid_app}}</b></td>\n\n </tr>\n <tr class=\"odd\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Uiid Doc:</td>\n <td><b>{{uiid_doc}}</b></td>\n\n </tr>\n <tr class=\"odd\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Grp:</td>\n <td><b>{{canale}}</b></td>\n\n </tr>\n </tbody>\n </table>\n \n </div>\n <br>\n\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"accent\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </div>\n "
|
|
12356
12371
|
}] }
|
|
12357
12372
|
];
|
|
12358
12373
|
/** @nocollapse */
|
|
@@ -15259,14 +15274,26 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15259
15274
|
}));
|
|
15260
15275
|
}
|
|
15261
15276
|
/** @type {?} */
|
|
15277
|
+
var ccan = "$$";
|
|
15278
|
+
for (var i_2 = 0; i_2 < this.livs.length; i_2++) {
|
|
15279
|
+
if (this.livs[i_2].livello == this.clevel.livello && this.livs[i_2].idp == this.app_s.user) {
|
|
15280
|
+
if (ccan != "$$") {
|
|
15281
|
+
ccan = "$$";
|
|
15282
|
+
break;
|
|
15283
|
+
}
|
|
15284
|
+
else
|
|
15285
|
+
ccan = this.livs[i_2].gruppo_parallelo;
|
|
15286
|
+
}
|
|
15287
|
+
}
|
|
15288
|
+
/** @type {?} */
|
|
15262
15289
|
var a;
|
|
15263
15290
|
if (!this.app_info.documento_pubblico)
|
|
15264
|
-
a = new Array(this.m_autori, this.m_lettori, 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);
|
|
15291
|
+
a = new Array(this.m_autori, this.m_lettori, 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);
|
|
15265
15292
|
else
|
|
15266
|
-
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);
|
|
15293
|
+
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);
|
|
15267
15294
|
/** @type {?} */
|
|
15268
15295
|
var t = new Array();
|
|
15269
|
-
for (var
|
|
15296
|
+
for (var i_3 = 0; i_3 < a.length; i_3++)
|
|
15270
15297
|
t.push('string');
|
|
15271
15298
|
this.m_crea_att = 1;
|
|
15272
15299
|
if (this.m_liv >= 900)
|
|
@@ -15279,6 +15306,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15279
15306
|
if (this.nlevel != null)
|
|
15280
15307
|
if (this.nlevel.descri_livello != null)
|
|
15281
15308
|
this.m_oper = this.m_oper + " -> " + this.nlevel.descri_livello;
|
|
15309
|
+
console.log('ccan ', ccan);
|
|
15282
15310
|
/** @type {?} */
|
|
15283
15311
|
var p = new QParam();
|
|
15284
15312
|
p.sql = "doWKF";
|
|
@@ -15399,11 +15427,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15399
15427
|
if (data.result_msg == "OK") {
|
|
15400
15428
|
/** @type {?} */
|
|
15401
15429
|
var lista_p = _this.user_idp;
|
|
15402
|
-
for (var
|
|
15403
|
-
if (lista_p.indexOf(data.result_data[
|
|
15404
|
-
console.log('username:', data.result_data[
|
|
15430
|
+
for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
|
|
15431
|
+
if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
|
|
15432
|
+
console.log('username:', data.result_data[i_4].username);
|
|
15405
15433
|
lista_p += ',';
|
|
15406
|
-
lista_p += data.result_data[
|
|
15434
|
+
lista_p += data.result_data[i_4].username;
|
|
15407
15435
|
}
|
|
15408
15436
|
console.log('lista_p ', lista_p);
|
|
15409
15437
|
_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);
|
|
@@ -15425,11 +15453,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15425
15453
|
if (data.result_msg == "OK") {
|
|
15426
15454
|
/** @type {?} */
|
|
15427
15455
|
var lista_p = _this.user_idp;
|
|
15428
|
-
for (var
|
|
15429
|
-
if (lista_p.indexOf(data.result_data[
|
|
15430
|
-
console.log('username:', data.result_data[
|
|
15456
|
+
for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
|
|
15457
|
+
if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
|
|
15458
|
+
console.log('username:', data.result_data[i_5].username);
|
|
15431
15459
|
lista_p += ',';
|
|
15432
|
-
lista_p += data.result_data[
|
|
15460
|
+
lista_p += data.result_data[i_5].username;
|
|
15433
15461
|
}
|
|
15434
15462
|
_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);
|
|
15435
15463
|
}
|
|
@@ -18066,6 +18094,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
18066
18094
|
_this.appService.user_roles = _this.appService.user_roles.substr(1);
|
|
18067
18095
|
_this.appService.user_isadmin = data.result_data[0].isadmin;
|
|
18068
18096
|
_this.appService.user = data.result_data[0].username;
|
|
18097
|
+
console.log('this.app_s.user_isadmin ', _this.app_s.user_isadmin);
|
|
18069
18098
|
if (_this.app_s.user_isadmin != null)
|
|
18070
18099
|
if (_this.app_s.user_isadmin == "1") {
|
|
18071
18100
|
resolve(true);
|
|
@@ -18085,7 +18114,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
18085
18114
|
function (data) {
|
|
18086
18115
|
_this.arr_accessi = data.result_data;
|
|
18087
18116
|
for (var i = 0; i < _this.arr_accessi.length; i++) {
|
|
18088
|
-
|
|
18117
|
+
console.log('[' + _this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + _this.routingDestination.split('/')[0] + ']');
|
|
18089
18118
|
if (_this.arr_accessi[i].type == 'M') {
|
|
18090
18119
|
if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
|
|
18091
18120
|
resolve(true);
|