Examples of EndDateCommunicationToCustomerDTO


Examples of org.libreplan.ws.subcontract.api.EndDateCommunicationToCustomerDTO

        return new OrderElementWithAdvanceMeasurementsOrEndDateListDTO(externalCompany.getNif(),
                Arrays.asList(orderElementWithAdvanceMeasurementsOrEndDateDTO));
    }

    private EndDateCommunicationToCustomerDTO givenEndDateCommunicationToCustomersDTO() {
        EndDateCommunicationToCustomerDTO endDateCommunicationToCustomerDTO = new EndDateCommunicationToCustomerDTO(
                DateConverter.toXMLGregorianCalendar(new Date()),
                DateConverter.toXMLGregorianCalendar(new Date()),
                DateConverter.toXMLGregorianCalendar(new Date()));
        return endDateCommunicationToCustomerDTO;
    }
View Full Code Here

Examples of org.libreplan.ws.subcontract.api.EndDateCommunicationToCustomerDTO

    private OrderElementWithAdvanceMeasurementsOrEndDateListDTO getOrderElementWithAdvanceMeasurementsListDTO(
            Order order) {
        List<OrderElementWithAdvanceMeasurementsOrEndDateDTO> orderElementWithAdvanceMeasurementsDTOs = new ArrayList<OrderElementWithAdvanceMeasurementsOrEndDateDTO>();
        // create the asked end dates
        EndDateCommunicationToCustomerDTO endDateCommunicationToCustomerDTO = null;
        if (isAnyEndDateNotReported(order)) {
            EndDateCommunication lastEndDateCommunicationToCustomerReported = order
                    .getLastEndDateCommunicationToCustomer();
            lastEndDateCommunicationToCustomerReported.setCommunicationDate(new Date());
            endDateCommunicationToCustomerDTO = OrderElementConverter.toDTO(lastEndDateCommunicationToCustomerReported);
View Full Code Here

Examples of org.libreplan.ws.subcontract.api.EndDateCommunicationToCustomerDTO

                .toXMLGregorianCalendar(endDateCommunicationToCustomer.getEndDate());
        XMLGregorianCalendar saveDate = DateConverter
                .toXMLGregorianCalendar(endDateCommunicationToCustomer.getSaveDate());
        XMLGregorianCalendar communicationDate = DateConverter
                .toXMLGregorianCalendar(endDateCommunicationToCustomer.getCommunicationDate());
        return new EndDateCommunicationToCustomerDTO(saveDate, endDate, communicationDate);
    }
View Full Code Here

Examples of org.libreplan.ws.subcontract.api.EndDateCommunicationToCustomerDTO

            if (orderElement != null && orderElement.getTaskSource() != null
                    && orderElement.getTaskSource().getTask().isSubcontracted()) {

                Task task = (Task) orderElement.getTaskSource().getTask();
                SubcontractedTaskData subcontractedTaskData = task.getSubcontractedTaskData();
                EndDateCommunicationToCustomerDTO endDateDTO = orderElementWithAdvanceMeasurementsOrEndDateDTO.endDateCommunicationToCustomerDTO;

                Date endDate = DateConverter.toDate(endDateDTO.endDate);
                Date communicationDate = DateConverter.toDate(endDateDTO.communicationDate);

                subcontractedTaskData.getEndDatesCommunicatedFromSubcontractor().add(
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.