Package no.ugland.utransprod.service

Examples of no.ugland.utransprod.service.MainPackageVManager


    MockitoAnnotations.initMocks(this);
    ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
        .getBean(ProductAreaManager.MANAGER_NAME);
    when(managerRepository.getProductAreaManager()).thenReturn(
        productAreaManager);
    MainPackageVManager mainPackageVManager = (MainPackageVManager) ModelUtil
        .getBean(MainPackageVManager.MANAGER_NAME);
    when(managerRepository.getMainPackageVManager()).thenReturn(
        mainPackageVManager);
    SumOrderReadyVManager sumOrderReadyVManager = (SumOrderReadyVManager) ModelUtil
        .getBean(SumOrderReadyVManager.MANAGER_NAME);
View Full Code Here


    }
    tableModelOrderLines.fireTableDataChanged();

    refreshOwnOrderLineList(abstractOrderModel);
    if (orderSelectionList.hasSelection()) {
      MainPackageVManager mainPackageVManager = (MainPackageVManager) ModelUtil
          .getBean("mainPackageVManager");
      MainPackageV mainPackageV = (MainPackageV) orderSelectionList
          .getElementAt(tableOrders
              .convertRowIndexToModel(orderSelectionList
                  .getSelectionIndex()));

      mainPackageVManager.refresh(mainPackageV);
    }

  }
View Full Code Here

   */
  public void doRefresh(WindowInterface window) {
    // try {
    PostShipmentManager postShipmentManager = (PostShipmentManager) ModelUtil
        .getBean("postShipmentManager");
    MainPackageVManager mainPackageVManager = (MainPackageVManager) ModelUtil
        .getBean("mainPackageVManager");
    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean("orderManager");
    refreshing = true;

    setSums();

    List<MainPackageV> orders = new ArrayList<MainPackageV>(
        mainPackageVManager.findAll());
    Collections.sort(orders, new MainPackageVComparator());
    orderSelectionList.clearSelection();
    mainPackageVList.clear();
    if (orders.size() != 0) {
      mainPackageVList.addAll(orders);
View Full Code Here

    } catch (ProTransException e) {
      Util.showErrorDialog(window, "Feil", e.getMessage());
      e.printStackTrace();
    }
    if (orderSelectionList.hasSelection()) {
      MainPackageVManager mainPackageVManager = (MainPackageVManager) ModelUtil
          .getBean("mainPackageVManager");
      MainPackageV mainPackageV = (MainPackageV) orderSelectionList
          .getElementAt(tableOrders
              .convertRowIndexToModel(orderSelectionList
                  .getSelectionIndex()));

      mainPackageVManager.refresh(mainPackageV);
    }
  }
View Full Code Here

      final WindowInterface window) {
    orderLineSelectionList.clearSelection();
    orderSelectionList.clearSelection();
    postShipmentSelectionList.clearSelection();
    if (transportable.getPostShipment() == null) {
      MainPackageVManager mainPackageVManager = (MainPackageVManager) ModelUtil
          .getBean("mainPackageVManager");
      MainPackageV mainPackageV = mainPackageVManager
          .findByOrderNr(transportable.getOrder().getOrderNr());

      if (mainPackageV != null) {
        orderSelectionList.setSelection(mainPackageV);
        orderSelectionList.setSelectionIndex(tableOrders
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.service.MainPackageVManager

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.