Package no.ugland.utransprod.gui.model

Examples of no.ugland.utransprod.gui.model.OrderModel


      editOrderView.resetBuffering();
    }
    dialog.setVisible(true);

    if (editOrderViewIsSearching(editOrderView)) {
      OrderModel orderModel = editOrderView.getOrderModel();
      orderModel.viewToModel();

      try {
        setCustomerSearchData(order, dialog, orderModel);
      } catch (ProTransException e) {
        Util.showErrorDialog(dialog, "Feil", e.getMessage());
View Full Code Here


    return true;
  }

  public boolean saveObjectExt(AbstractModel<Order, OrderModel> objectModel,
      WindowInterface window) {
    OrderModel object = (OrderModel) objectModel;
    Order order = object.getObject();
    int index = objectList.indexOf(order);

    handleCustomer(object, order);

    try {
View Full Code Here

    final Order order = new Order();
    order.setOrderNr("100");
    order.addOrderLine(orderLine);

    order.addColli(colli);
    packable = new OrderModel(order, false, false, false, null, null);
    final ColliViewHandler colliViewHandler = new ColliViewHandler(null,
        colli, packable, login, managerRepository, null);
    when(colliViewHandlerProvider.getColliViewHandler(colli)).thenReturn(
        colliViewHandler);
View Full Code Here

    orderLine.setArticlePath(orderLine.getGeneratedArticlePath());
    order.setDeliveryAddress("deliveryAddress");
    order.setPostalCode("4841");
    order.setPostOffice("postOffice");
    order.setOrderDate(Util.getCurrentDate());
    OrderModel orderModel = new OrderModel(order, false, true, true, null,
        null);
    orderModel.setCustomerNr("100000");
    orderModel.setCustomerFirstName("test");
    orderModel.setCustomerLastName("testesen");
    viewHandler.saveObjectExt(orderModel, null);
    assertEquals(Integer.valueOf(1), orderLine.getIsDefault());
  }
View Full Code Here

  private JTextField textFieldMaxTrossHeight;

  public EditOrderView(final OrderViewHandler handler, final Order order,
      final boolean searchDialog, final Project project) {
    super(searchDialog, new OrderModel(order, searchDialog, true, true,
        project.getProjectNumber(), project.getProjectName()), handler);

    orderViewHandler = handler;
  }
View Full Code Here

                        || ((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);
                    treeTableChosen.setTreeTableModel(treeTableModelChosen);
                }
                treeTableModelChosen.fireChanged();
View Full Code Here

        (ListModel) ownOrderLineList);

    postShipmentList = new ArrayListModel();
    postShipmentSelectionList = new SelectionInList();

    presentationModelPackable = new PresentationModel(new OrderModel(
        new Order(), false, false, false, null, null));
    presentationModelSum = new PresentationModel(new SumOrderReadyVModel(
        new SumOrderReadyV(null, BigDecimal.valueOf(0), null, null,
            null)));
    presentationModelWeekSum = new PresentationModel(
View Full Code Here

    Calendar cal = Calendar.getInstance();
    currentWeek = cal.get(Calendar.WEEK_OF_YEAR);
    List<MainPackageV> orders = new ArrayList<MainPackageV>(
        managerRepository.getMainPackageVManager().findAll());
    Collections.sort(orders, new MainPackageVComparator());
    OrderModel orderModel = null;
    if (orders.size() != 0) {
      mainPackageVList.addAll(orders);
    }
    orderModel = new OrderModel(new Order(), false, false, true, null, null);
    presentationModelPackable = new PresentationModel(orderModel);
    // colliListViewHandler.setPresentationModel(presentationModelPackable);
    orderLineSelectionList.addPropertyChangeListener(
        SelectionInList.PROPERTYNAME_SELECTION_INDEX,
        new OrderLineSelectionListener());
View Full Code Here

    }

    refreshing = false;
    orderLineSelectionList.clearSelection();

    presentationModelPackable.setBean(new OrderModel(new Order(), false,
        false, false, null, null));

    ownOrderLineList.clear();
    orderComments.clear();
View Full Code Here

        .lazyLoadOrderLineAndCollies(mainPackageV.getOrderId());
    if(!Hibernate.isInitialized(((Order)order).getCollies())){
      System.out.println("test");
    }
    if (order != null) {
      OrderModel orderModel = new OrderModel(order, false, false, true,
          null, null);
      colliListViewHandler.setPackable(order, null);

      presentationModelPackable.setBean(orderModel);
      ((OrderModel) presentationModelPackable.getBean())
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.gui.model.OrderModel

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.