中文摘要
随着全球信息化的发展,生活节奏越来越快,人们对信息的时效性要求越来越重视,及时得知票据的真伪性的需求也越来越高,所以基于Android手机二维码识读软件渐渐成为人们关注的焦点。
本论文实现的是基于Web的火车票管理系统和基于Android手机二维码识读软件。基于Web的火车票管理系统的实时性、便捷性要远远高于传统的售票系统,而基于Android手机二维码识读软件能够方便、快捷的使旅客获取票面上的信息和辨别真伪。系统一经上线,用户在世界任何一个角落,只要能够连接英特网就能在第一时间获取车票信息内容并能够实现网上订票。基于Web的火车票管理系统能够实现管理员信息的管理、列车信息的管理和查询、车票二维码的生成和打印,在生成票据前对票面上的信息采用DES加密算法进行加密后生成二维码,以确保的信息安全。而基于Android手机二维码识读软件能够扫描票据上的二维码,将密文传输到服务器端后,接受服务器端解密后的明文并将其显示,以便辨别车票的真伪性。
本项目利用当前成熟的数据库技术与JSP技术,开发环境采用Windows操作系统,Web服务器采用Tomcat 6.0,开发工具采用MyEclipse8.5,数据库采用My SQL ,以完成交互的Web服务器应用程序的开发,完成了一个较完整的基于Web的火车票管理系统。本系统采用B/S模式设计, 具有设计简单易用、可移植性较强等优点。
关键字:Android手机,火车票,二维码,识读二维码,加密解密
Two-dimensional Code of Tickets Reading Software on the Android Mobile Phone
Abstract
Author:SunChen,Tutor:WangMeng
With the development of global informationization and the increasingly fast pace of life, people attach more and more attention to the timeliness of information requirements, and require higher level of the bill authenticity in time, so two-dimensional code reading software on the Android mobile phone gradually get our attention.
This paper is to realize the train tickets management system on Web and two-dimensional code reader software on Android mobile phone. Train tickets management system on Web is much more real-time, more convenience than that of the traditional ticketing system;and two-dimensional code reading software on the Android mobile phone can conveniently, quickly make the passengers get and distinguish the information on the tickets. The system on line, as long as connectting the Internet,so the user will be able to obtain the ticket information and can realize booking tickets online in any corner of the world,. Train ticket management system on Web to realize the administrator information management, information management and query, train ticket code generation and printing, in generating the bill before the face of information using the DES encryption algorithm is encrypted to generate a two-dimensional code, in order to ensure the information security. software on Android mobile phone scan a two-dimensional code reading notes , transmit the ciphertext to the server, accepted the decrypted plaintext from the server and display it, so as to distinguish the authenticity of the ticket.
The project uses the current mature database technology and JSP technology, development environment using the Windows operating system, Web server using Tomcat 6, development tools MyEclipse8.5, database using My SQL, to complete the interactive Web server application development, completion of a complete train ticket management system based on Web. This system adopts B/S model design, having the advantages of simple design and easy to use, highly portable advantages.
Keywords: Android mobile phone, train ticket, two-dimensional code, identification code, encryption and decryption
目录
第一章 系统概述 1
1.1系统开发背景和意义 1
1.1.1系统开发背景 1
1.1.2国内外水平与现状 2
1.1.3项目研究意义 4
1.2系统相关理论与技术 5
1.2.1系统开发工具介绍 5
1.2.2系统开发技术介绍 6
1.2.3系统开发理论依据 7
1.3论文结构 14
1.3.1 论文主要内容 14
1.3.2 论文组织结构 14
第二章 系统需求分析 15
2.1可行性分析 15
2.1.1管理可行性 15
2.1.2技术可行性 15
2.1.3经济可行性 16
2.1.4操作可行性 16
2.2 系统需求分析 16
2.2.1功能需求 17
2.2.2性能需求 18
2.2.3可靠性和可用性需求 19
2.3 系统的数据分析 19
2.3.1系统数据流程图 19
第三章 系统总体设计 23
3.1 系统体系模式 23
3.1.1 C/S 结构特性 23
3.1.2 B/S 结构特性 23
3.2 系统设计目标 24
3.3 系统功能结构 24
3.3.1 前台管理 25
3.3.2 后台管理 26
3.4 系统流程分析 27
3.4.1系统业务流程图 27
3.4.2数据库的概念结构设计 29
3.4.3数据库的物理结构设计 30
3.4.4数据库的逻辑结构设计 32
第四章 系统详细设计 34
4.1系统开发环境及运行条件 34
4.1.1.系统开发与运行环境 34
4.1.2.系统运行网络结构 34
4.2系统功能程序流程图 34
4.2.1 后台管理的程序流程图 34
4.2.2 前台软件的程序流程图 34
4.3系统功能实现代码 37
4.3.1 系统主要功能模块实现代码 37
4.3.2 系统主要功能模块界面 43
第五章系统测试 45
5.1 后台主要功能模块测试 45
5.1.1后台登录模块测试 45
5.1.2后台主页模块测试 45
5.1.3后台管理模块测试 46
5.2 前台主要功能模块测试 49
结束语 52
致谢 54
附录Ⅰ: 56
英文文献 56
中文翻译 63