use of org.mifos.dto.screen.ProductDisplayDto in project head by mifos.
the class SavingsProductController method showAllSavingsProducts.
@RequestMapping(method = RequestMethod.GET)
public ModelAndView showAllSavingsProducts() {
ModelAndView modelAndView = new ModelAndView("viewSavingsProducts");
List<ProductDisplayDto> productDto = adminServiceFacade.retrieveSavingsProducts();
modelAndView.addObject("products", productDto);
return modelAndView;
}
use of org.mifos.dto.screen.ProductDisplayDto in project head by mifos.
the class AdminServiceFacadeWebTier method productsToDto.
private List<ProductDisplayDto> productsToDto(final List<Object[]> queryResult) {
List<ProductDisplayDto> products = new ArrayList<ProductDisplayDto>();
Short prdOfferingId;
String prdOfferingName;
Short prdOfferingStatusId;
String prdOfferingStatusName;
for (Object[] row : queryResult) {
prdOfferingId = (Short) row[0];
prdOfferingName = (String) row[1];
prdOfferingStatusId = (Short) row[2];
prdOfferingStatusName = (String) row[3];
ProductDisplayDto product = new ProductDisplayDto(prdOfferingId, prdOfferingName, prdOfferingStatusId, prdOfferingStatusName);
products.add(product);
}
return products;
}
Aggregations