Search in sources :

Example 11 with DashboardDetailDto

use of org.mifos.dto.domain.DashboardDetailDto in project head by mifos.

the class DashboardDetailsController method showTotalBorowersGroup.

@RequestMapping(value = "/viewTotalBorrowersGroupDBDetails", method = RequestMethod.GET)
public ModelAndView showTotalBorowersGroup(HttpServletRequest request, HttpServletResponse response) {
    ModelAndView modelAndView = getCustomerModelAndView();
    List<DashboardDetailDto> loans = (List<DashboardDetailDto>) dashboardServiceFacade.getBorrowersGroup(0, 10, null);
    modelAndView.addObject("totalSize", dashboardServiceFacade.countBorrowersGroup());
    modelAndView.addObject("dashboardDetails", loans);
    modelAndView.addObject("ajaxUrl", "totalBorrowersGroupDBDetailsAjax.ftl");
    return modelAndView;
}
Also used : DashboardDetailDto(org.mifos.dto.domain.DashboardDetailDto) ModelAndView(org.springframework.web.servlet.ModelAndView) List(java.util.List) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 12 with DashboardDetailDto

use of org.mifos.dto.domain.DashboardDetailDto in project head by mifos.

the class DashboardDetailsController method showActiveClients.

@RequestMapping(value = "/viewActiveClientsDBDetails", method = RequestMethod.GET)
public ModelAndView showActiveClients(HttpServletRequest request, HttpServletResponse response) {
    ModelAndView modelAndView = getCustomerModelAndView();
    List<DashboardDetailDto> loans = (List<DashboardDetailDto>) dashboardServiceFacade.getActiveClients(0, 10, null);
    modelAndView.addObject("totalSize", dashboardServiceFacade.countOfActiveClients());
    modelAndView.addObject("dashboardDetails", loans);
    modelAndView.addObject("ajaxUrl", "activeClientsDBDetailsAjax.ftl");
    return modelAndView;
}
Also used : DashboardDetailDto(org.mifos.dto.domain.DashboardDetailDto) ModelAndView(org.springframework.web.servlet.ModelAndView) List(java.util.List) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

DashboardDetailDto (org.mifos.dto.domain.DashboardDetailDto)12 List (java.util.List)8 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)8 ModelAndView (org.springframework.web.servlet.ModelAndView)8 ArrayList (java.util.ArrayList)4 LoanBO (org.mifos.accounts.loan.business.LoanBO)1 CenterBO (org.mifos.customers.center.business.CenterBO)1 ClientBO (org.mifos.customers.client.business.ClientBO)1 GroupBO (org.mifos.customers.group.business.GroupBO)1