18 package org.turro.erp.task;
20 import org.turro.elephant.db.WhereClause;
21 import org.turro.zkoss.filter.FilterField;
22 import org.turro.zkoss.filter.FilterFieldOperator;
23 import org.turro.zkoss.filter.FilterGrid;
35 public void addConstraint(WhereClause wc) {
36 doAddConstraint(wc,
"t.id");
39 addField(
new FilterField(
"lDate",
new java.util.Date(
new java.util.Date().getTime() - (1L * 30L * 24L * 60L * 60L * 1000L))) {
41 public void addConstraint(WhereClause wc) {
42 doAddConstraint(wc,
"t.startDate");
45 addField(
new FilterField(
"lName",
"", FilterFieldOperator.FILTER_CONTAINS) {
47 public void addConstraint(WhereClause wc) {
48 doAddConstraint(wc,
"t.name");
51 addField(
new FilterField(
"lDescription",
"", FilterFieldOperator.FILTER_CONTAINS) {
53 public void addConstraint(WhereClause wc) {
54 doAddConstraint(wc,
"t.description");
57 if(!loadPreferences(this.getClass().getName()+
"_filter")) {
58 addCurrentField(
"lName");
FilterField addField(FilterField filterField)