员工考勤系统(employee_work_system),java网站毕业设计

员工考勤系统登录注册界面

员工考勤系统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_cc(
	id int primary key auto_increment comment '主键',
	customerId int comment '员工',
	v1 varchar(100) comment '日期',
	v2 varchar(100) comment '出差地点',
	v3 varchar(100) comment '说明'
) comment '出差';

建议表创建语句如下:


create table t_contact(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	phone varchar(100) comment '联系方式',
	content varchar(100) comment '内容',
	insertDate datetime comment '日期'
) comment '建议';

出勤表创建语句如下:


create table t_cq(
	id int primary key auto_increment comment '主键',
	customerId int comment '员工',
	v1 varchar(100) comment '日期',
	v2 varchar(100) comment '说明'
) comment '出勤';

客户表创建语句如下:


create table t_customer(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	name varchar(100) comment '姓名',
	sex varchar(100) comment '性别',
	address varchar(100) comment '地址',
	mobile varchar(100) comment '手机',
	typesId varchar(100) comment '分类',
	deptId varchar(100) comment '部门'
) comment '客户';

部门表创建语句如下:


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

加班表创建语句如下:


create table t_jb(
	id int primary key auto_increment comment '主键',
	customerId int comment '员工',
	v1 varchar(100) comment '日期',
	v2 varchar(100) comment '说明'
) comment '加班';

节假日表创建语句如下:


create table t_jjr(
	id int primary key auto_increment comment '主键',
	v1 varchar(100) comment '日期',
	v2 varchar(100) comment '标题',
	v3 varchar(100) comment '内容'
) comment '节假日';

用户分类表创建语句如下:


create table t_types(
	id int primary key auto_increment comment '主键',
	types 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_cc(
	id integer,
	customerId int,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100)
);
--出差字段加注释
comment on column t_cc.id is '主键';
comment on column t_cc.customerId is '员工';
comment on column t_cc.v1 is '日期';
comment on column t_cc.v2 is '出差地点';
comment on column t_cc.v3 is '说明';
--出差表加注释
comment on table t_cc is '出差';

建议表创建语句如下:


create table t_contact(
	id integer,
	customerId int,
	phone varchar(100),
	content varchar(100),
	insertDate datetime
);
--建议字段加注释
comment on column t_contact.id is '主键';
comment on column t_contact.customerId is '用户';
comment on column t_contact.phone is '联系方式';
comment on column t_contact.content is '内容';
comment on column t_contact.insertDate is '日期';
--建议表加注释
comment on table t_contact is '建议';

出勤表创建语句如下:


create table t_cq(
	id integer,
	customerId int,
	v1 varchar(100),
	v2 varchar(100)
);
--出勤字段加注释
comment on column t_cq.id is '主键';
comment on column t_cq.customerId is '员工';
comment on column t_cq.v1 is '日期';
comment on column t_cq.v2 is '说明';
--出勤表加注释
comment on table t_cq is '出勤';

客户表创建语句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	sex varchar(100),
	address varchar(100),
	mobile varchar(100),
	typesId varchar(100),
	deptId 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.sex is '性别';
comment on column t_customer.address is '地址';
comment on column t_customer.mobile is '手机';
comment on column t_customer.typesId is '分类';
comment on column t_customer.deptId is '部门';
--客户表加注释
comment on table t_customer 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_jb(
	id integer,
	customerId int,
	v1 varchar(100),
	v2 varchar(100)
);
--加班字段加注释
comment on column t_jb.id is '主键';
comment on column t_jb.customerId is '员工';
comment on column t_jb.v1 is '日期';
comment on column t_jb.v2 is '说明';
--加班表加注释
comment on table t_jb is '加班';

节假日表创建语句如下:


create table t_jjr(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100)
);
--节假日字段加注释
comment on column t_jjr.id is '主键';
comment on column t_jjr.v1 is '日期';
comment on column t_jjr.v2 is '标题';
comment on column t_jjr.v3 is '内容';
--节假日表加注释
comment on table t_jjr is '节假日';

用户分类表创建语句如下:


create table t_types(
	id integer,
	types varchar(100)
);
--用户分类字段加注释
comment on column t_types.id is '主键';
comment on column t_types.types is '分类名称';
--用户分类表加注释
comment on table t_types is '用户分类';

oracle特有,对应序列如下:


create sequence s_t_cc;
create sequence s_t_contact;
create sequence s_t_cq;
create sequence s_t_customer;
create sequence s_t_dept;
create sequence s_t_jb;
create sequence s_t_jjr;
create sequence s_t_types;

员工考勤系统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_cc(
	id int identity(1,1) primary key not null,--主键
	customerId int,--员工
	v1 varchar(100),--日期
	v2 varchar(100),--出差地点
	v3 varchar(100)--说明
);

建议表创建语句如下:


--建议表注释
create table t_contact(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	phone varchar(100),--联系方式
	content varchar(100),--内容
	insertDate datetime--日期
);

出勤表创建语句如下:


--出勤表注释
create table t_cq(
	id int identity(1,1) primary key not null,--主键
	customerId int,--员工
	v1 varchar(100),--日期
	v2 varchar(100)--说明
);

客户表创建语句如下:


--客户表注释
create table t_customer(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	name varchar(100),--姓名
	sex varchar(100),--性别
	address varchar(100),--地址
	mobile varchar(100),--手机
	typesId varchar(100),--分类
	deptId varchar(100)--部门
);

部门表创建语句如下:


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

加班表创建语句如下:


--加班表注释
create table t_jb(
	id int identity(1,1) primary key not null,--主键
	customerId int,--员工
	v1 varchar(100),--日期
	v2 varchar(100)--说明
);

节假日表创建语句如下:


--节假日表注释
create table t_jjr(
	id int identity(1,1) primary key not null,--主键
	v1 varchar(100),--日期
	v2 varchar(100),--标题
	v3 varchar(100)--内容
);

用户分类表创建语句如下:


--用户分类表注释
create table t_types(
	id int identity(1,1) primary key not null,--主键
	types 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_cc")
public class Cc {
//主键
@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 customerId;
//日期
private String v1;
//出差地点
private String v2;
//说明
private String v3;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;}
}

建议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_contact")
public class Contact {
//主键
@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 customerId;
//联系方式
private String phone;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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_cq")
public class Cq {
//主键
@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 customerId;
//日期
private String v1;
//说明
private String v2;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;}
}

客户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 sex;
//地址
private String address;
//手机
private String mobile;
//分类
private String typesId;
//部门
private String deptId;
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 getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
public String getTypesId() {return typesId;}
public void setTypesId(String typesId) {this.typesId = typesId;}
public String getDeptId() {return deptId;}
public void setDeptId(String deptId) {this.deptId = deptId;}
}

部门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_jb")
public class Jb {
//主键
@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 customerId;
//日期
private String v1;
//说明
private String v2;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;}
}

节假日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_jjr")
public class Jjr {
//主键
@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;
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;}
}

用户分类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 types;
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
}

员工考勤系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

出差javaBean创建语句如下:


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

//出差
public class Cc  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//员工
private Integer customerId;
//日期
private String v1;
//出差地点
private String v2;
//说明
private String v3;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;}
}

建议javaBean创建语句如下:


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

//建议
public class Contact  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//联系方式
private String phone;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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 Cq  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//员工
private Integer customerId;
//日期
private String v1;
//说明
private String v2;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;}
}

客户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 sex;
//地址
private String address;
//手机
private String mobile;
//分类
private String typesId;
//部门
private String deptId;
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 getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
public String getTypesId() {return typesId;}
public void setTypesId(String typesId) {this.typesId = typesId;}
public String getDeptId() {return deptId;}
public void setDeptId(String deptId) {this.deptId = deptId;}
}

部门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 Jb  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//员工
private Integer customerId;
//日期
private String v1;
//说明
private String v2;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;}
}

节假日javaBean创建语句如下:


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

//节假日
public class Jjr  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;
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;}
}

用户分类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 types;
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
}

源代码下载点这里

评论