基于WEB的学生成绩管理系统

基于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_jsgx(
	id int primary key auto_increment comment '主键',
	teacherId int comment '教职工号',
	kcId int comment '课程'
) comment '讲授关系';

课程表创建语句如下:


create table t_kc(
	id int primary key auto_increment comment '主键',
	kch varchar(100) comment '课程号',
	kcName varchar(100) comment '课程名称',
	address varchar(100) comment '上课地点'
) comment '课程';

学生表创建语句如下:


create table t_student(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '学号',
	password varchar(100) comment '密码',
	studentName varchar(100) comment '姓名',
	xb varchar(100) comment '性别',
	ssh varchar(100) comment '宿舍号',
	phone varchar(100) comment '电话',
	zy varchar(100) comment '专业',
	nj varchar(100) comment '年级'
) comment '学生';

教师表创建语句如下:


create table t_teacher(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '教职工号',
	password varchar(100) comment '密码',
	teacherName varchar(100) comment '姓名',
	xb varchar(100) comment '性别',
	zc varchar(100) comment '职称',
	bgs varchar(100) comment '办公室',
	phone varchar(100) comment '电话'
) comment '教师';

学习关系表创建语句如下:


create table t_xuexi(
	id int primary key auto_increment comment '主键',
	studentId int comment '学生',
	kcId int comment '课程',
	cj 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_jsgx(
	id integer,
	teacherId int,
	kcId int
);
--讲授关系字段加注释
comment on column t_jsgx.id is '主键';
comment on column t_jsgx.teacherId is '教职工号';
comment on column t_jsgx.kcId is '课程';
--讲授关系表加注释
comment on table t_jsgx is '讲授关系';

课程表创建语句如下:


create table t_kc(
	id integer,
	kch varchar(100),
	kcName varchar(100),
	address varchar(100)
);
--课程字段加注释
comment on column t_kc.id is '主键';
comment on column t_kc.kch is '课程号';
comment on column t_kc.kcName is '课程名称';
comment on column t_kc.address is '上课地点';
--课程表加注释
comment on table t_kc is '课程';

学生表创建语句如下:


create table t_student(
	id integer,
	username varchar(100),
	password varchar(100),
	studentName varchar(100),
	xb varchar(100),
	ssh varchar(100),
	phone varchar(100),
	zy varchar(100),
	nj varchar(100)
);
--学生字段加注释
comment on column t_student.id is '主键';
comment on column t_student.username is '学号';
comment on column t_student.password is '密码';
comment on column t_student.studentName is '姓名';
comment on column t_student.xb is '性别';
comment on column t_student.ssh is '宿舍号';
comment on column t_student.phone is '电话';
comment on column t_student.zy is '专业';
comment on column t_student.nj is '年级';
--学生表加注释
comment on table t_student is '学生';

教师表创建语句如下:


create table t_teacher(
	id integer,
	username varchar(100),
	password varchar(100),
	teacherName varchar(100),
	xb varchar(100),
	zc varchar(100),
	bgs varchar(100),
	phone varchar(100)
);
--教师字段加注释
comment on column t_teacher.id is '主键';
comment on column t_teacher.username is '教职工号';
comment on column t_teacher.password is '密码';
comment on column t_teacher.teacherName is '姓名';
comment on column t_teacher.xb is '性别';
comment on column t_teacher.zc is '职称';
comment on column t_teacher.bgs is '办公室';
comment on column t_teacher.phone is '电话';
--教师表加注释
comment on table t_teacher is '教师';

学习关系表创建语句如下:


create table t_xuexi(
	id integer,
	studentId int,
	kcId int,
	cj varchar(100)
);
--学习关系字段加注释
comment on column t_xuexi.id is '主键';
comment on column t_xuexi.studentId is '学生';
comment on column t_xuexi.kcId is '课程';
comment on column t_xuexi.cj is '成绩';
--学习关系表加注释
comment on table t_xuexi is '学习关系';

oracle特有,对应序列如下:


create sequence s_t_jsgx;
create sequence s_t_kc;
create sequence s_t_student;
create sequence s_t_teacher;
create sequence s_t_xuexi;

基于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_jsgx(
	id int identity(1,1) primary key not null,--主键
	teacherId int,--教职工号
	kcId int--课程
);

课程表创建语句如下:


--课程表注释
create table t_kc(
	id int identity(1,1) primary key not null,--主键
	kch varchar(100),--课程号
	kcName varchar(100),--课程名称
	address varchar(100)--上课地点
);

学生表创建语句如下:


--学生表注释
create table t_student(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--学号
	password varchar(100),--密码
	studentName varchar(100),--姓名
	xb varchar(100),--性别
	ssh varchar(100),--宿舍号
	phone varchar(100),--电话
	zy varchar(100),--专业
	nj varchar(100)--年级
);

教师表创建语句如下:


--教师表注释
create table t_teacher(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--教职工号
	password varchar(100),--密码
	teacherName varchar(100),--姓名
	xb varchar(100),--性别
	zc varchar(100),--职称
	bgs varchar(100),--办公室
	phone varchar(100)--电话
);

学习关系表创建语句如下:


--学习关系表注释
create table t_xuexi(
	id int identity(1,1) primary key not null,--主键
	studentId int,--学生
	kcId int,--课程
	cj 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_jsgx")
public class Jsgx {
//主键
@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 teacherId;
//课程
private Integer kcId;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Integer getKcId() {return kcId;}
public void setKcId(Integer kcId) {this.kcId = kcId;}
}

课程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_kc")
public class Kc {
//主键
@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 kch;
//课程名称
private String kcName;
//上课地点
private String address;
public String getKch() {return kch;}
public void setKch(String kch) {this.kch = kch;}
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
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_student")
public class Student {
//主键
@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 studentName;
//性别
private String xb;
//宿舍号
private String ssh;
//电话
private String phone;
//专业
private String zy;
//年级
private String nj;
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 getStudentName() {return studentName;}
public void setStudentName(String studentName) {this.studentName = studentName;}
public String getXb() {return xb;}
public void setXb(String xb) {this.xb = xb;}
public String getSsh() {return ssh;}
public void setSsh(String ssh) {this.ssh = ssh;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getZy() {return zy;}
public void setZy(String zy) {this.zy = zy;}
public String getNj() {return nj;}
public void setNj(String nj) {this.nj = nj;}
}

教师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_teacher")
public class Teacher {
//主键
@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 teacherName;
//性别
private String xb;
//职称
private String zc;
//办公室
private String bgs;
//电话
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 getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
public String getXb() {return xb;}
public void setXb(String xb) {this.xb = xb;}
public String getZc() {return zc;}
public void setZc(String zc) {this.zc = zc;}
public String getBgs() {return bgs;}
public void setBgs(String bgs) {this.bgs = bgs;}
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_xuexi")
public class Xuexi {
//主键
@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 studentId;
//课程
private Integer kcId;
//成绩
private String cj;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Integer getKcId() {return kcId;}
public void setKcId(Integer kcId) {this.kcId = kcId;}
public String getCj() {return cj;}
public void setCj(String cj) {this.cj = cj;}
}

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

讲授关系javaBean创建语句如下:


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

//讲授关系
public class Jsgx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//教职工号
private Integer teacherId;
//课程
private Integer kcId;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Integer getKcId() {return kcId;}
public void setKcId(Integer kcId) {this.kcId = kcId;}
}

课程javaBean创建语句如下:


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

//课程
public class Kc  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//课程号
private String kch;
//课程名称
private String kcName;
//上课地点
private String address;
public String getKch() {return kch;}
public void setKch(String kch) {this.kch = kch;}
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
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 Student  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 studentName;
//性别
private String xb;
//宿舍号
private String ssh;
//电话
private String phone;
//专业
private String zy;
//年级
private String nj;
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 getStudentName() {return studentName;}
public void setStudentName(String studentName) {this.studentName = studentName;}
public String getXb() {return xb;}
public void setXb(String xb) {this.xb = xb;}
public String getSsh() {return ssh;}
public void setSsh(String ssh) {this.ssh = ssh;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getZy() {return zy;}
public void setZy(String zy) {this.zy = zy;}
public String getNj() {return nj;}
public void setNj(String nj) {this.nj = nj;}
}

教师javaBean创建语句如下:


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

//教师
public class Teacher  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 teacherName;
//性别
private String xb;
//职称
private String zc;
//办公室
private String bgs;
//电话
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 getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
public String getXb() {return xb;}
public void setXb(String xb) {this.xb = xb;}
public String getZc() {return zc;}
public void setZc(String zc) {this.zc = zc;}
public String getBgs() {return bgs;}
public void setBgs(String bgs) {this.bgs = bgs;}
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 Xuexi  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//学生
private Integer studentId;
//课程
private Integer kcId;
//成绩
private String cj;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Integer getKcId() {return kcId;}
public void setKcId(Integer kcId) {this.kcId = kcId;}
public String getCj() {return cj;}
public void setCj(String cj) {this.cj = cj;}
}

源代码下载点这里

评论