C#城市公交查询系统设计

论文主要研究的是基于winform的城市公交查询系统,主要包括数据库的设计,界面的建立和后台管理。设计语言使用C#,数据库采用SQL Sever2008,主要有用户和管理员两大部分,用户包含会员和游


摘  要:随着城市的不断发展,交通的重要性日益显现,良好的交通不仅会给市民的出行带来便利,对城市自身的发展也有着无比重要的作用。在众多交通工具中,公交车是相当重要的一员,比起私家车更为经济环保,去其他城市后也多是依靠公交车。如今,人们的出行已离不开公交。与此同时,也有许多人因不熟悉公交路线而苦于如何选择。在网络如此发达的今天,有一个能够查询公交路线的网站显得至关重要。

该论文主要研究的是基于winform的城市公交查询系统,主要包括数据库的设计,界面的建立和后台管理。设计语言使用C#,数据库采用SQL Sever2008,主要有用户和管理员两大部分,用户包含会员和游客,用户模块主要包括路线查询、站点查询、换乘查询和用户留言,管理员模块主要包括路线管理、站点管理、时刻表管理和用户留言管理等。

开发时编译器采用的是微软的VS 2013,所以该系统只能在VS 2013及更高的版本上使用。

关键词:公交查询系统;C#;Visual Studio 2013;SQL Sever2008

ABSTRACT:With the continuous development of the city, the importance of traffic is increasingly apparent. Good traffic will not only bring convenience to the people's travel, but also play a pivotal role in the development of the city. In many traffic tools, the bus is a very important member, Compared with private cars is more economic and environmental protection.After go to other cities,the bus is the main transport.Now,people can’t separated from bus .At the same time, there are many people who are not familiar with the bus  routes and don’t know how to choose. In the network so developed today, it is important to have a website that can inquire about bus routes.

The paper mainly studies the urban bus inquire system based on winform.Mainly includes the design of the database, the establishment of the interface and background management. Design language using C #, database using SQL Server 2008.Mainly includes two parts,user and administrator.Users include members and visitors. User module mainly includes route inquiry, site inquiry, transfer query and user message. Administrator module mainly includes route management, site management, timetable management and user message management.

Developed by the compiler is Microsoft's Visual Studio 2013, so the system can only run on Visual Studio 2013 and higher.

Key words: Bus Inquire System;C#;Visual Studio 2013

目  录

第一章  引言 1

1.1课题背景 1

1.2论文的研究内容 1

1.3论文的组织结构 1

第二章  系统的开发工具与环境 2

2.1 .NET Framework 2

2.2 Visual Studio 2013 2

2.3 SQL Sever 2008 2

2.4百度地图API 3

2.5支持环境 3

第三章  系统概要设计 4

3.1系统需求分析 4

3.2功能模块设计 4

3.3模块详细设计 5

3.3.1登录模块详细设计 5

3.3.2用户模块详细设计 5

3.3.3管理员模块详细设计 6

3.4系统用户权限设计 6

3.5数据库设计 6

3.5.1 数据库分析 6

3.5.2实体联系图 6

3.5.3 系统ER图 8

3.5.4数据库表设计 9

3.6系统流程设计 12

3.6.1路线查询 12

3.6.2站台查询 12

3.6.3换乘查询 13

3.7百度地图的使用 15

第四章  系统实现 16

4.1登录界面 16

4.1.1界面展示 16

4.1.2部分代码 18

4.2用户模块功能实现 19

4.2.1路线查询 19

4.2.2站台查询 20

4.2.3换乘查询 21

4.2.4用户留言 23

4.2.5用户名修改 25

4.2.6密码修改 25

4.3管理员模块功能实现 26

4.3.1路线管理 26

4.3.2站台管理 28

4.3.3发车时间管理 29

4.3.4员工管理 30

4.3.5留言管理 32

第五章  系统测试 34

5.1测试目的 34