Package org.fenixedu.academic.dto.accounting.paymentPlan

Examples of org.fenixedu.academic.dto.accounting.paymentPlan.InstallmentBean


    public ActionForward prepareCreatePaymentPlan(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        final PaymentPlanBean paymentPlanBean = new PaymentPlanBean(ExecutionYear.readCurrentExecutionYear());
        request.setAttribute("paymentPlanEditor", paymentPlanBean);
        request.setAttribute("installmentEditor", new InstallmentBean(paymentPlanBean));

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


        }

        getPaymentPlanBean().addInstallment(getInstallment());
        request.setAttribute("paymentPlanEditor", getPaymentPlanBean());
        request.setAttribute("installmentEditor", new InstallmentBean(getPaymentPlanBean()));
        invalidatePaymentPlanViewStates();

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

            HttpServletResponse response) {

        getPaymentPlanBean().removeSelectedInstallments();

        request.setAttribute("paymentPlanEditor", getPaymentPlanBean());
        request.setAttribute("installmentEditor", new InstallmentBean(getPaymentPlanBean()));

        invalidatePaymentPlanViewStates();

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

        paymentPlanBean.setForPartialRegime(false);
        paymentPlanBean.setForStudentEnroledOnSecondSemesterOnly(false);
        paymentPlanBean.setDegreeCurricularPlans(Collections.singletonList(degreeCurricularPlan));

        request.setAttribute("paymentPlanEditor", paymentPlanBean);
        InstallmentBean installmentBean = new InstallmentBean(paymentPlanBean);

        installmentBean.setPenaltyAppliable(false);
        request.setAttribute("installmentEditor", installmentBean);

        request.setAttribute("degreeCurricularPlan", degreeCurricularPlan);

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

    public ActionForward createDEAGratuityPR(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {
        final DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);

        InstallmentBean installment = getInstallment();
        if (!installment.hasRequiredInformation()) {
            addActionMessage("installment", request,
                    "label.payments.postingRules.paymentPlan.information.to.create.installment.is.all.required");

            return createDEAGratuityPRInvalid(mapping, form, request, response);
        }
View Full Code Here

    public ActionForward createDEAStandaloneGratuityPR(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {
        final DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);

        InstallmentBean installment = getInstallment();

        StandaloneInstallmentBean standaloneInstallment = (StandaloneInstallmentBean) installment;

        if (!installment.hasRequiredInformation()) {
            addActionMessage("installment", request,
                    "label.payments.postingRules.paymentPlan.information.to.create.installment.is.all.required");

            return createDEAGratuityPRInvalid(mapping, form, request, response);
        }
View Full Code Here

        PaymentPlan paymentPlan = getDomainObject(request, "paymentPlanId");
        Installment installment = getDomainObject(request, "installmentId");

        request.setAttribute("paymentPlan", paymentPlan);
        request.setAttribute("installment", installment);
        request.setAttribute("installmentBean", new InstallmentBean(installment));

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

    public ActionForward editInstallment(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        try {
            Installment installment = getDomainObject(request, "installmentId");
            InstallmentBean bean = getRenderedObject("installmentBean");

            InstallmentService.edit(installment, bean);
        } catch (final DomainException e) {
            addErrorMessage(request, "error", e.getKey(), new String[] {});
View Full Code Here

    public ActionForward editInstallmentInvalid(final ActionMapping mapping, final ActionForm form,
            final HttpServletRequest request, final HttpServletResponse response) {
        PaymentPlan paymentPlan = getDomainObject(request, "paymentPlanId");
        Installment installment = getDomainObject(request, "installmentId");
        InstallmentBean bean = getRenderedObject("installmentBean");

        request.setAttribute("paymentPlan", paymentPlan);
        request.setAttribute("installment", installment);
        request.setAttribute("installmentBean", bean);
View Full Code Here

import pt.ist.fenixWebFramework.renderers.components.converters.Converter;

public class ExecutionSemestersForInstallmentCreationProvider implements DataProvider {
    @Override
    public Object provide(Object source, Object currentValue) {
        final InstallmentBean installmentBean = (InstallmentBean) source;

        if (installmentBean.getPaymentPlanBean().getExecutionYear() != null) {
            final SortedSet<ExecutionSemester> result =
                    new TreeSet<ExecutionSemester>(ExecutionSemester.COMPARATOR_BY_SEMESTER_AND_YEAR);
            result.addAll(installmentBean.getPaymentPlanBean().getExecutionYear().getExecutionPeriodsSet());
            return result;
        }

        return Collections.EMPTY_LIST;
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.accounting.paymentPlan.InstallmentBean

Copyright © 2018 www.massapicom. 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.