/**
* TNTConcept Easy Enterprise Management by Autentia Real Bussiness Solution S.L.
* Copyright (C) 2007 Autentia Real Bussiness Solution S.L.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* CommissioningReportBean.java
*/
package com.autentia.tnt.bean.reports;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.faces.model.SelectItem;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.autentia.tnt.businessobject.Project;
import com.autentia.tnt.dao.SortCriteria;
import com.autentia.tnt.dao.hibernate.ProjectDAO;
import com.autentia.tnt.manager.report.ReportManager;
public class CommissioningReportBean extends ReportBean{
private static final Log log = LogFactory.getLog(CommissioningReportBean.class);
@Override
protected void setListReports(){
listReports = ReportManager.getReportManager().getReportListCommissioning();
}
@Override
public ArrayList<SelectItem> getYears() {
final ArrayList<SelectItem> reto = new ArrayList<SelectItem>();
final Date date = new Date();
for (int i = date.getYear(); i > date.getYear() - 5; i--) {
reto.add(new SelectItem(Integer.toString(1900 + i), Integer.toString(1900 + i)));
}
return reto;
}
}