Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Order


    editDialog.button("SaveOrder").click();
    editDialog.button("SaveOrder").requireDisabled();

    assertEquals(count + 1, tableFixture.target.getModel().getRowCount());

    Order order = new Order();
    order.setOrderNr("100100100");
    List<Order> orders = orderManager.findByObject(order);
    assertNotNull(orders);
    assertEquals(1, orders.size());
    order = orders.get(0);

    orderManager.lazyLoadOrder(order,
        new LazyLoadOrderEnum[] { LazyLoadOrderEnum.COMMENTS });

    Set<OrderComment> comments = order.getOrderComments();
    assertNotNull(comments);
    assertEquals(1, comments.size());
    OrderComment orderComment = comments.iterator().next();
    Set<OrderCommentCommentType> commentTypes = orderComment
        .getOrderCommentCommentTypes();
View Full Code Here


  private void createIncomingOrders(final String orderNr,
      final List<Order> incomingOrders, final ImportOrderV importOrderV) {

    if (orderShouldBeImported(orderNr, importOrderV)) {
      Order incomingOrder = createOrder(importOrderV);
      incomingOrders.add(incomingOrder);
    }
  }
View Full Code Here

      incomingOrders.add(incomingOrder);
    }
  }

  private Order createOrder(final ImportOrderV importOrderV) {
    Order incomingOrder = new Order();
    incomingOrder.setOrderNr(importOrderV.getNumber1());
    Contact contact = getContact(importOrderV);
    incomingOrder.setCustomer(getCustomer(contact));

    setOrderDate(importOrderV, incomingOrder);
    incomingOrder.setAgreementDate(Util.getCurrentDate());

    incomingOrder.setSalesman(importOrderV.getSalesMan());
    setDeliveryAddress(incomingOrder, importOrderV);
    setTelephoneNr(incomingOrder, contact);
    setProductArea(incomingOrder, importOrderV);
    incomingOrder.setProbability(importOrderV.getProbability());
    incomingOrder.setTelephoneNrSite(importOrderV.getTelephoneNrSite());
    setPacklistReady(incomingOrder);
    incomingOrder.setMaxTrossHeight(importOrderV.getMaksHoyde());

    return incomingOrder;
  }
View Full Code Here

                dialogAttributes.setVisible(true);
                dialogAttributes.dispose();

                if (object == null
                        || ((OrderLineTreeNode) object).getObject() == null) {
                    Order order = new Order();
                    order.setOrderLines(new HashSet<OrderLine>(orderLines1));
                    // OrderWrapper orderWrapper = new OrderWrapper(order);
                    OrderWrapper orderWrapper = new OrderWrapper(
                            new OrderModel(order, false, false, false,null,null));
                    treeTableModelChosen = new OrderLineTreeTableModel(
                            orderWrapper);
View Full Code Here

  public ColliListView getColliListView() {
   

    List<Colli> collies = getCollies();
    Order order = getOrder();
    colliListViewHandler.setPackable(order, collies);
   

    ColliListView colliListView = new ColliListView(colliListViewHandler);
    return colliListView;
View Full Code Here

                    prod = (FrontProductionV) getRow(i);
                    statusMap = Util.createStatusMap(prod.getOrderStatus());
                    status = statusMap.get(veggChecker.getArticleName());

                    if (status == null) {
                        Order order = managerRepository.getOrderManager().findByOrderNr(prod
                                .getOrderNr());
                        if (order != null) {
                          managerRepository.getOrderManager().lazyLoadTree(order);
                            status = veggChecker.getArticleStatus(order);
                            statusMap.put(veggChecker.getArticleName(), status);
                            order.setStatus(Util.statusMapToString(statusMap));
                            try {
                              managerRepository.getOrderManager().saveOrder(order);
                            } catch (ProTransException e) {
                                Util.showErrorDialog(window, "Feil", e
                                        .getMessage());
View Full Code Here

    currentColli.setPackageDate(Util.getCurrentDate());
    ((ColliManager) overviewManager).saveColli(currentColli);
    managerRepository.getOrderLineManager().saveOrderLine(orderLine);

    Order order = currentColli.getOrder();

    if (order != null) {

      managerRepository.getOrderLineManager().lazyLoadOrder(
          order,
          new LazyLoadOrderEnum[] { LazyLoadOrderEnum.ORDER_LINES,
              LazyLoadOrderEnum.ORDER_LINE_ORDER_LINES });
      if (order.isDonePackage()) {
        order.setOrderComplete(Util.getCurrentDate());
        managerRepository.getOrderLineManager().saveOrder(order);
      }
    } else {
      PostShipment postShipment = currentColli.getPostShipment();
View Full Code Here

          ((ColliManager) overviewManager).saveColli(currentColli);
          managerRepository.getOrderLineManager().saveOrderLine(
              orderLine);
          orderLineList.remove(orderLine);

          Order order = currentColli.getOrder();
          if (order != null) {
            managerRepository.getOrderLineManager().refreshOrder(
                order);
            order.setOrderComplete(null);
            try {

              managerRepository.getOrderLineManager().saveOrder(
                  order);
            } catch (ProTransException e) {
View Full Code Here

        /**
         * @see javax.swing.table.TableModel#getValueAt(int, int)
         */
        public Object getValueAt(int rowIndex, int columnIndex) {
            Order order = (Order) getRow(rowIndex);
            Map<String, String> statusMap = Util.createStatusMap(order
                    .getStatus());
            switch (columnIndex) {
            case 0:
                return order.getOrderStringShort();
            case 1:
                return getStatus(steinChecker, statusMap, order, window);
            }
            return null;
        }
View Full Code Here

          prod = (VeggProductionV) getRow(i);
          statusMap = Util.createStatusMap(prod.getOrderStatus());
          status = statusMap.get(frontChecker.getArticleName());

          if (status == null) {
            Order order = managerRepository.getOrderManager()
                .findByOrderNr(prod.getOrderNr());
            if (order != null) {
              managerRepository.getOrderManager().lazyLoadTree(
                  order);
              status = frontChecker.getArticleStatus(order);
              statusMap
                  .put(frontChecker.getArticleName(), status);
              order.setStatus(Util.statusMapToString(statusMap));
              try {
                managerRepository.getOrderManager().saveOrder(
                    order);
              } catch (ProTransException e) {
                Util.showErrorDialog(window, "Feil", e
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.model.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.