




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、信息技术与工程系java程序设计课程设计报告题目: 学生成绩管理系统 班级: 学号: 姓名: 小组成员: 指导教师: 报告递交日期:2011 年 1 月 11 日一、课设题目与要求1、课程设计题目描述(1)功能要:学生成绩管理系统。该系统主要用于对学生的成绩进行综合管理。要求包括以下模块。每个模块要实现对信息的增加,删除,修改,查询 登陆模块学生信息管理 课程信息管理 成绩信息管理 学期信息管理(2)系统界面要求:要求系统具有友好的用户界面,界面简洁、操作方便;2、基本设计要求与分工(如:(1)系统安全、灵活、可靠; (2)功能齐全;(3)操作方便、简单,界面友好;小组的具体分工情况见下表:小
2、组组长成员子项目名称具体要求设计各窗口设计各窗口的创建学生信息管理模块建立学生信息增加,删除,修改,查询课程信息管理模块建立课程信息增加,删除,修改,查询整合各各模块程序完整化登陆模块设置登入成绩信息管理模块建立成绩信息增加,删除,修改,查询学期信息管理模块建立学期信息增加,删除,修改,查询)二、系统需求分析1、系统需求分析2、系统其他系统分析三、系统的总体设计1、系统总体设计框图,如下形式:学生信息管理模块登录页面模块选择服务模块课程信息管理模块成绩信息管理模块学期信息管理模块2、数据库表结构定义(如果有使用数据库)及表关系图成绩信息表列学号英语成绩nasp成绩window成绩 java成绩
3、学生信息表列学号姓名班级地址电话课程信息表列学号课程名称任教教师课时教学模式学期信息表列学号学期3、系统的界面设计图 final jbutton button = new jbutton(); button.settext(登入); button.addactionlistener(this); button.setbounds(40, 207, 106, 28); getcontentpane().add(button); final jbutton button_1 = new jbutton(); button_1.settext(退出); button_1.addactionliste
4、ner(this); button_1.setbounds(208, 207, 106, 28); getcontentpane().add(button_1); override public void actionperformed(actionevent e) / todo auto-generated method stub if(e.getactioncommand().equals(登入) string string= string.valueof(passwordfield.getpassword(); if(textfield.gettext().equals(admin)&s
5、tring.equals(123) farme1.setvisible(true); new jdialog(farme1,true); farme.setvisible(false); else joptionpane.showmessagedialog(null, 用户名或密码错误!, 提示信息,joptionpane.error_message); if(e.getactioncommand().equals(退出) system.exit(0); final jmenu menu = new jmenu();menu.settext(菜单);menubar.add(menu);fina
6、l jmenuitem newitemmenuitem = new jmenuitem();newitemmenuitem.addactionlistener(new actionlistener() public void actionperformed(final actionevent e) xueshengxinxi c=new xueshengxinxi();c.setvisible(true);dispose(););newitemmenuitem.settext(学生信息管理);menu.add(newitemmenuitem);final jmenuitem newitemme
7、nuitem_1 = new jmenuitem();newitemmenuitem_1.addactionlistener(new actionlistener() public void actionperformed(final actionevent e) kechengxinxi c=new kechengxinxi(); c.setvisible(true);dispose(););newitemmenuitem_1.settext(课程信息管理);menu.add(newitemmenuitem_1);final jmenuitem newitemmenuitem_2 = new
8、 jmenuitem();newitemmenuitem_2.addactionlistener(new actionlistener() public void actionperformed(final actionevent e) chengjixinxi c=new chengjixinxi(); c.setvisible(true);dispose(););newitemmenuitem_2.settext(成绩信息管理);menu.add(newitemmenuitem_2);final jmenuitem newitemmenuitem_3 = new jmenuitem();n
9、ewitemmenuitem_3.addactionlistener(new actionlistener() public void actionperformed(final actionevent e) xueqixinxi c=new xueqixinxi(); c.setvisible(true);dispose(););newitemmenuitem_3.settext(学期信息管理);menu.add(newitemmenuitem_3);final jmenuitem newitemmenuitem_6 = new jmenuitem();newitemmenuitem_6.a
10、ddactionlistener(new actionlistener() public void actionperformed(final actionevent e) system.exit(0););newitemmenuitem_6.settext(退出);menu.add(newitemmenuitem_6);jmenu menu_2 = new jmenu();menu_2.settext(u5173u4e8e);menubar.add(menu_2);public static void main(string args) eventqueue.invokelater(new
11、runnable() public void run() try xueshengxinxi frame = new xueshengxinxi();frame.setvisible(true); catch (exception e) e.printstacktrace(););/* * create the frame */public xueshengxinxi() super();settitle(u5b66u751fu4fe1u606fu7ba1u7406);getcontentpane().setlayout(null);setbounds(100, 100, 500, 375);
12、setdefaultcloseoperation(jframe.exit_on_close);string su,sp;su=sa;sp=123;try class.forname( com.microsoft.sqlserver.jdbc.sqlserverdriver );cn= drivermanager.getconnection( jdbc:sqlserver:/127.0.0.1:1757;databasename=学生成绩管理系统 , su, sp); catch (classnotfoundexception e1) e1.printstacktrace(); catch (s
13、qlexception e) e.printstacktrace();final jlabel label = new jlabel();label.settext(学号);label.setbounds(23, 30, 66, 18);getcontentpane().add(label);t1 = new jtextfield();t1.setbounds(95, 28, 87, 22);getcontentpane().add(t1);final jbutton button = new jbutton();button.addactionlistener(new actionliste
14、ner() public void actionperformed(final actionevent e) string sql=select * from 学生信息 where 学号=+t1.gettext()+;try sa=cn.createstatement();re=sa.executequery(sql);if(re.next()ta.settext(学号:+re.getstring(1)+n 姓名:+re.getstring(2)+n班级:+re.getstring(3)+n地址:+re.getstring(4)+n电话:+re.getstring(5); elsejoptio
15、npane.showmessagedialog(null, 失败); catch (sqlexception e1) e1.printstacktrace(););button.settext(查询);button.setbounds(188, 25, 66, 28);getcontentpane().add(button);final jbutton button_1 = new jbutton();button_1.addactionlistener(new actionlistener() public void actionperformed(final actionevent e)
16、string sql=delete from 学生信息 where 学号=+t1.gettext()+;try sa=cn.createstatement();s=sa.executeupdate(sql);if(s=1)joptionpane.showmessagedialog(null, 删除成功); elsejoptionpane.showmessagedialog(null, 失败); catch (sqlexception e1) e1.printstacktrace(););button_1.settext(删除);button_1.setbounds(260, 25, 66, 2
17、8);getcontentpane().add(button_1);ta = new jtextarea();ta.setbounds(23, 83, 354, 231);getcontentpane().add(ta);final jbutton button_2 = new jbutton();button_2.addactionlistener(new actionlistener() public void actionperformed(final actionevent e) xueshengxinxi1 c=new xueshengxinxi1();c.setvisible(tr
18、ue);dispose(););button_2.settext(增加);button_2.setbounds(331, 25, 66, 28);getcontentpane().add(button_2);final jbutton button_2_1 = new jbutton();button_2_1.addactionlistener(new actionlistener() public void actionperformed(final actionevent e) xueshengxinxi2 c=new xueshengxinxi2();c.setvisible(true)
19、;dispose(););button_2_1.settext(修改);button_2_1.setbounds(403, 25, 66, 28);getcontentpane().add(button_2_1);final jbutton button_3 = new jbutton();button_3.addactionlistener(new actionlistener() public void actionperformed(final actionevent e) shouye c=new shouye();c.setvisible(true);dispose(););fina
20、l jbutton button_1 = new jbutton();button_1.addactionlistener(new actionlistener() public void actionperformed(final actionevent e) string sql=insert into 学生信息 values(+t1.gettext()+,+t2.gettext()+,+t3.gettext()+,+t4.gettext()+,+t5.gettext()+);try sa=cn.createstatement();s=sa.executeupdate(sql);if(s=
21、1)joptionpane.showmessagedialog(null, 增加成功); elsejoptionpane.showmessagedialog(null, 增加失败); catch (sqlexception e1) e1.printstacktrace(););button_1.settext(增加);button_1.setbounds(105, 258, 106, 28);getcontentpane().add(button_1);final jbutton button = new jbutton();button.addactionlistener(new actio
22、nlistener() public void actionperformed(final actionevent e) xueshengxinxi c=new xueshengxinxi();c.setvisible(true);dispose(););button.settext(返回);button.setbounds(233, 258, 106, 28);getcontentpane().add(button);jlabel label_5 = new jlabel(new label);label_5.seticon(new imageicon(f:javau5b66u751fu62
23、10u7ee9u7ba1u7406u7cfbu7edf12.jpg);label_5.setbounds(0, 0, 492, 341);getcontentpane().add(label_5);/public xueshengxinxi2() super();settitle(u5b66u751fu4fe1u606fu4feeu6539);getcontentpane().setlayout(null);setbounds(100, 100, 500, 375);setdefaultcloseoperation(jframe.exit_on_close);string su,sp;su=s
24、a;sp=123;try class.forname( com.microsoft.sqlserver.jdbc.sqlserverdriver );cn= drivermanager.getconnection( jdbc:sqlserver:/127.0.0.1:1757;databasename=学生成绩管理系统 , su, sp); catch (classnotfoundexception e1) e1.printstacktrace(); catch (sqlexception e) e.printstacktrace();final jlabel label = new jlab
25、el();label.settext(学号);label.setbounds(28, 40, 66, 18);getcontentpane().add(label);final jlabel label_1 = new jlabel();label_1.settext(姓名);label_1.setbounds(28, 79, 66, 18);getcontentpane().add(label_1);final jlabel label_2 = new jlabel();label_2.settext(班级);label_2.setbounds(28, 114, 66, 18);getcon
26、tentpane().add(label_2);final jlabel label_3 = new jlabel();label_3.settext(班级);label_3.setbounds(28, 146, 66, 18);getcontentpane().add(label_3);final jlabel label_4 = new jlabel();label_4.settext(电话);label_4.setbounds(28, 178, 66, 18);getcontentpane().add(label_4);t1 = new jtextfield();t1.setbounds
27、(100, 38, 106, 22);getcontentpane().add(t1);t2 = new jtextfield();t2.setbounds(100, 77, 106, 22);getcontentpane().add(t2);t3 = new jtextfield();t3.setbounds(100, 112, 106, 22);getcontentpane().add(t3);t4 = new jtextfield();t4.setbounds(100, 144, 106, 22);getcontentpane().add(t4);t5 = new jtextfield(
28、);t5.setbounds(100, 176, 106, 22);getcontentpane().add(t5);final jbutton button = new jbutton();button.addactionlistener(new actionlistener() public void actionperformed(final actionevent e) string sql=update 学生信息 set 学号=+t1.gettext()+,姓名=+t2.gettext()+,班级=+t3.gettext()+,地址=+t4.gettext()+,电话=+t5.get
29、text()+ where 学号=+t1.gettext()+;try sa=cn.createstatement();s=sa.executeupdate(sql);if(s=1)joptionpane.showmessagedialog(null, 修改成功); elsejoptionpane.showmessagedialog(null, 修改失败); catch (sqlexception e1) e1.printstacktrace(););button.settext(修改);button.setbounds(53, 237, 106, 28);getcontentpane().a
30、dd(button);final jbutton button_1 = new jbutton();button_1.addactionlistener(new actionlistener() public void actionperformed(final actionevent e) xueshengxinxi c=new xueshengxinxi();c.setvisible(true);dispose(););button_1.settext(返回);button_1.setbounds(181, 237, 106, 28);getcontentpane().add(button
31、_1);final jbutton button_2 = new jbutton();button_2.addactionlistener(new actionlistener() public void actionperformed(final actionevent e) string sql=select * from 学生信息 where 学号=+t1.gettext()+;try sa=cn.createstatement();re=sa.executequery(sql);if(re.next()t1.settext(+re.getstring(1);t2.settext(+re
32、.getstring(2);t3.settext(+re.getstring(3);t4.settext(+re.getstring(4);t5.settext(+re.getstring(5); elsejoptionpane.showmessagedialog(null, 失败); catch (sqlexception e1) / todo auto-generated catch blocke1.printstacktrace(););button_2.settext(快速显示);button_2.setbounds(212, 35, 106, 28);getcontentpane()
33、.add(button_2);jlabel label_5 = new jlabel(new label);label_5.seticon(new imageicon(f:javau5b66u751fu6210u7ee9u7ba1u7406u7cfbu7edf14.jpg);label_5.setbounds(0, 0, 492, 341);getcontentpane().add(label_5);/public kechengxinxi() super();settitle(u8bfeu7a0bu4fe1u606fu7ba1u7406);getcontentpane().setlayout
34、(null);setbounds(100, 100, 500, 375);setdefaultcloseoperation(jframe.exit_on_close);string su,sp;su=sa;sp=123;try class.forname( com.microsoft.sqlserver.jdbc.sqlserverdriver );cn= drivermanager.getconnection( jdbc:sqlserver:/127.0.0.1:1757;databasename=学生成绩管理系统 , su, sp); catch (classnotfoundexcepti
35、on e1) e1.printstacktrace(); catch (sqlexception e) e.printstacktrace();final jlabel label = new jlabel();label.settext(学号);label.setbounds(23, 30, 66, 18);getcontentpane().add(label);t1 = new jtextfield();t1.setbounds(95, 28, 87, 22);getcontentpane().add(t1);final jbutton button = new jbutton();but
36、ton.addactionlistener(new actionlistener() public void actionperformed(final actionevent e) string sql=select * from 课程信息 where 学号=+t1.gettext()+;try sa=cn.createstatement();re=sa.executequery(sql);if(re.next()oo.settext(学号:+re.getstring(1)+n课程名称:+re.getstring(2)+n任教教师:+re.getstring(3)+n课时:+re.getst
37、ring(4)+n教学模式:+re.getstring(5); elsejoptionpane.showmessagedialog(null, 失败); catch (sqlexception e1) / todo auto-generated catch blocke1.printstacktrace(););button.settext(查询);button.setbounds(188, 25, 66, 28);getcontentpane().add(button);final jbutton button_1 = new jbutton();button_1.addactionlist
38、ener(new actionlistener() public void actionperformed(final actionevent e) string sql=delete from 课程信息 where 学号=+t1.gettext()+;try sa=cn.createstatement();s=sa.executeupdate(sql);if(s=1)joptionpane.showmessagedialog(null, 删除成功); elsejoptionpane.showmessagedialog(null, 失败); catch (sqlexception e1) e1
39、.printstacktrace(););button_1.settext(删除);button_1.setbounds(260, 25, 66, 28);getcontentpane().add(button_1);oo = new jtextarea();oo.setbounds(23, 83, 354, 231);getcontentpane().add(oo);final jbutton button_2 = new jbutton();button_2.addactionlistener(new actionlistener() public void actionperformed
40、(final actionevent e) kechengxinxi1 c=new kechengxinxi1();c.setvisible(true);dispose(););button_2.settext(增加);button_2.setbounds(331, 25, 66, 28);getcontentpane().add(button_2);final jbutton button_2_1 = new jbutton();button_2_1.addactionlistener(new actionlistener() public void actionperformed(fina
41、l actionevent e) kechengxinxi2 c=new kechengxinxi2();c.setvisible(true);dispose(););button_2_1.settext(修改);button_2_1.setbounds(403, 25, 66, 28);getcontentpane().add(button_2_1);final jbutton button_3 = new jbutton();button_3.addactionlistener(new actionlistener() public void actionperformed(final a
42、ctionevent e) shouye c=new shouye();c.setvisible(true);dispose(););button_3.settext(返回主页);button_3.setbounds(386, 287, 106, 28);getcontentpane().add(button_3);jlabel label_1 = new jlabel(new label);label_1.seticon(new imageicon(f:javau5b66u751fu6210u7ee9u7ba1u7406u7cfbu7edf6.jpg);label_1.setbounds(0
43、, 0, 492, 341);getcontentpane().add(label_1);public kechengxinxi1() super();settitle(u8bfeu7a0bu4fe1u606fu589eu52a0);getcontentpane().setlayout(null);setbounds(100, 100, 500, 375);setdefaultcloseoperation(jframe.exit_on_close);string su,sp;su=sa;sp=123;try class.forname( com.microsoft.sqlserver.jdbc
44、.sqlserverdriver );cn= drivermanager.getconnection( jdbc:sqlserver:/127.0.0.1:1757;databasename=学生成绩管理系统 , su, sp); catch (classnotfoundexception e1) e1.printstacktrace(); catch (sqlexception e) e.printstacktrace();final jlabel label = new jlabel();label.settext(学号);label.setbounds(82, 38, 66, 18);g
45、etcontentpane().add(label);final jlabel label_1 = new jlabel();label_1.settext(课程名称);label_1.setbounds(82, 81, 66, 18);getcontentpane().add(label_1);final jlabel label_2 = new jlabel();label_2.settext(任教教师);label_2.setbounds(82, 125, 66, 18);getcontentpane().add(label_2);final jlabel label_3 = new jlabel();label_3.settext(课时);label_3.setbounds(82, 165, 66, 18);getcontentpane().add(label_3);final jlabel label_4 = new jlabel();label_4.settext(教学模式);label_4.setbounds(82, 204, 66, 18);get
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 机械租赁合作协议与合同
- 食品生产许可授权协议书
- 臭豆腐店铺转让合同范本
- 终止合同协议书文案模板
- 自建房商业售卖合同范本
- 烘焙店用品转让合同范本
- 芯模板设备出售合同协议
- 篮球俱乐部转让合同范本
- 派遣合同三方协议书范本
- 注册造价教材转让协议书
- 管理学教学设计创新汇报
- 2024年天津市公安局滨海分局招聘警务辅助人员考试真题
- 2025至2030停车场项目发展趋势分析与未来投资战略咨询研究报告
- 装置保运方案(3篇)
- 重症心脏超声指南解读
- 职工诉求服务管理制度
- 义务教育化学课程标准(2022年版)
- 护理心绞痛课件
- 2025年高考真题-物理(江苏卷) 含答案
- 2025年高考真题-化学(安徽卷) 含答案
- 美容院商业计划书(完整版)
评论
0/150
提交评论