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;
}