
org.openurp.code.edu.model.industry.scala Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2014, The OpenURP Software.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*/
package org.openurp.code.edu.model
import org.beangle.data.model.annotation.code
import org.openurp.code.CodeBean
/** 录取类别
* 参见教育部标准JY/T 1001 4.2.28.3
*/
@code("industry")
class AdmissionType extends CodeBean
/**
* 活动类型
* 参考教育部标准JY/T 1001 4.3.4(教室占用情况)
*/
@code("industry")
class ActivityType extends CodeBean
/**
* 学科目录
*
* 一般有:本科学科目录、研究生学术性学位目录、研究生专业性学位目录
*/
@code("industry")
class DisciplineCatalog extends CodeBean
/**
* 二级学科
* (来自本专科科学科目录、研究生学术性学位目录、研究生专业性学位目录的学科)
* 一般认为6位代码
*
* @author chaostone
*/
@code("industry")
class Discipline extends CodeBean {
var category: DisciplineCategory = _
var catalog: DisciplineCatalog = _
}
/** 一级学科
*/
@code("industry")
class Level1Discipline extends CodeBean {
var category: DisciplineCategory = _
}
/**
* 入学方式
* 参见教育部推荐标准JY/T 1001 4.2.32
*/
@code("industry")
class EnrollMode extends CodeBean
/**
* 培养方式
* 参见教育部标准JY/T 1001 4.2.30
*/
@code("industry")
class EducationMode extends CodeBean
/**
* 培养层次
*/
@code("industry")
class EducationLevel extends CodeBean {
var fromLevel: AcademicLevel = _
var toLevel: AcademicLevel = _
}
/**
* 教育类别
* 1 成人高等教育,2 普通高等教育,3 网络教育,4 中职教育,5 自考
*/
@code("industry")
class EduCategory extends CodeBean {
}
/**
* 留学生HSK等级
* 参见教育部标准JY/T 1001 4.5.4
*/
@code("industry")
class HskLevel extends CodeBean {
var grade: Int = _
}
/**
* 科研机构
*
* @see http://www.stats.edu.cn/rjgx/dm/%E6%99%AE%E9%80%9A%E9%AB%98%E6%A0%A1%E4%BB%A3%E7%A0%81.htm
*/
@code("industry")
class Institution extends CodeBean
/** 学校性质类别
* 01综合大学,02理工院校,03农林院校,04林业院校,
* 05医药院校,06师范院校,07语文院校,08财经院校
* 09政法院校,10体育院校,11艺术院校,12民族院校,
*/
@code("nation")
class InstitutionCategory extends CodeBean
/** 修课类别
* (正常初修、重修、免修、旁听)
*
* @author chaostone
* @since 2005-12-2
*/
@code("industry")
class CourseTakeType extends CodeBean {
def this(id: Int, code: String, name: String, enName: String) = {
this()
this.id = id
this.code = code
this.name = name
this.enName = Some(enName)
}
}
object CourseTakeType {
/** 正常修读 */
val Normal = 1
/** 重修 */
val Repeat = 3
/** 免修 */
val Exemption = 5
/** 旁听 * */
val Auditor = 6
}
/** 考试情况
* 正常、作弊、旷考等
*/
@code("industry")
class ExamStatus extends CodeBean {
/**
* 是否参加考试
*/
var attended: Boolean = _
/**
* 是否需要参加下一次缓考
*/
var hasDeferred: Boolean = _
/**
* 是否有作弊行为
*/
var cheating: Boolean = _
def this(id: Int) = {
this()
this.id = id
}
}
object ExamStatus {
/** 正常 */
val Normal = 1;
/** 缺考 */
val Absent = 3;
}
/**
* 成绩记录方式
*/
@code("industry")
class GradingMode extends CodeBean {
var numerical: Boolean = _
def this(id: Int) = {
this()
this.id = id
}
def this(id: Int, code: String, name: String, enName: String) = {
this()
this.id = id
this.code = code
this.name = name
this.enName = Some(enName)
}
}
object GradingMode {
val Percent = 1 //百分制
val RankEn = 2 //英文等级制
val RankCn = 3 //中文等级制
}
/**
* 上下午时段
*/
@code("industry")
class DayPart extends CodeBean {
var color: String = _
}
/**
* 成绩类型
*
* @author chaostone
* @since 2005-9-7
*/
@code("industry")
class GradeType extends CodeBean {
var examType: Option[ExamType] = None
def this(id: Int) = {
this()
this.id = id
}
def this(id: Int, code: String, name: String, enName: String) = {
this()
this.id = id
this.code = code
this.name = name
this.enName = Some(enName)
}
def isGa: Boolean = {
id == GradeType.EndGa || id == GradeType.MakeupGa || id == GradeType.DelayGa
}
def isMakeupOrDeplay: Boolean = {
id == GradeType.Makeup || id == GradeType.Delay
}
}
object GradeType {
val Final = 0
val Middle = 1
val End = 2
val Usual = 3
val Makeup = 4
val Delay = 6
val EndGa = 7
val DelayGa = 8
val MakeupGa = 9
}
/**
* 考试类型
*/
object ExamType {
/** 期末考试 */
val Final = 1
/** 补缓考 */
val MakeupDelay = 2
/** 补考 */
val Makeup = 3
/** 缓考 */
val Delay = 4
/** 期中考试 */
val Midterm = 6
}
@code("industry")
class ExamType extends CodeBean {
/** 是否是缓考 */
var forDeferred: Boolean = _
def this(id: Int) = {
this()
this.id = id
}
def this(id: Int, code: String, name: String, enName: String) = {
this(id)
this.code = code
this.name = name
this.enName = Some(enName)
}
}
@code("industry")
class ElectionMode extends CodeBean
object ElectionMode {
/** 指定 */
val Assigned = 1
/** 自选 */
val SelfChoose = 2
}
/**
* 考核方式
*/
@code("industry")
class ExamMode extends CodeBean {
def this(id: Int) = {
this()
this.id = id
}
}
object ExamMode {
val Exam = 1 //考试
val Check = 2 //考查
}
/**
* 考试方式
*/
@code("industry")
class ExamForm extends CodeBean
/**
* 授课语言类型
*/
@code("industry")
class TeachLangType extends CodeBean
/** 课程性质
* 从理论课、术科课、独立实验课、实践课
*/
@code("industry")
class CourseNature extends CodeBean {
/** 是否实践课程 */
var practical: Boolean = _
}
object CourseNature {
val Theory = 1 //理论
}
/**
* 授课性质(课时分类)
*/
@code("industry")
class TeachingNature extends CodeBean {
def this(id: Int) = {
this()
this.id = id
}
/** 性质分类 */
var category: TeachingNatureCategory = _
}
object TeachingNature {
val Theory = 1 //理论
val Experiment = 2 //实验
val Practice = 9 //实践
}
/** 授课性质分类 */
enum TeachingNatureCategory(val id: Int, val title: String) {
case Theory extends TeachingNatureCategory(1, "理论")
case Experiment extends TeachingNatureCategory(2, "实验")
case Practice extends TeachingNatureCategory(9, "实践")
override def toString: String = title
}
/** 课程属性
* 参见教育部标准JY/T 1001 4.3.10
* 一般有,必修、选修、限选、任选,其他等
*/
@code("industry")
class CourseRank extends CodeBean {
def compulsory: Boolean = {
id == CourseRank.Compulsory
}
def this(id: Int) = {
this()
this.id = id
}
}
object CourseRank {
val Compulsory = 1 // 必修
val Selective = 2 //选修
val DesignatedSelective = 3 // 限选
val FreeSelective = 4 // 任选
}
/** 论文选题来源
*/
@code("industry")
class ThesisTopicSource extends CodeBean
/** 论文类型
*/
@code("industry")
class ThesisType extends CodeBean
/** 实验类型
*/
@code("industry")
class ExperimentType extends CodeBean
/** 实验类别
*/
@code("industry")
class ExperimentCategory extends CodeBean
© 2015 - 2025 Weber Informatics LLC | Privacy Policy