(Source code attached) PHP Personnel Information Management System Computer Completion 45934

PHP personnel information management system

Summary

The rapid development of scientific and technological progress has caused tremendous changes in people's daily lives. The rapid development of electronic information technology has made the application level of electronic information technology in various fields popular and applied. The arrival of the information age has become an unstoppable fashion trend, and the history of human development is entering a new era. In actual application, the work rules and development steps of the software are applied, and PHP technology is used to build the personnel information management system.

This design mainly implements a personnel information management system that combines the advantages of humanization, high efficiency, and convenience, and completes functions such as homepage, system users, notifications and announcements, department information, employee salary, attendance sign-in, employee leave, recruitment information, and application information. module. The object-oriented development model is adopted for software development and hardware installation, which can well meet the needs of actual use and improves the corresponding software installation and program coding work. MySQL is used as the main storage unit of background data. PHP technology and Ajax technology are used for coding and development of business systems, realizing all functions of this system. This report first analyzes the background, role, and significance of the research, laying the foundation for the rationality of the research work. Analyzing various requirements and technical issues of the online examination system, proving the necessity and technical feasibility of the system, and then giving a basic introduction to the technical software and design ideas that need to be used to design the system, and finally implementing the personnel information management system and deployment runs using it.

Keywords:Personnel information management system  ; PHP; database

PHP Personnel Information Management System

Abstracts

The rapid development of technology has caused tremendous changes in people's daily lives, and the rapid development of electronic information technology has popularized and applied the application level of electronic information technology in various fields. The arrival of the information age has become an unstoppable fashion trend, and the history of human development is entering a new era. In practical applications, the working rules and development steps of the application software are constructed using PHP technology to build a personnel information management system.

This design mainly implements a personnel information management system that combines the advantages of humanization, efficiency, and convenience. It completes functional modules such as homepage, system users, notification announcements, department information, employee salary, attendance check-in, employee leave, recruitment information, and application information. Adopting an object-oriented development model for software development and hardware installation can effectively meet practical usage needs, improve the corresponding software installation and program coding work, adopt MySQL as the main storage unit for backend data, and use PHP and Ajax technologies for business system coding and development, achieving all the functions of this system. This report first analyzes the background, role, and significance of the research, laying the foundation for the rationality of the research work. An analysis was conducted on the various requirements and technical issues of the online examination system, demonstrating the necessity and feasibility of the system. Then, a basic introduction was made to the technical software and design ideas required for designing the system. Finally, the implementation of the personnel information management system and the operation and use of it by the department were achieved.

Key words: Personnel information management system; PHP; database

  Table of contents

Summary

  Table of contents

Chapter 1 Introduction 6

1.1 Research purpose and significance 6

1. 2 Development status 6

1. 3 Research content 7

Chapter 2 Key Technology Research 8 

2.1 Development technical description 8

2.2 Tomcat description ................................................ ................................................................. .... 8

2.3ThinkPHP framework ................................................ ................................................................. 8

2. 4  Mysql database ................................................ ................................................................. .... 9

Chapter 3 Requirements Analysis 1 0

3. 1 Feasibility Analysis 1 0

3. 1 .1Technical  feasibility 1 0

3.1.2Economic Feasibility1 1 _ _ _ _

3.1.3  Operational feasibility 1 1

3.1. 4  Legal Feasibility 1 1

3.2 System Analysis 1 2

3.3 System design principles 1 2

3.4 Business process analysis 1 2

3.4.1 Operation process 1 3

3.4.2 Add information process

3.4.3 Deletion of information process

Chapter 4 Overall  System Design

4.1 System function modules

4. 2Database Design 2 2

4.2.1Introduction to database 2 2 _ _

4.2.2Database design 2 2 _ _ _

Chapter 5 System Implementation 2 6

5.1 Administrator function module 2 6

5. 2 Employee User Function Module 2 6

Chapter 6 System Testing 3 1

6.1 Purpose of system testing 3 1

6.2 Testing Strategy 3 1

6. 3 Test characteristics and analysis 3 1

6. 4 Functional Test 3 1

6. 5 test results 3 2

Conclusion 3 3

References 3 4

Thanks 3 6

Chapter 1 Introduction

1.1 Research purpose and significance

In modern society, office automation has entered every corner of society unstoppably, and the personnel management system is a small manifestation of office automation. It provides convenience for personnel management of large and complex employee data work, and improves the efficiency of personnel management work. Efficiency has laid the foundation for the popularization of office automation. The personnel management system is an indispensable part of any modern enterprise or institution. Its content is crucial for managers of enterprises and institutions. The personnel management system should be able to provide managers with sufficient information and quick query methods. But now many units do not conduct electronic management of personnel work, and there is still an embarrassing situation with too many managers, low management efficiency, and little basis for decision-making.

With the continuous improvement of science and technology, computer science has become increasingly mature, and its powerful functions have been deeply understood by people. It has entered various fields of human society and plays an increasingly important role. as part of a computer application. Use computers to manage personnel information. It has advantages that traditional management cannot match. Therefore, it is very meaningful to develop such a set of management software to effectively electronically manage unit personnel management, simplify tedious manual operations, and improve work efficiency.

1. 2 Development status

Compared with other countries, our country's software industry is relatively backward and started relatively late in informatization construction. However, with the continuous development of our country's economy and the continuous improvement of network technology, our country is also constantly exploring the software industry. Some results have also been obtained. my country's software industry has developed rapidly. More and more software systems have appeared in people's sight, and they have gradually changed the way people live and work. However, with regard to the construction of informatization, compared with many developed countries, due to the backwardness of informatization and insufficient funds, my country's personnel information management system development is still relatively backward. Therefore, we must continue to work hard to explore and strive to develop A practical information-based personnel information management system to realize the informatization of the personnel information management system. Therefore, this topic takes the personnel information management system as an example, with the purpose of developing a practical personnel information management system.

The personnel information management system uses PHP language and MySQL database support to jointly complete the development of the website system, realizing the informatization of the personnel information management system. Users can have a very good personnel information management system experience, and administrators can also use the The system performs more convenient management operations and realizes the previously specified plan.

