Search in sources :

Example 1 with CollectionSheetEntryFormDtoDecorator

use of org.mifos.application.servicefacade.CollectionSheetEntryFormDtoDecorator in project head by mifos.

the class CollectionSheetEntryAction method get.

/**
     * This method is called once the search criteria have been entered by the user to generate the bulk entry details
     * for a particular customer It retrieves the loan officer office, and parent customer that was selected and sets
     * them into the bulk entry business object. The list of attendance types and product list associated with the
     * center, and its children are also retrieved
     */
@TransactionDemarcate(joinToken = true)
public ActionForward get(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request, final HttpServletResponse response) throws Exception {
    logTrackingInfo("get", request, form);
    final BulkEntryActionForm collectionSheetEntryActionForm = (BulkEntryActionForm) form;
    final CollectionSheetEntryFormDto previousCollectionSheetEntryFormDto = retrieveFromRequestCollectionSheetEntryFormDto(request);
    final CollectionSheetEntryFormDtoDecorator dtoDecorator = new CollectionSheetEntryFormDtoDecorator(previousCollectionSheetEntryFormDto);
    final CollectionSheetFormEnteredDataDto formEnteredDataDto = new FormEnteredDataAssembler(collectionSheetEntryActionForm, dtoDecorator).toDto();
    final MifosCurrency currency = Configuration.getInstance().getSystemConfig().getCurrency();
    final CollectionSheetEntryGridDto collectionSheetEntry = collectionSheetServiceFacade.generateCollectionSheetEntryGridView(formEnteredDataDto, currency);
    storeOnRequestCollectionSheetEntryDto(request, collectionSheetEntry);
    return mapping.findForward(CollectionSheetEntryConstants.GETSUCCESS);
}
Also used : BulkEntryActionForm(org.mifos.application.collectionsheet.struts.actionforms.BulkEntryActionForm) FormEnteredDataAssembler(org.mifos.application.servicefacade.FormEnteredDataAssembler) CollectionSheetFormEnteredDataDto(org.mifos.application.servicefacade.CollectionSheetFormEnteredDataDto) CollectionSheetEntryFormDtoDecorator(org.mifos.application.servicefacade.CollectionSheetEntryFormDtoDecorator) MifosCurrency(org.mifos.application.master.business.MifosCurrency) CollectionSheetEntryFormDto(org.mifos.application.servicefacade.CollectionSheetEntryFormDto) CollectionSheetEntryGridDto(org.mifos.application.collectionsheet.business.CollectionSheetEntryGridDto) TransactionDemarcate(org.mifos.framework.util.helpers.TransactionDemarcate)

Aggregations

CollectionSheetEntryGridDto (org.mifos.application.collectionsheet.business.CollectionSheetEntryGridDto)1 BulkEntryActionForm (org.mifos.application.collectionsheet.struts.actionforms.BulkEntryActionForm)1 MifosCurrency (org.mifos.application.master.business.MifosCurrency)1 CollectionSheetEntryFormDto (org.mifos.application.servicefacade.CollectionSheetEntryFormDto)1 CollectionSheetEntryFormDtoDecorator (org.mifos.application.servicefacade.CollectionSheetEntryFormDtoDecorator)1 CollectionSheetFormEnteredDataDto (org.mifos.application.servicefacade.CollectionSheetFormEnteredDataDto)1 FormEnteredDataAssembler (org.mifos.application.servicefacade.FormEnteredDataAssembler)1 TransactionDemarcate (org.mifos.framework.util.helpers.TransactionDemarcate)1