医疗管理系统中药品管理的设计与实现

具体要求: 采用SSM为主要技术框架,构建基于B/S的医疗管理系统中药品管理系统,该系统应该具有以下功能:

1. 前台部分

   1.1 注册登录:用户分为医生和系统管理员两个角色

   1.2 处方信息:医生通过查看药品目录及信息,选择一些药品生成处方,处方分为普通处方和特殊处方

2. 后台部分

   2.1 用户管理:对医生信息的维护

   2.2 药品供应信息管理:查询药品信息(包括在库药品查询、药品价格查询、消耗药品查询、供应商查询),通过药品目录查看药品信息

   2.3 特殊药品管理:查询特殊药品使用情况,并生成统计分析报表;对特殊药品召回功能

   2.4 药品流向记录管理:查询药品使用情况,对未使用的药品进行标记,对使用的药品查询使用者(查询使用该药的医生)

   2.5 处方信息管理:通过查新处方查看其开方人,通过查看医生查看其所开处方,查询特殊处方数目,并统计用药排名

2.2要研究解决的主要问题

本系统从前端页面设计到开发,测试,整个开发过程需要重点解决以下问题:

  1. 药品库存管理问题:在实际的运作中,由于药房里的药品种类多,数量大,药房工作人员往往不便管理统计。在药品管理中根据不同药品的需要,设置一个最高最低标准库存量。当药品库存量低于要求的最低标准时,给药房工作人员以提示,让其尽快购买该药品。当药品库存量高于设置的最高标准时,也向工作人员发出提示信息,减少相应药品的采购。

报表的生成问题:不管是普通药品的的使用,还是与特殊药品的使用,都需要进行记录,以便进行统计核算。报表的生成方便管理人员的核对,也会介绍人工记录的失误。报表及时、准确的生成,可以加快医院的运作效率。生成的报表有药品使用量报表,供应 医疗管理系统中药品管理的设计与实现登录注册界面

医疗管理系统中药品管理的设计与实现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_cf(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '处方名称',
	doctorId int comment '医生',
	content varchar(100) comment '处方说明'
) comment '处方';

处方列表表创建语句如下:


create table t_cflist(
	id int primary key auto_increment comment '主键',
	cfId int comment '处方',
	ypId int comment '药品',
	num int comment '数量'
) comment '处方列表';

医生表创建语句如下:


create table t_doctor(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码 ',
	doctorName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	qq varchar(100) comment 'QQ',
	zw varchar(100) comment '职位',
	pic varchar(100) comment '头像'
) comment '医生';

供应商表创建语句如下:


create table t_gys(
	id int primary key auto_increment comment '主键',
	gsyName varchar(100) comment '供应商',
	lxfs varchar(100) comment '联系方式'
) comment '供应商';

普通管理员表创建语句如下:


create table t_ptadmin(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码 ',
	ptadminName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话'
) comment '普通管理员';

特殊药品流向表创建语句如下:


create table t_tslx(
	id int primary key auto_increment comment '主键',
	ypId int comment '特殊药品',
	lxName varchar(100) comment '流向说明',
	fzr varchar(100) comment '负责人',
	lxdh varchar(100) comment '联系电话',
	num int comment '数量',
	showDate datetime comment '日期'
) comment '特殊药品流向';

特殊药品召回表创建语句如下:


create table t_tszh(
	id int primary key auto_increment comment '主键',
	ypId int comment '特殊药品',
	content varchar(100) comment '召回说明',
	fzr varchar(100) comment '负责人',
	lxdh varchar(100) comment '联系电话',
	num int comment '召回数量',
	showDate datetime comment '日期'
) comment '特殊药品召回';

药品表创建语句如下:


create table t_yp(
	id int primary key auto_increment comment '主键',
	ypName varchar(100) comment '药品名称',
	bh varchar(100) comment '药品编号',
	gysName varchar(100) comment '供应商名称',
	content varchar(100) comment '药品描述',
	gg varchar(100) comment '规格',
	pic varchar(100) comment '图片',
	sl int comment '目前在库数量',
	jg int comment '价格',
	types varchar(100) comment '类型'
) comment '药品';

药品领用消耗表创建语句如下:


