-
大小: 1.6MB文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2023-11-09
- 語言: ASP
- 標(biāo)簽: 公交路線??數(shù)據(jù)結(jié)構(gòu)??C語言??
資源簡介
本系統(tǒng)采用結(jié)構(gòu)化設(shè)計的方法來實現(xiàn)系統(tǒng)總體功能 提高系統(tǒng)的各項指標(biāo) 即將整個系統(tǒng)合理的劃分成各個功能模塊 正確地處理模塊之間和模塊內(nèi)部的聯(lián)系以及和數(shù)據(jù)庫的聯(lián)系 定義各模塊的內(nèi)部結(jié)構(gòu) 通過對模塊的設(shè)計和模塊之間關(guān)系的系統(tǒng)來實現(xiàn)整個系統(tǒng)的功能
前臺主要有3個模塊 線路查詢 站點查詢 公交換乘模塊和后臺管理模塊
功能名稱:線路查詢
功能概述:可以獲得要查詢公交所通過的各個站點
功能名稱:站點查詢
功能概述:通過輸入的指定站點查詢經(jīng)過該站點的公交
功能名稱:公交換乘查詢
功能概述:分為公交直達(dá) 公交一次換乘 主要體現(xiàn)那些不可直達(dá)需要轉(zhuǎn)車的路線的所有換法 如果用戶輸入的起始點和終點 有一條及一條以上的公交線可以直達(dá)的 則為公交直達(dá);如果輸入的起始點和終點 沒有一條公交線可以直接到的 系統(tǒng)將會給出一次換乘的方案 則為公交一次換乘
功能名稱:后臺管理
功能概述:用于管理員登陸 添加 修改 刪除公交線路 修改信息資料 安全密碼 回復(fù)留言板等功能
本系統(tǒng)提供了的車次查詢功能 路線查詢功能 乘客可以方便的進行查詢 以防乘錯車次 當(dāng)然有些功能的智能化不是很強 系統(tǒng)有待進一步來完善
畢業(yè)論文文件夾下為《開題報告》 《畢業(yè)論文》及《英文翻譯》等相關(guān)文檔
DB 51aspx下為Sql數(shù)據(jù)庫 附加后修改App Code DB cs中的配置文件">城市公交查詢系統(tǒng) 畢業(yè)設(shè)計
代碼片段和文件信息
using?System;
using?System.Collections;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Web;
using?System.Web.SessionState;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.HtmlControls;
using?System.Data.SqlClient;
namespace?城市公交查詢系統(tǒng)
{
///?
///?bus?的摘要說明。
///?
public?partial?class?bus?:?System.Web.UI.Page
{
protected?void?Page_Load(object?sender?System.EventArgs?e)
{
if(!Page.IsPostBack)
{
SqlConnection?con=DB.createConnection();
con.Open();
SqlCommand?cmd=new?SqlCommand(“select?*?from?Province“con);
SqlDataReader?sdr=cmd.ExecuteReader();
this.ddlProvince.DataSource=sdr;
this.ddlProvince.DataTextField=“proName“;
this.ddlProvince.DataValueField=“proID“;
this.ddlProvince.DataBind();
sdr.Close();
cmd.CommandText=“select?*?from?City?where?proID=‘“+this.ddlProvince.SelectedValue+“‘“;
SqlDataReader?sdrC=cmd.ExecuteReader();
this.ddlCity.DataSource=sdrC;
this.ddlCity.DataTextField=“cityName“;
this.ddlCity.DataValueField=“cityID“;
this.ddlCity.DataBind();
sdrC.Close();
cmd.CommandText=“select?*?from?車輛線路編號表?order?by?車次?ASC“;
SqlDataReader?CheCi=cmd.ExecuteReader();
this.ddlLineNum.DataSource=CheCi;
this.ddlLineNum.DataTextField=“車次“;
this.ddlLineNum.DataValueField=“車次“;
this.ddlLineNum.DataBind();
CheCi.Close();
con.Close();
????????????}
//?在此處放置用戶代碼以初始化頁面
}
#region?Web?窗體設(shè)計器生成的代碼
override?protected?void?OnInit(EventArgs?e)
{
//
//?CODEGEN:?該調(diào)用是?ASP.NET?Web?窗體設(shè)計器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
///?
///?設(shè)計器支持所需的方法?-?不要使用代碼編輯器修改
///?此方法的內(nèi)容。
///?
private?void?InitializeComponent()
{????
}
#endregion
protected?void?ddlProvince_SelectedIndexChanged(object?sender?System.EventArgs?e)
{
SqlConnection?con=DB.createConnection();
con.Open();
SqlCommand?cmd=new?SqlCommand(“select?*?from?City?where?proID=‘“+this.ddlProvince.SelectedValue+“‘“con);
SqlDataReader?sdr=cmd.ExecuteReader();
this.ddlCity.DataSource=sdr;
this.ddlCity.DataTextField=“cityName“;
this.ddlCity.DataValueField=“cityID“;
this.ddlCity.DataBind();
sdr.Close();
con.Close();
}
protected?void?btnFindLine_Click(object?sender?System.EventArgs?e)
{
string?num=this.ddlLineNum.SelectedValue.ToString();
Response.Redirect(“showBusNum.aspx?num=“+num);
}
protected?void?btnFindName_Click(object?sender?System.EventArgs?e)
{
string?StationName=this.txtStationName.Text;
SqlConnection?con=DB.createConnection();
con.Open();
SqlCommand?cmd=new?SqlCommand(“select?count(*)?from?站名表?where?站名=“+“‘“+StationName+“‘“con);
????????????int?count=Convert.ToInt32(cmd.ExecuteScalar());
con.Close();
if(StationName==““||StationName==null)
{
Response.Redirect(“error/erro
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????2228224??2009-06-13?18:08??BusLineSearch\APP_DATA\城市公交查詢系統(tǒng).mdf
?????文件????3932160??2009-06-13?18:08??BusLineSearch\APP_DATA\城市公交查詢系統(tǒng)_Log.LDF
?????文件????1441792??2009-07-01?09:24??BusLineSearch\DB_51aspx\城市公交查詢系統(tǒng).mdf
?????文件?????786432??2009-07-01?09:24??BusLineSearch\DB_51aspx\城市公交查詢系統(tǒng)_Log.LDF
?????文件???????1656??2009-06-13?15:50??BusLineSearch\error\error1.aspx
?????文件????????924??2008-03-31?18:53??BusLineSearch\error\error1.aspx.cs
?????文件???????1767??2009-06-13?15:50??BusLineSearch\error\error2.aspx
?????文件???????1001??2008-03-31?18:53??BusLineSearch\error\error2.aspx.cs
?????文件???????1666??2009-06-13?15:50??BusLineSearch\error\error3.aspx
?????文件????????924??2008-03-31?18:53??BusLineSearch\error\error3.aspx.cs
?????文件???????1772??2009-06-13?15:50??BusLineSearch\error\error4.aspx
?????文件???????1001??2008-03-31?18:53??BusLineSearch\error\error4.aspx.cs
?????文件???????1771??2009-06-13?15:50??BusLineSearch\error\error5.aspx
?????文件???????1001??2008-03-31?18:53??BusLineSearch\error\error5.aspx.cs
?????文件???????1784??2009-06-13?15:50??BusLineSearch\error\error6.aspx
?????文件????????980??2008-03-31?18:53??BusLineSearch\error\error6.aspx.cs
?????文件???????1643??2009-06-13?15:50??BusLineSearch\error\error7.aspx
?????文件????????992??2008-03-31?18:53??BusLineSearch\error\error7.aspx.cs
?????文件???????1540??2009-06-13?15:50??BusLineSearch\error\error8.aspx
?????文件????????927??2008-03-31?18:53??BusLineSearch\error\error8.aspx.cs
?????文件???????6748??2009-06-13?15:50??BusLineSearch\HTGL\addcheci.aspx
?????文件??????10077??2009-07-01?09:24??BusLineSearch\HTGL\AddCheci.aspx.cs
?????文件???????2867??2009-06-13?15:50??BusLineSearch\HTGL\addchecidts.aspx
?????文件???????6527??2009-06-13?17:06??BusLineSearch\HTGL\AddCheciDts.aspx.cs
?????文件???????2664??2009-06-13?15:50??BusLineSearch\HTGL\addnews.aspx
?????文件???????2914??2009-06-13?15:35??BusLineSearch\HTGL\AddNews.aspx.cs
?????文件???????2322??2009-06-13?15:50??BusLineSearch\HTGL\deletecheci.aspx
?????文件???????2994??2008-03-31?18:53??BusLineSearch\HTGL\DeleteCheci.aspx.cs
?????文件???????2302??2009-06-13?15:50??BusLineSearch\HTGL\deletezhanm.aspx
?????文件???????3043??2009-06-13?16:36??BusLineSearch\HTGL\DeleteZhanm.aspx.cs
............此處省略98個文件信息
評論
共有 條評論