18 package org.turro.financials.model;
20 import java.util.List;
21 import org.turro.financials.db.FinancialsPU;
22 import org.turro.financials.entity.ContractDefinition;
23 import org.turro.zkoss.grid.PagingGrid;
24 import org.zkoss.zk.ui.ext.AfterCompose;
25 import org.zkoss.zul.Column;
26 import org.zkoss.zul.Columns;
27 import org.zkoss.zul.Rows;
35 private void addRows() {
36 List<ContractDefinition> list =
new FinancialsPU().getResultList(
37 "select ctcdef from ContractDefinition as ctcdef order by ctcdef.name"
39 Rows rows =
new Rows();
44 rows.appendChild(row);
56 private void addColumns() {
57 Columns cols =
new Columns();
58 cols.setVisible(
false);
63 Column col =
new Column(
"");
64 cols.appendChild(col);
void setRowCount(int rows)