org.openurp.edu.program.plan.service.PersonalPlanCompareService Maven / Gradle / Ivy
/*
* OpenURP, Agile University Resource Planning Solution.
*
* Copyright © 2014, The OpenURP Software.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful.
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package org.openurp.edu.program.plan.service;
import java.util.List;
import java.util.Map;
import org.openurp.edu.program.model.ExecutivePlan;
import org.openurp.edu.program.model.PlanCourse;
import org.openurp.edu.program.model.StdPlan;
/**
* 个人培养计划与专业培养计划对比服务类
* 从eams-3shufe移植
*/
public interface PersonalPlanCompareService {
/**
* 获得两个培养计划之间的差异
*
* @param executePlan
* @param stdPlan
* @return List[0] 专业培养计划中的课程 List[1]培养计划中的课程
*/
Map[]> diffPersonalAndExecutivePlan(ExecutivePlan executePlan,
StdPlan stdPlan);
/**
* 将一个培养计划中的课程,复制到另一个培养计划对应的类别中
*
* @param fromPlan
* @param toPlan
* @param courseTypePlanCourseIds
* @throws PersonalPlanSyncException
*/
void copyPlanCourses(ExecutivePlan fromPlan, StdPlan toPlan, List courseTypePlanCourseIds)
throws PersonalPlanSyncException;
/**
* 将一个培养计划中的类别,完全复制到另一个培养计划中
* 注意,另一个培养计划中必须没有那种类别
*
* @param fromPlan
* @param toPlan
* @param courseTypeIds
* @throws PersonalPlanSyncException
*/
void copyCourseGroups(ExecutivePlan fromPlan, StdPlan toPlan, List courseTypeIds)
throws PersonalPlanSyncException;
/**
* TODO delete不安全
* 将一个培养计划中的课程删除
*
* @param plan
* @param courseTypePlanCourseIds
* @throws PersonalPlanSyncException
*/
void deletePlanCourses(StdPlan plan, List courseTypePlanCourseIds)
throws PersonalPlanSyncException;
/**
* TODO delete不安全
* 将一个培养计划中的类别删除
*
* @param plan
* @param courseTypeIds
* @throws PersonalPlanSyncException
*/
void deleteCourseGroups(StdPlan plan, List courseTypeIds) throws PersonalPlanSyncException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy