Package org.libreplan.business.workingday

Examples of org.libreplan.business.workingday.EffortDuration.toFormattedString()


        }

        summaryTotal.setValue(total.toFormattedString());
        summaryTotalCapacity.setValue(capacity.toFormattedString());
        summaryTotalExtraPerDay.setValue(extraPerDay.toFormattedString());
        summaryTotalExtra.setValue(extra.toFormattedString());
    }

    private EffortDuration getEffortDurationFromTextbox(String id) {
        return effortDurationFromString(((Textbox) timesheet.getFellow(id))
                .getValue());
View Full Code Here


    public String getEffortAsString() {
        SumChargedEffort sumChargedEffort = getSumChargedEffort();
        EffortDuration effort = sumChargedEffort != null ? sumChargedEffort
                .getTotalChargedEffort() : EffortDuration.zero();
        return effort.toFormattedString();
    }

    public boolean isJiraIssue() {
        String code = getCode();
        if (code == null) {
View Full Code Here

    private Set<HoursWorkedPerResourceDTO> dtos = new HashSet<HoursWorkedPerResourceDTO>();

    public String getEffort() throws JRScriptletException {
        EffortDuration effort = (EffortDuration) this.getFieldValue("effort");
        return effort.toFormattedString();
    }

    public String getSumEffort() throws JRScriptletException {
        return (String) this.getVariableValue("sumHoursPerDay");
    }
View Full Code Here

            // The effort of the worker is the sum of all efforts.
            EffortDuration effortWorker = EffortDuration.sum(current,
                    EffortDuration.parseFromFormattedString((String) this
                            .getVariableValue("sumHoursPerWorker")));
            this.setVariableValue("sumHoursPerWorker",
                    effortWorker.toFormattedString());
            // We calculate here the effort for a particular day
            EffortDuration effort = EffortDuration.sum(current, EffortDuration
                    .parseFromFormattedString((String) this
                            .getVariableValue("sumHoursPerDay")));
            this.setVariableValue("sumHoursPerDay", effort.toFormattedString());
View Full Code Here

                    effortWorker.toFormattedString());
            // We calculate here the effort for a particular day
            EffortDuration effort = EffortDuration.sum(current, EffortDuration
                    .parseFromFormattedString((String) this
                            .getVariableValue("sumHoursPerDay")));
            this.setVariableValue("sumHoursPerDay", effort.toFormattedString());
            dtos.add(dto);
        }
    }

    @Override
View Full Code Here

public class RealHoursScriptlet extends JRDefaultScriptlet {

    public String getRealHours() throws JRScriptletException {
        EffortDuration effort = (EffortDuration) this
                .getFieldValue("realHours");
        return effort.toFormattedString();
    }
}
View Full Code Here

        if (!dtos.contains(dto)) {
            if (current != null) {
                EffortDuration effort = EffortDuration.sum(EffortDuration
                        .parseFromFormattedString((String) this
                                .getVariableValue("sumNumHours")), current);
                this.setVariableValue("sumNumHours", effort.toFormattedString());
            }
            dtos.add(dto);
        }
    }
View Full Code Here

    }

    private String getWorkedHours(OrderElement orderElement){
        EffortDuration asignedDirectHours = orderElementDAO
                .getAssignedDirectEffort(orderElement);
        return asignedDirectHours.toFormattedString();
    }

    public void view(final OrderElementHistoricAssignmentDTO dto) {
        OrderElement orderElement = dto.getOrderElement();
        Order order = dto.getOrder();
View Full Code Here

        }
        EffortDuration totalEffort = getTotalAvailableEffort();
        EffortDuration effortAssigned = getEffortAssigned();
        return new LoadPeriod(asGantt(start), asGantt(end),
                totalEffort.toFormattedString(),
                effortAssigned.toFormattedString(),
                new LoadLevel(calculateLoadPercentage(totalEffort,
                        effortAssigned)));
    }

    private GanttDate asGantt(IntraDayDate date) {
View Full Code Here

            @Override
            public Void onHours(EffortModification modification) {
                EffortDuration goal = modification.getEffort();
                Clients.response(new AuWrongValue(effortInput, _(
                        "{0} cannot be fulfilled", goal.toFormattedString())));

                return null;
            }
        });
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.