create table t_yplyxh(
	id int primary key auto_increment comment '主键',
	ypId int comment '药品',
	doctorId int comment '医生',
	content varchar(100) comment '说明',
	num int comment '数量',
	showDate datetime comment '日期'
) comment '药品领用消耗';

医疗管理系统中药品管理的设计与实现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_cf(
	id integer,
	title varchar(100),
	doctorId int,
	content varchar(100)
);
--处方字段加注释
comment on column t_cf.id is '主键';
comment on column t_cf.title is '处方名称';
comment on column t_cf.doctorId is '医生';
comment on column t_cf.content is '处方说明';
--处方表加注释
comment on table t_cf is '处方';

处方列表表创建语句如下:


create table t_cflist(
	id integer,
	cfId int,
	ypId int,
	num int
);
--处方列表字段加注释
comment on column t_cflist.id is '主键';
comment on column t_cflist.cfId is '处方';
comment on column t_cflist.ypId is '药品';
comment on column t_cflist.num is '数量';
--处方列表表加注释
comment on table t_cflist is '处方列表';

医生表创建语句如下:


create table t_doctor(
	id integer,
	username varchar(100),
	password varchar(100),
	doctorName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	qq varchar(100),
	zw varchar(100),
	pic varchar(100)
);
--医生字段加注释
comment on column t_doctor.id is '主键';
comment on column t_doctor.username is '账号';
comment on column t_doctor.password is '密码 ';
comment on column t_doctor.doctorName is '姓名';
comment on column t_doctor.age is '年龄';
comment on column t_doctor.sex is '性别';
comment on column t_doctor.phone is '电话';
comment on column t_doctor.qq is 'QQ';
comment on column t_doctor.zw is '职位';
comment on column t_doctor.pic is '头像';
--医生表加注释
comment on table t_doctor is '医生';

供应商表创建语句如下:


create table t_gys(
	id integer,
	gsyName varchar(100),
	lxfs varchar(100)
);
--供应商字段加注释
comment on column t_gys.id is '主键';
comment on column t_gys.gsyName is '供应商';
comment on column t_gys.lxfs is '联系方式';
--供应商表加注释
comment on table t_gys is '供应商';

普通管理员表创建语句如下:


create table t_ptadmin(
	id integer,
	username varchar(100),
	password varchar(100),
	ptadminName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100)
);
--普通管理员字段加注释
comment on column t_ptadmin.id is '主键';
comment on column t_ptadmin.username is '账号';
comment on column t_ptadmin.password is '密码 ';
comment on column t_ptadmin.ptadminName is '姓名';
comment on column t_ptadmin.age is '年龄';
comment on column t_ptadmin.sex is '性别';
comment on column t_ptadmin.phone is '电话';
--普通管理员表加注释
comment on table t_ptadmin is '普通管理员';

特殊药品流向表创建语句如下:


create table t_tslx(
	id integer,
	ypId int,
	lxName varchar(100),
	fzr varchar(100),
	lxdh varchar(100),
	num int,
	showDate datetime
);
--特殊药品流向字段加注释
comment on column t_tslx.id is '主键';
comment on column t_tslx.ypId is '特殊药品';
comment on column t_tslx.lxName is '流向说明';
comment on column t_tslx.fzr is '负责人';
comment on column t_tslx.lxdh is '联系电话';
comment on column t_tslx.num is '数量';
comment on column t_tslx.showDate is '日期';
--特殊药品流向表加注释
comment on table t_tslx is '特殊药品流向';

特殊药品召回表创建语句如下:


create table t_tszh(
	id integer,
	ypId int,
	content varchar(100),
	fzr varchar(100),
	lxdh varchar(100),
	num int,
	showDate datetime
);
--特殊药品召回字段加注释
comment on column t_tszh.id is '主键';
comment on column t_tszh.ypId is '特殊药品';
comment on column t_tszh.content is '召回说明';
comment on column t_tszh.fzr is '负责人';
comment on column t_tszh.lxdh is '联系电话';
comment on column t_tszh.num is '召回数量';
comment on column t_tszh.showDate is '日期';
--特殊药品召回表加注释
comment on table t_tszh is '特殊药品召回';

