freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

公交線路查詢系統(tǒng)的開發(fā)(已改無錯(cuò)字)

2023-06-27 23:44:54 本頁面
  

【正文】 頭 茶灣墩頭 皮靴工廠 半升洞27鴨蛋山 環(huán)城南路 海濱橋 東山隧道 329 國道 沈家門食品廠路濱港路 東河市場(chǎng) 臺(tái)貿(mào)商城31東門站 昌國橋 定海一中 建設(shè)銀行 第三醫(yī)院 露亭賓館 環(huán)南停車場(chǎng)海軍司令部鴨蛋山32虹橋 青嶺路 鹽倉山 茅嶺墩 凱靈中學(xué) 電焊機(jī)廠 邊檢站 西園飯店 職業(yè)技校33金湖塑機(jī) 工業(yè) B 區(qū) 東山遂道東口東山遂道西口機(jī)場(chǎng)路 海濱橋 民間碼頭 鉆石樓 四一三醫(yī)院34客運(yùn)中心 竹山站 邊檢站 西園飯店 西關(guān)新村 區(qū)府 南珍菜場(chǎng) 市建行 桔園37行政大樓 莊家廟 惠民橋 舟山電廠 十六門 甬東 甬慶 虹廟 建材市場(chǎng)12. 系統(tǒng)詳細(xì)設(shè)計(jì) 系統(tǒng)流程圖公交線路查詢系統(tǒng)流程圖如下: 主要功能流程圖設(shè)計(jì) 下面是用盒圖設(shè)計(jì)的換乘查詢模塊的流程圖。因?yàn)楣痪€路查詢系統(tǒng)中換乘查詢模塊,站點(diǎn)查詢模塊和線路查詢模塊的設(shè)計(jì)方法相似,所以就省略了其它模塊的流程圖。輸入查詢內(nèi)容F 是否空 T退出 查詢輸出結(jié)果進(jìn)入查詢界面NNYY開始選擇查詢方式是否選擇?輸入要查詢的內(nèi)容存在?顯示內(nèi)容134. 公交線路查詢系統(tǒng)的編碼和測(cè)試 系統(tǒng)編碼 公用模塊為了能更有效地進(jìn)行數(shù)據(jù)庫操作,提高代碼的易維護(hù)性和可讀性,添加了一個(gè)公共模塊來存儲(chǔ)這些函數(shù)。操作代碼如下。package bussearch。import .*。import 。import 。import 。import 。import 。import 。import 。import .*。public class Bus extends JFrame implements ActionListener{JButton b[]=new JButton[4]。 JTextField text1。 Bus(String s) {super(s)。 FlowLayout flow=new FlowLayout()。 setLayout(flow)。 text1=new JTextField(公交線路查詢系統(tǒng) )。 (20,20,200,200)。 (false)。 ()。 add(text1)。 b[1]=new JButton(公交換乘查詢 )。 b[1].setBounds(20,40,100,20)。 b[2]=new JButton(公交站點(diǎn)查詢 )。 b[2].setBounds(20,60,100,20)。 b[3]=new JButton(公交線路查詢 )。 b[3].setBounds(20,80,100,20)。14 add(b[1])。 add(b[2])。 add(b[3])。b[1].addActionListener(this)。b[2].addActionListener(this)。b[3].addActionListener(this)。setBounds(550,325,200,200)。 setVisible(true)。 validate()。 setDefaultCloseOperation()。 } public void actionPerformed(ActionEvent e){ if(()==b[1]){ ButtonOne win1=new ButtonOne(換乘查詢窗口)。 } if(()==b[2]){ ButtonTwo win2=new ButtonTwo(站點(diǎn)查詢窗口)。 } if(()==b[3]){ ButtonThree win3=new ButtonThree(線路查詢窗口)。 } } public static void main(String[] args) throws ClassNotFoundException, SQLException {Bus win=new Bus(公交線路查詢)。}} 換乘查詢模塊 系統(tǒng)的換乘模塊主要實(shí)現(xiàn)如下:操作界面如圖 41 所示,代碼如下。15圖 41 換乘查詢模塊操作界面package bussearch。import .*。import .*。import 。import 。import 。import 。import 。import 。import 。import .*。class ButtonOne extends JFrame implements ActionListener{private static String jieguo =。int jieguo1=0,jieguo2=0。Box baseBox,boxV1,boxV2。JTextField text1,text2。JButton seach。ButtonOne(String s){16super(s)。text1=new JTextField(16)。text2=new JTextField(16)。boxV1=()。(new JLabel(起點(diǎn)))。((8))。(text1)。boxV2=()。 (new JLabel(終點(diǎn)))。((8))。(text2)。baseBox=()。(boxV1)。((10))。(boxV2)。seach=new JButton(查詢)。(seach)。(this)。setLayout(new FlowLayout())。add(baseBox)。setBounds(420,425,400,400)。 setVisible(true)。 validate()。 setDefaultCloseOperation()。}public void actionPerformed(ActionEvent f){if (()==seach){String qidian=null,zhongdian=null。qidian=()。zhongdian=()。Connection con = null。Statement st = null。ResultSet rs = null。if(qidian==null || ().equals()){Component frame = null。(frame,起點(diǎn)不能為空!,Inane warning,)。 (0)。 }if(zhongdian==null || ().equals()){Component frame = null。(frame,終點(diǎn)不能為空 !,Inane warning,)。(0)。 }17try {()。con = (jdbc:odbc:driver={Microsoft Access Driver (*.mdb)}。DBQ=)。PreparedStatement ps=(select * from BUS where first =? or second =? or thrid =? or fouth =? or fifth =? or sixth =? or seventh =? or eighth =? or end =?)。 (1,qidian)。 (2,qidian)。 (3,qidian)。 (4,qidian)。 (5,qidian)。 (6,qidian)。 (7,qidian)。 (8,qidian)。 (9,qidian)。 rs=()。while (()) {jieguo1=(line)。(jieguo1+ggh)。}//PreparedStatement ps=(select * from BUS where first =? or second =? or thrid =? or fouth =? or fifth =? or sixth =? or seventh =? or eighth =? or end =?)。 (1,zhongdian)。 (2,zhongdian)。 (3,zhongdian)。 (4,zhongdian)。 (5,zhongdian)。 (6,zhongdian)。 (7,zhongdian)。 (8,zhongdian)。 (9,zhongdian)。 rs=()。while (()) {jieguo2=(line)。(jieguo2)。}if (jieguo1 == jieguo2){jieguo=jieguo1+路車經(jīng)過兩個(gè)車站。}else{jieguo=沒有兩個(gè)站點(diǎn)之間的公交!。}} catch (ClassNotFoundException e) {18()。} catch (Exception e) {} finally {try {if(rs != null) {()。rs = null。}if(st != null) {()。st = null。}if(con != null) {()。con = null。}} catch (SQLException e) {()。}}seachxl win4=new seachxl(結(jié)果,jieguo)。}} 站點(diǎn)查詢模塊站點(diǎn)查詢模塊主要要實(shí)現(xiàn)如下:界面如下圖,接著是代碼:package bussearch。import .*。import .*。19import 。import 。import 。import 。import 。import 。import .*。class ButtonTwo extends JFrame implements ActionListener{Box baseBox,boxV1。JButton seach。String jieguo =null。JTextField text1。ButtonTwo(String s){super(s)。text1=new JTextField(16)。boxV1=()。(new JLabel(站點(diǎn)))。((8))。(text1)。baseBox=()。(boxV1)。((10))。seach=new JButton(查詢)。(this)。(seach)。setLayout(new FlowLayout())。add(baseBox)。setBounds(120,125,200,200)。 setVisible(true)。 validate()。 setDefaultCloseOperation()。}public void actionPerformed(ActionEvent e){if (()==seach){String qidian。qidian=()。Connection con = null。Statement st = null。ResultSet rs = null。if(qidian==null || ().equals(
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1