java healthcare management system

Record learning every day, have a good mood every day. * ^ _ ^ *

Thinking today, to complete a web-based java healthcare management system project, which features need to achieve?
The purpose is older by China Kangbao net open a green channel for the elderly medical and health care across the country, and truly let the elderly enjoy "sunset red" aspiration, completely solve the elderly to see a doctor is difficult and expensive status quo, thereby promote the development of China's elderly health industry. With very popular B / S architecture of current to develop as JAVA technology relying on SSM technical framework, mysql database to establish the system.
SSM (MYECLIPSE) framework for its web-based java healthcare management system, using MVC mind can greatly reduce duplication of effort. And SSM (MYECLIPSE) framework with the best development tools is MYECLIPSE. MYECLIPSE integrates a large number of plug-ins, you can better use the SSM (MYECLIPSE) for development projects, while making more effective project development.
Through careful analysis of web-based java healthcare management system system can be drawn java web-based health care system is a back-end management system project.
In such a project, the system login role is essential for each login role is set account and password. To ensure the system can log in normal use. SSM (MYECLIPSE) project included the role of administrator login user.

Summary drawn java web-based project management system of health care for all data: administrator (admin), user (yonghu), health records (jiankangdangan)

Table java-based administrator healthcare management system of the web

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | administrator the above mentioned id 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  | password

 

Table java-based user management system of health care in the web

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | user the above mentioned id 
Xingming |  VARCHAR ( 255 ) |  | Name 
nianling |  VARCHAR ( 255 ) |  | Age 
xingbie |  VARCHAR ( 255 ) |  | Sex 
Zhiwu |  VARCHAR ( 255 ) |  |Position 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  | password

 

Table java-based health records system of healthcare management of web

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | health records the above mentioned id 
Xingming |  VARCHAR ( 255 ) |  | Name 
nianliang |  VARCHAR ( 255 ) |  | Age 
xingbie |  VARCHAR ( 255 ) |  | Sex 
shentiqingkuang |  VARCHAR ( 255 ) |  | health condition

 

 

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------

-- ----------------------------

-- Table structure for ggjywebdjavaylbjglxt

-- ----------------------------

DROP TABLE IF EXISTS `t_admin`;

CREATE TABLE `t_admin` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '管理员id',`username` VARCHAR(255) DEFAULT NULL COMMENT '账号', `password` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' password ' , a PRIMARY  KEY (` id`) 

) ENGINE = MyISAM the DEFAULT the CHARSET = UTF8 the COMMENT = ' Administrators ' ; 

- ----------- ----------------- 

the DROP  TABLE  the IF  EXISTS `t_yonghu`; 

the CREATE  TABLE ` t_yonghu` ( `id` the INT ( . 11 ) the NOT  NULL the AUTO_INCREMENT the COMMENT ' user id' , `Xingming` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' name ' ,` nianling` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' Age ' , `xingbie` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' sex ' ,` zhiwu` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' post ' , `username` VARCHAR ( 255) DEFAULT NULL COMMENT '账号',`password` VARCHAR(255) DEFAULT NULL COMMENT '密码',PRIMARY KEY (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户';

-- ----------------------------

DROP TABLE IF EXISTS `t_jiankangdangan`;

CREATE TABLE `t_jiankangdangan` (`id` INT(11 ) the NOT  NULL AUTO_INCREMENT the COMMENT ' health records the above mentioned id ' , `xingming` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' name ' ,` nianliang` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' Age ' , `xingbie` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' sex ' , `shentiqingkuang` VARCHAR ( 255 ) the DEFAULT  NULLThe COMMENT ' physical condition ' , PRIMARY  KEY ( `id`) 

) ENGINE = MyISAM the DEFAULT CHARSET = utf8 the COMMENT = ' health records ' ;

 

 

Adding health record modules:

Health records system exists to add features, you can jump to the function module by clicking the Add health records, the functional modules, complete health records corresponding information. Health records contain information about the name, age, sex, physical condition, after filling out all the information, via the post method to submit data to tianjiajiankangdangan.action, the address will respond in the server tianjiajiankangdanganact method jiankangdanganController in class. Response result, for all the acquired information health records, packages jiankangdangan a class, using the insert method jiankangdangandao jiankangdanganController defined in the class, the data to be inserted jiankangdangan health records in the database table. And gives the user prompt information, health records successfully added, save the information to the message request, this information will be shown on the page. The part of the core code is as follows:

Jiankangdangandao by the insert method to add a page transfer health records to the database jiankangdangandao.insert (jiankangdangan);

Add the successful health records information, save it to a message request, the user is given the page prompt request.setAttribute ( "message", "add health records success");

Return to health records management interface

return "forward:/tianjiajiankangdangan.action";

Query module health records:

Health records implementation inquiry module is launched jiankangdanganguanli.action request page. By this request, the server response jiankangdanganController class jiankangdanganguanli, query operation data in the process by selectByexample. After all the health records information query, save it to request the jiankangdanganall in, on display in the page and return jiankangdanganguanli.jsp, the part of the core code is as follows:

Generating a sample-based health records, query by example defined JiankangdanganExample example = new JiankangdanganExample ();

Check out all the health records information List jiankangdanganall = jiankangdangandao.selectByExample (example) by selectByExample method of jiankangdangandao;

The health profile information, saved to the request, make the show request.setAttribute ( "jiankangdanganall", jiankangdanganall) page by foreach method;

Return to health records management interface

return "forward:/jiankangdanganguanli.action";

Modify health record modules:

After filling out the page modify information, click the Modify button to submit data to xiugaijiankangdangan, the package is a health record

Use update methods to modify the health profile information, synchronize data to the database, to complete the modification operation.

Modify the definition of a successful message, modify successful health records, and save it to request specific code is as follows:

Health records corresponding modified jiankangdangandao.updateByPrimaryKeySelective (jiankangdangan) by modifying the method according to the id of jiankangdangandao;

The success amend health records information, save it to a message request, the user is given prompt request.setAttribute in the page ( "message", "modify health record information successfully");

Return to health records management interface

return "forward:/jiankangdanganguanli.action";

Delete health record modules:

In the management page, click Delete. Page through the href attribute a label, use the get method the health records

Id is uploaded to the server, the server receives through jiankangdanganController class shanchujiankangdangan, after calling deleteByPrimaryKey jiankangdanganMapper method according to delete the ID. Save the information to delete the message request, the user is given delete successful message in the page, the part of the core code is as follows:

Delete the corresponding health records jiankangdangandao.deleteByPrimaryKey (id) id by removing method according to the jiankangdangandao;

Health information will be deleted successfully files saved to the message request, the user is given prompt request.setAttribute in the page ( "message", "health records deleted successfully");

Return to health records management interface

return "forward:/jiankangdanganguanli.action";

 

 

Source download

Guess you like

Origin www.cnblogs.com/xkummye/p/11642111.html