企业销售合同管理系统设计与实现

企业销售合同管理系统设计与实现登录注册界面

企业销售合同管理系统设计与实现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_chanpin(
	id int primary key auto_increment 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 '图片'
) comment '产品';

用户表创建语句如下:


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

公告表创建语句如下:


create table t_gg(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	showDate datetime comment '公告日期',
	pic varchar(100) comment '图片',
	content varchar(100) comment '公告内容'
) comment '公告';

合同费用表创建语句如下:


create table t_htfy(
	id int primary key auto_increment comment '主键',
	v1 varchar(100) comment '凭单号',
	v2 varchar(100) comment '费用类别',
	v3 varchar(100) comment '合同编号',
	v4 varchar(100) comment '费用明细',
	fee int comment '金额',
	v5 varchar(100) comment '收款人',
	v6 varchar(100) comment '经办人',
	v7 datetime comment '发生日期',
	v8 varchar(100) comment '备注'
) comment '合同费用';

合同收账表创建语句如下:


create table t_htsz(
	id int primary key auto_increment comment '主键',
	v1 varchar(100) comment '发票编号',
	v2 varchar(100) comment '发票类别',
	v3 varchar(100) comment '合同编号',
	fee varchar(100) comment '金额',
	v4 datetime comment '日期',
	v5 varchar(100) comment '经办人',
	v6 varchar(100) comment '备注'
) comment '合同收账';

合同信息表创建语句如下:


create table t_htxx(
	id int primary key auto_increment comment '主键',
	v1 varchar(100) comment '合同编码',
	v2 datetime comment '签订日期',
	v3 varchar(100) comment '客户名称',
	v4 varchar(100) comment '合同状态',
	v5 varchar(100) comment '合同拍照',
	v6 varchar(100) 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_chanpin(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	v6 varchar(100)
);
--产品字段加注释
comment on column t_chanpin.id is '主键';
comment on column t_chanpin.v1 is '产品编号';
comment on column t_chanpin.v2 is '产品名称';
comment on column t_chanpin.v3 is '商标品牌';
comment on column t_chanpin.v4 is '规格型号';
comment on column t_chanpin.v5 is '计量单位';
comment on column t_chanpin.v6 is '图片';
--产品表加注释
comment on table t_chanpin is '产品';

用户表创建语句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	customerName varchar(100),
	headPic varchar(100),
	phone varchar(100),
	age varchar(100),
	sex 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.headPic is '头像';
comment on column t_customer.phone is '电话';
comment on column t_customer.age is '年龄';
comment on column t_customer.sex is '性别';
--用户表加注释
comment on table t_customer is '用户';

公告表创建语句如下:


create table t_gg(
	id integer,
	title varchar(100),
	showDate datetime,
	pic varchar(100),
	content varchar(100)
);
--公告字段加注释
comment on column t_gg.id is '主键';
comment on column t_gg.title is '标题';
comment on column t_gg.showDate is '公告日期';
comment on column t_gg.pic is '图片';
comment on column t_gg.content is '公告内容';
--公告表加注释
comment on table t_gg is '公告';

合同费用表创建语句如下:


create table t_htfy(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	fee int,
	v5 varchar(100),
	v6 varchar(100),
	v7 datetime,
	v8 varchar(100)
);
--合同费用字段加注释
comment on column t_htfy.id is '主键';
comment on column t_htfy.v1 is '凭单号';
comment on column t_htfy.v2 is '费用类别';
comment on column t_htfy.v3 is '合同编号';
comment on column t_htfy.v4 is '费用明细';
comment on column t_htfy.fee is '金额';
comment on column t_htfy.v5 is '收款人';
comment on column t_htfy.v6 is '经办人';
comment on column t_htfy.v7 is '发生日期';
comment on column t_htfy.v8 is '备注';
--合同费用表加注释
comment on table t_htfy is '合同费用';

合同收账表创建语句如下:


create table t_htsz(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	fee varchar(100),
	v4 datetime,
	v5 varchar(100),
	v6 varchar(100)
);
--合同收账字段加注释
comment on column t_htsz.id is '主键';
comment on column t_htsz.v1 is '发票编号';
comment on column t_htsz.v2 is '发票类别';
comment on column t_htsz.v3 is '合同编号';
comment on column t_htsz.fee is '金额';
comment on column t_htsz.v4 is '日期';
comment on column t_htsz.v5 is '经办人';
comment on column t_htsz.v6 is '备注';
--合同收账表加注释
comment on table t_htsz is '合同收账';

合同信息表创建语句如下:


create table t_htxx(
	id integer,
	v1 varchar(100),
	v2 datetime,
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	v6 varchar(100)
);
--合同信息字段加注释
comment on column t_htxx.id is '主键';
comment on column t_htxx.v1 is '合同编码';
comment on column t_htxx.v2 is '签订日期';
comment on column t_htxx.v3 is '客户名称';
comment on column t_htxx.v4 is '合同状态';
comment on column t_htxx.v5 is '合同拍照';
comment on column t_htxx.v6 is '合同附件';
--合同信息表加注释
comment on table t_htxx is '合同信息';

oracle特有,对应序列如下:


create sequence s_t_chanpin;
create sequence s_t_customer;
create sequence s_t_gg;
create sequence s_t_htfy;
create sequence s_t_htsz;
create sequence s_t_htxx;

企业销售合同管理系统设计与实现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_chanpin(
	id int identity(1,1) primary key not null,--主键
	v1 varchar(100),--产品编号
	v2 varchar(100),--产品名称
	v3 varchar(100),--商标品牌
	v4 varchar(100),--规格型号
	v5 varchar(100),--计量单位
	v6 varchar(100)--图片
);

用户表创建语句如下:


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

公告表创建语句如下:


--公告表注释
create table t_gg(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	showDate datetime,--公告日期
	pic varchar(100),--图片
	content varchar(100)--公告内容
);

合同费用表创建语句如下:


--合同费用表注释
create table t_htfy(
	id int identity(1,1) primary key not null,--主键
	v1 varchar(100),--凭单号
	v2 varchar(100),--费用类别
	v3 varchar(100),--合同编号
	v4 varchar(100),--费用明细
	fee int,--金额
	v5 varchar(100),--收款人
	v6 varchar(100),--经办人
	v7 datetime,--发生日期
	v8 varchar(100)--备注
);

合同收账表创建语句如下:


--合同收账表注释
create table t_htsz(
	id int identity(1,1) primary key not null,--主键
	v1 varchar(100),--发票编号
	v2 varchar(100),--发票类别
	v3 varchar(100),--合同编号
	fee varchar(100),--金额
	v4 datetime,--日期
	v5 varchar(100),--经办人
	v6 varchar(100)--备注
);

合同信息表创建语句如下:


--合同信息表注释
create table t_htxx(
	id int identity(1,1) primary key not null,--主键
	v1 varchar(100),--合同编码
	v2 datetime,--签订日期
	v3 varchar(100),--客户名称
	v4 varchar(100),--合同状态
	v5 varchar(100),--合同拍照
	v6 varchar(100)--合同附件
);

企业销售合同管理系统设计与实现登录后主页

企业销售合同管理系统设计与实现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_chanpin")
public class Chanpin {
//主键
@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 v1;
//产品名称
private String v2;
//商标品牌
private String v3;
//规格型号
private String v4;
//计量单位
private String v5;
//图片
private String v6;
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;}
}

