Package de.xanders.data.customer.dao

Examples of de.xanders.data.customer.dao.SalesOrder


    /**
     * @see SalesOrderService#getSalesOrderById(java.lang.Long)
     */
    protected SalesOrderVO handleGetSalesOrderById(java.lang.Long salesOrderId)
        throws java.lang.Exception {
      SalesOrder salesOrder = this.getSalesOrderDao().load(salesOrderId);
      SalesOrderVO salesOrderVO = this.getSalesOrderDao().toSalesOrderVO(salesOrder);
      CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
      salesOrderVO.setCustAccountVO(custAccountService.toCustAccountVO(salesOrder.getCustAccount()));
      return salesOrderVO;                 
    }
View Full Code Here


        throws java.lang.Exception {
      List list = new ArrayList();
        Collection salesOrderCollection = this.getSalesOrderDao().findByCriteria(salesOrderCriteria);
        Iterator iterator = salesOrderCollection.iterator();
        while (iterator.hasNext()) {
          SalesOrder salesOrder = (SalesOrder) iterator.next();
          SalesOrderVO salesOrderVO = this.getSalesOrderDao().toSalesOrderVO(salesOrder);
          CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
          salesOrderVO.setCustAccountVO(custAccountService.toCustAccountVO(salesOrder.getCustAccount()));
          list.add(salesOrderVO);
        }
        return list;  
    }
View Full Code Here

    /**
     * @see SalesOrderService#saveSalesOrder(SalesOrderVO)
     */
    protected SalesOrderVO handleSaveSalesOrder(SalesOrderVO salesOrderVO)
        throws java.lang.Exception {
      SalesOrder salesOrder = this.getSalesOrderDao().salesOrderVOToEntity(salesOrderVO);
        if (salesOrder.getSalesOrderId() == null) {
            salesOrder = this.getSalesOrderDao().create(salesOrder);
            salesOrderVO.setSalesOrderId(salesOrder.getSalesOrderId());
        }
        else {
            this.getSalesOrderDao().update(salesOrder);           
        }
        return salesOrderVO;
View Full Code Here

TOP

Related Classes of de.xanders.data.customer.dao.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.