This is the seventh day of my participation in the August More text Challenge. For details, see: August More Text Challenge
Java graduation design project “100 sets” recommended
First, the basis and significance of the topic selection
With the development of information technology, the information management of nursing home also ushered in opportunities and challenges, we actively respond to this battle, not slack off. Because, in the future of the Internet is an open environment, the traditional management is an independent object maintenance and medical management mode, which in the present living conditions continue to improve the environment, there are a lot of limitations, has been difficult to adapt to the senior management at present, only said it for a nursing home or community clinics, arguably had gone far away, Can’t adapt to the traditional management mode. In the early stages of Internet technology, has not been widely applied in the processing, communications, home care management information system in a nursing home, before the information is a manual operation, and need more procedures, the fast pace of social life is not satisfied, the information management of nursing home, using the traditional model, which lost a lot of human material and financial resources. Different statistical query methods, repeated information problems, such a process to promote the realization of information technology, urgent need for an efficient and simple operation of the information system to improve the status quo, so in the era of development, the operation of the nursing home management system was born. Therefore, as a modern nursing home, it is necessary to establish a new information management model to deal with these new forms. Nursing home management information system is the representative work of combining medical care. It has the role of promoting the development of labor force and has the innovative significance. Information system construction is a powerful driving force for nursing home management mode and system innovation. At the same time, in the high-speed information age, nursing home management system has become the core of modern nursing home combined with medical care.
2. Research on current situation at home and abroad
Many years ago, Switzerland was known as a “pension haven”. The reason why the pension system is developed is that Switzerland is a country with a well-known aging population. Compared with other countries, China’s pension system is more perfect, otherwise it can not support the domestic status quo. The Swiss pension system has four aspects: old apartment, nursing home, nursing home and nursing home. Switzerland currently relies on this advanced pension model, which is dominated by the state and plays an important role. Individuals and units, in addition to a small part of the fund, consist of three parts. Switzerland’s social stability depends to a large extent entirely on its pension system. They found that nursing homes should be combined with information management as soon as possible, so as to improve the management level of nursing homes, follow the trend. The Swiss pension system is well known for being functional, efficient and complete.
At present, China’s nursing home industry has not been recognized by the public, the traditional concept of caring for the elderly appears in almost everyone’s mind, that the elderly without children to the nursing home, many elderly people go to the nursing home feel ashamed. There were reports on the news of abuse in filthy nursing homes. China’s pension services depend only on pensions, and the elderly without pensions have to rely on their children. Under the call of the country, it is urgent to build a modern nursing home, and implement a new management mode combining medical treatment and family. In the south of Our country has been recognized as an open area, gradually spread to the whole country, to deal with the aging of our country has brought a series of unnecessary trouble. The information management of the elderly home in Our country has been relatively backward in the early stage, it is still using software but no network. Software applications, software development in our country the company has developed a variety of nursing information management system, but most of the MIS are based on the application of the function, the current domestic nursing home not implement information management system to meet the needs of a variety of health care and modern nursing home, and also the lack of function, the level of international standard is much higher than we want to achieve international recognition, We need to make continuous efforts. In order to meet the requirements of international development, the management system of nursing home will be an urgent problem to be solved in China. Speed in recent years, the rise of IT industry in China is not what we can imagine, catching up with Europe and the United States is just around the clock, the need for a lot of information in the nursing home information management record and update can no longer rely on the traditional manual management mode, the use of IT technology management information is overwhelming, IT is a kind of labor liberation. At present, China’s economic level has been in the forefront of the world, people’s living standards and the past has a great difference, the information industry is a scientific and technological innovation, applicable to all walks of life emerging disciplines. Therefore, the information industry has not only improved the means of office, the extensive use of modern office, improve the working environment, reduce financial pressure, which is a sign of China’s scientific and technological progress, an important reflection of the improvement of people’s livelihood.
Third, the main content of this paper
Firstly, this paper summarizes the research background and significance of the nursing home management system, and analyzes the related technologies. The related technology involved in the system is further optimized and upgraded, so as to establish a perfect nursing home management system. The main research contents of this paper are as follows:
(1) On the premise of building the new system, the background and research status of the system are analyzed and summarized in detail, and the main technologies and technical difficulties adopted in the development of the system are introduced.
(2) Using software engineering ideas, analyze requirements on the basis of distinguishing functional requirements and non-functional requirements; Use demand analysis to design system business process; Then according to the above content, design the system use case diagram, describe the system design process.
(3) This paper adopts B/S architecture and MVC three-tier design pattern to build the system.
(4) After the completion of the system design, the performance of the system is tested. In the test process, the white box test method and the black box test method are adopted, and the compatibility test is carried out. Through the combination of various tests, the security and effectiveness of the system are guaranteed.
Iv. Function screenshots:
User login:
Home menu:
User management:
Elderly information Management:
Incident Record management:
Other module functions:
Five, the main code implementation:
User login:
<%@ page language="java" import="java.util.*" contentType="text/html; charset=gb2312" %> <%@ include file="iframe/head.jsp" %> <SCRIPT language=javascript> function reg() { window.location="reg.jsp"; } function lost() { window.location="lost.jsp"; } </SCRIPT> <div class="main"> <div class="narea"><div> <img height="126" src="<%=basePath%>images/zgm.jpg" width="1020"> </div></div> <div class="rmain"> <div class="tom"><div class="totitle"><span> </span></div></div> <div class="rlist"> <FORM name="loginform" method="post" action="<%=basePath %>AdminServlet"> <table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" class="rtable"> <tbody> <tr class="tr1"> <td class="rldatee daslist"></td> <td class="rltitle daslist"> <td class=" rlDatee daslist"> <td class="rldatee daslist"> </td><input type=hidden name=method value="one"/> <td class="rltitle dotlist"><input type="text" size="30" Username =" required /></td> </tr> <tr class="tr1"> <td class=" rlDatee daslist"> </td> <td class="rltitle dotlist"><input type="password" size="30" name="password" required /></td> </tr> <tr <td class=" rlDatee daslist"> </td> <td class="rltitle dotlist"> <input type="radio" name="sf" value=" administrator "> Value =" system administrator "checked> Administrator </td> </tr> <tr class="tr1"> <td class=" rlDatee DasList "></td> <td class="rltitle ">< img style="width:80px; /> </td> </tr> <tr class="tr1"> <td class="rldatee daslist"></td> <td class="rltitle daslist"> </td> </tr> </tbody> </table> </FORM> </div> </div> </div> <%@ include file="iframe/foot.jsp"%>Copy the code
Database connection:
package com.util; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class DBO { private Connection conn; private Statement stmt; Public void open() {try {class.forname ("com.mysql.jdbc.Driver"); public void open() {try {class.forname ("com.mysql.jdbc.Driver"); conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/yanglaoyuan? useSSL=false&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true","root"," 123456 "); stmt=conn.createStatement(); System.out.println(" open database connection "); } catch (Exception ex) {system.err. Println (" Error opening database: "+ ex.getMessage())); Public void close() {// connMgr.freeconnection (" Java ", conn); // connMgr.freeconnection (" Java ", conn); conn.close(); System.out.println (" release connection "); } catch (SQLException ex) {system.err. Println (" Return connection pool error: "+ ex.getMessage())); Public ResultSet executeQuery(String SQL) throws SQLException {ResultSet rs = null; /** Execute a query */ Public ResultSet executeQuery(String SQL) throws SQLException {ResultSet rs = null; rs = stmt.executeQuery(sql); System.out.println (" execute query "); return rs; Public int executeUpdate(String SQL) throws SQLException {int ret = 0; ret = stmt.executeUpdate(sql); System.out.println (" perform add, delete and change "); return ret; Public void addBatch(String SQL) throws SQLException {stmt.addBatch(SQL); Public int [] executeBatch() throws SQLException {Boolean isAuto= Conn.getautoCommit (); conn.setAutoCommit(false); int [] updateCounts = stmt.executeBatch(); // conn.commit(); // conn.setAutoCommit(isAuto); //conn.setAutoCommit(true); return updateCounts; } public boolean getAutoCommit() throws SQLException { return conn.getAutoCommit(); } public void setAutoCommit(boolean auto) throws SQLException { conn.setAutoCommit(auto); } public void commit() throws SQLException { conn.commit(); // this.close(); } public void rollBack() throws SQLException { conn.rollback(); // this.close(); }}Copy the code
Six, source download