use of org.springframework.web.servlet.ModelAndView in project head by mifos.
the class DashboardDetailsController method showActiveGroups.
@RequestMapping(value = "/viewActiveGroupsDBDetails", method = RequestMethod.GET)
public ModelAndView showActiveGroups(HttpServletRequest request, HttpServletResponse response) {
ModelAndView modelAndView = getCustomerModelAndView();
List<DashboardDetailDto> loans = (List<DashboardDetailDto>) dashboardServiceFacade.getActiveGroups(0, 10, null);
modelAndView.addObject("totalSize", dashboardServiceFacade.countOfActiveGroups());
modelAndView.addObject("dashboardDetails", loans);
modelAndView.addObject("ajaxUrl", "activeGroupsDBDetailsAjax.ftl");
return modelAndView;
}
use of org.springframework.web.servlet.ModelAndView in project head by mifos.
the class DashboardDetailsController method getAjaxCustomerModelAndView.
private ModelAndView getAjaxCustomerModelAndView(String sEcho, Integer iDisplayStart, Integer iDisplayLength) {
ModelAndView modelAndView = getCustomerModelAndView();
modelAndView.setViewName("viewDashboardDetailsAjax");
modelAndView.setViewName("viewDashboardDetailsAjax");
if (sEcho != null) {
modelAndView.addObject("sEcho", sEcho);
}
modelAndView.addObject("iDisplayStart", iDisplayStart);
modelAndView.addObject("iDisplayLength", iDisplayLength);
modelAndView.addObject("iLength", iDisplayLength);
return modelAndView;
}
use of org.springframework.web.servlet.ModelAndView in project head by mifos.
the class DashboardDetailsController method showTotalBorowers.
@RequestMapping(value = "/viewTotalBorrowersDBDetails", method = RequestMethod.GET)
public ModelAndView showTotalBorowers(HttpServletRequest request, HttpServletResponse response) {
ModelAndView modelAndView = getCustomerModelAndView();
List<DashboardDetailDto> loans = (List<DashboardDetailDto>) dashboardServiceFacade.getBorrowers(0, 10, null);
modelAndView.addObject("totalSize", dashboardServiceFacade.countBorrowers());
modelAndView.addObject("dashboardDetails", loans);
modelAndView.addObject("ajaxUrl", "totalBorrowersDBDetailsAjax.ftl");
return modelAndView;
}
use of org.springframework.web.servlet.ModelAndView in project head by mifos.
the class DashboardDetailsController method getActiveClientsAjax.
@RequestMapping(value = "/activeClientsDBDetailsAjax", method = RequestMethod.GET)
public ModelAndView getActiveClientsAjax(HttpServletRequest request, HttpServletResponse response, @RequestParam(required = false) String sEcho, @RequestParam Integer iDisplayStart, @RequestParam Integer iDisplayLength, @RequestParam Integer iSortCol_0, @RequestParam String sSortDir_0) {
ModelAndView modelAndView = getAjaxCustomerModelAndView(sEcho, iDisplayStart, iDisplayLength);
modelAndView.addObject("dashboardDetails", dashboardServiceFacade.getActiveClients(iDisplayStart, iDisplayLength, getCustomerOrdering(iSortCol_0, sSortDir_0)));
modelAndView.addObject("totalSize", dashboardServiceFacade.countOfActiveClients());
return modelAndView;
}
use of org.springframework.web.servlet.ModelAndView in project head by mifos.
the class DashboardDetailsController method getActiveCentersAjax.
@RequestMapping(value = "/activeCentersDBDetailsAjax", method = RequestMethod.GET)
public ModelAndView getActiveCentersAjax(HttpServletRequest request, HttpServletResponse response, @RequestParam(required = false) String sEcho, @RequestParam Integer iDisplayStart, @RequestParam Integer iDisplayLength, @RequestParam Integer iSortCol_0, @RequestParam String sSortDir_0) {
ModelAndView modelAndView = getAjaxCustomerModelAndView(sEcho, iDisplayStart, iDisplayLength);
modelAndView.addObject("dashboardDetails", dashboardServiceFacade.getActiveCenters(iDisplayStart, iDisplayLength, getCustomerOrdering(iSortCol_0, sSortDir_0)));
modelAndView.addObject("totalSize", dashboardServiceFacade.countOfActiveCenters());
return modelAndView;
}
Aggregations