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

药品管理系统

药品管理系统登录注册界面

药品管理系统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_cj(
	id int primary key auto_increment comment '主键',
	cjName varchar(100) comment '类型名称',
	lxdh varchar(100) comment '联系电话'
) comment '厂家';

出入库表创建语句如下:


create table t_crk(
	id int primary key auto_increment comment '主键',
	ypId int comment '药品',
	crk varchar(100) comment '出库入库',
	num int comment '数量'
) comment '出入库';

用户表创建语句如下:


create table t_customer(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	customerName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话'
) comment '用户';

供货商表创建语句如下:


create table t_ghs(
	id int primary key auto_increment comment '主键',
	ghsName varchar(100) comment '供货商名称',
	lxdh varchar(100) comment '联系电话'
) comment '供货商';

科室表创建语句如下:


create table t_ks(
	id int primary key auto_increment comment '主键',
	ksName varchar(100) comment '供货商名称',
	lxdh 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_types(
	id int primary key auto_increment comment '主键',
	typesName varchar(100) comment '类型名称'
) comment '分类';

药品表创建语句如下:


create table t_yp(
	id int primary key auto_increment comment '主键',
	ypName varchar(100) comment '药品名称',
	typesId int comment '分类',
	cjId int comment '厂家',
	ksId int comment '科室',
	ghsId int comment '供货商',
	gg varchar(100) comment '规格',
	yl varchar(100) comment '用量',
	pic varchar(100) comment '图片',
	yxq datetime comment '有效期',
	aqz int comment '安全值',
	num int 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_cj(
	id integer,
	cjName varchar(100),
	lxdh varchar(100)
);
--厂家字段加注释
comment on column t_cj.id is '主键';
comment on column t_cj.cjName is '类型名称';
comment on column t_cj.lxdh is '联系电话';
--厂家表加注释
comment on table t_cj is '厂家';

出入库表创建语句如下:


create table t_crk(
	id integer,
	ypId int,
	crk varchar(100),
	num int
);
--出入库字段加注释
comment on column t_crk.id is '主键';
comment on column t_crk.ypId is '药品';
comment on column t_crk.crk is '出库入库';
comment on column t_crk.num is '数量';
--出入库表加注释
comment on table t_crk is '出入库';

用户表创建语句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	customerName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100)
);
--用户字段加注释
comment on column t_customer.id is '主键';
comment on column t_customer.username is '账号';
comment on column t_customer.password is '密码';
comment on column t_customer.customerName is '姓名';
comment on column t_customer.age is '年龄';
comment on column t_customer.sex is '性别';
comment on column t_customer.phone is '电话';
--用户表加注释
comment on table t_customer is '用户';

供货商表创建语句如下:


create table t_ghs(
	id integer,
	ghsName varchar(100),
	lxdh varchar(100)
);
--供货商字段加注释
comment on column t_ghs.id is '主键';
comment on column t_ghs.ghsName is '供货商名称';
comment on column t_ghs.lxdh is '联系电话';
--供货商表加注释
comment on table t_ghs is '供货商';

科室表创建语句如下:


create table t_ks(
	id integer,
	ksName varchar(100),
	lxdh varchar(100)
);
--科室字段加注释
comment on column t_ks.id is '主键';
comment on column t_ks.ksName is '供货商名称';
comment on column t_ks.lxdh is '联系电话';
--科室表加注释
comment on table t_ks 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_types(
	id integer,
	typesName varchar(100)
);
--分类字段加注释
comment on column t_types.id is '主键';
comment on column t_types.typesName is '类型名称';
--分类表加注释
comment on table t_types is '分类';

药品表创建语句如下:


create table t_yp(
	id integer,
	ypName varchar(100),
	typesId int,
	cjId int,
	ksId int,
	ghsId int,
	gg varchar(100),
	yl varchar(100),
	pic varchar(100),
	yxq datetime,
	aqz int,
	num int
);
--药品字段加注释
comment on column t_yp.id is '主键';
comment on column t_yp.ypName is '药品名称';
comment on column t_yp.typesId is '分类';
comment on column t_yp.cjId is '厂家';
comment on column t_yp.ksId is '科室';
comment on column t_yp.ghsId is '供货商';
comment on column t_yp.gg is '规格';
comment on column t_yp.yl is '用量';
comment on column t_yp.pic is '图片';
comment on column t_yp.yxq is '有效期';
comment on column t_yp.aqz is '安全值';
comment on column t_yp.num is '数量';
--药品表加注释
comment on table t_yp is '药品';

oracle特有,对应序列如下:


create sequence s_t_cj;
create sequence s_t_crk;
create sequence s_t_customer;
create sequence s_t_ghs;
create sequence s_t_ks;
create sequence s_t_ptadmin;
create sequence s_t_types;
create sequence s_t_yp;

药品管理系统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_cj(
	id int identity(1,1) primary key not null,--主键
	cjName varchar(100),--类型名称
	lxdh varchar(100)--联系电话
);

出入库表创建语句如下:


--出入库表注释
create table t_crk(
	id int identity(1,1) primary key not null,--主键
	ypId int,--药品
	crk varchar(100),--出库入库
	num int--数量
);

用户表创建语句如下:


--用户表注释
create table t_customer(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	customerName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100)--电话
);

供货商表创建语句如下:


--供货商表注释
create table t_ghs(
	id int identity(1,1) primary key not null,--主键
	ghsName varchar(100),--供货商名称
	lxdh varchar(100)--联系电话
);

