Package org.libreplan.business.orders.entities

Examples of org.libreplan.business.orders.entities.Order


    }

    @Override
    public void addAskedEndDate(Date value) {
        if (getOrder() != null) {
            Order order = (Order) getOrder();

            EndDateCommunication askedEndDate = EndDateCommunication.create(
                    new Date(), value, null);
            order.addAskedEndDate(askedEndDate);
        }
    }
View Full Code Here


    }

    @Override
    public boolean alreadyExistsRepeatedEndDate(Date value) {
        if(getOrder() != null){
            Order order = (Order) getOrder();
            if (order.getEndDateCommunicationToCustomer().isEmpty()) {
                return false;
            }

            EndDateCommunication endDateCommunicationToCustomer = order
                    .getEndDateCommunicationToCustomer().first();
            Date currentEndDate = endDateCommunicationToCustomer.getEndDate();
            return (currentEndDate.compareTo(value) == 0);
        }
        return false;
View Full Code Here

        messagesForUser = new MessagesForUser(messagesContainer);
    }

    public void goToEdit(CustomerCommunication customerCommunication) {
        if(customerCommunication != null && customerCommunication.getOrder() != null){
            Order order = customerCommunication.getOrder();
            globalView.goToOrderDetails(order);
        }
    }
View Full Code Here

        result.put("labels", getParameterLabels());
        return result;
    }

    public void showReport(JasperreportComponent jasperreport){
        final Order order = getSelectedOrder();
        if (order == null) {
            throw new WrongValueException(bandboxSelectOrder,
                    _("Please, select a project"));
        }
        super.showReport(jasperreport);
View Full Code Here

    @Override
    protected Map<String, Object> getParameters() {
        Map<String, Object> result = super.getParameters();

        Order order = getSelectedOrder();
        if (order != null) {
            result.put("project", order.getName() + " (" + order.getCode()
                    + ")");
        } else {
            result.put("filter", getFilterSummary());
        }
View Full Code Here

                TaskDeadlineViolationStatusEnum.class);
    }

    @Override
    public void setCurrentOrder(PlanningState planningState, List<TaskElement> criticalPath) {
        final Order order = planningState.getOrder();

        resourceLoadCalculator.setOrder(order,
                planningState.getAssignmentsCalculator());
        this.currentOrder = order;
        this.criticalPath = criticalPath;
View Full Code Here

        return false;
    }

    private boolean acceptLabel(FilterPair filter, TaskGroup taskGroup) {
        Label filterLabel = (Label) filter.getValue();
        Order order = (Order) taskGroup.getOrderElement();
        if (existLabelInOrderElement(filterLabel, order)) {
            return true;
        }
        if (this.includeChildren) {
            for (OrderElement orderElement : order.getAllOrderElements()) {
                if (existLabelInOrderElement(filterLabel, orderElement)) {
                    return true;
                }
            }
        }
View Full Code Here

        }
        return false;
    }

    private boolean acceptExternalCompany(FilterPair filter, TaskGroup taskGroup) {
        Order order = (Order) taskGroup.getOrderElement();
        ExternalCompany filterCustomer = (ExternalCompany) filter.getValue();
        if ((order.getCustomer() != null)
                && (order.getCustomer().getId().equals(filterCustomer.getId()))) {
            return true;
        }
        return false;
    }
View Full Code Here

        }
        return false;
    }

    private boolean acceptState(FilterPair filter, TaskGroup taskGroup) {
        Order order = (Order) taskGroup.getOrderElement();
        OrderStatusEnum filterState = (OrderStatusEnum) filter.getValue();
        if ((order.getState() != null)
                && (order.getState().equals(filterState))) {
            return true;
        }
        return false;
    }
View Full Code Here

        }
        return false;
    }

    private boolean acceptCode(FilterPair filter, TaskGroup taskGroup) {
        Order order = (Order) taskGroup.getOrderElement();
        String filterCode = (String) filter.getValue();
        return order.getCode().equals(filterCode);
    }
View Full Code Here

TOP

Related Classes of org.libreplan.business.orders.entities.Order

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.