Examples of PostShipment


Examples of no.ugland.utransprod.model.PostShipment

      if (order.isDonePackage()) {
        order.setOrderComplete(Util.getCurrentDate());
        managerRepository.getOrderLineManager().saveOrder(order);
      }
    } else {
      PostShipment postShipment = currentColli.getPostShipment();

      if (postShipment != null) {
        PostShipmentManager postShipmentManager = (PostShipmentManager) ModelUtil
            .getBean("postShipmentManager");
        postShipmentManager
            .lazyLoad(
                postShipment,
                new LazyLoadPostShipmentEnum[] { LazyLoadPostShipmentEnum.ORDER_LINES });
        if (postShipment.isDonePackage()) {
          postShipment.setPostShipmentComplete(Util.getCurrentDate());
          postShipmentManager.savePostShipment(postShipment);
        }
      }

    }
View Full Code Here

Examples of no.ugland.utransprod.model.PostShipment

                  .showErrorDialog(window, "Feil", e
                      .getMessage());
              e.printStackTrace();
            }
          } else {
            PostShipment postShipment = currentColli
                .getPostShipment();
            if (postShipment != null) {
              PostShipmentManager postShipmentManager = (PostShipmentManager) ModelUtil
                  .getBean("postShipmentManager");
              postShipment.setPostShipmentComplete(null);
              postShipmentManager.savePostShipment(postShipment);
            }

          }
        }
View Full Code Here

Examples of no.ugland.utransprod.model.PostShipment

    /**
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent arg0) {
      PostShipment postShipment = (PostShipment) presentationModel
          .getBufferedValue(DeviationModel.PROPERTY_POST_SHIPMENT);
      if (postShipment != null && postShipment.getSent() != null) {
        Util
            .showErrorDialog(window, "Sent!",
                "Kan ikke legge til artikkel til etterlevering som er sendt!");
      } else {
        ArticleTypeViewHandler articleTypeViewHandler = new ArticleTypeViewHandler(
View Full Code Here

Examples of no.ugland.utransprod.model.PostShipment

    /**
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent arg0) {
      PostShipment postShipment = (PostShipment) presentationModel
          .getBufferedValue(DeviationModel.PROPERTY_POST_SHIPMENT);
      if (postShipment != null && postShipment.getSent() != null) {
        Util
            .showErrorDialog(window, "Sent!",
                "Kan ikke slette artikkel til etterlevering som er sendt!");
      } else {
        OrderLine orderLine = (OrderLine) orderLineSelectionList
View Full Code Here

Examples of no.ugland.utransprod.model.PostShipment

    /**
     * @see no.ugland.utransprod.gui.model.UpdateableListener#beforeAdded()
     */
    public boolean beforeAdded() {
      PostShipment postShipment = (PostShipment) presentationModel
          .getBufferedValue(DeviationModel.PROPERTY_POST_SHIPMENT);
      if (postShipment != null && postShipment.getSent() != null) {
        Util
            .showErrorDialog(window, "Sent!",
                "Kan ikke legge til artikkel til etterlevering som er sendt!");
        return false;
      }
View Full Code Here

Examples of no.ugland.utransprod.model.PostShipment

    /**
     * @see javax.swing.table.TableModel#getValueAt(int, int)
     */
    public Object getValueAt(int row, int column) {
      PostShipment postShipment = (PostShipment) getRow(row);
      switch (column) {
      case 0:
        return postShipment;
      case 1:
        return postShipment.getTransport();
      case 2:
        if (postShipment.getPostShipmentComplete() != null) {
          return 1;
        }
        return 0;
      case 3:
        return postShipment.getProductAreaGroup()
            .getProductAreaGroupName();
      case 4:
        if (postShipment.getTransport() != null) {
          return postShipment.getTransport().getLoadingDate();
        }
        return null;
      default:
        throw new IllegalStateException("Unknown column");
      }
View Full Code Here

Examples of no.ugland.utransprod.model.PostShipment

          int selectedIndex = postShipmentSelectionList
              .getSelectionIndex();
          int realIndex = tablePostShipment
              .convertRowIndexToModel(selectedIndex);
          if (realIndex != -1 && realIndex < postShipmentList.size()) {
            PostShipment postShipment = (PostShipment) postShipmentSelectionList
                .getElementAt(realIndex);
            if (postShipment != null) {
              postShipmentManager
                  .lazyLoad(
                      postShipment,
View Full Code Here

Examples of no.ugland.utransprod.model.PostShipment

      }
    } else {
      PostShipmentManager postShipmentManager = (PostShipmentManager) ModelUtil
          .getBean("postShipmentManager");

      PostShipment postShipment = postShipmentManager
          .loadById(transportable.getPostShipment()
              .getPostShipmentId());
      if (postShipment != null) {
        postShipmentSelectionList.setSelection(postShipment);
        if (postShipmentSelectionList.getSelectionIndex() < 0) {
View Full Code Here

Examples of no.ugland.utransprod.model.PostShipment

    /**
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent actionEvent) {
      PostShipment postShipment = (PostShipment) postShipmentSelectionList
          .getElementAt(tablePostShipment
              .convertRowIndexToModel(postShipmentSelectionList
                  .getSelectionIndex()));
      Util.runInThreadWheel(window.getRootPane(), new PacklistPrinter(
          window, postShipment), null);
View Full Code Here

Examples of no.ugland.utransprod.model.PostShipment

  }

  private void handleOrderLines(Deviation deviation,
      DeviationModel deviationModel, Order deviationOrder) {
    PostShipment postShipment = deviation.getPostShipment();

    ArrayListModel orderLines = deviationModel.getOrderLineArrayListModel();

    if (postShipment != null && orderLines != null
        && orderLines.size() != 0) {
      postShipment.setDeviation(deviation);
      moveOrderLinesToPostShipment(postShipment, orderLines,
          deviationOrder);
      ((DeviationManager) overviewManager).saveDeviation(deviation);
    }

    if (postShipment != null && postShipment.getOrderLines() != null
        && postShipment.getOrderLines().size() != 0) {
      savePostShipment(postShipment, deviationOrder);

    } else if (postShipment != null
        && (postShipment.getOrderLines() == null || postShipment
            .getOrderLines().size() != 0)) {
      Util
          .showErrorDialog(
              window,
              "Ingen artikler",
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.