《奖学金评定管理系统设计.doc》由会员分享,可免费在线阅读全文,更多与《(奖学金评定管理系统设计)(最终版)》相关文档资源请在帮帮文库(www.woc88.com)数亿文档库存里搜索。

1、quot重查quot);JTabletable;DefaultTableModeldtm;Stringcolumns[]={quot学号quot,quot姓名quot,quot专业班级quot,quot基础分quot,quot任职分quot,quot集体荣誉分quot,quot运动会分quot,quot校园文化分quot,quot公益活动分quot,quot等级考试分quot,quot辅修加分quot,quot学术加分quot,quot德育总分quot};Objectbody[][]=newObject[][];Connectioncon;Statementstmt;ResultSetrs;ublicStudentMoralEdiccationScore(){setTitle(quot德育成绩查询系统quot);setSize(,);table=newJTable(body,columns);表格JScrollPanesl=newJScrollPane(table);Containerc=getContentPane();csetLayout(null);xsetBounds(,,,);xsetFont(newFont(quot华文行楷quot,FontBOLD,));cadd(x);Fontf=newFont(quot楷体quot,FontPLAIN,);x[]setBounds(,,,);x[]setBounds(,,,);x[]setBounds(,,,);x[]setBounds(,,,);x

2、t(s);}ublicvoidactionPerformed(ActionEventevt){try{ClassforName(quotsunjdbcodbcJdbcOdbcDriverquot);Connectioncon=DriverManagergetConnection(quotjdbc:odbc:studentquot);stmt=concreateStatement(ResultSetTYPE_SCROLL_SENSITIVE,ResultSetCONCUR_UPDATABLE);rs=stmtexecuteQuery(quotselect*frommoralediccationscorewhere专业班级='quot+y[]getText()+quot'ORDERBY德育总分DESCquot);for(inti=;iltbodylength;i++){stmtexecuteUdate(quotudatemoralediccationscoreset德育总分=(基础分+任职分+集体荣誉分+运动会分+校园文化分+公益活动分+等级考试分+辅修加分+学术加分)where学号='quot+body[i][]+quot'quot);}}catch(Excetione){Systemerrrintln(egetMessage());}if(evtgetSource()==button){y[]setText(null);y[]setText(null);y[]setText(null);}if(evt

3、=stmtexecuteQuery(quotselect*fromcoursescorewhere专业班级='quot+y[]getText()+quot'quot);while(rsnext()){body[i][]=rsgetString(quot学号quot);body[i][]=rsgetString(quot姓名quot);body[i][]=rsgetString(quot专业班级quot);body[i][]=rsgetString(quot经济法概论quot);body[i][]=rsgetString(quot电子支付quot);body[i][]=rsgetString(quotJavaquot);body[i][]=rsgetString(quotWebquot);body[i][]=rsgetString(quot财务管理quot);body[i][]=rsgetString(quot电商管理quot);body[i][]=rsgetString(quot客户关系quot);body[i][]=rsgetString(quot生产与运作quot);body[i][]=rsgetString(quot形势政策quot);body[i][]=rsgetString(quot学科总分quot);i++;}thisreaint();tablevalidate();}catch(SQLExcetionex){Systemerrrintln(exgetMessage());}}}*ubli

4、[]setBounds(,,,);y[]setBounds(,,,);x[]setBounds(,,,);y[]setBounds(,,,);x[]setBounds(,,,);y[]setBounds(,,,);for(inti=;ilt;i++){x[i]setFont(f);cadd(x[i]);}for(intj=;jlt;j++){y[j]setFont(f);cadd(y[j]);}yaddItem(quot所有班级quot);yaddItem(quot电商班quot);yaddItem(quot电商班quot);yaddItem(quot电商班quot);yaddItem(quot电商班quot);yaddItemListener(this);ysetBounds(,,,);ysetFont(f);cadd(y);buttonsetBounds(,,,);buttonsetFont(f);cadd(button);buttonaddActionListener(this);buttonsetBounds(,,,);buttonsetFont(f);cadd(button);buttonaddActionListener(this);slsetBounds(,,,);cadd(sl);setVisible(true);}ublicvoiditemStateChanged(ItemEvente){Strings=(ygetSelectedItem())toString();y[]setTex

5、;elsetry{ClassforName(quotsunjdbcodbcJdbcOdbcDriverquot);con=DriverManagergetConnection(quotjdbc:odbc:studentquot);stmt=concreateStatement(ResultSetTYPE_SCROLL_SENSITIVE,ResultSetCONCUR_UPDATABLE);获取数据库rs=stmtexecuteQuery(quotselect*fromcoursescorewhere学号='quot+agetText()+quot'quot);}catch(Excetione){Systemerrrintln(egetMessage());}try{while(rsnext()){d[]setText(rsgetString(quot学号quot));d[]setText(rsgetString(quot姓名quot));d[]setText(rsgetString(quot专业班级quot));d[]setText(rsgetString(quot经济法概论quot));d[]setText(rsgetString(quot电子支付quot));d[]setText(rsgetString(quotJavaquot));d[]setText(rsgetString(quotWebquot));d[]setText(rsgetString(quot财务管理quot));d[]setT

6、bel(quot专业班级:quot);JTextFieldsetstudentID=newJTextField();JComboBoxsetstudentClass=newJComboBox();JTextFieldsetstudentName=newJTextField();JTextFieldgetclass=newJTextField();JButtonbtn=newJButton(quot查询quot);JButtonbtn=newJButton(quot重查quot);JTabletable;DefaultTableModeldtm;Stringcolumns[]={quot学号quot,quot姓名quot,quot专业班级quot,quot学科成绩quot,quot德育成绩quot,quot综合成绩quot,quot奖学金等级quot};Objectbody[][]=newObject[][];Connectioncon;Statementstmt;ResultSetrs;ublicScholarshiSelectSystem(){setTitle(quot奖学金评定信息查询quot);table=newJTable(body,columns);表格JScrollPanesl=newJScrollPane(table);滚动条getContentPane()setLayout(null);lbsetBounds(,,,);lbsetFont(newFont(quot华文行楷quot,Fo

7、,quotquot,quot客户关系quot,quotquot,quotstmtexecuteUdate(quotudatecoursescoreset经济法概论='quot+d[]getText()+quot',电子支付='quot+d[]getText()+quot',Java='quot+d[]getText()+quot',Web='quot+d[]getText()+quot',财务管理='quot+d[]getText()+quot',电商管理='quot+d[]getText()+quot',客户关系='quot+d[]getText()+quot',生产与运作='quot+d[]getText()+quot',形势政策='quot+d[]getText()+quot'where学号='quot+agetText()+quot'quot);newJOtionPane()showMessageDialog(null,quot学生学科成绩修改成功!quot);}catch(SQLExcetione){Systemerrrintln(egetMessage());}}});clearsetBounds(,,,);cadd(clear);clearaddActionListener(newActionListener(){ublicvoidactionPerformed(ActionEventarg){if(d[]getText()equals(quotquot)amamd[]getText()

8、;body[i][]=rsgetString(quot任职分quot);body[i][]=rsgetString(quot集体荣誉分quot);body[i][]=rsgetString(quot运动会分quot);body[i][]=rsgetString(quot校园文化分quot);body[i][]=rsgetString(quot公益活动分quot);body[i][]=rsgetString(quot等级考试分quot);body[i][]=rsgetString(quot辅修加分quot);body[i][]=rsgetString(quot学术加分quot);body[i][]=rsgetString(quot德育总分quot);i++;}thisreaint();tablereaint();表格刷新}catch(SQLExcetionex){Systemerrrintln(exgetMessage());}}}}(六)奖学金评定系统综合管理界面imortjavaawt*;imortjavaxswing*;classScholarshiSelectSystemextendsJFrameimlementsActionListener,ItemListener{JLabellb=newJLabel(quot奖学金信息查询quot);JLabellb=newJLabel(quot学号:quot);JLabellb=newJLabel(quot姓名:quot);JLabellb=newJLa

9、ext(rsgetString(quot电商管理quot));d[]setText(rsgetString(quot客户关系quot));d[]setText(rsgetString(quot生产与运作quot));d[]setText(rsgetString(quot形势政策quot));}}catch(SQLExcetione){Systemerrrintln(egetMessage());}}});savesetBounds(,,,);cadd(save);saveaddActionListener(newActionListener(){ublicvoidactionPerformed(ActionEventarg){try{ClassforName(quotsunjdbcodbcJdbcOdbcDriverquot);con=DriverManagergetConnection(quotjdbc:odbc:studentquot);stmt=concreateStatement(ResultSetTYPE_SCROLL_SENSITIVE,ResultSetCONCUR_UPDATABLE);获取数据库表rs=stmtexecuteQuery(quotselect*fromcoursescorequot);}catch(Excetione){Systemerrrintln(egetMessage());}try{quot,quotquot,quotquot,quotquot,quotquot

10、cstaticvoidmain(String[]args){JFrameframe=newStudentCourseScore();framesetDefaultCloseOeration(JFrameEXIT_ON_CLOSE);frameshow();framesetVisible(true);}*(五)学生德育成绩imortjavaawt*;imortjavaxswing*;ublicclassStudentMoralEdiccationScoreextendsJFrameimlementsActionListener,ItemListener{rivateJLabelx=newJLabel(quot学生德育成绩查询quot);rivateJLabelx[]={newJLabel(quot学院:quot),newJLabel(quot信息学院quot),newJLabel(quot系别:quot),newJLabel(quot电子商务系quot),newJLabel(quot学号:quot),newJLabel(quot姓名:quot),newJLabel(quot班级:quot)};rivateJTextFieldy[]={newJTextField(),newJTextField(),newJTextField()};JComboBoxy=newJComboBox();JButtonbutton=newJButton(quot查询quot);JButtonbutton=newJButton(

11、equals(quotquot)amamd[]getText()equals(quotquot)amamd[]getText()equals(quotquot)amamd[]getText()equals(quotquot)amamd[]getText()equals(quotquot)amamd[]getText()equals(quotquot)amamd[]getText()equals(quotquot)amamd[]getText()equals(quotquot)amamd[]getText()equals(quotquot))newJOtionPane()showMessageDialog(null,quot以上信息不能为空!quot);elsetry{asetText(null);d[]setText(null);d[]setText(null);d[]setText(null);d[]setText(null);d[]setText(null);d[]setText(null);d[]setText(null);d[]setText(null);d[]setText(null);d[]setText(null);d[]setText(null);d[]setText(null);}catch(Excetione){Systemerrrintln(egetMessage());}}});setVisible(true);}}]=null;body[x][]=null;}inti=;rs

