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

org.openurp.edu.lesson.model.Lesson.scala Maven / Gradle / Ivy

There is a newer version: 0.0.23
Show newest version
/*
 * OpenURP, Agile University Resource Planning Solution
 *
 * Copyright (c) 2014-2016, OpenURP Software.
 *
 * OpenURP 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.
 *
 * OpenURP 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 OpenURP.  If not, see .
 */
package org.openurp.edu.lesson.model

import org.beangle.commons.collection.Collections
import org.beangle.commons.model.{ LongId, Updated, YearId }
import org.beangle.commons.model.annotation.code
import org.openurp.base.model.{ Campus, Department, Semester }
import org.openurp.edu.base.{ ProjectBased, States }
import org.openurp.edu.base.code.model.{ CourseType, TeachLangType }
import org.openurp.edu.base.model.{ Course, Teacher }
import org.openurp.edu.lesson.code.model.LessonTag
/**
 * 教学任务 

每学期开课任务,以此为开始作为排课、排考、成绩录入的依据。代表着从对上课对象和开课院系的完整的教学实际任务信息.
  • * 1、教什么(课程名称、类别)、什么时候教(学年学期),谁来教(授课学院、零个或多个教师)
  • * 2、教学班信息——教谁(学生人数、上课对象(院系、学生类别)、选课对象)
  • 3、安排情况(具体安排,开始周、结束周、总课时)
  • *
  • 4、选课情况(是否预选、选课上下限、实选人数、选课规则)
  • * 5、任务要求(教室要求、课程要求(教材、参考书、案例)、是否挂牌、是否双语)
  • 6、创建时间、修改时间、备注
  • * * @depend - - - Course * @depend - - - CourseType * @depend - - - Department * @has 1..* AssignedTo 1..* Teacher * @depend - - - Campus * @depend - - - TeachClass * @depend - - - Semester * @depend - - - CourseSchedule * @depend - - - ExamSchedule * @depend - - - ExamMode * @depend - - - Project */ class Lesson extends LongId with ProjectBased with Updated with Cloneable with YearId { /** 课程序号 */ var no: String = _ /** 课程 */ var course: Course = _ /** 课程类别 */ var courseType: CourseType = _ /** 开课院系 */ var teachDepart: Department = _ /** 授课教师 */ var teachers = Collections.newBuffer[Teacher] /** 开课校区 */ var campus: Campus = _ /** 教学班 */ var teachclass: Teachclass = _ /** 教学日历 */ var semester: Semester = _ /** 课程安排 */ var courseSchedule: CourseSchedule = _ /** 考试安排 */ var examSchedule: ExamSchedule = _ /** 备注 */ var remark: Option[String] = None /** 授课语言类型 */ var langType: TeachLangType = _ /** 所属课程组 */ var group: Option[LessonGroup] = None /** 审核状态 */ var state: States.State = _ var tags = Collections.newSet[LessonTag] def year: Int = { Integer.valueOf(semester.id.toString.substring(0, 4)) } }




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy