1 package org.turro.crm.zul.sale;
4 import org.turro.crm.entity.SaleAction;
5 import org.turro.crm.entity.SaleProspect;
6 import org.turro.zkoss.grid.PagingGrid;
7 import org.zkoss.zk.ui.ext.AfterCompose;
8 import org.zkoss.zul.Include;
9 import org.zkoss.zul.Row;
10 import org.zkoss.zul.Rows;
19 private Date from, to;
25 this.saleProspect = saleProspect;
37 if(saleProspect !=
null) {
40 getRows(
true).getChildren().clear();
46 rows.getChildren().clear();
48 for(
final SaleAction saleAction : saleActions) {
50 Include inc =
new Include(
"/WEB-INF/_zul/crm/saleaction.zul");
51 inc.setDynamicProperty(
"saleAction", saleAction);
52 inc.setDynamicProperty(
"row", row);
54 inc.setHeight(
"100%");
56 rows.appendChild(row);
60 Include inc =
new Include(
"/WEB-INF/_zul/crm/saleaction.zul");
61 inc.setDynamicProperty(
"saleProspect", saleProspect);
62 inc.setDynamicProperty(
"from", from);
63 inc.setDynamicProperty(
"to", to);
64 inc.setDynamicProperty(
"grid",
this);
66 inc.setHeight(
"100%");
68 rows.appendChild(row);
SaleActionSet getSaleActions()
void setSaleProspect(SaleProspect saleProspect)
Rows getRows(boolean create)