use of org.mifos.accounts.fund.servicefacade.FundDto in project head by mifos.
the class EditFundsController method showFund.
@RequestMapping(method = RequestMethod.GET)
public ModelAndView showFund(HttpServletRequest request) {
ModelAndView modelAndView = new ModelAndView(FORM_VIEW);
Integer code = Integer.parseInt(request.getParameter("fundId"));
FundDto fundDto = fundServiceFacade.getFund(code.shortValue());
FundFormBean formBean = new FundFormBean();
formBean.setCodeValue(fundDto.getCode().getValue());
formBean.setCodeId(fundDto.getCode().getId());
formBean.setId(fundDto.getId());
formBean.setName(fundDto.getName());
formBean.setOldName(fundDto.getName());
modelAndView.addObject("formBean", formBean);
modelAndView.addObject("previewView", "fundPreview");
return modelAndView;
}
Aggregations