◆ XMLTimeControlUtil()
org.turro.erp.time.XMLTimeControlUtil.XMLTimeControlUtil |
( |
IConstructor |
constructor | ) |
|
◆ end() [1/2]
◆ end() [2/2]
Definition at line 84 of file XMLTimeControlUtil.java.
85 XMLTimeControlSet xtcs =
new XMLTimeControlSet(constructor);
86 for(XMLTimeControl xtc : xtcs) {
87 if(xtc.getHumanResourceId() == tc.getHumanResourceId() &&
88 xtc.getStartTime().equals(tc.getStartTime())) {
90 xtc.setEndTime(
new Date());
94 xtcs.saveCollection();
◆ getFromDate()
List<XMLTimeControl> org.turro.erp.time.XMLTimeControlUtil.getFromDate |
( |
Date |
date | ) |
|
Definition at line 101 of file XMLTimeControlUtil.java.
102 CheckDate d =
new CheckDate(date);
103 ArrayList<XMLTimeControl> list =
new ArrayList<XMLTimeControl>();
104 XMLTimeControlSet xtcs =
new XMLTimeControlSet(constructor);
105 for(XMLTimeControl tc : xtcs) {
106 if(d.compareDayMonthYear(tc.getStartTime()) == 0 ||
107 (tc.getEndTime() !=
null && d.compareDayMonthYear(tc.getEndTime()) == 0)) {
◆ getHumanResource()
◆ getPendingControl()
List<XMLTimeControl> org.turro.erp.time.XMLTimeControlUtil.getPendingControl |
( |
| ) |
|
Definition at line 49 of file XMLTimeControlUtil.java.
50 ArrayList<XMLTimeControl> list =
new ArrayList<XMLTimeControl>();
51 if(humanResource !=
null) {
52 XMLTimeControlSet xtcs =
new XMLTimeControlSet(constructor);
53 for(XMLTimeControl tc : xtcs) {
54 if(tc.getHumanResourceId() == humanResource.
getId() && tc.getEndTime() ==
null) {
◆ setHumanResource()
void org.turro.erp.time.XMLTimeControlUtil.setHumanResource |
( |
XMLHumanResource |
humanResource | ) |
|
◆ start() [1/2]
◆ start() [2/2]
synchronized XMLTimeControl org.turro.erp.time.XMLTimeControlUtil.start |
( |
Date |
date | ) |
|
Definition at line 66 of file XMLTimeControlUtil.java.
67 XMLTimeControl tc =
new XMLTimeControl();
68 tc.setHumanResourceId(humanResource.
getId());
70 tc.setStartTime(
new Date());
72 tc.setStartTime(date);
74 XMLTimeControlSet xtcs =
new XMLTimeControlSet(constructor);
76 xtcs.saveCollection();
The documentation for this class was generated from the following file: