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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations