公交查詢系統(tǒng)-數(shù)據(jù)庫(kù)課程設(shè)計(jì)報(bào)告_第1頁(yè)
公交查詢系統(tǒng)-數(shù)據(jù)庫(kù)課程設(shè)計(jì)報(bào)告_第2頁(yè)
公交查詢系統(tǒng)-數(shù)據(jù)庫(kù)課程設(shè)計(jì)報(bào)告_第3頁(yè)
公交查詢系統(tǒng)-數(shù)據(jù)庫(kù)課程設(shè)計(jì)報(bào)告_第4頁(yè)
公交查詢系統(tǒng)-數(shù)據(jù)庫(kù)課程設(shè)計(jì)報(bào)告_第5頁(yè)
已閱讀5頁(yè),還剩14頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

公交査詢系統(tǒng)一數(shù)據(jù)庫(kù)課程設(shè)計(jì)報(bào)告數(shù)據(jù)庫(kù)課程設(shè)計(jì)報(bào)告班級(jí)序號(hào)姓名地球科學(xué)學(xué)院地信系2013-06-28目錄TOC\o"1-5"\h\z\o"CurrentDocument"數(shù)據(jù)庫(kù)課程設(shè)計(jì) 0—目錄 1一、 概述????????????????????????????????????????????????????????3—景說明 3\o"CurrentDocument"1.2開發(fā)環(huán)境 3\o"CurrentDocument"二、 需求分析 3\o"CurrentDocument"—2.1用戶需求 3\o"CurrentDocument"2.2主要功能 32.3數(shù)據(jù)流圖 3\o"CurrentDocument"2.4數(shù)據(jù)字典 4\o"CurrentDocument"三、 數(shù)據(jù)庫(kù)概念結(jié)構(gòu)設(shè)計(jì) 4\o"CurrentDocument"四、 數(shù)據(jù)庫(kù)邏輯結(jié)構(gòu)設(shè)計(jì) 0\o"CurrentDocument"_4.1關(guān)系表設(shè)計(jì) 0\o"CurrentDocument"4.2數(shù)據(jù)表關(guān)系圖 1\o"CurrentDocument"五、創(chuàng)建數(shù)據(jù)庫(kù)及其對(duì)象 2\o"CurrentDocument"5.1建數(shù)據(jù)庫(kù)和表 2\o"CurrentDocument"5.2查詢實(shí)現(xiàn) 3\o"CurrentDocument"五、 軟件功能設(shè)計(jì) 5\o"CurrentDocument"六、 界面設(shè)計(jì) 6\o"CurrentDocument"七、 應(yīng)用程序 6查詢 6\o"CurrentDocument"7.2線路查詢 7\o"CurrentDocument"7.3站一站查詢 8\o"CurrentDocument"八、 實(shí)驗(yàn)數(shù)據(jù)示例 10\o"CurrentDocument"九、 心得 11一、概述1.1背景說明軟件名稱:公交線路查詢系統(tǒng)項(xiàng)目提出者:項(xiàng)目開發(fā)者:用戶:廣大需要乘坐公交車的人群1.2開發(fā)環(huán)境操作系統(tǒng):WindowsXP軟件配置:visualstutio2010,MicrosoftSQLServer2008R2數(shù)據(jù)庫(kù)配置:MicrosoftSQLServer2008R2在PC機(jī)中新建數(shù)據(jù)庫(kù),建立各個(gè)數(shù)據(jù)表、關(guān)系圖。二、需求分析2.1用戶需求城市的擴(kuò)張使得公交線路越來越復(fù)雜,為了使得用戶更加方便地能夠獲得最新公交線路,“公交線路査詢工具”幫助人們解決這個(gè)問題。本系統(tǒng)面向的對(duì)象是普通乘客,對(duì)于普通乘客來說,他們最關(guān)心的就是查詢。系統(tǒng)也只對(duì)用戶提供信息査詢功能,并不對(duì)用戶開放對(duì)數(shù)據(jù)的編輯權(quán)限。對(duì)于任何用戶,只要瀏覽本系統(tǒng)的首頁(yè),就可以根據(jù)自己的需求進(jìn)行查詢。數(shù)據(jù)的修改、刪除、及時(shí)更新工作只能由管理人員實(shí)現(xiàn)并對(duì)系統(tǒng)進(jìn)行定期的維護(hù),保證其運(yùn)行的穩(wěn)定性。2?2主要功能本系統(tǒng)從用戶的需求出發(fā),可實(shí)現(xiàn)以下功能:1、 線路具體情況查詢:輸入線路名稱就可得到該線路的途經(jīng)站點(diǎn),發(fā)車和末班車時(shí)間,票價(jià)等相關(guān)信息。2、 經(jīng)過此站點(diǎn)的所有路線査詢:輸入站點(diǎn)名稱即可得出經(jīng)過該站點(diǎn)的所有線路名稱。3、 站點(diǎn)間的點(diǎn)到點(diǎn)路線查詢:輸入出發(fā)站點(diǎn)和目的站點(diǎn)即可輸出可選擇的線路,包括中間站的轉(zhuǎn)乘。2.3數(shù)據(jù)流圖選擇查詢類型起始點(diǎn)目的點(diǎn)4按起始、目的 乘車方案——站點(diǎn)查詢選擇查詢類型起始點(diǎn)目的點(diǎn)4按起始、目的 乘車方案——站點(diǎn)查詢 2.4數(shù)據(jù)字典1、數(shù)據(jù)項(xiàng)名稱數(shù)據(jù)類型長(zhǎng)度字段描述namevarchar5公交車的名稱start_timetime8公交車每天的最早發(fā)車時(shí)間end_timetime8公交車每天的收班時(shí)間buslength1int2公交線路去程的站點(diǎn)數(shù)buslength2int2公交線路回程的站點(diǎn)數(shù)ptpricefloat3普通車的票價(jià)gdpricefloat3高等級(jí)車的票價(jià)dispriceptfloat3普通車刷卡后的價(jià)格dispricegdfloat3高等級(jí)車刷卡后的價(jià)格companyIDint1公司編號(hào)companynamevarchar30公司名稱stationidint3站點(diǎn)的編號(hào)stationnamevarchar30站點(diǎn)的名稱orderidint2站點(diǎn)在一條線路中的位置typeIDint2線路類型編號(hào),共12類typenamevarchar5線路類型名directionchar4公交行駛方向,“去程”或“回程”linevarchar500公交行駛途徑的站點(diǎn)2、數(shù)據(jù)流名稱說明數(shù)據(jù)流來源數(shù)據(jù)流去向用戶査詢公交線路記錄信息記錄公交車線路査詢信息線路+站點(diǎn)査詢結(jié)果輸出3、處理過程名稱簡(jiǎn)述輸入的數(shù)據(jù)流處理輸出的數(shù)據(jù)流線路査詢根據(jù)公交線路査詢?cè)摼€路上的所有站點(diǎn)公交車編號(hào)根據(jù)編號(hào)査詢査詢出該線路上的所有公交車站點(diǎn)站點(diǎn)査詢根據(jù)站點(diǎn)査詢出經(jīng)過該站點(diǎn)的所有公交車編號(hào)站點(diǎn)名稱根據(jù)站點(diǎn)査詢公交車的編號(hào)路過該站點(diǎn)的所有公交車編號(hào)站站査詢根據(jù)兩個(gè)站點(diǎn)査詢出所有線路兩個(gè)不同的站點(diǎn)根據(jù)站點(diǎn)査詢出所有線路輸出査詢出的線路三、數(shù)據(jù)庫(kù)概念結(jié)構(gòu)設(shè)計(jì)根據(jù)需求分析,可知本系統(tǒng)有以下E-R圖:1、公交站點(diǎn)E-R圖 3、公交公司E-R圖2、公交車E-R圖f~ ‘編號(hào)_? 票價(jià)”■公交線路首班時(shí)間末班時(shí)間路線長(zhǎng)度所屬公線路類4、公交線路類型E-R圖類型名稱編號(hào)公交線路類型四、數(shù)據(jù)庫(kù)邏輯結(jié)構(gòu)設(shè)計(jì)4.1關(guān)系表設(shè)計(jì)根據(jù)ER模型,對(duì)本系統(tǒng)設(shè)計(jì)出5個(gè)關(guān)系表:1、公交車表bus(name,start_time,end_time,buslength1,buslength2,pt_price,dis_price,gd_price,companyid,typeid)列名數(shù)據(jù)類型NULL約束說明namevarchar(5)notnullprimarykey公交車的名稱starttimetimenotnull最早發(fā)車時(shí)間endtimetimenotnull收班時(shí)間buslength1intnotnull去程的站點(diǎn)數(shù)buslength2intnotnull回程的站點(diǎn)數(shù)ptpricefloatnull普通車的票價(jià)

dispriceptfloatnull普通車刷卡gdpricefloatnull高等級(jí)車的票價(jià)dispricegdfloatnull高等級(jí)車刷卡companyIDintnotnullforeignkeyreferencescompany(id),typeIDintnotnullForeignkeyreferencesbustype(id)2、公交站點(diǎn)station(id,name)列名數(shù)據(jù)類型NULL約束說明idintnotnullprimarykey站點(diǎn)的編號(hào)namevarchar(30)notnull站點(diǎn)的名稱3、線路與站點(diǎn)關(guān)聯(lián)表bus_station(hus_name,stat.ion_id,orderid)記錄公交線路經(jīng)過站點(diǎn)的信息,并且按順序記錄各站點(diǎn),以此記錄線路與站點(diǎn)的關(guān)聯(lián)信息。列名數(shù)據(jù)類型NULL約束說明busnamevarchar(5)notnullprimarykey參照bus(name)stationidintnotnull參照station(id)orderidintnotnull站點(diǎn)在一條線路中的位置4、公交公司表company(id,name)列名附『卜e TfrI數(shù)據(jù)類型NULL約束說明idintNotnullprimarykey公司編號(hào)nameVarchar(5)Notnull公司名稱5、公交線路類型表bustype(id,name)列名附『卜e TfrI數(shù)據(jù)類型NULL約束說明idintNotnullprimarykey線路類型編號(hào),共12類nameVarchar(lO)Notnull線路類型名6、公交線路表busline(bus_name,direction,line)此表主要是為了方便依據(jù)線路來査詢站點(diǎn)信息。列名數(shù)據(jù)類型NULL約束說明busnamevarchar(4)Notnullprimarykey公司編號(hào)directionvarchar(4)Notnull公交行駛方向,“去程”或“回程”linevarchar(500)Notnull公交行駛途徑的站點(diǎn)4.2數(shù)據(jù)表關(guān)系圖五、創(chuàng)建數(shù)據(jù)庫(kù)及其對(duì)象5.1建數(shù)據(jù)庫(kù)和表下面是創(chuàng)建數(shù)據(jù)庫(kù)和表的過程,數(shù)據(jù)通過手動(dòng)輸入。1、創(chuàng)建數(shù)據(jù)庫(kù)createdatabasebuson(name='bus_data1',filename='C:\DocumentsandSettings\Administrator\桌面\bus\bus_data1.mdf')logon(name=,bus_log',filename=,C:\DocumentsandSettings\Administrator\桌面\bus\bus_log.ldf,)2、創(chuàng)建表公交公司表createtablecompany(idintprimarykeynotnull,namevarchar(30)notnull)公交站點(diǎn)createtablestation(idintprimarykeynotnull,namevarchar(15)notnull)公交車表createtablebus(namevarchar(5)primarykeynotnull,start_timedatetimenotnull,end_timedatetimenotnull,buslengthintnotnull,pricefloatnotnull,companyIDintnotnull,typeIDintnotnull,foreignkey(companyID)referencescompany(id),foreignkey(typeID)referencesbus_type(id))公交線路類型表createtablebus_type(idintprimarykeynotnull,namevarchar(5)notnull)公交線路表createtablebusline(bus_namevarchar(5),directionchar(2)notnull,linevarchar(200)notnull,primarykey(bus_name,direction),foreignkey(bus_name)referencesbus(name))線路與站點(diǎn)關(guān)聯(lián)表createtablebus_station(bus_namevarchar(5,station_idint,orderidintnotnull,primarykey(bus_name,station_id),foreignkey(bus_name)referencesbus(name),foreignkey(station_id)referencesstation(id))5.2查詢實(shí)現(xiàn)這里只介紹線路査詢和站站査詢的存儲(chǔ)過程實(shí)現(xiàn),其它涉及到的功能通過SQLCommand或SqlDataAdapter實(shí)現(xiàn),在后面的應(yīng)用程序設(shè)計(jì)中實(shí)現(xiàn)。1、 線路具體情況査詢:ifexists(selectnamefromsysobjectswherename='busline_info')dropprocedurebusline_infogocreateprocedurebusline_info@inputvarchar(5),@outputvarchar700)outputasbeginselect@output=linefrombuslinewherebusline.bus_name=@inputendgo2、 站點(diǎn)間的點(diǎn)到點(diǎn)路線査詢:ifexists(selectnamefromsysobjectswherename='station_station')dropprocedurestation_stationgocreateprocedurestation_station@inputlvarchar30,@input2varchar(30,@output1varchar(5)output,@output2varchar(5)output,@output3varchar(5)output,@output4varchar(30)output,@output5varchar(30)outputasbegindeclare@stationlDlint,@stationID2int—換乘過程中的中間站點(diǎn)declare@id1int,@id2int—記錄起點(diǎn)和終點(diǎn)的IDselect@id1=idfromstationwherename=@inputlselect@id2=idfromstationwherename=@input2--查找直達(dá)線路select@output1=a.bus_namefrom(selectbus_namefrombus_stationwherestation_id=@id1)a,(selectbus_namefrombus_stationwherestation_id=@id2)bwherea.bus_name=b.bus_name—若不存在直達(dá)線路,則搜尋一次換乘路線ifnotexists(select*frombuswherename=@output1)begin--査找中間站點(diǎn)select@stationID1=c.station_idfrom--@input1能直達(dá)的站點(diǎn)集合c(selectdistinctstation_idfrombus_stationwherebus_namein(selectbus_namefrombus_stationwherestation_id=@id1))c,--@input2能直達(dá)的站點(diǎn)集合d(selectdistinctstation_idfrombus_stationwherebus_namein(selectbus_namefrombus_stationwherestation_id=@id2))dwherec.station_id=d.station_idselect@outputl=a.bus_namefrom(selectbus_namefrombus_stationwherestation_id=@id1)a,(selectbus_namefrombus_stationwherebus_station.station_id=@stationIDl)bwherea.bus_name=b.bus_nameselect@output2=a.bus_namefrom(selectbus_namefrombus_stationwherestation_id=@id2)a,(selectbus_namefrombus_stationwherebus_station.station_id=@stationID1)bwherea.bus_name=b.bus_nameend—若不存在直達(dá)和一次換乘線路,則搜尋二次換乘路線ifnotexists(select*frombuswherename=@output1)andnotexists(select*frombuswherename=@output2)begin—查找中間線路select@output2=a.bus_namefrom(selectdistinctbus_namefrombus_stationwherestation_idin(selectstation_idfrombus_stationwherebus_namein(selectbus_namefrombus_stationwherestation_id=@id1)))a,(selectdistinctbus_namefrombus_stationwherestation_idin(selectstation_idfrombus_stationwherebus_namein(selectbus_namefrombus_stationwherestation_id=@id2)))bwherea.bus_name=b.bus_name一査找起點(diǎn)到中間線路的公交車select@stationIDl=a.station_idfrom(selectdistinctstation_idfrombus_stationwherebus_namein(selectbus_namefrombus_stationwherestation_id=@idl))a,(selectstation_idfrombus_stationwherebus_name=@output2)bwherea.station_id=b.station_idselect@output1=c.bus_namefrom(selectbus_namefrombus_stationwherestation_id=@id1)c,(selectbus_namefrombus_stationwherestation_id=@stationID1)dwherec.bus_name=d.bus_name—査找中間線路到終點(diǎn)的公交車select@stationID2=a.station_idfrom(selectdistinctstation_idfrombus_stationwherebus_namein(selectbus_namefrombus_stationwherestation_id=@id2))a,(selectstation_idfrombus_stationwherebus_name=@output2)bwherea.station_id=b.station_idselect@output3=c.bus_namefrom(selectbus_namefrombus_stationwherestation_id=@id2)c,(selectbus_namefrombus_stationwherestation_id=@stationID2)dwherec.bus_name=d.bus_nameendselect@output4=namefromstationwhereid=@stationIDlselect@output5=namefromstationwhereid=@stationID2end五、軟件功能設(shè)計(jì)軟件共實(shí)現(xiàn)了3個(gè)大功能,即站點(diǎn)査詢、線路査詢、站站査詢,其完成情況如下::檢査用戶是否輸入了站點(diǎn)或線路信息,如果沒有錄入,則提示:請(qǐng)輸入站點(diǎn)!或請(qǐng)輸入線路名?。簷z査用戶是否輸入的站點(diǎn)或線路是否存在,如果不存在,則提示:此站點(diǎn)不存在!或此線路不存在!:如果信息都填寫正確,則根據(jù)選定的査詢條件進(jìn)行査找,査找的具體實(shí)現(xiàn)為:站點(diǎn)査詢:返回經(jīng)過此站點(diǎn)的所有線路,并提供一條線路經(jīng)過的所有站點(diǎn)。如果沒有結(jié)果,則提示:找不到此站點(diǎn)!線路査詢:返回此線路的類型、最早和最晚時(shí)間、票價(jià)、經(jīng)過站點(diǎn)等信息。站站査詢:返回從起點(diǎn)到終點(diǎn)的可行的一條線路,此線路可直達(dá),如果沒有直達(dá),則最多換乘兩次,并提示在哪里下車換乘,以及所有車輛的站點(diǎn)信息。六、界面設(shè)計(jì)蠱空圮1儘立鞭磔1:三占曲|七、應(yīng)用程序7.1站點(diǎn)査詢〃査詢經(jīng)過給定站點(diǎn)的公交線路protectedvoidstation_info(stringinput){SqlConnectionmyConnection=newSqlConnection(connectionString);myConnection.0pen();SqlCommandcmd=newSqlCommand("selectbus_station.bus_nameas公?交?線?路jQ名?,busline.directionas方口?向"°,lineas途a?徑?站?點(diǎn)1?frombus_station,station,buslinewherestati='"+input+"'anddbo.station.id=bus_station.station_idandbus_station.bus_name=busline.bus_name",myConnection);SqlDataAdapterda=newSqlDataAdapter();da.SelectCommand=cmd;System.Data.DataSetds=newSystem.Data.DataSet();da.Fill(ds);this.GridView1.DataSource=ds.Tables[O];GridViewl.DataBind();cmd=null;myConnection.Close();}

右占點(diǎn)召耘■ | JtIKRfi* | |3E沱|盤 琮趙抽自朋江陽(yáng)丸iKBMffiSBS-也直日尢Mt十JKffili-:i:RE曰丸道殲Jfc畐-撫陽(yáng)大JltTV.吋杭-四P曰丸垃和?.支堂-僅E曰丈:新ESNMT口-:ffll陽(yáng)大±lt半楫才寸-頌陽(yáng)Kilt三日酎并-Y5C.昏耳丸追■瞬fS峙冠切-:F又頤丸jM?t*廿舌臨-fff3t:±it3541JZJ--451陽(yáng)丈S址新去-汶巴白犬城工!34.:5工L-漢陽(yáng)女如t?hSJ-漢日日二上冊(cè)鍬鈾一汶用土血茄卩匸-汶酣尢覽新或1-汶審犬逍也鈾?-iz陽(yáng)犬詛越粽UJ_江陽(yáng)尢tttsi光-四陽(yáng)土ttt嚥?甸.L圾-注1陽(yáng)士1£鏤㈣丈甘TI=I-4対專丸itt-議回土住f-桑如大掛吉運(yùn)中怕Ei右)266由?J丄一如丿黑論于心、一演1尢母匸一機(jī)1*_丄二31t-漢R曰丈ilLJW+u_丄二?F匚1一四1日曰工_追昭佃廣埼一丫就E日丸dlt紅址一J31Fff十3tut*JbWLjj一fj?w^=at-±xW一汎陽(yáng)丸逍新技一版甫丸at?R?—&曰丸at瞇wt—:kb曰丸世冊(cè);可-shle曰夫atncwr:吊HL-泣頭尢進(jìn)新壬-汶頭尢逍二口4工廠-汶陽(yáng)丸辻=地港嶺-僅明尢遣怏活嶺按:?-漢咱尢iJt三im?僑-淑蔭迪尢道*抽*扌-:宣陽(yáng)丸迫盃瘵鉗-:味陽(yáng)丸jJT#.齊但-ffiPPzizUriTrttt+E-汶陽(yáng)尢詛埒工稼-江任目點(diǎn))苴王專鴻衣樂權(quán)-限陽(yáng)大:1宜+越輛-汶pm尢d図腳倔站丘日左沖7.2線路查詢//査詢給定線路的公交車所經(jīng)過站點(diǎn)protectedstringbusline_infol(stringinput){stringconnectionString=@"server=TXJMlFW3LlGYIC6;database=bus;IntegratedSecurity=true";SqlConnectionmyConnection=newSqlConnection(connectionString);myConnection.Open。;SqlCommandmyCommand=newSqlCommand("busline_info",myConnection);myCommand.CommandType=System.Data.CommandType.StoredProcedure;〃創(chuàng)建參數(shù)SqlParameterbus_name=newSqlParameter("@input",System.Data.SqlDbType.VarChar,5);bus_name.Direction=System.Data.ParameterDirection.Input;bus_name.Value=input;myCommand.Parameters.Add(bus_name);〃添加輸出參數(shù)SqlParameterResultl=newSqlParameter("@output",System.Data.SqlDbType.VarChar,700);Resultl.Direction=System.Data.ParameterDirection.Output;myCommand.Parameters.Add(Resultl);myCommand.ExecuteNonQueryO;stringstr=Resultl.Value.ToString();returnstr;}管理員登錄線昭名稱;|旺呂毎 r^~i2safe郊匡扌箜航:船:<?■撿:■?:■?昔遷車珈1.星*LF商羋蛭豐呂計(jì).左卡住立因蘇司丸播宕三=厶-豐自二?if:芻三-冬尋三掃玄「忑-咗匸土宗珞禹專-峪匚-=^^.-土二土審杏合亮吉--十二大審目毘亦i--乎CM圭工、7.3站一站查詢〃査詢給定起點(diǎn)和終點(diǎn)的公交車線路protectedvoidstation_station(stringinputl,stringinput2){stringconnectionString=@"server=TXJM1FW3L1GYIC6;database=bus;IntegratedSecurity=true";SqlConnectionmyConnection=newSqlConnection(connectionString);myConnection.Open();〃利用SQL中已有的存儲(chǔ)過程實(shí)現(xiàn)站站査詢SqlCommandmyCommand=newSqlCommand("station_station",myConnection);myCommand.CommandType=System.Data.CommandType.StoredProcedure;〃創(chuàng)建參數(shù)SqlParameterstation_namel=newSqlParameter("@inputl",System.Data.SqlDbType.VarChar,30);station_name1.Direction=System.Data.ParameterDirection.Input;station_name1.Value=inputl;myCommand.Parameters.Add(station_name1);SqlParameterstation_name2=newSqlParameter("@input2",System.Data.SqlDbType.VarChar,30);station_name2.Direction=System.Data.ParameterDirection.Input;station_name2.Value=input2;myCommand.Parameters.Add(station_name2);//添加輸出參數(shù)SqlParameterResultl=newSqlParameter("@outputl",System.Data.SqlDbType.VarChar,5);Resultl.Direction=System.Data.ParameterDirection.Output;myCommand.Parameters.Add(Resultl);SqlParameterResult2=newSqlParameter("@output2",System.Data.SqlDbType.VarChar,5);Result2.Direction=System.Data.ParameterDirection.Output;myCommand.Parameters.Add(Result2);SqlParameterResult3=newSqlParameter("@output3",System.Data.SqlDbType.VarChar,5);Result3.Direction=System.Data.ParameterDirection.Output;myCommand.Parameters.Add(Result3);SqlParameterResult4=newSqlParameter("@output4",System.Data.SqlDbType.VarChar,30);Result4.Direction=System.Data.ParameterDirection.Output;myCommand.Parameters.Add(Result4);SqlParameterResult5=newSqlParameter("@output5",System.Data.SqlDbType.VarChar,30);Result5.Direction=System.Data.ParameterDirection.Output;myCommand.Parameters.Add(Result5);myCommand.ExecuteNonQueryO;stringstr1,str2,str3,str4,str5;str1=Resultl.Value.ToString();str2=Result2.Value.ToString();str3=Result3.Value.ToString();str4=Result4.Value.ToString();str5=Result5.Value.ToString();myConnection.CloseO;〃界面提示信息if(stri==""&&str2==""&&str3==""){lab4_text.Text="沒有找到合適的路線";}elseif(stri!=""&&str2!=""&&str3==""){lab4_text.Text="您可以先乘坐"+stri+"在"+str4+"下車,"+"再乘坐"+str2;lab5_name.Text=stri+"公交線路:";lab5_line.Text=busline_infoi(stri);lab6_name.Text=str2+"公交線路:";lab6_line.Text=busline_infoi(str2);}elseif(stri!=""&&str2==""&&str3==""){lab4_text.Text="您可以直接乘坐"+stri;lab5_name.Text=stri+"公交線路:";lab5_line.Text=busline_infoi(stri);}elseif(stri!=""&&str2!=""&&str3!="")

