Package no.ugland.utransprod.service

Examples of no.ugland.utransprod.service.OrderManager.lazyLoadOrder()


      // List<Transportable> tmpList = new ArrayList<Transportable>(list);

      // for (Transportable transportable : tmpList) {
      for (TransportListable transportable : list) {
        if (transportable instanceof Order) {
          orderManager.lazyLoadOrder((Order) transportable,
              new LazyLoadOrderEnum[] {
                  LazyLoadOrderEnum.COLLIES,
                  LazyLoadOrderEnum.COMMENTS });
        }
        transportable.setSent(sentDate);
View Full Code Here


      if (!isCollies) {
        OrderManager orderManager = (OrderManager) ModelUtil
            .getBean("orderManager");
        for (TransportListable transportListable : tmpList) {
          if (transportListable instanceof Order) {
            orderManager
                .lazyLoadOrder(
                    (Order) transportListable,
                    new LazyLoadOrderEnum[] { LazyLoadOrderEnum.COLLIES });
          }
          transportListable.setSentBool(false);
View Full Code Here

      Set<Order> orders = orderManager.findNotSent();
      int counter = 1;
      if (orders != null) {
        for (Order order : orders) {
          labelInfo.setText("Oppdaterer ordre..." + counter);
          orderManager.lazyLoadOrder(order, new LazyLoadOrderEnum[] {
              LazyLoadOrderEnum.ORDER_LINES,
              LazyLoadOrderEnum.ORDER_LINE_ORDER_LINES });
          order
              .setSpecialConcern(order
                  .getOrderLineSpecialConcerns());
View Full Code Here

        setVismaOrderLines(vismaOrderLines);

        if (getCraningAddition() == null) {
            OrderManager orderManager = (OrderManager) ModelUtil
                    .getBean("orderManager");
            orderManager.lazyLoadOrder(order, new LazyLoadOrderEnum[] {
                    LazyLoadOrderEnum.ORDER_LINES,
                    LazyLoadOrderEnum.ORDER_LINE_ATTRIBUTES,
                    LazyLoadOrderEnum.ORDER_COSTS,
                    LazyLoadOrderEnum.COMMENTS});
            OrderLine trossOrderLine = order.getOrderLine("Takstoler");
View Full Code Here

    private void lazyLoadTransportable(Transportable transportable) {
        if (transportable != null) {
            if (transportable instanceof Order) {
                OrderManager orderManager = (OrderManager) ModelUtil
                        .getBean("orderManager");
                orderManager
                        .lazyLoadOrder(
                                (Order) transportable,
                                new LazyLoadOrderEnum[] {LazyLoadOrderEnum.ORDER_LINES,LazyLoadOrderEnum.COLLIES});
            } else {
                PostShipmentManager postShipmentManager = (PostShipmentManager) ModelUtil
View Full Code Here

    postShipmentList.clear();
    List<PostShipment> postShipments = postShipmentManager.findAllNotSent();

    if (postShipments != null) {
      for (PostShipment postShipment : postShipments) {
        orderManager.lazyLoadOrder(postShipment.getOrder(),
            new LazyLoadOrderEnum[] { LazyLoadOrderEnum.COMMENTS });
      }
      Collections.sort(postShipments, new PostShipmentComparator());
      postShipmentList.addAll(postShipments);
    }
View Full Code Here

      WindowInterface window) {
    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean("orderManager");
    orderManager.refreshObject(order);
    if (!Hibernate.isInitialized(order.getOrderComments())) {
      orderManager.lazyLoadOrder(order, new LazyLoadOrderEnum[] {
          LazyLoadOrderEnum.COLLIES, LazyLoadOrderEnum.COMMENTS,
          LazyLoadOrderEnum.ORDER_LINES });
    }
    order.addOrderComment(orderComment);
    order.cacheComments();
View Full Code Here

   * @param window
   */
  private void setHasMissingCollies(Order order, WindowInterface window) {
    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean("orderManager");
    orderManager.lazyLoadOrder(order, new LazyLoadOrderEnum[] {
        LazyLoadOrderEnum.ORDER_LINES,
        LazyLoadOrderEnum.ORDER_LINE_ORDER_LINES });

    List<OrderLine> orderLines = order.getMissingCollies();
    if (orderLines != null && orderLines.size() != 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.