• 大小: 16.98MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-15
  • 语言: 数据库
  • 标签:

资源简介

在线考试系统毕业设计(源码+论文),将源码导入Myeclipse中,在mysql中执行sql脚本便能运行在线考试系统,论文中包含绪论、可行性分析、需求分析、概要设计、详细设计等内容。

资源截图

代码片段和文件信息

package com.online_examination_system.action;

import java.util.ArrayList;
import java.util.List;

import com.online_examination_system.bean.CourseBean;
import com.online_examination_system.service.CourseService;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings(“serial“)
public class CourseAction extends ActionSupport {

private CourseService courseService;
private CourseBean courseBean;

List listCourseBean = new ArrayList();

public CourseService getCourseService() {
return courseService;
}
public void setCourseService(CourseService courseService) {
this.courseService = courseService;
}
public CourseBean getCourseBean() {
return courseBean;
}
public void setCourseBean(CourseBean courseBean) {
this.courseBean = courseBean;
}
public List getListCourseBean() {
return listCourseBean;
}
public void setListCourseBean(List listCourseBean) {
this.listCourseBean = listCourseBean;
}

//添加课程
public String addCourse(){
try {
this.courseService.addCourse(this.courseBean);
return SUCCESS;
} catch (Exception e) {
e.printStackTrace();
return ERROR;
}
}
//列出所有课程
public String listCourse(){
try {
this.listCourseBean = this.courseService.findAllCourse();
return SUCCESS;
} catch (Exception e) {
e.printStackTrace();
return ERROR;
}
}
//ID查询课程
public String findCourseById(){
this.courseBean = this.courseService.findCourseById(this.courseBean.getId());
return SUCCESS;
}
//更新课程
public String updateCourse(){
try{
this.courseService.updateCourse(this.courseBean);
return SUCCESS;
} catch (Exception e) {
e.printStackTrace();
return ERROR;
}
}
//删除课程
public String deleteCourse(){
try {
this.courseBean = this.courseService.findCourseById(this.courseBean
.getId());
this.courseService.deleteCourse(this.courseBean);
return SUCCESS;
} catch (Exception e) {
e.printStackTrace();
return ERROR;
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       6060  2013-05-17 09:58  online_examination_system\.classpath

     文件        539  2013-05-08 08:10  online_examination_system\.myhibernatedata

     文件        348  2013-05-08 08:08  online_examination_system\.mymetadata

     文件       2178  2013-05-08 08:16  online_examination_system\.project

     文件        493  2013-05-08 08:08  online_examination_system\.settings\.jsdtscope

     文件        395  2013-05-08 08:08  online_examination_system\.settings\org.eclipse.jdt.core.prefs

     文件        513  2013-05-08 08:08  online_examination_system\.settings\org.eclipse.wst.common.component

     文件        252  2013-05-08 08:08  online_examination_system\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2013-05-08 08:08  online_examination_system\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2013-05-08 08:08  online_examination_system\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件        217  2013-05-08 08:11  online_examination_system\.settings\org.springframework.ide.eclipse.core.prefs

     文件        474  2013-05-08 08:11  online_examination_system\.springBeans

     文件       1612  2013-05-13 17:00  online_examination_system\doc\loginAction.txt

     文件        749  2013-05-19 18:14  online_examination_system\doc\onlineExamination.txt

     文件          0  2013-05-19 19:42  online_examination_system\doc\tes.txt

     文件       2117  2013-05-20 14:26  online_examination_system\src\com\online_examination_system\action\CourseAction.java

     文件       2906  2013-05-20 09:04  online_examination_system\src\com\online_examination_system\action\DeptAction.java

     文件      33521  2013-06-01 02:36  online_examination_system\src\com\online_examination_system\action\ExaminationAction.java

     文件       3144  2013-05-25 18:15  online_examination_system\src\com\online_examination_system\action\LoginAction.java

     文件       3716  2013-05-20 11:05  online_examination_system\src\com\online_examination_system\action\MajorAction.java

     文件       4226  2013-05-20 11:25  online_examination_system\src\com\online_examination_system\action\PoliticsClassAction.java

     文件       4484  2013-05-21 16:45  online_examination_system\src\com\online_examination_system\action\QuestionBankFillAction.java

     文件       4453  2013-05-21 16:26  online_examination_system\src\com\online_examination_system\action\QuestionBankJudgeAction.java

     文件       4905  2013-05-21 15:53  online_examination_system\src\com\online_examination_system\action\QuestionBankSelectAction.java

     文件       4922  2013-05-21 17:01  online_examination_system\src\com\online_examination_system\action\QuestionBankShortAnswerAction.java

     文件       3293  2013-05-20 13:57  online_examination_system\src\com\online_examination_system\action\StudentAction.java

     文件       2165  2013-05-20 13:35  online_examination_system\src\com\online_examination_system\action\TeacherAction.java

     文件        538  2013-05-12 22:09  online_examination_system\src\com\online_examination_system\bean\CourseBean.hbm.xml

     文件        446  2013-05-12 22:08  online_examination_system\src\com\online_examination_system\bean\CourseBean.java

     文件        603  2013-05-12 09:53  online_examination_system\src\com\online_examination_system\bean\DeptBean.hbm.xml

............此处省略417个文件信息

评论

共有 条评论