@fluxhub/fluxhub-lib 10.0.341 → 10.0.343
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 +46 -28
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhgrid.js +26 -13
- package/esm2015/lib/wkf_engine_v2/wkf_header_bar.js +5 -5
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +22 -16
- package/fesm2015/fluxhub-fluxhub-lib.js +49 -31
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -8459,6 +8459,7 @@ class FHGridComponent {
|
|
|
8459
8459
|
}
|
|
8460
8460
|
else {
|
|
8461
8461
|
// if(obj_filtro.length>0)filter_v= filter_v+' and ';
|
|
8462
|
+
let like_f = '';
|
|
8462
8463
|
let sq = "";
|
|
8463
8464
|
let include_null_value = false;
|
|
8464
8465
|
if (obj_filtro.values != null)
|
|
@@ -8467,6 +8468,13 @@ class FHGridComponent {
|
|
|
8467
8468
|
if (sq != "")
|
|
8468
8469
|
sq = sq + ",";
|
|
8469
8470
|
sq = sq + "'" + obj_filtro.values[i].replace("'", "''") + "'";
|
|
8471
|
+
if (like_f != "")
|
|
8472
|
+
like_f = like_f + " or ";
|
|
8473
|
+
like_f = like_f + " upper(" +
|
|
8474
|
+
key +
|
|
8475
|
+
") like '%" +
|
|
8476
|
+
obj_filtro.values[i].replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
8477
|
+
"' ESCAPE '$'";
|
|
8470
8478
|
}
|
|
8471
8479
|
else {
|
|
8472
8480
|
include_null_value = true;
|
|
@@ -8481,26 +8489,31 @@ class FHGridComponent {
|
|
|
8481
8489
|
if (model != null)
|
|
8482
8490
|
num_all = model.length;
|
|
8483
8491
|
}
|
|
8484
|
-
if (
|
|
8485
|
-
if (
|
|
8492
|
+
if (key != 'pers_int ') {
|
|
8493
|
+
if (sq != "") {
|
|
8494
|
+
if (obj_filtro.values.length != num_all) {
|
|
8495
|
+
b_filter = true;
|
|
8496
|
+
if (add_end)
|
|
8497
|
+
filter_v = filter_v + " and ";
|
|
8498
|
+
if (!include_null_value)
|
|
8499
|
+
filter_v = filter_v + key + " in (" + sq + ")";
|
|
8500
|
+
else
|
|
8501
|
+
filter_v =
|
|
8502
|
+
filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
|
|
8503
|
+
}
|
|
8504
|
+
}
|
|
8505
|
+
else {
|
|
8486
8506
|
b_filter = true;
|
|
8487
8507
|
if (add_end)
|
|
8488
8508
|
filter_v = filter_v + " and ";
|
|
8489
8509
|
if (!include_null_value)
|
|
8490
|
-
filter_v = filter_v +
|
|
8510
|
+
filter_v = filter_v + " (1=0)";
|
|
8491
8511
|
else
|
|
8492
|
-
filter_v =
|
|
8493
|
-
filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
|
|
8512
|
+
filter_v = filter_v + " " + key + " is null";
|
|
8494
8513
|
}
|
|
8495
8514
|
}
|
|
8496
8515
|
else {
|
|
8497
|
-
|
|
8498
|
-
if (add_end)
|
|
8499
|
-
filter_v = filter_v + " and ";
|
|
8500
|
-
if (!include_null_value)
|
|
8501
|
-
filter_v = filter_v + " (1=0)";
|
|
8502
|
-
else
|
|
8503
|
-
filter_v = filter_v + " " + key + " is null";
|
|
8516
|
+
filter_v = filter_v + "(" + like_f + ")";
|
|
8504
8517
|
}
|
|
8505
8518
|
}
|
|
8506
8519
|
return filter_v;
|
|
@@ -24265,21 +24278,26 @@ class dati_aggiuntivi_v2 {
|
|
|
24265
24278
|
this.m_obj.stat_stato); //+' ('+s_uto+')');
|
|
24266
24279
|
}
|
|
24267
24280
|
revisione() {
|
|
24268
|
-
let
|
|
24269
|
-
|
|
24270
|
-
|
|
24271
|
-
|
|
24272
|
-
|
|
24273
|
-
|
|
24274
|
-
|
|
24275
|
-
|
|
24276
|
-
|
|
24277
|
-
|
|
24278
|
-
|
|
24279
|
-
|
|
24280
|
-
|
|
24281
|
-
|
|
24282
|
-
|
|
24281
|
+
let dialogRef = this.m_dialog.open(fh_win_confirm, {
|
|
24282
|
+
disableClose: true, data: {
|
|
24283
|
+
title_dialog: "Conferma Operazione",
|
|
24284
|
+
msg_dialog: "Confermi di voler revisionare il documento?"
|
|
24285
|
+
}
|
|
24286
|
+
});
|
|
24287
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
24288
|
+
if (result) {
|
|
24289
|
+
let p = new QParam();
|
|
24290
|
+
p.sql = "UPDATE_DOCUMENTO_REV";
|
|
24291
|
+
p.values = [this.id_applicativo, this.id_documento];
|
|
24292
|
+
p.types = ['string', 'string'];
|
|
24293
|
+
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
24294
|
+
if (data != null)
|
|
24295
|
+
if (data.result_msg == "OK") {
|
|
24296
|
+
this.alert('Revisione generata', 0);
|
|
24297
|
+
window.location.reload();
|
|
24298
|
+
}
|
|
24299
|
+
});
|
|
24300
|
+
}
|
|
24283
24301
|
});
|
|
24284
24302
|
}
|
|
24285
24303
|
onResize(event) { }
|
|
@@ -24485,21 +24503,21 @@ wkf_header_bar_v2.decorators = [
|
|
|
24485
24503
|
color="accent"
|
|
24486
24504
|
>
|
|
24487
24505
|
Procedi</button
|
|
24488
|
-
></div><div>
|
|
24506
|
+
></div><div *ngIf="respingi_button">
|
|
24489
24507
|
<button
|
|
24490
24508
|
mat-flat-button
|
|
24491
24509
|
(click)="respingi()"
|
|
24492
|
-
|
|
24510
|
+
|
|
24493
24511
|
color="warn"
|
|
24494
24512
|
>
|
|
24495
24513
|
Respingi
|
|
24496
24514
|
</button>
|
|
24497
24515
|
</div>
|
|
24498
|
-
<div>
|
|
24516
|
+
<div *ngIf="b_revisione">
|
|
24499
24517
|
<button
|
|
24500
24518
|
mat-flat-button
|
|
24501
24519
|
(click)="revisione()"
|
|
24502
|
-
|
|
24520
|
+
|
|
24503
24521
|
color="accent"
|
|
24504
24522
|
>
|
|
24505
24523
|
Revisione
|