药品表创建语句如下:


create table t_yp(
	id integer,
	ypName varchar(100),
	bh varchar(100),
	gysName varchar(100),
	content varchar(100),
	gg varchar(100),
	pic varchar(100),
	sl int,
	jg int,
	types varchar(100)
);
--药品字段加注释
comment on column t_yp.id is '主键';
comment on column t_yp.ypName is '药品名称';
comment on column t_yp.bh is '药品编号';
comment on column t_yp.gysName is '供应商名称';
comment on column t_yp.content is '药品描述';
comment on column t_yp.gg is '规格';
comment on column t_yp.pic is '图片';
comment on column t_yp.sl is '目前在库数量';
comment on column t_yp.jg is '价格';
comment on column t_yp.types is '类型';
--药品表加注释
comment on table t_yp is '药品';

药品领用消耗表创建语句如下:


create table t_yplyxh(
	id integer,
	ypId int,
	doctorId int,
	content varchar(100),
	num int,
	showDate datetime
);
--药品领用消耗字段加注释
comment on column t_yplyxh.id is '主键';
comment on column t_yplyxh.ypId is '药品';
comment on column t_yplyxh.doctorId is '医生';
comment on column t_yplyxh.content is '说明';
comment on column t_yplyxh.num is '数量';
comment on column t_yplyxh.showDate is '日期';
--药品领用消耗表加注释
comment on table t_yplyxh is '药品领用消耗';

oracle特有,对应序列如下:


create sequence s_t_cf;
create sequence s_t_cflist;
create sequence s_t_doctor;
create sequence s_t_gys;
create sequence s_t_ptadmin;
create sequence s_t_tslx;
create sequence s_t_tszh;
create sequence s_t_yp;
create sequence s_t_yplyxh;

医疗管理系统中药品管理的设计与实现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_cf(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--处方名称
	doctorId int,--医生
	content varchar(100)--处方说明
);

处方列表表创建语句如下:


--处方列表表注释
create table t_cflist(
	id int identity(1,1) primary key not null,--主键
	cfId int,--处方
	ypId int,--药品
	num int--数量
);

医生表创建语句如下:


--医生表注释
create table t_doctor(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码 
	doctorName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	qq varchar(100),--QQ
	zw varchar(100),--职位
	pic varchar(100)--头像
);

供应商表创建语句如下:


--供应商表注释
create table t_gys(
	id int identity(1,1) primary key not null,--主键
	gsyName varchar(100),--供应商
	lxfs varchar(100)--联系方式
);

普通管理员表创建语句如下:


--普通管理员表注释
create table t_ptadmin(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码 
	ptadminName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100)--电话
);

特殊药品流向表创建语句如下:


--特殊药品流向表注释
create table t_tslx(
	id int identity(1,1) primary key not null,--主键
	ypId int,--特殊药品
	lxName varchar(100),--流向说明
	fzr varchar(100),--负责人
	lxdh varchar(100),--联系电话
	num int,--数量
	showDate datetime--日期
);

特殊药品召回表创建语句如下:


--特殊药品召回表注释
create table t_tszh(
	id int identity(1,1) primary key not null,--主键
	ypId int,--特殊药品
	content varchar(100),--召回说明
	fzr varchar(100),--负责人
	lxdh varchar(100),--联系电话
	num int,--召回数量
	showDate datetime--日期
);

药品表创建语句如下:


--药品表注释
create table t_yp(
	id int identity(1,1) primary key not null,--主键
	ypName varchar(100),--药品名称
	bh varchar(100),--药品编号
	gysName varchar(100),--供应商名称
	content varchar(100),--药品描述
	gg varchar(100),--规格
	pic varchar(100),--图片
	sl int,--目前在库数量
	jg int,--价格
	types varchar(100)--类型
);

药品领用消耗表创建语句如下:


--药品领用消耗表注释
create table t_yplyxh(
	id int identity(1,1) primary key not null,--主键
	ypId int,--药品
	doctorId int,--医生
	content varchar(100),--说明
	num int,--数量
	showDate datetime--日期
);

医疗管理系统中药品管理的设计与实现登录后主页

