org.openurp.edu.teach.lesson.model.CourseSchedule.scala Maven / Gradle / Ivy
The newest version!
/*
* OpenURP, Agile Development Scaffold and Toolkit
*
* Copyright (c) 2014-2015, 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.teach.lesson.model
import org.beangle.commons.lang.time.WeekState
import org.beangle.data.model.Component
import org.beangle.data.model.LongId
import org.openurp.edu.teach.schedule.model.CourseActivity
import org.openurp.edu.teach.util.SchedulePublishStates
import org.openurp.code.edu.model.ClassroomType
class CourseSchedule extends Component with Serializable with Cloneable {
/**
* 所属教学任务
*/
@scala.beans.BeanProperty
var lesson: Lesson = _
/** 起始周 */
def startWeek: Int = {
if (null != weekstate) weekstate.first
else 0
}
/** 结束周 */
def endWeek: Int = {
if (null != weekstate) weekstate.last
else 0
}
/** 已安排课时 */
var period: Int = _
/**
* 周状态
*/
var weekstate: WeekState = _
/** 具体排课结果 */
var activities: collection.mutable.Set[CourseActivity] = _
/** 教室类型 */
var classroomType: ClassroomType = _
/** 发布状态 **/
var publishState: SchedulePublishStates.Value = _
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy