Examples of TypeOfWorkHours


Examples of org.libreplan.business.costcategories.entities.TypeOfWorkHours

        row.appendChild(lbHoursType);
    }

    private void setHoursType(WorkReportLine workReportLine, Listitem item) {
        TypeOfWorkHours value = item != null ? (TypeOfWorkHours) item
                .getValue() : null;
        workReportLine.setTypeOfWorkHours(value);
        if (value == null) {
            throw new WrongValueException(item.getParent(),
                    _("Please, select an item"));
View Full Code Here

Examples of org.libreplan.business.costcategories.entities.TypeOfWorkHours

        workReportLine.setEffort(EffortDuration
                .parseFromFormattedString(workReportLineDTO.numHours));

        if (workReportLineDTO.typeOfWorkHours != null) {
            try {
                TypeOfWorkHours typeOfWorkHours = Registry
                        .getTypeOfWorkHoursDAO().findUniqueByCode(
                                workReportLineDTO.typeOfWorkHours);
                workReportLine.setTypeOfWorkHours(typeOfWorkHours);
            } catch (InstanceNotFoundException e) {
                throw new ValidationException(
View Full Code Here

Examples of org.libreplan.business.costcategories.entities.TypeOfWorkHours

        }

        /* Step 3.4: Update the type of work hours. */
        if(workReportLineDTO.typeOfWorkHours != null){
            try{
                TypeOfWorkHours typeOfWorkHours = Registry.getTypeOfWorkHoursDAO().findUniqueByCode(workReportLineDTO.typeOfWorkHours);
                workReportLine.setTypeOfWorkHours(typeOfWorkHours);
            } catch (InstanceNotFoundException e) {
                throw new ValidationException(
                        "There is no type of work hours with this code");
            }
View Full Code Here

Examples of org.libreplan.business.costcategories.entities.TypeOfWorkHours

        workReportLine.setTypeOfWorkHours(createValidTypeOfWorkHours());
        return workReportLine;
    }

    private TypeOfWorkHours createValidTypeOfWorkHours() {
        TypeOfWorkHours typeOfWorkHours = TypeOfWorkHours.create(UUID
                .randomUUID().toString(), UUID.randomUUID().toString());
        typeOfWorkHours.setDefaultPrice(BigDecimal.TEN);
        typeOfWorkHoursDAO.save(typeOfWorkHours);
        return typeOfWorkHours;

    }
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.