This commit is contained in:
2018-12-03 23:47:30 +00:00
parent b6302d85e1
commit e36c18a593

View File

@@ -240,18 +240,18 @@ namespace AyaNova.Biz
{ {
case FilterComparisonOperator.Equality: case FilterComparisonOperator.Equality:
sb.Append("= "); sb.Append("= ");
if (sValue == "True") if (sValue.ToLowerInvariant() == "true")
sb.Append("1"); sb.Append("true");
else else
sb.Append("0"); sb.Append("false");
break; break;
case FilterComparisonOperator.NotEqual: case FilterComparisonOperator.NotEqual:
sb.Append("<> "); sb.Append("<> ");
if (sValue == "True") if (sValue.ToLowerInvariant() == "true")
sb.Append("1"); sb.Append("true");
else else
sb.Append("0"); sb.Append("false");
break; break;
default: default:
@@ -263,10 +263,13 @@ namespace AyaNova.Biz
case "date": case "date":
{ {
//Note: it is assumed all dates come into here from the CLIENT in UTC iso8601 format
//suitable for the database to handle as all database dates are in UTC
//Local display and parsing will be considered a CLIENT issue at all times
if (sValue.StartsWith("{[") && sValue.EndsWith("]}")) if (sValue.StartsWith("{[") && sValue.EndsWith("]}"))
{ {
#region Build criteria for date RANGE specified #region Build criteria for date RANGE TOKEN specified
//Used as the basis point //Used as the basis point
System.DateTime dtAfter; System.DateTime dtAfter;
System.DateTime dtBefore; System.DateTime dtBefore;
@@ -526,8 +529,6 @@ namespace AyaNova.Biz
dtBefore = new DateTime(DateTime.Now.Year, 10, 1, 00, 00, 00); dtBefore = new DateTime(DateTime.Now.Year, 10, 1, 00, 00, 00);
break; break;
} }
BuildBetweenTwoDatesFragment(sColumn, sb, dtAfter, dtBefore); BuildBetweenTwoDatesFragment(sColumn, sb, dtAfter, dtBefore);
break; break;