1.3 Research content

At the beginning, this article gives an overall description of the basic knowledge discussed in the system, and conducts a system analysis on this basis. In order to enable this system to be designed and implemented in a better and more complete manner, analysis and investigation must be conducted first. Based on the previous related foundations, a detailed analysis of the new system was carried out in terms of functionality. Then through detailed analysis, the system design was carried out. Secondly, in terms of the feasibility of system implementation, I chose the ThinkPHP framework for development and design. For data storage, I used the Mysql database for design. Since both PHP and Mysql are very mature, they are very reliable, safe and practical in all aspects. Finally, the system is tested, perfected and released.


Chapter 2 Key Technology Research

2.1 Development technical description

The front-end part of this system is developed based on the MVVM model and adopts the B/S mode. The back-end part is written based on the PHP development language and is developed using the MVC mode.

Front-end part: The front-end framework uses the popular progressive JavaScript framework Vue.js. Use Vue-Router and Vuex to implement dynamic routing and global state management, Ajax to implement front-end and back-end communication, and the Element UI component library and Lay UI component library to quickly prototype the page.

Back-end part: Use PHP as the development language for compilation and development, and integrate Redis and other related technologies.

2.2 Tomcat description

Tomcat is a free server. The usage scenario is more suitable when the number of visits is relatively small. This means that when Tomcat is installed on the computer, the access request of the front-end HTML page can be parsed through it. In fact, Tomcat is an extension of Apache, but it operates relatively independently from Apache. Therefore, it can be regarded as running as a relatively independent process from Apache.

Tomcat was originally developed and applied by Davidson of Sun Company. Through his efforts, it has been continuously turned into an open source server. It was also handed over to the Apache Software Foundation by Sun. The ever-evolving tomcat server has undergone a lot of reconstruction and combing in the latest version, making it more convenient to use. The Tomcat load balancing algorithm is an open source software implementation. There is no need to add additional hardware investment, and it is very convenient to implement. It is especially suitable for the expansion of general small business website servers now and in the future. Judging from current practice, it can be used as a reference for similar applications.

2.3ThinkPHP framework

ThinkPHP was born to simplify enterprise-level application development and agile WEB application development. It was first born in early 2006, and was officially renamed ThinkPHP on New Year's Day 2007, and was released under the Apache2 open source agreement . ThinkPHP has been adhering to the simple and practical design principle since its birth. While maintaining excellent performance and minimal code, it also focuses on ease of use. And it has many original functions and features. With the active participation of the community team, it is continuously optimized and improved in terms of ease of use, scalability and performance. [1] 

ThinkPHP is a fast, compatible and simple lightweight domestic PHP development framework . It was born in early 2006. It was originally named FCS. It was officially renamed ThinkPHP on New Year's Day in 2007. It is released in accordance with the Apache2 open source agreement. It was transplanted from the Struts structure and made improvements and improvements. At the same time, it also draws on many excellent foreign frameworks and patterns, uses object-oriented development structure and MVC pattern , and integrates the ideas of Struts and TagLib ( tag library ), RoR's ORM mapping and ActiveRecord pattern.

ThinkPHP can support server environments such as windows/ Unix /Linux. The official version requires PHP 5.0 or above. It supports MySql , PgSQL , Sqlite databases and PDO extensions. The ThinkPHP framework itself has no special module requirements and specific application system operating environment requirements. Depending on the modules involved in development.

As an overall development solution, ThinkPHP can solve most needs in application development because it includes the underlying architecture, compatibility processing, base class library , database access layer, template engine , caching mechanism, plug-in mechanism, role authentication, form Processing and other commonly used components, and it is more convenient for cross-version, cross-platform and cross-database transplantation. And each component is carefully designed and perfected, and the application development process only needs to focus on your business logic.

2.4 Mysql database

As a storage place for data, a database is a must for the project. MySQL is a very excellent relational database. The early MySQL was not owned by Oracle, but was acquired by him later. MySQL is very small, the installation package is only a few megabytes, and it is relatively easy to learn SQL language writing. The most important thing is that MySQL is also an open source software, so there is no need to pay extra. The system itself is also based on learning and summarizing the knowledge learned. Mainly, it is best to use free software as much as possible in system development, so MySQL is chosen for database management. The capacity of MySQL is also very large. It also supports the operation of sub-databases and tables, and supports distribution. Therefore, more and more small and medium-sized enterprises choose this database management tool. It is also worth mentioning that open source also has a disadvantage, that is, it is easy to be cracked and hacked, so MySQL is still used more in small and medium-sized projects.

MySQL does not require a platform, so any programmer can complete his own system development through the MySQL database and save a lot of resources. Because of its powerful features, it can be used to store data from this system.

MySQL is suitable for various applications. When we run the database, it is easy to get started. We only need to write a piece of code to complete the corresponding functions and can be used on any platform without the need for a second time. Compile. The MySQL database also has the advantages of storing data locally and allowing structured queries for easy management; MySQL is a completely networked system, and its database can be accessed from anywhere on the Internet, and it can be shared with anyone anywhere; In addition, MySQL also provides access control capabilities, which can prevent data from being used illegally. The MySQL service is stable and the development cost is low, so during the development process, the MySQL database is the most popular.

Chapter 3 Requirements Analysis

Before any project is developed and researched, it is necessary to conduct a careful analysis of the needs of the R&D system itself. Market research cannot be ignored, so as to clarify the goals and have a more accurate positioning for the development of the entire system. In this chapter, it is necessary to analyze the system's performance analysis, business process analysis, and data. The overall interface of the personnel information management system is simple and has complete functions.

