Package org.fenixedu.academic.domain.student

Examples of org.fenixedu.academic.domain.student.PersonalIngressionData


        return mapping.findForward("viewStudentCandidacy");
    }

    public ActionForward viewPersonalIngressionData(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) {
        PersonalIngressionData personalIngressionData = getDomainObject(request, "personalIngressionDataId");

        request.setAttribute("personalIngressionData", personalIngressionData);

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


        if (hasActiveRegistration(degreeCurricularPlan)) {
            final Registration registration = getStudent().getActiveRegistrationFor(degreeCurricularPlan);
            setRegistration(registration);

            ExecutionYear currentYear = ExecutionYear.readCurrentExecutionYear();
            PersonalIngressionData pid = getStudent().getPersonalIngressionDataByExecutionYear(currentYear);
            pid.setCountryOfResidence(getPersonalDetails().getCountryOfResidence());
            PrecedentDegreeInformation pdi = registration.getPrecedentDegreeInformation(currentYear);
            pdi.setSchoolLevel(getMobilityStudentData().getSchoolLevel());
            pdi.setOtherSchoolLevel(getMobilityStudentData().getOtherSchoolLevel());

            return registration;
View Full Code Here

        registration.editStartDates(getStartDate(), registration.getHomologationDate(), registration.getStudiesStartDate());
        setRegistration(registration);

        createRaidesInformation(registration);
        PersonalIngressionData pid = getStudent().getPersonalIngressionDataByExecutionYear(registration.getStartExecutionYear());
        pid.setCountryOfResidence(getPersonalDetails().getCountryOfResidence());
        PrecedentDegreeInformation pdi = registration.getPrecedentDegreeInformation(registration.getStartExecutionYear());
        pdi.setSchoolLevel(getMobilityStudentData().getSchoolLevel());
        pdi.setOtherSchoolLevel(getMobilityStudentData().getOtherSchoolLevel());

        return registration;
View Full Code Here

    public PersonalInformationBean() {
    }

    private void initFromLatestPersonalIngressionData() {
        PersonalIngressionData personalData = getStudent().getLatestPersonalIngressionData();
        if (personalData == null) {
            return;
        }

        setCountryOfResidence(personalData.getCountryOfResidence());
        setDistrictSubdivisionOfResidence(personalData.getDistrictSubdivisionOfResidence());
        setSchoolTimeDistrictSubdivisionOfResidence(personalData.getSchoolTimeDistrictSubDivisionOfResidence());
        setDislocatedFromPermanentResidence(personalData.getDislocatedFromPermanentResidence());
        setGrantOwnerType(personalData.getGrantOwnerType());
        setGrantOwnerProvider(personalData.getGrantOwnerProvider());
        setHighSchoolType(personalData.getHighSchoolType());
        setMaritalStatus(personalData.getMaritalStatus());
        setProfessionType(personalData.getProfessionType());
        setProfessionalCondition(personalData.getProfessionalCondition());
        setMotherSchoolLevel(personalData.getMotherSchoolLevel());
        setMotherProfessionType(personalData.getMotherProfessionType());
        setMotherProfessionalCondition(personalData.getMotherProfessionalCondition());
        setFatherSchoolLevel(personalData.getFatherSchoolLevel());
        setFatherProfessionType(personalData.getFatherProfessionType());
        setFatherProfessionalCondition(personalData.getFatherProfessionalCondition());
        setLastModifiedDate(personalData.getLastModifiedDate());
    }
View Full Code Here

    }

    @Atomic
    public void updatePersonalInformation(boolean isStudentEditing) {
        PrecedentDegreeInformation precedentInfo = getPrecedentDegreeInformation();
        PersonalIngressionData personalData;

        if (precedentInfo == null) {
            precedentInfo = new PrecedentDegreeInformation();
            if (hasPhdIndividualProgramProcess()) {
                precedentInfo.setPhdIndividualProgramProcess(getPhdIndividualProgramProcess());
            } else {
                precedentInfo.setRegistration(getRegistration());
            }

            ExecutionYear currentExecutionYear = ExecutionYear.readCurrentExecutionYear();
            personalData = getStudent().getPersonalIngressionDataByExecutionYear(currentExecutionYear);
            if (personalData == null) {
                personalData = new PersonalIngressionData(getStudent(), currentExecutionYear, precedentInfo);
            } else {
                personalData.addPrecedentDegreesInformations(precedentInfo);
            }
        } else {
            personalData = precedentInfo.getPersonalIngressionData();
        }

        precedentInfo.edit(this, isStudentEditing);
        personalData.edit(this);
    }
View Full Code Here

        PrecedentDegreeInformation refactoredPrecedentDegreeInformation = getRefactoredPrecedentDegreeInformation();
        refactoredPrecedentDegreeInformation.setRegistration(registration);
        studentCandidacy.setPrecedentDegreeInformation(refactoredPrecedentDegreeInformation);
        studentCandidacy.setRegistration(registration);

        PersonalIngressionData personalIngressionDataByExecutionYear =
                registration.getStudent().getPersonalIngressionDataByExecutionYear(startExecutionYear);
        if (personalIngressionDataByExecutionYear != null) {
            personalIngressionDataByExecutionYear.addPrecedentDegreesInformations(refactoredPrecedentDegreeInformation);
        } else {
            new PersonalIngressionData(registration.getStudent(), startExecutionYear, refactoredPrecedentDegreeInformation);
        }
    }
