use of org.mifos.application.servicefacade.CollectionSheetEntryFormDto in project head by mifos.
the class CollectionSheetEntryAction method loadCustomerList.
@TransactionDemarcate(joinToken = true)
public ActionForward loadCustomerList(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request, final HttpServletResponse response) throws Exception {
final BulkEntryActionForm bulkEntryActionForm = (BulkEntryActionForm) form;
final Short personnelId = Short.valueOf(bulkEntryActionForm.getLoanOfficerId());
final Short officeId = Short.valueOf(bulkEntryActionForm.getOfficeId());
final CollectionSheetEntryFormDto previousCollectionSheetEntryFormDto = retrieveFromRequestCollectionSheetEntryFormDto(request);
final CollectionSheetEntryFormDto latestCollectionSheetEntryFormDto = collectionSheetServiceFacade.loadCustomersForBranchAndLoanOfficer(personnelId, officeId, previousCollectionSheetEntryFormDto);
// add reference data for view
storeOnRequestCollectionSheetEntryFormDto(request, latestCollectionSheetEntryFormDto);
return mapping.findForward(CollectionSheetEntryConstants.LOADSUCCESS);
}
use of org.mifos.application.servicefacade.CollectionSheetEntryFormDto in project head by mifos.
the class BulkEntryActionStrutsTest method createDefaultCollectionSheetDto.
private CollectionSheetEntryFormDto createDefaultCollectionSheetDto() {
List<OfficeDetailsDto> activeBranches = new ArrayList<OfficeDetailsDto>();
List<ListItem<Short>> paymentTypesDtoList = new ArrayList<ListItem<Short>>();
List<CustomerDto> customerList = new ArrayList<CustomerDto>();
List<PersonnelDto> loanOfficerList = new ArrayList<PersonnelDto>();
final Short reloadFormAutomatically = Constants.YES;
final Short backDatedTransactionAllowed = Constants.NO;
final Short centerHierarchyExists = Constants.YES;
final Date meetingDate = new Date();
return new CollectionSheetEntryFormDto(activeBranches, paymentTypesDtoList, loanOfficerList, customerList, reloadFormAutomatically, centerHierarchyExists, backDatedTransactionAllowed, meetingDate);
}
Aggregations