The feasibility of requirements is the analysis and discussion of what requirements a developed system can achieve. Whether the developed system or website meets the previous requirements. Only in pre-assessment of system development can requirements be completed before system development and implementation. During the development and application of the system, detailed descriptions of technical feasibility, operational feasibility, economic feasibility and legal feasibility proved that these points are feasible. The technical feasibility mainly shows that PHP is currently a relatively common and mature technology, with relatively powerful database development functions and convenient and fast database interface design functions. It is necessary and feasible based on the existing research situation and the technology mastered. In the economic feasibility, it mainly describes the cost of the system from the research period and subsequent maintenance and cost savings. The operational feasibility mainly illustrates the simplicity of the system and operation, which are characterized by easy operation and quick start. In terms of legal feasibility, compliance with the requirements does not involve infringement and other issues, which can play a role in improving efficiency in society.

It was designed and explained from system requirement analysis, functional analysis, performance analysis, etc. System requirements analysis conducts an in-depth analysis of the needs of the personnel information management system and proves the demand for the system in the market.

The completion of the design of the personnel information management system may be subject to time and space constraints. Therefore, when starting to design each project, a feasibility analysis of the system must be conducted. Only in this way can the harm caused by the project be reduced and the loss of human, material and financial resources be reduced. The feasibility analysis of this system mainly focuses on four aspects: technical feasibility, economic feasibility, operational feasibility and social feasibility. The feasibility of the system is discussed from the above aspects.

3.1 Feasibility analysis

The purpose of feasibility analysis is to clarify the research direction and goals based on the user needs of the developed system , and determine the framework and functional modules of the system through feasibility analysis .

Feasibility analysis is an analysis of the requirements, technology, and economics of any management system. One of the most important technical aspects is feasibility. Technical feasibility is the analysis of whether the application development system of software development technology is feasible. Secondly, analyze the requirements of the software system and analyze whether the software requirements can meet the pre-designed functional requirements. Finally, the operational feasibility and economic feasibility of the system are discussed.

3.1.1Technical feasibility _ _ 

Whether it is a desktop or a notebook, computers occupy people's work and life at a very rapid speed. So what can assist computers to help people change their work and life status are the functional software installed on the computer. The system to be designed in this article starts from the idea of ​​being simple and easy to understand, and will assist users in operation through text index prompts.

The development environment and configuration of the system can be installed by ourselves. The system uses PHP development language to modify and maintain data information according to the technical language, and combines the requirements to make the system operation more stable and safe, thereby completing the development of the system. The rapid development of network technology has made the network transmission speed faster and faster, the price lower and lower, and the security higher and higher. All its hardware platforms can fully meet the needs of the development of fault repair management systems in colleges and universities .

Therefore, we conducted a feasibility study from two aspects, and it can be seen that there is no problem with the technical feasibility development of the system.

3.1.2  Economic  feasibility _ _

Any software system will consider the latter part of its economic feasibility in its development, that is to say, the development cost of the software is matched with the expenditure required for the design and the economic benefits that subsequent operation may bring, in addition to considering whether this part of the software can Bring economic benefits to users .

Economic feasibility includes a study of the resources required for system implementation. The resources required during system implementation mainly include human resources, natural resources, etc. The development of the personnel information management system is developed by the developers themselves. There is no need to purchase other software or ports. Moreover, there is no cost for market research and other fault repair systems done before the development of the personnel information management system. , all through the developers' own efforts. All the work is done by themselves. When they encounter problems that are difficult to solve, they mostly solve the relevant information with the help of classmates and instructors, so for the personnel information management system The development is completely economically feasible without any expense.

Using PHP is a relatively mature technology, so there is no economic problem in developing a personnel information management system .

3.1.3  Operational feasibility

Operational feasibility means that the system cannot have too complex operations and usage processes. The personnel information management system is based on the PHP framework , with a simple access and operation interface and easy operation. Users can access and operate as long as they are connected to the network. The interface design of the system is very well-intentioned and makes people feel relaxed and happy. First of all, it can give the operator a good mood and allow the staff to work with a better attitude. Secondly, it is also very beautiful. When using the system, it should not only be applied After seeing the complete functions of the system, I also appreciated the simple appearance of the system. The second is the function of the system. Staff who know a little bit about simple computer operations can handle the daily use of the system with ease. Therefore, it has the characteristics of simple operation, convenient management, strong interactivity, and is very feasible in operation.

3.1.4 Legal feasibility _ 

There is no conflict between the design and development of the system platform and national policies and regulations. In addition, the operation and working mode used in the design and development of the platform are in line with users ' daily habits, making it easy to operate, flexible, easy to manage , and highly practical. The data used in the development process comes from open source code, there is no dispute over intellectual property rights, and it is legal.

To sum up, it is feasible to develop a personnel information management system based on PHP .

3.2 System analysis

The personnel information management system is mainly designed to improve the work efficiency of staff and satisfy users more conveniently and quickly , to better store all data information and provide quick and convenient retrieval functions. The various modules of the system are reasonably designed through many of today's developed systems. Analysis to determine user operability, following the principles of system optimization developed, after comprehensive investigation and research.

The functional analysis to be achieved by the system, for the convenient management of the current network, the system should realize that users can view all data information directly on the platform, and can add, delete and other information online according to needs , which can save time and eliminate the need for traditional This way wastes time and makes it really difficult to meet the various needs of users . Therefore, the development of personnel information management systems can not only meet the needs of users , but also improve the work efficiency of administrators and reduce the original unnecessary workload.

3.3 System design principles

1. Basic requirements for personnel information management systems

( 1) Functional requirements: It can manage functional modules such as homepage, system users, notifications and announcements, department information, employee salary, attendance sign-in, employee leave, recruitment information, and application information.

( 2) Performance: It can be used on different operating systems without errors. After different types of users log in to the corresponding interface, they can perform expected operations without errors and conveniently.

( 3) Security and confidentiality requirements: Users must register and log in to enter the system, and user permissions also need to be limited according to the type of user .

( 4) Environmental requirements: Supports multiple platforms and can be used under multiple operating systems such as Windows series and Vista systems.

2. Development goals

The main development goals of the personnel information management system are as follows:

( 1) Realize the systematization, standardization and automation of the personnel information management system ;

( 2) Enable users to control and manage information.

( 3) Facilitate querying information and managing information, etc.;

