◆ getTextFromObject()
String org.turro.financials.contract.ContractCombobox.getTextFromObject |
( |
Contract |
value | ) |
|
◆ isOnlyActive()
boolean org.turro.financials.contract.ContractCombobox.isOnlyActive |
( |
| ) |
|
◆ isOnlyStores()
boolean org.turro.financials.contract.ContractCombobox.isOnlyStores |
( |
| ) |
|
◆ populateList()
void org.turro.financials.contract.ContractCombobox.populateList |
( |
String |
value, |
|
|
LinkedList |
list, |
|
|
int |
nRows |
|
) |
| |
Reimplemented from org.turro.zkoss.input.GenericCombobox< V >.
Definition at line 66 of file ContractCombobox.java.
67 Dao dao =
new FinancialsPU();
68 WhereClause wc =
new WhereClause();
69 wc.addClause(
"select contract from Contract as contract");
70 wc.addClause(
"where 1=1");
72 wc.addClause(
"and contract.stock = TRUE");
74 if(contractDefinition !=
null) {
75 wc.addClause(
"and contract.contractDefinition = :ctcdef");
76 wc.addNamedValue(
"ctcdef", contractDefinition);
78 if(documentDefinition !=
null) {
79 wc.addClause(
"and exists (");
80 wc.addClause(
" select reldoc from contract.contractDefinition.relatedDocuments as reldoc");
81 wc.addClause(
" where reldoc.documentDefinition = :docdef");
83 wc.addNamedValue(
"docdef", documentDefinition);
85 wc.addLikeFields(
new String[] {
"contract.name" }, value);
86 wc.addClause(
"order by contract.name");
87 List<Contract> l = dao.getResultList(wc, nRows);
89 ContractWrapper.clearInactives(l);
◆ setContractDefinition()
void org.turro.financials.contract.ContractCombobox.setContractDefinition |
( |
ContractDefinition |
contractDefinition | ) |
|
◆ setDocumentDefinition()
void org.turro.financials.contract.ContractCombobox.setDocumentDefinition |
( |
DocumentDefinition |
documentDefinition | ) |
|
◆ setOnlyActive()
void org.turro.financials.contract.ContractCombobox.setOnlyActive |
( |
boolean |
onlyActive | ) |
|
◆ setOnlyStores()
void org.turro.financials.contract.ContractCombobox.setOnlyStores |
( |
boolean |
onlyStores | ) |
|
The documentation for this class was generated from the following file: