Design and implementation of employee management system based on Java web

Summary

This article starts from the actual application needs of the employee salary management system, and builds an employee salary management system based on MVC development to improve the current cumbersome salary management process and insufficient employee salary statistics. Not only that, from the operator's point of view, the system's architecture can make effective statistics on employee wages.
This system uses Eclipse development tools, JSP technology and MYSQL database to realize employee salary management system. When working on a project, based on the above problems, conduct an in-depth analysis of it, and write down the analyzed content in detail in this article. After completing this step, you can start to work on the overall architecture of the system, and then further refine and complete the architecture planning of each functional section. In the process of system development, the more critical part is the structure of the database, adding, deleting, modifying and checking the reality and implementation status of the functional blocks, and then compiling and displaying the source code. After the general system development is completed, it is necessary to conduct a comprehensive inspection of the entire system to find out the problems in the system as much as possible. Using the Java language and MYSQL database, logging in to the system as an administrator can more easily complete the management and control of all data information in the system (employee salary-related basic information, employee attendance information, employee leave information, employee reward and punishment information, etc.).

Keywords: Eclipse development tool; JSP technology; Java language; MySQL database; salary management system

Abstract

Based on the practical application of employee salary management system, this paper builds an employee salary management system developed based on MVC to improve the current salary management process is cumbersome, and employee salary statistics is not in place.Not only from the operator’s perspective, the architecture of the system can make effective statistics on employees’ salaries.
This system uses Eclipse development tools, JSP technology and MYSQL database.When doing the project, based on the above problems, the in-depth analysis, and the analysis of the content in this article detailed writing down.After completing this step, you can start the overall architecture of the system, and then further refine the architecture planning of each functional plate.In the process of system development, the key part is the database architecture, data add, delete, modify and check the reality and implementation status of the functional plate, and then the source code is compiled and displayed.After the completion of the general system development, the whole system needs to conduct a full range of detection, as far as possible to find out the problems existing in the system.Using Java language and MYSQL database, login to the system as the role of administrator can more easily and easily control all internal data information (basic information related to employee salary, employee attendance information, employee leave information, employee reward and punishment information, etc.).

Key words: Eclipse development tools; JSP technology; Java language; MySQL database; payroll management system

Table of contents

摘 要 I
Abstract II
目 录 III
1 绪论 1
1.1 研究意义 1
1.2 研究目的 1
1.3 研究内容 1
2 系统开发工具 3
2.1 MVC 3
2.2 JSP技术 3
2.3 Java语言 3
2.4 MySQL数据库 3
3 系统分析 5
3.1系统可行性分析 5
3.1.1 技术可行性 5
3.1.2 运行可行性 5
3.1.3 操作可行性 5
3.2 需求分析 5
4 系统概要设计 9
4.1系统功能模块设计 9
4.2系统业务流程设计 9
4.2.1 用户登录业务流程 9
4.2.2 修改密码业务流程 10
4.2.3 部门信息业务流程 10
4.2.4 通知公告业务流程 11
4.2.5 员工考勤业务流程 12
4.2.6 员工奖惩业务流程 12
4.2.7 员工薪酬业务流程 13
4.3 数据库设计 13
4.3.1 数据库概要设计 13
4.3.2 E-R图向关系模型的转变 14
5 系统实现 18
5.1 Implementation environment description 18
5.2 User login module 18
5.3 Implementation of department information management module 18
5.4 Implementation of employee reward and punishment management module 19 5.5 Implementation of employee
attendance management module 21 5.6 Implementation of employee salary management module
22
5.7 Implementation of employee leave management module 23 5.8 Implementation of
notification announcement management module 24
6 System test 25
6.1 Test method 25
6.2 Functional module test 25
6.3 Test conclusion 27 Conclusion 28
Acknowledgments
29
References 30

1 Introduction

1.1 Research Significance
With the continuous development of the times, the level of Internet technology in China has improved significantly. As far as the enterprise is concerned, it is necessary to innovate the management system in today's ever-changing environment, so as to keep pace with the development of the times. However, the employee salary management system is a relatively complicated task, involving coordination and joint management of multiple organizations and levels. The entire process requires a comprehensive integration of the management system and personnel, so as to promote rapid employee salary statistics. Although the current enterprises attach great importance to the statistics of attendance in the salary calculation process, such as the emphasis on rewards and punishments, there are still some problems in the actual development and application process. Therefore, how to scientifically and effectively solve these problems has become a topic that needs to be explored at present. In the specific research process, this paper starts from many aspects, analyzes the problems existing in the application of employee salary management system in the current enterprise management, and expounds how to design and apply the management system architecture. The development and application of the Web-based employee salary management system can promote the improvement of enterprise attendance statistics. The design and optimization of the employee salary management system is to design the functions of the employee salary management system through the Web server from the perspective of enterprise management, so as to improve the application level of the employee salary management system.
1.2 Research purposes
The reason why we have been emphasizing the need for vigorous research on the employee salary management system is mainly because the employee salary management system plays a very important role in the promotion of school sports activities. The main purpose of the research on the employee salary management system is to enable managers to process and summarize data information more scientifically and rationally, and improve the efficiency of the entire work. This way can further promote the better management and implementation of enterprise employee salaries. For the management of employee salary-related information in enterprises, the employee salary management system is a very effective way, and it is precisely because of this particularity that in the process of managing and promoting employee salary, the statistical level of employee salary can be further improved.
The work of the employee salary management system is a relatively comprehensive and complicated work. This work is completed by multiple people and multi-level collaboration. Any problem in any link in the specific management business will have a serious impact on the whole. There is a large amount of data information in each link, therefore, information technology is of great significance to the management of employee wages.
1.3 Research content
First, friendly interface. In the development and design of employee salary management system, the friendliness of the interface is more important. Only by meeting this requirement can it reflect the characteristics of humanized design, adapt to the convenience of user application system, dynamic human-computer interaction design, user can feel the convenience of operation when applying the system, and improve the good experience of user experience, so as to help to give full play to the value of the system mining design [2].
Second, stability requirements. The development and design of the employee salary management system needs to be stable, and the stability of the system application can help the efficient completion of various management tasks and improve the system experience. The system operation guarantees that the system crashes due to external abnormalities, and the data can be backed up in time after a problem occurs in the system, and the data information can be restored as soon as possible to ensure the good operation of the system.
Third, scalability. The development and design of the employee salary management system needs to meet the requirements of scalability. The design of the system needs to consider the future system business expansion. With the continuous application of tests, the functional requirements will continue to expand, and through good scalability, it can meet diverse needs.
Fourth, meet needs. In order to effectively strengthen the demand for large users, in the process of developing the employee salary management system, it must be closely connected with the actual application requirements to ensure the practicability of the system [3]. System development must be forward-looking. Since the construction of employee salary management system is a long-term project, different stages need to be guided by pilot development blueprints and action programs. The development of the system should be able to meet the needs of flexible applications and give full play to the value of the system.

2 System Development Tools

2.1 MVC
The full name of MVC is Model View Controller, which is the abbreviation of model (model)-view (view)-controller (controller). MVC was uniquely developed to map traditional input, processing, and output functions in a logical GUI structure.
2.2 JSP technology
JSP technology is developed by sun company. For sun company to develop JSP technology, it integrates and develops these technologies in a personalized way by standardizing the equipment and information of each platform. The development of JSP technology plays a very important role in the development of network technology. JSP technology can realize functions that could not be realized by other technologies in the past. Therefore, under the development of sun company, JSP technology has realized a large span in the information field. Through JSP technology, various functions that cannot be realized in the past can be realized. In the actual use process, users can exchange information at any time and any place. This large-scale Internet service enables everyone to use smart devices to better serve their own lives and improve their quality of life when using smart devices. After the development of JSP technology matures, people will have no leisure time to process information analysis, or do not need to analyze data during actual use. As long as the relevant smart devices hear the relevant data transmission process, they can search for relevant knowledge and efficiently find more professional knowledge for us.
2.3 Java language
The Java program is a very important application software in the computer program application process, because its performance is relatively high, and it can be applied in multiple fields, so the scope of the program in the computer software program application is relatively wide. From a professional technical point of view, the application of Java programs is also very practical, because it does not have much change in basic structure compared with traditional C language or C++, that is to say, its grammatical structure is relatively single, and has stable characteristics. More importantly, the basic reference object of Java programming language is C language, so its programming is not very complicated, and it can also play the role of optimizing work efficiency and improving the basic functions of system design itself, so it is favored by a very wide range of programmers [5].
2.4 MySQL database
The system uses MySQL as its database. MySQL is a relatively good database system in Microsoft and is suitable for small and medium-sized databases. MySQL is a small and exquisite database, fully networked and cross-platform. General-purpose databases can be studied from two aspects. Here, they are divided into two categories based on whether they have relationships, that is, relational databases and non-relational databases. The reason why MySQL is used is because it can accommodate many users to access at the same time, and it will classify and process the data, and then store it in the corresponding table. MySQL code is free code that allows others to collect and recompile and upgrade for users to use. This feature can reduce the cost of user development system, and use supporting software to build a better website system. Despite its shortcomings, MySQL is still the most used database under the current development trend. And support various operating system functions, such as AIX, FreeBSD, HP-UX, Linux, Mac OS, NovellNetware, OpenBSD, OS/2 Wrap, Solaris, Windows, etc.; API can meet the compilation and analysis of multiple languages; in the configuration of CPU resources, use multi-line meta-programs to realize data analysis and integration; provide editing interfaces for TCP/IP, ODBC, JDBC and different external programs, which play an important role in data information sharing; role. Combined with the above research, it is known that MySQL can satisfy the data management of users and general websites, and has a good effect on the optimization and upgrading of system management structure, and because MySQL can meet the analysis of open source code, it is efficient and scientific in data analysis and system design [5].

3 System Analysis

3.1 System Feasibility Analysis
3.1.1 Technical Feasibility
For the employee salary management system designed in this project, considering the maturity of the technology and combining the level of personal mastery, it is not necessary to consider the integration of new technologies. On this basis, comprehensively consider the use of JSP technology + MySQL database to develop the system, and the current development technology to be adopted has been verified by a large number of enterprise information systems, so it is technically feasible.
3.1.2 Operation Feasibility
After the development of any system application is put into the market after the design is completed, whether it can be welcomed and favored by the majority of users depends mainly on whether the complexity of its operation meets the current user's operating habits and overall needs. The operation of the employee salary management system designed and developed is relatively simple, and the application without overly complicated interfaces and functional modules allows users to see the service content they need at a glance, and then click the corresponding function button to realize online operation.
3.1.3 Operation Feasibility
The system has always adhered to the principle that the operation should be excellent and the code should be short and concise. The shorter the code, the more beautiful it is, and the easier the operation is, the more people will use it. As long as it is a normal PC, this software can be run. It can be said that the software has zero requirements for system configuration, and there is no requirement for operation. As long as you can simply point and click, you can use it freely. However, the computer needs to be connected to the Internet, because the system is a networked software. Operate just fine.
3.2 Demand analysis
First, from the user's point of view, there are two types of users in this employee salary management system, namely employees and system administrators. Since the use case diagram has the function of correctly capturing the user's functional requirements, the following is the first to analyze the requirements of these two types of user use case diagrams
.

Figure 3-1 System administrator use case diagram
The employee use case diagram is shown below.

Figure 3-2 Employee use case diagram

