Examples of SubcontractorDeliverDate


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

    private class DeliverDatesRenderer implements RowRenderer{

        @Override
        public void render(Row row, Object data) throws Exception {
            SubcontractorDeliverDate subcontractorDeliverDate = (SubcontractorDeliverDate) data;
            row.setValue(subcontractorDeliverDate);

            appendLabel(row,
                    Util.formatDateTime(subcontractorDeliverDate.getSaveDate()));
            appendLabel(row, Util.formatDate(subcontractorDeliverDate
                    .getSubcontractorDeliverDate()));
            appendLabel(row, Util.formatDateTime(subcontractorDeliverDate
                    .getCommunicationDate()));
            appendOperations(row, subcontractorDeliverDate);
        }
View Full Code Here

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

            return deleteButton;
        }

        private boolean isNotUpdate(final SubcontractorDeliverDate subDeliverDate){
            SubcontractorDeliverDate lastDeliverDate = getSubcontractedTaskData()
                    .getRequiredDeliveringDates().first();
            if ((lastDeliverDate != null) && (lastDeliverDate.equals(subDeliverDate))) {
                return (lastDeliverDate.getCommunicationDate() != null);
            }
            return true;
        }
View Full Code Here

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

    }

    @Override
    public void addDeliverDate(Date subDeliverDate){
        if(subcontractedTaskData != null){
            SubcontractorDeliverDate subcontractorDeliverDate = SubcontractorDeliverDate
                    .create(new Date(), subDeliverDate, null);
            subcontractedTaskData
                    .addRequiredDeliveringDates(subcontractorDeliverDate);

            //update the state of the subcontracted task data
View Full Code Here

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

        if (this.getSubcontractedTaskData().getRequiredDeliveringDates()
                .isEmpty()) {
            return false;
        }

        SubcontractorDeliverDate currentSubDeliverDate = this
                .getSubcontractedTaskData().getRequiredDeliveringDates()
                .first();

        Date deliverDate = new LocalDate(newDeliverDate)
                .toDateTimeAtStartOfDay().toDate();
        Date currentDeliverDate = new LocalDate(
                currentSubDeliverDate.getSubcontractorDeliverDate())
                .toDateTimeAtStartOfDay().toDate();

        return (currentDeliverDate.compareTo(deliverDate) == 0);
    }
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.