@fluxhub/fluxhub-lib 1.0.456 → 1.0.458
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 +215 -78
- 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/auth_guard.js +2 -3
- package/esm2015/lib/controls/fhwinpicklist.js +4 -4
- package/esm2015/lib/controls/win_list_pick.js +8 -4
- package/esm2015/lib/wkf_engine/win_commenti.js +107 -17
- package/esm2015/lib/wkf_engine/win_log.js +104 -66
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +15 -5
- package/esm5/lib/auth_guard.js +2 -3
- package/esm5/lib/controls/fhwinpicklist.js +2 -2
- package/esm5/lib/controls/win_list_pick.js +5 -2
- package/esm5/lib/wkf_engine/win_commenti.js +108 -13
- package/esm5/lib/wkf_engine/win_log.js +106 -60
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +15 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +213 -89
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +211 -75
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/win_list_pick.d.ts +1 -0
- package/lib/wkf_engine/win_commenti.d.ts +6 -1
- package/lib/wkf_engine/win_log.d.ts +6 -1
- package/package.json +1 -1
|
@@ -40,7 +40,6 @@ import { TranslateModule } from '@ngx-translate/core';
|
|
|
40
40
|
import { DragulaService, DragulaModule } from 'ng2-dragula';
|
|
41
41
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
42
42
|
import { Http } from '@angular/http';
|
|
43
|
-
import { isNotNullOrUndefined } from 'codelyzer/util/is-not-null-or-undefined';
|
|
44
43
|
|
|
45
44
|
/**
|
|
46
45
|
* @fileoverview added by tsickle
|
|
@@ -10855,7 +10854,7 @@ var FHPickListComponent = /** @class */ (function () {
|
|
|
10855
10854
|
FHPickListComponent.decorators = [
|
|
10856
10855
|
{ type: Component, args: [{
|
|
10857
10856
|
selector: 'FHPickList',
|
|
10858
|
-
template: "\n \n <div fxLayout=\"column\" fxLayoutGap=\"15px\" fxFlex
|
|
10857
|
+
template: "\n \n <div fxLayout=\"column\" fxLayoutGap=\"15px\" fxFlex >\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"41%\">\n\n \n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>VALORI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr><td> <input [(ngModel)]=\"fltr_user\" (ngModelChange)=\"filtra()\" style='padding:8px;margin:15px auto;width:100%;'\n placeholder='Ricerca...'>\n </td></tr>\n <tr *ngFor=\"let u of value_list_sel;let odd=odd; let even=even;\" [ngClass]=\"{ odd: odd, even: even }\" (click)=\"addTo(u)\" (dblclick)=\"do_add()\" class=\"selector\"\n [ngClass]=\"{ 'active': selectedAdd == u }\">\n <td>{{u.descrizione_valore}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"18%\"\n style=\"height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\">\n <div style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\">\n <button mat-flat-button color=\"primary\" (click)=\"do_add()\" [disabled]=\"!option\">\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br><br>\n <button mat-flat-button color=\"primary\" (click)=\"do_rem()\" [disabled]=\"option\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"41%\">\n \n\n <div style=\"width:100%;height:420px;overflow:auto;\">\n\n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>VALORI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let u of value_sel;let odd=odd; let even=even;\" (mouseover)=\"selectedRemove=u\" [ngClass]=\"{ odd: odd, even: even }\" (click)=\"removeTo(u)\" (dblclick)=\"do_rem()\" class=\"selector\"\n [ngClass]=\"{ 'active': selectedRemove == u }\">\n <td>{{u.descrizione_valore}}</td>\n\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br><br>\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">Ok</button> \n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close()\">Annulla</button>\n </div>\n </div>\n\n ",
|
|
10859
10858
|
styles: ["\n .selector{\n cursor:hand\n }\n "]
|
|
10860
10859
|
}] }
|
|
10861
10860
|
];
|
|
@@ -11826,6 +11825,7 @@ var FHListPick = /** @class */ (function () {
|
|
|
11826
11825
|
this.toastr = toastr;
|
|
11827
11826
|
this.m_appService = m_appService;
|
|
11828
11827
|
this.label = "";
|
|
11828
|
+
this.title = "";
|
|
11829
11829
|
this.sql = "";
|
|
11830
11830
|
this.single_sel = false;
|
|
11831
11831
|
this.sel_values = "";
|
|
@@ -11879,7 +11879,7 @@ var FHListPick = /** @class */ (function () {
|
|
|
11879
11879
|
FHListPick.decorators = [
|
|
11880
11880
|
{ type: Component, args: [{
|
|
11881
11881
|
selector: 'fhwincomboselect',
|
|
11882
|
-
template: "\n <mat-dialog-content style=\"min-width:700px;font-size: 12px
|
|
11882
|
+
template: "\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"min-width:700px;min-height:500px;font-size: 12px\">\n <FHList #cmb_sel [label]=\"label\" [single_sel]=\"single_sel\" [label]=\"\" style=\"width:100%;height:100%\" init_fill=\"false\" (selchange)=\"ok_single()\"></FHList>\n\n </mat-dialog-content>\n\n\n <mat-dialog-actions>\n<div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n \n <button mat-flat-button color=\"primary\" *ngIf=\"!single_sel\" (click)=\"ok()\">OK</button> \n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">ANNULLA</button>\n</div>\n </mat-dialog-actions>\n "
|
|
11883
11883
|
}] }
|
|
11884
11884
|
];
|
|
11885
11885
|
/** @nocollapse */
|
|
@@ -13138,7 +13138,10 @@ var win_commenti = /** @class */ (function () {
|
|
|
13138
13138
|
this.toastr = toastr;
|
|
13139
13139
|
this._dataService = _dataService;
|
|
13140
13140
|
this.m_wkf = m_wkf;
|
|
13141
|
-
this.
|
|
13141
|
+
this.notifica_commenti = 1;
|
|
13142
|
+
this.notifica_commenti_obbl = 0;
|
|
13143
|
+
this.not_comm = false;
|
|
13144
|
+
this.not_comm_disabled = false;
|
|
13142
13145
|
this.nota = "";
|
|
13143
13146
|
this.title = "COMMENTI";
|
|
13144
13147
|
this.b_edit = false;
|
|
@@ -13150,6 +13153,18 @@ var win_commenti = /** @class */ (function () {
|
|
|
13150
13153
|
this.codice_doc = "";
|
|
13151
13154
|
this.refresh_list();
|
|
13152
13155
|
}
|
|
13156
|
+
/**
|
|
13157
|
+
* @return {?}
|
|
13158
|
+
*/
|
|
13159
|
+
win_commenti.prototype.init_v = /**
|
|
13160
|
+
* @return {?}
|
|
13161
|
+
*/
|
|
13162
|
+
function () {
|
|
13163
|
+
if (this.notifica_commenti > 0 && this.notifica_commenti_obbl == 1) {
|
|
13164
|
+
this.not_comm = true;
|
|
13165
|
+
this.not_comm_disabled = true;
|
|
13166
|
+
}
|
|
13167
|
+
};
|
|
13153
13168
|
/**
|
|
13154
13169
|
* @param {?} event
|
|
13155
13170
|
* @return {?}
|
|
@@ -13210,16 +13225,71 @@ var win_commenti = /** @class */ (function () {
|
|
|
13210
13225
|
* @return {?}
|
|
13211
13226
|
*/
|
|
13212
13227
|
function () {
|
|
13213
|
-
if (!this.
|
|
13228
|
+
if (!this.notifica_commenti) {
|
|
13214
13229
|
this.ok_op();
|
|
13230
|
+
}
|
|
13215
13231
|
else {
|
|
13216
13232
|
if (this.nota == '') {
|
|
13217
13233
|
this.toastr.error("INSERIRE UN COMMENTO");
|
|
13218
13234
|
return;
|
|
13219
13235
|
}
|
|
13220
|
-
this.
|
|
13236
|
+
if (this.notifica_commenti == 1)
|
|
13237
|
+
this.select_destinatari();
|
|
13238
|
+
else
|
|
13239
|
+
this.select_destinatari_grp();
|
|
13221
13240
|
}
|
|
13222
13241
|
};
|
|
13242
|
+
/**
|
|
13243
|
+
* @return {?}
|
|
13244
|
+
*/
|
|
13245
|
+
win_commenti.prototype.select_destinatari_grp = /**
|
|
13246
|
+
* @return {?}
|
|
13247
|
+
*/
|
|
13248
|
+
function () {
|
|
13249
|
+
var _this = this;
|
|
13250
|
+
/** @type {?} */
|
|
13251
|
+
var dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
|
|
13252
|
+
dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
|
|
13253
|
+
dialo.componentInstance.types = ['string'];
|
|
13254
|
+
dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
|
|
13255
|
+
dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
|
|
13256
|
+
dialo.componentInstance.doFill();
|
|
13257
|
+
dialo.afterClosed().subscribe((/**
|
|
13258
|
+
* @param {?} result
|
|
13259
|
+
* @return {?}
|
|
13260
|
+
*/
|
|
13261
|
+
function (result) {
|
|
13262
|
+
if (result != null) {
|
|
13263
|
+
if (result == '')
|
|
13264
|
+
return;
|
|
13265
|
+
/** @type {?} */
|
|
13266
|
+
var s_users_1 = "";
|
|
13267
|
+
for (var i = 0; i < result.length; i++) {
|
|
13268
|
+
if (s_users_1 != "")
|
|
13269
|
+
s_users_1 = s_users_1 + ",";
|
|
13270
|
+
s_users_1 = s_users_1 + "" + result[i].valore + "";
|
|
13271
|
+
}
|
|
13272
|
+
/** @type {?} */
|
|
13273
|
+
var p = new QParam();
|
|
13274
|
+
p.sql = "SELECT_USERS_BY_IDROLES_NOREP";
|
|
13275
|
+
p.types = ['string'];
|
|
13276
|
+
p.values = [s_users_1];
|
|
13277
|
+
_this._dataService.doQuery(p).subscribe((/**
|
|
13278
|
+
* @param {?} data
|
|
13279
|
+
* @return {?}
|
|
13280
|
+
*/
|
|
13281
|
+
function (data) {
|
|
13282
|
+
s_users_1 = '';
|
|
13283
|
+
for (var i = 0; i < data.result_data.length; i++) {
|
|
13284
|
+
if (s_users_1 != "")
|
|
13285
|
+
s_users_1 = s_users_1 + ",";
|
|
13286
|
+
s_users_1 = s_users_1 + "" + data.result_data[i].username + "";
|
|
13287
|
+
}
|
|
13288
|
+
_this.ok_op(s_users_1);
|
|
13289
|
+
}));
|
|
13290
|
+
}
|
|
13291
|
+
}));
|
|
13292
|
+
};
|
|
13223
13293
|
/**
|
|
13224
13294
|
* @return {?}
|
|
13225
13295
|
*/
|
|
@@ -13322,8 +13392,8 @@ var win_commenti = /** @class */ (function () {
|
|
|
13322
13392
|
/** @type {?} */
|
|
13323
13393
|
var p = new QParam();
|
|
13324
13394
|
p.sql = "INSERT_WKF_COMMENTO";
|
|
13325
|
-
p.types = ['string', 'string', 'string', 'string'];
|
|
13326
|
-
p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.nota, this.m_appService.getState().wkf_doc_info.curr_user];
|
|
13395
|
+
p.types = ['string', 'string', 'string', 'string', 'string'];
|
|
13396
|
+
p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.nota, this.m_appService.getState().wkf_doc_info.curr_user, sdest];
|
|
13327
13397
|
this._dataService.doQuery(p).subscribe((/**
|
|
13328
13398
|
* @param {?} data
|
|
13329
13399
|
* @return {?}
|
|
@@ -13352,8 +13422,8 @@ var win_commenti = /** @class */ (function () {
|
|
|
13352
13422
|
/** @type {?} */
|
|
13353
13423
|
var p = new QParam();
|
|
13354
13424
|
p.sql = "UPDATE_WKF_COMMENTO";
|
|
13355
|
-
p.types = ['string', 'string', 'string'
|
|
13356
|
-
p.values = [this.nota, this.edit_id];
|
|
13425
|
+
p.types = ['string', 'string', 'string'];
|
|
13426
|
+
p.values = [this.nota, this.edit_id, sdest];
|
|
13357
13427
|
this._dataService.doQuery(p).subscribe((/**
|
|
13358
13428
|
* @param {?} data
|
|
13359
13429
|
* @return {?}
|
|
@@ -13391,9 +13461,26 @@ var win_commenti = /** @class */ (function () {
|
|
|
13391
13461
|
* @return {?}
|
|
13392
13462
|
*/
|
|
13393
13463
|
function () {
|
|
13394
|
-
|
|
13395
|
-
this.
|
|
13396
|
-
this.
|
|
13464
|
+
var _this = this;
|
|
13465
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
|
|
13466
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
|
|
13467
|
+
/** @type {?} */
|
|
13468
|
+
var dialogRef1 = this
|
|
13469
|
+
.m_dialogRef
|
|
13470
|
+
.open(FHConfirmComponent);
|
|
13471
|
+
dialogRef1
|
|
13472
|
+
.afterClosed()
|
|
13473
|
+
.subscribe((/**
|
|
13474
|
+
* @param {?} result
|
|
13475
|
+
* @return {?}
|
|
13476
|
+
*/
|
|
13477
|
+
function (result) {
|
|
13478
|
+
if (result) {
|
|
13479
|
+
_this.nota = '';
|
|
13480
|
+
_this.b_edit = false;
|
|
13481
|
+
_this.title = 'COMMENTI';
|
|
13482
|
+
}
|
|
13483
|
+
}));
|
|
13397
13484
|
};
|
|
13398
13485
|
/**
|
|
13399
13486
|
* @return {?}
|
|
@@ -13417,7 +13504,7 @@ var win_commenti = /** @class */ (function () {
|
|
|
13417
13504
|
};
|
|
13418
13505
|
win_commenti.decorators = [
|
|
13419
13506
|
{ type: Component, args: [{
|
|
13420
|
-
template: "\n <mat-toolbar color=\"primary\">{{title}}\n <span class=\"fill-remaining-space\"></span>\n <button color=\"primary\" (click)=\"ins()\" *ngIf=\"!b_edit\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>\n\n </mat-toolbar>\n <br>\n <div mat-dialog-content style=\"min-width:800px;font-size: 12px;\" >\n\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n \n\n <div *ngIf=\"b_edit\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button> \n <button mat-flat-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button> \n <mat-checkbox [(ngModel)]=\"
|
|
13507
|
+
template: "\n <mat-toolbar color=\"primary\">{{title}}\n <span class=\"fill-remaining-space\"></span>\n <button color=\"primary\" (click)=\"ins()\" *ngIf=\"!b_edit\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>\n\n </mat-toolbar>\n <br>\n <div mat-dialog-content style=\"min-width:800px;font-size: 12px;\" >\n\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n \n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button> \n <button mat-flat-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button> \n <mat-checkbox [disabled]=\"not_comm_disabled\" [(ngModel)]=\"not_comm\" [hidden]=\"notifica_commenti==0 || (notifica_commenti==1 && lettori=='')\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <section class=\"bs\" *ngIf=\"!b_edit\">\n <table style=\"min-width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>Commento</th>\n <th width=\"15%\">Autore</th>\n <th width=\"15%\">Data</th>\n <th></th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n \n <tr *ngFor=\"let app of commenti_list;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\" >\n\n <td [innerHTML]=\"app.v_commento\"></td>\n <td>{{app.COGNOME + ' ' + app.NOME}}</td>\n <td>{{app.v_data_creazione}}</td>\n <td><mat-icon [matTooltip]=\"app.dest_notif\" *ngIf=\"app.dest_notif!=null && app.dest_notif!=''\">mail</mat-icon></td>\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n \n </tr>\n </tbody>\n </table>\n </section>\n\n </div>\n <br>\n\n <div style=\"width:100%;text-align:center;\" *ngIf=\"!b_edit\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </div>\n\n\n ",
|
|
13421
13508
|
styles: ["\n\n \n\n "]
|
|
13422
13509
|
}] }
|
|
13423
13510
|
];
|
|
@@ -13484,7 +13571,6 @@ var win_info_doc = /** @class */ (function () {
|
|
|
13484
13571
|
*/
|
|
13485
13572
|
var win_log = /** @class */ (function () {
|
|
13486
13573
|
function win_log(appService, dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
|
|
13487
|
-
// this.logs = this.m_appService.getState( ).appo_dialog.logs;
|
|
13488
13574
|
this.appService = appService;
|
|
13489
13575
|
this.dialogRef = dialogRef;
|
|
13490
13576
|
this.m_dialogRef = m_dialogRef;
|
|
@@ -13493,16 +13579,19 @@ var win_log = /** @class */ (function () {
|
|
|
13493
13579
|
this._dataService = _dataService;
|
|
13494
13580
|
this.m_wkf = m_wkf;
|
|
13495
13581
|
this.ossv = false;
|
|
13582
|
+
this.not_comm = false;
|
|
13583
|
+
this.not_comm_disabled = false;
|
|
13496
13584
|
this.b_flussook = true;
|
|
13497
13585
|
this.logs = new Array();
|
|
13586
|
+
this.notifica_commenti = 1;
|
|
13587
|
+
this.notifica_commenti_obbl = 0;
|
|
13498
13588
|
this.title = "LOG WORKFLOW E COMMENTI";
|
|
13499
13589
|
this.nota = "";
|
|
13500
13590
|
this.commenti_insert = false;
|
|
13501
13591
|
this.b_edit = false;
|
|
13502
13592
|
this.b_ins = false;
|
|
13503
13593
|
this.edit_id = 0;
|
|
13504
|
-
this.lettori =
|
|
13505
|
-
this.not_int = true;
|
|
13594
|
+
this.lettori = '';
|
|
13506
13595
|
this.subject = "";
|
|
13507
13596
|
this.link = "";
|
|
13508
13597
|
this.codice_doc = "";
|
|
@@ -13516,6 +13605,18 @@ var win_log = /** @class */ (function () {
|
|
|
13516
13605
|
function () {
|
|
13517
13606
|
this.refresh_list();
|
|
13518
13607
|
};
|
|
13608
|
+
/**
|
|
13609
|
+
* @return {?}
|
|
13610
|
+
*/
|
|
13611
|
+
win_log.prototype.init_v = /**
|
|
13612
|
+
* @return {?}
|
|
13613
|
+
*/
|
|
13614
|
+
function () {
|
|
13615
|
+
if (this.notifica_commenti > 0 && this.notifica_commenti_obbl == 1) {
|
|
13616
|
+
this.not_comm = true;
|
|
13617
|
+
this.not_comm_disabled = true;
|
|
13618
|
+
}
|
|
13619
|
+
};
|
|
13519
13620
|
/**
|
|
13520
13621
|
* @return {?}
|
|
13521
13622
|
*/
|
|
@@ -13536,7 +13637,6 @@ var win_log = /** @class */ (function () {
|
|
|
13536
13637
|
function (data) {
|
|
13537
13638
|
if (data != null)
|
|
13538
13639
|
if (data.result_msg == "OK") {
|
|
13539
|
-
console.log('data.result_data[0].diagramma_flusso ', data.result_data[0].diagramma_flusso);
|
|
13540
13640
|
if (data.result_data.length > 0)
|
|
13541
13641
|
if (data.result_data[0].diagramma_flusso != null)
|
|
13542
13642
|
if (data.result_data[0].diagramma_flusso != '') {
|
|
@@ -13550,7 +13650,6 @@ var win_log = /** @class */ (function () {
|
|
|
13550
13650
|
if (!b_found)
|
|
13551
13651
|
if (_this.logs[i].liv_fin != null) {
|
|
13552
13652
|
data.result_data[0].diagramma_flusso = data.result_data[0].diagramma_flusso.split('bpmnElement="STEP_' + _this.logs[i].liv_fin + '"').join('bpmnElement="STEP_' + _this.logs[i].liv_fin + '" bioc:stroke="#FB8C00" bioc:fill="#FFE0B2"');
|
|
13553
|
-
console.log('this.logs[i].liv_fin ', _this.logs[i].liv_fin);
|
|
13554
13653
|
b_found = true;
|
|
13555
13654
|
}
|
|
13556
13655
|
}
|
|
@@ -13560,7 +13659,6 @@ var win_log = /** @class */ (function () {
|
|
|
13560
13659
|
* @return {?}
|
|
13561
13660
|
*/
|
|
13562
13661
|
function (err) {
|
|
13563
|
-
console.log('err', err);
|
|
13564
13662
|
if (!err) {
|
|
13565
13663
|
/** @type {?} */
|
|
13566
13664
|
var canvas = _this.modeler.get('canvas');
|
|
@@ -13583,9 +13681,26 @@ var win_log = /** @class */ (function () {
|
|
|
13583
13681
|
* @return {?}
|
|
13584
13682
|
*/
|
|
13585
13683
|
function () {
|
|
13586
|
-
|
|
13587
|
-
this.
|
|
13588
|
-
this.
|
|
13684
|
+
var _this = this;
|
|
13685
|
+
localStorage.setItem(this.appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
|
|
13686
|
+
localStorage.setItem(this.appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
|
|
13687
|
+
/** @type {?} */
|
|
13688
|
+
var dialogRef1 = this
|
|
13689
|
+
.m_dialogRef
|
|
13690
|
+
.open(FHConfirmComponent);
|
|
13691
|
+
dialogRef1
|
|
13692
|
+
.afterClosed()
|
|
13693
|
+
.subscribe((/**
|
|
13694
|
+
* @param {?} result
|
|
13695
|
+
* @return {?}
|
|
13696
|
+
*/
|
|
13697
|
+
function (result) {
|
|
13698
|
+
if (result) {
|
|
13699
|
+
_this.nota = '';
|
|
13700
|
+
_this.b_edit = false;
|
|
13701
|
+
_this.title = 'LOG WORKFLOW E COMMENTI';
|
|
13702
|
+
}
|
|
13703
|
+
}));
|
|
13589
13704
|
};
|
|
13590
13705
|
/**
|
|
13591
13706
|
* @return {?}
|
|
@@ -13647,8 +13762,6 @@ var win_log = /** @class */ (function () {
|
|
|
13647
13762
|
* @return {?}
|
|
13648
13763
|
*/
|
|
13649
13764
|
function (data) {
|
|
13650
|
-
/** @type {?} */
|
|
13651
|
-
var ok_op = false;
|
|
13652
13765
|
if (data != null)
|
|
13653
13766
|
if (data.result_msg == "OK") {
|
|
13654
13767
|
_this.logs = data.result_data;
|
|
@@ -13661,16 +13774,7 @@ var win_log = /** @class */ (function () {
|
|
|
13661
13774
|
});
|
|
13662
13775
|
_this.load_graph();
|
|
13663
13776
|
_this.ossv = true;
|
|
13664
|
-
ok_op = true;
|
|
13665
13777
|
}
|
|
13666
|
-
if (!ok_op) {
|
|
13667
|
-
_this.toastr.error("ERRORE", data.msg);
|
|
13668
|
-
}
|
|
13669
|
-
}), (/**
|
|
13670
|
-
* @param {?} err
|
|
13671
|
-
* @return {?}
|
|
13672
|
-
*/
|
|
13673
|
-
function (err) {
|
|
13674
13778
|
}));
|
|
13675
13779
|
};
|
|
13676
13780
|
/**
|
|
@@ -13680,14 +13784,18 @@ var win_log = /** @class */ (function () {
|
|
|
13680
13784
|
* @return {?}
|
|
13681
13785
|
*/
|
|
13682
13786
|
function () {
|
|
13683
|
-
if (!this.
|
|
13787
|
+
if (!this.notifica_commenti) {
|
|
13684
13788
|
this.ok_op();
|
|
13789
|
+
}
|
|
13685
13790
|
else {
|
|
13686
13791
|
if (this.nota == '') {
|
|
13687
13792
|
this.toastr.error("INSERIRE UN COMMENTO");
|
|
13688
13793
|
return;
|
|
13689
13794
|
}
|
|
13690
|
-
this.
|
|
13795
|
+
if (this.notifica_commenti == 1)
|
|
13796
|
+
this.select_destinatari();
|
|
13797
|
+
else
|
|
13798
|
+
this.select_destinatari_grp();
|
|
13691
13799
|
}
|
|
13692
13800
|
};
|
|
13693
13801
|
/**
|
|
@@ -13716,7 +13824,6 @@ var win_log = /** @class */ (function () {
|
|
|
13716
13824
|
* @return {?}
|
|
13717
13825
|
*/
|
|
13718
13826
|
function (result) {
|
|
13719
|
-
// this.selectedOption = result;
|
|
13720
13827
|
if (result != null) {
|
|
13721
13828
|
/** @type {?} */
|
|
13722
13829
|
var s_users = "";
|
|
@@ -13728,11 +13835,57 @@ var win_log = /** @class */ (function () {
|
|
|
13728
13835
|
_this.ok_op(s_users);
|
|
13729
13836
|
}
|
|
13730
13837
|
}));
|
|
13731
|
-
})
|
|
13732
|
-
|
|
13838
|
+
}));
|
|
13839
|
+
};
|
|
13840
|
+
/**
|
|
13841
|
+
* @return {?}
|
|
13842
|
+
*/
|
|
13843
|
+
win_log.prototype.select_destinatari_grp = /**
|
|
13844
|
+
* @return {?}
|
|
13845
|
+
*/
|
|
13846
|
+
function () {
|
|
13847
|
+
var _this = this;
|
|
13848
|
+
/** @type {?} */
|
|
13849
|
+
var dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
|
|
13850
|
+
dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
|
|
13851
|
+
dialo.componentInstance.types = ['string'];
|
|
13852
|
+
dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
|
|
13853
|
+
dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
|
|
13854
|
+
dialo.componentInstance.doFill();
|
|
13855
|
+
dialo.afterClosed().subscribe((/**
|
|
13856
|
+
* @param {?} result
|
|
13733
13857
|
* @return {?}
|
|
13734
13858
|
*/
|
|
13735
|
-
function (
|
|
13859
|
+
function (result) {
|
|
13860
|
+
if (result != null) {
|
|
13861
|
+
if (result == '')
|
|
13862
|
+
return;
|
|
13863
|
+
/** @type {?} */
|
|
13864
|
+
var s_users_1 = "";
|
|
13865
|
+
for (var i = 0; i < result.length; i++) {
|
|
13866
|
+
if (s_users_1 != "")
|
|
13867
|
+
s_users_1 = s_users_1 + ",";
|
|
13868
|
+
s_users_1 = s_users_1 + "" + result[i].valore + "";
|
|
13869
|
+
}
|
|
13870
|
+
/** @type {?} */
|
|
13871
|
+
var p = new QParam();
|
|
13872
|
+
p.sql = "SELECT_USERS_BY_IDROLES_NOREP";
|
|
13873
|
+
p.types = ['string'];
|
|
13874
|
+
p.values = [s_users_1];
|
|
13875
|
+
_this._dataService.doQuery(p).subscribe((/**
|
|
13876
|
+
* @param {?} data
|
|
13877
|
+
* @return {?}
|
|
13878
|
+
*/
|
|
13879
|
+
function (data) {
|
|
13880
|
+
s_users_1 = '';
|
|
13881
|
+
for (var i = 0; i < data.result_data.length; i++) {
|
|
13882
|
+
if (s_users_1 != "")
|
|
13883
|
+
s_users_1 = s_users_1 + ",";
|
|
13884
|
+
s_users_1 = s_users_1 + "" + data.result_data[i].username + "";
|
|
13885
|
+
}
|
|
13886
|
+
_this.ok_op(s_users_1);
|
|
13887
|
+
}));
|
|
13888
|
+
}
|
|
13736
13889
|
}));
|
|
13737
13890
|
};
|
|
13738
13891
|
/**
|
|
@@ -13775,11 +13928,6 @@ var win_log = /** @class */ (function () {
|
|
|
13775
13928
|
* @return {?}
|
|
13776
13929
|
*/
|
|
13777
13930
|
function (data) {
|
|
13778
|
-
}), (/**
|
|
13779
|
-
* @param {?} err
|
|
13780
|
-
* @return {?}
|
|
13781
|
-
*/
|
|
13782
|
-
function (err) {
|
|
13783
13931
|
}));
|
|
13784
13932
|
};
|
|
13785
13933
|
/**
|
|
@@ -13797,35 +13945,24 @@ var win_log = /** @class */ (function () {
|
|
|
13797
13945
|
/** @type {?} */
|
|
13798
13946
|
var p = new QParam();
|
|
13799
13947
|
p.sql = "INSERT_WKF_COMMENTO";
|
|
13800
|
-
p.types = ['string', 'string', 'string', 'string'];
|
|
13801
|
-
p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.nota, this.m_appService.getState().wkf_doc_info.curr_user];
|
|
13948
|
+
p.types = ['string', 'string', 'string', 'string', 'string'];
|
|
13949
|
+
p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.nota, this.m_appService.getState().wkf_doc_info.curr_user, sdest];
|
|
13802
13950
|
this._dataService.doQuery(p).subscribe((/**
|
|
13803
13951
|
* @param {?} data
|
|
13804
13952
|
* @return {?}
|
|
13805
13953
|
*/
|
|
13806
13954
|
function (data) {
|
|
13807
|
-
/** @type {?} */
|
|
13808
|
-
var ok_op = false;
|
|
13809
13955
|
if (data != null)
|
|
13810
13956
|
if (data.result_msg == "OK") {
|
|
13811
13957
|
_this.toastr.info("INFO", "COMMENTO INSERITO", {
|
|
13812
13958
|
timeOut: 1000,
|
|
13813
13959
|
progressBar: true
|
|
13814
13960
|
});
|
|
13815
|
-
ok_op = true;
|
|
13816
13961
|
_this.b_edit = false;
|
|
13817
13962
|
if (sdest != "")
|
|
13818
13963
|
_this.sendEMail_ex(_this.m_appService.getState().wkf_doc_info.curr_user, sdest, _this.subject.split("<OP>").join("E' stato inserito un commento"), "<br><br>Commento inserito: <br>" + _this.nota.split('\n').join("<br>"), _this.m_appService.getState().wkf_doc_info.uiid_app, _this.m_appService.getState().wkf_doc_info.uiid_doc, _this.link, _this.codice_doc, '');
|
|
13819
13964
|
_this.refresh_list();
|
|
13820
13965
|
}
|
|
13821
|
-
if (!ok_op) {
|
|
13822
|
-
_this.toastr.error("ERRORE", data.msg);
|
|
13823
|
-
}
|
|
13824
|
-
}), (/**
|
|
13825
|
-
* @param {?} err
|
|
13826
|
-
* @return {?}
|
|
13827
|
-
*/
|
|
13828
|
-
function (err) {
|
|
13829
13966
|
}));
|
|
13830
13967
|
}
|
|
13831
13968
|
else {
|
|
@@ -13839,34 +13976,23 @@ var win_log = /** @class */ (function () {
|
|
|
13839
13976
|
* @return {?}
|
|
13840
13977
|
*/
|
|
13841
13978
|
function (data) {
|
|
13842
|
-
/** @type {?} */
|
|
13843
|
-
var ok_op = false;
|
|
13844
13979
|
if (data != null)
|
|
13845
13980
|
if (data.result_msg == "OK") {
|
|
13846
13981
|
_this.toastr.info("INFO", "COMMENTO AGGIORNATO", {
|
|
13847
13982
|
timeOut: 1000,
|
|
13848
13983
|
progressBar: true
|
|
13849
13984
|
});
|
|
13850
|
-
ok_op = true;
|
|
13851
13985
|
_this.b_edit = false;
|
|
13852
13986
|
if (sdest != "")
|
|
13853
13987
|
_this.sendEMail_ex(_this.m_appService.getState().wkf_doc_info.curr_user, sdest, _this.subject.split("<OP>").join("E' stato modificato un commento"), "<br><br>Commento modificato: <br>" + _this.nota.split('\n').join("<br>"), _this.m_appService.getState().wkf_doc_info.uiid_app, _this.m_appService.getState().wkf_doc_info.uiid_doc, _this.link, _this.codice_doc, '');
|
|
13854
13988
|
_this.refresh_list();
|
|
13855
13989
|
}
|
|
13856
|
-
if (!ok_op) {
|
|
13857
|
-
_this.toastr.error("ERRORE", data.msg);
|
|
13858
|
-
}
|
|
13859
|
-
}), (/**
|
|
13860
|
-
* @param {?} err
|
|
13861
|
-
* @return {?}
|
|
13862
|
-
*/
|
|
13863
|
-
function (err) {
|
|
13864
13990
|
}));
|
|
13865
13991
|
}
|
|
13866
13992
|
};
|
|
13867
13993
|
win_log.decorators = [
|
|
13868
13994
|
{ type: Component, args: [{
|
|
13869
|
-
template: "\n\n <mat-card-content>\n \n <mat-tab-group #zz style=\"width:100%\"> \n \n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\">WORKFLOW</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;\" >\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\"> {{title}}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n <button mat-flat-button color=\"accent\" (click)=\"ins()\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button> \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <br>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;width:90%\">\n \n <section class=\"bs\" *ngIf=\"b_edit\">\n <br>\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button> \n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button> \n <mat-checkbox [(ngModel)]=\"
|
|
13995
|
+
template: "\n\n <mat-card-content>\n \n <mat-tab-group #zz style=\"width:100%\"> \n \n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\">WORKFLOW</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;\" >\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\"> {{title}}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n <button mat-flat-button color=\"accent\" (click)=\"ins()\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button> \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <br>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;width:90%\">\n \n <section class=\"bs\" *ngIf=\"b_edit\">\n <br>\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button> \n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button> \n <mat-checkbox [disabled]=\"not_comm_disabled\" [(ngModel)]=\"not_comm\" [hidden]=\"notifica_commenti==0 || (notifica_commenti==1 && lettori=='')\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <br><br>\n </section>\n <table *ngIf=\"!b_edit\" class=\"fh_table\" style=\"width:90%\">\n <thead>\n <tr>\n <th width=\"15%\">Data</th>\n <th width=\"15%\">Utente</th>\n <th>Operazione</th>\n <td></td>\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of logs;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\">\n\n <td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td>{{app.nc}}</td>\n <td>{{app.operazione}}</td>\n <td><mat-icon [matTooltip]=\"app.dest_notif\" *ngIf=\"app.dest_notif!=null && app.dest_notif!=''\">mail</mat-icon></td>\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n \n <br>\n </div>\n \n </mat-tab>\n \n </mat-tab-group>\n </mat-card-content>\n \n ",
|
|
13870
13996
|
styles: ["\n\n\n "]
|
|
13871
13997
|
}] }
|
|
13872
13998
|
];
|
|
@@ -16538,11 +16664,16 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
16538
16664
|
/** @type {?} */
|
|
16539
16665
|
var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: "95%" });
|
|
16540
16666
|
dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
|
|
16541
|
-
|
|
16667
|
+
if (this.m_obj.lettori != null)
|
|
16668
|
+
dialogRef.componentInstance.lettori = this.m_obj.lettori;
|
|
16669
|
+
else
|
|
16670
|
+
dialogRef.componentInstance.lettori = '';
|
|
16542
16671
|
dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
|
|
16543
16672
|
dialogRef.componentInstance.codice_doc = this.m_obj.codice;
|
|
16544
|
-
dialogRef.componentInstance.
|
|
16673
|
+
dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
|
|
16674
|
+
dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
|
|
16545
16675
|
dialogRef.componentInstance.commenti_insert = inser_c;
|
|
16676
|
+
dialogRef.componentInstance.init_v();
|
|
16546
16677
|
dialogRef.afterClosed().subscribe((/**
|
|
16547
16678
|
* @param {?} result
|
|
16548
16679
|
* @return {?}
|
|
@@ -16562,10 +16693,15 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
16562
16693
|
/** @type {?} */
|
|
16563
16694
|
var dialogRef = this.m_dialog.open(win_commenti, { 'disableClose': true, width: "90%" });
|
|
16564
16695
|
dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
|
|
16565
|
-
|
|
16696
|
+
if (this.m_obj.lettori != null)
|
|
16697
|
+
dialogRef.componentInstance.lettori = this.m_obj.lettori;
|
|
16698
|
+
else
|
|
16699
|
+
dialogRef.componentInstance.lettori = '';
|
|
16566
16700
|
dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
|
|
16567
16701
|
dialogRef.componentInstance.codice_doc = this.m_obj.codice;
|
|
16568
|
-
dialogRef.componentInstance.
|
|
16702
|
+
dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
|
|
16703
|
+
dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
|
|
16704
|
+
dialogRef.componentInstance.init_v();
|
|
16569
16705
|
dialogRef.afterClosed().subscribe((/**
|
|
16570
16706
|
* @param {?} result
|
|
16571
16707
|
* @return {?}
|
|
@@ -20149,7 +20285,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
20149
20285
|
p.sql = "SELECT_USER_ACCESS_AUTH";
|
|
20150
20286
|
p.values = [];
|
|
20151
20287
|
p.types = [];
|
|
20152
|
-
if (
|
|
20288
|
+
if (_this.app_s.user == null || _this.app_s.user_isadmin == null) {
|
|
20153
20289
|
_this.querys.doQuery(p).subscribe((/**
|
|
20154
20290
|
* @param {?} data
|
|
20155
20291
|
* @return {?}
|