18 package org.turro.financials.product.filter;
20 import org.turro.elephant.db.WhereClause;
21 import org.turro.financials.contract.ContractCombobox;
22 import org.turro.zkoss.filter.FilterField;
23 import org.turro.zkoss.filter.FilterFieldOperator;
24 import org.turro.zkoss.filter.FilterGrid;
25 import org.zkoss.zk.ui.HtmlBasedComponent;
38 doAddConstraint(wc,
new String[] {
"prod.description",
"prod.keywords" });
43 public void addConstraint(WhereClause wc) {
44 doAddConstraint(wc,
"prod.id");
49 public void addConstraint(WhereClause wc) {
50 doAddConstraint(wc,
"prod.productCode");
53 addField(
new FilterField(
"Contract") {
55 protected HtmlBasedComponent createEditor() {
59 public void addConstraint(WhereClause wc) {
60 doAddSubqueryConstraint(wc,
"prod.productByContractors",
"contract");
63 addField(
new FilterField(
"Price", 0.0, FilterFieldOperator.FILTER_EQUAL) {
65 public void addConstraint(WhereClause wc) {
66 doAddConstraint(wc,
"prod.price");
69 if(!loadPreferences(this.getClass().getName()+
"_filter")) {
70 addCurrentField(
"Description");
FilterField addField(FilterField filterField)