19 package org.turro.erp.time;
21 import java.util.List;
22 import org.turro.elephant.context.Application;
23 import org.turro.zkoss.label.LabelExtended;
24 import org.turro.elephant.zkoss.ElLabel;
25 import org.zkoss.zk.ui.event.Event;
26 import org.zkoss.zk.ui.event.EventListener;
27 import org.zkoss.zk.ui.event.Events;
28 import org.zkoss.zul.Button;
29 import org.zkoss.zul.Grid;
30 import org.zkoss.zul.Label;
31 import org.zkoss.zul.Row;
32 import org.zkoss.zul.Rows;
33 import org.zkoss.zul.Space;
42 boolean canGetIn =
true;
44 Rows rows = getRows();
46 rows.getChildren().clear();
59 final Row row =
new Row();
61 rows.appendChild(row);
63 row.appendChild(
new LabelExtended().setDateTime(tc.getStartTime()));
66 select.setHflex(
"true");
67 select.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
69 public void onEvent(Event event) throws Exception {
70 Events.postEvent(new Event(Events.ON_CHANGE, XMLTaskSelector.this, row.getValue()));
73 row.appendChild(select);
77 final Row rowStart =
new Row();
78 rows.appendChild(rowStart);
83 butStart.setHflex(
"true");
84 butStart.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
86 public void onEvent(Event event) throws Exception {
87 Events.postEvent(new Event(Events.ON_USER, XMLTaskSelector.this, null));
90 rowStart.appendChild(butStart);
93 final Row rowCancel =
new Row();
94 rows.appendChild(rowCancel);
96 rowCancel.appendChild(
new Space());
98 Button butCancel =
new Button(Application.getString(
"lCancel"));
99 butCancel.setHflex(
"true");
100 butCancel.addEventListener(Events.ON_CLICK,
new EventListener<Event>() {
102 public void onEvent(Event event) throws Exception {
103 Events.postEvent(new Event(Events.ON_CANCEL, XMLTaskSelector.this));
106 rowCancel.appendChild(butCancel);
IConstructor getConstructor()
static Application getApplication()
static String getString(String key)
void setHumanResource(XMLHumanResource humanResource)
List< XMLTimeControl > getPendingControl()
void setHumanResource(XMLHumanResource humanResource)