According to the use case diagram, some important use cases are described.
The login use cases are described in the table below.
Table 3-1 Login use case description
Use case name Login
Participant system user
Description The system user fills in the system user name and password to log in to the system.
The pre-condition system user is registered. The post-condition
system user name and password are correct.
Event flow (1) The system user enters the system user name and password on the login page ( 2 ) The system detects the
system user name and password entered by the system user
(3) Displays that the login is successful and returns to the main page . Table 3-2 Personal information management use case description Use case name Manage personal information Participant administrator employee Description View and modify personal information Preconditions are logged in Postconditions None Event flow (1) View personal information (2) Modify personal information Supplementary instructions (a) Password can be modified (b) Contact information can be modified The department information use case description is shown in the table below. Table 3-3 Description of departmental information management use cases Use case name Departmental information management Participant administrator Description Provides functions such as adding, modifying, deleting, and viewing Preconditions (1) Successfully log in to the system (2) Only existing departmental information can be modified and deleted Postconditions None




















Event flow (1) View and modify department information
(2) Add department information
(3) Delete department information
Supplementary instructions (a) If the newly added department information does not meet the requirements, the addition will fail
(b) If the modified department information does not meet the requirements, the modification will fail.
The use case description of attendance information is shown in the table below.
Table 3-4 Attendance information use case description
Use case name Attendance information management
Participant employee
Description Provides functions such as adding, modifying, deleting, and viewing.
Precondition (1) Successfully log in to the system (
2) Only existing attendance information can be modified and deleted
Postcondition None Event flow (1)
View and modify
attendance information (2) Add attendance information
(3) Delete attendance information Failure The employee information use case description is shown in the table below. Table 3-5 Use case description of employee information management Use case name Employee information management Participant administrator Description Provides functions such as adding, modifying, deleting, and viewing. Precondition (1) Successfully log in to the system (2) Only existing employee information can be modified and deleted. Postcondition None Event flow (1) Check and modify employee information (2) Add employee information (3) Delete employee information Supplementary explanation (a) If the newly added employee information does not meet the requirements, the addition will fail














(b) If the modified employee information does not meet the requirements, the modification will fail.
The employee reward and punishment use case description is shown in the table below.
Table 3-6 Use Case Description of Employee Reward and Punishment Management Use
Case Name Employee Reward and Punishment Management
Participant Administrator
Description Provides functions such as adding, modifying, deleting, and viewing. Preconditions
(1) Successfully log in to the system
(2) Only existing employee rewards and punishments can be modified and deleted
Post-conditions None
Event flow (1) View and modify employee rewards and
punishments (2) Add employee rewards and punishments
(3) Delete employee rewards and punishments Failed to modify The employee compensation use case description is shown in the table below
. Table 3-7 Use case description of employee salary management Use case name Employee salary management Participant administrator Description Provides functions such as adding, modifying, deleting, and viewing. Precondition (3) Successful login to the system (4) Existing employee salary can only be modified and deleted Postcondition None Event flow (1) Check and modify employee salary ( 2) Add employee salary (3) Delete employee salary As shown in the table below. Table 3-8 Description of notification announcement management use case Use case name Notification announcement management

















Participant administrator
Description Provides functions such as adding, modifying, deleting, viewing, etc.
Precondition (5) Successfully log in to the system
(6) Only existing notification bulletins can be modified and deleted
Post-conditions None
Event flow (1) View and modify notification bulletins (
2) Add notification bulletins
(3) Delete notification bulletins

4 System outline design

4.1 System function module design
The employee salary management system is mainly for the employees. The system exists because of them and should serve them. Therefore, when designing the system, their needs should be put in the first place, and their opinions should be fully considered. Figure 4-1 is a diagram of the system function modules involved.

Figure 4-1 Functional module Figure
4.2 System business process design
Through the analysis of business process, it mainly serves for the writing of the next functional module, especially for a programmer who has not been in contact with an industry, he can quickly understand how to use the process and data involved in the designed function through the business process. Its main process is introduced as follows.
4.2.1 User login business process
When a user uses the employee salary management system, only when the information can be read in the edit box of the login interface and the read information is correct, can the login be successful. Its user login business process is shown in the figure below.

