Class MajorPlanServiceImpl
java.lang.Object
org.beangle.commons.dao.impl.BaseServiceImpl
org.openurp.edu.program.major.service.impl.MajorPlanServiceImpl
- All Implemented Interfaces:
MajorPlanService
public class MajorPlanServiceImpl
extends org.beangle.commons.dao.impl.BaseServiceImpl
implements MajorPlanService
培养计划服务接口
-
Field Summary
Fields inherited from class org.beangle.commons.dao.impl.BaseServiceImpl
entityDao, eventMulticaster, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenMajorPlan(MajorPlan sourcePlan, MajorPlanGenParameter genParameter) 以一个培养计划为模板,生成这个培养计划的copy
copy和原计划在一些属性上有区别,这个区别在targetPlan中体现。
但是原计划和copy计划中的课程设置是完全一样的genMajorPlans(Collection<MajorPlan> plans, MajorPlanGenParameter partialParams) 给定一批培养计划,以这些培养计划作为模板,生成这批培养计划的copy
copy和原计划的区别在于grade, beginOn, endOn不同,他们的课程设置都是一样的getMajorPlanByAdminClass(Squad clazz) 根据行政班的grade,stdType,department,major,direction,level属性来精确匹配找到一个专业培养计划getPlanCourses(MajorPlan plan) 查找没有在某个培养计划使用的课程类别booleanhasCourse(MajorCourseGroup cgroup, Course course) 检测某个专业培养计划是否有这个课程booleanhasCourse(MajorCourseGroup cgroup, Course course, PlanCourse planCourse) voidremoveMajorPlan(MajorPlan plan) 删除培养计划void保存新的培养计划voidsetPlanCommonDao(PlanCommonDao planCommonDao) voidsetPlanCourseGroupCommonDao(PlanCourseGroupCommonDao planCourseGroupCommonDao) floatstatPlanCredits(Long planId) 统计培养计划的总学分floatstatPlanCredits(MajorPlan plan) 统计总学分Methods inherited from class org.beangle.commons.dao.impl.BaseServiceImpl
getEntityDao, getEventMulticaster, publish, setEntityDao, setEventMulticaster
-
Constructor Details
-
MajorPlanServiceImpl
public MajorPlanServiceImpl()
-
-
Method Details
-
genMajorPlan
public MajorPlan genMajorPlan(MajorPlan sourcePlan, MajorPlanGenParameter genParameter) throws Exception Description copied from interface:MajorPlanService以一个培养计划为模板,生成这个培养计划的copy
copy和原计划在一些属性上有区别,这个区别在targetPlan中体现。
但是原计划和copy计划中的课程设置是完全一样的- Specified by:
genMajorPlanin interfaceMajorPlanService- Parameters:
sourcePlan- 必须是一个persisitent,持久态对象genParameter- genParameter提供了欲生成的培养计划的模板- Returns:
- Throws:
Exception
-
genMajorPlans
public List<MajorPlan> genMajorPlans(Collection<MajorPlan> plans, MajorPlanGenParameter partialParams) throws Exception Description copied from interface:MajorPlanService给定一批培养计划,以这些培养计划作为模板,生成这批培养计划的copy
copy和原计划的区别在于grade, beginOn, endOn不同,他们的课程设置都是一样的- Specified by:
genMajorPlansin interfaceMajorPlanService- Parameters:
plans-partialParams- 因为是批量生成计划,所以页面只传部分的参数:grade, beginOn, endOn- Returns:
- Throws:
Exception
-
getUnusedCourseTypeNames
Description copied from interface:MajorPlanService查找没有在某个培养计划使用的课程类别- Specified by:
getUnusedCourseTypeNamesin interfaceMajorPlanService- Parameters:
plan-- Returns:
-
removeMajorPlan
Description copied from interface:MajorPlanService删除培养计划- Specified by:
removeMajorPlanin interfaceMajorPlanService
-
saveOrUpdateMajorPlan
Description copied from interface:MajorPlanService保存新的培养计划- Specified by:
saveOrUpdateMajorPlanin interfaceMajorPlanService- Parameters:
plan-
-
statPlanCredits
Description copied from interface:MajorPlanService统计培养计划的总学分- Specified by:
statPlanCreditsin interfaceMajorPlanService- Parameters:
planId-- Returns:
-
statPlanCredits
Description copied from interface:MajorPlanService统计总学分- Specified by:
statPlanCreditsin interfaceMajorPlanService
-
hasCourse
Description copied from interface:MajorPlanService检测某个专业培养计划是否有这个课程- Specified by:
hasCoursein interfaceMajorPlanService- Parameters:
course-- Returns:
-
hasCourse
- Specified by:
hasCoursein interfaceMajorPlanService
-
setPlanCommonDao
-
getMajorPlanByAdminClass
Description copied from interface:MajorPlanService根据行政班的grade,stdType,department,major,direction,level属性来精确匹配找到一个专业培养计划- Specified by:
getMajorPlanByAdminClassin interfaceMajorPlanService- Parameters:
clazz-- Returns:
-
getPlanCourses
- Specified by:
getPlanCoursesin interfaceMajorPlanService
-
setPlanCourseGroupCommonDao
-