Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Transport


   *
   * @param orderNr
   * @return ordre
   */
  private Order createOrder(String orderNr, WindowInterface window) {
    Transport transport = new Transport();
    transport.setTransportName("Historisk");
    // TransportManager transportManager = (TransportManager)
    // ModelUtil.getBean("transportManager");
    List<Transport> transportList = managerRepository.getTransportManager()
        .findByObject(transport);
    if (transportList != null && transportList.size() == 1) {
View Full Code Here


   * @param setPostShipment
   * @param window
   */
  void setTransport(final boolean setPostShipment,
      final WindowInterface window) {
    Transport transport = getTransport(window);
    Transportable transportable = getTransportable(setPostShipment);
    if (transport != Transport.UNKNOWN
        && !transportIsSent(transport, window)
        && isWeekValid(transport, window)
        && isAssemblyValid(transportable, transport, window)) {
View Full Code Here

  @SuppressWarnings("unchecked")
  private Transport getTransport(final WindowInterface window) {
    List<Transport> transportList = transportWeekViewHandler
        .getTransportList();
    Transport transport = (Transport) JOptionPane.showInputDialog(window
        .getComponent(), "Velg transport", "Transport",
        JOptionPane.OK_CANCEL_OPTION, null, transportList.toArray(),
        null);
    return transport == null ? Transport.UNKNOWN : transport;
  }
View Full Code Here

    assertEquals(BigDecimal.valueOf(660).setScale(2), orderCost
        .getCostAmount().setScale(2));
  }

  private void createPostShipment() throws Exception {
    transportPostShipment = new Transport();
    transportPostShipment.setTransportName("testEtterlevering");
    transportPostShipment.setTransportYear(YEAR);
    transportPostShipment.setTransportWeek(WEEK_51);
    transportPostShipment.setSent(Util.SHORT_DATE_FORMAT
        .parse("2008.12.15"));
View Full Code Here

    postShipment.setTransport(transportPostShipment);
    postShipmentManager.savePostShipment(postShipment);
  }

  private void createPostShipment2() throws Exception {
    transportPostShipment2 = new Transport();
    transportPostShipment2.setTransportName("testEtterlevering2");
    transportPostShipment2.setTransportYear(YEAR);
    transportPostShipment2.setTransportWeek(WEEK_52);
    transportPostShipment2.setSent(Util.SHORT_DATE_FORMAT
        .parse("2008.12.22"));
View Full Code Here

    transportCostManager.updatePricesFromFile(url.getFile());

  }

  private void setUpOrder(String postalCode) throws Exception {
    transport = new Transport();
    transport.setTransportName("test");
    transport.setTransportYear(YEAR);
    transport.setTransportWeek(WEEK_50);
    transport.setSent(Util.SHORT_DATE_FORMAT.parse("2008.12.08"));
View Full Code Here

            } else if (o1.getOrder().getTransport() == null) {
                return 1;
            } else if (o2.getOrder().getTransport() == null) {
                return -1;
            }
            Transport transport1 = o1.getOrder().getTransport();
            Transport transport2 = o2.getOrder().getTransport();

            return new CompareToBuilder().append(transport1.getLoadingDate(), transport2.getLoadingDate())
                    .append(transport1.getLoadTime(), transport2.getLoadTime()).append(
                            transport1.getTransportName(), transport2.getTransportName()).toComparison();

        }
View Full Code Here

    UserUtil.setUserTypeManagerForTest(userTypeManager);

   
    JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
      protected JDialog executeInEDT() {
        Transport transport = new Transport();
        TransportViewHandler transportViewHandler = new TransportViewHandler(
            orderViewHandlerFactory, login, managerRepository,
            deviationViewHandlerFactory, showTakstolInfoActionFactory,
            new VismaFileCreatorImpl(null, true));
View Full Code Here

  /**
   * @see no.ugland.utransprod.gui.Updateable#doNew(no.ugland.utransprod.gui.WindowInterface)
   */
  public void doNew(WindowInterface window) {
    openEditView(new Transport());
  }
View Full Code Here

  private void updateTransportableList() {
    transportableList.clear();
    Iterator<Transport> transportIt = transportList.iterator();

    while (transportIt.hasNext()) {
      Transport transport = transportIt.next();
      managerRepository.getTransportManager()
          .lazyLoad(
              transport,
              new LazyLoadEnum[][] {
                  { LazyLoadEnum.ORDERS, LazyLoadEnum.NONE },
                  { LazyLoadEnum.POST_SHIPMENTS,
                      LazyLoadEnum.NONE }, });
      transportableList.addAll(transport.getTransportables());
    }

  }
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.model.Transport

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.