19 package org.turro.erp.sales;
21 import java.util.Collection;
22 import java.util.Collections;
23 import java.util.List;
24 import javax.persistence.Query;
25 import org.turro.string.Strings;
26 import org.turro.elephant.db.WhereClause;
27 import org.turro.erp.db.ErpPU;
28 import org.turro.erp.entity.CustomerOrder;
29 import org.turro.jpa.Dao;
30 import org.turro.plugin.filter.IFilterValue;
31 import org.turro.zkoss.grid.GroupExtended;
32 import org.zkoss.zul.Grid;
33 import org.zkoss.zul.Group;
41 private long lastId = 0;
54 return q.getResultList();
56 return Collections.EMPTY_LIST;
68 grid.getRows().appendChild(group);
72 private WhereClause createCriteria(List<IFilterValue> values) {
74 wc.
addClause(
"select distinct cu from CustomerOrder as cu");
79 wc.
addClause(
"order by cu.customerId, cu.orderDate, cu.orderId");
void setNamedParameters(Query q)
void addClause(String clause)
void checkGroup(Grid grid, CustomerOrder customerOrder, boolean open)
Collection< CustomerOrder > getCustomerOrders(List< IFilterValue > values)
String getFullDescription()
Query createQuery(String query)