◆ ProductOrderFilterGrid()
org.turro.erp.workorder.ProductOrderFilterGrid.ProductOrderFilterGrid |
( |
| ) |
|
Definition at line 36 of file ProductOrderFilterGrid.java.
38 addField(
new FilterField(
"lProduct") {
40 protected HtmlBasedComponent createEditor() {
41 ProductCombobox pcb =
new ProductCombobox();
42 if(value instanceof Long) {
43 pcb.setObjectValue(
new FinancialsPU().find(Product.class, value));
49 protected Object getEditorValue() {
50 Product product = (Product) super.getEditorValue();
52 return product.getId();
57 public void addConstraint(WhereClause wc) {
58 doAddConstraint(wc,
"wo.productId");
61 addField(
new FilterField(
"lInternalId", 0L, FilterFieldOperator.FILTER_EQUAL) {
63 public void addConstraint(WhereClause wc) {
64 doAddConstraint(wc,
"wo.id");
67 addField(
new FilterField(
"lDate",
new java.util.Date(
new java.util.Date().getTime() - (1L * 30L * 24L * 60L * 60L * 1000L))) {
69 public void addConstraint(WhereClause wc) {
70 doAddConstraint(wc,
"wo.workOrderDate");
73 addField(
new FilterField(
"lDescription",
"", FilterFieldOperator.FILTER_CONTAINS) {
75 public void addConstraint(WhereClause wc) {
76 doAddConstraint(wc, new String[] {
"wo.description",
"r.description" });
FilterField addField(FilterField filterField)
boolean loadPreferences(String preference)
FilterField addCurrentField(String label)
The documentation for this class was generated from the following file: