Package org.simplecart.contract.salesorder

Examples of org.simplecart.contract.salesorder.SalesOrder


     * @return SalesOrder by ID
     * @param id
     * @param lock
     */
    public SalesOrder findById(Long id, boolean lock) throws HibernateException {
        SalesOrder order = null;

        order = (SalesOrder) abstractFindById(id, lock);
        return order;
    }
View Full Code Here


       
        // create a salesOrderForm from a OrderForm
        salesOrderForm = (OrderForm) form;
       
        // find the order by ID
        SalesOrder salesOrder = loadSalesOrder (salesOrderForm.getId());
       
        // now add this collection to the request
        request.setAttribute(Constants.OBJECT_SALES_ORDER, salesOrder);
        request.setAttribute(Constants.COLLECTION_SALES_ORDER_LINE_ITEMS_KEY, salesOrder.getLineItems());
        request.setAttribute(Constants.COLLECTION_SALES_ORDER_PAYMENTS_KEY, salesOrder.getPayments());
               
        // go to display page
        return mapping.findForward(Constants.DISPLAY_PAGE_DETAIL_KEY);
       
    }
View Full Code Here

                    ActionMessages.GLOBAL_MESSAGE,
                    new ActionMessage("error.database"));
            return null;
        }
       
        SalesOrder salesOrder = null;

        try {
            // find a salesOrder object and attach to request
            salesOrder = (SalesOrder) dao.findById(id, false);
            //Hibernate.initialize(salesOrder.getProducts());
View Full Code Here

TOP

Related Classes of org.simplecart.contract.salesorder.SalesOrder

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.