( 4) Improve the efficiency of problem handling and increase operator utilization through network operations ;

( 5) Taking into account the diversity of users , the interface is required to be simple and easy to operate .

3. Economic benefits

The purpose of designing the system is to better save personnel costs and various expenses, so the costs and benefits of system development need to be considered.

3.4 Business process analysis

3.4.1 Operation process

System login flow chart , as shown in the figure:

Figure 3-1 Login flow chart

3.4.2 Add information process

Add an information flow diagram , as shown in the figure:

Figure 3-2 Add information flow chart

3.4.3 Deletion of information process

Delete information flow chart , as shown in the figure:

Figure 3-3 Deletion information flow chart


Chapter 4 Overall  System Design

4.1 System function modules

The basic functions of the system include two role function modules : administrator and employee user .

The functional modules that administrators can use are mainly homepage, system users, notifications and announcements, department information, employee salary, attendance sign-in, employee leave, recruitment information, application information and other functions.

The operations of the functional modules used by employee users are mainly login , notifications and announcements, department information, employee salary, attendance sign-in, employee leave and other functions.

(1) Employee user requirements are shown in Figure 4-1 :

Figure 4-1 Employee user use case diagram

(2) Administrator functional requirements are shown in Figure 4-2 :

Figure 4-2 Administrator use case diagram

4.2 Database design

4.2.1Introduction to database _ _

Database is the foundation and core of information system. The quality of database design directly affects the success or failure of information system development. To create a database table, first determine the attributes of the entities and the relationships between them. Create a data table based on relationships.

4.2.2Database design _ _ _

(1) ER diagram of the system

Conceptual models are powerful tools for database design. Database conceptual model design can describe the conceptual model of the real world through ER diagrams. An ER diagram of a system shows the links between entities in the system . 

(2) Entity attribute diagram

The system structure is shown in Figure 4-3 .

Figure 4-3 System structure diagram

The physical diagram of employees requesting leave is shown in Figure 4-4 .

Figure 4-4 Physical diagram of employees requesting leave

The notification and announcement management entity diagram is shown in Figure 4-5 .

Figure 4-5 Notification and announcement management entity diagram

The entity diagram of recruitment information is shown in Figure 4-6 .

Figure 4-6 Recruitment information entity diagram

(3)Database design table

Table application_information (application information)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

application_information_id

int

10

0

N

Y

Application information ID

2

recruitment_positions

varchar

64

0

Y

N

Recruitment positions

3

recruitment_type

varchar

64

0

Y

N

Recruitment type

4

full_name

varchar

64

0

Y

N

Name

5

gender

varchar

64

0

Y

N

gender

6

cell_phone_number

varchar

64

0

Y

N

Phone number

7

id_number

varchar

64

0

Y

N

ID number

8

political_landscape

varchar

64

0

Y

N

political status

9

photo

varchar

255

0

Y

N

photo

10

resume_attachment

varchar

255

0

Y

N

Resume attachment

11

application_time

datetime

19

0

Y

N

Application time

12

hired_or_not

varchar

64

0

Y

N

Whether to accept

13

recommend

int

10

0

N

N

0

Intelligent Recommendation

14

create_time

datetime

19

0

N

N

CURRENT_TIMESTAMP

creation time

15

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time

Table attendance_check_in (attendance sign-in)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

attendance_check_in_id

int

10

0

N

Y

Attendance sign-in ID

2

sign_in_time

datetime

19

0

Y

N

Check-in time

3

employee_users

int

10

0

Y

N

0

employee user

4

employee_name

varchar

64

0

Y

N

employee's name

5

employee_id

varchar

64

0

Y

N

employee ID

6

department_name

varchar

64

0

Y

N

Department name

7

job_title

varchar

64

0

Y

N

Job title

8

sign_in_type

varchar

64

0

Y

N

Check-in type

9

recommend

int

10

0

N

N

0

Intelligent Recommendation

10

create_time

datetime

19

0

N

N

CURRENT_TIMESTAMP

creation time

11

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time

Table auth (user rights management)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

auth_id

int

10

0

N

Y

Authorization ID:

2

user_group

varchar

64

0

Y

N

user group:

3

mod_name

varchar

64

0

Y

N

Module name:

4

table_name

varchar

64

0

Y

N

Table Name:

5

page_title

varchar

255

0

Y

N

page title:

6

path

varchar

255

0

Y

N

Routing path:

7

position

varchar

32

0

Y

N

Location:

8

mode

varchar

32

0

N

N

_blank

Jump method:

9

add

tinyint

3

0

N

N

1

Is it possible to add:

10

of the

tinyint

3

0

N

N

1

Can it be deleted:

11

set

tinyint

3

0

N

N

1

Whether it can be modified:

12

get

tinyint

3

0

N

N

1

Is it possible to view:

13

field_add

text

65535

0

Y

N

Add fields:

14

field_set

text

65535

0

Y

N

Modify fields:

15

field_get

text

65535

0

Y

N

Query fields:

16

table_nav_name

varchar

500

0

Y

N

Cross-table navigation name:

17

table_nav

varchar

500

0

Y

N

Cross-table navigation:

18

option

text

65535

0

Y

N

Configuration:

19

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Creation time:

20

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time:

Table department_information (department information)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

department_information_id

int

10

0

N

Y

Department information ID

2

department_name

varchar

64

0

Y

N

Department name

3

department_number

varchar

64

0

Y

N

Department Number

4

department_size

varchar

64

0

Y

N

Department size

5

responsible_personnel

varchar

64

0

Y

N

person in charge

6

contact_number

varchar

64

0

Y

N

contact number

7

date_of_incorporation

date

10

0

Y

N

Date of establishment

8

department_introduction

text

65535

0

Y

N

G

9

recommend

int

10

0

N

N

0

Intelligent Recommendation

10

create_time

datetime

19

0

N

N

CURRENT_TIMESTAMP

creation time

11

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time

Table employee_leave (employee request for leave)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

employee_leave_id

int

10

0

N

Y

Employee leave ID

2

leave_application_number

