org.openurp.edu.grade.course.model.CourseGradeSetting 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.grade.course.model;
import java.util.List;
import java.util.Set;
import org.beangle.commons.collection.CollectUtils;
import org.openurp.code.edu.model.ExamStatus;
import org.openurp.code.edu.model.GradeType;
import org.openurp.edu.base.model.Project;
import org.openurp.edu.base.model.ProjectBasedObject;
/**
* 课程成绩配置
*/
public class CourseGradeSetting extends ProjectBasedObject {
private static final long serialVersionUID = -261419832818823702L;
/** 总评成绩的组成部分 */
private List gaElementTypes = CollectUtils.newArrayList(3);
/** 允许补考考试类型 */
private Set allowExamStatuses = CollectUtils.newHashSet();
/** 不允许录入成绩的考试类型列表 */
private Set emptyScoreStatuses = CollectUtils.newHashSet();
/** 是否提交即发布 */
private boolean submitIsPublish = false;
public CourseGradeSetting() {
super();
}
public CourseGradeSetting(Project project) {
this();
gaElementTypes.add(new GradeType(GradeType.USUAL_ID));
gaElementTypes.add(new GradeType(GradeType.END_ID));
allowExamStatuses.add(new ExamStatus(ExamStatus.NORMAL));
// allowExamStatuses.add(new ExamStatus(ExamStatus.MISC));
// emptyScoreStatuses.add(new ExamStatus(ExamStatus.ABSENT));
// emptyScoreStatuses.add(new ExamStatus(ExamStatus.CHEAT));
// emptyScoreStatuses.add(new ExamStatus(ExamStatus.VIOLATION));
// emptyScoreStatuses.add(new ExamStatus(ExamStatus.DELAY));
// emptyScoreStatuses.add(new ExamStatus(ExamStatus.MISC));
// emptyScoreStatuses.add(new ExamStatus(ExamStatus.UNQUALIFY));
}
public Set getAllowExamStatuses() {
return allowExamStatuses;
}
public void setAllowExamStatuses(Set allowExamStatuses) {
this.allowExamStatuses = allowExamStatuses;
}
public List getGaElementTypes() {
return gaElementTypes;
}
public void setGaElementTypes(List gaElementTypes) {
this.gaElementTypes = gaElementTypes;
}
public Set getEmptyScoreStatuses() {
return emptyScoreStatuses;
}
public void setEmptyScoreStatuses(Set emptyScoreStatuses) {
this.emptyScoreStatuses = emptyScoreStatuses;
}
/**
* 是否提交即发布
*
* @return
*/
public boolean isSubmitIsPublish() {
return submitIsPublish;
}
public void setSubmitIsPublish(boolean submitIsPublish) {
this.submitIsPublish = submitIsPublish;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy