公交查询系统源程序清单
———————————————————————————————— 作者: ———————————————————————————————— 日期:
2
目录
1引言 ................................................................................................................................................... 3
1.1标题 ................................................................................................................................. 3 1.2模块开发情况表 ............................................................................................................. 3
2增加线路(g_line_add) ................................................................................................................. 5
2.1功能说明 ......................................................................................................................... 5 2.2设计说明 ......................................................................................................................... 5 2.3原代码清单 ..................................................................................................................... 6
2.3.1增加站点(line_add_station_add_b) ......................................................... 8 2.3.2删除站点(line_add_station_del_b) .......................................................... 9
3删除线路(g_line_del) ................................................................................................................ 10
3.1功能说明 ....................................................................................................................... 10 3.2设计说明 ....................................................................................................................... 10 3.3原代码清单 ................................................................................................................... 10
4修改线路(g_line_modify) .......................................................................................................... 13
4.1功能说明 ....................................................................................................................... 15 4.2设计说明 ....................................................................................................................... 15 4.3原代码清单 ................................................................................................................... 16
4.3.1新增站点(line_modify_station_add_b) ................................................. 16 4.3.2删除站点(line_modify_station_del_b) .................................................. 18 4.3.3站点上移(line_modify_station_up_b) ................................................... 21 4.3.4站点下移(line_modify_station_down_b) .............................................. 22 4.3.5站点改名(line_modify_station_name_b) .............................................. 28 4.3.6线路改名(line_modify_line_name_b) ................................................... 26
5账号管理(g_user) ...................................................................................................................... 28
5.1功能说明 ....................................................................................................................... 28 5.2设计说明 ....................................................................................................................... 28
1 / 55
5.3原代码清单 ................................................................................................................... 60
5.3.1删除用户(user_del_b) ........................................................................... 80 5.3.2修改密码(user_password_modify_b) .................................................... 91 5.3.3修改用户名(user_name_modify_b) ...................................................... 85 5.3.4新增用户(user_add_b) .......................................................................... 96
6站点查询(g_station_query) ....................................................................................................... 38
6.1功能说明 ....................................................................................................................... 59 6.2设计说明 ....................................................................................................................... 59 6.3原代码清单 ................................................................................................................... 69
7线路查询(g_line_query) ............................................................................................................ 41
7.1功能说明 ....................................................................................................................... 41 7.2设计说明 ....................................................................................................................... 41 7.3原代码清单 ................................................................................................................... 42
8线路选择(g_line_select) ............................................................................................................ 44
8.1功能说明 ....................................................................................................................... 44 8.2设计说明 ....................................................................................................................... 45 8.3原代码清单 ................................................................................................................... 46
9系统登陆(login) ......................................................................................................................... 51
9.1功能说明 ....................................................................................................................... 51 9.2设计说明 ....................................................................................................................... 51 9.3原代码清单 ................................................................................................................... 51
2 / 55
1引言
1.1标题
公交查询系统 BusManager 增加线路 g_line_add 删除线路 g_line_del 修改线路 g_line_modify 账号管理 g_user 站点查询 g_station_query 线路查询 g_line_query 线路选择 g_line_select 系统登陆 login
1.2模块开发情况表
表1.2-1 增加线路 模块名称 标识符 程序编制员签名 修改完成日期 增加线路 g_line_add 斯健 2011/6/23 表1.2-2删除线路 模块名称 标识符 程序编制员签名 修改完成日期 删除线路 g_line_del 斯健 2011/6/23 表1.2-3 修改线路
模块名称 标识符 程序编制员签名 修改完成日期 修改线路 g_line_modify 斯健 2011/6/23 3 / 55