Search in sources :

Example 11 with FilterConfig

use of com.sencha.gxt.data.shared.loader.FilterConfig in project activityinfo by bedatadriven.

the class ColumnFilterParser method dateFilter.

private FilterConfig dateFilter(FunctionCallNode callNode, LocalDate value) {
    FilterConfig config = new FilterConfigBean();
    config.setType("date");
    config.setComparison(parseDateComparison(callNode));
    config.setValue("" + value.atMidnightInMyTimezone().getTime());
    return config;
}
Also used : FilterConfigBean(com.sencha.gxt.data.shared.loader.FilterConfigBean) FilterConfig(com.sencha.gxt.data.shared.loader.FilterConfig)

Aggregations

FilterConfig (com.sencha.gxt.data.shared.loader.FilterConfig)11 FilterConfigBean (com.sencha.gxt.data.shared.loader.FilterConfigBean)9 Test (org.junit.Test)6 FieldValue (org.activityinfo.model.type.FieldValue)2 FormulaNode (org.activityinfo.model.formula.FormulaNode)1 Quantity (org.activityinfo.model.type.number.Quantity)1 HasStringValue (org.activityinfo.model.type.primitive.HasStringValue)1 LocalDate (org.activityinfo.model.type.time.LocalDate)1