◆ ProductByContractorCombobox() [1/2]
org.turro.financials.product.ProductByContractorCombobox.ProductByContractorCombobox |
( |
| ) |
|
◆ ProductByContractorCombobox() [2/2]
org.turro.financials.product.ProductByContractorCombobox.ProductByContractorCombobox |
( |
Contract |
contract | ) |
|
◆ getContract()
Contract org.turro.financials.product.ProductByContractorCombobox.getContract |
( |
| ) |
|
◆ getProduct()
Product org.turro.financials.product.ProductByContractorCombobox.getProduct |
( |
| ) |
|
◆ getTextFromObject()
String org.turro.financials.product.ProductByContractorCombobox.getTextFromObject |
( |
ProductByContractor |
value | ) |
|
◆ populateList()
void org.turro.financials.product.ProductByContractorCombobox.populateList |
( |
String |
value, |
|
|
LinkedList |
list, |
|
|
int |
nRows |
|
) |
| |
Reimplemented from org.turro.zkoss.input.GenericCombobox< V >.
Definition at line 63 of file ProductByContractorCombobox.java.
64 Dao dao =
new FinancialsPU();
65 WhereClause wc =
new WhereClause();
66 wc.addClause(
"select pbp from ProductByContractor as pbp");
67 wc.addClause(
"where pbp.contract = :contract");
68 wc.addNamedValue(
"contract",
contract);
69 wc.addClause(
"and (");
70 if(!Strings.isBlank(value)) {
72 wc.addLikeFields(
new String[] {
"pbp.product.description" }, value);
75 wc.addClause(
"pbp.contractorCode = :pcode");
76 wc.addNamedValue(
"pcode", value);
79 wc.addClause(
"and pbp.product = :product");
80 wc.addNamedValue(
"product",
product);
82 wc.addClause(
"order by pbp.product.description");
83 for(Object o : dao.getResultList(wc, nRows)) {
84 list.add((ProductByContractor) o);
◆ setContract()
void org.turro.financials.product.ProductByContractorCombobox.setContract |
( |
Contract |
contract | ) |
|
◆ setProduct()
void org.turro.financials.product.ProductByContractorCombobox.setProduct |
( |
Product |
product | ) |
|
◆ contract
Contract org.turro.financials.product.ProductByContractorCombobox.contract |
|
protected |
◆ product
Product org.turro.financials.product.ProductByContractorCombobox.product |
|
protected |
The documentation for this class was generated from the following file: