use of org.mifos.application.servicefacade.FormEnteredDataAssembler 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);
}
Aggregations