Database course design: university educational administration management system (including code)


Written at the very beginning: This course design was written by me line by line in the summer vacation of 2021. Now I share it with you for free. If it is helpful to you, please give me a like, thank you.

If you have any questions, you can leave a comment, and I will get back to you when I see it, but I can only answer questions related to my code. For other configuration questions, please search more.


Resource links (choose by yourself, all are free):

CSDN resource
Baidu network disk extraction code: a5iq

Let me explain some codes:

1. The design of this course is not particularly high-end. The various components of Java swing used in the human-computer interaction interface, the backend is Java and SQL server. I have given the SQL file in the compressed package. After you download it, run it directly on the SQL server It's ok, but I don't know if MySQL or Navicat can run. I suggest you search it. I think it should be easy to solve. If you want to use MySQL.

2. Download the compressed package, open the compressed package, there will be three things inside.

insert image description here

These three things are:
Project file of Eclipse;
SQL code to create database;
course design report.

Note: The content in the course design report may be inconsistent with the actual code, because I have improved some functions in the later stage. You need to read this for yourself. I only remember some: only courses can be selected in the report, but the code is realized
. Cancellation;
the function of viewing the class schedule used to pop up a photo of the class schedule directly, but now it prints out the class schedule on the page.
That's all I can remember.

3. Open Project

The following only introduces the normal steps, and there will be no errors by default. If you encounter problems during the operation, it is recommended to search for solutions on the Internet.

File——Open Projects from File System

insert image description here

Click Directory to select the Project file lin

insert image description here

After opening it looks like this:

insert image description here

I only have one package, zzdx, which contains all the codes of the project. In fact, this kind of code writing habit is very bad. It will be very cumbersome and unprofessional to put all the codes in one package. When I was a sophomore, I actually I don't know anything about MVC frameworks, so I wrote them all in one package.

Note: only lf.java can run, the others are called.
Forgive me for the strange name, most of which are Chinese initials, for example: the second ckcj.java, this file is the interface for viewing results.

insert image description here

Right-click lf.java——Run As——Java Application

insert image description here

The running interface will come out. As follows: My interface is relatively simple, if you have time, you can search how to make the interface more beautiful.

insert image description here

Oh, by the way, all the picture files are in the bag. If you want to change them, you can just change them in the bag.

insert image description here

In addition, if the text needs to be modified, it may need to be found in the code of the corresponding interface. For example, the Zhengzhou University educational affairs system in the first interface needs to be modified in lf.java.

insert image description here

This kind of Chinese characters is quite conspicuous in the code, so it should be easy to change. The difficult part for everyone is to find the Java file corresponding to the corresponding interface.

Let me just explain the pages or functions represented by each code: (not in the order in which they are arranged in Eclipse)

Director is equivalent to administrator

identity code name meaning
ALL lf.java welcome page
ALL welcome.java choose identity
ALL dl.java、test.java Enter the account password to log in, test.java is used to generate the verification code
ALL zzdx.java、zzdx1.java、zzdx2.java Account password verification (students, teachers, directors)
ALL success.java、success1.java、success2.java、qq.java The homepage (students, teachers, directors) after successful login, qq.java is used to generate the core part of the homepage - the function selection box
ALL error.java The account password is wrong
student ckkb.java view class schedule
student ckcj.java view grades
student cktz.java View notifications
student jsdh.java、more.java Query the teacher's phone number, jsdh.java is to check the phone number of the teacher in charge, if you want other teachers' phone numbers, you can check in more.java
student xk.java course selection
student tuike.java quit class
student xgmm.java change Password
teacher ckkc.java View taught courses
teacher fbtz.java post notice
teacher sccj.java Upload Student Grades
director ckjl.java View the record of teacher uploaded grades
director gznx.java Update the teacher's working years (this function is useless, it is recommended to delete)
director kskc.java open courses
director zhgl.java、xs.java、js.java、sc.java、cj.java Account management (addition and deletion of teacher and student accounts)

4. Run the SQL file

In the SQL server
file - open - file

You can also try it in MySQL or Navicat

insert image description here

Find zzdx.sql, open

insert image description here
Click Execute to create the database

insert image description here

All such codes in the code need to be replaced with your own user name and password. If you change zzdx.

insert image description here

this may take a while

First select Class.forName with the mouse

insert image description here

Click: Search——Text——Project

In this way, Eclipse can help you find all the places where Class.forName appears in the lin Project, and then modify them one by one. Just change one, and then copy and paste it directly. It is recommended to try to see if you can successfully connect to the database before modifying all of them.

insert image description here

5. Course design report

Let me emphasize again that there are differences between the content in the report and the functions implemented by the code, but there is not much difference. You can refer to it.

6. General interface

page description picture
welcome page insert image description here
identity choice insert image description here
Enter account password insert image description here
Login failed insert image description here
Student Home insert image description here
View Courses (The name was changed to View Courses because I found it troublesome to arrange students’ classes into a schedule, so it is simply listed here. The previous name was View Schedule because the function was implemented as a pop-up photo of the schedule. I don’t need to edit it manually, so you can delete the picture of the class schedule in the Project, because it is useless, and you can see that if the name of the course is too long, it cannot be displayed in full. I use the JLabel component. You can use it if you have time. Replace with JTextField component, you can display all names) insert image description here
Check the result (null means the teacher has not uploaded the result, and the default is to pass the test) insert image description here
Check the notification (each notification will carry the teacher's name, only the notification sent by the class teacher will be received by the students, it seems so, I kind of forgot) insert image description here
Inquiry phone number (the phone number of the teacher in charge will be printed first, if you need other teachers, you can click more) insert image description here
More (you can search by entering the name, if you have this teacher, you will print it out, and if you don’t, you will be prompted) insert image description here
Course selection (fuzzy search is available, click on the course name to select a course, the system will automatically compare whether there is a conflict between the course and the existing course, the course cannot be removed from the current list immediately after selecting a course or withdrawing from the course, you need to exit and re-enter to see the selected course The course is no longer on the list, but you won’t make mistakes if you click it a few times, you can rest assured) insert image description here
Withdrawal (Click on the course number to withdraw from the course) insert image description here
change Password insert image description here
teacher home page insert image description here
View courses taught (just listed like students) insert image description here
Post a notification (only your own students will receive this notification) insert image description here
Upload grades (enter the grades and click the submit button, the same as course selection, if you can’t submit a student’s grades, the student will be removed from the list, so you can upload grades multiple times, the last time is the final score, but the uploaded records will be detailed Records, the director can inquire, we uploaded 88 points to Zhuang Zhou here, we will see if the director can check the modification record later) insert image description here
Director Home insert image description here
Check the records (see if there is any record that we gave Zhuang Zhou 88 points. In fact, there is still a problem. If there are too many modified records here, all of them cannot be displayed. The record.txt file needs to be cleaned regularly, and the course selection is also required. , if there are too many courses to choose from, they cannot all be displayed. If you have time, you can search for what components to replace to realize the drop-down bar, and then put these record information or course information into the drop-down bar component, so that you can install it all content up) insert image description here
open courses insert image description here
Account management (including the creation and deletion of teacher and student accounts, I am too lazy to take screenshots) insert image description here

7. Well, that's it. If it helps you, I hope you can give me a thumbs up.

Guess you like

Origin blog.csdn.net/qq_45750767/article/details/125493744