Tim-connector: Method getWorkReportLines added

getWorkReportLines: gets all WorkReportLines of this order specified between start and end date.
This commit is contained in:
Miciele Ghiorghis 2013-01-17 09:28:50 +01:00 committed by Manuel Rego Casasnovas
parent ddce4b2f1d
commit 9463d94a84

View file

@ -1568,6 +1568,24 @@ public abstract class OrderElement extends IntegrationEntity implements
return workReportLineDAO.findByOrderElementAndChildren(this, sortedByDate);
}
/**
* Gets workReportLines of this order-element between the specified
* <code>startDate</code> and <code>endDate</code>
*
* @param startDate
* the startDate
* @param endDate
* the endDate
* @param sortedByDate
* @return list of workReportLines
*/
public List<WorkReportLine> getWorkReportLines(Date startDate,
Date endDate, boolean sortedByDate) {
IWorkReportLineDAO workReportLineDAO = Registry.getWorkReportLineDAO();
return workReportLineDAO.findByOrderElementAndChildrenFilteredByDate(
this, startDate, endDate, sortedByDate);
}
/**
* Checks if it has nay consolidated advance, if not checks if any parent
* has it