19 package org.turro.erp.sales;
21 import org.turro.elephant.db.WhereClause;
22 import org.turro.zkoss.filter.FilterField;
23 import org.turro.zkoss.filter.FilterFieldOperator;
24 import org.turro.zkoss.filter.FilterGrid;
36 public void addConstraint(WhereClause wc) {
37 doAddConstraint(wc,
"cu.orderId");
42 public void addConstraint(WhereClause wc) {
43 doAddConstraint(wc,
"cu.id");
46 addField(
new FilterField(
"lDate",
new java.util.Date(
new java.util.Date().getTime() - (1L * 30L * 24L * 60L * 60L * 1000L))) {
48 public void addConstraint(WhereClause wc) {
49 doAddConstraint(wc,
"cu.orderDate");
52 addField(
new FilterField(
"lDescription",
"", FilterFieldOperator.FILTER_CONTAINS) {
54 public void addConstraint(WhereClause wc) {
55 doAddConstraint(wc,
"cu.description");
58 if(!loadPreferences(this.getClass().getName()+
"_filter")) {
59 addCurrentField(
"lNumber");
CustomerOrderFilterGrid()
FilterField addField(FilterField filterField)