完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx

上传人:b****2 文档编号:3840337 上传时间:2023-05-02 格式:DOCX 页数:9 大小:18.06KB
下载 相关 举报
完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx_第1页
第1页 / 共9页
完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx_第2页
第2页 / 共9页
完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx_第3页
第3页 / 共9页
完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx_第4页
第4页 / 共9页
完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx_第5页
第5页 / 共9页
完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx_第6页
第6页 / 共9页
完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx_第7页
第7页 / 共9页
完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx_第8页
第8页 / 共9页
完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx_第9页
第9页 / 共9页
亲,该文档总共9页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx

《完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx(9页珍藏版)》请在冰点文库上搜索。

完整版javaee毕业课程设计信息管理系统需求分析Word文档下载推荐.docx

2.1系统概述1

2.2系统的组成及各模块的功能1

2.3系统的运行环境2

2.2.1硬件环境2

2.2.2软件环境2

3.系统设计2

3.1总体结构设计2

3.2数据库设计3

4.系统实现5

4.1登录模块的设计与实现5

4.2学生信息管理模块的设计与实现6

4.2.1学生信息录入的设计与实现6

4.2.2学生信息查询的设计与实现7

4.3课程信息管理模块的设计与实现8

4.3.1课程信息录入的设计与实现8

4.3.2课程信息查询的设计与实现9

4.4成绩信息管理模块的设计与实现11

4.4.1成绩信息录入的设计与实现11

4.3.2学生成绩查询的设计与实现11

5.总结12

6.源代码13

6.1项目截图13

6.2项目主要代码13

6.2.1.CjAction.java主要代码13

6.2.2.DIAction.java主要代码16

6.2.3.XsAction.java主要代码17

6.2.4其他的详细代码20

1.项目背景

随着计算机技术的不断发展,网络技术的普及范围越来越广,网络能够提供的服务多样、便捷,已经成为人们生产生活中不可缺少的重要组成部分。

越来越多的人依靠电子产品生活,而他们的日常工作也是离不开这些电子产品的。

传统的学生信息管理由于是手工操作,工作量大且容易出错,所以开发出一款学生信息管理系统系统,就显得必不可少了。

同时,也为了进一步巩固所学的J2EE语言基础知识,达到熟练编写、运用的程度;

锻炼自己的面向对象的程序设计思想,能够深刻认识面向过程与面向对象两种设计方法之间的区别;

熟练掌握具体软件开发平台下的动手能力,掌握J2EE应用程序设计的方法与技巧,实现从传统面向过程程序设计思维到面向对象程序设计思维的转型。

2.系统需求分析

2.1系统概述

学生信息管理系统采用jsp做前台,后台数据库采用sqlsever2008,本系统提供了三大模块,分别为学生信息管理、课程信息管理、成绩信息管理。

这三个模块里又有相应的子模块,通过这些模块之间的连接配合,完成操作员发出的各种指令。

本项目采用了MVC架构模式,通过对struts+.java主要代码

