19 package org.turro.erp.time;
21 import java.util.Date;
22 import java.util.List;
23 import org.amic.util.date.CheckDate;
24 import org.turro.elephant.context.Application;
25 import org.turro.zkoss.label.LabelTypes;
26 import org.zkoss.text.DateFormats;
27 import org.zkoss.zul.Grid;
28 import org.zkoss.zul.Label;
29 import org.zkoss.zul.Row;
30 import org.zkoss.zul.Rows;
31 import org.zkoss.zul.Vlayout;
40 Rows rows = getRows();
42 rows.getChildren().clear();
50 List<XMLTimeControl> registered = tcu.
getFromDate(date);
51 long absoluteDays = CheckDate.absoluteDays(date);
54 final Row row =
new Row();
56 rows.appendChild(row);
58 row.appendChild(
new Label(xhrs.
getName(tc)));
60 Vlayout vbox =
new Vlayout();
61 row.appendChild(vbox);
62 vbox.appendChild(
new Label(
new CheckDate(tc.getStartTime()).formatDate(
"HH:mm:ss")));
63 if(tc.getStartTime() !=
null && CheckDate.absoluteDays(tc.getStartTime()) != absoluteDays) {
67 row.appendChild(vbox);
68 if(tc.getEndTime() !=
null) {
69 vbox.appendChild(
new Label(
new CheckDate(tc.getEndTime()).formatDate(
"HH:mm:ss")));
70 if(tc.getEndTime() !=
null && CheckDate.absoluteDays(tc.getEndTime()) != absoluteDays) {
IConstructor getConstructor()
static Application getApplication()
String getName(XMLTimeControl tc)
List< XMLTimeControl > getFromDate(Date date)
static Label getSoftLabel(String value)