Examples of AccountingEventCreateBean


Examples of org.fenixedu.academic.dto.accounting.events.AccountingEventCreateBean

    }

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

        request.setAttribute("eventBean", new AccountingEventCreateBean());
        return mapping.findForward("createInsuranceEvent");
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.accounting.events.AccountingEventCreateBean

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

        try {

            final AccountingEventCreateBean bean = getRenderedObject("eventBean");
            final PhdIndividualProgramProcess process = getProcess(request);

            if (process.getExecutionYear().isAfter(bean.getExecutionYear())) {
                addActionMessage("error", request, "error.phd.accounting.events.insurance.invalid.execution.period", process
                        .getExecutionYear().getQualifiedName());
                return prepareCreateInsuranceEvent(mapping, actionForm, request, response);
            }

            final InvocationResult result =
                    new AccountingEventsManager().createInsuranceEvent(process.getPerson(), bean.getExecutionYear());

            if (result.isSuccess()) {
                addActionMessage("success", request, "message.phd.accounting.events.insurance.created.with.success");
                return prepare(mapping, actionForm, request, response);
            } else {
View Full Code Here

Examples of org.fenixedu.academic.dto.accounting.events.AccountingEventCreateBean

        }

    }

    private ActionForward prepareCreateDfaRegistration(ActionMapping mapping, HttpServletRequest request) {
        request.setAttribute("accountingEventCreateBean", new AccountingEventCreateBean(getStudentCurricularPlan(request)));
        return mapping.findForward("createDfaRegistrationEvent");
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.accounting.events.AccountingEventCreateBean

    }

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

        final AccountingEventCreateBean accountingEventCreateBean = getAccountingEventCreateBean();
        try {
            AccountingEventsCreator.createDfaRegistrationEvent(accountingEventCreateBean.getStudentCurricularPlan(),
                    accountingEventCreateBean.getExecutionYear());

            addActionMessage("success", request, "label.accountingEvents.management.createEvents.eventCreatedWithSucess");

            request.setAttribute("scpID", accountingEventCreateBean.getStudentCurricularPlan().getExternalId());
            return prepare(mapping, form, request, response);

        } catch (DomainExceptionWithInvocationResult e) {
            addActionMessages("error", request, e.getInvocationResult().getMessages());
        } catch (DomainException e) {
View Full Code Here

Examples of org.fenixedu.academic.dto.accounting.events.AccountingEventCreateBean

        return mapping.findForward("createDfaRegistrationEvent");
    }

    private ActionForward prepareCreateGratuityEvent(ActionMapping mapping, HttpServletRequest request) {
        request.setAttribute("accountingEventCreateBean", new AccountingEventCreateBean(getStudentCurricularPlan(request)));
        return mapping.findForward("createGratuityEvent");
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.accounting.events.AccountingEventCreateBean

    }

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

        final AccountingEventCreateBean accountingEventCreateBean = getAccountingEventCreateBean();
        try {

            AccountingEventsCreator.createGratuityEvent(accountingEventCreateBean.getStudentCurricularPlan(),
                    accountingEventCreateBean.getExecutionYear());

            addActionMessage("success", request, "label.accountingEvents.management.createEvents.eventCreatedWithSucess");

            request.setAttribute("scpID", accountingEventCreateBean.getStudentCurricularPlan().getExternalId());
            return prepare(mapping, form, request, response);

        } catch (DomainExceptionWithInvocationResult e) {
            addActionMessages("error", request, e.getInvocationResult().getMessages());
        } catch (DomainException e) {
View Full Code Here

Examples of org.fenixedu.academic.dto.accounting.events.AccountingEventCreateBean

        return mapping.findForward("createGratuityEvent");

    }

    private ActionForward prepareCreateAdministrativeOfficeFeeAndInsuranceEvent(ActionMapping mapping, HttpServletRequest request) {
        request.setAttribute("accountingEventCreateBean", new AccountingEventCreateBean(getStudentCurricularPlan(request)));
        return mapping.findForward("createAdministrativeOfficeFeeAndInsuranceEvent");
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.accounting.events.AccountingEventCreateBean

    }

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

        final AccountingEventCreateBean accountingEventCreateBean = getAccountingEventCreateBean();
        try {

            AccountingEventsCreator.createAdministrativeOfficeFeeAndInsuranceEvent(
                    accountingEventCreateBean.getStudentCurricularPlan(), accountingEventCreateBean.getExecutionYear());

            addActionMessage("success", request, "label.accountingEvents.management.createEvents.eventCreatedWithSucess");

            request.setAttribute("scpID", accountingEventCreateBean.getStudentCurricularPlan().getExternalId());
            return prepare(mapping, form, request, response);

        } catch (DomainExceptionWithInvocationResult e) {
            addActionMessages("error", request, e.getInvocationResult().getMessages());
        } catch (DomainException e) {
View Full Code Here

Examples of org.fenixedu.academic.dto.accounting.events.AccountingEventCreateBean

    private StudentCurricularPlan getStudentCurricularPlan(HttpServletRequest request) {
        return getDomainObject(request, "scpID");
    }

    private ActionForward prepareCreateInsuranceEvent(ActionMapping mapping, HttpServletRequest request) {
        request.setAttribute("accountingEventCreateBean", new AccountingEventCreateBean(getStudentCurricularPlan(request)));
        return mapping.findForward("createInsuranceEvent");
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.accounting.events.AccountingEventCreateBean

    }

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

        final AccountingEventCreateBean accountingEventCreateBean = getAccountingEventCreateBean();
        try {

            AccountingEventsCreator.createInsuranceEvent(accountingEventCreateBean.getStudentCurricularPlan(),
                    accountingEventCreateBean.getExecutionYear());

            addActionMessage("success", request, "label.accountingEvents.management.createEvents.eventCreatedWithSucess");

            request.setAttribute("scpID", accountingEventCreateBean.getStudentCurricularPlan().getExternalId());
            return prepare(mapping, form, request, response);

        } catch (DomainExceptionWithInvocationResult e) {
            addActionMessages("error", request, e.getInvocationResult().getMessages());
        } catch (DomainException e) {
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.