1 / 24

温馨宠物之家管理系统

温馨宠物之家管理系统. 孔令坤制作 klkstar@126.com. 项目简介.

Download Presentation

温馨宠物之家管理系统

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 温馨宠物之家管理系统 孔令坤制作 klkstar@126.com

  2. 项目简介 应温馨宠物之家的邀请,我公司特为此开发一套宠物医院管理系统。来维护贵公司宝贵的客户资源该项目采用B/S结构。采用当前最先进MVC开发模式开发,使用当前最流行的java语言,结合了jsp技术,servlet技术,SQL技术,javascripet技术,HTML等当前主流技术。严格遵循了MVC开发流程。该项目在安全性,扩展性,可维护性方面占了很大优势。是一个较为完美的项目。

  3. 项目简介 该项目共有11个用例 01登录 02退出 03浏览兽医信息及专长 04浏览宠物主人信息 05浏览宠物信息 06添加宠物主人 07添加宠物 08修改宠物信息 09修改宠物主人信息 10添加病例 11浏览病例

  4. 项目的基本结构

  5. 项目活动图

  6. 注册时间 宠物ID 电话 ID 昵称 种类号 姓名 M 1 属于 出生日期 宠物主人 住址 宠 物 主人ID 属于 1 种类号 M N 医生ID ID 用户名 种 类 种类名 密码 看病时间 病 例 诊断情况 诊治 医院员工 病历编号 电话 兽医号 专业号 宠物编号 M 备注(奖励) 兽医专业列表 兽医姓名 属于 N M 兽医ID 兽 医 专业 看病次数 专业号 专业名 项目E-R图

  7. 项目使用技术简介 • 1. servlet • 2. jsp • 3. javascript • 4. SQL • 5. EL • 6. JSTL

  8. 项目的类图

  9. 好的技术模块 • public ArrayList findCuromer() { • Connection conn = null; • PreparedStatement ps = null; • ResultSet rs = null; • ArrayList curomerList = new ArrayList(); • try { • conn = ConnectBean.getConnection(); • ps = conn.prepareStatement("select * from curomer "); • rs = ps.executeQuery(); • while (rs.next()) { • CuromerInfo curomerInfo = new CuromerInfo(); • int num = rs.getInt(1); • curomerInfo.setCuromerId(num + ""); • curomerInfo.setCuromerName(rs.getString(2)); • curomerInfo.setCuromerAddress(rs.getString(3)); • curomerInfo.setCuromerTel(rs.getString(4)); • curomerInfo.setCuromerEmail(rs.getString(5)); • long times = rs.getTimestamp(6).getTime(); • curomerInfo.setStringTime(times); • PetBo petBo = new PetBo(); • curomerInfo.setPetInfo(petBo.findByCuromerId(num)); • curomerList.add(curomerInfo); • } • } catch (SQLException e) { • System.out.println(e.toString()); • } catch (Exception e) { • System.out.println(e.toString()); • } finally { • try { • if (conn != null) • conn.close(); • } catch (SQLException e) { • e.printStackTrace(); • } • } • return curomerList; • }

  10. 好的技术模块 • conn = ConnectBean.getConnection(); • if(!petName.trim().equals("") && !(kindId.trim().equals(""))){ • ps = conn.prepareStatement(" select * from view_vetTable where petName=? and kindId=?"); • int tmp = Integer.parseInt(kindId); • ps.setString(1,petName); • ps.setInt(2,tmp); • }else if(!petName.trim().equals("") && (kindId.trim().equals(""))){ • ps = conn.prepareStatement(" select * from view_vetTable where petName=? "); • ps.setString(1,petName); • }else if(petName.trim().equals("") && !(kindId.trim().equals(""))){ • ps = conn.prepareStatement("select * from view_vetTable where kindId=? "); • int tmp=Integer.parseInt(kindId); • ps.setInt(1,tmp); • } • rs = ps.executeQuery();

  11. 好的技术模块 • function verifyvetName2(form,eId){ • var msg=""; • if(form.vetId[0].selected){ • msg = "请选择兽医"; • showErrorMsg(eId,msg); • return false; • }else{ • clearMsg(eId); • return(true); • } • }

  12. 好的技术模块 function getName(form){ var petId=form.cromerName.value; for(var i=0;i<form.curomerId.length;i++){ if(petId == form.curomerId[i].value){ form.curomerId[i].selected=true; break; } else{ form.curomerId[0].selected=true; } } if(form.curomerId[0].selected){ alert( "你输入的宠物主人ID不存在"); form.cromerName.value="" } }

  13. function showMedInfo(){ form1.actionId.value="viewMed"; form1.action="/klk/servlet/MedicalServlet"; form1.submit(); } function addInfo(){ form1.actionId.value="add"; form1.action="/klk/servlet/MedicalServlet"; form1.submit(); } function updateInfo(){ form1.actionId.value="update"; form1.action="/klk/servlet/PetServlet"; form1.submit(); } function showInfo(){ form1.actionId.value="show"; form1.action="/klk/servlet/PetServlet"; form1.submit(); }

  14. 好的技术模块 <c:if test="${fn:length(petInfo)!= 0}" > <c:forEach items="${petInfo}" var="petInfo"> <tr> <td height="57"><label> <input name="petId" type="radio" value="${petInfo.petId}" checked="checked" /> </label> <label></label></td> <td height="57">${petInfo.petName} &nbsp;</td> <td>${petInfo.kindInfo.kindName} &nbsp;</td> <td>${petInfo.stringDate} &nbsp;</td> <td>${petInfo.curomerInfo.curomerName} &nbsp;</td> </tr> </c:forEach> </c:if> <c:if test="${fn:length(petInfo) == 0}" > <tr><td colspan="5"> <div align="center"><span class="STYLE5">你要的信息未找到</span></div></td> </tr> </table> </c:if>

  15. 登陆界面

  16. 项目主界面

  17. 浏览兽医界面 

  18. 浏览客户界面 

  19. 浏览宠物信息 

  20. 添加宠物病历 

  21. 更新宠物信息

  22. 添加宠物主人界面 

  23. 添加宠物信息

  24. 心得体会 通过这次项目开发,让我对MVC模式有了正确的认识。也充分体会到了MVC模式开发项目带来的巨大优势。  在项目分析阶段,学会了全面的分析项目,对项目的开发流程有了完整认识。学会使用开发工具画用例图,活动图。 在项目设计阶段,学会了数据库设计,学会了类设计。对数据库中表之间的关系有了全新的认识。 学会设计类与类之间的关系。 在项目编码阶段,充分体会到了MVC 带来的好处。对今后的项目的开发积累了宝贵经验。 很感谢中心能给我们提供了这么好的机会。对前面学的知识进一步提高。 也对自己有了更全面的认识。 为今后的学习生活积累了宝贵的经验 . 在此也十分感谢我们的杨老师,全老师.他们给了我很大的帮助.谢谢老师!

More Related