jsp love pet clinic source code _ "love pet clinic" system design - JSP programming graduation design

""Love Pet Clinic" System Design-JSP Programming Graduation Project" is shared by members and can be read online. For more related ""Love Pet Clinic" System Design-JSP Programming Graduation Project (31-page Collector's Edition)", please go to Renwen Library Search online.

1. The first part of the "Love Pet Clinic" system design specification, overview 1. Document description This document describes the design document of the "Love Pet Clinic" system. The system uses an object-oriented design method. First, the overall structure of the system is designed, and then each use case is designed. realization. 2. Overview of system requirements The staff of the "Love" pet clinic need to access and manage the following information in their work: the clinic's veterinarians, customers, and customers' pets. The use case diagram of the system is shown in Figure 1: Figure 1: The use case diagram of the "Love Pet Clinic" system The second part, the overall structure of the system The system is designed based on the MVC design model and adopts a three-tier architecture, as shown in Figure 2. Figure 2: Architecture of the "Love Pet Clinic" system Part 3, system design 1. Key abstractions The following key abstractions of the system can be derived from the requirements: veterinarian, specialty, pet owner, pet type, pet and pet's visit . These entities can be designed as JavaB.

2. ean classes, such as pets, have these properties: name, identification ID, type ID, and date of birth. The relationship between pet owners and pets is as follows: a pet owner can have multiple pets, and each pet belongs to one owner; each pet may visit the clinic multiple times; each veterinarian has multiple expertise, and the same expertise may have multiple a veterinarian. Figure 3 describes the key abstractions of the system, which are models of the system. Figure 3: Model of "Love Pet Clinic" system 2. Use case design When using object-oriented design, the key is to describe how those objects interact to complete the function of the use case. Usually, the mutual calling process of objects sending messages is drawn as a sequence diagram. The sequence diagram of the use case will be explained one by one below. Login A, sequence diagram B, description number class name or method name function description 1login.jspjsp page, display the login interface 2EmpServletServlet, processing staff.

3. Login request 3EmpDAO, whose verify method is responsible for accessing the employee table and verifying the user name and password 4vetsearch.jspjsp page, if the employee logs in successfully, a page is displayed for the employee to access the use case "Browse veterinarians and their professional expertise" to exit A, sequence diagram B 、Description No. Class name or method name Function description 1EmpServletServlet, which handles the staff's exit request 2HttpSessionsession object, whose invalidate method is responsible for invalidating the client's session 3login.jspjsp page, after the staff exits, the login interface is displayed to browse the veterinarian and its professional expertise A. Timing Figure B. Description No. Class name or method name Function Description 1VetServletServlet, which handles the staff's query veterinarian's request 2VetDAO its search side.

4. The law is responsible for accessing the vets, specialties, vet_specialties table to complete the search for veterinarians and their professional expertise. 3vetsearch.jspjsp page, which can be used to enter the query veterinarian name or professional conditions Information A, sequence diagram B, description number class name or method name function description 1PetServletServlet, which handles the staff's query pet owner's request, its doPost method calls its own search method 2PetDAO its searchPet method is responsible for accessing the owners, pets table to complete the query pet Owners and their pets 3petsearch.jspjsp page, you can enter the criteria for querying pet owners 4.

5. The petsearch_name.jspjsp page displays the queried pet owner and pet information Update the pet owner's information A, sequence diagram B, description number class name or method name function description 1PetOwnerServletServlet, handles staff queries and requests to update pet owners , Its doPost method calls its own search method 2PetOwnerDAO, its viewPetOwner method is responsible for accessing the owners table to complete the query of the specified pet owner's information; its updatePetOwner method is responsible for accessing the owners table to complete the update of the specified pet owner's information; 3ownerupdate.jspjsp page, showing The information of the pet owner queried can be modified. After submitting, the modification will be saved, and the updated pet owner's information will be displayed again.

