Search in sources :

Example 1 with NoteSearchDto

use of org.mifos.dto.domain.NoteSearchDto in project head by mifos.

the class NotesAction method getSearchResult.

@Override
protected QueryResult getSearchResult(ActionForm form) throws Exception {
    Integer accountId = Integer.valueOf(((NotesActionForm) form).getAccountId());
    AccountBO account = new AccountBusinessService().getAccount(accountId);
    if (account.isSavingsAccount()) {
        NoteSearchDto noteSearchDto = new NoteSearchDto(accountId, Integer.valueOf(1), Integer.valueOf(10));
        NotesSearchResultsDto noteResults = this.savingsServiceFacade.retrievePagedNotesDto(noteSearchDto);
    }
    return legacyAccountDao.getAllAccountNotes(accountId);
}
Also used : AccountBO(org.mifos.accounts.business.AccountBO) AccountBusinessService(org.mifos.accounts.business.service.AccountBusinessService) NoteSearchDto(org.mifos.dto.domain.NoteSearchDto) NotesSearchResultsDto(org.mifos.dto.screen.NotesSearchResultsDto)

Aggregations

AccountBO (org.mifos.accounts.business.AccountBO)1 AccountBusinessService (org.mifos.accounts.business.service.AccountBusinessService)1 NoteSearchDto (org.mifos.dto.domain.NoteSearchDto)1 NotesSearchResultsDto (org.mifos.dto.screen.NotesSearchResultsDto)1