varchar

64

0

Y

N

Leave order number

3

employee_users

int

10

0

Y

N

0

employee user

4

employee_name

varchar

64

0

Y

N

employee's name

5

employee_id

varchar

64

0

Y

N

employee ID

6

department_name

varchar

64

0

Y

N

Department name

7

job_title

varchar

64

0

Y

N

Job title

8

leave_date

date

10

0

Y

N

Leave date

9

leave_days

varchar

64

0

Y

N

days of leave

10

leave_type

varchar

64

0

Y

N

Leave type

11

specific_reasons

text

65535

0

Y

N

specific reason

12

examine_state

varchar

16

0

N

N

Not reviewed

Approval Status

13

recommend

int

10

0

N

N

0

Intelligent Recommendation

14

create_time

datetime

19

0

N

N

CURRENT_TIMESTAMP

creation time

15

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time

Table employee_salary (employee salary)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

employee_salary_id

int

10

0

N

Y

Employee salary ID

2

employee_users

int

10

0

Y

N

0

employee user

3

employee_name

varchar

64

0

Y

N

employee's name

4

employee_id

varchar

64

0

Y

N

employee ID

5

department_name

varchar

64

0

Y

N

Department name

6

job_title

varchar

64

0

Y

N

Job title

7

salary_month

varchar

64

0

Y

N

salary month

8

working_hours

varchar

64

0

Y

N

length of work

9

base_pay

int

10

0

Y

N

0

Basic wage

10

overtime_pay

int

10

0

Y

N

0

overtime pay

11

bonus

int

10

0

Y

N

0

bonus

12

subsidies_for_food_and_accommodation

int

10

0

Y

N

0

Food and accommodation allowance

13

seniority_fee

int

10

0

Y

N

0

Seniority fee

14

five_insurances_and_one_fund

int

10

0

Y

N

0

Five insurances and one fund

15

fine

int

10

0

Y

N

0

fine

16

actual_distribution

varchar

64

0

Y

N

actual distribution

17

recommend

int

10

0

N

N

0

Intelligent Recommendation

18

create_time

datetime

19

0

N

N

CURRENT_TIMESTAMP

creation time

19

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time

Table employee_users (employee users)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

employee_users_id

int

10

0

N

Y

Employee User ID

2

employee_name

varchar

64

0

Y

N

employee's name

3

employee_gender

varchar

64

0

Y

N

Employee gender

4

employee_id

varchar

64

0

N

N

employee ID

5

id_number

varchar

64

0

N

N

ID number

6

current_address

varchar

64

0

Y

N

current address

7

political_landscape

varchar

64

0

Y

N

political status

8

employee_education

varchar

64

0

Y

N

Employee education

9

department_name

varchar

64

0

Y

N

Department name

10

job_title

varchar

64

0

Y

N

Job title

11

date_of_birth

varchar

64

0

Y

N

date of birth

12

date_of_employment

varchar

64

0

Y

N

Entry Time

13

examine_state

varchar

16

0

N

N

passed

Approval Status

14

recommend

int

10

0

N

N

0

Intelligent Recommendation

15

user_id

int

10

0

N

N

0

User ID

16

create_time

datetime

19

0

N

N

CURRENT_TIMESTAMP

creation time

17

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time

Table hits (user clicks)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

hits_id

int

10

0

N

Y

Like ID:

2

user_id

int

10

0

N

N

0

Liked by:

3

create_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Creation time:

4

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time:

5

source_table

varchar

255

0

Y

N

Source table:

6

source_field

varchar

255

0

Y

N

Source field:

7

source_id

int

10

0

N

N

0

Source ID:

Table notice_announcement (notice announcement)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

notice_announcement_id

int

10

0

N

Y

Notification announcement ID

2

announcement_title

varchar

64

0

Y

N

Announcement title

3

announcement_no

varchar

64

0

Y

N

Announcement serial number

4

release_date

date

10

0

Y

N

release date

5

publishing_personnel

varchar

64

0

Y

N

Posted by

6

announcement_attachment

varchar

255

0

Y

N

Announcement attachment

7

announcement_content

text

65535

0

Y

N

Announcement content

8

recommend

int

10

0

N

N

0

Intelligent Recommendation

9

create_time

datetime

19

0

N

N

CURRENT_TIMESTAMP

creation time

10

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time

Table recruitment_information (recruitment information)

serial number

name

type of data

length

Decimal places

Allow null values

primary key

default value

illustrate

1

recruitment_information_id

int

10

0

N

Y

Recruitment information ID

2

recruitment_positions

varchar

64

0

Y

N

Recruitment positions

3

recruitment_type

varchar

64

0

Y

N

Recruitment type

4

recruitment_time

datetime

19

0

Y

N

Recruitment time

5

number_of_recruiters

int

10

0

Y

N

0

Recruitment number

6

recruitment_address

varchar

64

0

Y

N

Recruitment address

7

recruitment_details

varchar

255

0

Y

N

Recruitment details

8

recommend

int

10

0

N

N

0

Intelligent Recommendation

9

create_time

datetime

19

0

N

N

CURRENT_TIMESTAMP

creation time

10

update_time

timestamp

19

0

N

N

CURRENT_TIMESTAMP

Update time

Chapter 5 System Implementation

5.1 Administrator function module

Users log in and enter the personnel information management system by entering user name, password, role and other information, as shown in Figure 5-1.

Figure 5-1 Login interface diagram

The main codes for logging into the system are as follows.

public function login()

    {

        if (Request::isPost()) {

            $request = Request::param();

            $result = $this->validate($request, $this->validate);

            if (true !== $result) {

                //Output error message if verification fails

                $data['error'] = 30000;

                $data['message'] = $result;

            } else {

                $request['password'] = md5($request['password']);

                $result = $this->model->login($request, $this->table);

                $data = $result;

            }

        } else {

            $data['error'] = 30000;

            $data['message'] = "The value of field cannot be empty!";

        }

        return json_encode($data);

    }

