Search in sources :

Example 11 with IncludePage

use of freemarker.ext.servlet.IncludePage in project head by mifos.

the class ViewLoanAccountDetailsController method showLoanAccountTransactionHistory.

@RequestMapping(value = "/viewLoanAccountTransactionHistory", method = RequestMethod.GET)
public ModelAndView showLoanAccountTransactionHistory(HttpServletRequest request, HttpServletResponse response) {
    ModelAndView modelAndView = new ModelAndView();
    sitePreferenceHelper.resolveSiteType(modelAndView, "viewLoanAccountTransactionHistory", request);
    modelAndView.addObject("include_page", new IncludePage(request, response));
    String globalAccountNum = request.getParameter("globalAccountNum");
    LoanInformationDto loanInformationDto = loanAccountServiceFacade.retrieveLoanInformation(globalAccountNum);
    modelAndView.addObject("loanInformationDto", loanInformationDto);
    AccountingConfigurationDto configurationDto = this.configurationServiceFacade.getAccountingConfiguration();
    modelAndView.addObject("GLCodeMode", configurationDto.getGlCodeMode());
    List<TransactionHistoryDto> transactionHistoryDto = this.centerServiceFacade.retrieveAccountTransactionHistory(globalAccountNum);
    request.setAttribute("trxnHistoryList", transactionHistoryDto);
    return modelAndView;
}
Also used : AccountingConfigurationDto(org.mifos.config.servicefacade.dto.AccountingConfigurationDto) ModelAndView(org.springframework.web.servlet.ModelAndView) IncludePage(freemarker.ext.servlet.IncludePage) LoanInformationDto(org.mifos.dto.screen.LoanInformationDto) TransactionHistoryDto(org.mifos.dto.screen.TransactionHistoryDto) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 12 with IncludePage

use of freemarker.ext.servlet.IncludePage in project head by mifos.

the class ViewLoanAccountDetailsController method showLoanAccountNextInstallmentDetails.

@RequestMapping(value = "/viewLoanAccountNextInstallmentDetails", method = RequestMethod.GET)
public ModelAndView showLoanAccountNextInstallmentDetails(HttpServletRequest request, HttpServletResponse response) {
    ModelAndView modelAndView = new ModelAndView();
    sitePreferenceHelper.resolveSiteType(modelAndView, "viewLoanAccountNextInstallmentDetails", request);
    modelAndView.addObject("include_page", new IncludePage(request, response));
    String globalAccountNum = request.getParameter("globalAccountNum");
    LoanInformationDto loanInformationDto = loanAccountServiceFacade.retrieveLoanInformation(globalAccountNum);
    LoanInstallmentDetailsDto loanInstallmentDetailsDto = this.loanAccountServiceFacade.retrieveInstallmentDetails(loanInformationDto.getAccountId());
    modelAndView.addObject("loanInformationDto", loanInformationDto);
    modelAndView.addObject("loanInstallmentDetailsDto", loanInstallmentDetailsDto);
    this.loanAccountServiceFacade.putLoanBusinessKeyInSession(globalAccountNum, request);
    return modelAndView;
}
Also used : ModelAndView(org.springframework.web.servlet.ModelAndView) IncludePage(freemarker.ext.servlet.IncludePage) LoanInformationDto(org.mifos.dto.screen.LoanInformationDto) LoanInstallmentDetailsDto(org.mifos.dto.domain.LoanInstallmentDetailsDto) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 13 with IncludePage

use of freemarker.ext.servlet.IncludePage in project head by mifos.

the class ClientsAndAccountsPageController method showClientsAndAccounts.

@RequestMapping(value = "/clientsAndAccounts", method = { RequestMethod.POST, RequestMethod.GET })
public ModelAndView showClientsAndAccounts(HttpServletRequest request, HttpServletResponse response, @ModelAttribute("customerSearch") CustomerSearchFormBean customerSearchFormBean, @RequestParam(required = false) Short officeId, @RequestParam(required = false) Short loanOfficerId) {
    ModelAndView modelAndView = new ModelAndView();
    modelAndView.addObject("include_page", new IncludePage(request, response));
    boolean isCenterHierarchyExists = configurationServiceFacade.getBooleanConfig("ClientRules.CenterHierarchyExists");
    modelAndView.addObject("isCenterHierarchyExists", isCenterHierarchyExists);
    if (officeId == null && loanOfficerId == null) {
        modelAndView = showClientsAndAccountsMainSearch(request, customerSearchFormBean, modelAndView);
    } else {
        if (loanOfficerId == null) {
            modelAndView = showClientsAndAccountsBranchSearch(request, customerSearchFormBean, modelAndView, officeId);
        } else {
            modelAndView = showClientsAndAccountsBranchSearchLoanOfficer(request, customerSearchFormBean, modelAndView, officeId, loanOfficerId);
        }
    }
    return modelAndView;
}
Also used : ModelAndView(org.springframework.web.servlet.ModelAndView) IncludePage(freemarker.ext.servlet.IncludePage) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 14 with IncludePage

