Examples of PaymentCodeMappingBean


Examples of org.fenixedu.academic.domain.accounting.PaymentCodeMapping.PaymentCodeMappingBean

public class PaymentCodesAttributionDA extends FenixDispatchAction {

    @EntryPoint
    public ActionForward prepareViewPaymentCodeMappings(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        request.setAttribute("paymentCodeMappingBean", new PaymentCodeMappingBean());
        return mapping.findForward("viewCodes");
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.accounting.PaymentCodeMapping.PaymentCodeMappingBean

    }

    public ActionForward viewPaymentCodeMappings(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        final PaymentCodeMappingBean bean = getRenderedObject("paymentCodeMappingBean");
        request.setAttribute("paymentCodeMappingBean", bean);

        if (bean.hasExecutionInterval()) {
            request.setAttribute("paymentCodeMappings", bean.getExecutionInterval().getPaymentCodeMappingsSet());
        }

        return mapping.findForward("viewCodes");
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.accounting.PaymentCodeMapping.PaymentCodeMappingBean

    }

    public ActionForward prepareCreatePaymentCodeMapping(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        RenderUtils.invalidateViewState();
        final PaymentCodeMappingBean bean = new PaymentCodeMappingBean();
        bean.setExecutionInterval((ExecutionInterval) getDomainObject(request, "executionIntervalOid"));
        request.setAttribute("paymentCodeMappingBean", bean);
        return mapping.findForward("createPaymentCodeMapping");
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.accounting.PaymentCodeMapping.PaymentCodeMappingBean

    }

    public ActionForward createPaymentCodeMapping(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        final PaymentCodeMappingBean bean = getRenderedObject("paymentCodeMappingBean");
        request.setAttribute("paymentCodeMappingBean", bean);

        try {
            bean.create();
        } catch (final DomainException e) {
            addActionMessage(request, e.getKey(), e.getArgs());
            return mapping.findForward("createPaymentCodeMapping");
        }

        request.setAttribute("paymentCodeMappings", bean.getExecutionInterval().getPaymentCodeMappingsSet());
        RenderUtils.invalidateViewState();
        bean.clear();
        return mapping.findForward("viewCodes");
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.accounting.PaymentCodeMapping.PaymentCodeMappingBean

    public ActionForward deletePaymentCodeMapping(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        final PaymentCodeMapping codeMapping = getDomainObject(request, "paymentCodeMappingOid");
        final PaymentCodeMappingBean bean = new PaymentCodeMappingBean();
        bean.setExecutionInterval(codeMapping.getExecutionInterval());

        request.setAttribute("paymentCodeMappingBean", bean);
        request.setAttribute("paymentCodeMappings", bean.getExecutionInterval().getPaymentCodeMappingsSet());

        try {
            codeMapping.delete();
        } catch (final DomainException e) {
            addActionMessage(request, e.getMessage(), e.getArgs());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.