18 package org.turro.financials.contract;
20 import java.util.LinkedList;
21 import java.util.List;
22 import org.turro.elephant.db.WhereClause;
23 import org.turro.financials.contract.logic.ContractWrapper;
24 import org.turro.financials.db.FinancialsPU;
25 import org.turro.financials.entity.Contract;
26 import org.turro.jpa.Dao;
27 import org.turro.zkoss.input.GenericCombobox;
35 private boolean onlyActive;
42 this.onlyActive = onlyActive;
46 public void populateList(String value, LinkedList list,
int nRows) {
49 wc.
addClause(
"select contract from Contract as contract");
50 wc.
addClause(
"left join contract.contractPreferences cp");
52 wc.
addClause(
" contract.contractDefinition.id = 26");
54 wc.
addClause(
" (contract.contractDefinition.id = 55 and cp.id in (18,51,52))");
58 List<Contract> l = dao.getResultList(wc, nRows);
void addClause(String clause)
void addLikeFields(String[] fields, String value)
String getTextFromObject(Contract value)
void setOnlyActive(boolean onlyActive)
void populateList(String value, LinkedList list, int nRows)
static void clearInactives(Collection< Contract > contracts)