18 package org.turro.financials.contract;
20 import java.util.Collection;
21 import org.turro.command.CommandUtil;
22 import org.turro.elephant.util.BooleanFormats;
23 import org.turro.financials.contract.filter.ContractFilterGrid;
24 import org.turro.financials.entity.Contract;
25 import org.turro.i18n.I_;
26 import org.turro.zkoss.grid.PagingGrid;
27 import org.zkoss.zk.ui.ext.AfterCompose;
28 import org.zkoss.zul.*;
44 this.filterGrid = filterGrid;
59 private void addRows() {
64 Rows rows =
new Rows();
67 boolean openGroup = list.size() < 40;
72 rows.appendChild(row);
74 row.setSclass(
"draft");
76 row.appendChild(
new Label(cd.getId() +
""));
77 row.appendChild(CommandUtil.getLink(cd));
79 row.appendChild(
new Label(BooleanFormats.format(cd.isStock())));
86 private void addColumns() {
87 Columns cols =
new Columns();
90 Column col =
new Column(
"#",
null,
"50px");
91 cols.appendChild(col);
93 col =
new Column(I_.get(
"Name"));
94 cols.appendChild(col);
96 col =
new Column(I_.get(
"Store"),
null,
"100px");
97 cols.appendChild(col);
Collection< Contract > getContracts(List< IFilterValue > values)
void checkGroup(Grid grid, Contract contract, boolean open)
void setFilterGrid(ContractFilterGrid filterGrid)
ContractFilter getFilter()
List< IFilterValue > getValues()
Rows getRows(boolean create)
void setRowCount(int rows)