public function login($request=[],$table_name = ''){

        $username = $request['username'];

        $password = $request['password'];

        $bol = $this->where(['username'=>$username])->find();

        if ($bol){

            $password = md5($password);

            if ($request['password']==$bol['password']) {

                //添加token信息

                $access_token['create_time'] = date('Y-m-d H:i:s');

                $access_token['update_time'] = date('Y-m-d H:i:s');

$access_token['info'] = json_encode($bol);

                // $access_token['info'] = $bol;

                $access_token['token'] = md5(date('Y-m-d H:i:s'));

                $bol_token = Db::name('AccessToken')->insert($access_token);

                if ($bol_token){

                    $data['obj'] = $bol;

                    $data['obj']['token'] = $access_token['token'];

                    return ['result' => $data];

                }else{

                    return ['error' => ['code' => 5000, 'message' => '登录失败,token生成失败']];

                }

            } else {

                return ['error' => ['code' => 5000, 'message' => '登录失败,密码不正确']];

            }

        }else{

            return ['error' => ['code' => 5000, 'message' => '登录失败,账号不存在']];

        }

    }

员工用户管理,在员工用户管理页面可以员工姓名、员工姓名、员工编号、头像、密码、手机号码、手机认证、账号、昵称、邮箱、邮箱认证、身份证号、部门名称等进行维护,并可根据需要对用户进行查询、添加、删除等操作,如图5-2所示。

     5-2员工用户界面

用户管理代码如下。

public function get_list($request=[],$table_name = '',$table_id = ''){

        $page = 1;

        $size = $table_name == "auth" ? 100 : 10;

        $where = [];

        $order = $table_id.'_id desc';

        $field = '*';

//        echo $order;exit;

        $columns = Db::query( "show COLUMNS FROM `".$table_name."`");

        foreach($columns as $key=>$val){

            $field_name = $val['Field'];

            if(isset($request['like'])){

                if ($request['like']==true){

                    //字段模糊查询

                    if(isset($request[$field_name])){

                        $where[] = [$field_name, '=', $request[$field_name]];

                    }

                }else{

                    //字段模糊查询

                    if(isset($request[$field_name])){

                        $where[] = [$field_name, 'like', '%' . $request[$field_name] . '%'];

                    }

                }

            }else{

                //字段模糊查询

                if(isset($request[$field_name])){

                    $where[] = [$field_name, 'like', '%' . $request[$field_name] . '%'];

                }

            }

            //范围查询

            if(isset($request[$field_name.'_min'])){

                $where[] = [$field_name, '>=', $request[$field_name.'_min']];

            }

            if(isset($request[$field_name.'_max'])){

                $where[] = [$field_name, '<=', $request[$field_name.'_max']];

            }

        }

        //分页

        if (isset($request['page'])){

            $page = $request['page'];

        }

        if (isset($request['size'])){

            $size = $request['size'];

        }

        //排序

        if (isset($request['order'])){

            $order = $request['order'];

        }

        //查询字段

        if (isset($request['field'])){

            $field = $request['field'];

        }

        //模糊查询

        $list= $this->where($where)->order($order)->field($field)->page($page, $size)->select()->toArray();

        foreach($list as &$l){

         foreach($l as &$o){

         if(strpos($o,$_SERVER['HTTP_HOST']) === false){

         $o = str_replace('upload','http://'.$_SERVER['HTTP_HOST'].'/upload',$o);

         }

         }

        }

        return $list;

    }

通知公告管理,在通知公告页面可以对公告标题、公告序号、发布日期、发布人员、公告附件、公告内容等内容,并可根据需要进行查看、添加、修改或删除等操作如图5-3所示。

5-3通知公告管理界面图

部门信息管理,在部门信息页面可以对部门名称、部门编号、部门规模、负责人员、联系电话、成立日期、部门简介等内容,并可根据需要进行查看、添加、修改或删除等操作,如图5-4所示。

      

5-4部门信息管理界面图

部门信息管理逻辑代码如下所示。

public function add()

    {

        if (Request::isPost()) {

            $request = Request::param();

            $request['create_time'] = isset($request['create_time']) ? $request['create_time'] : date('Y-m-d H:i:s');

            $request['update_time'] = isset($request['update_time']) ? $request['update_time'] : date('Y-m-d H:i:s');

            $result = $this->validate($request, $this->validate);

            if (true !== $result) {

                // 验证失败 输出错误信息

                $data['error'] = 30000;

                $data['message'] = $result;

            } else {

if($this->table == 'user'){

$request['password'] = md5($request['password']);

}

$res = $this->add_before($request, $this->table, $this->table_id);

if($res['code'] == 200){

$result = $this->model->add($request, $this->table, $this->table_id);

$this->add_after($this->table);

$data = $result;

}else{

$data['error'] = $res;

}

            }

        } else {

            $data['error']['code'] = 30000;

            $data['error']['message'] = "field的值不能为空!";

        }

        return json_encode($data);

    }

员工薪资管理,在员工薪资页面可以对员工用户、员工姓名、员工编号、部门名称、职务名称、薪资月份、工作时长、基本工资、加班费、奖金等内容,并可根据需要进行查看、添加、修改或删除等操作,如图5-5所示。

5-5员工薪资管理界面图

考勤签到管理,在考勤签到查询页面可以对签到时间、部门名称、员工姓名、员工编号、员工用户、职务名称、签到类型等内容进行管理维护,并可根据需要进行修改、删除、查询等操作如图5-6所示。

图5-6考勤签到管理界面图

员工请假管理,在员工请假管理页面可以对请假单号、员工用户、员工姓名、员工编号、部门名称、职务名称、请假日期、请假天数等进行维护管理,并可根据需要进行修改、删除、查询等操作如图5-7所示。

5-7员工请假管理界面图

员工请假管理逻辑代码如下所示。

public function del()

    {

        $request = Request::param();

        $result = $this->model->del_data($request, $this->table, $this->table_id);

        $data = $result;

        return json_encode($data);

}

5.2员工用户功能模块

人事信息管理系统登录界面,通过填写账号、密码等信息进行登录,如图5-8所示。

