18 package org.turro.financials.document.contract;
20 import java.util.LinkedList;
21 import java.util.List;
22 import org.turro.elephant.db.WhereClause;
23 import org.turro.financials.db.FinancialsPU;
24 import org.turro.financials.entity.Contract;
25 import org.turro.financials.model.contract.ContractWrapper;
26 import org.turro.jpa.Dao;
27 import org.turro.zkoss.input.GenericCombobox;
36 public void populateList(String value, LinkedList list,
int nRows) {
39 wc.
addClause(
"select contract from Contract as contract");
40 wc.
addClause(
"where contract.active = TRUE");
41 wc.
addClause(
"and contract.contractDefinition.id in (48, 55, 56)");
44 List<Contract> l = dao.getResultList(wc, nRows);
void addClause(String clause)
void addLikeFields(String[] fields, String value)
void populateList(String value, LinkedList list, int nRows)
String getTextFromObject(Contract value)
static void clearInactives(Collection< Contract > contracts)