数据库原理课程设计方案设计-科研管理系统.doc_第1页
数据库原理课程设计方案设计-科研管理系统.doc_第2页
数据库原理课程设计方案设计-科研管理系统.doc_第3页
数据库原理课程设计方案设计-科研管理系统.doc_第4页
数据库原理课程设计方案设计-科研管理系统.doc_第5页
已阅读5页,还剩25页未读 继续免费阅读

下载本文档

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

文档简介

数据库原理 课程设计方案设计 设计题目:科研管理系统专 业:软件工程/网络工程班 级:软件091/软件092/网络091学 生: 指导教师: 2011 年 秋季 学期 设计任务 建库:1个-科研管理数据库。 建表:3个-论文表、项目表、申报与获奖表。 编程:5个-输入、查询、分析、统计、输出等五个子系统。要求:(1)每组5个人,每人完成一个子系统,每个都要建立库和全部表; (2)每人写出各自的课程设计报告; (3)程序用选定的语言编写,必须上交上机调试通过的源程序。评语(教师填写) 目录1.系统规划11.1可行性分析11.1.1 运行可行性11.2划分系统11.2.1 业务调查11.3制定信息系统开发方案11.3.1划分子系统11.3.2 项目申报子系统的评价21.3.3 项目获奖评定子系统的管理21.3.4 论文管理子系统22.系统分析22.1需求确定22.2需求分析32.2.1 数据流程图32.2.2 数据字典43.系统设计63.1代码设计63.2界面设计223.3系统结构244.系统实施245.系统测试256.心得和体会257.参考文献27数据库课程设计科研管理系统1. 系统规划1.1 可行性分析 科技管理系统是基于科技管理所设计的一种管理系统,是方便主办科技活动的主办方管理申报项目所开发设计的,它具有一定的市场运行可行性,具有一定的可开发性。1.1.1 运行可行性 在本次设计中我们小组是由我们同学自己组成,大家均没有开发实例的经验,开发技术都相对比较弱,但还是具有一定技术可行性的,本系统采用JSP和Mysql 5.0开发的。1.2划分系统1.2.1 业务调查 科研管理系统的主要任务是对项目的申报,评奖,获奖分析,进行计算机化的管理,我们开发的此系统主要功能包括:项目的申报,论文的发表,项目的淘汰与获奖分析等。根据此系统的主要功能我们将系统划分为五个子系统分为输入、查询、分析、统计、输出等五个系统。1.3制定信息系统开发方案1.3.1划分子系统根据可行性分析和对业务的调查,我们将此科研管理系统划分为五个系统包括:输入、查询、分析、统计、输出。小组由五人组成其中:魏歆(组长):输入数据库。王博:项目的查询操作。蔡民可:项目的分析操作。王乐:项目的统计。张乐乐:数据的输出显示。说明:根据课设基本要求我们每个人都完成了基本数据库和基本数据表的建立。1.3.2 项目申报子系统的评价 项目申报子系统通过对申报项目的录入、删除、排序等管理,来有条理的对数据进行记录,以便日后的操作。1.3.3 项目获奖评定子系统的管理 通过项目评定子系统,来分析系统的功能、可操作性及各个方面的性能,来对项目进行分析,并确定此项目是淘汰还是获奖。1.3.4 论文管理子系统 通过论文管理子系统,对项目组对其项目所写论文的管理。2. 系统分析2.1需求确定概念模型 管理员用户名密码申报项目项目论文是否获奖项目表论文表获奖原因淘汰原因项目评定添加项 目是否2.1.1-概念模型图2.2需求分析2.2.1 数据流程图 管理员科研管理系统管理员录入显示2.1-数据流图 管理员项目申报论文发表项目评定科研管理系统管理员查找结果数据库数据库2.2-数据流图2.2.2 数据字典 数据项项目表2.3-项目表12.4-项目表2论文表2.5-论文表申报获奖表2.6-申报获奖表12.7-申报获奖表2分析表2.8-分析表 数据结构编号数据结构名属性1项目表项目编号、项目名称、项目类别、项目负责人、项目日期、项目金额2论文表论文编号、论文题目、论文内容、论文作者、论文的发表日期3申报获奖表申报序号、申报编号、申报名称、申报项目的论文作者、申报金额、项目获奖标志、申报日期、申报负责人4分析表分析的项目编号、淘汰分析、获奖分析 2.9-数据结构表1申报人申报项目评定发表管理论 文管理员MN1NN1N1 2.10-数据结构表23. 系统设计3.1代码设计构建数据库的连接:package com;import java.sql.*;public class DBopen private String dbname=root; private String password=weixin; Connection con=null; public Connection getOpen() throws ClassNotFoundException Class.forName(com.mysql.jdbc.Driver); String talname=kygl; String url=jdbc:mysql:/localhost/ +talname+?user=+dbname+&password=+password; try con=DriverManager.getConnection(url); return con; catch (SQLException e) / TODO Auto-generated catch blocke.printStackTrace();return null; 项目的录入:xm.jsp xm.jsp%response.setHeader(Cache-Control,no-cache); /Forces caches to obtain a new copy of the page from the origin serverresponse.setHeader(Cache-Control,no-store); /Directs caches not to store the page under any circumstanceresponse.setDateHeader(Expires, 0); /Causes the proxy cache to see the page as staleresponse.setHeader(Pragma,no-cache); /HTTP 1.0 backward compatibilityString exit= (String)session.getAttribute(exit1);if(exit=null)String m=请先登录; out.print(+alert(+m+)+);out.print(+window.location.href=+login.jsp+);%项目名称项目类别 项目负责人项目金额checkxm.jsp checkxm.jsp论文的录入Lw.jsp %response.setHeader(Cache-Control,no-cache); /Forces caches to obtain a new copy of the page from the origin serverresponse.setHeader(Cache-Control,no-store); /Directs caches not to store the page under any circumstanceresponse.setDateHeader(Expires, 0); /Causes the proxy cache to see the page as staleresponse.setHeader(Pragma,no-cache); /HTTP 1.0 backward compatibilityString exit= (String)session.getAttribute(exit1);if(exit=null)String m=请先登录; out.print(+alert(+m+)+);out.print(+window.location.href=+login.jsp+);%lw.jsp 作者论文题目论文内容checklw.jsp checklw.jsp申报与获奖的录入 showsbhj.jsp %response.setHeader(Cache-Control,no-cache); /Forces caches to obtain a new copy of the page from the origin serverresponse.setHeader(Cache-Control,no-store); /Directs caches not to store the page under any circumstanceresponse.setDateHeader(Expires, 0); /Causes the proxy cache to see the page as staleresponse.setHeader(Pragma,no-cache); /HTTP 1.0 backward compatibilityString exit= (String)session.getAttribute(exit1);if(exit=null)String m=请先登录; out.print(+alert(+m+)+);out.print(+window.location.href=+login.jsp+);%showsbhj.jsp项目编号论文编号项目名称论文作者项目负责人项目金额拟定日期是否获奖% DBopen DB=new DBopen(); Connection con=DB.getOpen(); String sql=select * from sbhj; Statement st=con.createStatement(); ResultSet rs=st.executeQuery(sql); while(rs.next() out.print(); out.print(+rs.getInt(xnum)+); out.print(+rs.getInt(num)+); out.print(+rs.getString(nc)+); out.print(+rs.getString(zz)+); out.print(+rs.getString(fzr)+); out.print(+rs.getFloat(je)+); out.print(+rs.getString(ndrq)+); out.print(+rs.getString(flag)+); out.print(+删除+); if(!rs.getString(flag).equals(未评定) out.print(+查看原因+); out.print(); rs.close(); st.close();%showsbhjManager.jsp %response.setHeader(Cache-Control,no-cache); /Forces caches to obtain a new copy of the page from the origin serverresponse.setHeader(Cache-Control,no-store); /Directs caches not to store the page under any circumstanceresponse.setDateHeader(Expires, 0); /Causes the proxy cache to see the page as staleresponse.setHeader(Pragma,no-cache); /HTTP 1.0 backward compatibilityString exit= (String)session.getAttribute(exit1);if(exit=null)String m=请先登录; out.print(+alert(+m+)+);out.print(+window.location.href=+login.jsp+);%showsbhjManager.jsp项目编号论文编号项目名称论文作者项目负责人项目金额拟定日期是否获奖% int i=0; DBopen DB=new DBopen(); Connection con=DB.getOpen(); String sql=select * from sbhj; Statement st=con.createStatement(); ResultSet rs=st.executeQuery(sql); while(rs.next() out.print(); out.print(+rs.getInt(xnum)+); out.print(+rs.getInt(num)+); out.print(+rs.getString(nc)+); out.print(+rs.getString(zz)+); out.print(+rs.getString(fzr)+); out.print(+rs.getFloat(je)+); out.print(+rs.getString(ndrq)+); out.print(+rs.getString(flag)+); out.print(+淘汰+); out.print(+获奖+); i+; out.print(); rs.close(); st.close();%共有个项目分析项目Yanyin.jsp %response.setHeader(Cache-Control,no-cache); /Forces caches to obtain a new copy of the page from the origin serverresponse.setHeader(Cache-Control,no-store); /Directs caches not to store the page under any circumstanceresponse.setDateHeader(Expires, 0); /Causes the proxy cache to see the page as staleresponse.setHeader(Pragma,no-cache); /HTTP 1.0 backward compatibilityString exit= (String)session.getAttribute(exit1);if(exit=null)String m=请先登录; out.print(+alert(+m+)+);out.print(+window.location.href=+login.jsp+);%yuanyi.jsp获奖评定淘汰评定% int xnum=Integer.parseInt(request.getParameter(xnum); DBopen DB=new DBopen(); Connection con=DB.getOpen(); Statement st=con.createStatement(); String sql=select * from fx where tnum=+xnum; ResultSet rs=st.executeQuery(sql); rs.next(); if(rs.getString(tao)=null) out.print(+rs.getString(jiang)+); else out.print(+rs.getString(tao)+);%查询项目 sou.jsp %response.setHeader(Cache-Control,no-cache); /Forces caches to obtain a new copy of the page from the origin serverresponse.setHeader(Cache-Control,no-store); /Directs caches not to store the page under any circumstanceresponse.setDateHeader(Expires, 0); /Causes the proxy cache to see the page as staleresponse.setHeader(Pragma,no-cache); /HTTP 1.0 backward compatibilityString exit= (String)session.getAttribute(exit1);if(exit=null)String m=请先登录; out.print(+alert(+m+)+);out.print(+window.location.href=+login.jsp+);%sou.jsp项目编号论文编号项目名称论文作者项目负责人项目金额拟定日期是否获奖% DBopen DB=new DBopen(); Connection con=DB.getOpen(); Statement st=con.createStatement(); String sou=request.getParameter(sou); String sql=select * from sbhj where nc

温馨提示

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

评论

0/150

提交评论