BrightSide Workbench Full Report + Source Code
org.turro.financials.document.contract.DocumentsByContractCombobox Class Reference
Inheritance diagram for org.turro.financials.document.contract.DocumentsByContractCombobox:
Collaboration diagram for org.turro.financials.document.contract.DocumentsByContractCombobox:

Public Member Functions

void populateList (String value, LinkedList list, int nRows)
 
String getTextFromObject (Contract value)
 
- Public Member Functions inherited from org.turro.zkoss.input.GenericCombobox< V >
 GenericCombobox ()
 
getObjectValue ()
 
void setObjectValue (V value)
 
boolean isAllowNotInModelValues ()
 
void setAllowNotInModelValues (boolean allowNotInModelValues)
 
void refreshModel ()
 
abstract String getTextFromObject (V value)
 
Object getRelatedEntity ()
 
void setRelatedEntity (Object relatedEntity)
 
void render (Comboitem item, Object data, int index) throws Exception
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file DocumentsByContractCombobox.java.

Member Function Documentation

◆ getTextFromObject()

String org.turro.financials.document.contract.DocumentsByContractCombobox.getTextFromObject ( Contract  value)

Definition at line 50 of file DocumentsByContractCombobox.java.

50  {
51  return value.getName();
52  }
Here is the call graph for this function:

◆ populateList()

void org.turro.financials.document.contract.DocumentsByContractCombobox.populateList ( String  value,
LinkedList  list,
int  nRows 
)

Reimplemented from org.turro.zkoss.input.GenericCombobox< V >.

Definition at line 36 of file DocumentsByContractCombobox.java.

36  {
37  Dao dao = new FinancialsPU();
38  WhereClause wc = new WhereClause();
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)");
42  wc.addLikeFields(new String[] { "contract.name" }, value);
43  wc.addClause("order by contract.name");
44  List<Contract> l = dao.getResultList(wc, nRows);
45  ContractWrapper.clearInactives(l);
46  list.addAll(l);
47  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: