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

Public Member Functions

boolean isOnlyActive ()
 
void setOnlyActive (boolean onlyActive)
 
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

Member Function Documentation

◆ getTextFromObject()

String org.turro.financials.contract.HumanResourceCombobox.getTextFromObject ( Contract  value)

Definition at line 68 of file bsfinancials-www/src/main/java/org/turro/financials/contract/HumanResourceCombobox.java.

68  {
69  return value.getName();
70  }
Here is the call graph for this function:

◆ isOnlyActive()

boolean org.turro.financials.contract.HumanResourceCombobox.isOnlyActive ( )

Definition at line 37 of file bsfinancials-www/src/main/java/org/turro/financials/contract/HumanResourceCombobox.java.

37  {
38  return onlyActive;
39  }

◆ populateList()

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

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

Definition at line 46 of file bsfinancials-www/src/main/java/org/turro/financials/contract/HumanResourceCombobox.java.

46  {
47  Dao dao = new FinancialsPU();
48  WhereClause wc = new WhereClause();
49  wc.addClause("select contract from Contract as contract");
50  wc.addClause("left join contract.contractPreferences cp");
51  wc.addClause("where (");
52  wc.addClause(" contract.contractDefinition.id = 26");
53  wc.addClause(" or");
54  wc.addClause(" (contract.contractDefinition.id = 55 and cp.id in (18,51,52))");
55  wc.addClause(")");
56  wc.addLikeFields(new String[] { "contract.name" }, value);
57  wc.addClause("order by contract.name");
58  List<Contract> l = dao.getResultList(wc, nRows);
59  if(onlyActive) {
60  ContractWrapper.clearInactives(l);
61  }
62  for(Object o : l) {
63  list.add((Contract) o);
64  }
65  }
Here is the call graph for this function:

◆ setOnlyActive()

void org.turro.financials.contract.HumanResourceCombobox.setOnlyActive ( boolean  onlyActive)

Definition at line 41 of file bsfinancials-www/src/main/java/org/turro/financials/contract/HumanResourceCombobox.java.

41  {
42  this.onlyActive = onlyActive;
43  }

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