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);
}
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());
}
Aggregations