View Full Code Here

        fillOriginInformation();
        fillResidenceAppliance();
    }

    private void fillHouseholdInformation() {
        PersonalIngressionData personalData = getOrCreatePersonalIngressionData(getStudentCandidacy());
        personalData.setFatherProfessionalCondition(getHouseholdInformationForm().getFatherProfessionalCondition());
        personalData.setFatherProfessionType(getHouseholdInformationForm().getFatherProfessionType());
        personalData.setFatherSchoolLevel(getHouseholdInformationForm().getFatherSchoolLevel());
        personalData.setMotherProfessionalCondition(getHouseholdInformationForm().getMotherProfessionalCondition());
        personalData.setMotherProfessionType(getHouseholdInformationForm().getMotherProfessionType());
        personalData.setMotherSchoolLevel(getHouseholdInformationForm().getMotherSchoolLevel());
    }
View Full Code Here

                getResidenceApplianceInquiryForm().getNotesAboutApplianceForResidence());
    }

    protected void fillOriginInformation() {
        final PrecedentDegreeInformation precedentDegreeInformation = getStudentCandidacy().getPrecedentDegreeInformation();
        final PersonalIngressionData personalData = getOrCreatePersonalIngressionData(precedentDegreeInformation);

        precedentDegreeInformation.setConclusionGrade(getOriginInformationForm().getConclusionGrade());
        precedentDegreeInformation.setDegreeDesignation(getOriginInformationForm().getDegreeDesignation());
        precedentDegreeInformation.setSchoolLevel(getOriginInformationForm().getSchoolLevel());
        if (getOriginInformationForm().getSchoolLevel() == SchoolLevelType.OTHER) {
            precedentDegreeInformation.setOtherSchoolLevel(getOriginInformationForm().getOtherSchoolLevel());
        }

        Unit institution = getOriginInformationForm().getInstitution();
        if (institution == null) {
            institution = UnitUtils.readExternalInstitutionUnitByName(getOriginInformationForm().getInstitutionName());
            if (institution == null) {
                institution = Unit.createNewNoOfficialExternalInstitution(getOriginInformationForm().getInstitutionName());
            }
        }
        precedentDegreeInformation.setInstitution(institution);
        precedentDegreeInformation.setConclusionYear(getOriginInformationForm().getConclusionYear());
        precedentDegreeInformation.setCountry(getOriginInformationForm().getCountryWhereFinishedPreviousCompleteDegree());
        if ((getOriginInformationForm().getSchoolLevel() != null)
                && getOriginInformationForm().getSchoolLevel().isHighSchoolOrEquivalent()) {
            precedentDegreeInformation.setCountryHighSchool(getOriginInformationForm()
                    .getCountryWhereFinishedPreviousCompleteDegree());
        }

        personalData.setHighSchoolType(getOriginInformationForm().getHighSchoolType());

    }
View Full Code Here

        person.setDefaultMobilePhoneNumber(getContactsForm().getMobileNumber());
    }

    protected void fillResidenceInformation() {
        PersonalIngressionData personalData = getOrCreatePersonalIngressionData(getStudentCandidacy());
        personalData.setCountryOfResidence(getResidenceInformationForm().getCountryOfResidence());
        personalData.setDistrictSubdivisionOfResidence(getResidenceInformationForm().getDistrictSubdivisionOfResidence());
        personalData.setDislocatedFromPermanentResidence(getResidenceInformationForm().getDislocatedFromPermanentResidence());

        if (getResidenceInformationForm().getDislocatedFromPermanentResidence()) {
            personalData.setSchoolTimeDistrictSubDivisionOfResidence(getResidenceInformationForm()
                    .getSchoolTimeDistrictSubdivisionOfResidence());
        }

        final Person person = getStudentCandidacy().getPerson();
View Full Code Here

        person.setCountry(getFiliationForm().getNationality());
        person.setCountryOfBirth(getFiliationForm().getCountryOfBirth());
    }

    protected void fillPersonalInformation() {
        PersonalIngressionData personalData = getOrCreatePersonalIngressionData(getStudentCandidacy());
        personalData.setGrantOwnerType(getPersonalInformationForm().getGrantOwnerType());
        personalData.setGrantOwnerProvider(getPersonalInformationForm().getGrantOwnerProvider());
        personalData.setProfessionalCondition(getPersonalInformationForm().getProfessionalCondition());
        personalData.setProfessionType(getPersonalInformationForm().getProfessionType());
        personalData.setMaritalStatus(getPersonalInformationForm().getMaritalStatus());

        final Person person = getStudentCandidacy().getPerson();
        person.setEmissionDateOfDocumentIdYearMonthDay(getPersonalInformationForm().getDocumentIdEmissionDate());
        person.setExpirationDateOfDocumentIdYearMonthDay(getPersonalInformationForm().getDocumentIdExpirationDate());
        person.setEmissionLocationOfDocumentId(getPersonalInformationForm().getDocumentIdEmissionLocation());
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.student.PersonalIngressionData

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.