在线考试系统

上传人:zh****71 文档编号:144441436 上传时间:2020-09-08 格式:PPT 页数:21 大小:784.51KB
返回 下载 相关 举报
在线考试系统_第1页
第1页 / 共21页
在线考试系统_第2页
第2页 / 共21页
亲,该文档总共21页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《在线考试系统》由会员分享,可在线阅读,更多相关《在线考试系统(21页珍藏版)》请在金锄头文库上搜索。

1、1,ONLINE-TESTSYSTEM,李 阳 java4615,2,项目概述与工作进展,项目概述 在线考试系统是一个服务于老师和学生的学习系统。在系统中注册后,老师可以创建班级,并且在班级中出卷,学生申请加入班级,得到老师的同意后,可以对该班级中的试卷进行检测,检测完毕后,学生和老师都可以看到该次考试的成绩。老师可以对自己所创建的班级、班级中的学生、班级中的试卷以及个人信息进行管理,学生可以参加考试、管理自己的个人信息。 相关工作进展说明 已经实现了在线考试、电子作业、模拟考试、班级统一考试、录入试卷、考卷评阅与成绩管理等功能。,3,项目的模块划分,项目的基本模块 1.班级管理模块 2.试题

2、管理模块 3.学生管理模块 4.个人信息管理模块,4,用例图,图1-1 用例图1,5,图1-2 用例图2,6,项目的领域模型,实体关系图,图1-3 实体关系图,7,项目的物理模型,图1-4 list of references,8,项目的包介绍,src中10个包 part1 po 对象 ClassInfo PaperInfo ScoreInfo SelectionInfo StuansInfo StuInClassInfo StuInfo TeaInfo UserLogin dao 接口 dao.impl 接口实现类 service 业务层 service.impl 业务层接口实现类,图1-5

3、 包,9,项目的包介绍,src中10个包 part2 res.images 系统图片 res.dbconf JDBC文件 testsystem.enumpck 枚举 testsystem.util 工具类 testsystem.view 视图层,10,项目截图,登录页面,图1-6 MainJFrame,11,主界面,图1-7 MainJFrame,12,教师出试卷界面,图1-8 CreatePaperJFrame,13,教师查看/修改试卷信息界面,图1-9 PaperDetailJFrame,14,学生查看考试成绩,图1-10 ScoreJFrame,15,个人信息界面,图1-11 UserI

4、nfoJFrame,16,部分代码,显示试卷内容 private void ShowSel(int no) SelectionInfo si=new SelectionInfo(); /System.out.println(CreatePaperJFrame:313 +list_sel.size()+ +no); if(list_sel.size()no-1) si=list_sel.get(no-1); this.textArea.setText(si.getSequest(); this.textArea_1.setText(si.getSeA1(); this.textArea_2.se

5、tText(si.getSeA2(); this.textArea_3.setText(si.getSeA3(); this.textArea_4.setText(si.getSeA4(); boBox_1.setSelectedIndex(si.getSeans()-1); this.textField_1.setText(+si.getSeScore(); else this.textArea.setText(); this.textArea_1.setText(); this.textArea_2.setText();,17,this.textArea_3.setText(); this

6、.textArea_4.setText(); boBox_1.setSelectedIndex(0); this.textField_1.setText(); if(no=1) this.btnNewButton.setEnabled(false); else this.btnNewButton.setEnabled(true); if(list_sel.size()=no) this.btnNewButton_1.setEnabled(false); else this.btnNewButton_1.setEnabled(true); this.textField_2.setText(+no

7、); sumscore=0; for(int i=0;ilist_sel.size();i+) sumscore+=list_sel.get(i).getSeScore(); this.textField_3.setText(+sumscore); ,18,保存试卷 if(checkform()=true) if(list_sel.size()currentNO) list_sel.add(currentNO-1, GenSel(); else list_sel.set(currentNO-1, GenSel(); ShowSel(currentNO); /添加试卷 SimpleDateFor

8、mat sdf = new SimpleDateFormat(yyyy-MM-dd HH:mm:ss); PaperInfo p = new PaperInfo(); p.setCid(list.get(comboBox.getSelectedIndex()-1).getCid(); p.setPname(textField.getText().trim(); p.setPtime(sdf.format(new Date(); sumscore=Float.parseFloat(textField_3.getText().trim(); p.setPscore(sumscore); p.set

9、Pvisible(VisibleType.VISIBLE); p.setPqcount(list_sel.size();,19,final PaperInfoService pservice = new PaperInfoServiceImpl(); final SelectionInfoService selservice = new SelectionInfoServiceImpl(); /temppid临时存放试卷的id int temppid=pservice.insert(p); if(temppid!=0) if(selservice.insert_sel(list_sel, temppid) JOptionPane.showMessageDialog(null, 录入新试卷成功了!); CreatePaperJFrame.this.dispose(); ,20,项目总结,本系统从确立需求到基本功能得以实现,总共花费时间二十余天,期间因为基本功不够扎实,进度非常缓慢,遇到了许多困难,比如如何实现出试卷的功能,通过与别人的交流,上网搜寻资料,逐步解决。 通过自己实际动手操作,将二阶段学习的知识点应用到实践项目中,既夯实了我们的基础,又提高了我们的动手能力。,21,Q & A,谢谢!,

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 其它中学文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号