Design and implementation of Java-based office management system (with source code address)

Summary

With the rapid advancement of enterprise information management, how to use existing information to improve work efficiency and management level has become a problem that needs to be solved at the beginning of company informationization. The traditional work collaboration method is not only inefficient, but also prone to communication problems between departments. Use the OA office management system to achieve cross-department and cross-regional collaborative work, improve work efficiency, and strengthen business standards. Therefore, the development of OA office management system is of great significance.
OA office management system is an application software for most people in the enterprise. While improving work efficiency, it also solves communication barriers among employees and strengthens work communication. This system mainly includes functions such as personnel management, attendance management, reimbursement management, revenue and expenditure management, etc. This system is based on B/S architecture, uses Java language and native Servlet technology to strictly comply with JavaEE enterprise-level specifications, and uses MySQL database for data storage. The front-end and back-end interaction technology uses Ajax.

1. Introduction

(1) Research background

In the 21st century, enterprise information management has been rapidly promoted. Enterprise information management based on information flow and data flow has become an important means to improve the level of enterprise management. At the same time, it has also become the basis for the transition of business management to computerization. The importance of information processing and information processing is not only an important symbol of modernization of enterprise management, but also a powerful means to deepen enterprise management and improve efficiency and efficiency. The company's office automation has become a topic platform for office automation. However, due to the lack of information technology experience in many companies, the results are unsatisfactory. The main reason is that no office method has been found that meets the company's own needs and characteristics. In addition, with the continuous development of data mining technology in recent years, companies analyze various information generated within the enterprise, and the analysis results are supported by useful information.

(2) Research significance

OA office management system is the basic management software for enterprise informatization and is an application software for the majority of enterprises. The ultimate goal of OA office management system implementation is to improve management efficiency and management level. Compared with the current company's office system, the OA office management system has the advantage of solving communication problems and communication barriers at work, making communication fast and effective. Carry out cross-regional collaborative work to improve business efficiency. Establish a portal within the enterprise and unify the information release platform to solve the problem of information confusion. Improve internal resource utilization, reduce office and corporate operating costs, and make office work less complicated.

2. Related technologies

(1) Java language

Java is an object-oriented programming language that can write cross-platform application software. It is the general name of Java programming language and Java platform. Java technology has excellent versatility, efficiency, platform portability and security. Its main technical features are as follows:
1. Security: One of the main methods for Java to defend against malicious code is the storage allocation model. Therefore, many large-scale enterprise-level project developments will choose to use Java.
2. Portability: Java does not depend on the platform, and programs written in Java can be applied to any operating system.

(2) Ajax technology

Ajax, which stands for "Asynchronous JavaScript And XML", refers to a web development technology that creates interactive, fast and dynamic web applications that can update parts of web pages without reloading the entire web page. Technology.
Ajax allows web pages to update asynchronously by exchanging a small amount of data with the server in the background. This means that parts of a web page can be updated without reloading the entire page.

3. Demand analysis

(1) Programming and operating environment

The OA office management system uses Java language, the running environment is Tomcat, and the database is MySQL. The project uses native code, strictly abides by enterprise development JavaEE specifications, and uses Servlet plus JSP for development.

(2) Feasibility analysis

The feasibility study is based on the current situation and analyzes from technical, economic, operational and other aspects to determine whether the software can be developed according to user needs.

1. Technical feasibility

Technical feasibility refers to whether the design, development and final completion of the system can be achieved using existing technology. The OA office management system uses Java language and combines MySQL database, which has low requirements on computer software and hardware. The current development technology and database application technology can fully meet the needs of users. Therefore, it is technically feasible to develop an OA office management system.

2. Economic feasibility

Economic feasibility refers to whether the economic benefits a website can bring exceed the cost of developing the website and whether it will bring enough economic benefits to users. The OA office management system is developed using Java language and MySQL database. It does not have high requirements for server hardware. The system is developed based on B/S architecture and has lower requirements for user equipment. This system greatly reduces the workload of enterprise employees. . Therefore, it is economically feasible to develop an OA office management system website.

3. Operational feasibility

The front-end page of the OA office management system is developed using JSP and HTML. The page design is in line with contemporary people's visual senses, which greatly reduces the user's visual fatigue. The page design is simple and clear, and users can easily use it when they first come into contact with the system. the system.

(3) Analysis of system business function requirements

Insert image description here

Figure 3-1 Common employee function use case diagram

Insert image description here

Figure 3-2 Company leadership function use case diagram

4. System design

(1) Overall structure design of the system

According to the demand analysis of the system, in order to achieve the functional goals of the system, the main functional modules that the system should include are: login module, personnel management module, attendance management module, reimbursement management module, revenue and expenditure management module, and personal platform module. The overall structure diagram of the system design is shown in Figure 4-1.

1. Login module design

To log in, you need to enter your username, password, and verification code. To prevent malicious logins from humans and machines, which may put pressure on the server, users need to enter the verification code. Users can only enter the system through the login module and can operate after successfully logging in.

2. Personnel management module design

When the user clicks on personnel management, a tree menu will appear on the left navigation bar: department management, position management, and employee management. When you click department management, position management, and employee management, you will jump to the corresponding operation page. Users can add, delete and modify department, position and employee information respectively according to actual needs. Click the Exit button to log out and return to the main page.

3. Design of attendance management module

The attendance module includes sign-in and sign-out, attendance management and my attendance.
When the user clicks the sign-in button, he or she can sign in for the day, and only one sign-in is allowed on the day. If the user signs in repeatedly, the system will prompt not to sign in again. Multiple check-outs can be performed on the same day, and only the last check-out time will be taken. When the company leader clicks the attendance management button, he will enter the company employee attendance interface and view the attendance information of all employees in the company. Click the Exit button to log out and return to the main page.

Insert image description here

Figure 4-1 Overall structure diagram of system design

4. Design of reimbursement management module

Ordinary employees can apply for reimbursement of expenses after successfully logging in and wait for review by company leaders. After successfully logging in, company leaders can review employee reimbursement forms. When reviewing an employee's reimbursement form, first confirm whether you agree with the reimbursement form. If you reject it, call it back directly. If you agree, first determine whether the amount is within the scope of your review. If it is, directly review and successfully modify the reimbursement form status and add the review history record. , pay directly. If you do not modify the next reviewer of the current reimbursement form, add the review history record and make the payment directly. Click the Exit button to log out and return to the main page.

5. Design of revenue and expenditure management module

When the user clicks Income and Expenditure Management, a tree-like menu appears on the left navigation bar for Income Management and Expenditure Management.
When the user clicks Add Income, it will jump to the Add Income Basic Information page. The basic information to be added includes income amount, income type, income date, and remarks. Click Confirm to save to add successfully. When you click on income statistics, you will jump to the income statistics bar chart interface. Clearly and intuitively see the company's revenue through histograms. The user clicks the View Expenditures button to enter the expenditure details interface, which includes expenditure type, amount, expenditure person, and expenditure time. Click Expenditure Statistics to jump to the company's expenditure statistics histogram interface. Click the Exit button to log out and return to the main page.

6. Personal platform module design

The user clicks the personal platform button and then clicks My Information to modify basic personal information, such as user name, contact information, QQ number, and emergency contact information. If the user clicks Confirm to save, the modification is successful. Click Modify Password to modify the current account password. You need to enter the old password, new password and confirm the new password. If the old password is entered correctly and the new password is entered in the correct format, click Confirm to modify it successfully. Click the Exit button to log out and return to the main page.

(2) Database design

1. Concept model design

Through system requirement analysis and data abstraction, various entities related to data in the system and the connections between entities are extracted, thereby obtaining the E-R diagram of the system. The system E-R diagram is shown in Figure 4-3.

2. Logical structure design

On the basis of database analysis and conceptual structure design, the conceptual model of the database is transformed into a logical structure, that is, the structure of the database is designed. The structure design of the MySQL data table in this system is as follows.
Insert image description here

Figure 4-3 System E-R diagram

5. System implementation

(1) Implementation of login module

After entering the system login page, the user needs to enter the user name, password and verification code, click the login button and enter the system homepage. In order to prevent malicious login, the verification code is added, and to prevent malicious login by robots from attacking the system server and causing system crash.
The system login flow chart is shown in Figure 5-1.

Insert image description here

Figure 5-1 System login flow chart

The rendering of the login interface is shown in Figure 5-2.
Insert image description here

Figure 5-2 Login interface renderings

(2) Implementation of personnel management module

This module is divided into three sub-modules, mainly managing departments, positions, and employees. When the user clicks the Add Department button, enter the department information to be added and click the Confirm Save button to add successfully. Click Department Management to modify and delete the corresponding department information.
The rendering of the personnel management module’s interface for adding employees is shown in Figure 5-3, the rendering of the interface for adding departments is shown in Figure 5-4, and the rendering of the interface for adding positions is shown in Figure 5-5 As shown, the employee management interface rendering is shown in Figure 5-6.

Insert image description here

Figure 5-3 Add employee interface renderings

Insert image description here

Figure 5-4 Add department interface renderings

Insert image description here

Figure 5-5 Rendering of the interface for adding a position

Insert image description here

Figure 5-6 Employee management interface renderings

(3) Implementation of attendance management module

This module mainly implements employee sign-in and sign-out, attendance management, and my attendance. When the user clicks the sign-in button, if the user has already signed in that day, the user will be prompted not to sign in again. If the user has not signed in, the user will be prompted to sign in successfully. Click Attendance Management to view the attendance information of all employees. Click My Attendance to view all the user's own attendance information. The overall business process of attendance is shown in Figure 5-7.
Insert image description here

Figure 5-7 Overall attendance business flow chart

The renderings of the sign-in and check-out interface are shown in Figure 5-8, the renderings of the attendance management interface are shown in Figure 5-9, and the renderings of my attendance interface are shown in Figure 5-10.
Insert image description here

Figure 5-8 Sign-in and sign-out interface renderings

Insert image description here

Figure 5-9 Attendance management interface renderings! [Insert picture description here](https://img-blog.csdnimg.cn/7ef2931fa3744f029c9bba006ae68e5c.png#pic_center)
Figure 5-10 My attendance interface renderings

(4) Implementation of reimbursement management module

There are four main sub-modules under the reimbursement management module, including reimbursement, pending reimbursement, my reimbursement, and my review history.
The rendering of the reimbursement management interface is shown in Figure 5-12.

Insert image description here

Figure 5-12 Rendering of the reimbursement management interface

(5) Implementation of revenue and expenditure management module

This module mainly conducts detailed inspection and recording of the income and expenditure of each department. Through the bar chart, the income and expenditure of each department can be seen at a glance and there is a sharp comparison. Users click View Income and Expenditure to jump to the corresponding page, where they can see a histogram of income and expenditure, and can see specific income and expenditure information. The rendering of the revenue and expenditure management interface is shown in Figure 5-13.
Insert image description here

Figure 5-13 Rendering of the revenue and expenditure management interface

(6) Implementation of personal platform management module

This module mainly implements the functions of modifying the current user's personal information and modifying the login password. The user clicks My Information to jump to the My Information interface and an input box appears. Enter the user's basic information, including user name, contact information, QQ number, and emergency contact basic information. The user clicks Confirm to save and is prompted that the modification was successful. The user clicks to change password, enters the old password, new password and confirms the new password. The old password needs to be compared to the database to see if the current user password is entered correctly. If all the passwords are entered correctly, click Confirm Modification to prompt the user that the modification is successful.
The rendering of the personal platform interface is shown in Figure 5-14.
Insert image description here

Figure 5-14 Personal platform interface renderings

Source code network disk link:
Link: Link: https://pan.baidu.com/s/1xQUhA9-ToBpCNg5ksbvJwA?pwd=ab5h
Extraction code: ab5h

JAVA completion help, guidance, source code sharing, debugging and deployment
Insert image description here

Guess you like

Origin blog.csdn.net/a1g45/article/details/131043308