6. Information. Add a new customer A, sequence diagram B, description number class name or method name function description 1PetOwnerServletServlet, processing staff's request to add a new customer Added pet owner information 4petsearch.jspjsp page, there is a button on its interface to link to the function of this use case Browse pet information A, sequence diagram B, description number class name or method name Function description 1PetServletServlet, processing staff query pet The master's request, its doPost method calls its own search method 2PetDAO, its searchPet method is responsible for access.

7、owners , pets表完成查询宠物及其主人的信息3petsearch.jspjsp页面, 可供输入查询宠物的条件4petsearch_name.jspjsp页面, 显示查询出的宠物及其主人的信息更新宠物信息A、时序图B、描述编号类名或方法名功能描述1PetServletServlet,处理职员的更新宠物信息的请求2PetDAO其selectPetById方法负责访问pets, types, owners表完成查询出指定的宠物的详细信息以供修改;其updatePet方法负责访问pets表完成更新指定的宠物的信息;3petview_name.jspjsp页面, 显示点击的某个宠物的详细信息,。

8、只可浏览,当职员点击其中的一个修改按钮后,系统呈现修改编辑界面。4petupdate.jspjsp页面, 修改宠物的编辑界面。添加新宠物A、时序图B、描述编号类名或方法名功能描述1PetServletServlet,处理职员的添加新宠物的请求2PetDAO其addPet方法负责访问pets表完成添加新宠物3petnew.jspjsp页面, 显示界面可供输入添加的宠物的信息4petsearch.jspjsp页面, 其界面上存在一个按钮可供链接到此用例的功能浏览宠物的访问历史记录A、时序图B、描述编号类名或方法名功能描述1PetVisitServletServlet,处理职员的浏览宠物的访问历史记。

9、录的请求2PetVisitDAO其searchPetVisitHistory方法负责访问visits表完成查询出指定的宠物的访问历史记录;3petview_name.jspjsp页面, 显示点击的某个宠物的详细信息,只可浏览,当职员点击其中的一个阅览病历按钮后,系统呈现宠物的访问历史记录。4petvisithistory.jspjsp页面, 显示宠物的访问历史记录。添加一次宠物的访问A、时序图B、描述编号类名或方法名功能描述1PetVisitServletServlet,处理职员的添加一次宠物的访问的请求2PetVisitDAO其addNewVisit方法负责访问visits表完成添加一次宠物。

10、的访问记录;3petview_name.jspjsp页面, 显示点击的某个宠物的详细信息,只可浏览,当职员点击其中的一个增加新病历按钮后,系统呈现添加宠物的一次访问记录的界面。4petnewvisit.jspjsp页面, 显示一个界面以便输入宠物的访问记录。5petsearch.jspjsp页面, 可供输入查询宠物的条件第四部分、数据库设计1、 逻辑设计系统的E-R图如下:2、 表设计表名功能说明vets存储兽医信息specialties存储兽医的专业特长信息vet_specialties兽医与专业特长的关联表types宠物的类型表owners宠物的主人pets存储宠物信息visits存储宠物。

11、的访问信息employee存储职员信息2.1 vets表名vets列名数据类型(精度范围)空/非空约束条件其它说明idINTNOT NULLIDENTITY(1,1) PRIMARY KEYnameVARCHAR(30)补充说明2.2 specialties表名specialties列名数据类型(精度范围)空/非空约束条件其它说明idINTNOT NULLIDENTITY(1,1) PRIMARY KEYnameVARCHAR(80)补充说明2.3 vet_specialties表名vet_specialties列名数据类型(精度范围)空/非空约束条件其它说明vet_idINTNOT NULL。

12、foreign key REFERENCES vets(id)specialty_idINTNOT NULLforeign key REFERENCES specialties(id)补充说明2.4 types表名types列名数据类型(精度范围)空/非空约束条件其它说明idINTNOT NULLIDENTITY(1,1) PRIMARY KEYnameVARCHAR(80)补充说明2.5 owners表名owners列名数据类型(精度范围)空/非空约束条件其它说明idINTNOT NULLIDENTITY(1,1) PRIMARY KEYnameVARCHAR(30)addressVARCH。