图5-8登录界面图

通知公告;在通知公告页面中可以查看公告标题、公告序号、发布日期、公告附件、公告内容等内容;如图5-9所示。

图5-9通知公告界面图

部门信息;在部门信息页面中可以查看部门名称、部门编号、部门规模、负责人员、联系电话、成立日期、部门简介等内容;如图5-10所示。

图5-10部门信息界面图

员工薪资;在员工薪资页面中可以查看员工用户、员工姓名、员工编号、部门名称、职务名称、薪资月份、工作时长、基本工资、加班费、奖金等内容;如图5-11所示。

图5-11员工薪资界面

考勤签到;在考勤签到页面中可以查看签到时间、员工用户、员工姓名、员工编号、部门名称、职务名称、签到类型等内容;如图5-12所示。

图5-12考勤签到界面

员工请假;在员工请假页面中可以查看请假单号、员工用户、员工姓名、员工编号、部门名称、职务名称、请假日期、请假天数等内容;如图5-13所示。

图5-13员工请假界面

第6章 系统测试

系统测试主要是通过测试确定系统的可操作性,系统故障必须在规定的时间内纠正,否则会造成严重的经济损失。验证系统内的保护机制,以防止未经授权的入侵。在安全测试中,测试人员的作用是试图闯入系统并使用各种方法来试图突破防御。因此,系统安全设计的标准是找到一种使入侵系统更先进的方法。

6.1系统测试的目的

程序设计不能保证没有错误,这是一个开发过程,在错误或错误的过程中都是难以避免的。虽然这是不可避免的,但我们不能使这些错误始终存在于系统中,错误可能会造成无法估量的后果,如系统崩溃,安全信息泄露,系统无法正常启动等,为了避免这些问题,我们需要测试程序,在测试过程中发现问题并纠正它们,从而使系统更长时间稳定成熟。本章的作用是发现这些问题并对其进行修改,虽然耗时费力,但对于系统的开发长期使用而言是非常重要和必要的。

软件在设计后必须进行测试,调试过程中使用的方法是软件测试方法。在开发新软件时,系统测试是检查软件是否合格的关键步骤,以及是否符合设计目标的参考。测试主要是查看软件中数据的准确性,正确的操作与否,以及操作的结果,还有哪些方面需要改进。

人事信息管理系统的实现,对于系统中功能模块的实现及操作都必须通过测试进行来评判系统是否可以准确的实现。在人事信息管理系统正式上传使用之前必须做的一步就是系统测试,对于测试发现的错误及时修改处理,保证系统准确无误的供给用户使用。

6.2测试策略

测试系统主要针对以下三个方面进行测试:

1、基于PHP框架码的单元测试,集成测试,系统测试和验收测试结果;

2、测试对象中列出的可测试或不可接受的特征和功能;

3、分析并记录测试要求:日期的书面文件不影响测试的设计、开发和执行。

6.3测试特性及分析

系统测试的特性如下:

(1)挑剔性:测试是为了找出系统的错误,在系统测试时我们要严格苛刻,十分挑剔。

(2)复杂性:测试是一个非常复杂的过程。

(3)不彻底性:虽然系统经过测试,但测试仍然会存在不够彻底的问题,测试不能保证系统后期运行完整无误,所以要在后期不断的检查、修改。

(4)经济性:通场这种测试称为“选择测试(Selective Testing)”。在测试时要遵守经济性的原则。

经过测试,产品的稳定性和成熟度可以大大提高,产品质量也可以得到保证。

6.4功能测试

系统测试方面,我们通常运用的是白盒测试以及黑盒测试这两种方法。白盒测试是指在了解系统内部工作流程的前提下,可以根据需求规范验证系统内部操作是否能够正常运行的测试;而黑盒测试指的是,倘若知道了这个系统的全部功能,可以进行测试检测系统中的每一个功能是否满足正常使用。

功能测试,主要是对系统的用户登录进行详细的测试,但是登录不可以是任何人都可以登录成功的,所以对登录进行详细测试。

用户登录测试:

模块名称

测试用例

预期结果

实际结果

是否通过

登录模块

用户名:001

密码:002

弹出错误提示,提示密码错误

弹出错误提示,提示密码错误

通过

登录模块

用户名:002 

密码:001

弹出错误提示,提示用户名错误

弹出错误提示,提示用户名错误

通过

登录模块

用户名:001  

密码:001  

管理员登录成功

管理员登录成功

通过

添加公告测试:

模块名称

测试用例

预期结果

实际结果

是否通过

添加公告模块

公告名:最新通知  

添加成功、页面自动跳转

添加成功、页面自动跳转

通过

修改密码测试

模块名称

测试用例

预期结果

实际结果

是否通过

修改密码模块

原密码:888

新密码:123

确认密码:123  

弹出错误提示,提示原密码错误

弹出错误提示,提示原密码错误

通过

修改密码模块

原密码:888

   新密码:123

确认密码:333  

弹出错误提示,提示确认密码不一致

弹出错误提示,提示确认密码不一致

通过

修改密码模块

原密码:888

   新密码:123

确认密码:123  

密码修改成功

密码修改成功

通过

通过对功能的测试,人事信息管理系统的基本功能都是可行的,不管是系统里面的功能,还是界面的设计都是可值得推广宣传的。

6.5测试结果

经过对一系列测试结果的有效分析,本平台开发系统符合用户的要求和需求。所有的基本功能相对齐全,操作起来简单方便,测试系统性能良好,作为大众化系统使用是比较值得推广宣传的。

结  论

此时项目已经完成,即使实施的时间不是很长,但是在这个过程中需要准备很长的一段时间去对系统设计开发所实际用到的技术进行学习和巩固。在学习的过程中,我逐渐认识到了我自身存在的一些不足。对于一些控制是必要的应用技能,能够理解,整个过程中仅仅是掌握了常用的性能和控制方法,我觉得还是相对来说挺容易的。从该系统中,系统的分析和设计的调查数据,已经经历了几个月,并且努力了几个月,该系统现在已经完成。很显然,该系统仍有很多不成熟的地方,在系统设计过程中有许多技术缺陷存在。在设计的过程中也涉及到了很多自己无法解决的问题,主要通过找专业的网站和论坛来解决这些问题,对于圆满完成我的毕业设计,他们也贡献了很大一部分力量。

