基于android的校园礼物助手的设计与实现
摘要
Android是基于Linux内核的软件平台和操作系统,以其特有的开放性在智能手机、平板电脑等领域有着广泛的应用,近几年的电子商务得到了迅速的发展,通过网上交易已经成为了一种潮流,两者的结合便产生了具有巨大潜力的移动电子商务平台。
本应用主要是探索Android与电子商务的结合,利用SSH框架设计服务器端,Android SDK设计客户端,以礼物助手为例,实现用户浏览,注册、搜索、购买礼物等功能。选择SQLlite作为数据库,作为服务器为客户端与数据库通信的桥梁。服务器端采用SSH框架技术控制逻辑级数据库操作,并将CSS技术应用在asp.net页面上实现页面的美观简洁,实现对数据库中礼物、节日等信息的增、删、改、查,并对会员订单进行管理。该系统较平常的礼物选购应用有较强的针对性、移动性和跨平台性。通过相关测试,本应用能在主流的Android系统手机完美运行并实现基本功能。
关键词:Android;礼物助手;SSH,礼物选购
Campus gift Assistant based on Android system
Abstract
Android is a software platform based on Linux kernel and operating system, with its unique opening in smart phones, tablet computers and other fields has been widely used in recent years . e-commerce has been develop rapidly In recent years, through online transaction has become a trend,so it is potential with the the combination of them to produce a mobile e-commerce platform.
This application is mainly explore the combination of the android and e-commerce. use SSH framework to design management background, use Android SDK to design clients.for example,through gift assistant to achieve users browse,register, search, buying gifts and other functions. Select SQLlite as the database, as a server for the bridge to communicate the client and database. Server using SSH framework technology control the logic-level database operations. use CSS technology in asp.net page,to achieve simple and beautiful pages.through all of them to add, delete, change, check the information in database such as gift and days ,it’s also easily to manage the members of the order. The system is highly targeted, mobility and cross-platform than other relatively gift purchasing applications. Through the relevant testing, the application can run perfectly in the mainstream Android mobile phone and achieve the basic functions.
Keywords:Android;SQLite;gift Assistant;SSH;gift shopping
目 录
1 绪 论 1
1.1 研究的背景及意义 1
1.1.1 选题的背景 2
1.1.2 国内外研究现状 2
1.1.3 研究的意义 3
1.2 系统目标 3
2 需求分析 4
2.1 功能需求 4
2.1.1 校园礼物助手客户端 4
2.1.2 校园礼物助手服务器端 5
2.1.3 功能需求描述 5
2.2 非功能需求 7
2.2.1 外部接口需求 7
2.2.2 性能需求 8
2.2.3 其它需求 8
3 总体设计 9
3.1 运行环境 9
3.2 基本处理流程 9
3.3 外部接口 11
3.4 内部接口 11
4 数据库设计 15
4.1 概念结构设计 15
4.1.1 设计思路 15
4.1.2 E-R图 16
4.2 逻辑结构设计 16
4.2.1 设计思路 16
4.2.2 逻辑模型 17
4.3 物理结构设计 18
4.3.1 存取方式 18
4.3.2 存储结构 18
5 界面设计 20
5.1 界面关系图及工作流图 20
5.1.1 登录界面 20
5.1.2 注册界面 21
5.1.3 礼物选购界面 22
5.2 界面设计成果 23
5.2.1注册界面 23
5.2.2 登录界面 24
5.2.3首页 25
5.2.4节日选择界面 26
5.2.4礼物选择界面 27
5.2.6订单查询界面 28
6 详细设计 29
6.1 系统主要功能模块介绍 29
6.2 登录模块设计 29
6.2.1 登录模块算法描述 29
6.2.2 登录模块程序流程图 30
6.2.3 登录模块关键类说明 30
6.3 礼物选购模块设计 31
6.3.1 礼物选购模块算法描述 31
6.3.2 礼物选购模块程序流程图 32
6.3.3 礼物选购模块关键类说明 33
7 编码 34
7.1 代码实现与核心算法 34
7.1.1 登录界面主要模块实现算法 34
7.1.2 增删改查实现算法 39
7.1.3 礼物选购实现算法 41
7.1.4系统配置代码 45
7.1.5界面设置代码 45
8 测试 50
8.1 测试方案设计 50
8.1.1 测试策略 50
8.1.2 测试进度安排 50
8.1.3 测试资源 51
8.1.4 关键测试点 51
8.2 测试用例构建 51
8.2.1 测试用例编写约定 51
8.2.2 测试用例设计 52
9 总结与展望 54
9.1 设计工作总结 54
9.2 未来工作展望 54
谢 辞 56
参考文献 57
附录A 外文翻译—原文部分 58
附录B 外文翻译—译文部分 68
附录C 主要源代码 75