12、getSource()==button){if(y[]getText()equals(quotquot)amamy[]getText()equals(quotquot)amamy[]getText()equals(quotquot))newJOtionPane()showMessageDialog(null,quot无效查询条件!quot);消息对话框try{for(intx=;xltbodylength;x++){body[x][]=null;body[x][]=null;body[x][]=null;body[x][]=null;body[x][]=null;body[x][]=null;body[x][]=null;body[x][]=null;body[x][]=null;body[x][]=null;body[x][]=null;body[x][]=null;body[x][]=null;}inti=;rs=stmtexecuteQuery(quotselect*frommoralediccationscorewhere专业班级='quot+y[]getText()+quot'quot);while(rsnext()){body[i][]=rsgetString(quot学号quot);body[i][]=rsgetString(quot姓名quot);body[i][]=rsgetString(quot专业班级quot);body[i][]=rsgetString(quot基础分quot)

班级奖学金管理系统java_(奖学金评定管理系统设计)(最终版)相关推荐

  1. 高校社团管理系统java_高校社团管理系统设计及实现.doc

    高校社团管理系统设计及实现 高校社团管理系统设计及实现 摘 要:根据对高校社团管理工作的考核评估,发现高校社团管理不够完善,根据需要,该项目采取了SQL Sever 2008系统以及Java语言分别将 ...

  2. JSP学生奖学金系统JSP学生评奖评优系统JSP奖学金管理系统 JSP奖学金评定系统

    JSP学生奖学金系统JSP学生评奖评优系统JSP奖学金管理系统 JSP奖学金评定系统 protected void doGet(HttpServletRequest req, HttpServletR ...

  3. c语言手机通讯系统报告书,定稿毕业论文_C语言_手机通讯录管理系统设计最终定稿(范文1)...

    <毕业论文:C语言_手机通讯录管理系统设计.doc>由会员分享,可免费在线阅读全文,更多与<(定稿)毕业论文_C语言_手机通讯录管理系统设计(最终定稿)>相关文档资源请在帮帮文 ...

  4. java婚纱影楼管理系统论文_婚纱影楼管理系统设计与实现.doc

    婚纱影楼管理系统设计与实现 爱妃玛丽婚纱影楼管理系统的设计与实现 摘要:通过走访几家影楼同时在网络上搜索影楼管理现状,发现现阶段还是有很多的影楼管理还在使用人工管理的阶段,不仅效率无法满足需求,而且有 ...

  5. 餐饮管理系统论文php,餐饮管理系统设计

    内容简介: 餐饮管理系统设计,综合课程设计,共13页,3033字,附任务书.源程序. 目 录 餐饮管理系统设计报告1 目 录1 第一章 绪 论2 1.1开发背景2 1.2开发环境2 1.3系统简介2 ...

  6. 菜谱管理系统java_无麸质管理食谱

    菜谱管理系统java 我们生活在有机食品,环保厕所,零排放汽车和无骚扰办公室的时代. 我们的管理实践必须跟上-它们必须零压力,无冲突且对白痴友好. 如果您仍然陷于旧的无用,平庸而不宽容的原始思维中,那 ...

  7. 计算机的acpi高级电源选项配置,acpi蓝屏?acpi选项?ACPI 电源管理工具最终版

    你是否正在寻找关于acpi的内容?让我把最有用的东西奉献给你: 最终版的acpi(fudan lucian) 很小哦 支持完全自定义功能 安装注意: 1.将上面的rar解压缩放入c:\sysprep目 ...

  8. 【JavaWeb】火车票管理系统 (三)用户登录-最终版

    用户登录: 1.数据库创建:用户表 users 2.前台页面: 登录页面login.jsp 主界面index.jsp 3.后台开发 前面说的差不多了从后台开始: 在前面讲了分层后,将mabits集成到 ...

  9. 【计算机毕业设计】248高校奖学金管理系统

    一.系统截图(需要演示视频可以私聊) 摘  要 21世纪的今天,随着社会的不断发展与进步,人们对于信息科学化的认识,已由低层次向高层次发展,由原来的感性认识向理性认识提高,管理工作的重要性已逐渐被人们 ...

最新文章

  1. React UI 库:React Suite 3.7.8 版本更新
  2. 前端综合能力系列之git与gitflow
  3. pysql与mysql的区别_postgresql与mysql的区别是什么
  4. C#图解教程 第十二章 数组
  5. comsol分析时总位移代表什么_超弹性材料模型的压缩分析
  6. 论文浅尝 \ 联合知识图谱实例和本体概念的通用表示学习
  7. 根据个人亲身进阶架构师经历系统构建20大进阶架构师专题!
  8. 【开发工具】之makefile基本规则
  9. C++冒泡排序(正宗版)
  10. python开发接口
  11. mysql考勤查询,查询mysql中的考勤表
  12. Sketch 56.2 Mac中文版
  13. 最优模型选择的准则:AIC、BIC准则
  14. Debian下安装Mosquitto
  15. 小程序功能(七)电子签名
  16. Python-数据库
  17. 大数据即席查询工具——秒级响应
  18. Java面试题总结2020
  19. 【编程书库】入门+进阶C语言,这几本就够了!
  20. 【财富空间】格局大不大,看这一点就知道了

热门文章

  1. 联想服务器带外管理怎么进系统,管理 Internet Explorer 中的加载项
  2. 苹果手机打开浏览器显示无法连接服务器,苹果浏览器safari打不开网页因为无法连接服务器吗?...
  3. 8 - 1 - Non-linear Hypotheses (10 min)
  4. matlab多项式操作
  5. consider increasing the maximum size of the cache. After eviction approximately [9,230] KB of data
  6. 高中数学知识点:集合知识讲解
  7. 机器学习:多重共线性
  8. archlinux安装到美化
  9. Booting kernel failed
  10. Sugar BI:如何设置数据可视化页面的用户权限