All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openurp.edu.program.plan.service.ExecutivePlanService Maven / Gradle / Ivy

The newest version!
/*
 * 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.Set;

import org.openurp.base.edu.model.Course;
import org.openurp.base.std.model.Squad;
import org.openurp.edu.program.model.ExecutiveCourseGroup;
import org.openurp.edu.program.model.ExecutivePlan;
import org.openurp.edu.program.model.ExecutivePlanCourse;
import org.openurp.edu.program.model.PlanCourse;

/**
 * 培养计划服务接口
 */
public interface ExecutivePlanService {

  List getPlanCourses(ExecutivePlan plan);

  /**
   * 根据行政班的grade,stdType,department,major,direction,level属性来精确匹配找到一个专业培养计划
   *
   * @param clazz
   * @return
   */
  ExecutivePlan getExecutivePlanByAdminClass(Squad clazz);

  /**
   * 保存新的培养计划
   *
   * @param plan
   * @return
   */
  void saveOrUpdateExecutivePlan(ExecutivePlan plan);

  /**
   * 删除培养计划
   */
  void removeExecutivePlan(ExecutivePlan plan);

  /**
   * 查找没有在某个培养计划使用的课程类别
   *
   * @param plan
   * @return
   */
  Set getUnusedCourseTypeNames(ExecutivePlan plan);

  /**
   * 统计培养计划的总学分
   *
   * @param planId
   * @return
   */
  float statPlanCredits(Long planId);

  /**
   * 统计总学分
   */
  float statPlanCredits(ExecutivePlan plan);

  /**
   * 检测某个专业培养计划是否有这个课程
   *
   * @param cgroup
   * @param course
   * @return
   */
  boolean hasCourse(ExecutiveCourseGroup cgroup, Course course);

  boolean hasCourse(ExecutiveCourseGroup cgroup, Course course, PlanCourse planCourse);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy