Package com.ateam.webstore.ui.views

Examples of com.ateam.webstore.ui.views.OrderDetailsView


  /**
   * Gets the order from the session.
   * @return
   */
  public OrderDetailsView getOrderPreView() {
    OrderDetailsView odv = new OrderDetailsView(getMainView());
   
    odv.setOrder((Orders) req.getSession().getAttribute(SESSION_ATTRIBUTE_ORDER));
    odv.setItems((Collection<ItemsOrdered>) req.getSession().getAttribute(SESSION_ATTRIBUTE_ORDERED_ITEMS));
    odv.addContentView(new ContentView(JSP_ORDER_DETAILS, "Preview Your Order"));
    odv.setOrderPreview(true);
   
    return odv;
  }
View Full Code Here


    else {
      main = getMainView();
    }
   
   
    OrderDetailsView odv = new OrderDetailsView(main);
   
    if (order == null) {
      order = getOrder();
    }

    odv.setOrder(order);
    odv.setAdmin(admin);
   
    if (admin) {
      odv.setItems(order.getItemsOrdered());
    } else {
      odv.setItems((Collection<ItemsOrdered>) req.getSession().getAttribute(SESSION_ATTRIBUTE_ORDERED_ITEMS));     
    }
   

   
    odv.addContentView(new ContentView(JSP_ORDER_DETAILS, "Order "+order.getId()));
   
    return odv;
  }
View Full Code Here

TOP

Related Classes of com.ateam.webstore.ui.views.OrderDetailsView

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.