基于XML的公交线路查询系统设计与实现-精品

  • 格式:doc
  • 大小:1.31 MB
  • 文档页数:41

本科生毕业论文(设计)

题 目 基于XML的公交线路查询系统设计与实现

学生姓名

指导教师

学 院

专业班级

完成时间 2010年6月

I 目 录

摘 要 ............................................................. III

Abstract ........................................................... IV

第一章 绪 论 ....................................................... 5

1.1 应用背景 .................................................... 5

1.2 发展现状 .................................................... 5

1.3 国内外研究概况 .............................................. 6

1.4 发展前景 .................................................... 6

1.5 系统目标 .................................................... 7

第二章 相关理论基础 ................................................. 8

2.1 数据库介绍 .................................................. 8

2.1.1 数据库基本结构 ......................................... 8

2.1.2 SQL Server 2005 ........................................ 9

2.2 XML介绍 ..................................................... 9

2.3 C#介绍 ..................................................... 10

2.3.1 C#的特点 .............................................. 10

2.3.2 C#中的数据库访问 ...................................... 11

2.4 最短路径算法介绍 ........................................... 12

2.5 B/S介绍 .................................................... 14

第三章 系统需求分析 ................................................ 15

3.1性能需求分析 ................................................ 15

3.2功能需求分析 ................................................ 16

3.2.1 普通用户需求分析 ...................................... 16

3.2.2 管理员需求分析 ........................................ 17

3.3功能模块划分 ................................................ 18

第四章 系统设计 .................................................... 20

4.1 数据库设计 ................................................. 20

4.1.1 数据库概念结构设计 .................................... 20

4.1.2 数据库表设计 .......................................... 21

II 4.2功能模块具体设计 ............................................ 23

4.2.1 普通用户模块设计 ...................................... 23

4.2.2 管理员模块设计 ........................................ 24

第五章 系统实现与测试 .............................................. 25

5.1主要程序功能 ................................................ 25

5.1.1连接数据库的包含文件 .................................. 25

5.1.2 XML技术 .............................................. 26

5.1.3 按两站点查询 .......................................... 27

5.1.4 按站点查询 ............................................ 30

5.1.5 按线路查询 ............................................ 32

5.1.6 管理员登陆 ............................................ 34

5.2测试和维护 .................................................. 35

5.2.1 测试分类 .............................................. 35

5.2.2 软件维护 .............................................. 36

5.2.3 具体测试 .............................................. 36

5.2.4 尚存在的问题 .......................................... 38

结束语 ............................................................. 40

致 谢 ............................................................. 41

参考文献 ........................................................... 42

III 摘 要

城市公共交通是与出行人员生产生活息息相关的重要基础设施,就目前来说,它是绝大多数人出行的首选工具。在公交线路复杂多变的今天,建立一个网络化的查询系统能有效帮助人们合理安排出行、了解公交线路变更,方便人们获得各种公交线路信息。

本毕业设计主要针对公交路线查询而开发设计的,利用Visual Studio 2005开发工具结合C#编程语言来完成了功能和界面设计,实现了公交路线的查询功能(包括按线路查询、按站点查询、换乘查询等),并使用了.NET中一些web控件编写数据库连接、更新的代码,从而实现了公交路线信息的管理功能(包括对路线信息的添加、删除、修改)。数据库选用的是SQL SERVER 2005,而应用程序与SQL SERVER 2005数据库建立链接,并且运用SQL 语言实现对其数据库进行操作。

本文共分为五大章,分别是:引言、理论基础、系统需求分析、系统设计、系统实现及测试。

关键词 公交查询,信息系统,SQL Server 2005,C#,XML

IV Abstract

Urban public transport is closely linked with the travel staff the importance of

production and life of infrastructure.For now, it is the tool of choice for most people

travel. Complex in the bus lines today ,the establishment of a network query system

can help people rationalize travel, learn to change of bus routes to facilitate access of

information of various bus lines.

In allusion to the CPT bus line query, the course design is developed and

designed. It using development tool Visual Studio 2005 and programming language

C# to complete the function and the design of interface, and realize the query of the

CPT bus lines (including query by line, query by stop, query by start stop and end

stop, and provide the shortest route querying from start stop to end stop, change line

query, and also support blur query.), and used some Web widgets to compile database