18 package org.turro.erp.task;
20 import java.util.Collection;
21 import java.util.Collections;
22 import java.util.List;
23 import javax.persistence.Query;
24 import org.turro.string.Strings;
25 import org.turro.elephant.db.WhereClause;
26 import org.turro.erp.db.ErpPU;
27 import org.turro.erp.entity.Task;
28 import org.turro.jpa.Dao;
29 import org.turro.plugin.filter.IFilterValue;
30 import org.turro.zkoss.grid.GroupExtended;
31 import org.zkoss.zul.Grid;
32 import org.zkoss.zul.Group;
40 private long lastId = 0;
45 public Collection<Task>
getTasks(List<IFilterValue> values) {
53 return q.getResultList();
55 return Collections.EMPTY_LIST;
67 grid.getRows().appendChild(group);
71 private WhereClause createCriteria(List<IFilterValue> values) {
78 wc.
addClause(
"order by t.orderReference, t.startDate, t.id");
void setNamedParameters(Query q)
void addClause(String clause)
String getFullDescription()
OrderReference getOrderReference()
void checkGroup(Grid grid, Task task, boolean open)
Collection< Task > getTasks(List< IFilterValue > values)
Query createQuery(String query)