个人信息系统的设计与实现_第1页
个人信息系统的设计与实现_第2页
个人信息系统的设计与实现_第3页
个人信息系统的设计与实现_第4页
个人信息系统的设计与实现_第5页
已阅读5页,还剩24页未读 继续免费阅读

下载本文档

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

文档简介

河北农业大学本科毕业论文(设计)题目:个人信息系统的设计与实现个人信息系统摘要随着互联网的高速发展,人们生活水平的提高,越来越来注重个人信息的管理。以信息技术为基础,信息技术对社会进步与国民经济发展起着越来越大的促进作用,并对传统的思想观念与工作方式带来了巨大的冲击。在信息化时代,计算机已经进入了各行各业,同时也促进了各行各业的发展,因此,像以前的手工操作已经不可取了。个人管理系统的计算机软件开发是势在必行,如何利用先进的管理手段,提高人们信息管理的水平,是当今社会所面临的一个课题。提高个人管理水平,必须全方位地提高个人管理意识。只有高标准、高质量的管理才能满足企业的发展需求。面对信息时代的挑战,利用高科技手段来提高人们信息管理无疑是一条行之有效的途径。在某种意义上,信息与科技在企业管理与现代化建设中显现出越来越重要的地位。个人管理方面的信息化与科学化,已成为现代化生活水平步入高台阶的重要标志。

关键词:信息管理个人信息系统AbstractWiththehigh-speeddevelopmentofInternet,peoplelivingstandardrise,moreandmoretopayattentiontothepersonalinformationmanagement.Onthebasisofinformationtechnology,informationtechnologyonsocialprogressandthedevelopmentofnationaleconomyisplayingamoreandmorebig,andthetraditionalideasandworkingmodehasbroughtthehugeimpact.Intheinformationage,thecomputerhasenteredthefromallwalksoflife,butalsopromotethedevelopmentofallwalksoflife,therefore,themanualoperationisnotdesirableastheyoncewere.Computersoftwaredevelopmentofpersonalmanagementsystemisimperative,howtomakeuseofadvancedmanagementmethods,improvethelevelofpeople'sinformationmanagement,isasubjectoffacingtoday'ssociety.Improvesthemanagementleveloftheindividual,mustimprovethepersonalmanagementconsciousnessinallaspects.Onlyahighstandard,highqualitymanagementcanmeetthedemandofthedevelopmentoftheenterprise.Facedwiththechallengeoftheinformationage,theuseofhigh-techmeanstoimprovepeople'sinformationmanagementisundoubtedlyaneffectiveway.Inasense,informationandtechnologyinenterprisemanagementandthemodernizationconstructionofshowmoreandmoreimportantposition.Personalinformationandscientificprocessofmanagement,hasbecomeanimportantsymbolofmodernlifelevelintothehighstep.Keywords:informationmanagementinformationsystem目录TOC\o"1-3"\h\uover"; } node.onmouseout=function(){ this.className=this.className.replace("over",""); }}List<Communication>rl=CommunicationDao.getPageContent(currPage,span,loginUserId);for(Communicationcr:rl){<%if(currPage>1){%><ahref="showCommunication.jsp?cp=<%=curr1%>"><<上一页</a><%}%><%for(inti=1;i<=totalPage;i++){Strings="";if(i==currPage){s="selected";}<%if(currPage<totalPage){%>} doPost(request,response); } @Override publicvoiddoPost(HttpServletRequestrequest, HttpServletResponseresponse) throwsServletException, IOException { try{ request.setCharacterEncoding("utf-8"); }catch(UnsupportedEncodingExceptione){ //TODOAuto-generatedcatchblock e.printStackTrace(); } Stringaction=request.getParameter("action"); StringcomId=request.getParameter("comId"); StringuserId=request.getParameter("userId"); if(action.equals("addCommunication")) {//执行添加通信记录的业务操作 //获取传过来的请求参数 StringcomName=request.getParameter("comName"); System.out.println("联系人姓名:"+comName); StringcommuPhone=request.getParameter("commuPhone"); StringcommuQQ=request.getParameter("commQQ"); StringcommuJob=request.getParameter("commuJob"); StringcommuWorkPlace=request.getParameter("commuPhone"); StringcommuCity=request.getParameter("commuCity"); //将获取的请求参数封装起来 Communicationcommunication=newCommunication(); communication.setComId(comId); communication.setCommuCity(commuCity); communication.setCommuJob(commuJob); communication.setCommuPhone(commuPhone); communication.setCommuQQ(commuQQ); communication.setCommuWorkPlace(commuWorkPlace); communication.setComName(comName); communication.setUserId(userId); CommunicationDao.addCommunication(communication); //添加完日记后跳转到showDiary.jsp页面进行用户日记的显示 response.setContentType("text/html;charset=utf8"); request.getRequestDispatcher("/showCommunication.jsp").forward(request,response); } elseif(action.equals("communicationDetail")){ //执行个人通信记录的详细查看 //获取传过来的请求参数 System.out.println("查看详细通信录中的信息action:"+action); System.out.println("查看详细通讯录中的信息的comId:"+comId); System.out.println("查看详细通讯录中的信息的userID:"+userId); CommunicationcommunicationDetail=CommunicationDao.findCommunicationByUserIdAndDid(userId,comId); request.setAttribute("communicationDetail",communicationDetail); response.setContentType("test/html;charset=utf8"); request.getRequestDispatcher("/CommunicationDetail.jsp").forward(request,response); } } }个人财务管理界面代码startList=function(){ if(document.all&&document.getElementById){ navRoot=document.getElementById("nav"); for(i=0;i<navRoot.childNodes.length;i++){ node=navRoot.childNodes[i]; if(node.nodeName=="LI"){ node.onmouseover=function(){ this.className+="over"; } node.onmouseout=function(){ this.className=this.className.replace("over",""); }window.onload=startList;<%StringcpStr=request.getParameter("cp");intcurrPage=1;if(cpStr!=null){currPage=Integer.parseInt(cpStr.trim());}intspan=5;UserloginUser=(User)session.getAttribute("loginUser");StringloginUserId=loginUser.getUserId();inttotalPage=FinancialDao.getTotal(span,loginUserId);out.println(totalPage);%><%Stringsql="selectfId,inOrOut,projectfromfinancialwhereuserId='"+loginUserId+"'"+"orderbyftimedesc";List<Financial>rl=FinancialDao.getPageContent(currPage,span,loginUserId,sql);for(Financialfr:rl){%><%if(currPage>1){%><%for(inti=1;i<=totalPage;i++){Strings="";if(i==currPage){s="selected";}个人财务后台代码publicclassFinancialServletextendsHttpServlet{publicvoiddoGet(HttpServletRequestrequest, HttpServletResponseresponse)throwsServletException, IOException{ doPost(request,response); } @Override publicvoiddoPost(HttpServletRequestrequest, HttpServletResponseresponse) throwsServletException, IOException { try{ request.setCharacterEncoding("utf-8"); }catch(UnsupportedEncodingExceptione){ //TODOAuto-generatedcatchblock e.printStackTrace(); } Stringaction=request.getParameter("action"); StringfId=request.getParameter("fId"); StringuserId=request.getParameter("userId"); if(action.equals("addFinancial")) {//执行添加财务记录的业务操作 //获取传过来的请求参数 StringinOrOut=request.getParameter("inOrOut"); Stringproject=request.getParameter("project"); Stringftime=request.getParameter("ftime"); Stringfmoney=request.getParameter("fmoney"); //先将发过来的参数做类型转换 floatz_fmoney=Float.parseFloat(fmoney); intz_inOrOut=Integer.parseInt(inOrOut); DateFormatformat=newSimpleDateFormat("yyyy-MM-dd"); format.setLenient(false);//指定日期/时间解析是否不严格。 Datets=null; try{ ts=newDate(format.parse(ftime).getTime()); }catch(ParseExceptione){ //TODOAuto-generatedcatchblock System.out.println("格式化ftime财务管理的日期出现错误。"); e.printStackTrace(); } System.out.println("FinancialServlet中将字符串转换为timestamp类型:"+ts.toString()); //将当前的系统时间设置给添加时间 Datefaddtime=newDate(System.currentTimeMillis()); System.out.println("FinancialServlet中创建的系统当前时间是"+faddtime); //将获取的请求参数封装起来 Financialfinancial=newFinancial(); financial.setfId(fId); financial.setUserId(userId); financial.setInOrOut(z_inOrOut); financial.setProject(project); financial.setFtime(ts); financial.setFaddtime(faddtime); financial.setFmoney(z_fmoney); //调用相应的dao进行数据的插入nancialList.jsp").forward(request,response); FinancialDao.addFinancial(financial); response.setContentType("test/html;charset=utf8"); request.getRequestDispatcher("/financialList.jsp").forward(request,response); } elseif(action.equals("financialDetail")){ //执行个人通信记录的详细查看 //获取传过来的请求参数 System.out.println("查看详细财务信息中的信息action:"+action); System.out.println("查看详细财务记录中的信息的fId:"+fId); System.out.println("查看详细财务记录中的信息的userID:"+userId); FinancialfinancialDetail=FinancialDao.findFinancialByUserIdAndFid(userId,fId); request.setAttribute("financialDetail",financialDetail); response.setContentType("test/html;charset=utf8"); request.getRequestDispatcher("/FinancialDetail.jsp").forward(request,response); } } }4.2系统测试方案4.2.1测试原则测试应该“尽早地和不断地进行”。测试规模由小到大。4.2.2测试方法采用边写代码边测试并进行改正。4.2.3测试项目说明以登录测试为例输入输出用户名密码123456用户名不能为空zhang123456用户名或密码错误zhang密码不能为空zhang121212正确4.3系统评价在测试之前先设定测试计划,然后再按照测试计划不断的进行测试,发现了问题,找出问题,对出错的地方进行分析更改代码,再进行测试,直到能够完成既定的功能。5总结5.1发现的问题在这次毕业设计中,遇到了许多问题,印象比较深刻的是空指针的错误,不过通过对程序的运行进行跟踪最后都找出了出现问题的地方并进行了更改。5.2设计体会本系统内的五个模块都采用了统一的模板页,这样设计比较容易维修,也体现了设计的方便性。本系统的设计还采用了mvc的设计模式,这样设计可以充分发挥servlet的控制器。在这次毕业设计中,遇到了很多意想不到的问题,每次通过跟踪程序的运行过程进行错误分析时都会对以前学习的知识进行巩固并加深了理解。可以说这样不仅巩固了学习的知识同时在解决问题的过程中还锻炼了自己独立解决问题的能力。主要参考文献[1]明日科技.Java从入门到精通(第三版),清华大学出版社2003.6[2]刘俊亮,王清华.JSPWeb开发学习实录,清华大学出版社2004.3[3]叶核亚,陈道蓄.Java程序设计实用教程(第3版),电子工业出版社[4]孙晨霞,杨兴运.Java程序设计,中国计划出版社,2006.6[5]龚晓庆,张远军,陈峰面向对象系统分析(第2版),清华大学出版社,2002.3[6]李兴华,王月清.JavaWeb开发实战经典,清华大学出版社,2000.8[7]孙晨霞,马建斌,李阅历.数据库应用技术,北京邮电大学出版社,2006.2[8]柏亚军.JSP编程技巧,北京机械工业出版社,2008.9致谢经过三个多月的设计和开发,在指导张老师的指导下,个人信息系统基本开发完毕。其功能基本符合用户需求,能够完成个人信息,备忘录,通信录,日记,财务这几个模块的管理。并提供部分系统维护功能,使用户方便进行数据备份和恢复、数据删除。但是由于毕业设计时间较短,所以该系统还有许多不尽如人意的地方,比如用户界面不够美观,出错处理不够等多方面问题。这些都有待进一步改善。在系统开发过程中张老师和同学给予我很大的帮助,帮助解决了不少的难点,使得系统能及时开发完成,这里表示非常感谢。目录TOC\o"1-2"\h\z\u1. 总论 11.1 项目概况 11.2 项目建设的必要性 21.3 可行性研究工作依据 61.4 可行性研究报告的编制原则 61.5 可行性研究报告内容概要 71.6 建议引进设备清单 151.7 结论及建议 151.8 项目主要技术经济指标汇总

温馨提示

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

评论

0/150

提交评论