Package com.ateam.webstore.ui.views

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


    return opf;
  }
 
  public OrderListView getCustomerOrders() {
   
    OrderListView olv = new OrderListView(getMainView());
   
    String title = null;
//    if (inProgressOnly) {
//      title = "Orders in Progress";
//      olv.setOrders(service.getOrdersInProgress());
//    }
//    else {
//      title = "All Orders";
//      olv.setOrders(service.getAll()); 
//    }
    Visitor v = (Visitor) req.getSession().getAttribute(SESSION_ATTRIBUTE_VISITOR);
    title = "All Orders";
    olv.setOrders(service.getByCustomerId(v.getCustomer().getId()))
   
    olv.addContentView(new ContentView(JSP_ORDER_LIST, title));
    return olv;
  }
View Full Code Here


//      main = getMainView();
//    }

    main = getMainAdminView();
   
    OrderListView olv = new OrderListView(main);
   
    String title = null;
    if (inProgressOnly) {
      title = "Orders in Progress";
      olv.setOrders(service.getOrdersInProgress());
    }
    else {
      title = "All Orders";
      olv.setOrders(service.getAll())
    }
   
   
    olv.addContentView(new ContentView(JSP_ORDER_LIST, title));
    return olv;
  }
View Full Code Here

TOP

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

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.