- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 37 of file TimeList.java.
◆ setDate()
void org.turro.erp.time.TimeList.setDate |
( |
Date |
date | ) |
|
Definition at line 39 of file TimeList.java.
40 Rows rows = getRows();
42 rows.getChildren().clear();
48 TimeControlUtil tcu =
new TimeControlUtil();
49 List<TimeControl> registered = tcu.getFromDate(date);
50 long absoluteDays = CheckDate.absoluteDays(date);
52 for(TimeControl tc : registered) {
53 final Row row =
new Row();
55 rows.appendChild(row);
57 Vlayout vbox =
new Vlayout();
58 row.appendChild(vbox);
59 vbox.appendChild(
new Label(tc.getHumanResource().getName()));
60 if(tc.getTask() !=
null) {
61 vbox.appendChild(LabelTypes.getSoftLabel(tc.getTask().getFullDescription()));
64 row.appendChild(vbox);
65 vbox.appendChild(
new Label(
new CheckDate(tc.getStartTime()).formatDate(
"HH:mm:ss")));
66 if(tc.getStartTime() !=
null && CheckDate.absoluteDays(tc.getStartTime()) != absoluteDays) {
67 vbox.appendChild(LabelTypes.getSoftLabel(DateFormats.format(tc.getStartTime(),
true)));
70 row.appendChild(vbox);
71 vbox.appendChild(
new Label(
new CheckDate(tc.getEndTime()).formatDate(
"HH:mm:ss")));
72 if(tc.getEndTime() !=
null && CheckDate.absoluteDays(tc.getEndTime()) != absoluteDays) {
73 vbox.appendChild(LabelTypes.getSoftLabel(DateFormats.format(tc.getEndTime(),
true)));
The documentation for this class was generated from the following file: