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

org.openurp.edu.graduation.audit.model.DegreeResult.scala Maven / Gradle / Ivy

There is a newer version: 0.18.1
Show 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.graduation.audit.model

import scala.collection.mutable.Buffer

import org.beangle.commons.collection.Collections
import org.beangle.data.model.LongId
import org.beangle.data.model.pojo.Updated
import org.openurp.code.edu.model.Degree
import org.openurp.edu.base.model.Student
import java.time.LocalDate

class DegreeResult extends LongId with Updated {

  /** 所属的毕业审核批次 */
  var session: GraduateSession = _

  /**学生*/
  var std: Student = _

  /** 学位审核详细结果 */
  var items: Buffer[DegreeAuditItem] = Collections.newBuffer[DegreeAuditItem]

  /** GPA */
  var gpa: Float = _

  /**平均分*/
  var ga: Float = _

  /** 是否通过学位审核*/
  var passed: Boolean = _

  /** 锁定毕业审核结果 */
  var locked: Boolean = _

  /** 是否已发布 */
  var published: Boolean = _

  /** 毕业备注 */
  var comments: Option[String] = None

  /** 学位 */
  var degree: Option[Degree] = None

  /**外语通过年月*/
  var foreignLangPassedOn: Option[LocalDate] = None

  def deciplineCode: String = {
    std.state.map(_.major.disciplineCode(session.graduateOn)).getOrElse("")
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy