基于WEB的销售管理系统,基于java毕业设计

基于WEB的销售管理系统登录注册界面

基于WEB的销售管理系统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_flow(
	id int primary key auto_increment comment '主键',
	ghsId int comment '供货商',
	xsId int comment '销售',
	ypId int comment '药品',
	yyId int comment '医院',
	sl int comment '数量',
	insertDate datetime comment '',
	hkType varchar(100) comment '回款类型',
	isHk varchar(100) comment '是否回款'
) comment '药品进出流向';

供货商表创建语句如下:


create table t_ghs(
	id int primary key auto_increment comment '主键',
	name varchar(100) comment '名称',
	gg varchar(100) comment '地址'
) comment '供货商';

销售表创建语句如下:


create table t_xs(
	id int primary key auto_increment comment '主键',
	name varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	phone varchar(100) comment '电话',
	card varchar(100) comment '身份证',
	address varchar(100) comment '住址'
) comment '销售';

药品表创建语句如下:


create table t_yp(
	id int primary key auto_increment comment '主键',
	name varchar(100) comment '名称',
	gg varchar(100) comment '规格',
	dw varchar(100) comment '单位',
	money int comment '价格',
	kc int comment '库存'
) comment '药品';

医院表创建语句如下:


create table t_yy(
	id int primary key auto_increment comment '主键',
	name varchar(100) comment '名称',
	address varchar(100) comment '地址',
	yyType varchar(100) comment '类型'
) comment '医院';

基于WEB的销售管理系统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_flow(
	id integer,
	ghsId int,
	xsId int,
	ypId int,
	yyId int,
	sl int,
	insertDate datetime,
	hkType varchar(100),
	isHk varchar(100)
);
--药品进出流向字段加注释
comment on column t_flow.id is '主键';
comment on column t_flow.ghsId is '供货商';
comment on column t_flow.xsId is '销售';
comment on column t_flow.ypId is '药品';
comment on column t_flow.yyId is '医院';
comment on column t_flow.sl is '数量';
comment on column t_flow.insertDate is '';
comment on column t_flow.hkType is '回款类型';
comment on column t_flow.isHk is '是否回款';
--药品进出流向表加注释
comment on table t_flow is '药品进出流向';

供货商表创建语句如下:


create table t_ghs(
	id integer,
	name varchar(100),
	gg varchar(100)
);
--供货商字段加注释
comment on column t_ghs.id is '主键';
comment on column t_ghs.name is '名称';
comment on column t_ghs.gg is '地址';
--供货商表加注释
comment on table t_ghs is '供货商';

销售表创建语句如下:


create table t_xs(
	id integer,
	name varchar(100),
	age varchar(100),
	phone varchar(100),
	card varchar(100),
	address varchar(100)
);
--销售字段加注释
comment on column t_xs.id is '主键';
comment on column t_xs.name is '姓名';
comment on column t_xs.age is '年龄';
comment on column t_xs.phone is '电话';
comment on column t_xs.card is '身份证';
comment on column t_xs.address is '住址';
--销售表加注释
comment on table t_xs is '销售';

药品表创建语句如下:


create table t_yp(
	id integer,
	name varchar(100),
	gg varchar(100),
	dw varchar(100),
	money int,
	kc int
);
--药品字段加注释
comment on column t_yp.id is '主键';
comment on column t_yp.name is '名称';
comment on column t_yp.gg is '规格';
comment on column t_yp.dw is '单位';
comment on column t_yp.money is '价格';
comment on column t_yp.kc is '库存';
--药品表加注释
comment on table t_yp is '药品';

医院表创建语句如下:


create table t_yy(
	id integer,
	name varchar(100),
	address varchar(100),
	yyType varchar(100)
);
--医院字段加注释
comment on column t_yy.id is '主键';
comment on column t_yy.name is '名称';
comment on column t_yy.address is '地址';
comment on column t_yy.yyType is '类型';
--医院表加注释
comment on table t_yy is '医院';

oracle特有,对应序列如下:


create sequence s_t_flow;
create sequence s_t_ghs;
create sequence s_t_xs;
create sequence s_t_yp;
create sequence s_t_yy;

基于WEB的销售管理系统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_flow(
	id int identity(1,1) primary key not null,--主键
	ghsId int,--供货商
	xsId int,--销售
	ypId int,--药品
	yyId int,--医院
	sl int,--数量
	insertDate datetime,--
	hkType varchar(100),--回款类型
	isHk varchar(100)--是否回款
);

供货商表创建语句如下:


--供货商表注释
create table t_ghs(
	id int identity(1,1) primary key not null,--主键
	name varchar(100),--名称
	gg varchar(100)--地址
);

销售表创建语句如下:


--销售表注释
create table t_xs(
	id int identity(1,1) primary key not null,--主键
	name varchar(100),--姓名
	age varchar(100),--年龄
	phone varchar(100),--电话
	card varchar(100),--身份证
	address varchar(100)--住址
);