用户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 headPic;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
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 getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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;}
}

公告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_gg")
public class Gg {
//主键
@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 Date showDate;
//图片
private String pic;
//公告内容
private String content;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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_htfy")
public class Htfy {
//主键
@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 v1;
//费用类别
private String v2;
//合同编号
private String v3;
//费用明细
private String v4;
//金额
private Integer fee;
//收款人
private String v5;
//经办人
private String v6;
//发生日期
private Date v7;
//备注
private String v8;
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 Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
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 Date getV7() {return v7;}
public void setV7(Date v7) {this.v7 = v7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
}

合同收账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_htsz")
public class Htsz {
//主键
@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 v1;
//发票类别
private String v2;
//合同编号
private String v3;
//金额
private String fee;
//日期
private Date v4;
//经办人
private String v5;
//备注
private String v6;
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 getFee() {return fee;}
public void setFee(String fee) {this.fee = fee;}
public Date getV4() {return v4;}
public void setV4(Date 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;}
}

合同信息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_htxx")
public class Htxx {
//主键
@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 v1;
//签订日期
private Date v2;
//客户名称
private String v3;
//合同状态
private String v4;
//合同拍照
private String v5;
//合同附件
private String v6;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public Date getV2() {return v2;}
public void setV2(Date 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;}
}

企业销售合同管理系统设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

产品javaBean创建语句如下:


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

//产品
public class Chanpin  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//产品编号
private String v1;
//产品名称
private String v2;
//商标品牌
private String v3;
//规格型号
private String v4;
//计量单位
private String v5;
//图片
private String v6;
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;}
}

用户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 headPic;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
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 getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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;}
}

公告javaBean创建语句如下:


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

//公告
public class Gg  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//公告日期
private Date showDate;
//图片
private String pic;
//公告内容
private String content;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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 Htfy  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//凭单号
private String v1;
//费用类别
private String v2;
//合同编号
private String v3;
//费用明细
private String v4;
//金额
private Integer fee;
//收款人
private String v5;
//经办人
private String v6;
//发生日期
private Date v7;
//备注
private String v8;
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 Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
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 Date getV7() {return v7;}
public void setV7(Date v7) {this.v7 = v7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
}

合同收账javaBean创建语句如下:


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

//合同收账
public class Htsz  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//发票编号
private String v1;
//发票类别
private String v2;
//合同编号
private String v3;
//金额
private String fee;
//日期
private Date v4;
//经办人
private String v5;
//备注
private String v6;
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 getFee() {return fee;}
public void setFee(String fee) {this.fee = fee;}
public Date getV4() {return v4;}
public void setV4(Date 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;}
}

合同信息javaBean创建语句如下:


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

//合同信息
public class Htxx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//合同编码
private String v1;
//签订日期
private Date v2;
//客户名称
private String v3;
//合同状态
private String v4;
//合同拍照
private String v5;
//合同附件
private String v6;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public Date getV2() {return v2;}
public void setV2(Date 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;}
}

评论