publicclassCjActionextendsActionSupport{

privateCjbcj;

privateCjServicecjService;

publicCjbgetCj(){returncj;

}publicvoidsetCj(Cjbcj){this.cj=cj;

}

publicvoidsetCjService(CjServicecjService){

this.cjService=cjService;

privateintpageNow=1;

privateintpageSize=8;

privateXsServicexsService;

privateKcServicekcService;

publicvoidsetXsService(XsServicexsService){

this.xsService=xsService;

publicvoidsetKcService(KcServicekcService){

this.kcService=kcService;

publicStringexecute()throwsException{

Listlist1=xsService.findAll(1,xsService.findXsSize());

Listlist2=kcService.findAll(1,kcService.findKcSize());

Maprequest=(Map)ActionContext.getContext().get("

request"

);

request.put("

list1"

list1);

request.put("

list2"

list2);

returnSUCCESS;

publicStringaddorupdateXscj()throwsException{

Cjbcj1=null;

CjbIdcjId1=newCjbId();

cjId1.setXh(cj.getId().getXh());

cjId1.setKch(cj.getId().getKch());

if(cjService.getXsCj(cj.getId().getXh(),cj.getId().getKch())==null){

cj1=newCjb();

cj1.setId(cjId1);

}else{

cj1=cjService.getXsCj(cj.getId().getXh(),

cj.getId().getKch());

Kcbkc1=kcService.find(cj.getId().getKch());

cj1.setCj(cj.getCj());

if(cj.getCj()>

60||cj.getCj()==60){

cj1.setXf(kc1.getXf());

}elsecj1.setXf(0);

cjService.saveorupdateCj(cj1);

returnSUCCESS;

publicStringfindXscj()throwsException{

Listlist=cjService.getXsCjList(cj.getId().getXh());

if(list.size()>

0){

list"

list);

returnSUCCESS;

}elsereturnERROR;

}

publicStringdeleteOneXscj()throwsException{

Stringxh=cj.getId().getXh();

Stringkch=cj.getId().getKch();

cjService.deleteCj(xh,kch);

publicStringxscjInfo()throwsException{

Listlist=cjService.findAllCj(this.getPageNow(),this.getPageSize());

Pagerpage=newPager(this.getPageNow(),cjService.findCjSize());

System.out.println(cjService.findCjSize());

page"

page);

publicintgetPageNow(){returnpageNow;

publicvoidsetPageNow(intpageNow){this.pageNow=pageNow;

publicintgetPageSize(){returnpageSize;

}

publicvoidsetPageSize(intpageSize){

this.pageSize=pageSize;

}}

6.2.2.DIAction.java主要代码

publicclassDlActionextendsActionSupport{

privateDlServicedlService;

privateDlbdl;

publicDlbgetDl(){returndl;

publicvoidsetDl(Dlbdl){this.dl=dl;

publicDlServicegetDlService(){returndlService;

publicvoidsetDlService(DlServicedlService){

this.dlService=dlService;

publicStringexecute()throwsException{

Dlbuser=dlService.find(dl.getXh(),dl.getKl());

if(user!

=null){

Mapsession=(Map)ActionContext.getContext().getSession();

session.put("

user"

user);

returnSUCCESS;

}else

returnERROR}}

6.2.3.XsAction.java主要代码

publicclassXsActionextendsActionSupport{

privateXsbxs;

privateZyServicezyService;

privateFilezpfile;

privateListlist;

publicvoidsetList(Listlist){this.list=list;

System.out.println(list.size()+"

"

publicListgetList(){returnzyService.getAll();

publicFilegetZpfile(){returnzpfile;

publicvoidsetZpfile(Filezpfile){this.zpfile=zpfile;

publicXsbgetXs(){returnxs;

publicvoidsetXs(Xsbxs){this.xs=xs;

publicXsServicegetXsService(){returnxsService;

this.xsService=xsService;

publicvoidsetPageNow(intpageNow){this.pageNow=pageNow;

publicvoidsetPageSize(intpageSize){this.pageSize=pageSize;

publicStringexecute()throwsException{

System.out.println(this.getPageNow());

Listlist=xsService.findAll(pageNow,pageSize);

Pagerpage=newPager(getPageNow(),xsService.findXsSize());

list);

publicStringgetImage()throwsException{

HttpServletResponserequest=ServletActionContext.getResponse();

Stringxh=xs.getXh();

Xsbxs3=xsService.find(xh);

byte[]img=xs3.getZp();

response.setContentType("

imagejpeg"

ServletOutputStreamos=response.getOutputStream();

if(img!

=null&

&

img.length!

=0){

for(inti=0;

i<

img.length;

i++){

os.write(img[i]);

}os.flush();

}returnNONE;

publicStringfindXs()throwsException{

Stringxh=xs.getXh();

Xsbstu2=xsService.find(xh);

Maprequest=(Map)ActionContext.getContext().get("

request.put("

xs"

stu2);

}

publicStringdeleteXs()throwsException{

xsService.delete(xh);

publicStringupdateXsView()throwsException{

XsbxsInfo=xsService.find(xh);

Listzys=zyService.getAll();

xsInfo"

xsInfo);

request.put("

zys"

zys);

publicStringupdateXs()throwsException{

Xsbxs1=xsService.find(xs.getXh());

xs1.setXm(xs.getXm());

xs1.setXb(xs.getXb());

xs1.setZyb(zyService.getOneZy(xs.getZyb().getId()));

xs1.setCssj(xs.getCssj());

xs1.setZxf(xs.getZxf());

xs1.setBz(xs.getBz());

if(this.getZpfile()!

FileInputStreamfis=newFileInputStream(this.getZpfile());

byte[]buffer=newbyte[fis.available()];

fis.read(buffer);

xs1.setZp(buffer);

xsService.update(xs1);

publicStringaddXsView()throwsException{returnSUCCESS;

publicStringaddXs()throwsException{

Xsbstu=newXsb();

Stringxh1=xs.getXh();

if(xsService.find(xh1)!

=null){returnERROR;

stu.setXh(xs.getXh());

stu.setXm(xs.getXm());

stu.setXb(xs.getXb());

stu.setCssj(xs.getCssj());

System.out.println(xs.getCssj());

stu.setZxf(xs.getZxf());

stu.setBz(xs.getBz());

stu.setZyb(zyService.getOneZy(xs.getZyb().getId()));

FileInputStreamfis=newFileInputStream(this.getZpfile());

stu.setZp(buffer);

xsService.save(stu);

publicZyServicegetZyService(){returnzyService;

publicvoidsetZyService(ZyServicezyService){

this.zyService=zyService;

}}

6.2.4其他的详细代码

关于其他的详细代码、配置文件、struts、hebernate、spring能留开发包均在xscjManage文件夹中。

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 医药卫生 > 基础医学

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2