19 package org.turro.dossier.command;
21 import java.util.Collection;
22 import org.turro.annotation.ElephantPlugin;
23 import org.turro.dossier.db.DossierPU;
24 import org.turro.dossier.entity.Dossier;
25 import org.turro.dossier.entity.DossierStatus;
26 import org.turro.elephant.context.Application;
27 import org.turro.elephant.db.WhereClause;
28 import org.turro.elephant.util.Images;
29 import org.turro.i18n.I_;
30 import org.turro.plugin.command.CustomerSummaryPlugin;
31 import org.turro.zkoss.label.LabelTypes;
32 import org.turro.zkoss.layout.GroupboxArrow;
33 import org.zkoss.zul.Hlayout;
34 import org.zkoss.zul.Image;
35 import org.zkoss.zul.Include;
44 private Collection<Dossier> active;
50 if(!active.isEmpty()) {
53 protected void doFillContent() {
56 Hlayout hbox =
new Hlayout();
58 hbox.setSclass(
"z-valign-middle");
59 hbox.setValign(
"middle");
63 Include report =
new Include(
"/WEB-INF/_zul/dossier/customerSummary.zul");
64 report.setDynamicProperty(
"active", active);
65 gba.appendChild(report);
71 private void activeSales() {
73 wc.
addClause(
"select distinct dossier from Dossier as dossier");
74 wc.
addClause(
"join dossier.participants participant");
75 wc.
addClause(
"where participant.idContact = :contact");
76 wc.
addClause(
"and dossier.status = :status");
77 wc.
addClause(
"order by dossier.description");
80 active =
new DossierPU().getResultList(wc);
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 getPreLabel(String value)
static Label getSoftLabel(String value)
void setCaption(Component comp)
void setOpen(boolean open)