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

基于SSH框架技术的医药管理系统的设计与实现

基于SSH框架技术的医药管理系统的设计与实现登录注册界面

基于SSH框架技术的医药管理系统的设计与实现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_customer(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账户',
	password varchar(100) comment '密码',
	name varchar(100) comment '姓名',
	phone varchar(100) comment '电话',
	sex varchar(100) comment '性别',
	age varchar(100) comment '年龄'
) comment '客户';

信息警示表创建语句如下:


create table t_message(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	content varchar(100) comment '内容',
	insertDate datetime comment '日期'
) comment '信息警示';

药品表创建语句如下:


create table t_yaopin(
	id int primary key auto_increment comment '主键',
	yaopinName varchar(100) comment '药品名称',
	pic varchar(100) comment '图片',
	fee varchar(100) comment '价格',
	num int comment '数量',
	remark varchar(100) comment '备注'
) comment '药品';

药品购买表创建语句如下:


create table t_ypgm(
	id int primary key auto_increment comment '主键',
	yaopinId int comment '药品',
	zxd varchar(100) comment '执行单',
	sl int comment '数量',
	jbr varchar(100) comment '经办人',
	remark varchar(100) comment '备注',
	status varchar(100) comment '状态'
) comment '药品购买';

药品记录表创建语句如下:


create table t_ypjl(
	id int primary key auto_increment comment '主键',
	yaopinId int comment '药品',
	types varchar(100) comment '出库入库',
	sl int comment '数量',
	jbr varchar(100) comment '经办人',
	remark varchar(100) comment '备注'
) comment '药品记录';

基于SSH框架技术的医药管理系统的设计与实现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_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	phone varchar(100),
	sex varchar(100),
	age 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.name is '姓名';
comment on column t_customer.phone is '电话';
comment on column t_customer.sex is '性别';
comment on column t_customer.age is '年龄';
--客户表加注释
comment on table t_customer is '客户';

信息警示表创建语句如下:


create table t_message(
	id integer,
	title varchar(100),
	content varchar(100),
	insertDate datetime
);
--信息警示字段加注释
comment on column t_message.id is '主键';
comment on column t_message.title is '标题';
comment on column t_message.content is '内容';
comment on column t_message.insertDate is '日期';
--信息警示表加注释
comment on table t_message is '信息警示';

药品表创建语句如下:


create table t_yaopin(
	id integer,
	yaopinName varchar(100),
	pic varchar(100),
	fee varchar(100),
	num int,
	remark varchar(100)
);
--药品字段加注释
comment on column t_yaopin.id is '主键';
comment on column t_yaopin.yaopinName is '药品名称';
comment on column t_yaopin.pic is '图片';
comment on column t_yaopin.fee is '价格';
comment on column t_yaopin.num is '数量';
comment on column t_yaopin.remark is '备注';
--药品表加注释
comment on table t_yaopin is '药品';

药品购买表创建语句如下:


create table t_ypgm(
	id integer,
	yaopinId int,
	zxd varchar(100),
	sl int,
	jbr varchar(100),
	remark varchar(100),
	status varchar(100)
);
--药品购买字段加注释
comment on column t_ypgm.id is '主键';
comment on column t_ypgm.yaopinId is '药品';
comment on column t_ypgm.zxd is '执行单';
comment on column t_ypgm.sl is '数量';
comment on column t_ypgm.jbr is '经办人';
comment on column t_ypgm.remark is '备注';
comment on column t_ypgm.status is '状态';
--药品购买表加注释
comment on table t_ypgm is '药品购买';

药品记录表创建语句如下:


create table t_ypjl(
	id integer,
	yaopinId int,
	types varchar(100),
	sl int,
	jbr varchar(100),
	remark varchar(100)
);
--药品记录字段加注释
comment on column t_ypjl.id is '主键';
comment on column t_ypjl.yaopinId is '药品';
comment on column t_ypjl.types is '出库入库';
comment on column t_ypjl.sl is '数量';
comment on column t_ypjl.jbr is '经办人';
comment on column t_ypjl.remark is '备注';
--药品记录表加注释
comment on table t_ypjl is '药品记录';

oracle特有,对应序列如下:


create sequence s_t_customer;
create sequence s_t_message;
create sequence s_t_yaopin;
create sequence s_t_ypgm;
create sequence s_t_ypjl;

基于SSH框架技术的医药管理系统的设计与实现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_customer(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账户
	password varchar(100),--密码
	name varchar(100),--姓名
	phone varchar(100),--电话
	sex varchar(100),--性别
	age varchar(100)--年龄
);

信息警示表创建语句如下:


--信息警示表注释
create table t_message(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	content varchar(100),--内容
	insertDate datetime--日期
);

药品表创建语句如下:


