18 package org.turro.erp.workorder;
20 import java.util.Collection;
21 import org.turro.command.CommandUtil;
22 import org.turro.elephant.context.Application;
23 import org.turro.elephant.util.DateFormats;
24 import org.turro.erp.entity.WorkOrder;
25 import org.turro.zkoss.grid.PagingGrid;
26 import org.zkoss.zk.ui.ext.AfterCompose;
27 import org.zkoss.zul.*;
43 this.filterGrid = filterGrid;
58 private void addRows() {
66 boolean openGroup = list.size() < 40;
71 rows.appendChild(row);
72 if(workOrder.isDraft() && !workOrder.isProductOrder()) {
73 row.setSclass(
"draft");
75 row.appendChild(
new Label(workOrder.getId() +
""));
76 row.appendChild(
new Label(DateFormats.format(workOrder.getWorkOrderDate(),
true)));
77 row.appendChild(
new Label(workOrder.getWorkOrderId() +
""));
78 row.appendChild(CommandUtil.getLink(workOrder));
86 private void addColumns() {
90 Column col =
new Column(
"#",
null,
"80px");
91 cols.appendChild(col);
93 col =
new Column(Application.getString(
"lDate"),
null,
"100px");
94 cols.appendChild(col);
96 col =
new Column(Application.getString(
"lNumber"),
null,
"180px");
97 cols.appendChild(col);
99 col =
new Column(Application.getString(
"lDescription"));
100 cols.appendChild(col);
void checkGroup(Grid grid, WorkOrder workOrder, boolean open)
Collection< WorkOrder > getWorkOrders(List< IFilterValue > values)
void setFilterGrid(WorkOrderFilterGrid filterGrid)
WorkOrderFilter getFilter()
List< IFilterValue > getValues()
Columns getColumns(boolean create)
Rows getRows(boolean create)
void setRowCount(int rows)