Figure 4-2 User login business flow chart
4.2.2 Change password business process
After the user registers with the employee salary management system, if the user needs to change the login password, the system can also provide the user with the right to change the password. Its user modification password business process is shown in the figure below.

Figure 4-3 Flow chart of password modification
4.2.3 Department information business process
The basic information provided to employees in this employee salary management system is department information, that is, department information related to salary, etc., and there are three basic operations of department information management: one is to complete the addition of department information, and the entry status of department information will be judged here; one is to modify department information, and the other is to delete department information. The latter two operations are to be completed on the basis of the department information list generated by the first operation. . Its department information browsing business process is shown in the figure below.

Figure 4-4 Business flow chart of departmental information entry
4.2.4 Business process of notifications and announcements The
management methods of notifications and announcements in the employee salary management system are three basic operations on information: one is to complete the addition of notices and announcements, where the entry status of notices and announcements will be judged; one is to modify notices and the other is to delete notices. The latter two operations are to be completed on the basis of the list of notification announcements generated by the first operation. The business process of its notification announcement is shown in the figure below.

Figure 4-5 Business flow chart of notification announcement
4.2.5 Employee attendance business process
In the employee salary management system, the management methods of employee attendance management are three basic operations on information: one is to complete the addition of employee attendance, where the entry status of employee attendance will be judged; one is to modify employee attendance, and the other is to delete employee attendance. The latter two operations are to be completed on the basis of the employee attendance list generated by the first operation. The business process of its registration activities is shown in the figure below.

Figure 4-6 Employee attendance business flow chart
4.2.6 Employee reward and punishment business process
In the employee salary management system, employee reward and punishment management, management methods are three basic operations on information: one is to complete the addition of employee rewards and punishments, where the input status of employee rewards and punishments will be judged; one is to modify employee rewards and punishments, and the other is to delete employee rewards and punishments. The latter two operations are to be completed on the basis of the employee reward and punishment list generated by the first operation. The business process of its registration activities is shown in the figure below.

Figure 4-7 Employee reward and punishment business flow chart
4.2.7 Employee salary business process
In the employee salary management system, the management methods of employee salary are three basic operations on information: one is to complete the addition of employee salary, and here the entry status of employee salary will be judged; one is to modify employee salary, and the other is to delete employee salary. The latter two operations are to be completed on the basis of the employee salary list generated by the first operation. The business process of its registration activities is shown in the figure below.

Figure 4-8 Flowchart of employee compensation business

4.3 Database Design
4.3.1 Database Outline Design
With advanced systems, ER diagrams enable other users to quickly and easily understand the functions of the system and the relationships between them. According to the system analysis results of the employee salary management system, the whole system includes the following units: administrators, employees, notice announcement form, employee attendance, employee rewards and punishments, employee compensation, etc.
The system ER diagram is shown in Figure 4-9:

Figure 4-9 System ER Diagram
4.3.2 Transformation from ER Diagram to Relational Model
Database is the basis of data processing in the employee salary management system, and is also the key to the display and storage of interface data. The database table of the employee salary management system is as follows.
Administrator allusers table:
serial number field name field type size allowed to be empty maximum length remark
1 ID Int 4 self-increment number 10
2 username VarChar 50 is 255
3 pwd VarChar 50 is 255
4 cx VarChar 50 is 255
5 addtime DateTime 8 is 23

部门信息bumenxinxi表:
序号 字段名称 字段类型 大小 允许为空 最大长度 备注
1 ID Int 4 自增编号 10
2 bumen VarChar 50 是 255
3 jingli VarChar 50 是 255
4 renshu VarChar 255 是 255
4 zhuyaozhize VarChar 255 是 255
4 shuoming VarChar 255 是 255
6 addtime timestamp 8 是 23
考勤信息kaoqin表
序号 字段名称 字段类型 大小 允许为空 最大长度 备注
1 ID Int 4 自增编号 10
2 yuangonggonghao VarChar 50 是 255
3 xingming VarChar 50 是 255
4 xingbie VarChar 50 是 255
5 bumen VarChar 50 是 255
6 zhiwu VarChar 50 是 255
6 kaoqinriqi VarChar 50 是 255
7 kaoqinqingkuang VarChar 50 是 255
8 dengjiren VarChar 50 是 255
20 addtime timestamp 8 是 23