医疗管理系统中药品管理的设计与实现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_cf")
public class Cf {
//主键
@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 title;
//医生
private Integer doctorId;
//处方说明
private String content;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public Integer getDoctorId() {return doctorId;}
public void setDoctorId(Integer doctorId) {this.doctorId = doctorId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

处方列表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_cflist")
public class Cflist {
//主键
@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 cfId;
//药品
private Integer ypId;
//数量
private Integer num;
public Integer getCfId() {return cfId;}
public void setCfId(Integer cfId) {this.cfId = cfId;}
public Integer getYpId() {return ypId;}
public void setYpId(Integer ypId) {this.ypId = ypId;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
}

医生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_doctor")
public class Doctor {
//主键
@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 doctorName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//QQ
private String qq;
//职位
private String zw;
//头像
private String pic;
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 getDoctorName() {return doctorName;}
public void setDoctorName(String doctorName) {this.doctorName = doctorName;}
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 String getQq() {return qq;}
public void setQq(String qq) {this.qq = qq;}
public String getZw() {return zw;}
public void setZw(String zw) {this.zw = zw;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

供应商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_gys")
public class Gys {
//主键
@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 gsyName;
//联系方式
private String lxfs;
public String getGsyName() {return gsyName;}
public void setGsyName(String gsyName) {this.gsyName = gsyName;}
public String getLxfs() {return lxfs;}
public void setLxfs(String lxfs) {this.lxfs = lxfs;}
}

普通管理员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_ptadmin")
public class Ptadmin {
//主键
@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 ptadminName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
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 getPtadminName() {return ptadminName;}
public void setPtadminName(String ptadminName) {this.ptadminName = ptadminName;}
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;}
}

特殊药品流向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_tslx")
public class Tslx {
//主键
@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 ypId;
//流向说明
private String lxName;
//负责人
private String fzr;
//联系电话
private String lxdh;
//数量
private Integer num;
//日期
private Date showDate;
public Integer getYpId() {return ypId;}
public void setYpId(Integer ypId) {this.ypId = ypId;}
public String getLxName() {return lxName;}
public void setLxName(String lxName) {this.lxName = lxName;}
public String getFzr() {return fzr;}
public void setFzr(String fzr) {this.fzr = fzr;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

特殊药品召回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_tszh")
public class Tszh {
//主键
@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 ypId;
//召回说明
private String content;
//负责人
private String fzr;
//联系电话
private String lxdh;
//召回数量
private Integer num;
//日期
private Date showDate;
public Integer getYpId() {return ypId;}
public void setYpId(Integer ypId) {this.ypId = ypId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getFzr() {return fzr;}
public void setFzr(String fzr) {this.fzr = fzr;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

药品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_yp")
public class Yp {
//主键
@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 ypName;
//药品编号
private String bh;
//供应商名称
private String gysName;
//药品描述
private String content;
//规格
private String gg;
//图片
private String pic;
//目前在库数量
private Integer sl;
//价格
private Integer jg;
//类型
private String types;
public String getYpName() {return ypName;}
public void setYpName(String ypName) {this.ypName = ypName;}
public String getBh() {return bh;}
public void setBh(String bh) {this.bh = bh;}
public String getGysName() {return gysName;}
public void setGysName(String gysName) {this.gysName = gysName;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getGg() {return gg;}
public void setGg(String gg) {this.gg = gg;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Integer getSl() {return sl;}
public void setSl(Integer sl) {this.sl = sl;}
public Integer getJg() {return jg;}
public void setJg(Integer jg) {this.jg = jg;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
}

药品领用消耗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_yplyxh")
public class Yplyxh {
//主键
@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 ypId;
//医生
private Integer doctorId;
//说明
private String content;
//数量
private Integer num;
//日期
private Date showDate;
public Integer getYpId() {return ypId;}
public void setYpId(Integer ypId) {this.ypId = ypId;}
public Integer getDoctorId() {return doctorId;}
public void setDoctorId(Integer doctorId) {this.doctorId = doctorId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

医疗管理系统中药品管理的设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

处方javaBean创建语句如下:


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

//处方
public class Cf  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//处方名称
private String title;
//医生
private Integer doctorId;
//处方说明
private String content;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public Integer getDoctorId() {return doctorId;}
public void setDoctorId(Integer doctorId) {this.doctorId = doctorId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

处方列表javaBean创建语句如下:


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

//处方列表
public class Cflist  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//处方
private Integer cfId;
//药品
private Integer ypId;
//数量
private Integer num;
public Integer getCfId() {return cfId;}
public void setCfId(Integer cfId) {this.cfId = cfId;}
public Integer getYpId() {return ypId;}
public void setYpId(Integer ypId) {this.ypId = ypId;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
}

医生javaBean创建语句如下:


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

//医生
public class Doctor  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 doctorName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//QQ
private String qq;
//职位
private String zw;
//头像
private String pic;
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 getDoctorName() {return doctorName;}
public void setDoctorName(String doctorName) {this.doctorName = doctorName;}
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 String getQq() {return qq;}
public void setQq(String qq) {this.qq = qq;}
public String getZw() {return zw;}
public void setZw(String zw) {this.zw = zw;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

供应商javaBean创建语句如下:


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

//供应商
public class Gys  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//供应商
private String gsyName;
//联系方式
private String lxfs;
public String getGsyName() {return gsyName;}
public void setGsyName(String gsyName) {this.gsyName = gsyName;}
public String getLxfs() {return lxfs;}
public void setLxfs(String lxfs) {this.lxfs = lxfs;}
}

普通管理员javaBean创建语句如下:


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

//普通管理员
public class Ptadmin  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 ptadminName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
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 getPtadminName() {return ptadminName;}
public void setPtadminName(String ptadminName) {this.ptadminName = ptadminName;}
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;}
}

特殊药品流向javaBean创建语句如下:


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

//特殊药品流向
public class Tslx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//特殊药品
private Integer ypId;
//流向说明
private String lxName;
//负责人
private String fzr;
//联系电话
private String lxdh;
//数量
private Integer num;
//日期
private Date showDate;
public Integer getYpId() {return ypId;}
public void setYpId(Integer ypId) {this.ypId = ypId;}
public String getLxName() {return lxName;}
public void setLxName(String lxName) {this.lxName = lxName;}
public String getFzr() {return fzr;}
public void setFzr(String fzr) {this.fzr = fzr;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

特殊药品召回javaBean创建语句如下:


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

//特殊药品召回
public class Tszh  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//特殊药品
private Integer ypId;
//召回说明
private String content;
//负责人
private String fzr;
//联系电话
private String lxdh;
//召回数量
private Integer num;
//日期
private Date showDate;
public Integer getYpId() {return ypId;}
public void setYpId(Integer ypId) {this.ypId = ypId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getFzr() {return fzr;}
public void setFzr(String fzr) {this.fzr = fzr;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

药品javaBean创建语句如下:


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

//药品
public class Yp  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//药品名称
private String ypName;
//药品编号
private String bh;
//供应商名称
private String gysName;
//药品描述
private String content;
//规格
private String gg;
//图片
private String pic;
//目前在库数量
private Integer sl;
//价格
private Integer jg;
//类型
private String types;
public String getYpName() {return ypName;}
public void setYpName(String ypName) {this.ypName = ypName;}
public String getBh() {return bh;}
public void setBh(String bh) {this.bh = bh;}
public String getGysName() {return gysName;}
public void setGysName(String gysName) {this.gysName = gysName;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getGg() {return gg;}
public void setGg(String gg) {this.gg = gg;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Integer getSl() {return sl;}
public void setSl(Integer sl) {this.sl = sl;}
public Integer getJg() {return jg;}
public void setJg(Integer jg) {this.jg = jg;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
}

药品领用消耗javaBean创建语句如下:


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

//药品领用消耗
public class Yplyxh  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//药品
private Integer ypId;
//医生
private Integer doctorId;
//说明
private String content;
//数量
private Integer num;
//日期
private Date showDate;
public Integer getYpId() {return ypId;}
public void setYpId(Integer ypId) {this.ypId = ypId;}
public Integer getDoctorId() {return doctorId;}
public void setDoctorId(Integer doctorId) {this.doctorId = doctorId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}

源代码下载点这里

评论