Package org.libreplan.business.orders.entities

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


            showAllOrderElements();
        }
    }

    private void writeFilterParameters() {
        Order order = orderModel.getOrder();
        FilterUtils.writeOrderStartDate(order,
                filterStartDateOrderElement.getValue());
        FilterUtils.writeOrderEndDate(order,
                filterFinishDateOrderElement.getValue());
        FilterUtils
View Full Code Here


    public void goToEdit(SubcontractorCommunication subcontractorCommunication) {
        if(subcontractorCommunication != null){
            TaskElement task = subcontractorCommunication.getSubcontractedTaskData().getTask();
            OrderElement orderElement = task.getOrderElement();
            Order order = subcontractorCommunicationModel.getOrder(orderElement);

            if(subcontractorCommunication.getCommunicationType().equals(CommunicationType.PROGRESS_UPDATE)){
                globalView.goToAdvanceTask(order,task);
            }else{
                globalView.goToOrderDetails(order);
View Full Code Here

    }

    private void onSeeScheduleOf(LoadTimeLine taskLine) {

        TaskElement task = (TaskElement) taskLine.getRole().getEntity();
        Order order = resourceLoadModel.getOrderByTask(task);

        if (resourceLoadModel.userCanRead(order,
                SecurityUtils.getSessionUserLoginName())) {
            if (order.isScheduled()) {
                planningControllerEntryPoints.goToTaskResourceAllocation(order,
                        task);
            } else {
                try {
                    Messagebox.show(_("The project has no scheduled elements"),
View Full Code Here

        return Collections.unmodifiableList(timeLineRequiredMaterialModel
                .getSelectedOrders());
    }

    public void onSelectOrder() {
        Order order = (Order) bdOrders.getSelectedElement();
        if (order == null) {
            throw new WrongValueException(bdOrders, _("please, select a project"));
        }
        boolean result = timeLineRequiredMaterialModel
                .addSelectedOrder(order);
View Full Code Here

            return result;
        }

        private ZoomLevel getZoomLevel(ResourceLoadDisplayData dataToShow) {
            if (filterBy != null) {
                Order order = filterBy.getOrder();
                ZoomLevel sessionZoom = FilterUtils.readZoomLevel(order);
                if (sessionZoom != null) {
                    return sessionZoom;
                }
            }
View Full Code Here

            IZoomLevelChangedListener zoomListener = new IZoomLevelChangedListener() {

                @Override
                public void zoomLevelChanged(ZoomLevel detailLevel) {
                    if (filterBy != null) {
                        Order order = filterBy.getOrder();
                        FilterUtils.writeZoomLevel(order, detailLevel);
                    } else {
                        FilterUtils.writeZoomLevelResourcesLoad(detailLevel);
                    }
                }
View Full Code Here

                breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                breadcrumbs.appendChild(new Label(getSchedulingLabel()));
                breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                breadcrumbs.appendChild(new Label(_("Resources Load")));
                breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                Order currentOrder = mode.getOrder();
                resourceLoadController
                        .setPlanningControllerEntryPoints(orderPlanningGate);
                resourceLoadController.filterBy(currentOrder);
                resourceLoadController.reload();
                breadcrumbs.appendChild(new Label(currentOrder.getName()));
            }
        };
    }
View Full Code Here

                });
    }

    private List<TaskElement> criticalPathFor(PlanningState state,
            IResourcesSearcher resourcesSearcher) {
        final Order order = state.getOrder();
        final Scenario currentScenario = state.getCurrentScenario();

        IAdapter<TaskElement, DependencyWithVisibility> adapter = TemplateModelAdapter
                .create(currentScenario, asLocalDate(order.getInitDate()),
                        asLocalDate(order.getDeadline()), resourcesSearcher);
        GanttDiagramGraph<TaskElement, DependencyWithVisibility> graph = GanttDiagramBuilder
                .createForcingDependencies(order, adapter);
        CriticalPathCalculator<TaskElement, DependencyWithVisibility> criticalPathCalculator = CriticalPathCalculator
                .create(order.getDependenciesConstraintsHavePriority());
        return criticalPathCalculator.calculateCriticalPath(graph);
    }
View Full Code Here

                            "Task {0}: Project is incompatible type with {1}",
                            orderElement.getCode(), orderElement.getClass()
                                    .getName()));

                }
                Order order = (Order) orderElement;
                orderVersion = order.getOrderVersionFor(Registry
                        .getScenarioManager()
                        .getCurrent());
                order.useSchedulingDataFor(orderVersion);
                Boolean dependenciesConstraintsHavePriority = ((OrderDTO) orderElementDTO).dependenciesConstraintsHavePriority;
                if (dependenciesConstraintsHavePriority != null) {
                    ((Order) orderElement)
                            .setDependenciesConstraintsHavePriority(dependenciesConstraintsHavePriority);
                }
View Full Code Here

    @Override
    @Transactional(readOnly = true)
    public void createTemplateFrom(OrderElement orderElement) {
        initializeAcompanyingObjectsOnConversation();
        Order order = orderDAO.loadOrderAvoidingProxyFor(orderElement);
        order.useSchedulingDataFor(getCurrentScenario());
        OrderElement orderElementOrigin = orderElementDAO
                .findExistingEntity(orderElement
                .getId());
        template = orderElementOrigin.createTemplate();
        loadAssociatedData(template);
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.