- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 37 of file XMLTimeList.java.
◆ setDate()
void org.turro.erp.time.XMLTimeList.setDate |
( |
Date |
date | ) |
|
Definition at line 39 of file XMLTimeList.java.
40 Rows rows = getRows();
42 rows.getChildren().clear();
48 XMLHumanResourceSet xhrs =
new XMLHumanResourceSet(Application.getApplication().getConstructor());
49 XMLTimeControlUtil tcu =
new XMLTimeControlUtil(Application.getApplication().getConstructor());
50 List<XMLTimeControl> registered = tcu.getFromDate(date);
51 long absoluteDays = CheckDate.absoluteDays(date);
53 for(XMLTimeControl tc : registered) {
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) {
64 vbox.appendChild(LabelTypes.getSoftLabel(DateFormats.format(tc.getStartTime(),
true)));
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) {
71 vbox.appendChild(LabelTypes.getSoftLabel(DateFormats.format(tc.getEndTime(),
true)));
The documentation for this class was generated from the following file: