@fluxhub/fluxhub-lib 10.0.658 → 10.0.660
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 +174 -1
- 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 +92 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +215 -2
- 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/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
|
},] }
|
|
@@ -23312,6 +23393,97 @@
|
|
|
23312
23393
|
}*/
|
|
23313
23394
|
};
|
|
23314
23395
|
dati_aggiuntivi_v2.prototype.assegna_a = function () {
|
|
23396
|
+
var _this = this;
|
|
23397
|
+
var arx = this.m_obj.assegnati_paralleli.split(',');
|
|
23398
|
+
var arrAutori = [];
|
|
23399
|
+
for (var x = 0; x < arx.length; x++)
|
|
23400
|
+
for (var y = 0; y < this.livs.length; y++) {
|
|
23401
|
+
if (arx[x] == this.livs[y].username) {
|
|
23402
|
+
arrAutori.push({ username: arx[x], nc: this.livs[y].nc });
|
|
23403
|
+
break;
|
|
23404
|
+
}
|
|
23405
|
+
}
|
|
23406
|
+
// console.log('arrAutori ',arrAutori);
|
|
23407
|
+
arrAutori = arrAutori.sort(function (n1, n2) {
|
|
23408
|
+
if (n1.nc > n2.nc) {
|
|
23409
|
+
return 1;
|
|
23410
|
+
}
|
|
23411
|
+
if (n1.nc < n2.nc) {
|
|
23412
|
+
return -1;
|
|
23413
|
+
}
|
|
23414
|
+
return 0;
|
|
23415
|
+
});
|
|
23416
|
+
var dialogRef = this.m_dialog.open(win_assegna_a, { 'disableClose': true, width: '99%', data: {
|
|
23417
|
+
title: this.tsr.instant('Conferma Assegnazione'),
|
|
23418
|
+
lbl: '',
|
|
23419
|
+
commento_default: '',
|
|
23420
|
+
comm_notrequired: '',
|
|
23421
|
+
utenti: arrAutori
|
|
23422
|
+
} });
|
|
23423
|
+
dialogRef.afterClosed().subscribe(function (result) {
|
|
23424
|
+
if (result) {
|
|
23425
|
+
if (result.arrsel.lenght == 0) {
|
|
23426
|
+
_this.alert("Impossibile riassegnare", 1);
|
|
23427
|
+
return;
|
|
23428
|
+
}
|
|
23429
|
+
console.log(' result.arrsel ', result.arrsel);
|
|
23430
|
+
var arr_new_arr_1 = '';
|
|
23431
|
+
_this.m_obj.autori = '';
|
|
23432
|
+
var b_edit_1 = false;
|
|
23433
|
+
result.arrsel.map(function (v) {
|
|
23434
|
+
if (arr_new_arr_1 != '')
|
|
23435
|
+
arr_new_arr_1 += ',';
|
|
23436
|
+
arr_new_arr_1 += v.username;
|
|
23437
|
+
if (_this.m_obj.autori.indexOf(v.username) == -1) {
|
|
23438
|
+
if (_this.m_obj.autori != '')
|
|
23439
|
+
_this.m_obj.autori = _this.m_obj.autori + ',';
|
|
23440
|
+
_this.m_obj.autori = _this.m_obj.autori + v.username;
|
|
23441
|
+
}
|
|
23442
|
+
if (v.username == _this.app_info.user)
|
|
23443
|
+
b_edit_1 = true;
|
|
23444
|
+
});
|
|
23445
|
+
_this.in_carico = false;
|
|
23446
|
+
if (_this.m_obj.autori != null)
|
|
23447
|
+
if (_this.m_obj.autori.split(',').length != 1)
|
|
23448
|
+
_this.in_carico = true;
|
|
23449
|
+
_this.b_assenza_a = false;
|
|
23450
|
+
if (_this.m_obj.assegnati_paralleli != null)
|
|
23451
|
+
if (_this.m_obj.assegnati_paralleli.split(',').length != 1)
|
|
23452
|
+
_this.b_assenza_a = true;
|
|
23453
|
+
// console.log('this.m_obj.autori ',this.m_obj.autori, this.in_carico, this.b_assenza_a);
|
|
23454
|
+
_this.update_status(b_edit_1, false, _this.in_carico, _this.b_assenza_a, 18);
|
|
23455
|
+
if (_this.respingi_enabled)
|
|
23456
|
+
_this.update_status(b_edit_1, true, _this.in_carico, _this.b_assenza_a, 19);
|
|
23457
|
+
var p = new QParam();
|
|
23458
|
+
p.sql = "UPDATE_WKF_DOC_AUTHOR";
|
|
23459
|
+
p.values = [_this.id_applicativo, _this.id_documento, _this.m_obj.autori];
|
|
23460
|
+
p.types = ["string", "string", "string"];
|
|
23461
|
+
_this.m_dataService.doQuery(p).subscribe(function (data) {
|
|
23462
|
+
if (data != null)
|
|
23463
|
+
if (data.result_msg == "OK") {
|
|
23464
|
+
_this.sendEMail_ex(_this.user_idp, arr_new_arr_1, _this.app_info.descrizione_breve +
|
|
23465
|
+
", Ti è stato assegnato il documento numero: " +
|
|
23466
|
+
_this.m_obj.codice +
|
|
23467
|
+
" " +
|
|
23468
|
+
_this.getTitle() +
|
|
23469
|
+
" - " +
|
|
23470
|
+
_this.getLvlDescri(String(_this.m_liv), _this.m_statox), "<br>Attività:" +
|
|
23471
|
+
_this.getLvlDescri(String(_this.m_liv), _this.m_statox) +
|
|
23472
|
+
"<br>" +
|
|
23473
|
+
_this.m_statox +
|
|
23474
|
+
"<br>" +
|
|
23475
|
+
_this.getDescri(), _this.id_applicativo, _this.id_documento, _this.app_info.COMPANY_SITE_ROOT +
|
|
23476
|
+
"#/" +
|
|
23477
|
+
_this.app_info.modulo_swf +
|
|
23478
|
+
"/" +
|
|
23479
|
+
_this.id_applicativo +
|
|
23480
|
+
"/" +
|
|
23481
|
+
_this.id_documento +
|
|
23482
|
+
"/edit", _this.m_obj.codice, "", true, "", false);
|
|
23483
|
+
}
|
|
23484
|
+
});
|
|
23485
|
+
}
|
|
23486
|
+
});
|
|
23315
23487
|
};
|
|
23316
23488
|
dati_aggiuntivi_v2.prototype.exec_wkf = function (trans, liv, arrdest, comm, crea_ver) {
|
|
23317
23489
|
var _this = this;
|
|
@@ -24608,6 +24780,7 @@
|
|
|
24608
24780
|
exports.ɵby = win_commento_sel_notif_v2;
|
|
24609
24781
|
exports.ɵbz = win_insert_commento_v2;
|
|
24610
24782
|
exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8;
|
|
24783
|
+
exports.ɵca = win_assegna_a;
|
|
24611
24784
|
exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4;
|
|
24612
24785
|
exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3;
|
|
24613
24786
|
exports.ɵf = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5;
|