Package org.libreplan.business.common.entities

Examples of org.libreplan.business.common.entities.PersonalTimesheetsPeriodicityEnum


            return true;
        }

        LocalDate workReportDate = LocalDate.fromDateFields(workReportLines
                .iterator().next().getDate());
        PersonalTimesheetsPeriodicityEnum periodicity = Registry
                .getConfigurationDAO()
                .getConfigurationWithReadOnlyTransaction()
                .getPersonalTimesheetsPeriodicity();
        LocalDate min = periodicity.getStart(workReportDate);
        LocalDate max = periodicity.getEnd(workReportDate);

        for (WorkReportLine line : workReportLines) {
            LocalDate date = LocalDate.fromDateFields(line.getDate());
            if ((date.compareTo(min) < 0) || (date.compareTo(max) > 0)) {
                return false;
View Full Code Here


    public ListitemRenderer getPersonalTimesheetsPeriodicityRenderer() {
        return new ListitemRenderer() {
            @Override
            public void render(Listitem item, Object data) throws Exception {
                PersonalTimesheetsPeriodicityEnum periodicity = (PersonalTimesheetsPeriodicityEnum) data;
                item.setLabel(_(periodicity.getName()));
                item.setValue(periodicity);
            }
        };
    }
View Full Code Here

TOP

Related Classes of org.libreplan.business.common.entities.PersonalTimesheetsPeriodicityEnum

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.