Examples of DiplomaRequest


Examples of org.fenixedu.academic.domain.serviceRequests.documentRequests.DiplomaRequest

    }

    @Override
    protected void fillReport() {
        super.fillReport();
        final DiplomaRequest diplomaRequest = getDocumentRequest();

        String universityName = getUniversity(diplomaRequest.getRequestDate()).getPartyName().getPreferedContent();

        addParameter("registryCode", diplomaRequest.hasRegistryCode() ? diplomaRequest.getRegistryCode().getCode() : null);
        addParameter("documentNumber", BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.diploma.documentNumber"));
        addParameter("conclusionDate", diplomaRequest.getConclusionDate().toString(getDatePattern(), getLocale()));
        addParameter("day", MessageFormat.format(
                BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.diploma.university.actualDate"), universityName,
                getFormatedCurrentDate()));

        if (diplomaRequest.hasFinalAverageDescription()) {
            addParameter("finalAverageDescription", StringUtils.capitalize(BundleUtil.getString(Bundle.ENUMERATION, getLocale(),
                    diplomaRequest.getFinalAverage().toString())));
            addParameter("finalAverageQualified", diplomaRequest.getFinalAverageQualified());
        } else if (diplomaRequest.hasDissertationTitle()) {
            addParameter("dissertationTitle", diplomaRequest.getDissertationThesisTitle());
        }

        String finalAverage = BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "diploma.finalAverage");
        addParameter("finalAverageDescription", MessageFormat.format(finalAverage,
                BundleUtil.getString(Bundle.ENUMERATION, getLocale(), diplomaRequest.getFinalAverage().toString()),
                diplomaRequest.getFinalAverage().toString(),
                BundleUtil.getString(Bundle.ACADEMIC, getLocale(), getQualifiedAverageGrade(getLocale()))));

        addParameter("conclusionStatus", MessageFormat.format(
                BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.diploma.conclusionStatus"),
                getConclusionStatusAndDegreeType(diplomaRequest, getRegistration())));
        addParameter("degreeFilteredName", diplomaRequest.getDegreeFilteredName());

        String graduateTitle = diplomaRequest.getGraduateTitle(getLocale());

        if (graduateTitle.contains("Graduated")) {
            graduateTitle = graduateTitle.replace("Graduated", "Licenciado");
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.serviceRequests.documentRequests.DiplomaRequest

    @Atomic
    public ActionForward generateRegistryCode(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        final RegistrationAcademicServiceRequest academicServiceRequest = getAndSetAcademicServiceRequest(request);
        DiplomaRequest diploma = (DiplomaRequest) academicServiceRequest;
        diploma.generateRegistryCode();
        addActionMessage(request, "rectorate.code.generated.with.success");
        request.setAttribute("registration", academicServiceRequest.getRegistration());
        return mapping.findForward("viewRegistrationDetails");
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.serviceRequests.documentRequests.DiplomaRequest

    }

    final public DiplomaRequest getDiplomaRequest(final CycleType cycleType) {
        for (final DocumentRequest documentRequest : getDocumentRequests()) {
            if (documentRequest.isDiploma() && !documentRequest.finishedUnsuccessfully()) {
                final DiplomaRequest diplomaRequest = (DiplomaRequest) documentRequest;
                if (cycleType == null || cycleType == diplomaRequest.getWhatShouldBeRequestedCycle()) {
                    return diplomaRequest;
                }
            }
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.serviceRequests.documentRequests.DiplomaRequest

        return labelFormatter;
    }

    private void fillDescription(final LabelFormatter labelFormatter) {
        labelFormatter.appendLabel(" (");
        final DiplomaRequest request = (DiplomaRequest) getAcademicServiceRequest();
        if (request.getRequestedCycle() != null) {
            labelFormatter.appendLabel(request.getRequestedCycle().getQualifiedName(), LabelFormatter.ENUMERATION_RESOURCES)
                    .appendLabel(" ").appendLabel("label.of", LabelFormatter.APPLICATION_RESOURCES).appendLabel(" ");
        }

        labelFormatter.appendLabel(getDegree().getDegreeType().name(), LabelFormatter.ENUMERATION_RESOURCES);
        labelFormatter.appendLabel(" ");
View Full Code Here

Examples of org.fenixedu.academic.domain.serviceRequests.documentRequests.DiplomaRequest

                this.setExecutionYear(ExecutionYear.readCurrentExecutionYear());
            }
            return DeclarationRequest.create(this);

        } else if (getChosenDocumentRequestType().isDiploma()) {
            return new DiplomaRequest(this);

        } else if (getChosenDocumentRequestType().isRegistryDiploma()) {
            return new RegistryDiplomaRequest(this);

        } else if (getChosenDocumentRequestType().isPastDiploma()) {
View Full Code Here

Examples of org.fenixedu.academic.domain.serviceRequests.documentRequests.DiplomaRequest

            if (request.isRegistryDiploma()) {
                code = request.getRegistryCode();
            } else if (request.isDiploma() && request.isRequestForRegistration()) {
                // FIXME: this can leave after all diplomas without registry
                // diplomas are dealt with.
                DiplomaRequest diploma = (DiplomaRequest) request;
                if (!diploma.hasRegistryDiplomaRequest()) {
                    code = diploma.getRegistryCode();
                }
            }

            if (code == null) {
                continue;
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.