在线考试系统.ppt_第1页
在线考试系统.ppt_第2页
在线考试系统.ppt_第3页
在线考试系统.ppt_第4页
在线考试系统.ppt_第5页
已阅读5页,还剩16页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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

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

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

4、JFrame,a,15,个人信息界面,图1-11 UserInfoJFrame,a,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(

5、si.getSeA1(); this.textArea_2.setText(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();,a,

6、17,this.textArea_3.setText(); this.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(t

7、rue); this.textField_2.setText(+no); sumscore=0; for(int i=0;ilist_sel.size();i+) sumscore+=list_sel.get(i).getSeScore(); this.textField_3.setText(+sumscore); ,a,18,保存试卷 if(checkform()=true) if(list_sel.size()currentNO) list_sel.add(currentNO-1, GenSel(); else list_sel.set(currentNO-1, GenSel(); Sho

8、wSel(currentNO); /添加试卷 SimpleDateFormat 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().

9、trim(); p.setPscore(sumscore); p.setPvisible(VisibleType.VISIBLE); p.setPqcount(list_sel.size();,a,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(); ,a,20,项目总结,本系统从确立需求到基

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论