Summary
First of all, the thesis clearly discusses the research content of the system at the beginning. Secondly, analyze the system requirements analysis, figure out "what to do", the analysis includes business analysis, business process analysis and use case analysis, and further clarify the system requirements. Then, on the basis of understanding the requirements of the system, it is necessary to further design the system, mainly including the software architecture mode, the overall function module, and the database design. The software architecture of this project chooses B/S mode and java technology, and the overall functional modules use the top-down layered thinking. Then it is to implement the system and write code to realize the function. The last chapter of the thesis summarizes my experience and summary of completing this thesis and developing this project. Through Zhiyuan car rental system, the work efficiency of all aspects of Zhiyuan car rental will be substantially improved.
Keywords: B/S mode java technology Zhiyuan car rental software architecture
Abstract
First of all, the thesis clearly discusses the systematic research content at the very beginning. Secondly, the analysis of system requirements analysis, understand "what to do", including business analysis and business process analysis and use case analysis, further clear system requirements. Then, on the basis of understanding the requirements of the system, we need to further design the system, mainly including software architecture pattern, overall functional modules and database design. The software architecture of the project chooses B/S mode and Java technology, and the overall functional modules adopt the top-down hierarchical idea. Then is the realization of the system and code writing to achieve the function. The last chapter of the paper summarizes the experience and summary of the completion of this paper and the development of this project. Through zhiyuan car rental system will make all aspects of Zhiyuan car rental work efficiency to bring substantial improvement.
Keywords: B/S mode Java technology Zhiyuan car rental software architecture
Table of contents
1.1 Background of project research... 4
1.2 Significance of development... 4
1.3 Project research content... 4
2 Development Technology Introduction... 6
2.3 Introduction to MySQL... 6
2.4MySQL environment configuration... 7
2.5 Spring Boot Technology... 7
3.1.1 Technical Feasibility... 9
3.1.2 Economic feasibility... 9
3.1.3 Operation Feasibility... 10
3.2 Analysis of System Performance Requirements... 10
3.3 System function analysis... 10
3.4 Analysis of system flow... 12
3.4.1 User management process... 12
3.4.2 Personal center management process... 13
4.1 Software function module design... 14
4.2.1 Conceptual model design... 14
4.2.2 Physical model design... 15
5 System detailed design... 25
5.1 System function modules... 25
5.2 Administrator function module... 26
5.3 Salesperson function module... 30
5.3 User Function Module... 31
1 Introduction
1.1 Background of the project research
Among the many problems that plague the company, Zhiyuan car rental management must be a piece that the company dare not ignore. However, there are many troubles to be solved in the management of Zhiyuan car rental. For example, there are several aspects: first, the company often has a large number of cars, how to ensure that every car can be managed; second, how to deal with trivial work and numerous records Under the circumstances, the current situation of Zhiyuan Car Rental will be reflected to the company's leaders and relevant departments for decision-making, and so on. Under such circumstances, it seems very timely to develop a Zhiyuan car rental system.
After online investigation and data collection, we can find that Zhiyuan car rental management system is not quite popular in the company, and the company can make many improvements in Zhiyuan car rental management. In fact, informatization has become a future trend nowadays, or it can be said that in the current modern city model, informatization has become the mainstream, and the development of a Zhiyuan car rental system may be more timely on the one hand, and on the other hand, it can also improve The company's efficiency in Zhiyuan car rental management has brought certain convenience to the work of people in relevant departments.
1.2 Significance of development
The progress of mankind drives the development of informatization, making people's life faster and faster, so people pay more and more attention to the timeliness of information. The previous management methods can no longer meet people's needs for the way of obtaining information and the convenience and speed. That is to say, the Zhiyuan car rental system has gradually attracted people's attention. First of all, obtaining information online is very real-time and convenient. As long as the system is online, you can find the ideal information immediately no matter where you are.
Computer technology has become an important tool for people in management. It can effectively and quickly solve the information you want to obtain, and improve work efficiency.
1.3 Project research content
Zhiyuan car rental management tasks are cumbersome, so that the company invests more energy in Zhiyuan car rental management every year but has little effect. The goal of Zhiyuan car rental system is to relieve the pressure faced by Zhiyuan car rental management. , Let Zhiyuan car rental management work become more efficient and accurate.
The principles and technologies involved in the development and design process of this project include: B/S, java technology, MySQL database, etc.;
1.4 Paper structure
- Introduction; analyze the background of the project and explain the content of the research.
- Development technology; the system mainly uses java technology, b/s mode and myspl database, and introduces it.
- System analysis; including the overall structure of the system, the analysis of the performance, function and flow chart of the system.
- System design; detailed design of software function modules and database.
- Overall system design; describe the functions of system administrators, users and salesmen.
- Test the system.
- Summarize the experience; at the end of the thesis, I summarize my own summary and impressions when developing this system and writing the thesis, including acknowledgments.
2 Development Technology Introduction
2.1 B/S Architecture
The B/S structure is currently the most used structural mode, which can make the development of the system easier, easier to operate, and can also be maintained. When using this structure, you only need to install the database in the computer and some very common browsers. The browser will connect information with the database, which can realize many functions. The B/S structure can be used directly, and the B/S structure greatly reduces the maintenance of work during use. Based on B/S software, all databases are independent of each other, so it is very safe. Because based on the B/S structure, you can clearly see the business being processed by the system, and you can let the managers make decisions in a timely manner, so that you can avoid the loss of the enterprise. The basic feature of the B/S structure is the centralized management mode. After the user uses the system to generate data, the data can be stored in the system database for future use, so that all people's needs can be met.
Figure 2-1 B/S mode three-layer structure diagram
2.2 Java Technology
Java is a cross-platform object-oriented programming language launched by Sun. Because Java technology has the characteristics of excellent versatility, high efficiency, robust security and platform portability, and Java is open source and has the world's largest developer professional community, so Java develops rapidly.
2. 3MySQL Introduction
In software projects, through the database of operational data, it can ensure its security, independence and data consistency, and provide access to the data system, so it can effectively reduce the time for programmers to develop applications.
MySQL can support multi-threading, which can facilitate the use of system resources and improve the speed of operation. And provide odbc, jdbc and tcp/ip to connect to MySQL in various forms; the function is lacking and the scale is small, but it is enough for this system.
Because the source code of MySQL is open to the outside world, anyone can download it through the corresponding method and modify it according to individual needs. MySQL is valued because of its speed, reliability, and adaptability.
Although MySQL may not be very powerful, due to its open source and wide spread, many people are aware of this database.
2.4 MySQL environment configuration
The data of this system uses MySQL, so you need to install MySQL to the specified directory. If you download the non-installed MySQL compressed package, you can directly decompress it to the specified directory. Then click on the file C:\Program Files\MySQL\bin\winMySQLadmin.exe where C:\Program Files\MySQL is the MySQL installation directory. Enter the initial user and password of winMySQLadmin (note: this is not the user and password in MySQL). Don’t worry about filling in whatever you want. After confirmation, a traffic light icon will appear in the task startup bar in the lower right corner. The red light means the service is stopped, and the green light means the service Normal, left click on this icon ->winnt->install the service to install this service, then left click on this icon ->winnt->start the service to start the MySQL service.
Change the root password of the MySQL database. Use cmd to enter the command line mode and enter the following command:
cd C:\Program Files\MySQL\bin
MySQLadmin -u root -p password 123
Press Enter and Enter password: appears , which is to enter the original password. The password was empty when it was first installed, so press Enter directly. At this time, the password of the account root in MySQL is changed to 123 and the installation is complete.
2.5 Spring Boot technology
This technology is an open source application framework of the Java platform, and its purpose is to simplify the initial construction and development process of Spring. By default, many framework usage methods are configured, and Jar packages are automatically loaded, in order to allow users to run spring applications as quickly as possible.
The main advantages of SpringBoot are: 1. Provide a faster and broader entry experience for all Spring development; 2. Zero configuration; 3. Integrate the configuration of a large number of commonly used third-party libraries; 4. Provide ready features. Today, almost all developers in the Java field are using SpringBoot, gradually becoming a leader in the field of development.
3 System Analysis
3.1 Feasibility analysis
Before developing the system, it is necessary to conduct a system feasibility analysis. The purpose is to use the simplest method to solve the biggest problem. Once the program is developed to meet the needs of users, it will bring many benefits. Next, we will choose whether to develop this system from the aspects of technology, operation, and economy.
3.1.1 Technical Feasibility
The development of this system chooses java technology, java technology is a completely object-oriented language, which provides rich class libraries for developers, greatly reduces the difficulty of using windows programming, reduces the difficulty of developers in designing algorithms, and develops as java technology Visual Studio is an indispensable role. Its friendly interface and powerful functions bring a lot of convenience to program developers. In addition, the environment is simple and easy to transfer, which undoubtedly makes this system the best choice. Therefore, the background design chooses to use the MySQL database mainly for the establishment and maintenance of information. For front-end development, it should have the advantages of complete functions and easy operation, while the background database requires the ability to establish and maintain the unity and integrity of data information.
According to the above objectives, the hardware of this system is analyzed as follows:
Pentium 3 processor;
The memory is 2G;
The hard disk is 50G;
The operating system is Windows 10;
In terms of software, Visul Studio and MySQL database development tools are installed. According to the above software and hardware requirements, it is feasible to obtain the technology of this system.
3.1.2 Economic feasibility
Zhiyuan car rental system based on springboot, the software development of this system only needs an ordinary computer to complete the development, and its cost is very low. In addition, as a graduation design work, the development cost is basically negligible, and the system software can realize faster and more efficient Zhiyuan car rental functions, and at the same time effectively save human resources and management resources. The Zhiyuan car rental system is fully feasible economically.
3.1.3 Operation Feasibility
3.2 Analysis of System Performance Requirements
Analyze system performance, including system responsiveness, interface simplicity and clarity, storage capacity, ease of learning and stability;
System responsiveness: When tens of thousands of people are online at the same time, the response time should be within two to three seconds.
Simple and clear interface: The system interface requirements are simple and clear, the operation is simple, and the user operation is easy to use.
High storage performance: Zhiyuan car rental system needs to store a lot of information, so the storage capacity of the system is very high, so the database should be very powerful to ensure that the information can be stored safely and stably;
Ease of learning: The system must be easy to use in operation, there are not many complicated operations, and the system can be operated with simple learning.
Stability: Zhiyuan car rental system is required to operate stably, with clear interface and clear fonts, etc.
3.3 System function analysis
Considering the needs of Zhiyuan car rental in real life and the serious analysis of the system, the system permissions are divided into three types of users: administrators, users and salesmen.
(a) Administrator; the functions involved in the administrator’s use of this system mainly include: home page, personal center, user management, salesman management, car type management, rental car management, car rental management, car return management, rental order management, Check information management, system management and other functions. The administrator use case diagram is shown in Figure 3-1.
Figure 3-1 Administrator use case diagram
(b) User: The functions involved in the user's use of this system mainly include: home page, personal center, car rental management, car return management, rental order management, inspection information management, my collection management and other functions. The user use case diagram is shown in Figure 3-2.
Figure 3-2 User use case diagram
(c) Salesperson, the system used by the salesperson mainly includes home page, personal center, car rental management, car return management, rental order management, inspection information management and other functions. The salesman use case diagram is shown in Figure 3-3.
Figure 3-3 Salesman use case diagram
3.4 Analysis of system flow
Because different systems actually use different user roles, their business analysis will also become different. For the convenience of discussion, the system business process under the user function authority will be analyzed next, as shown in the following figure:
3.4.1 User management process
Figure 3-4 User management process
3.4.2 Personal Center Management Process
Figure 3-5 Personal Center Management Process
3.4.3 Login process
Figure 3-6 Login process
4 system design
4.1 Software function module design
The overall function of the website is shown in the figure below:
Figure 4-1 Overall functional block diagram of Zhiyuan car rental system
4.2 Database design
4.2.1 Conceptual model design
The conceptual model is a description of the things that appear in real problems. The ER diagram is a diagram composed of entities and their relationships. Through the ER diagram, the relationship between the entities involved in the system can be clearly described.
The user registration entity diagram is shown in Figure 4-2:
Figure 4-2 User registration entity diagram
The car rental entity diagram is shown in Figure 4-3:
Figure 4-3 Car rental entity map
The user management entity diagram is shown in Figure 4-4:
Figure 4-4 User Management Entity Diagram
4.2.2 Physical model design
According to the logical model design of the appeal, the design of the physical model is given below, as shown in the following table:
Table 4-1 : Favorites table
Field Name |
type |
length |
field description |
primary key |
Defaults |
id |
bigint |
primary key |
primary key |
||
addtime |
timestamp |
creation time |
CURRENT_TIMESTAMP |
||
userid |
bigint |
user id |
|||
refid |
bigint |
collection id |
|||
tablename |
varchar |
200 |
Table Name |
||
name |
varchar |
200 |
favorite name |
||
picture |
varchar |
200 |
favorite picture |
||
type |
varchar |
200 |
Type (1: Favorite, 21: Like, 22: Dislike) |
1 |
|
inteltype |
varchar |
200 |
recommended type |
Table 4-2 : Car rental
Field Name |
type |
length |
field description |
primary key |
Defaults |
id |
bigint |
primary key |
primary key |
||
addtime |
timestamp |
creation time |
CURRENT_TIMESTAMP |
||
dingdanbianhao |
varchar |
200 |
order number |
||
qichebianhao |
varchar |
200 |
car number |
||
qichepinpai |
varchar |
200 |
car brand |
||
qichexinghao |
varchar |
200 |
car model |
||
Chepaihao |
varchar |
200 |
number plate |
||
refused |
varchar |
200 |
color |
||
qicheleixing |
varchar |
200 |
car type |
||
the strike |
int |
deposit |
|||
rizujiage |
int |
Daily rental price |
|||
zulinshijian |
datetime |
lease time |
|||
qichezhuangtai |
varchar |
200 |
car status |
||
yonghuzhanghao |
varchar |
200 |
user account |
||
xingming |
varchar |
200 |
Name |
||
shoujihaoma |
varchar |
200 |
phone number |
||
shenfenzhenghao |
varchar |
200 |
ID number |
||
sfsh |
varchar |
200 |
Whether to review |
no |
|
shhf |
longtext |
4294967295 |
review reply |
Table 4-3 : Car Types
Field Name |
type |
length |
field description |
primary key |
Defaults |
id |
bigint |
primary key |
primary key |
||
addtime |
timestamp |
creation time |
CURRENT_TIMESTAMP |
||
qicheleixing |
varchar |
200 |
car type |
Table 4-4 : Car Return
Field Name |
type |
length |
field description |
primary key |
Defaults |
id |
bigint |
primary key |
primary key |
||
addtime |
timestamp |
creation time |
CURRENT_TIMESTAMP |
||
dingdanbianhao |
varchar |
200 |
order number |
||
qichebianhao |
varchar |
200 |
car number |
||
qichepinpai |
varchar |
200 |
car brand |
||
qichexinghao |
varchar |
200 |
car model |
||
Chepaihao |
varchar |
200 |
number plate |
||
refused |
varchar |
200 |
color |
||
qicheleixing |
varchar |
200 |
car type |
||
the strike |
int |
deposit |
|||
rizujiage |
int |
Daily rental price |
|||
zulinshijian |
varchar |
200 |
lease time |
||
guihaishijian |
datetime |
return time |
|||
yonghuzhanghao |
varchar |
200 |
user account |
||
xingming |
varchar |
200 |
Name |
||
shoujihaoma |
varchar |
200 |
phone number |
||
shenfenzhenghao |
varchar |
200 |
ID number |
Table 4-5 : Announcement Information
Field Name |
type |
length |
field description |
primary key |
Defaults |
id |
bigint |
primary key |
primary key |
||
addtime |
timestamp |
creation time |
CURRENT_TIMESTAMP |
||
title |
varchar |
200 |
title |
||
introduction |
longtext |
4294967295 |
简介 |
||
picture |
varchar |
200 |
图片 |
||
content |
longtext |
4294967295 |
内容 |
表4-6:租赁订单
字段名称 |
类型 |
长度 |
字段说明 |
主键 |
默认值 |
id |
bigint |
主键 |
主键 |
||
addtime |
timestamp |
创建时间 |
CURRENT_TIMESTAMP |
||
dingdanbianhao |
varchar |
200 |
订单编号 |
||
qichebianhao |
varchar |
200 |
汽车编号 |
||
qichepinpai |
varchar |
200 |
汽车品牌 |
||
qichexinghao |
varchar |
200 |
汽车型号 |
||
chepaihao |
varchar |
200 |
车牌号 |
||
yanse |
varchar |
200 |
颜色 |
||
qicheleixing |
varchar |
200 |
汽车类型 |
||
yajin |
int |
押金 |
|||
zulinshijian |
varchar |
200 |
租赁时间 |
||
rizujiage |
int |
日租价格 |
|||
guihaishijian |
varchar |
200 |
归还时间 |
||
zulintianshu |
int |
租赁天数 |
|||
zongjine |
int |
总金额 |
|||
yonghuzhanghao |
varchar |
200 |
用户账号 |
||
xingming |
varchar |
200 |
姓名 |
||
shoujihaoma |
varchar |
200 |
手机号码 |
||
shenfenzhenghao |
varchar |
200 |
身份证号 |
||
yewuyuanzhanghao |
varchar |
200 |
业务员账号 |
||
yewuyuanxingming |
varchar |
200 |
业务员姓名 |
||
ispay |
varchar |
200 |
是否支付 |
未支付 |
表4-7:检查信息
字段名称 |
类型 |
长度 |
字段说明 |
主键 |
默认值 |
id |
bigint |
主键 |
主键 |
||
addtime |
timestamp |
创建时间 |
CURRENT_TIMESTAMP |
||
dingdanbianhao |
varchar |
200 |
订单编号 |
||
qichebianhao |
varchar |
200 |
汽车编号 |
||
qichepinpai |
varchar |
200 |
汽车品牌 |
||
qichexinghao |
varchar |
200 |
汽车型号 |
||
chepaihao |
varchar |
200 |
车牌号 |
||
yanse |
varchar |
200 |
颜色 |
||
qicheleixing |
varchar |
200 |
汽车类型 |
||
zulinshijian |
varchar |
200 |
租赁时间 |
||
guihaishijian |
varchar |
200 |
归还时间 |
||
yonghuzhanghao |
varchar |
200 |
用户账号 |
||
xingming |
varchar |
200 |
姓名 |
||
shoujihaoma |
varchar |
200 |
手机号码 |
||
shenfenzhenghao |
varchar |
200 |
身份证号 |
||
jianchajieguo |
longtext |
4294967295 |
检查结果 |
||
cunzaiwenti |
longtext |
4294967295 |
存在问题 |
||
peifujine |
int |
赔付金额 |
|||
jianchashijian |
datetime |
检查时间 |
|||
yewuyuanzhanghao |
varchar |
200 |
业务员账号 |
||
yewuyuanxingming |
varchar |
200 |
业务员姓名 |
||
ispay |
varchar |
200 |
是否支付 |
未支付 |
表4-8:用户
字段名称 |
类型 |
长度 |
字段说明 |
主键 |
默认值 |
id |
bigint |
主键 |
主键 |
||
addtime |
timestamp |
创建时间 |
CURRENT_TIMESTAMP |
||
yonghuzhanghao |
varchar |
200 |
用户账号 |
||
mima |
varchar |
200 |
密码 |
||
xingming |
varchar |
200 |
姓名 |
||
touxiang |
varchar |
200 |
头像 |
||
xingbie |
varchar |
200 |
性别 |
||
shoujihaoma |
varchar |
200 |
手机号码 |
||
youxiang |
varchar |
200 |
邮箱 |
||
shenfenzhenghao |
varchar |
200 |
身份证号 |
表4-9:租赁汽车评论表
字段名称 |
类型 |
长度 |
字段说明 |
主键 |
默认值 |
id |
bigint |
主键 |
主键 |
||
addtime |
timestamp |
创建时间 |
CURRENT_TIMESTAMP |
||
refid |
bigint |
关联表id |
|||
userid |
bigint |
用户id |
|||
nickname |
varchar |
200 |
用户名 |
||
content |
longtext |
4294967295 |
评论内容 |
||
reply |
longtext |
4294967295 |
回复内容 |
表4-10:业务员
字段名称 |
类型 |
长度 |
字段说明 |
主键 |
默认值 |
id |
bigint |
主键 |
主键 |
||
addtime |
timestamp |
创建时间 |
CURRENT_TIMESTAMP |
||
yewuyuanzhanghao |
varchar |
200 |
业务员账号 |
||
mima |
varchar |
200 |
密码 |
||
yewuyuanxingming |
varchar |
200 |
业务员姓名 |
||
touxiang |
varchar |
200 |
头像 |
||
xingbie |
varchar |
200 |
性别 |
||
lianxidianhua |
varchar |
200 |
联系电话 |
||
shenfenzhenghao |
varchar |
200 |
身份证号 |
表4-11:配置文件
字段名称 |
类型 |
长度 |
字段说明 |
主键 |
默认值 |
id |
bigint |
主键 |
主键 |
||
name |
varchar |
100 |
配置参数名称 |
||
value |
varchar |
100 |
配置参数值 |
表4-12:押金支付
字段名称 |
类型 |
长度 |
字段说明 |
主键 |
默认值 |
id |
bigint |
主键 |
主键 |
||
addtime |
timestamp |
创建时间 |
CURRENT_TIMESTAMP |
||
dingdanbianhao |
varchar |
200 |
订单编号 |
||
qichebianhao |
varchar |
200 |
汽车编号 |
||
qichepinpai |
varchar |
200 |
汽车品牌 |
||
qichexinghao |
varchar |
200 |
汽车型号 |
||
chepaihao |
varchar |
200 |
车牌号 |
||
yanse |
varchar |
200 |
颜色 |
||
qicheleixing |
varchar |
200 |
汽车类型 |
||
yajin |
int |
押金 |
|||
zulinshijian |
varchar |
200 |
租赁时间 |
||
yonghuzhanghao |
varchar |
200 |
用户账号 |
||
xingming |
varchar |
200 |
姓名 |
||
shoujihaoma |
varchar |
200 |
手机号码 |
||
shenfenzhenghao |
varchar |
200 |
身份证号 |
||
ispay |
varchar |
200 |
是否支付 |
未支付 |
表4-13:租赁汽车
字段名称 |
类型 |
长度 |
字段说明 |
主键 |
默认值 |
id |
bigint |
主键 |
主键 |
||
addtime |
timestamp |
创建时间 |
CURRENT_TIMESTAMP |
||
qichebianhao |
varchar |
200 |
汽车编号 |
||
qichepinpai |
varchar |
200 |
汽车品牌 |
||
qichexinghao |
varchar |
200 |
汽车型号 |
||
tupian |
varchar |
200 |
图片 |
||
qicheleixing |
varchar |
200 |
汽车类型 |
||
chepaihao |
varchar |
200 |
车牌号 |
||
yanse |
varchar |
200 |
颜色 |
||
yajin |
int |
押金 |
|||
rizujiage |
int |
日租价格 |
|||
zulinzhuangtai |
varchar |
200 |
租赁状态 |
||
qichexiangqing |
longtext |
4294967295 |
汽车详情 |
||
tichedidian |
varchar |
200 |
提车地点 |
表4-14:用户表
字段名称 |
类型 |
长度 |
字段说明 |
主键 |
默认值 |
id |
bigint |
主键 |
主键 |
||
username |
varchar |
100 |
用户名 |
||
password |
varchar |
100 |
密码 |
||
role |
varchar |
100 |
角色 |
管理员 |
|
addtime |
timestamp |
新增时间 |
CURRENT_TIMESTAMP |
表4-15:token表
字段名称 |
类型 |
长度 |
字段说明 |
主键 |
默认值 |
id |
bigint |
主键 |
主键 |
||
userid |
bigint |
用户id |
|||
username |
varchar |
100 |
用户名 |
||
tablename |
varchar |
100 |
表名 |
||
role |
varchar |
100 |
角色 |
||
token |
varchar |
200 |
密码 |
||
addtime |
timestamp |
新增时间 |
CURRENT_TIMESTAMP |
||
expiratedtime |
timestamp |
过期时间 |
CURRENT_TIMESTAMP |
5系统详细设计
5.1系统功能模块
致远汽车租赁系统,在系统首页可以查看首页,汽车租赁,公告信息,个人中心,后台管理等内容,并进行详细操作,如图5-1所示。
图5-1系统首页界面图
用户注册,在用户注册页面通过填写用户账号,密码,确认密码,姓名,手机号码,邮箱,身份证号等信息进行注册操作,如图5-2所示。
图5-2用户注册界面图
汽车租赁,在汽车租赁页面可以查看汽车型号,汽车编号,汽车类型,汽车品牌,车牌号,颜色,押金,目前价格,租赁状态,提车地点等内容,如图5-3所示。
图5-3汽车租赁界面图
个人中心,在个人中心页面通过填写用户信息进行更新信息,还可以根据需要对我的收藏进行详细操作,如图5-4所示。
图5-4个人中心界面图
5.2管理员功能模块
管理员进行登录,进入系统前在登录页面根据要求填写用户名和密码,选择角色等信息,点击登录进行登录操作,如图5-5所示。
图5-5管理员登录界面图
管理员登录系统后,可以对首页,个人中心,用户管理,业务员管理,汽车类型管理,租赁汽车管理,汽车租赁管理,汽车归还管理,租赁订单管理,检查信息管理,系统管理等进行相应的操作管理,如图5-6所示。
图5-6管理员功能界面图
用户管理,在用户管理页面可以对用户账号,姓名,头像,性别,手机号码,邮箱,身份证号等内容进行详情,修改和删除等操作,如图5-7所示。
图5-7用户管理界面图
业务员管理,在业务员管理页面可以对索引、业务员账号,业务员姓名,头像,性别,联系电话,身份证号等内容进行详情,修改和删除等操作,如图5-8所示。
图5-8业务员管理界面图
汽车类型管理,在汽车类型管理页面可以对索引、汽车类型等内容进行详情,修改和删除等操作,如图5-9所示。
图5-9汽车类型管理界面图
租赁汽车管理,在租赁汽车管理页面可以对索引、汽车编号,汽车品牌,汽车型号,图片,汽车类型,车牌号,颜色,押金,日租价格,租赁状态,提车地点等内容进行详情,修改,查看评论和删除等操作,如图5-10所示。
图5-10租赁汽车管理界面图
汽车租赁管理,在汽车租赁管理页面可以对索引、订单编号,汽车编号,汽车品牌,汽车型号,车牌号,颜色,汽车类型,押金,日租价格,租赁时间,汽车状态,用户账号,姓名,手机号码,身份证号,是否支付等内容进行详情和删除等操作,如图5-11所示。
图5-11汽车租赁管理界面图
5.3业务员功能模块
业务员登录进入致远汽车租赁系统可以对首页,个人中心,汽车租赁管理,汽车归还管理,租赁订单管理,检查信息管理等进行相应操作,如图5-12所示。
图5-124业务员功能界面图
汽车归还管理,在汽车归还页面通过填写索引,订单编号,汽车编号,汽车品牌,汽车型号,车牌号,颜色,汽车类型,押金,日租价格,租赁时间,归还时间,用户账号,姓名,手机号码,身份证号等内容进行详情,租赁订单,检查信息等操作,如图5-13所示。
图5-13汽车归还界面图
5.3用户功能模块
用户登录进入致远汽车租赁系统可以对首页,个人中心,汽车租赁管理,汽车归还管理,租赁订单管理,检查信息管理,我的收藏管理等进行相应操作,如图5-14所示。
图5-14汽车功能界面图
个人中心,在个人信息页面通过填写用户账号,姓名,头像,性别,手机号码,邮箱,身份证号等内容对个人信息进行修改操作,如图5-15所示。
图5-15个人中心界面图
检查信息管理,在检查信息页面通过填写索引,订单编号,汽车编号,汽车品牌,汽车型号,车牌号,颜色,汽车类型,租赁时间,归还时间,用户编号,姓名,手机号码,身份照,赔付金额,检查时间,业务员账号,业务员姓名,是否支付等内容进行详情操作,如图5-16所示。
图5-16检查信息界面图
我的收藏管理,在我的收藏管理页面可以对索引、收藏名称、收藏图片等内容进行详情和删除等操作,如图5-17所示。
图5-17 我的收藏管理界面图
6系统测试
系统测试不仅仅是发现系统潜在的BUG或错误,而更为重要的是为用户提供一个良好的体验和安全可使用的产品服务。而通过发现错误或潜在的问题,将有助于提升产品的竞争力,这也是软件测试的其中的重要目的之一。
软件测试的方法有好几种,但目前主要采用的是包括以功能为主要测试方向的黑盒测试以及以逻辑为主要测试方向的白盒测试,这是两种不同的测试方法,针对的测试侧重点不同,本课题根据实际需求情况,选择以功能为主要的黑盒测试方法,同时测试是要遵循一定的规则来执行的,一个测试要执行其执行的依据一般是由测试用例来规定的,而测试用例一般是依据需求或说明书来综合制定的,测试在硬件出厂前是十分重要的一个过程,本课题由于时间和精力的关系,选择以实现的功能作为测试要点来进行测试。具体测试过程如下:
测试用例1及测试过程:
登录:录入登录信息,账号,密码和选择权限,点击登录按钮,会出现两种情况:登录成功进入用户具有权限的功能界面和提示登录失败。
测试用例2及测试过程:
管理员登录:录入登录信息,管理员账号,密码和选择权限,点击登录按钮,会出现两种情况:登录成功进入管理员具有权限的功能界面和提示登录失败。
7总结与心得体会
7.1 总结
通过完成该致远汽车租赁和本论文的撰写让我更加明白了软件开发过程中软件工程思想的重要性。在项目的前期由于对需求分析做的不够谨慎和明确,导致了后面在设计甚至编码时候造成了许多不必要的麻烦。由此在今后的学习和工作开发之中必须要牢牢把握住软件工程的设计思想和方法,这样可以进一步保证项目开发的健壮性和准确性。
本网站所实现的是一个致远汽车租赁系统,该系统严格按照需求分析制作相关模块,并利用所学知识尽力完成,但是本人由于学识浅薄,无法真正做到让该程序可以投入市场使用,仅仅简单实现部分功能,希望日后还能改善。
本系统具有以下优点:
该系统具有较高的适用性,选用B/S结构,可以在绝大部分个人平台上使用该系统。
系统将用户权限进行划分,管理员,用户和业务员能看到及操作的信息不一样,三者具备不同的操作权限。
该系统操作界面简单明了,大部分人都可以正常使用。
但也存在以下问题需要改进:
运行时窗口不能被刷新,可以改进。
系统过于简单,显示的信息有限。。
不能添加多个管理员账号,如果可以则将利于发展致远汽车租赁规模,便于致远汽车租赁信息集中管理。
不能实时预约接待消息和致远汽车租赁反馈建议,容易被忽视,不利于管理员服务客户。
7.2 心得体会
由于经验和能力不足,导致在开发、设计该系统的时候,出现了比较多的问题,例如需要用到的技术不熟悉、程序报错等,后来我积极地向同学询问自己出现的问题同时也会找一些相关的书进行学习,慢慢的一点点将自己遇到的问题逐渐解决。所以不管以后在任何时候合作都会让自己事半功倍。通过本系统的完整的开发,可以遇到自己平时写一些简单的小程序遇不到的问题,不仅仅局限与技术与业务方面的,同时也使得自己更加深入的了解软件过程的开发设计思想,对于即将踏入社会工作而言,这些心得都十分重要。在以后的研究生学习生涯也必须加深这方面的理解,将最好的开发技术和最新的科学原理运用到自己以后的开发工作和学习研究中去。
参考文献
[1] 李兴华. JavaWeb开发实战经典基础篇(第1版)[M].北京:清华大学出版社,2010.8
[2] 程志艳, 张亮. JSP实用简明教程[M].北京:清华大学出版社,2005.12
[3] 陈刚. Eclipse从入门到精通[M].北京:清华大学出版社,2005.6
[4] 李勇平.JSP应用开发详解[M].电子工业出版社,2005.10
[5] 郑自国,邹丰义.Java案例开发集锦[M].北京:电子工业出版社,2005.2
[6] 张孝祥. 深入Java Web开发内幕——核心基础[M]. 北京:电子工业出版社. 2006
[7] 李安渝. Web Services技术与实现[M]. 北京:国防工业出版社,2003
[8] 孙卫琴,李洪成.Tomcat 与 Java Web 开发技术详解[M].电子工业出版社,2003.6:1-205
[9] 曹广鑫 编著.JSP数据库项目开发宝典[M].北京:电子工业出版社,2006
[10] 王剑,邓武.基于Web服务面向服务的动态电子商务应用框架研究[J].科学技术与工程,2008,2(3):65-90
[11] 周旌恒.JSP应用开发详解(第三版)[M].北京:电子工业出版社,2004
[12] Shanliang Xue;Qing Yan Wei;Guang Ming Jiao;Dun Wen Zuo. Research Code Management System Based on J2EE[J]. Key Engineering Material.2010,Vol.431-432(188-191)
[13] Yan Ming Li;Li Feng Wan. Design On Framework Structure of College English Learning Management System Based on Struts2[J].Advanced Materials Research.2013,Vol.846-847(1558-1561)
[14]Bruce Eckel. Thinking in Java[M]. Upper Saddle River, New Jersey, USA: Prentice Hall, 2006
[15] Joshua Bloch. Effective Java[M]. Piscataway, N.J: IEEE Press, 2009
[16] Juan Lipson Vuong.A semantics-based routing scheme for grid resource discovery[M].E-Science: First
International Conference on E-Science and GridComputing,2005:58-70,90
致谢
过程永远比结果重要。毕业设计是大学学习中最为浓墨重彩的一笔,在这个过程中不仅学到更为全面的书本和实践知识,更让我感受到了浓浓的同窗之情及师生情。虽然大学四年间做过不少作业,但是独立完成这样一个操作系统还是第一次,遇到困难时理所当然,我也有所心理准备,但是超出自身能力的部分还是需要寻求教师及同学的帮助。在此,我衷心地感谢我的指导教师,可以说,没有教师我就不能顺利完成这次设计。他总是在一筹莫展的时候为我指引方向。比如在开题报告,我的指导教师就细致地指导我该怎么有逻辑地将自己的想法和做法表达清楚,在此由衷感谢他。在设计的过程中,教师百忙之中也乐于给予我指导,不管多晚给教师发消息,不管是不是上班时间去教师办公室寻求帮助,他总能在第一时间对我施以援手,由于我在设计期间需要离校实习,不能及时到教师办公室检查设计进度,当时已经是晚上6点多,我匆匆赶到办公室时,教师依然在伏案办公,桌上是同学们的中期检查报告,检查完毕业设计后,他又继续查看同学们的中期报告,并督促我及时上交报告。教师给的意见总是一针见血地指出我设计及论文中的不足,并举例详细说明我的改进方法,不得不佩服他的学术水平及教学水平。在我开始着手实现这个设计的时候,通过需求分析及可行性分析对该系统有了较为浅显的认识;但是在我真正开始实现时发现事情并没有这么简单。任何成功都不是一蹴而就的,就算是一个简单的毕业设计也需要日积月累的知识和经验。于是,我便去寻求老师和同学的帮助,这也使得我得以从不同的角度重新考虑我的设计。终于,这个系统在我内心有了雏形。在真正实现这个设计的过程中,学习新知识是必定的,同时那些由于时间关系或者本来就没有掌握牢固的知识也有了进一步巩固的机会。然而最重要的是了解到如何作为一个开发人员,以开发人员的思维来看待软件开发的步骤和方法策略。
本次毕业设计的完成预示着大学时代的句号,在这个设计过程中,我收获到的绝不仅仅是做项目过程中要到的知识,更多的是同窗情谊和师生情谊,最重要的是做任何事情都要具备的认真态度,以及真正职业的思考方式方法。
最后真心祝愿师生们前程似锦!工作顺利,祝母校越办越好!