19 package org.turro.financials.command;
21 import java.util.Collection;
22 import org.turro.annotation.ElephantPlugin;
23 import org.turro.elephant.context.Application;
24 import org.turro.elephant.db.WhereClause;
25 import org.turro.elephant.util.Images;
26 import org.turro.financials.db.FinancialsPU;
27 import org.turro.i18n.I_;
28 import org.turro.plugin.command.CustomerSummaryPlugin;
29 import org.turro.zkoss.label.LabelTypes;
30 import org.turro.zkoss.layout.GroupboxArrow;
31 import org.zkoss.zul.Hlayout;
32 import org.zkoss.zul.Image;
33 import org.zkoss.zul.Include;
42 private Collection<ContractPortfolio> active;
48 if(!active.isEmpty()) {
51 protected void doFillContent() {
52 Include report =
new Include(
"/WEB-INF/_zul/financials/contract/customerSummary.zul");
53 report.setDynamicProperty(
"active", active);
57 Hlayout hbox =
new Hlayout();
59 hbox.setSclass(
"z-valign-middle");
60 hbox.setValign(
"middle");
68 private void activeSales() {
70 wc.
addClause(
"select new org.turro.financials.command.ContractPortfolio(c) from Contract as c");
71 wc.
addClause(
"where c.contractor = :contact");
Object addResult(String key, Object value)
static Application getApplication()
void addClause(String clause)
void addNamedValue(String name, Object value)
static String getImage(String image)
static String get(String msg)
static Label getSoftLabel(String value)
void setCaption(Component comp)
void setOpen(boolean open)