{lab4_text.Text="您可以先乘坐"+str1+"在"+str4+"下車,"+"再乘坐"+str2+"在"+str5+"下車,"+"最后再轉(zhuǎn)乘"+str3+"即可";lab5_name.Text=str1+"公交線路:";lab5_line.Text=busline_info1(stri);lab6_name.Text=str2+"公交線路:";lab6_line.Text=busline_info1(str2);lab7_name.Text=str3+"公交線路:";lab7_line.Text=busline_info1(str3);}}官理員登錄再垂坐更贏率在溟陽(yáng)尢唾爐隣圖126SJh藝宏輪跆;嚴(yán)勻天空盤信4匸-底旬丸世-蓋疋鼻幻擊-E:-呂泣天半沽主帝-疑迂犬車??土和-衣工古M2*總念:芻-冬衛(wèi)天學(xué)倍生牛-洗匯工左臺(tái)能S:幷-莊迂立左C92S:25655藝宏錨路;坯可七疋客込=二…姿旬九崛-忙巧■立:S:-說0K:詛靶転去疋匚-氓閉土注竊旦一浜-漢過H洙-氓問土上!刑五」-二円七謔心=3-漢歸七注F右-滾0大進(jìn);ra-沒e去-■sot土at曇同-?決田主潼3対呂工廠-■sotj^h雖天-s^jtias&LiJcr-況陽(yáng)立淤?zèng)Q注餐-淫舊云道宗亡鷲親煬一炸大■三Eft僑-決霞K:進(jìn)站程村-濕甲亢ay雖-汎扇天進(jìn)①s?Jt-次國(guó)衣ft市腫bl-汛庫(kù)k過好云宇-運(yùn)回挖這:王吊曲星:麗相-迅帀七苣一呂畦-迄■陽(yáng)天進(jìn)朗如圧(託結(jié)』右Z5躋扯?交恣略::7TJ■題誌也忙氏二m扮二:?爲(wèi)序工丄困-床堀siji址弁廿區(qū)-■wnr常神走小學(xué)一w?Wi=-t--寧鹿謬-車期Mt跡味有*心-裔強(qiáng)大址三e建-莽霽丈:■堂蘭屯眄-示攔交五尬回弋-7iraxii.<tE*o-龍歸大迪升自融屮匡-龍日龍址丹宜潼-毘陽(yáng)丸壇用畫明殊-龍;陽(yáng)擔(dān)lit商昨-龍■掃丸城血專衣密-tes丸送苗星L-龍境三離;丐-罠疋丈細(xì):三夢(mèng)兩寥.m厲-3kraXji-4-■>!-罠F3K工幣BKS-空同大城七星啟-N陽(yáng)兀坦更里為-鼠勺丸爼丟里新目-KEI玄道說陽(yáng)火卑N-疋用丸窪曲事時(shí)-鷗硒丸詭吉#臺(tái)-武舲4東牙極-啊歹此癢-“甲1?航空罵一n坪時(shí)盤修詰-勺薛菇tr揭呵-h*■皓相溜-垢^墻戲可旦s/s-莎目莊冥去卄「區(qū)八、實(shí)驗(yàn)數(shù)據(jù)示例l、bus表(存放公交車次有關(guān)信息數(shù)據(jù))2、bus_type2、bus_type表(存放公交車類型數(shù)據(jù))3、bus_type表(存放公交公司數(shù)據(jù))id|name1>1V2公處_處司3呂交一注司斗吳寺叫定司5公竺土L公司67孔孤江豆》立…3迪恒電司10NULfM.JL£nane£ldf1_tiiesdjrie

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論