
org.openurp.edu.base.model.Classroom.scala 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.base.model
import org.beangle.commons.collection.Collections
import org.beangle.data.model.LongId
import org.beangle.data.model.pojo.{Coded, Named, TemporalOn, Updated}
import org.openurp.base.model.{Building, Campus, Department, School}
import org.openurp.code.edu.model.ClassroomType
import scala.collection.mutable
/**
* 教室
*/
class Classroom extends LongId with Named with Coded with Updated with TemporalOn {
/** 学校 */
var school: School = _
/** 项目列表 */
var projects: mutable.Set[Project] = Collections.newSet[Project]
/** 房间号 */
var roomNo: Option[String] = None
/** 所属校区 */
var campus: Campus = _
/** 所属建筑 */
var building: Option[Building] = None
/** 英文名 */
var enName: Option[String] = None
/** 简称 */
var shortName: Option[String] = None
/** 教室类型 */
var roomType: ClassroomType = _
/** 楼层 */
var floorNo: Int = _
/** 容量 */
var capacity: Int = _
/** 上课容量 */
var courseCapacity: Int = _
/** 考试容量 */
var examCapacity: Int = _
/** 使用部门 */
var departs: mutable.Set[Department] = Collections.newSet[Department]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy