Examples of PostShipmentManager


Examples of no.ugland.utransprod.service.PostShipmentManager

   * @param window
   */
  @SuppressWarnings("unchecked")
  void changeBeanPostShipment(WindowInterface window) {
    try {
      PostShipmentManager postShipmentManager = (PostShipmentManager) ModelUtil
          .getBean("postShipmentManager");
      orderSelectionList.clearSelection();
      orderLineSelectionList.clearSelection();
      if (!refreshing) {
        checkBuffering(window);
        ownOrderLineList.clear();
        if (orderComments.size() != 0) {
          orderComments.clear();
        }
        if (postShipmentSelectionList.hasSelection()) {

          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,
                      new LazyLoadPostShipmentEnum[] {
                          LazyLoadPostShipmentEnum.COLLIES,
                          LazyLoadPostShipmentEnum.ORDER_LINES,
View Full Code Here

Examples of no.ugland.utransprod.service.PostShipmentManager

      } else {
        Util.showMsgDialog(window.getComponent(), "Fant ikke ordre",
            "Ordre med ble ikke funnet");
      }
    } 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.service.PostShipmentManager

  }

  private void savePostShipment(PostShipment postShipment,
      Order deviationOrder) {
    PostShipmentManager postShipmentManager = (PostShipmentManager) ModelUtil
        .getBean("postShipmentManager");
    postShipment.setOrder(deviationOrder);
    postShipment.cacheComments();
    postShipmentManager.savePostShipment(postShipment);
  }
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.