use of org.mifos.ui.core.controller.AdminBreadcrumbBuilder in project head by mifos.
the class AccountingDataController method confirmExportsDelete.
@RequestMapping("confirmExportsDelete.ftl")
public final ModelAndView confirmExportsDelete() {
ModelAndView mav = new ModelAndView("confirmExportsDelete");
List<BreadCrumbsLinks> breadcrumbs = new AdminBreadcrumbBuilder().withLink("accounting.viewaccountingexports", "confirmExportsDelete.ftl").build();
mav.addObject("breadcrumbs", breadcrumbs);
return mav;
}
use of org.mifos.ui.core.controller.AdminBreadcrumbBuilder in project head by mifos.
the class AccountingDataController method showAccountingDataFor.
@RequestMapping("renderAccountingData.ftl")
public final ModelAndView showAccountingDataFor(@RequestParam(value = FROM_DATE) String paramFromDate, @RequestParam(value = TO_DATE) String paramToDate) {
DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyy-MM-dd");
LocalDate fromDate = fmt.parseDateTime(paramFromDate).toLocalDate();
LocalDate toDate = fmt.parseDateTime(paramToDate).toLocalDate();
Boolean hasAlreadyRanQuery = Boolean.FALSE;
String fileName = null;
List<AccountingDto> accountingData = new ArrayList<AccountingDto>();
try {
fileName = accountingService.getExportOutputFileName(fromDate, toDate).replace(".xml", "");
hasAlreadyRanQuery = accountingService.hasAlreadyRanQuery(fromDate, toDate);
accountingData = accountingService.getExportDetails(fromDate, toDate);
} catch (Exception e) {
LOGGER.error(e.getMessage(), e);
}
ModelAndView mav = new ModelAndView("renderAccountingData");
List<BreadCrumbsLinks> breadcrumbs = new AdminBreadcrumbBuilder().withLink("accounting.viewaccountingexports", "renderAccountingDataCacheInfo.ftl").withLink(fileName, "").build();
mav.addObject("breadcrumbs", breadcrumbs);
mav.addObject("accountingData", accountingData);
mav.addObject("hasAlreadyRanQuery", hasAlreadyRanQuery);
mav.addObject("fileName", fileName);
mav.addObject("fromDate", fromDate);
mav.addObject("toDate", toDate);
return mav;
}
use of org.mifos.ui.core.controller.AdminBreadcrumbBuilder in project head by mifos.
the class AccountingDataController method listAllExports.
@RequestMapping("renderAccountingDataCacheInfo.ftl")
public final ModelAndView listAllExports() {
List<BreadCrumbsLinks> breadcrumbs = new AdminBreadcrumbBuilder().withLink("accounting.viewaccountingexports", "renderAccountingDataCacheInfo.ftl").build();
ModelAndView mav = new ModelAndView("renderAccountingDataCacheInfo");
mav.addObject("breadcrumbs", breadcrumbs);
mav.addObject("numberDaysFromStartOfFinancialTransactions", accountingService.getNumberDaysFromStartOfFinancialTransactions());
return mav;
}
use of org.mifos.ui.core.controller.AdminBreadcrumbBuilder in project head by mifos.
the class ApprovalController method list.
@RequestMapping("restApprovalList.ftl")
public ModelAndView list() {
ModelAndView mav = new ModelAndView("approval/list");
List<BreadCrumbsLinks> breadcrumbs = new AdminBreadcrumbBuilder().withLink("View REST Approval List", "").build();
mav.addObject("isApprovalRequired", RESTConfigKey.isApprovalRequired(configurationServiceFacade));
mav.addObject("breadcrumbs", breadcrumbs);
mav.addObject("waitingForApprovalList", approvalService.getAllWaiting());
mav.addObject("approvedList", approvalService.getAllNotWaiting());
return mav;
}
Aggregations