Package org.libreplan.business.planner.entities

Examples of org.libreplan.business.planner.entities.CalculatedValue


                .setValue(aggregate.isEmpty() ? hours(allocationRowsHandler
                        .getTask().getWorkHours()) : aggregate.getTotalEffort());
    }

    private void allHoursInputComponentDisabilityRule() {
        CalculatedValue c = allocationRowsHandler.getCalculatedValue();
        boolean disabled = rows.isEmpty()
                || (CalculatedValue.NUMBER_OF_HOURS == c)
                || (c == CalculatedValue.RESOURCES_PER_DAY && !recommendedAllocation)
                || isAnyManual() || isTaskUpdatedFromTimesheets();
        this.effortInput.setDisabled(disabled);
View Full Code Here


    public AllocationResult getLastAllocation() {
        return lastAllocation;
    }

    public void setCalculatedValue(CalculatedValue newCalculatedValue) {
        CalculatedValue previousCalculatedValue = allocationRowsHandler
                .getCalculatedValue();
        if (newCalculatedValue == previousCalculatedValue) {
            return;
        }
        allocationRowsHandler.setCalculatedValue(newCalculatedValue);
View Full Code Here

        allResourcesPerDayVisibilityRule();
        onChangeEnableApply(allResourcesPerDay);
    }

    private void allResourcesPerDayVisibilityRule() {
        CalculatedValue c = allocationRowsHandler.getCalculatedValue();
        this.allResourcesPerDay.setDisabled(rows.isEmpty()
                || c == CalculatedValue.RESOURCES_PER_DAY
                || !recommendedAllocation || isAnyManual()
                || isTaskUpdatedFromTimesheets());
        this.allResourcesPerDay
View Full Code Here

        initialize();
    }

    private static ResourcesPerDay resourcesPerDayForInputFrom(
            ResourceAllocation<?> resourceAllocation) {
        CalculatedValue calculatedValue = resourceAllocation.getTask()
                .getCalculatedValue();
        return calculatedValue == CalculatedValue.RESOURCES_PER_DAY ? resourceAllocation
                .getNonConsolidatedResourcePerDay() : resourceAllocation
                .getIntendedResourcesPerDay();
    }
View Full Code Here

            this.allocation = allocation;
            final EffortDuration totalEffort = allocation.getAggregate()
                    .getTotalEffort();
            final IntraDayDate start = allocation.getIntraDayStart();
            final IntraDayDate end = allocation.getIntraDayEnd();
            final CalculatedValue calculatedValue = allocation
                    .getCalculatedValue();
            restrictionSource = new IRestrictionSource() {

                @Override
                public EffortDuration getTotalEffort() {
View Full Code Here

TOP

Related Classes of org.libreplan.business.planner.entities.CalculatedValue

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.