Leave information qingjia form:
serial number field name field type size allowed to be empty maximum length remark
1 ID Int 4 self-increment number 10
2 danhao VarChar 50 is 255
3 qingjiayuanyin VarChar 50 is 255 4
qingjiariqi VarChar 50 is 255
5 tianshu VarChar 50 is 255 6
yuangonggonghao VarChar 50 is 255 7
xingming VarChar 50 is 255 8
bumen VarChar 50 is 255
9 zhiwu VarChar 50 is 255 10 shouji VarChar 50 is 255 11 beizhu VarChar 50 is 255 12
issh VarChar
50 is 255
13
addtime timestamp 8 is 23

Notice announcement table tongzhigonggao table:
serial number field name field type size allowed to be empty maximum length remark
1 ID Int 4 self-increment number 10
2 biaoti VarChar 50 is 255
3 leibie VarChar 50 is 255
4 fujian VarChar 50 is 255
5 neirong VarChar 50 is 255
6 faburen VarChar 50 is 255
7 addtime timestamp 8 is 23

Employee Reward and Punishment Jiangcheng Table:
Sequence Number Field Name Field Type Size Allowed to be Null Maximum Length Note
1 ID Int 4 Auto-increment Number 10
2 yuangonggonghao VarChar 50 Yes 255
3 xingming VarChar 300 Yes 255
4 bumen VarChar 50 Yes 255
5 zhiwu VarChar 50 Yes 255 6 xingbie VarChar 50 Yes 255 7
riqi
VarChar 500 is 255
8 fenlei VarChar 50 is 255 9
yuanyin VarChar 300 is 255 9 jieguo VarChar 300 is 255 9
dengjiren VarChar 300 is 255
10
beizhu VarChar 50 is 255 11
addtime timestamp 8 is 23

工资表gongzi表:
序号 字段名称 字段类型 大小 允许为空 最大长度 备注
1 ID Int 4 自增编号 10
2 yuangonggonghao VarChar 50 是 255
3 mima VarChar 300 是 255
4 xingming VarChar 50 是 255
5 xingbie VarChar 50 是 255
6 bumen VarChar 50 是 255
7 zhiwu VarChar 500 是 255
8 yuefen VarChar 50 是 255
9 jibengongzi VarChar 300 是 255
10 jixiaogongzi VarChar 50 是 255
11 kaoqingongzi VarChar 50 是 255
12 jiangjin VarChar 255 是 255
13 qita VarChar 255 是 255
13 gongzizonge VarChar 255 是 255
13 gongzishuoming VarChar 255 是 255
13 dengjiren VarChar 255 是 255
13 beizhu VarChar 255 是 255
14 addtime timestamp 8 是 23

Employee information yuangong table:
serial number field name field type size allowed to be empty maximum length remark
1 ID Int 4 self-increment number 10
2 yuangonggonghao VarChar 50 is 255
3 mima VarChar 300 is 255 4
xingming VarChar 50 is 255 5
xingbie VarChar 50 is 255
6 bumen VarChar 50 is 255
7 zhiwu VarChar 500 is 255 8
nianling VarChar 50 is 255 9
shenfenzheng VarChar 300 is 255 10 shouji VarChar 50 is 255 11 youxiang VarChar 50 is 255 12 dizhi VarChar 255 is 255 13 beizhu VarChar 255 is 255 14 addtime timestamp 8 is 23




Guess you like

Origin blog.csdn.net/ambiguous__/article/details/129673082