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

《奖学金评定管理系统设计.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)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
基于SSM框架的奖学金评定管理系统设计是一个艰巨的任务,需要将各个模块逐一设计出来,整合成一个完整的系统。 首先,系统需要具备基础的登录和权限管理功能,确保系统数据的安全性和完整性,通过角色、权限的划分来保障不同用户之间的信息隔离。在此基础上,系统需要实现课程管理、学生信息、奖项评定等核心功能。学生信息管理模块中,需要对学生的基本信息、学籍信息、获奖及过往评定情况进行维护。奖项评定模块中,需要对奖项的设定、申报、评审等各个环节进行管理。 在设计实现上,需要遵循SSM框架的分层架构,按照MVC设计模式进行开发。M层负责数据的访问,V层负责数据的显示,C层是控制层,将用户请求转发到相应的服务层进行业务逻辑的处理。同时,在使用SSM框架前,还需要选定数据访问技术(如MyBatis)以及日志处理技术(如Log4j)等。 最后,需要重点考虑系统的安全性和可扩展性。为了保障系统数据的安全性,需要对系统进行权限控制和数据加密;为了保证系统的可扩展性,需要将系统划分为不同的模块和组件,便于后期维护和升级。同时为了提高系统的性能,还可以采用分布式架构或微服务架构。 总之,基于SSM框架的奖学金评定管理系统设计,需要深入研究每个功能模块,合理运用框架技术和设计原则,兼顾系统的安全性、可扩展性和性能,从而构建出一个高效、稳定、易于维护、易于扩展的奖学金评定管理系统

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值