@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
|
@@ -5886,6 +5886,7 @@
|
|
|
5886
5886
|
}
|
|
5887
5887
|
else {
|
|
5888
5888
|
// if(obj_filtro.length>0)filter_v= filter_v+' and ';
|
|
5889
|
+
var like_f = '';
|
|
5889
5890
|
var sq = "";
|
|
5890
5891
|
var include_null_value = false;
|
|
5891
5892
|
if (obj_filtro.values != null)
|
|
@@ -5894,6 +5895,13 @@
|
|
|
5894
5895
|
if (sq != "")
|
|
5895
5896
|
sq = sq + ",";
|
|
5896
5897
|
sq = sq + "'" + obj_filtro.values[i].replace("'", "''") + "'";
|
|
5898
|
+
if (like_f != "")
|
|
5899
|
+
like_f = like_f + " or ";
|
|
5900
|
+
like_f = like_f + " upper(" +
|
|
5901
|
+
key +
|
|
5902
|
+
") like '%" +
|
|
5903
|
+
obj_filtro.values[i].replace("'", "$'").replace("*", "$*").replace("?", "$?").replace("[", "$[").replace("]", "$]").replace("!", "'$").toUpperCase() +
|
|
5904
|
+
"' ESCAPE '$'";
|
|
5897
5905
|
}
|
|
5898
5906
|
else {
|
|
5899
5907
|
include_null_value = true;
|
|
@@ -5908,26 +5916,34 @@
|
|
|
5908
5916
|
if (model_1 != null)
|
|
5909
5917
|
num_all = model_1.length;
|
|
5910
5918
|
}
|
|
5911
|
-
|
|
5912
|
-
|
|
5919
|
+
console.log('KEY!!!! ', key);
|
|
5920
|
+
if (key != 'pers_int') {
|
|
5921
|
+
if (sq != "") {
|
|
5922
|
+
if (obj_filtro.values.length != num_all) {
|
|
5923
|
+
b_filter = true;
|
|
5924
|
+
if (add_end)
|
|
5925
|
+
filter_v = filter_v + " and ";
|
|
5926
|
+
if (!include_null_value)
|
|
5927
|
+
filter_v = filter_v + key + " in (" + sq + ")";
|
|
5928
|
+
else
|
|
5929
|
+
filter_v =
|
|
5930
|
+
filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
|
|
5931
|
+
}
|
|
5932
|
+
}
|
|
5933
|
+
else {
|
|
5913
5934
|
b_filter = true;
|
|
5914
5935
|
if (add_end)
|
|
5915
5936
|
filter_v = filter_v + " and ";
|
|
5916
5937
|
if (!include_null_value)
|
|
5917
|
-
filter_v = filter_v +
|
|
5938
|
+
filter_v = filter_v + " (1=0)";
|
|
5918
5939
|
else
|
|
5919
|
-
filter_v =
|
|
5920
|
-
filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
|
|
5940
|
+
filter_v = filter_v + " " + key + " is null";
|
|
5921
5941
|
}
|
|
5922
5942
|
}
|
|
5923
5943
|
else {
|
|
5944
|
+
console.log('like_f ', like_f);
|
|
5924
5945
|
b_filter = true;
|
|
5925
|
-
|
|
5926
|
-
filter_v = filter_v + " and ";
|
|
5927
|
-
if (!include_null_value)
|
|
5928
|
-
filter_v = filter_v + " (1=0)";
|
|
5929
|
-
else
|
|
5930
|
-
filter_v = filter_v + " " + key + " is null";
|
|
5946
|
+
filter_v = filter_v + "(" + like_f + ")";
|
|
5931
5947
|
}
|
|
5932
5948
|
}
|
|
5933
5949
|
return filter_v;
|