--药品表注释
create table t_yaopin(
	id int identity(1,1) primary key not null,--主键
	yaopinName varchar(100),--药品名称
	pic varchar(100),--图片
	fee varchar(100),--价格
	num int,--数量
	remark varchar(100)--备注
);

药品购买表创建语句如下:


--药品购买表注释
create table t_ypgm(
	id int identity(1,1) primary key not null,--主键
	yaopinId int,--药品
	zxd varchar(100),--执行单
	sl int,--数量
	jbr varchar(100),--经办人
	remark varchar(100),--备注
	status varchar(100)--状态
);

药品记录表创建语句如下:


--药品记录表注释
create table t_ypjl(
	id int identity(1,1) primary key not null,--主键
	yaopinId int,--药品
	types varchar(100),--出库入库
	sl int,--数量
	jbr varchar(100),--经办人
	remark varchar(100)--备注
);

基于SSH框架技术的医药管理系统的设计与实现登录后主页

基于SSH框架技术的医药管理系统的设计与实现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_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 name;
//电话
private String phone;
//性别
private String sex;
//年龄
private String age;
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 getName() {return name;}
public void setName(String name) {this.name = name;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
}

信息警示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_message")
public class Message {
//主键
@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 String content;
//日期
private Date insertDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

药品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_yaopin")
public class Yaopin {
//主键
@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 yaopinName;
//图片
private String pic;
//价格
private String fee;
//数量
private Integer num;
//备注
private String remark;
public String getYaopinName() {return yaopinName;}
public void setYaopinName(String yaopinName) {this.yaopinName = yaopinName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getFee() {return fee;}
public void setFee(String fee) {this.fee = fee;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

药品购买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_ypgm")
public class Ypgm {
//主键
@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 yaopinId;
//执行单
private String zxd;
//数量
private Integer sl;
//经办人
private String jbr;
//备注
private String remark;
//状态
private String status;
public Integer getYaopinId() {return yaopinId;}
public void setYaopinId(Integer yaopinId) {this.yaopinId = yaopinId;}
public String getZxd() {return zxd;}
public void setZxd(String zxd) {this.zxd = zxd;}
public Integer getSl() {return sl;}
public void setSl(Integer sl) {this.sl = sl;}
public String getJbr() {return jbr;}
public void setJbr(String jbr) {this.jbr = jbr;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

药品记录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_ypjl")
public class Ypjl {
//主键
@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 yaopinId;
//出库入库
private String types;
//数量
private Integer sl;
//经办人
private String jbr;
//备注
private String remark;
public Integer getYaopinId() {return yaopinId;}
public void setYaopinId(Integer yaopinId) {this.yaopinId = yaopinId;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Integer getSl() {return sl;}
public void setSl(Integer sl) {this.sl = sl;}
public String getJbr() {return jbr;}
public void setJbr(String jbr) {this.jbr = jbr;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

基于SSH框架技术的医药管理系统的设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

客户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 name;
//电话
private String phone;
//性别
private String sex;
//年龄
private String age;
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 getName() {return name;}
public void setName(String name) {this.name = name;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
}

信息警示javaBean创建语句如下:


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

//信息警示
public class Message  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//内容
private String content;
//日期
private Date insertDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

药品javaBean创建语句如下:


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

//药品
public class Yaopin  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//药品名称
private String yaopinName;
//图片
private String pic;
//价格
private String fee;
//数量
private Integer num;
//备注
private String remark;
public String getYaopinName() {return yaopinName;}
public void setYaopinName(String yaopinName) {this.yaopinName = yaopinName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getFee() {return fee;}
public void setFee(String fee) {this.fee = fee;}
public Integer getNum() {return num;}
public void setNum(Integer num) {this.num = num;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

药品购买javaBean创建语句如下:


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

//药品购买
public class Ypgm  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//药品
private Integer yaopinId;
//执行单
private String zxd;
//数量
private Integer sl;
//经办人
private String jbr;
//备注
private String remark;
//状态
private String status;
public Integer getYaopinId() {return yaopinId;}
public void setYaopinId(Integer yaopinId) {this.yaopinId = yaopinId;}
public String getZxd() {return zxd;}
public void setZxd(String zxd) {this.zxd = zxd;}
public Integer getSl() {return sl;}
public void setSl(Integer sl) {this.sl = sl;}
public String getJbr() {return jbr;}
public void setJbr(String jbr) {this.jbr = jbr;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

药品记录javaBean创建语句如下:


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

//药品记录
public class Ypjl  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//药品
private Integer yaopinId;
//出库入库
private String types;
//数量
private Integer sl;
//经办人
private String jbr;
//备注
private String remark;
public Integer getYaopinId() {return yaopinId;}
public void setYaopinId(Integer yaopinId) {this.yaopinId = yaopinId;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Integer getSl() {return sl;}
public void setSl(Integer sl) {this.sl = sl;}
public String getJbr() {return jbr;}
public void setJbr(String jbr) {this.jbr = jbr;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
}

评论