Examples of CurricularRuleParametersDTO


Examples of org.fenixedu.academic.dto.bolonhaManager.CurricularRuleParametersDTO

            throw new FenixActionException("must.select.curricular.rule.type");
        }
    }

    private CurricularRuleParametersDTO buildCurricularRuleParametersDTO() throws FenixServiceException, NumberFormatException {
        final CurricularRuleParametersDTO parametersDTO = new CurricularRuleParametersDTO();
        parametersDTO.setSelectedDegreeModuleID(getSelectedDegreeModuleID());
        parametersDTO.setContextCourseGroupID((getSelectedContextCourseGroupID() == null || getSelectedContextCourseGroupID()
                .equals(NO_SELECTION_STRING)) ? null : getSelectedContextCourseGroupID());
        parametersDTO.setCurricularPeriodInfoDTO(new CurricularPeriodInfoDTO(Integer.valueOf(getSelectedSemester()),
                AcademicPeriod.SEMESTER));
        parametersDTO.setMinimumCredits(getMinimumCredits());
        parametersDTO.setMaximumCredits(getMaximumCredits());
        parametersDTO.setMinimumLimit(getMinimumLimit());
        parametersDTO.setMaximumLimit(getMaximumLimit());
        parametersDTO
                .setSelectedDegreeID((getSelectedDegreeID() == null || getSelectedDegreeID().equals(NO_SELECTION_STRING)) ? null : getSelectedDegreeID());
        parametersDTO.setSelectedDepartmentUnitID((getSelectedDepartmentUnitID() == null || getSelectedDepartmentUnitID().equals(
                NO_SELECTION_STRING)) ? null : getSelectedDepartmentUnitID());
        parametersDTO
                .setDegreeType((getSelectedDegreeType() == null || getSelectedDegreeType().equals(NO_SELECTION_STRING)) ? null : DegreeType
                        .valueOf(getSelectedDegreeType()));
        // must get these values like this to prevent override values
        parametersDTO.setMinimumYear((Integer) getViewState().getAttribute("minimumYear"));
        parametersDTO.setMaximumYear((Integer) getViewState().getAttribute("maximumYear"));
        parametersDTO.setCredits((Double) getViewState().getAttribute("credits"));
        parametersDTO.setEven(Boolean.valueOf(getSelectedEven()));
        return parametersDTO;
    }
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.