更多成品,定做java毕业设计,请咨询管理员qq:2812491287

基于ssm的养老院信息管理系统,java网站毕业设计

基于ssm的养老院信息管理系统登录注册界面

基于ssm的养老院信息管理系统mysql数据库版本源码:

超级管理员表创建语句如下:


create table t_admin(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '超级管理员账号',
	password varchar(100) comment '超级管理员密码'
) comment '超级管理员';
insert into t_admin(username,password) values('admin','123456');

管护人员表创建语句如下:


create table t_ghry(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	ghryName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	gwId int comment '派遣岗位'
) comment '管护人员';

岗位表创建语句如下:


create table t_gw(
	id int primary key auto_increment comment '主键',
	gwName varchar(100) comment '岗位名称',
	zz varchar(100) comment '职责',
	gwfze varchar(100) comment '负责人',
	phone varchar(100) comment '电话'
) comment '岗位';

楼舍管理表创建语句如下:


create table t_ls(
	id int primary key auto_increment comment '主键',
	lsName varchar(100) comment '房间名称编号',
	zz varchar(100) comment '层数',
	gwfze varchar(100) comment '大楼名称编号'
) comment '楼舍管理';

老人入住表创建语句如下:


create table t_rz(
	id int primary key auto_increment comment '主键',
	rzName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	v1 varchar(100) comment '体温',
	v2 varchar(100) comment '血压',
	v3 varchar(100) comment '病史',
	v4 varchar(100) comment '亲属联系电话',
	v5 varchar(100) comment '亲属联系人',
	lsId int comment '楼舍',
	status varchar(100) comment '状态',
	inDate varchar(100) comment '入住日期'
) comment '老人入住';

管护记录表创建语句如下:


create table t_rzjl(
	id int primary key auto_increment comment '主键',
	rzId int comment '入住老人',
	ghryId int comment '管护人员',
	v1 varchar(100) comment '体温',
	v2 varchar(100) comment '血压',
	v3 varchar(100) comment '心情',
	v4 varchar(100) comment '状态',
	v5 varchar(100) comment '肤色',
	v6 varchar(100) comment '精神',
	v7 varchar(100) comment '备注'
) comment '管护记录';

基于ssm的养老院信息管理系统oracle数据库版本源码:

超级管理员表创建语句如下:


create table t_admin(
	id integer,
	username varchar(100),
	password varchar(100)
);
insert into t_admin(id,username,password) values(1,'admin','123456');
--超级管理员字段加注释
comment on column t_admin.id is '主键';
comment on column t_admin.username is '超级管理员账号';
comment on column t_admin.password is '超级管理员密码';
--超级管理员表加注释
comment on table t_admin is '超级管理员';

管护人员表创建语句如下:


create table t_ghry(
	id integer,
	username varchar(100),
	password varchar(100),
	ghryName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	gwId int
);
--管护人员字段加注释
comment on column t_ghry.id is '主键';
comment on column t_ghry.username is '账号';
comment on column t_ghry.password is '密码';
comment on column t_ghry.ghryName is '姓名';
comment on column t_ghry.age is '年龄';
comment on column t_ghry.sex is '性别';
comment on column t_ghry.phone is '电话';
comment on column t_ghry.gwId is '派遣岗位';
--管护人员表加注释
comment on table t_ghry is '管护人员';

岗位表创建语句如下:


create table t_gw(
	id integer,
	gwName varchar(100),
	zz varchar(100),
	gwfze varchar(100),
	phone varchar(100)
);
--岗位字段加注释
comment on column t_gw.id is '主键';
comment on column t_gw.gwName is '岗位名称';
comment on column t_gw.zz is '职责';
comment on column t_gw.gwfze is '负责人';
comment on column t_gw.phone is '电话';
--岗位表加注释
comment on table t_gw is '岗位';

楼舍管理表创建语句如下:


create table t_ls(
	id integer,
	lsName varchar(100),
	zz varchar(100),
	gwfze varchar(100)
);
--楼舍管理字段加注释
comment on column t_ls.id is '主键';
comment on column t_ls.lsName is '房间名称编号';
comment on column t_ls.zz is '层数';
comment on column t_ls.gwfze is '大楼名称编号';
--楼舍管理表加注释
comment on table t_ls is '楼舍管理';

老人入住表创建语句如下:


create table t_rz(
	id integer,
	rzName varchar(100),
	age varchar(100),
	sex varchar(100),
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	lsId int,
	status varchar(100),
	inDate varchar(100)
);
--老人入住字段加注释
comment on column t_rz.id is '主键';
comment on column t_rz.rzName is '姓名';
comment on column t_rz.age is '年龄';
comment on column t_rz.sex is '性别';
comment on column t_rz.v1 is '体温';
comment on column t_rz.v2 is '血压';
comment on column t_rz.v3 is '病史';
comment on column t_rz.v4 is '亲属联系电话';
comment on column t_rz.v5 is '亲属联系人';
comment on column t_rz.lsId is '楼舍';
comment on column t_rz.status is '状态';
comment on column t_rz.inDate is '入住日期';
--老人入住表加注释
comment on table t_rz is '老人入住';

管护记录表创建语句如下:


create table t_rzjl(
	id integer,
	rzId int,
	ghryId int,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	v6 varchar(100),
	v7 varchar(100)
);
--管护记录字段加注释
comment on column t_rzjl.id is '主键';
comment on column t_rzjl.rzId is '入住老人';
comment on column t_rzjl.ghryId is '管护人员';
comment on column t_rzjl.v1 is '体温';
comment on column t_rzjl.v2 is '血压';
comment on column t_rzjl.v3 is '心情';
comment on column t_rzjl.v4 is '状态';
comment on column t_rzjl.v5 is '肤色';
comment on column t_rzjl.v6 is '精神';
comment on column t_rzjl.v7 is '备注';
--管护记录表加注释
comment on table t_rzjl is '管护记录';

oracle特有,对应序列如下:


create sequence s_t_ghry;
create sequence s_t_gw;
create sequence s_t_ls;
create sequence s_t_rz;
create sequence s_t_rzjl;

基于ssm的养老院信息管理系统sqlserver数据库版本源码:

超级管理员表创建语句如下:


--超级管理员
create table t_admin(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--超级管理员账号
	password varchar(100)--超级管理员密码
);
insert into t_admin(username,password) values('admin','123456');

管护人员表创建语句如下:


--管护人员表注释
create table t_ghry(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	ghryName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	gwId int--派遣岗位
);

岗位表创建语句如下:


--岗位表注释
create table t_gw(
	id int identity(1,1) primary key not null,--主键
	gwName varchar(100),--岗位名称
	zz varchar(100),--职责
	gwfze varchar(100),--负责人
	phone varchar(100)--电话
);

楼舍管理表创建语句如下:


--楼舍管理表注释
create table t_ls(
	id int identity(1,1) primary key not null,--主键
	lsName varchar(100),--房间名称编号
	zz varchar(100),--层数
	gwfze varchar(100)--大楼名称编号
);

老人入住表创建语句如下:


--老人入住表注释
create table t_rz(
	id int identity(1,1) primary key not null,--主键
	rzName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	v1 varchar(100),--体温
	v2 varchar(100),--血压
	v3 varchar(100),--病史
	v4 varchar(100),--亲属联系电话
	v5 varchar(100),--亲属联系人
	lsId int,--楼舍
	status varchar(100),--状态
	inDate varchar(100)--入住日期
);

管护记录表创建语句如下:


--管护记录表注释
create table t_rzjl(
	id int identity(1,1) primary key not null,--主键
	rzId int,--入住老人
	ghryId int,--管护人员
	v1 varchar(100),--体温
	v2 varchar(100),--血压
	v3 varchar(100),--心情
	v4 varchar(100),--状态
	v5 varchar(100),--肤色
	v6 varchar(100),--精神
	v7 varchar(100)--备注
);

基于ssm的养老院信息管理系统登录后主页

基于ssm的养老院信息管理系统spring+springMVC+hibernate框架对象(javaBean,pojo)设计:

管护人员javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//管护人员
@Table(name = "t_ghry")
public class Ghry {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码
private String password;
//姓名
private String ghryName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//派遣岗位
private Integer gwId;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getGhryName() {return ghryName;}
public void setGhryName(String ghryName) {this.ghryName = ghryName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public Integer getGwId() {return gwId;}
public void setGwId(Integer gwId) {this.gwId = gwId;}
}

岗位javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//岗位
@Table(name = "t_gw")
public class Gw {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//岗位名称
private String gwName;
//职责
private String zz;
//负责人
private String gwfze;
//电话
private String phone;
public String getGwName() {return gwName;}
public void setGwName(String gwName) {this.gwName = gwName;}
public String getZz() {return zz;}
public void setZz(String zz) {this.zz = zz;}
public String getGwfze() {return gwfze;}
public void setGwfze(String gwfze) {this.gwfze = gwfze;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
}

楼舍管理javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//楼舍管理
@Table(name = "t_ls")
public class Ls {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//房间名称编号
private String lsName;
//层数
private String zz;
//大楼名称编号
private String gwfze;
public String getLsName() {return lsName;}
public void setLsName(String lsName) {this.lsName = lsName;}
public String getZz() {return zz;}
public void setZz(String zz) {this.zz = zz;}
public String getGwfze() {return gwfze;}
public void setGwfze(String gwfze) {this.gwfze = gwfze;}
}

老人入住javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//老人入住
@Table(name = "t_rz")
public class Rz {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//姓名
private String rzName;
//年龄
private String age;
//性别
private String sex;
//体温
private String v1;
//血压
private String v2;
//病史
private String v3;
//亲属联系电话
private String v4;
//亲属联系人
private String v5;
//楼舍
private Integer lsId;
//状态
private String status;
//入住日期
private String inDate;
public String getRzName() {return rzName;}
public void setRzName(String rzName) {this.rzName = rzName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public Integer getLsId() {return lsId;}
public void setLsId(Integer lsId) {this.lsId = lsId;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getInDate() {return inDate;}
public void setInDate(String inDate) {this.inDate = inDate;}
}

管护记录javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//管护记录
@Table(name = "t_rzjl")
public class Rzjl {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//入住老人
private Integer rzId;
//管护人员
private Integer ghryId;
//体温
private String v1;
//血压
private String v2;
//心情
private String v3;
//状态
private String v4;
//肤色
private String v5;
//精神
private String v6;
//备注
private String v7;
public Integer getRzId() {return rzId;}
public void setRzId(Integer rzId) {this.rzId = rzId;}
public Integer getGhryId() {return ghryId;}
public void setGhryId(Integer ghryId) {this.ghryId = ghryId;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
}

基于ssm的养老院信息管理系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

管护人员javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//管护人员
public class Ghry  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码
private String password;
//姓名
private String ghryName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//派遣岗位
private Integer gwId;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getGhryName() {return ghryName;}
public void setGhryName(String ghryName) {this.ghryName = ghryName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public Integer getGwId() {return gwId;}
public void setGwId(Integer gwId) {this.gwId = gwId;}
}

岗位javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//岗位
public class Gw  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//岗位名称
private String gwName;
//职责
private String zz;
//负责人
private String gwfze;
//电话
private String phone;
public String getGwName() {return gwName;}
public void setGwName(String gwName) {this.gwName = gwName;}
public String getZz() {return zz;}
public void setZz(String zz) {this.zz = zz;}
public String getGwfze() {return gwfze;}
public void setGwfze(String gwfze) {this.gwfze = gwfze;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
}

楼舍管理javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//楼舍管理
public class Ls  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//房间名称编号
private String lsName;
//层数
private String zz;
//大楼名称编号
private String gwfze;
public String getLsName() {return lsName;}
public void setLsName(String lsName) {this.lsName = lsName;}
public String getZz() {return zz;}
public void setZz(String zz) {this.zz = zz;}
public String getGwfze() {return gwfze;}
public void setGwfze(String gwfze) {this.gwfze = gwfze;}
}

老人入住javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//老人入住
public class Rz  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//姓名
private String rzName;
//年龄
private String age;
//性别
private String sex;
//体温
private String v1;
//血压
private String v2;
//病史
private String v3;
//亲属联系电话
private String v4;
//亲属联系人
private String v5;
//楼舍
private Integer lsId;
//状态
private String status;
//入住日期
private String inDate;
public String getRzName() {return rzName;}
public void setRzName(String rzName) {this.rzName = rzName;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public Integer getLsId() {return lsId;}
public void setLsId(Integer lsId) {this.lsId = lsId;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getInDate() {return inDate;}
public void setInDate(String inDate) {this.inDate = inDate;}
}

管护记录javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//管护记录
public class Rzjl  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//入住老人
private Integer rzId;
//管护人员
private Integer ghryId;
//体温
private String v1;
//血压
private String v2;
//心情
private String v3;
//状态
private String v4;
//肤色
private String v5;
//精神
private String v6;
//备注
private String v7;
public Integer getRzId() {return rzId;}
public void setRzId(Integer rzId) {this.rzId = rzId;}
public Integer getGhryId() {return ghryId;}
public void setGhryId(Integer ghryId) {this.ghryId = ghryId;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
}

评论