机械企业管理系统的设计与开发

机械企业管理系统的设计与开发登录注册界面

机械企业管理系统的设计与开发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_cg(
	id int primary key auto_increment comment '主键',
	jxcpId int comment '产品名称',
	cgdh varchar(100) comment '',
	cgsl int comment '采购数量',
	jg int comment '价格',
	fzr varchar(100) comment '负责人',
	lxdh varchar(100) comment '联系电话',
	showDate datetime comment '采购日期',
	gysId int comment '供应商',
	remark varchar(100) comment '备注'
) comment '采购管理';

部门表创建语句如下:


create table t_dept(
	id int primary key auto_increment comment '主键',
	deptName varchar(100) comment '部门'
) comment '部门';

员工表创建语句如下:


create table t_employee(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码 ',
	employeeName varchar(100) comment '姓名',
	zc varchar(100) comment '职称',
	deptName int comment '部门',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	pic varchar(100) comment '头像'
) comment '员工';

供应商表创建语句如下:


create table t_gys(
	id int primary key auto_increment comment '主键',
	gysName varchar(100) comment '供应商名称',
	fzr varchar(100) comment '负责人',
	phone varchar(100) comment '电话'
) comment '供应商';

机械产品表创建语句如下:


create table t_jxcp(
	id int primary key auto_increment comment '主键',
	jxcpName varchar(100) comment '机械产品名称',
	kc int comment '库存'
) comment '机械产品';

客户表创建语句如下:


