@fluxhub/fluxhub-lib 10.0.658 → 10.0.659
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 +178 -3
- 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/fluxhub-fluxhub-lib.js +2 -1
- package/esm2015/lib/fluxhub-lib.module.js +3 -2
- package/esm2015/lib/wkf_engine_v2/win_assegna_a.js +129 -0
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +97 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +219 -4
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +1 -0
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine_v2/win_assegna_a.d.ts +25 -0
- package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +3 -1
- package/package.json +1 -1
|
@@ -18511,6 +18511,87 @@
|
|
|
18511
18511
|
onResize: [{ type: i0.HostListener, args: ["window:resize", ["event"],] }]
|
|
18512
18512
|
};
|
|
18513
18513
|
|
|
18514
|
+
var win_assegna_a = /** @class */ (function () {
|
|
18515
|
+
function win_assegna_a(dialogRef, m_appService, toastr, _trs, data) {
|
|
18516
|
+
this.dialogRef = dialogRef;
|
|
18517
|
+
this.m_appService = m_appService;
|
|
18518
|
+
this.toastr = toastr;
|
|
18519
|
+
this._trs = _trs;
|
|
18520
|
+
this.data = data;
|
|
18521
|
+
this.op = "L";
|
|
18522
|
+
this.lbl = "";
|
|
18523
|
+
this.nota = "";
|
|
18524
|
+
this.nota_commento = "";
|
|
18525
|
+
this.title = "";
|
|
18526
|
+
this.comm_notrequired = 0;
|
|
18527
|
+
this.all_users = [];
|
|
18528
|
+
if (data != null) {
|
|
18529
|
+
if (data.commento_default != null)
|
|
18530
|
+
this.nota = data.commento_default;
|
|
18531
|
+
if (data.comm_notrequired != null)
|
|
18532
|
+
this.comm_notrequired = data.comm_notrequired ? 1 : 0;
|
|
18533
|
+
if (data.title != null)
|
|
18534
|
+
this.title = data.title;
|
|
18535
|
+
if (data.lbl != null)
|
|
18536
|
+
this.lbl = data.lbl;
|
|
18537
|
+
if (data.utenti != null) {
|
|
18538
|
+
this.arrAutori = data.utenti;
|
|
18539
|
+
this.all_users = JSON.parse(JSON.stringify(data.utenti));
|
|
18540
|
+
this.title = this._trs.instant("ASSEGNA DOCUMENTO");
|
|
18541
|
+
for (var i = 0; i < this.arrAutori.length; i++) {
|
|
18542
|
+
if (this.arrAutori[i].username == null)
|
|
18543
|
+
this.arrAutori[i].username = this.arrAutori[i].idp;
|
|
18544
|
+
}
|
|
18545
|
+
if (this.comm_notrequired == 2)
|
|
18546
|
+
this.nota_commento = this._trs.instant(" (COMMENTO NON OBBLIGATORIO)");
|
|
18547
|
+
if (data != null) {
|
|
18548
|
+
if (data.commento_default != null)
|
|
18549
|
+
this.nota = data.commento_default;
|
|
18550
|
+
if (data.comm_notrequired != null)
|
|
18551
|
+
this.comm_notrequired = data.comm_notrequired;
|
|
18552
|
+
}
|
|
18553
|
+
}
|
|
18554
|
+
}
|
|
18555
|
+
}
|
|
18556
|
+
win_assegna_a.prototype.close = function () {
|
|
18557
|
+
this.dialogRef.close(null);
|
|
18558
|
+
};
|
|
18559
|
+
win_assegna_a.prototype.ok = function () {
|
|
18560
|
+
if (this.op == 'A')
|
|
18561
|
+
if (this.up.getSelArr().length == 0) {
|
|
18562
|
+
this.toastr.error("ERRORE", this._trs.instant("SELEZIONARE ALMENO UN UTENTE"), {
|
|
18563
|
+
timeOut: 1000,
|
|
18564
|
+
progressBar: true,
|
|
18565
|
+
});
|
|
18566
|
+
return;
|
|
18567
|
+
}
|
|
18568
|
+
var o = new Object();
|
|
18569
|
+
o.nota = this.nota;
|
|
18570
|
+
if (this.op == 'A')
|
|
18571
|
+
o.arrsel = this.up.getSelArr();
|
|
18572
|
+
else
|
|
18573
|
+
o.arrsel = this.all_users;
|
|
18574
|
+
this.dialogRef.close(o);
|
|
18575
|
+
};
|
|
18576
|
+
win_assegna_a.prototype.ngAfterViewInit = function () { };
|
|
18577
|
+
return win_assegna_a;
|
|
18578
|
+
}());
|
|
18579
|
+
win_assegna_a.decorators = [
|
|
18580
|
+
{ type: i0.Component, args: [{
|
|
18581
|
+
template: "\n <div fxLayout=\"column\">\n\u00A0\u00A0\u00A0\u00A0<div\u00A0 fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0 \u00A0class=\"dialog_header\">\n\t<div fxLayout=\"row\"\u00A0fxLayoutAlign=\"start\u00A0center\" style=\"width:50%\">{{title | translate}}</div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"close()\"\u00A0/>\n</div>\n</div>\n <div\n mat-dialog-content\n fxLayout=\"column\"\n style=\"font-size: 15px;min-width: 750px\"\n >\n <br><br>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxFlexGap=\"5px\" fxFlex=\"100\">\n <div style=\"width:100px;font-weight:bold\">Operazione:*</div>\n <mat-radio-group [(ngModel)]=\"op\">\n <mat-radio-button value=\"L\">LIBERA</mat-radio-button> \n <mat-radio-button value=\"A\">ASSEGNA</mat-radio-button>\n </mat-radio-group>\n </div>\n <div style=\"width:100%;height:450px\" [hidden]=\"op!='A'\">\n <FHPickUsers\n #up\n [users_list]=\"arrAutori\"\n [vis_buttons]=\"false\"\n ></FHPickUsers>\n </div>\n\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> {{'OK' | translate }}</button\n > \n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n {{'ANNULLA' | translate }}\n </button>\n </div>\n </div>\n "
|
|
18582
|
+
},] }
|
|
18583
|
+
];
|
|
18584
|
+
win_assegna_a.ctorParameters = function () { return [
|
|
18585
|
+
{ type: dialog.MatDialogRef },
|
|
18586
|
+
{ type: AppService },
|
|
18587
|
+
{ type: i3.ToastrService },
|
|
18588
|
+
{ type: core.TranslateService },
|
|
18589
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
18590
|
+
]; };
|
|
18591
|
+
win_assegna_a.propDecorators = {
|
|
18592
|
+
up: [{ type: i0.ViewChild, args: ["up",] }]
|
|
18593
|
+
};
|
|
18594
|
+
|
|
18514
18595
|
var FluxhubLibModule = /** @class */ (function () {
|
|
18515
18596
|
function FluxhubLibModule() {
|
|
18516
18597
|
}
|
|
@@ -18730,7 +18811,7 @@
|
|
|
18730
18811
|
FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3, fh_win_auto_complete,
|
|
18731
18812
|
win_salva_annulla_v2, win_assegna_v2, win_conferma_v2, win_select_canale_v2, win_select_level_v2, win_uploads_v2,
|
|
18732
18813
|
win_commenti_v2, win_info_doc_v2, win_log_v2, win_recupera_doc_v2, win_riassegna_select_level_v2, win_riassegna_select_user_v2,
|
|
18733
|
-
win_sostituisci_utente_v2, win_commento_sel_notif_v2, wkf_header_bar_v2, win_insert_commento_v2
|
|
18814
|
+
win_sostituisci_utente_v2, win_commento_sel_notif_v2, wkf_header_bar_v2, win_insert_commento_v2, win_assegna_a
|
|
18734
18815
|
],
|
|
18735
18816
|
providers: [HighlightService, ng2Dragula.DragulaService]
|
|
18736
18817
|
},] }
|
|
@@ -22645,7 +22726,7 @@
|
|
|
22645
22726
|
]; };
|
|
22646
22727
|
|
|
22647
22728
|
var dati_aggiuntivi_v2 = /** @class */ (function () {
|
|
22648
|
-
function dati_aggiuntivi_v2(app_s, m_dataService, m_router, m_dialog, m_route, m_wkf, uti_s, m_fileservice, tsr) {
|
|
22729
|
+
function dati_aggiuntivi_v2(app_s, m_dataService, m_router, m_dialog, m_route, m_wkf, uti_s, m_fileservice, tsr, _toastr) {
|
|
22649
22730
|
var _this = this;
|
|
22650
22731
|
this.app_s = app_s;
|
|
22651
22732
|
this.m_dataService = m_dataService;
|
|
@@ -22656,6 +22737,7 @@
|
|
|
22656
22737
|
this.uti_s = uti_s;
|
|
22657
22738
|
this.m_fileservice = m_fileservice;
|
|
22658
22739
|
this.tsr = tsr;
|
|
22740
|
+
this._toastr = _toastr;
|
|
22659
22741
|
this.m_obj = {};
|
|
22660
22742
|
this.sort_field = "";
|
|
22661
22743
|
this.in_carico = false;
|
|
@@ -23312,6 +23394,97 @@
|
|
|
23312
23394
|
}*/
|
|
23313
23395
|
};
|
|
23314
23396
|
dati_aggiuntivi_v2.prototype.assegna_a = function () {
|
|
23397
|
+
var _this = this;
|
|
23398
|
+
var arx = this.m_obj.assegnati_paralleli.split(',');
|
|
23399
|
+
var arrAutori = [];
|
|
23400
|
+
for (var x = 0; x < arx.length; x++)
|
|
23401
|
+
for (var y = 0; y < this.livs.length; y++) {
|
|
23402
|
+
if (arx[x] == this.livs[y].username) {
|
|
23403
|
+
arrAutori.push({ username: arx[x], nc: this.livs[y].nc });
|
|
23404
|
+
break;
|
|
23405
|
+
}
|
|
23406
|
+
}
|
|
23407
|
+
// console.log('arrAutori ',arrAutori);
|
|
23408
|
+
arrAutori = arrAutori.sort(function (n1, n2) {
|
|
23409
|
+
if (n1.nc > n2.nc) {
|
|
23410
|
+
return 1;
|
|
23411
|
+
}
|
|
23412
|
+
if (n1.nc < n2.nc) {
|
|
23413
|
+
return -1;
|
|
23414
|
+
}
|
|
23415
|
+
return 0;
|
|
23416
|
+
});
|
|
23417
|
+
var dialogRef = this.m_dialog.open(win_assegna_a, { 'disableClose': true, width: '99%', data: {
|
|
23418
|
+
title: this.tsr.instant('Conferma Assegnazione'),
|
|
23419
|
+
lbl: '',
|
|
23420
|
+
commento_default: '',
|
|
23421
|
+
comm_notrequired: '',
|
|
23422
|
+
utenti: arrAutori
|
|
23423
|
+
} });
|
|
23424
|
+
dialogRef.afterClosed().subscribe(function (result) {
|
|
23425
|
+
if (result) {
|
|
23426
|
+
if (result.arrsel.lenght == 0) {
|
|
23427
|
+
_this._toastr.error('Impossibile riassegnare');
|
|
23428
|
+
return;
|
|
23429
|
+
}
|
|
23430
|
+
console.log(' result.arrsel ', result.arrsel);
|
|
23431
|
+
var arr_new_arr_1 = '';
|
|
23432
|
+
_this.m_obj.autori = '';
|
|
23433
|
+
var b_edit_1 = false;
|
|
23434
|
+
result.arrsel.map(function (v) {
|
|
23435
|
+
if (arr_new_arr_1 != '')
|
|
23436
|
+
arr_new_arr_1 += ',';
|
|
23437
|
+
arr_new_arr_1 += v.username;
|
|
23438
|
+
if (_this.m_obj.autori.indexOf(v.username) == -1) {
|
|
23439
|
+
if (_this.m_obj.autori != '')
|
|
23440
|
+
_this.m_obj.autori = _this.m_obj.autori + ',';
|
|
23441
|
+
_this.m_obj.autori = _this.m_obj.autori + v.username;
|
|
23442
|
+
}
|
|
23443
|
+
if (v.username == _this.app_info.user)
|
|
23444
|
+
b_edit_1 = true;
|
|
23445
|
+
});
|
|
23446
|
+
_this.in_carico = false;
|
|
23447
|
+
if (_this.m_obj.autori != null)
|
|
23448
|
+
if (_this.m_obj.autori.split(',').length != 1)
|
|
23449
|
+
_this.in_carico = true;
|
|
23450
|
+
_this.b_assenza_a = false;
|
|
23451
|
+
if (_this.m_obj.assegnati_paralleli != null)
|
|
23452
|
+
if (_this.m_obj.assegnati_paralleli.split(',').length != 1)
|
|
23453
|
+
_this.b_assenza_a = true;
|
|
23454
|
+
// console.log('this.m_obj.autori ',this.m_obj.autori, this.in_carico, this.b_assenza_a);
|
|
23455
|
+
_this.update_status(b_edit_1, false, _this.in_carico, _this.b_assenza_a, 18);
|
|
23456
|
+
if (_this.respingi_enabled)
|
|
23457
|
+
_this.update_status(b_edit_1, true, _this.in_carico, _this.b_assenza_a, 19);
|
|
23458
|
+
var p = new QParam();
|
|
23459
|
+
p.sql = "UPDATE_WKF_DOC_AUTHOR";
|
|
23460
|
+
p.values = [_this.id_applicativo, _this.id_documento, _this.m_obj.autori];
|
|
23461
|
+
p.types = ["string", "string", "string"];
|
|
23462
|
+
_this.m_dataService.doQuery(p).subscribe(function (data) {
|
|
23463
|
+
if (data != null)
|
|
23464
|
+
if (data.result_msg == "OK") {
|
|
23465
|
+
_this.sendEMail_ex(_this.user_idp, arr_new_arr_1, _this.app_info.descrizione_breve +
|
|
23466
|
+
", Ti è stato assegnato il documento numero: " +
|
|
23467
|
+
_this.m_obj.codice +
|
|
23468
|
+
" " +
|
|
23469
|
+
_this.getTitle() +
|
|
23470
|
+
" - " +
|
|
23471
|
+
_this.getLvlDescri(String(_this.m_liv), _this.m_statox), "<br>Attività:" +
|
|
23472
|
+
_this.getLvlDescri(String(_this.m_liv), _this.m_statox) +
|
|
23473
|
+
"<br>" +
|
|
23474
|
+
_this.m_statox +
|
|
23475
|
+
"<br>" +
|
|
23476
|
+
_this.getDescri(), _this.id_applicativo, _this.id_documento, _this.app_info.COMPANY_SITE_ROOT +
|
|
23477
|
+
"#/" +
|
|
23478
|
+
_this.app_info.modulo_swf +
|
|
23479
|
+
"/" +
|
|
23480
|
+
_this.id_applicativo +
|
|
23481
|
+
"/" +
|
|
23482
|
+
_this.id_documento +
|
|
23483
|
+
"/edit", _this.m_obj.codice, "", true, "", false);
|
|
23484
|
+
}
|
|
23485
|
+
});
|
|
23486
|
+
}
|
|
23487
|
+
});
|
|
23315
23488
|
};
|
|
23316
23489
|
dati_aggiuntivi_v2.prototype.exec_wkf = function (trans, liv, arrdest, comm, crea_ver) {
|
|
23317
23490
|
var _this = this;
|
|
@@ -24481,7 +24654,8 @@
|
|
|
24481
24654
|
{ type: WkfService },
|
|
24482
24655
|
{ type: UtilityService },
|
|
24483
24656
|
{ type: FileService },
|
|
24484
|
-
{ type: core.TranslateService }
|
|
24657
|
+
{ type: core.TranslateService },
|
|
24658
|
+
{ type: i3.ToastrService }
|
|
24485
24659
|
]; };
|
|
24486
24660
|
dati_aggiuntivi_v2.propDecorators = {
|
|
24487
24661
|
onResize: [{ type: i0.HostListener, args: ["window:resize", ["event"],] }]
|
|
@@ -24608,6 +24782,7 @@
|
|
|
24608
24782
|
exports.ɵby = win_commento_sel_notif_v2;
|
|
24609
24783
|
exports.ɵbz = win_insert_commento_v2;
|
|
24610
24784
|
exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8;
|
|
24785
|
+
exports.ɵca = win_assegna_a;
|
|
24611
24786
|
exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4;
|
|
24612
24787
|
exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3;
|
|
24613
24788
|
exports.ɵf = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5;
|