系统的开发环境和配置都是可以自行安装的,系统使用PHP框架开发工具,使用比较成熟的MySQL数据库进行对系统后台的数据交互,根据技术语言结合需求对数据库进行修改维护,可以使得系统运行更具有稳定性和安全性,从而完成实现系统的开发。

在设计系统的过程中还遇到了一个棘手的问题,那就是自己的英语水平还有待提高,很多关于网站技术开发的资料文献都是英文版的,关键词语以及技术性词汇不能很好的理解。只有在借助翻译软件的实时性翻译功能的辅助下才勉强看懂。显然英语水平的高低直接影响到系统的开发过程。

回顾毕业设计的整个过程,既付出了努力与汗水也收获了很多难以忘怀的美好经历。虽然在系统开发过程中经历了各种各样的困难,自己也在不断研究与探索,可是系统的实现仍有许多不足之处。但是经过系统编程工作的学习让我有了更多的信心,相信在未来的路上我会走的更好。


参考文献

[1]孙伟. 一种人事管理系统[P]. 广东省:CN115600230A,2023-01-13.

[2]刘静蔚.高校人事信息管理系统建设研究[J].科学咨询(科技·管理),2023(01):16-18.

[3]席东风,王丹.基于大数据技术的高校人事信息管理系统的研究与设计[J].新型工业化,2022,12(01):48-50.DOI:10.19335/j.cnki.2095-6649.2022.1.018.

[4]亓望,杨洁,刘宏伟.医院人事信息管理系统运行现状及改进对策研究[J].现代信息科技,2021,5(20):143-145+149.DOI:10.19850/j.cnki.2096-4706.2021.20.036.

[5]令狐彬, 三友和人事档案管理信息系统[简称:人事档案管理系统]V1.0. 山西省,山西三友和智慧信息技术股份有限公司,2021-03-22.

[6]李世龙,任彦仰,云航.人事信息管理系统的设计与实现[J].信息与电脑(理论版),2021,33(01):69-71.

[7]宋晶晶,蒲媛媛,杨茂强.PHP人事信息管理系统设计与实现[J].福建电脑,2020,36(09):78-80.DOI:10.16707/j.cnki.fjpc.2020.09.022.

[8]Huanyi Wang. Design and Development of Personnel Information Management System of Coastal Enterprises[J]. Journal of Coastal Research,2020,106(sp1).

[9]朱飞,刘曼琳.PHP语言中mysql与mysqli应用浅析[J].数字技术与应用,2020,38(07):38-41.DOI:10.19695/j.cnki.cn12-1369.2020.07.17.

[10]秦学武,何钦,孔怡,冯笈, 干部人事 完善干部人事信息管理系统. 陶泳 主编,北京建设年鉴,北京工业大学出版社,2019,311,年鉴.DOI:10.38523/y.cnki.ybjjs.2020.005830.

[11]刘小叶.人事信息管理系统在高校人力资源管理中的应用分析[J].人力资源,2019(12):21.

[12]方堃.人事信息管理系统在高校人力资源管理中的应用分析[J].信息系统工程,2019(05):61.

[13]任宏亮. 杨凌公安局人事管理系统的设计与实现[D].西北农林科技大学,2019.

[14]QingHai Yin. Research and Implementation of Network Examination System Based on PHP Language[J]. Journal of Physics: Conference Series,2018,1087(6).

[15]GB/T 14946.2-2009, 全国干部、人事管理信息系统指标体系与数据结构 第2部分:数据结构[S].

致  谢

时间过得真快,眨眼之间,大学四年的学习生活即将结束,无论是在学习还是生活的这四年,老师们给了我很多帮助,让我终身受益匪浅。老师们不仅帮我树立了正确的人生观和价值观,还帮我养成了很多好习惯,树立了终身学习的意识。在此,我要对我的所有老师表示衷心的感谢。与此同时,我还要感谢陪伴我在这四年里一起成长的伙伴们。他们给了我无私的帮助和关怀,让我在人生最好的四年中获得许多真诚的友谊。

毕业设计是大学四年的最后一个答卷,我们正忙着这四年的美好结束。在毕业项目主题选择的早期阶段,我很紧张担心自己选择的主题很复杂,难以理解,觉得不能这样做会影响我的毕业。是指导老师给我们提供了毕业设计的主题和具体要求,让我们对毕业设计不要太模糊,如果对主题有任何异议,要及时跟他沟通,并且还帮我们介绍他带过的优秀学哥学姐,对我们进行指导,这样再设计上遇到的问题就可以及时得到解决,对我们完成毕业设计提供好的指导条件。

对于毕业设计项目主要是对我在大学所学的专业知识进行一次综合的考验,让我们通过所学的技术知识可以真正的运用到实际动手开发中,通过项目的开发让我意识到自己很多地方的不足,所学知识的不扎实,不能很好的将自己所学的知识运用到系统实际开发上。后来通过自己在图书馆查阅大量书籍,完成系统的设计大纲,阅读笔记和翻译,毕业设计不仅要考验我们的个人能力,还要测验我们的学习态度,做到细节的事情。对于指导老师的帮助,我的毕业设计才可以顺利的完成,我非常感谢。

最后要感谢我的同学们,是你们不断的帮助、鼓励、熬夜、保持调试,测试程序,最终完成人事信息管理系统的运行。我们在交流,谈论时间,将是我们未来的财富,我要深深地感谢你。

Graduation is around the corner. In my future work and life, I will remember the teachings of my teachers and the help of my classmates, and continue to work tirelessly and pursue my goals to repay everyone who has supported and helped me!

Please follow and like + privately message the blogger to receive the project source code for free

Guess you like

Origin blog.csdn.net/Q_3461074420/article/details/135221089