create table t_kh(
	id int primary key auto_increment comment '主键',
	khName varchar(100) comment '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	pic varchar(100) comment '头像',
	ssgs 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_xs(
	id int primary key auto_increment comment '主键',
	jxcpId int comment '产品名称',
	xsdh varchar(100) comment '销售单号',
	xssl int comment '销售数量',
	jg int comment '价格',
	fzr varchar(100) comment '负责人',
	lxdh varchar(100) comment '联系电话',
	showDate datetime comment '销售日期',
	khId int comment '客户',
	remark varchar(100) comment '备注'
) comment '销售订单';

销售发货表创建语句如下:


create table t_xsfh(
	id int primary key auto_increment comment '主键',
	xsdh varchar(100) comment '销售单号',
	fzr varchar(100) comment '发货负责人',
	lxdh varchar(100) comment '联系电话',
	showDate datetime comment '发货日期',
	remark varchar(100) comment '备注'
) comment '销售发货';

销售生产表创建语句如下:


create table t_xssc(
	id int primary key auto_increment comment '主键',
	xsdh varchar(100) comment '销售单号',
	fzr varchar(100) comment '生产负责人',
	lxdh varchar(100) comment '联系电话',
	showDate datetime comment '开始日期',
	v1 varchar(100) comment '制定生产计划和物料清单',
	v2 varchar(100) comment '生成物料采购定单',
	v3 varchar(100) comment '安排生产人员和生产设备',
	v4 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_cg(
	id integer,
	jxcpId int,
	cgdh varchar(100),
	cgsl int,
	jg int,
	fzr varchar(100),
	lxdh varchar(100),
	showDate datetime,
	gysId int,
	remark varchar(100)
);
--采购管理字段加注释
comment on column t_cg.id is '主键';
comment on column t_cg.jxcpId is '产品名称';
comment on column t_cg.cgdh is '';
comment on column t_cg.cgsl is '采购数量';
comment on column t_cg.jg is '价格';
comment on column t_cg.fzr is '负责人';
comment on column t_cg.lxdh is '联系电话';
comment on column t_cg.showDate is '采购日期';
comment on column t_cg.gysId is '供应商';
comment on column t_cg.remark is '备注';
--采购管理表加注释
comment on table t_cg is '采购管理';

部门表创建语句如下:


create table t_dept(
	id integer,
	deptName varchar(100)
);
--部门字段加注释
comment on column t_dept.id is '主键';
comment on column t_dept.deptName is '部门';
--部门表加注释
comment on table t_dept is '部门';

员工表创建语句如下:


create table t_employee(
	id integer,
	username varchar(100),
	password varchar(100),
	employeeName varchar(100),
	zc varchar(100),
	deptName int,
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	pic varchar(100)
);
--员工字段加注释
comment on column t_employee.id is '主键';
comment on column t_employee.username is '账号';
comment on column t_employee.password is '密码 ';
comment on column t_employee.employeeName is '姓名';
comment on column t_employee.zc is '职称';
comment on column t_employee.deptName is '部门';
comment on column t_employee.age is '年龄';
comment on column t_employee.sex is '性别';
comment on column t_employee.phone is '电话';
comment on column t_employee.pic is '头像';
--员工表加注释
comment on table t_employee is '员工';

供应商表创建语句如下:


create table t_gys(
	id integer,
	gysName varchar(100),
	fzr varchar(100),
	phone varchar(100)
);
--供应商字段加注释
comment on column t_gys.id is '主键';
comment on column t_gys.gysName is '供应商名称';
comment on column t_gys.fzr is '负责人';
comment on column t_gys.phone is '电话';
--供应商表加注释
comment on table t_gys is '供应商';

机械产品表创建语句如下:


create table t_jxcp(
	id integer,
	jxcpName varchar(100),
	kc int
);
--机械产品字段加注释
comment on column t_jxcp.id is '主键';
comment on column t_jxcp.jxcpName is '机械产品名称';
comment on column t_jxcp.kc is '库存';
--机械产品表加注释
comment on table t_jxcp is '机械产品';

客户表创建语句如下:


create table t_kh(
	id integer,
	khName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	pic varchar(100),
	ssgs varchar(100)
);
--客户字段加注释
comment on column t_kh.id is '主键';
comment on column t_kh.khName is '姓名';
comment on column t_kh.age is '年龄';
comment on column t_kh.sex is '性别';
comment on column t_kh.phone is '电话';
comment on column t_kh.pic is '头像';
comment on column t_kh.ssgs is '所属公司';
--客户表加注释
comment on table t_kh 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_xs(
	id integer,
	jxcpId int,
	xsdh varchar(100),
	xssl int,
	jg int,
	fzr varchar(100),
	lxdh varchar(100),
	showDate datetime,
	khId int,
	remark varchar(100)
);
--销售订单字段加注释
comment on column t_xs.id is '主键';
comment on column t_xs.jxcpId is '产品名称';
comment on column t_xs.xsdh is '销售单号';
comment on column t_xs.xssl is '销售数量';
comment on column t_xs.jg is '价格';
comment on column t_xs.fzr is '负责人';
comment on column t_xs.lxdh is '联系电话';
comment on column t_xs.showDate is '销售日期';
comment on column t_xs.khId is '客户';
comment on column t_xs.remark is '备注';
--销售订单表加注释
comment on table t_xs is '销售订单';

销售发货表创建语句如下:


create table t_xsfh(
	id integer,
	xsdh varchar(100),
	fzr varchar(100),
	lxdh varchar(100),
	showDate datetime,
	remark varchar(100)
);
--销售发货字段加注释
comment on column t_xsfh.id is '主键';
comment on column t_xsfh.xsdh is '销售单号';
comment on column t_xsfh.fzr is '发货负责人';
comment on column t_xsfh.lxdh is '联系电话';
comment on column t_xsfh.showDate is '发货日期';
comment on column t_xsfh.remark is '备注';
--销售发货表加注释
comment on table t_xsfh is '销售发货';

销售生产表创建语句如下:


create table t_xssc(
	id integer,
	xsdh varchar(100),
	fzr varchar(100),
	lxdh varchar(100),
	showDate datetime,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100)
);
--销售生产字段加注释
comment on column t_xssc.id is '主键';
comment on column t_xssc.xsdh is '销售单号';
comment on column t_xssc.fzr is '生产负责人';
comment on column t_xssc.lxdh is '联系电话';
comment on column t_xssc.showDate is '开始日期';
comment on column t_xssc.v1 is '制定生产计划和物料清单';
comment on column t_xssc.v2 is '生成物料采购定单';
comment on column t_xssc.v3 is '安排生产人员和生产设备';
comment on column t_xssc.v4 is '进行工时和设备损耗折旧的成本核算';
--销售生产表加注释
comment on table t_xssc is '销售生产';

oracle特有,对应序列如下:


create sequence s_t_cg;
create sequence s_t_dept;
create sequence s_t_employee;
create sequence s_t_gys;
create sequence s_t_jxcp;
create sequence s_t_kh;
create sequence s_t_ptadmin;
create sequence s_t_xs;
create sequence s_t_xsfh;
create sequence s_t_xssc;

机械企业管理系统的设计与开发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_cg(
	id int identity(1,1) primary key not null,--主键
	jxcpId int,--产品名称
	cgdh varchar(100),--
	cgsl int,--采购数量
	jg int,--价格
	fzr varchar(100),--负责人
	lxdh varchar(100),--联系电话
	showDate datetime,--采购日期
	gysId int,--供应商
	remark varchar(100)--备注
);

部门表创建语句如下:


--部门表注释
create table t_dept(
	id int identity(1,1) primary key not null,--主键
	deptName varchar(100)--部门
);

员工表创建语句如下:


--员工表注释
create table t_employee(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码 
	employeeName varchar(100),--姓名
	zc varchar(100),--职称
	deptName int,--部门
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	pic varchar(100)--头像
);

供应商表创建语句如下:


--供应商表注释
create table t_gys(
	id int identity(1,1) primary key not null,--主键
	gysName varchar(100),--供应商名称
	fzr varchar(100),--负责人
	phone varchar(100)--电话
);

机械产品表创建语句如下:


--机械产品表注释
create table t_jxcp(
	id int identity(1,1) primary key not null,--主键
	jxcpName varchar(100),--机械产品名称
	kc int--库存
);

客户表创建语句如下:


--客户表注释
create table t_kh(
	id int identity(1,1) primary key not null,--主键
	khName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	pic varchar(100),--头像
	ssgs 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_xs(
	id int identity(1,1) primary key not null,--主键
	jxcpId int,--产品名称
	xsdh varchar(100),--销售单号
	xssl int,--销售数量
	jg int,--价格
	fzr varchar(100),--负责人
	lxdh varchar(100),--联系电话
	showDate datetime,--销售日期
	khId int,--客户
	remark varchar(100)--备注
);

销售发货表创建语句如下:


--销售发货表注释
create table t_xsfh(
	id int identity(1,1) primary key not null,--主键
	xsdh varchar(100),--销售单号
	fzr varchar(100),--发货负责人
	lxdh varchar(100),--联系电话
	showDate datetime,--发货日期
	remark varchar(100)--备注
);

销售生产表创建语句如下:


--销售生产表注释
create table t_xssc(
	id int identity(1,1) primary key not null,--主键
	xsdh varchar(100),--销售单号
	fzr varchar(100),--生产负责人
	lxdh varchar(100),--联系电话
	showDate datetime,--开始日期
	v1 varchar(100),--制定生产计划和物料清单
	v2 varchar(100),--生成物料采购定单
	v3 varchar(100),--安排生产人员和生产设备
	v4 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_cg")
public class Cg {
//主键
@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 jxcpId;
//
private String cgdh;
//采购数量
private Integer cgsl;
//价格
private Integer jg;
//负责人
private String fzr;
//联系电话
private String lxdh;
//采购日期
private Date showDate;
//供应商
private Integer gysId;
//备注
private String remark;
public Integer getJxcpId() {return jxcpId;}
public void setJxcpId(Integer jxcpId) {this.jxcpId = jxcpId;}
public String getCgdh() {return cgdh;}
public void setCgdh(String cgdh) {this.cgdh = cgdh;}
public Integer getCgsl() {return cgsl;}
public void setCgsl(Integer cgsl) {this.cgsl = cgsl;}
public Integer getJg() {return jg;}
public void setJg(Integer jg) {this.jg = jg;}
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 Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public Integer getGysId() {return gysId;}
public void setGysId(Integer gysId) {this.gysId = gysId;}
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_dept")
public class Dept {
//主键
@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 deptName;
public String getDeptName() {return deptName;}
public void setDeptName(String deptName) {this.deptName = deptName;}
}

员工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_employee")
public class Employee {
//主键
@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 employeeName;
//职称
private String zc;
//部门
private Integer deptName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//头像
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 getEmployeeName() {return employeeName;}
public void setEmployeeName(String employeeName) {this.employeeName = employeeName;}
public String getZc() {return zc;}
public void setZc(String zc) {this.zc = zc;}
public Integer getDeptName() {return deptName;}
public void setDeptName(Integer deptName) {this.deptName = deptName;}
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 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 gysName;
//负责人
private String fzr;
//电话
private String phone;
public String getGysName() {return gysName;}
public void setGysName(String gysName) {this.gysName = gysName;}
public String getFzr() {return fzr;}
public void setFzr(String fzr) {this.fzr = fzr;}
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_jxcp")
public class Jxcp {
//主键
@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 jxcpName;
//库存
private Integer kc;
public String getJxcpName() {return jxcpName;}
public void setJxcpName(String jxcpName) {this.jxcpName = jxcpName;}
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_kh")
public class Kh {
//主键
@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 khName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//头像
private String pic;
//所属公司
private String ssgs;
public String getKhName() {return khName;}
public void setKhName(String khName) {this.khName = khName;}
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getSsgs() {return ssgs;}
public void setSsgs(String ssgs) {this.ssgs = ssgs;}
}

普通管理员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_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 Integer jxcpId;
//销售单号
private String xsdh;
//销售数量
private Integer xssl;
//价格
private Integer jg;
//负责人
private String fzr;
//联系电话
private String lxdh;
//销售日期
private Date showDate;
//客户
private Integer khId;
//备注
private String remark;
public Integer getJxcpId() {return jxcpId;}
public void setJxcpId(Integer jxcpId) {this.jxcpId = jxcpId;}
public String getXsdh() {return xsdh;}
public void setXsdh(String xsdh) {this.xsdh = xsdh;}
public Integer getXssl() {return xssl;}
public void setXssl(Integer xssl) {this.xssl = xssl;}
public Integer getJg() {return jg;}
public void setJg(Integer jg) {this.jg = jg;}
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 Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public Integer getKhId() {return khId;}
public void setKhId(Integer khId) {this.khId = khId;}
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_xsfh")
public class Xsfh {
//主键
@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 xsdh;
//发货负责人
private String fzr;
//联系电话
private String lxdh;
//发货日期
private Date showDate;
//备注
private String remark;
public String getXsdh() {return xsdh;}
public void setXsdh(String xsdh) {this.xsdh = xsdh;}
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 Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
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_xssc")
public class Xssc {
//主键
@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 xsdh;
//生产负责人
private String fzr;
//联系电话
private String lxdh;
//开始日期
private Date showDate;
//制定生产计划和物料清单
private String v1;
//生成物料采购定单
private String v2;
//安排生产人员和生产设备
private String v3;
//进行工时和设备损耗折旧的成本核算
private String v4;
public String getXsdh() {return xsdh;}
public void setXsdh(String xsdh) {this.xsdh = xsdh;}
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 Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
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;}
}

机械企业管理系统的设计与开发spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

采购管理javaBean创建语句如下:


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

//采购管理
public class Cg  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//产品名称
private Integer jxcpId;
//
private String cgdh;
//采购数量
private Integer cgsl;
//价格
private Integer jg;
//负责人
private String fzr;
//联系电话
private String lxdh;
//采购日期
private Date showDate;
//供应商
private Integer gysId;
//备注
private String remark;
public Integer getJxcpId() {return jxcpId;}
public void setJxcpId(Integer jxcpId) {this.jxcpId = jxcpId;}
public String getCgdh() {return cgdh;}
public void setCgdh(String cgdh) {this.cgdh = cgdh;}
public Integer getCgsl() {return cgsl;}
public void setCgsl(Integer cgsl) {this.cgsl = cgsl;}
public Integer getJg() {return jg;}
public void setJg(Integer jg) {this.jg = jg;}
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 Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public Integer getGysId() {return gysId;}
public void setGysId(Integer gysId) {this.gysId = gysId;}
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 Dept  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//部门
private String deptName;
public String getDeptName() {return deptName;}
public void setDeptName(String deptName) {this.deptName = deptName;}
}

员工javaBean创建语句如下:


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

//员工
public class Employee  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 employeeName;
//职称
private String zc;
//部门
private Integer deptName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//头像
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 getEmployeeName() {return employeeName;}
public void setEmployeeName(String employeeName) {this.employeeName = employeeName;}
public String getZc() {return zc;}
public void setZc(String zc) {this.zc = zc;}
public Integer getDeptName() {return deptName;}
public void setDeptName(Integer deptName) {this.deptName = deptName;}
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 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 gysName;
//负责人
private String fzr;
//电话
private String phone;
public String getGysName() {return gysName;}
public void setGysName(String gysName) {this.gysName = gysName;}
public String getFzr() {return fzr;}
public void setFzr(String fzr) {this.fzr = fzr;}
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 Jxcp  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//机械产品名称
private String jxcpName;
//库存
private Integer kc;
public String getJxcpName() {return jxcpName;}
public void setJxcpName(String jxcpName) {this.jxcpName = jxcpName;}
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 Kh  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//姓名
private String khName;
//年龄
private String age;
//性别
private String sex;
//电话
private String phone;
//头像
private String pic;
//所属公司
private String ssgs;
public String getKhName() {return khName;}
public void setKhName(String khName) {this.khName = khName;}
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 getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getSsgs() {return ssgs;}
public void setSsgs(String ssgs) {this.ssgs = ssgs;}
}

普通管理员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 Xs  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//产品名称
private Integer jxcpId;
//销售单号
private String xsdh;
//销售数量
private Integer xssl;
//价格
private Integer jg;
//负责人
private String fzr;
//联系电话
private String lxdh;
//销售日期
private Date showDate;
//客户
private Integer khId;
//备注
private String remark;
public Integer getJxcpId() {return jxcpId;}
public void setJxcpId(Integer jxcpId) {this.jxcpId = jxcpId;}
public String getXsdh() {return xsdh;}
public void setXsdh(String xsdh) {this.xsdh = xsdh;}
public Integer getXssl() {return xssl;}
public void setXssl(Integer xssl) {this.xssl = xssl;}
public Integer getJg() {return jg;}
public void setJg(Integer jg) {this.jg = jg;}
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 Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public Integer getKhId() {return khId;}
public void setKhId(Integer khId) {this.khId = khId;}
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 Xsfh  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//销售单号
private String xsdh;
//发货负责人
private String fzr;
//联系电话
private String lxdh;
//发货日期
private Date showDate;
//备注
private String remark;
public String getXsdh() {return xsdh;}
public void setXsdh(String xsdh) {this.xsdh = xsdh;}
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 Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
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 Xssc  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//销售单号
private String xsdh;
//生产负责人
private String fzr;
//联系电话
private String lxdh;
//开始日期
private Date showDate;
//制定生产计划和物料清单
private String v1;
//生成物料采购定单
private String v2;
//安排生产人员和生产设备
private String v3;
//进行工时和设备损耗折旧的成本核算
private String v4;
public String getXsdh() {return xsdh;}
public void setXsdh(String xsdh) {this.xsdh = xsdh;}
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 Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
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;}
}

源代码下载点这里

评论