13、AR(255)cityVARCHAR(80)telephoneVARCHAR(20XX补充说明2.6 pets表名pets列名数据类型(精度范围)空/非空约束条件其它说明idINTNOT NULLIDENTITY(1,1) PRIMARY KEYnameVARCHAR(30)birth_dateDATETIMEtype_idINTNOT NULLforeign key REFERENCES types(id)owner_idINTNOT NULLforeign key REFERENCES owners(id)补充说明2.7 visits表名visits列名数据类型(精度范围)空/非空约束条件。

14、其它说明idINTNOT NULLIDENTITY(1,1) PRIMARY KEYpet_idINTNOT NULLforeign key REFERENCES pets(id)visit_dateDATETIMEdescriptionVARCHAR(255)补充说明2.8 employee表名employee列名数据类型(精度范围)空/非空约束条件其它说明nameVARCHAR(20)NOT NULLPRIMARY KEYpasswordVARCHAR(20)NOT NULL补充说明第五部分、界面设计1、 主界面设计系统的首页为登录页面,如下图所示:2、 用例界面实现登录当职员成功登录之后。

15、,出现如下界面:退出点击“退出”链接即可退出系统,如下图所示:浏览兽医及其专业特长如下图所示,输入查询的兽医的名称,点击查询按钮:查询结果如下图所示:浏览宠物主人的信息查询界面如下图所示:输入查询条件,点击查询按钮,如下图所示:查询结果如下图所示:点击链接的客户,结果如下图:更新宠物主人的信息编辑后点击“修改”按钮:结果如下图:添加新客户编辑界面如下:添加之后:浏览宠物信息输入查询条件:查询结果:点击宠物的链接:更新宠物信息编辑宠物的信息:修改结果:添加新宠物添加成功之后:浏览宠物的访问历史记录结果如下:添加一次宠物的访问编辑访问信息:添加之后:第 31 页后 记本系统主要是用于辅助孟家沟港计。

16、算机中心对全港计算机的维修进行管理,使得计算机的维修脱离一种散乱的状况。系统使用后,可以对本月各种故障维修进行记录,并可在任何时候对历史维修记录进行统计。另外,在新的维修任务发生时,技术员还可以在历史资料时浏览发生故障的机器的历史维修情况,大大方便了技术员的维修工作。本系统使用目前比较流行的VB6.0编程语言进行编写,开发过程按软件工程的基本要求分为七个步骤,即可行性报告、需求分析、项目开发计划、概要设计、详细设计、测试计划、测试分析报告。在程序开发的过程中,充分使用了VB6.0的优秀控件,例如:ListView、TreeView等控件,使得程序更加贴近系统操作人员。关键词微机管理软件工程VB。

17、控件 参考文献:1、Michael Halvorson.Microsoft Visual Basic 6.0 Professional Step by Step.美国:Microsoft出版社,19992、Microsoft Corporation.Visual Basic 6.0 Programmers Guide.美国:Microsoft出版社,19983、Microsoft.Microsoft Visual Basic 6.0 Controls Reference.美国:Microsoft出版社,19994、http:/www.vbgood.com5、http:/www.vbeden.c。

18、om6、http:/vbworld.sxnw.gov.cn7、http:/www.hongen.com/pc/program/vb致 谢经过这次实践性很强的毕业设计,管理系统基本开发完毕。其功能基本满足工作人员对维修管理的要求,能够实现维修状况的记录、工时统计以及历史维修资料查询。在这次毕业设计的过程中,无论在理论上还是在实践上,都使我学会了独立地处理项目开发过程的每一步。但是由于我是第一次独立开发软件,且本人的能力有限,该系统还有许多不尽人意之处,比如打印处理方面、程序容错方面、用户操作便利性方面等还不够完善,这还须进一步加以改进。最后,我特别感谢我们的指导老师给予我的无私帮助,使我解决了许多实现不了的难点,使得系统能及时开发完成。。

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=324120438&siteId=291194637