Search in sources :

Example 6 with FundDto

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;
}
Also used : ModelAndView(org.springframework.web.servlet.ModelAndView) FundDto(org.mifos.accounts.fund.servicefacade.FundDto) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

FundDto (org.mifos.accounts.fund.servicefacade.FundDto)6 ArrayList (java.util.ArrayList)3 BigDecimal (java.math.BigDecimal)2 LocalDate (org.joda.time.LocalDate)2 LoanOfferingBO (org.mifos.accounts.productdefinition.business.LoanOfferingBO)2 CustomerBO (org.mifos.customers.business.CustomerBO)2 ValueListElement (org.mifos.dto.domain.ValueListElement)2 LoanCreationLoanDetailsDto (org.mifos.dto.screen.LoanCreationLoanDetailsDto)2 BusinessRuleException (org.mifos.service.BusinessRuleException)2 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)2 ModelAndView (org.springframework.web.servlet.ModelAndView)2 Date (java.util.Date)1 LinkedHashMap (java.util.LinkedHashMap)1 HSSFRichTextString (org.apache.poi.hssf.usermodel.HSSFRichTextString)1 HSSFRow (org.apache.poi.hssf.usermodel.HSSFRow)1 HSSFSheet (org.apache.poi.hssf.usermodel.HSSFSheet)1 HSSFWorkbook (org.apache.poi.hssf.usermodel.HSSFWorkbook)1 Row (org.apache.poi.ss.usermodel.Row)1 AccountException (org.mifos.accounts.exceptions.AccountException)1 AmountFeeBO (org.mifos.accounts.fees.business.AmountFeeBO)1