Search in sources :

Example 1 with FeeDetailsForLoadDto

use of org.mifos.dto.screen.FeeDetailsForLoadDto in project head by mifos.

the class FeeServiceFacadeWebTier method retrieveDetailsForFeeLoad.

@Override
public FeeDetailsForLoadDto retrieveDetailsForFeeLoad() {
    FeeParameters feeParameters = parameters();
    boolean isMultiCurrencyEnabled = AccountingRules.isMultiCurrencyEnabled();
    return new FeeDetailsForLoadDto(feeParameters, isMultiCurrencyEnabled);
}
Also used : FeeDetailsForLoadDto(org.mifos.dto.screen.FeeDetailsForLoadDto) FeeParameters(org.mifos.dto.screen.FeeParameters)

Example 2 with FeeDetailsForLoadDto

use of org.mifos.dto.screen.FeeDetailsForLoadDto in project head by mifos.

the class FeeAction method load.

@TransactionDemarcate(saveToken = true)
public ActionForward load(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
    form.reset(mapping, request);
    ((FeeActionForm) form).clear();
    FeeDetailsForLoadDto feeDetailsForLoad = this.feeServiceFacade.retrieveDetailsForFeeLoad();
    request.getSession().setAttribute("isMultiCurrencyEnabled", feeDetailsForLoad.isMultiCurrencyEnabled());
    request.getSession().setAttribute(FeeParameters.class.getSimpleName(), feeDetailsForLoad.getFeeParameters());
    request.getSession().setAttribute("currencies", AccountingRules.getCurrencies());
    request.getSession().setAttribute("GlNamesMode", AccountingRules.getGlNamesMode());
    return mapping.findForward(ActionForwards.load_success.toString());
}
Also used : FeeActionForm(org.mifos.accounts.fees.struts.actionforms.FeeActionForm) FeeDetailsForLoadDto(org.mifos.dto.screen.FeeDetailsForLoadDto) FeeParameters(org.mifos.dto.screen.FeeParameters) TransactionDemarcate(org.mifos.framework.util.helpers.TransactionDemarcate)

Aggregations

FeeDetailsForLoadDto (org.mifos.dto.screen.FeeDetailsForLoadDto)2 FeeParameters (org.mifos.dto.screen.FeeParameters)2 FeeActionForm (org.mifos.accounts.fees.struts.actionforms.FeeActionForm)1 TransactionDemarcate (org.mifos.framework.util.helpers.TransactionDemarcate)1