use of freemarker.ext.servlet.IncludePage in project head by mifos.

the class SavingsAccountController method showSavingsAccountDepositDueDetails.

@RequestMapping(value = "/viewSavingsAccountDepositDueDetails", method = RequestMethod.GET)
public ModelAndView showSavingsAccountDepositDueDetails(HttpServletRequest request, HttpServletResponse response) {
    ModelAndView modelAndView = new ModelAndView();
    sitePreferenceHelper.resolveSiteType(modelAndView, "viewSavingsAccountDepositDueDetails", request);
    modelAndView.addObject("include_page", new IncludePage(request, response));
    String globalAccountNum = request.getParameter("globalAccountNum");
    SavingsAccountDetailDto savingsAccountDetailDto = savingsServiceFacade.retrieveSavingsAccountDetails(globalAccountNum);
    modelAndView.addObject("savingsAccountDetailDto", savingsAccountDetailDto);
    savingsServiceFacade.putSavingsBusinessKeyInSession(globalAccountNum, request);
    return modelAndView;
}
Also used : ModelAndView(org.springframework.web.servlet.ModelAndView) IncludePage(freemarker.ext.servlet.IncludePage) SavingsAccountDetailDto(org.mifos.dto.domain.SavingsAccountDetailDto) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 15 with IncludePage

use of freemarker.ext.servlet.IncludePage in project head by mifos.

the class SavingsAccountController method showSavingsAccountTransactionHistory.

@RequestMapping(value = "/viewSavingsAccountTransactionHistory", method = RequestMethod.GET)
public ModelAndView showSavingsAccountTransactionHistory(HttpServletRequest request, HttpServletResponse response) {
    ModelAndView modelAndView = new ModelAndView();
    sitePreferenceHelper.resolveSiteType(modelAndView, "viewSavingsAccountTransactionHistory", request);
    modelAndView.addObject("include_page", new IncludePage(request, response));
    String globalAccountNum = request.getParameter("globalAccountNum");
    SavingsAccountDetailDto savingsAccountDetailDto = savingsServiceFacade.retrieveSavingsAccountDetails(globalAccountNum);
    modelAndView.addObject("savingsAccountDetailDto", savingsAccountDetailDto);
    List<SavingsTransactionHistoryDto> savingsTransactionHistoryViewList = this.savingsServiceFacade.retrieveTransactionHistory(globalAccountNum);
    request.setAttribute("trxnHistoryList", savingsTransactionHistoryViewList);
    savingsServiceFacade.putSavingsBusinessKeyInSession(globalAccountNum, request);
    return modelAndView;
}
Also used : ModelAndView(org.springframework.web.servlet.ModelAndView) IncludePage(freemarker.ext.servlet.IncludePage) SavingsTransactionHistoryDto(org.mifos.dto.screen.SavingsTransactionHistoryDto) SavingsAccountDetailDto(org.mifos.dto.domain.SavingsAccountDetailDto) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

IncludePage (freemarker.ext.servlet.IncludePage)15 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)15 ModelAndView (org.springframework.web.servlet.ModelAndView)15 LoanInformationDto (org.mifos.dto.screen.LoanInformationDto)6 SavingsAccountDetailDto (org.mifos.dto.domain.SavingsAccountDetailDto)4 Date (java.util.Date)3 LoanActivityDto (org.mifos.dto.domain.LoanActivityDto)2 OriginalScheduleInfoDto (org.mifos.dto.domain.OriginalScheduleInfoDto)2 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 AccountingConfigurationDto (org.mifos.config.servicefacade.dto.AccountingConfigurationDto)1 CenterInformationDto (org.mifos.dto.domain.CenterInformationDto)1 LoanAccountDetailsDto (org.mifos.dto.domain.LoanAccountDetailsDto)1 LoanInstallmentDetailsDto (org.mifos.dto.domain.LoanInstallmentDetailsDto)1 UserDetailDto (org.mifos.dto.domain.UserDetailDto)1 ValueListElement (org.mifos.dto.domain.ValueListElement)1 ClientInformationDto (org.mifos.dto.screen.ClientInformationDto)1 CustomerStatusDetailDto (org.mifos.dto.screen.CustomerStatusDetailDto)1 GroupInformationDto (org.mifos.dto.screen.GroupInformationDto)1 SavingsRecentActivityDto (org.mifos.dto.screen.SavingsRecentActivityDto)1