@fluxhub/fluxhub-lib 10.0.342 → 10.0.344
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 +27 -11
- 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 +28 -12
- package/fesm2015/fluxhub-fluxhub-lib.js +27 -11
- 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,34 @@ class FHGridComponent {
|
|
|
8481
8489
|
if (model != null)
|
|
8482
8490
|
num_all = model.length;
|
|
8483
8491
|
}
|
|
8484
|
-
|
|
8485
|
-
|
|
8492
|
+
console.log('KEY!!!! ', key);
|
|
8493
|
+
if (key != 'pers_int') {
|
|
8494
|
+
if (sq != "") {
|
|
8495
|
+
if (obj_filtro.values.length != num_all) {
|
|
8496
|
+
b_filter = true;
|
|
8497
|
+
if (add_end)
|
|
8498
|
+
filter_v = filter_v + " and ";
|
|
8499
|
+
if (!include_null_value)
|
|
8500
|
+
filter_v = filter_v + key + " in (" + sq + ")";
|
|
8501
|
+
else
|
|
8502
|
+
filter_v =
|
|
8503
|
+
filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
|
|
8504
|
+
}
|
|
8505
|
+
}
|
|
8506
|
+
else {
|
|
8486
8507
|
b_filter = true;
|
|
8487
8508
|
if (add_end)
|
|
8488
8509
|
filter_v = filter_v + " and ";
|
|
8489
8510
|
if (!include_null_value)
|
|
8490
|
-
filter_v = filter_v +
|
|
8511
|
+
filter_v = filter_v + " (1=0)";
|
|
8491
8512
|
else
|
|
8492
|
-
filter_v =
|
|
8493
|
-
filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
|
|
8513
|
+
filter_v = filter_v + " " + key + " is null";
|
|
8494
8514
|
}
|
|
8495
8515
|
}
|
|
8496
8516
|
else {
|
|
8517
|
+
console.log('like_f ', like_f);
|
|
8497
8518
|
b_filter = true;
|
|
8498
|
-
|
|
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";
|
|
8519
|
+
filter_v = filter_v + "(" + like_f + ")";
|
|
8504
8520
|
}
|
|
8505
8521
|
}
|
|
8506
8522
|
return filter_v;
|