Package org.libreplan.business.orders.entities

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


        Date startDate = predicate.getStartDate();
        Date endDate = predicate.getFinishDate();
        List<org.libreplan.business.labels.entities.Label> labels = new ArrayList<org.libreplan.business.labels.entities.Label>();
        List<Criterion> criteria = new ArrayList<Criterion>();
        ExternalCompany customer = null;
        OrderStatusEnum state = null;

        for (FilterPair filterPair : (List<FilterPair>) predicate.getFilters()) {
            TaskGroupFilterEnum type = (TaskGroupFilterEnum) filterPair
                    .getType();
            switch (type) {
View Full Code Here


                        .getAdvancePercentage(progressType)));
            }

            private String getOrderState() {
                String cssClass;
                OrderStatusEnum state = taskElement.getOrderElement()
                        .getOrder().getState();

                if (Arrays.asList(OrderStatusEnum.ACCEPTED,
                        OrderStatusEnum.OFFERED, OrderStatusEnum.STARTED,
                        OrderStatusEnum.OUTSOURCED).contains(
                        state)) {
                    if (taskElement.getAssignedStatus() == "assigned") {
                        cssClass = "order-open-assigned";
                    } else {
                        cssClass = "order-open-unassigned";
                    }
                } else {
                    cssClass = "order-closed";
                }
                return "<font class='" + cssClass + "'>" + _(state.toString())
                        + "</font>";
            }
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 acceptState(FilterPair filter,Order order) {
        OrderStatusEnum filterState = (OrderStatusEnum) filter.getValue();
        if ((order.getState() != null)
                && (order.getState().equals(filterState))) {
            return true;
        }
        return false;
View Full Code Here

    }

    private List<FilterPair> fillWithFirstTenFiltersState() {
        for (int i = 0; getListMatching().size() < 10
                && i < OrderStatusEnum.values().length; i++) {
            OrderStatusEnum state = OrderStatusEnum.values()[i];
            addState(state);
        }
        return getListMatching();
    }
View Full Code Here

    private List<Order> getOrdersFiltered() {
        List<org.libreplan.business.labels.entities.Label> labels = new ArrayList<org.libreplan.business.labels.entities.Label>();
        List<Criterion> criteria = new ArrayList<Criterion>();
        ExternalCompany customer = null;
        OrderStatusEnum state = null;

        for (FilterPair filterPair : (List<FilterPair>) bdFilters
                .getSelectedElements()) {
            OrderFilterEnum type = (OrderFilterEnum) filterPair.getType();
            switch (type) {
View Full Code Here

    }

    private List<FilterPair> fillWithFirstTenFiltersState() {
        for (int i = 0; getListMatching().size() < 10
                && i < OrderStatusEnum.values().length; i++) {
            OrderStatusEnum state = OrderStatusEnum.values()[i];
            addState(state);
        }
        return getListMatching();
    }
View Full Code Here

TOP

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

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.