Search in sources :

Example 6 with CollectionSheetEntryFormDto

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);
}
Also used : BulkEntryActionForm(org.mifos.application.collectionsheet.struts.actionforms.BulkEntryActionForm) CollectionSheetEntryFormDto(org.mifos.application.servicefacade.CollectionSheetEntryFormDto) TransactionDemarcate(org.mifos.framework.util.helpers.TransactionDemarcate)

Example 7 with CollectionSheetEntryFormDto

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);
}
Also used : ArrayList(java.util.ArrayList) CustomerDto(org.mifos.dto.domain.CustomerDto) PersonnelDto(org.mifos.dto.domain.PersonnelDto) ListItem(org.mifos.application.servicefacade.ListItem) OfficeDetailsDto(org.mifos.dto.domain.OfficeDetailsDto) Date(java.util.Date) CollectionSheetEntryFormDto(org.mifos.application.servicefacade.CollectionSheetEntryFormDto)

Aggregations

CollectionSheetEntryFormDto (org.mifos.application.servicefacade.CollectionSheetEntryFormDto)7 TransactionDemarcate (org.mifos.framework.util.helpers.TransactionDemarcate)5 BulkEntryActionForm (org.mifos.application.collectionsheet.struts.actionforms.BulkEntryActionForm)4 ArrayList (java.util.ArrayList)2 Date (java.util.Date)2 ListItem (org.mifos.application.servicefacade.ListItem)2 CustomerDto (org.mifos.dto.domain.CustomerDto)2 OfficeDetailsDto (org.mifos.dto.domain.OfficeDetailsDto)2 PersonnelDto (org.mifos.dto.domain.PersonnelDto)2 UserContext (org.mifos.security.util.UserContext)2 CollectionSheetEntryGridDto (org.mifos.application.collectionsheet.business.CollectionSheetEntryGridDto)1 MifosCurrency (org.mifos.application.master.business.MifosCurrency)1 CollectionSheetEntryFormDtoDecorator (org.mifos.application.servicefacade.CollectionSheetEntryFormDtoDecorator)1 CollectionSheetFormEnteredDataDto (org.mifos.application.servicefacade.CollectionSheetFormEnteredDataDto)1 FormEnteredDataAssembler (org.mifos.application.servicefacade.FormEnteredDataAssembler)1