18 package org.turro.erp.reference;
20 import org.turro.elephant.context.Application;
21 import org.turro.elephant.context.ElephantContext;
22 import org.turro.erp.entity.OrderReference;
23 import org.turro.zkoss.grid.EditableGrid;
24 import org.zkoss.zk.ui.event.Event;
25 import org.zkoss.zk.ui.event.EventListener;
26 import org.zkoss.zk.ui.event.Events;
27 import org.zkoss.zul.Detail;
28 import org.zkoss.zul.Include;
29 import org.zkoss.zul.Row;
30 import org.zkoss.zul.Vbox;
44 addEventListener(Events.ON_OPEN,
new EventListener() {
46 public void onEvent(Event event)
throws Exception {
53 private void addComponents(
final Row row) {
54 if(getChildren().isEmpty()) {
57 Vbox vbox =
new Vbox();
58 vbox.setSclass(
"detailBox");
59 vbox.setStyle(
"background-image:url('" +
61 "/_zul/images/bg/sunken.png')");
63 Include include =
new Include(
"/WEB-INF/_zul/erp/reference/referenceDetail.zul");
64 include.setDynamicProperty(
"orderReference", orderReference);
65 vbox.appendChild(include);
static Application getApplication()
static ServletContext getCurrent()
OrderReferenceDetail(Row row, EditableGrid grid)