Package org.fenixedu.academic.domain.phd.debts

Examples of org.fenixedu.academic.domain.phd.debts.PhdGratuityExternalScholarshipExemption


        for (Event event : process.getPerson().getEventsSet()) {
            if (event instanceof PhdGratuityEvent) {
                for (Exemption exemption : event.getExemptionsSet()) {
                    if (exemption instanceof PhdGratuityExternalScholarshipExemption) {
                        PhdGratuityExternalScholarshipExemption phdExemption =
                                (PhdGratuityExternalScholarshipExemption) exemption;
                        list.add(phdExemption);
                    }
                }
            }
View Full Code Here


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

        String exemptionId = request.getParameter("exemptiontId");
        PhdGratuityExternalScholarshipExemption exemption =
                (PhdGratuityExternalScholarshipExemption) FenixFramework.getDomainObject(exemptionId);
        request.setAttribute("processId", ((PhdGratuityEvent) exemption.getEvent()).getPhdIndividualProgramProcess()
                .getExternalId());
        request.setAttribute("exemption", exemption);
        request.setAttribute("person", exemption.getEvent().getPerson());
        AmountBean bean = new AmountBean();
        bean.setValue(exemption.getAmoutStillMissing());
        request.setAttribute("bean", bean);
        return mapping.findForward("showScolarship");
    }
View Full Code Here

    @Atomic
    public ActionForward liquidate(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        String exemptionId = request.getParameter("externalId");
        PhdGratuityExternalScholarshipExemption exemption =
                (PhdGratuityExternalScholarshipExemption) FenixFramework.getDomainObject(exemptionId == null ? (String) request
                        .getAttribute("externalId") : exemptionId);
        ExternalScholarshipPhdGratuityContribuitionEvent event = exemption.getExternalScholarshipPhdGratuityContribuitionEvent();
        AmountBean bean = getRenderedObject("bean");
        List<EntryDTO> list = new ArrayList<EntryDTO>();
        list.add(new EntryDTO(EntryType.EXTERNAL_SCOLARSHIP_PAYMENT, event, bean.getValue()));
        event.process(Authenticate.getUser(), list, new AccountingTransactionDetailDTO(bean.getPaymentDate(), PaymentMode.CASH));

        PhdGratuityEvent gratuityEvent = (PhdGratuityEvent) exemption.getEvent();
        PhdIndividualProgramProcess process = gratuityEvent.getPhdIndividualProgramProcess();
        request.setAttribute("processId", process.getExternalId());

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

        return viewDebtsForProcess(mapping, form, request, response);
    }

    public ActionForward cancel(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        String exemptionId = request.getParameter("externalId");
        PhdGratuityExternalScholarshipExemption exemption =
                (PhdGratuityExternalScholarshipExemption) FenixFramework.getDomainObject(exemptionId == null ? (String) request
                        .getAttribute("externalId") : exemptionId);
        PhdGratuityEvent event = (PhdGratuityEvent) exemption.getEvent();
        PhdIndividualProgramProcess process = event.getPhdIndividualProgramProcess();
        request.setAttribute("processId", process.getExternalId());
        return viewDebtsForProcess(mapping, form, request, response);
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.phd.debts.PhdGratuityExternalScholarshipExemption

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.