19 package org.turro.erp.time;
21 import java.util.ArrayList;
22 import java.util.Date;
23 import java.util.Iterator;
24 import java.util.List;
25 import org.amic.util.date.CheckDate;
26 import org.turro.elephant.context.IConstructor;
38 this.constructor = constructor;
46 this.humanResource = humanResource;
50 ArrayList<XMLTimeControl> list =
new ArrayList<XMLTimeControl>();
51 if(humanResource !=
null) {
54 if(tc.getHumanResourceId() == humanResource.
getId() && tc.getEndTime() ==
null) {
90 xtc.setEndTime(
new Date());
102 CheckDate d =
new CheckDate(date);
103 ArrayList<XMLTimeControl> list =
new ArrayList<XMLTimeControl>();
106 if(d.compareDayMonthYear(tc.getStartTime()) == 0 ||
107 (tc.getEndTime() !=
null && d.compareDayMonthYear(tc.getEndTime()) == 0)) {
114 void deleteCompleted() {
117 Iterator<XMLTimeControl> it = xtcs.iterator();
118 while(it.hasNext()) {
119 if(it.next().getEndTime() !=
null) {
List< XMLTimeControl > getPendingControl()
synchronized XMLTimeControl end(XMLTimeControl tc, Date date)
XMLTimeControlUtil(IConstructor constructor)
List< XMLTimeControl > getFromDate(Date date)
XMLTimeControl end(XMLTimeControl tc)
synchronized XMLTimeControl start(Date date)
void setHumanResource(XMLHumanResource humanResource)
XMLHumanResource getHumanResource()
void setStartTime(Date startTime)
long getHumanResourceId()
void setHumanResourceId(long humanResourceId)