1.2 Main function marked:
1.2.1
Management of student files:
Enter, modify, query, and output student file information, including students' basic situation, student resume, student reward situation, student punishment, student family information, student physical examination.
1.2.2
Student status management:
Enter, modify, query, and output students' knowledge, including student prize loan, student registration, student change, student military training situation, student graduation situation.
1.2.3
Student results management:
Enter a modification, query, output student enrollment grades, semester, performance information of each course, and support statistics, queries, and reports of conditions, query, and reports of conditions in grades and classes.
III. Design section:
1 design framework
1.1 Separation of data and page effects
For this management system, a variety of users operate on the system, whether it is modified or gains their own information, the nature of operations, in fact, there are only two kinds, data and page effects, of course, we can use JSP to put all the operations In the page, the result is that the result is that the code of our page or several pages will be a lot of code, which is complicated. Whether it is the HTML code that handles static operations or the JSP code for processing dynamic transactions, for the modification and function of future programs. It is difficult to operate, data separation map
as follows:
Figure: 1 page data separation diagram
1.2 Static page and process page
For the static page, only the super-connected function is implemented, and the process page implements the data processing of the form for the submission form, and the static page is displayed when the processing is processed, and the static page is displayed, and we don't want the user for the processing page I know the details of the processing, so we set it to hide, the specific implementation map is as follows:
Figure: 2 page processing chart
1.3 Optimization and code and module reuse
1.3.1
Module reuse:
For low-rights users, such as students, teachers, etc. We allow them to modify and update their own private information, but we can also modify and update other low authority users for the highest authority of administrators so that we can reuse these modules. When the administrator wants to modify When a student's information, we need to provide a student number to be modified so that we can use the module reuse function to implement the feature that he needs to modify and update, as shown below:
Figure 3: Module Reuse Example
1.3.1
Code reuse and optimization:
We do not need to repeat the code, such as students, for the same functional operation or similar operation.
with
Teachers need to modify their private information. These two methods are basically the same, but the data members are different. We all need to update the database after modification. This is only the difference between the field name and the table name, so we can design some basic classes. To complete similar operations, the specific principle is shown in the figure:
Figure 4: Code optimization
1.4 Data and page processing:
The user's access to the page can be in two ways, one way to read static HTML pages from the server, such a page mainly login, basic information, or entry of various situations, such a page consisting of only static HTML code JSP page processing.
For the second case, we need to process the data, for example, after changing the students' password, we need to operate the database so that we have to use JavaBeans, which contains the beans's JSP page to handle these transactions, processing completion We will need to jump back to the original request page. The relevant schematic is as follows:
Figure 5: Page processing map
Figure 6: Data processing map
2. Program frame design
2.1 Foundation class design:
For the operation of the database, we need to use the same operation for the modification of the password (whether students, teachers or administrators) and the Chinese handling and database in JSP, and finally the operation of landing, Therefore, when designing the basic class, I use these four classes as the basic class, other classes only need to achieve the functions required, the specific basic class features are shown below: Table 1: Basic class function table
Bean name
Features
Login
All users log in
Changepassword
Password modification of all users
Chineseprocess
Handling all pages Chinese issues
Database
All the operations of the database
2.2 Package Design:
Five function packages are designed, and the specific functions are used for different modules. Please refer to the figure below.