footerStyle.setPdfEmbedded(false);
jasperPrint.addStyle(footerStyle);
try {
List<Person> employeeList = new ArrayList<Person>();
if(idEmployee == null){
Map<String, Person> employeesMap = (Map<String, Person>) system.query(new GetEmployee());
for (Person person : employeesMap.values()) {
Employee employee = (Employee) person.getPersonType("employee");
// if (date.get(Calendar.DAY_OF_MONTH) == Integer.parseInt(employee.getPaymentDay()) && employee.isActivated()) {
if (employee.isActivated()) {
employeeList.add(person);
}
}
} else
// if(date == null){
// Person person = (Person) system.query(new GetEmployee(idEmployee));
// employeeList.add(person);
// } else
{
Person person = (Person) system.query(new GetEmployee(idEmployee));
Employee employee = (Employee) person.getPersonType("employee");
if (employee.isActivated()) {
// if (date.get(Calendar.DAY_OF_MONTH) == Integer.parseInt(employee.getPaymentDay()) && employee.isActivated()) {
employeeList.add(person);
}