药品表创建语句如下:


--药品表注释
create table t_yp(
	id int identity(1,1) primary key not null,--主键
	name varchar(100),--名称
	gg varchar(100),--规格
	dw varchar(100),--单位
	money int,--价格
	kc int--库存
);

医院表创建语句如下:


--医院表注释
create table t_yy(
	id int identity(1,1) primary key not null,--主键
	name varchar(100),--名称
	address varchar(100),--地址
	yyType varchar(100)--类型
);

基于WEB的销售管理系统登录后主页

基于WEB的销售管理系统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_flow")
public class Flow {
//主键
@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 ghsId;
//销售
private Integer xsId;
//药品
private Integer ypId;
//医院
private Integer yyId;
//数量
private Integer sl;
//
private Date insertDate;
//回款类型
private String hkType;
//是否回款
private String isHk;
public Integer getGhsId() {return ghsId;}
public void setGhsId(Integer ghsId) {this.ghsId = ghsId;}
public Integer getXsId() {return xsId;}
public void setXsId(Integer xsId) {this.xsId = xsId;}
public Integer getYpId() {return ypId;}
public void setYpId(Integer ypId) {this.ypId = ypId;}
public Integer getYyId() {return yyId;}
public void setYyId(Integer yyId) {this.yyId = yyId;}
public Integer getSl() {return sl;}
public void setSl(Integer sl) {this.sl = sl;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getHkType() {return hkType;}
public void setHkType(String hkType) {this.hkType = hkType;}
public String getIsHk() {return isHk;}
public void setIsHk(String isHk) {this.isHk = isHk;}
}

供货商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 name;
//地址
private String gg;
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getGg() {return gg;}
public void setGg(String gg) {this.gg = gg;}
}

销售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_xs")
public class Xs {
//主键
@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 name;
//年龄
private String age;
//电话
private String phone;
//身份证
private String card;
//住址
private String address;
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getCard() {return card;}
public void setCard(String card) {this.card = card;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

药品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 name;
//规格
private String gg;
//单位
private String dw;
//价格
private Integer money;
//库存
private Integer kc;
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getGg() {return gg;}
public void setGg(String gg) {this.gg = gg;}
public String getDw() {return dw;}
public void setDw(String dw) {this.dw = dw;}
public Integer getMoney() {return money;}
public void setMoney(Integer money) {this.money = money;}
public Integer getKc() {return kc;}
public void setKc(Integer kc) {this.kc = kc;}
}

医院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_yy")
public class Yy {
//主键
@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 name;
//地址
private String address;
//类型
private String yyType;
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getYyType() {return yyType;}
public void setYyType(String yyType) {this.yyType = yyType;}
}

基于WEB的销售管理系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

药品进出流向javaBean创建语句如下:


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

//药品进出流向
public class Flow  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//供货商
private Integer ghsId;
//销售
private Integer xsId;
//药品
private Integer ypId;
//医院
private Integer yyId;
//数量
private Integer sl;
//
private Date insertDate;
//回款类型
private String hkType;
//是否回款
private String isHk;
public Integer getGhsId() {return ghsId;}
public void setGhsId(Integer ghsId) {this.ghsId = ghsId;}
public Integer getXsId() {return xsId;}
public void setXsId(Integer xsId) {this.xsId = xsId;}
public Integer getYpId() {return ypId;}
public void setYpId(Integer ypId) {this.ypId = ypId;}
public Integer getYyId() {return yyId;}
public void setYyId(Integer yyId) {this.yyId = yyId;}
public Integer getSl() {return sl;}
public void setSl(Integer sl) {this.sl = sl;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getHkType() {return hkType;}
public void setHkType(String hkType) {this.hkType = hkType;}
public String getIsHk() {return isHk;}
public void setIsHk(String isHk) {this.isHk = isHk;}
}

供货商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 name;
//地址
private String gg;
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getGg() {return gg;}
public void setGg(String gg) {this.gg = gg;}
}

销售javaBean创建语句如下:


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

//销售
public class Xs  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//姓名
private String name;
//年龄
private String age;
//电话
private String phone;
//身份证
private String card;
//住址
private String address;
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getCard() {return card;}
public void setCard(String card) {this.card = card;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

药品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 name;
//规格
private String gg;
//单位
private String dw;
//价格
private Integer money;
//库存
private Integer kc;
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getGg() {return gg;}
public void setGg(String gg) {this.gg = gg;}
public String getDw() {return dw;}
public void setDw(String dw) {this.dw = dw;}
public Integer getMoney() {return money;}
public void setMoney(Integer money) {this.money = money;}
public Integer getKc() {return kc;}
public void setKc(Integer kc) {this.kc = kc;}
}

医院javaBean创建语句如下:


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

//医院
public class Yy  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//名称
private String name;
//地址
private String address;
//类型
private String yyType;
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getYyType() {return yyType;}
public void setYyType(String yyType) {this.yyType = yyType;}
}

评论