@fluxhub/fluxhub-lib 10.0.342 → 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 +25 -12
- 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/fesm2015/fluxhub-fluxhub-lib.js +25 -12
- 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,31 @@
|
|
|
5908
5916
|
if (model_1 != null)
|
|
5909
5917
|
num_all = model_1.length;
|
|
5910
5918
|
}
|
|
5911
|
-
if (
|
|
5912
|
-
if (
|
|
5919
|
+
if (key != 'pers_int ') {
|
|
5920
|
+
if (sq != "") {
|
|
5921
|
+
if (obj_filtro.values.length != num_all) {
|
|
5922
|
+
b_filter = true;
|
|
5923
|
+
if (add_end)
|
|
5924
|
+
filter_v = filter_v + " and ";
|
|
5925
|
+
if (!include_null_value)
|
|
5926
|
+
filter_v = filter_v + key + " in (" + sq + ")";
|
|
5927
|
+
else
|
|
5928
|
+
filter_v =
|
|
5929
|
+
filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
|
|
5930
|
+
}
|
|
5931
|
+
}
|
|
5932
|
+
else {
|
|
5913
5933
|
b_filter = true;
|
|
5914
5934
|
if (add_end)
|
|
5915
5935
|
filter_v = filter_v + " and ";
|
|
5916
5936
|
if (!include_null_value)
|
|
5917
|
-
filter_v = filter_v +
|
|
5937
|
+
filter_v = filter_v + " (1=0)";
|
|
5918
5938
|
else
|
|
5919
|
-
filter_v =
|
|
5920
|
-
filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
|
|
5939
|
+
filter_v = filter_v + " " + key + " is null";
|
|
5921
5940
|
}
|
|
5922
5941
|
}
|
|
5923
5942
|
else {
|
|
5924
|
-
|
|
5925
|
-
if (add_end)
|
|
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";
|
|
5943
|
+
filter_v = filter_v + "(" + like_f + ")";
|
|
5931
5944
|
}
|
|
5932
5945
|
}
|
|
5933
5946
|
return filter_v;
|