org.openurp.edu.teach.lesson.model.LessonGenderLimit.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.data.model.Component
/**
* 教学班性别限制
*/
class LessonGenderLimit extends Component {
var maleWeight: Int = _
var curMaleCount: Int = _
var femaleWeight: Int = _
var curFemaleCount: Int = _
override def toString(): String = {
if (0 == maleWeight && 0 == femaleWeight) ""
else maleWeight + ":" + femaleWeight
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy