|
|
@ -88,18 +88,11 @@ namespace ICS.Common.Extension |
|
|
|
constant = Expression.Constant(filterCondition.ColumnValue); |
|
|
|
break; |
|
|
|
case ConfigColumnDataType.type_int: |
|
|
|
if (currentProp.PropertyType == typeof(int)) |
|
|
|
{ |
|
|
|
constant = Expression.Constant(filterCondition.ColumnValue.ToInt()); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
constant = Expression.Constant(filterCondition.ColumnValue.ToIntWithNull()); |
|
|
|
} |
|
|
|
constant = Expression.Constant(filterCondition.ColumnValue.ToInt(), currentProp.PropertyType); |
|
|
|
break; |
|
|
|
case ConfigColumnDataType.type_decimal: |
|
|
|
|
|
|
|
constant = Expression.Constant(filterCondition.ColumnValue.ToDecimal()); |
|
|
|
constant = Expression.Constant(filterCondition.ColumnValue.ToDecimal(), currentProp.PropertyType); |
|
|
|
break; |
|
|
|
case ConfigColumnDataType.type_datetime: |
|
|
|
constant = Expression.Constant(filterCondition.ColumnValue.ToDate(), currentProp.PropertyType); |
|
|
|