科室表创建语句如下:


--科室表注释
create table t_ks(
	id int identity(1,1) primary key not null,--主键
	ksName varchar(100),--供货商名称
	lxdh 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_types(
	id int identity(1,1) primary key not null,--主键
	typesName varchar(100)--类型名称
);

药品表创建语句如下:


--药品表注释
create table t_yp(
	id int identity(1,1) primary key not null,--主键
	ypName varchar(100),--药品名称
	typesId int,--分类
	cjId int,--厂家
	ksId int,--科室
	ghsId int,--供货商
	gg varchar(100),--规格
	yl varchar(100),--用量
	pic varchar(100),--图片
	yxq datetime,--有效期
	aqz int,--安全值
	num int--数量
);

药品管理系统登录后主页

药品管理系统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_cj")
public class Cj {
//主键
@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 cjName;
//联系电话
private String lxdh;
public String getCjName() {return cjName;}
public void setCjName(String cjName) {this.cjName = cjName;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
}

出入库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_crk")
public class Crk {
//主键
@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 crk;
//数量
private Integer num;
public Integer getYpId() {return ypId;}
public void setYpId(Integer ypId) {this.ypId = ypId;}
public String getCrk() {return crk;}
public void setCrk(String crk) {this.crk = crk;}
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_customer")
public class Customer {
//主键
@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 customerName;
//年龄
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 getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
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_ghs")
public class Ghs {
//主键
@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 ghsName;
//联系电话
private String lxdh;
public String getGhsName() {return ghsName;}
public void setGhsName(String ghsName) {this.ghsName = ghsName;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
}

科室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_ks")
public class Ks {
//主键
@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 ksName;
//联系电话
private String lxdh;
public String getKsName() {return ksName;}
public void setKsName(String ksName) {this.ksName = ksName;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
}

普通管理员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_types")
public class Types {
//主键
@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 typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}

药品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 Integer typesId;
//厂家
private Integer cjId;
//科室
private Integer ksId;
//供货商
private Integer ghsId;
//规格
private String gg;
//用量
private String yl;
//图片
private String pic;
//有效期
private Date yxq;
//安全值
private Integer aqz;
//数量
private Integer num;
public String getYpName() {return ypName;}
public void setYpName(String ypName) {this.ypName = ypName;}
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
public Integer getCjId() {return cjId;}
public void setCjId(Integer cjId) {this.cjId = cjId;}
public Integer getKsId() {return ksId;}
public void setKsId(Integer ksId) {this.ksId = ksId;}
public Integer getGhsId() {return ghsId;}
public void setGhsId(Integer ghsId) {this.ghsId = ghsId;}
public String getGg() {return gg;}
public void setGg(String gg) {this.gg = gg;}
public String getYl() {return yl;}
public void setYl(String yl) {this.yl = yl;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getYxq() {return yxq;}
public void setYxq(Date yxq) {this.yxq = yxq;}
public Integer getAqz() {return aqz;}
public void setAqz(Integer aqz) {this.aqz = aqz;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
}

药品管理系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

厂家javaBean创建语句如下:


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

//厂家
public class Cj  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//类型名称
private String cjName;
//联系电话
private String lxdh;
public String getCjName() {return cjName;}
public void setCjName(String cjName) {this.cjName = cjName;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
}

出入库javaBean创建语句如下:


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

//出入库
public class Crk  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//药品
private Integer ypId;
//出库入库
private String crk;
//数量
private Integer num;
public Integer getYpId() {return ypId;}
public void setYpId(Integer ypId) {this.ypId = ypId;}
public String getCrk() {return crk;}
public void setCrk(String crk) {this.crk = crk;}
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 Customer  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 customerName;
//年龄
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 getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
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 Ghs  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//供货商名称
private String ghsName;
//联系电话
private String lxdh;
public String getGhsName() {return ghsName;}
public void setGhsName(String ghsName) {this.ghsName = ghsName;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
}

科室javaBean创建语句如下:


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

//科室
public class Ks  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//供货商名称
private String ksName;
//联系电话
private String lxdh;
public String getKsName() {return ksName;}
public void setKsName(String ksName) {this.ksName = ksName;}
public String getLxdh() {return lxdh;}
public void setLxdh(String lxdh) {this.lxdh = lxdh;}
}

普通管理员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 Types  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//类型名称
private String typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}

药品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 Integer typesId;
//厂家
private Integer cjId;
//科室
private Integer ksId;
//供货商
private Integer ghsId;
//规格
private String gg;
//用量
private String yl;
//图片
private String pic;
//有效期
private Date yxq;
//安全值
private Integer aqz;
//数量
private Integer num;
public String getYpName() {return ypName;}
public void setYpName(String ypName) {this.ypName = ypName;}
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
public Integer getCjId() {return cjId;}
public void setCjId(Integer cjId) {this.cjId = cjId;}
public Integer getKsId() {return ksId;}
public void setKsId(Integer ksId) {this.ksId = ksId;}
public Integer getGhsId() {return ghsId;}
public void setGhsId(Integer ghsId) {this.ghsId = ghsId;}
public String getGg() {return gg;}
public void setGg(String gg) {this.gg = gg;}
public String getYl() {return yl;}
public void setYl(String yl) {this.yl = yl;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getYxq() {return yxq;}
public void setYxq(Date yxq) {this.yxq = yxq;}
public Integer getAqz() {return aqz;}
public void setAqz(Integer aqz) {this.aqz = aqz;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
}

评论