当前位置:   article > 正文

基于java+swing+sql的学生成绩管理系统_学生成绩管理系统java和sql

学生成绩管理系统java和sql

一,项目简介

基于java+swing+sql的学生成绩管理系统,分为教师端和学生端,学生仅有查看操作,教师具有增删改查操作。

二,实体信息

分为学生成绩,学生学习,用户三个实体类

学生成绩实体类:

  1. public class StudentImformAtion {
  2. private String Sno;
  3. private String Name;
  4. private String Sex;
  5. private String Dept;
  6. private String Address;
  7. private String Grade;
  8. private String Tep;
  9. public StudentImformAtion(String dept, String grade) {
  10. super();
  11. Dept = dept;
  12. Grade = grade;
  13. }
  14. public String getSno() {
  15. return Sno;
  16. }
  17. public void setSno(String sno) {
  18. Sno = sno;
  19. }
  20. public StudentImformAtion() {
  21. super();
  22. // TODO 自动生成的构造函数存根
  23. Dept="";
  24. Grade="";
  25. }
  26. public StudentImformAtion(String sno, String name, String sex, String dept, String address, String grade,
  27. String tep) {
  28. super();
  29. Sno = sno;
  30. Name = name;
  31. Sex = sex;
  32. Dept = dept;
  33. Address = address;
  34. Grade = grade;
  35. Tep = tep;
  36. }
  37. public String getName() {
  38. return Name;
  39. }
  40. public void setName(String name) {
  41. Name = name;
  42. }
  43. public String getSex() {
  44. return Sex;
  45. }
  46. public void setSex(String sex) {
  47. Sex = sex;
  48. }
  49. public String getDept() {
  50. return Dept;
  51. }
  52. public void setDept(String dept) {
  53. Dept = dept;
  54. }
  55. public String getAddress() {
  56. return Address;
  57. }
  58. public void setAddress(String address) {
  59. Address = address;
  60. }
  61. public String getGrade() {
  62. return Grade;
  63. }
  64. public void setGrade(String grade) {
  65. Grade = grade;
  66. }
  67. public String getTep() {
  68. return Tep;
  69. }
  70. public void setTep(String tep) {
  71. Tep = tep;
  72. }
  73. }

学生信息实体类:

  1. public class StudentScore {
  2. private int id;
  3. private String Sno;
  4. private String Grade;
  5. public StudentScore(String sno, String grade) {
  6. super();
  7. Sno = sno;
  8. Grade = grade;
  9. }
  10. private String Subject;
  11. private float Score;
  12. private String Show;
  13. private float Uaual;
  14. private float Test;
  15. private float Credit;
  16. public StudentScore(String sno,String grade, String subject) {
  17. super();
  18. Sno = sno;
  19. Grade = grade;
  20. Subject = subject;
  21. }
  22. public StudentScore(String sno, String grade, String subject, float score, String show, float uaual, float test,
  23. float credit) {
  24. super();
  25. Sno = sno;
  26. Grade = grade;
  27. Subject = subject;
  28. Score = score;
  29. Show = show;
  30. Uaual = uaual;
  31. Test = test;
  32. Credit = credit;
  33. }
  34. public int getId() {
  35. return id;
  36. }
  37. public void setId(int id) {
  38. this.id = id;
  39. }
  40. public String getShow() {
  41. return Show;
  42. }
  43. public void setShow(String show) {
  44. Show = show;
  45. }
  46. public float getUaual() {
  47. return Uaual;
  48. }
  49. public void setUaual(float uaual) {
  50. Uaual = uaual;
  51. }
  52. public float getTest() {
  53. return Test;
  54. }
  55. public void setTest(float test) {
  56. Test = test;
  57. }
  58. public float getCredit() {
  59. return Credit;
  60. }
  61. public void setCredit(float credit) {
  62. Credit = credit;
  63. }
  64. public StudentScore() {
  65. super();
  66. // TODO 自动生成的构造函数存根
  67. }
  68. public String getSno() {
  69. return Sno;
  70. }
  71. public void setSno(String sno) {
  72. Sno = sno;
  73. }
  74. public String getGrade() {
  75. return Grade;
  76. }
  77. public void setGrade(String grade) {
  78. Grade = grade;
  79. }
  80. public String getSubject() {
  81. return Subject;
  82. }
  83. public void setSubject(String subject) {
  84. Subject = subject;
  85. }
  86. public float getScore() {
  87. return Score;
  88. }
  89. public void setScore(float score) {
  90. Score = score;
  91. }
  92. }

用户实体类:

  1. public class User {
  2. public User() {
  3. super();
  4. // TODO 自动生成的构造函数存根
  5. }
  6. public User(String userName, String passWord) {
  7. super();
  8. this.userName = userName;
  9. this.passWord = passWord;
  10. }
  11. private int id;
  12. private String userName;
  13. private String passWord;
  14. //alt+shift+s
  15. public int getId() {
  16. return id;
  17. }
  18. public void setId(int id) {
  19. this.id = id;
  20. }
  21. public String getUserName() {
  22. return userName;
  23. }
  24. public void setUserName(String userName) {
  25. this.userName = userName;
  26. }
  27. public String getPassWord() {
  28. return passWord;
  29. }
  30. public void setPassWord(String passWord) {
  31. this.passWord = passWord;
  32. }
  33. }

结果展示

登陆界面

学生端功能部分展示

 教师端部分功能展示

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/170190?site
推荐阅读
相关标签
  

闽ICP备14008679号