Shijiazhuang Railway Institute elective system

1 , project requirements:

The project developed by the student elective system to complete school enrollment statistics and management information for students, reduce the cases of missing data, but also saves manpower, material and financial resources. Bid farewell to the past, artificial statistics.

2. System requirements and functional design

2.1  page requires

(1) can be properly deployed in the Tomcat server and viewed through a browser;

(2) Web pages overall style uniform;

(3) Home (login page) to achieve the requirements of different users log in, enter function page is not the same.

(4) Teacher feature page: There are courses add, modify personal information, browse student information three elective modules.

(5) Student feature page: There modify personal information, view course information, three elective modules.

(5) administrator functions Page: teachers have added information, student information to add two modules.

2.2 Functional requirements:

(1) Add Teacher Information: Administrators can add basic information about teachers, teachers' basic information includes: Teacher job number (eight digits, for example 02000081), teacher's name, teacher gender, where faculty, titles (professors, associate professors, lecturers TAs) composition;

(2) Add Student Information: management can add students basic information, basic information, including school students (eight digits, for example 20180052), student name, student sex, where the classes, their professional composition;

(3) add a course Information: After landing teachers can add their own curriculum basic information office, the curriculum includes basic information: Course number (six digits, for example 050013), course name, the number of elective, classroom teachers (classroom teachers need entry, fill that teacher course information, that teacher is classroom teachers);

(4) modify personal information: a teacher or student after landing can modify personal information, but teachers work number or student number can not be modified, the other teacher or student can only modify their own information, can not see or modify the basic information of other students or teachers .

(5) View course information: Students can see a list of login information for all courses, click on the course name to view details of the course, including the number has been elective; click on the name of the teacher can view the details of teachers.

(6) elective: to enter the page elective courses list displays all the information the number of enrollment does not reach the maximum number of elective courses, click on the course name to see details of the course, click on the course details page of "elective" button, you can achieve elective functions .

(7) Browse elective student information: After teachers entering the page, you can see a list of programs set up their own information, click on the course name, you can see that all students choose the course of basic information list.

(8) Log function: administrators, teachers, students can see the different features page after landing, after landing teacher or student can only see their own information, different teachers, different students after landing can not view other people's information. (Requires user to create at least two teachers and ten students demonstrate user enrollment process)

3 Database Design:

Curriculum required to achieve the basic information table, basic information table of teachers, students basic information table, basic information table elective. (Hint: elective basic information, including course number, number of teachers, student number and other basic information)

4 , the WEB release:

Requires direct access to the system can be implemented in a browser.

 

(A), database table design: firstly analyzes for different users, the students and teachers and administrators across a table, set different permissions, enabling different users to implement different operations after landing, elective for students the establishment of a: link on a course student pre-numbered. For the curriculum, to build a multi-data: the number of elective been nowpeople.

Database tables: users

 

 

 course table

 

 

(B), functions to achieve

First, realize that the distribution login, and privileges of different users, there are two main login button: regular user (student / teacher), administrator login. For ordinary login, because there are only two types of users, so the weight of our students settings: 1, set the value of the right teacher: 2, features page, cookie passed through in obtaining permission to log information to to achieve different multi-user operation.

对于管理员则拥有,创建学生和老师的功能(普通的增加)。其他对老师和学生的信息的修改就不再多说(update),老师还有一个增加课程的操作,哪个老师登陆的,就创建的是那个老师的课程,该功能是通过在功能页面当点击创建课程时,会将老师的姓名传递给后台,后台对course数据表中的teachername进行添加。

最重要的就是选课功能的实现:首先浏览课程信息就是一个获取所有课程的一个简单的查找+展示的操作,而选课则不一样了,选课虽然也是查找+展示,但是这里的查找则多了一点:便是只能查找那些nowpeople小于people的课程,并添加到ArrayList<Course>数组里,其中对于选课的操作涉及到:对该课程已选课人数的更新,同时对于选择该课程的学生的pre进行设置,将pre设置成该课程的编号。学生选课就结束了。

那么当老师登陆后,可以查看自己的课程,当点击课程时会显示选择该课程的学生的详细信息,这部分功能实现:通过该课程的编号,那user表里查找pre等于该课程编号的,将该学生加入到数组里,然后进行展示。至此,此功能只要的核心已经完成,剩余的是一些零碎的显示信息的展示,当点击课程会展示课程的相关信息,点击老师会展示相关的老师的信息。这部分比较简单。

(三)功能展示截图

 

 

 

 

 当点击一门课程时,会展示所有选择该门课程的学生

 

 

 

学生那里进行选课:

 

 这里的浏览功能是所有的课程都会显示再这里,点击一门课程则会显示该课程的详细信息

 

 

 选课:

 

 选课这里只会显示该学生能选的科目。

bean+dao+service+servlet+util

jsp

 

 

--------------------------------------------------------------------------------------------------------------------------

这就是本次实验的全部展示,在文件里有本次实验的源码Class,对于本次试验,最一点小小的总结,第一点手速还是不够快,2点-5点,3个小时的时间里,只完成了一些多用户的登录,管理员的功能,和一些老师和学生的增,改功能,实现了简单的浏览课程信息的功能,但对于选课这部分才做出一点,下回要尽可能缩短前期的时间,给后期主要的流程留出时间,只要相同如何建立已选课程与学生的联系后,便非常的简单。

Guess you like

Origin www.cnblogs.com/xiaofengzai/p/12061149.html