Package com.emc.plants.pojo.beans

Examples of com.emc.plants.pojo.beans.BackOrderItem


   * @param backOrderID
   * @return BackOrderItem
   */
  public BackOrderItem findByID(long backOrderID)
  {
    BackOrderItem backOrderItem = null;
    /*
     try
     { */
    Util.debug("BackOrderStockBean.findByID() - Entered");
    // BackOrderLocal backOrder = getBackOrderLocalHome().findByPrimaryKey(new BackOrderKey(backOrderID));
    BackOrder backOrder = em.find(BackOrder.class, backOrderID);
    backOrderItem = new BackOrderItem(backOrder);
    /*
     }
     catch (Exception e)
     {
     Util.debug("BackOrderStockBean.findByID() - Exception: " + e);
View Full Code Here


     {
     Util.debug("BackOrderStockBean.findBackOrderItems() - Exception: " + e);
     }
     */
    for (Object o : backOrders) {
      BackOrderItem bi = new BackOrderItem((BackOrder)o);
      backOrderItems.add(bi);
    }
    return backOrderItems;
  }
View Full Code Here

            Collection backOrderItems = backOrderStock.findBackOrderItems();
            if (backOrderItems != null) {
                Util.debug("AdminServlet.getBackOrders() - BackOrders found!");
                Iterator i = backOrderItems.iterator();
                while (i.hasNext()) {
                    BackOrderItem backOrderItem = (BackOrderItem) i.next();
                    long backOrderID = backOrderItem.getBackOrderID();
                    String inventoryID = backOrderItem.getInventory().getInventoryId();
                    // Get the inventory quantity and name for the back order item information.
                    Inventory item = catalog.getItemInventory(inventoryID);
                    int quantity = item.getQuantity();
                    backOrderItem.setInventoryQuantity(quantity);
                    String name = item.getName();
                    // catalog.remove();
                    backOrderItem.setName(name);
                    // Don't include backorders that have been completed.
                    if (!(backOrderItem.getStatus().equals(Util.STATUS_ADDEDSTOCK))) {
                        String invID = backOrderItem.getInventory().getInventoryId();
                        String supplierOrderID = backOrderItem.getSupplierOrderID();
                        String status = backOrderItem.getStatus();
                        String lowDate = new Long(backOrderItem.getLowDate()).toString();
                        String orderDate = new Long(backOrderItem.getOrderDate()).toString();
                        Util.debug("AdminServlet.getBackOrders() - backOrderID = " + backOrderID);
                        Util.debug("AdminServlet.getBackOrders() -    supplierOrderID = " + supplierOrderID);
                        Util.debug("AdminServlet.getBackOrders() -    invID = " + invID);
                        Util.debug("AdminServlet.getBackOrders() -    name = " + name);
                        Util.debug("AdminServlet.getBackOrders() -    quantity = " + quantity);
View Full Code Here

            Collection<BackOrderItem> backOrderItems = backOrderStock.findBackOrderItems();
            if (backOrderItems != null) {
                logger.debug("AdminController.getBackOrders() - BackOrders found!");
                Iterator<BackOrderItem> i = backOrderItems.iterator();
                while (i.hasNext()) {
                    BackOrderItem backOrderItem = (BackOrderItem) i.next();
                    long backOrderID = backOrderItem.getBackOrderID();
                    String inventoryID = backOrderItem.getInventory().getInventoryId();
                    // Get the inventory quantity and name for the back order item information.
                    Inventory item = catalog.getItemInventory(inventoryID);
                    int quantity = item.getQuantity();
                    backOrderItem.setInventoryQuantity(quantity);
                    String name = item.getName();
                    // catalog.remove();
                    backOrderItem.setName(name);
                    // Don't include backorders that have been completed.
                    if (!(backOrderItem.getStatus().equals(Util.STATUS_ADDEDSTOCK))) {
                        String invID = backOrderItem.getInventory().getInventoryId();
                        String supplierOrderID = backOrderItem.getSupplierOrderID();
                        String status = backOrderItem.getStatus();
                        String lowDate = new Long(backOrderItem.getLowDate()).toString();
                        String orderDate = new Long(backOrderItem.getOrderDate()).toString();
                        logger.debug("AdminController.getBackOrders() - backOrderID = " + backOrderID);
                        logger.debug("AdminController.getBackOrders() - supplierOrderID = " + supplierOrderID);
                        logger.debug("AdminController.getBackOrders() -    invID = " + invID);
                        logger.debug("AdminController.getBackOrders() -    name = " + name);
                        logger.debug("AdminController.getBackOrders() -    quantity = " + quantity);
View Full Code Here

TOP

Related Classes of com.emc.plants.pojo.beans.BackOrderItem

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.