【正文】
對于客戶端我們的訂單效果圖如下所示: 25 圖 46 客戶端訂單頁面 游戲模塊 在游戲模塊我們實現(xiàn)的主要功能是猜菜名,我們從數(shù)據(jù)庫菜品表中隨機的取出 3 個菜單信息,然后給出圖片和一部分包含菜名的隨機字,我們從隨機字中選出正確的菜名,然后進入下一 關(guān),當我們連續(xù)答對十道題時,就能獲得系統(tǒng)給出的優(yōu)惠券獎勵。 (DishImage:\).Append(yhc_url+()).Append(\,)。 } public String getJson(String DishCategory , int i){ List Dish list。 }finally{ 19 close()。 while(()) 18 { dish = new Dish()。 (a href=Manage/重新登錄 /a)。 PrintWriter out = ()。對于 14 Tomcat,他是一個免費的軟件,我們可以通過其來發(fā)布自己的項目。 ((7))。 (1, pagenow)。 password = (password)。 數(shù)據(jù)庫連接的實現(xiàn) 對于數(shù)據(jù)庫的連接,本系統(tǒng)用到的是 Java 中的 JDBC 技術(shù), JDBC 為開發(fā)者提供很多核心的類庫,并規(guī)范了連接數(shù)庫的要求,包括對數(shù)據(jù)庫的連接、對數(shù)據(jù)庫的查詢和各種操作、從數(shù)據(jù)庫中獲取數(shù)據(jù)。 軟件環(huán)境 服務端: MySQL 數(shù)據(jù)庫、 MyEclipse 、 Android ADT Pad 客戶端: 及以上,如果版本太低,那么一些在 以后新增的一些功能,因為 App 中用到,但是老版本不能識別,造成程序運行不了,所以盡量選用新版本的平板。 Servlet 有它自己的生命周期,包括服務器對一個 Servlet的首次加載、對 Servlet 的初始化、初始化后對客戶端請求的響應、最后的銷毀。到目前為止, Android 已經(jīng)超過 ios 在市場的占有量,國內(nèi)大量的手機廠商開始生產(chǎn) Android 操作系統(tǒng)的手機, Android 已經(jīng)成為世界上最主流的手機操作系統(tǒng)。 關(guān)鍵詞 Android, MySQL, Jsp, Java 1 ABSTRACT Electronic ordering system the realization of this project has changed the traditional service and menu menu mode,the novel electronic terminal order system,the new method makes the restaurant more grades and characteristics, this is very helpful for the same industry petition. This topic uses c/s development mode,divided into some operation server and Android the server side Jsp dynamic Webpage technology mainly uses,this has realized the backstage restaurant management side of the menu informationand customer order client uses the Android technology to realize the customer on the foodsearch, classification and view view, of their customers the choice of orders,customers in the restaurant after the order is confirmed can be submitted to a makes the restaurant side to see and notice the kitchen to make dishes. Keywords Android, MySQL, Jsp, Java 1 目 錄 1. 緒論 ......................................................... 1 項目背景及意義 .......................................... 1 Android 系統(tǒng)概述 ........................................ 1 2. 系統(tǒng)理論和技術(shù)路線 ........................................... 3 Android 四大組件 ........................................ 3 c/s 體系 ................................................ 3 Jsp 和 Servlet........................................... 4 系統(tǒng)主要路線 ............................................ 4 運行環(huán)境要求 ............................................ 5 硬件環(huán)境 .......................................... 5 軟件環(huán)境 .......................................... 5 3. 系 統(tǒng)需求分析 ................................................. 5 各模塊關(guān)系圖 ............................................ 5 數(shù)據(jù)庫設(shè)計 .............................................. 6 數(shù)據(jù)庫列表 ........................................ 6 數(shù)據(jù)庫連接的實現(xiàn) .................................. 7 功能需求描述 ........................................... 11 主要開 發(fā)工具 ........................................... 13 MyEclipse........................................ 13 ADT.............................................. 14 4. 軟件系統(tǒng)設(shè)計 ................................................ 15 后臺功能模 塊 ........................................... 15 后臺登陸模塊 ..................................... 15 后臺菜品模塊 ..................................... 17 后臺訂單模塊 ..................................... 19 客戶端功能模塊 ......................................... 20 首頁面模塊 ....................................... 20 主功能模塊 ....................................... 21 訂單模塊 ......................................... 23 游戲模塊 ......................................... 25 5. 結(jié)論 ........................................................ 26 謝詞 ........................................................... 27 1 參考文獻 ....................................................... 28 1 項目背景及意義 由于互聯(lián)網(wǎng)的高速發(fā)展,而電子技術(shù)由于在外國比如說美國最先得到了發(fā)展并被用于生活的各個領(lǐng)域,而 餐飲作為我們生活中的一個重要環(huán)節(jié),它的發(fā)展也是非常迅猛的,以美國舉例,從 1999 年的餐飲業(yè)的營業(yè)額 3500 多億美元到 20xx年的 6000 多億,由于人們對餐飲業(yè)的關(guān)注,所以電子技術(shù)對餐飲的影響非常大,所以像手機點菜系統(tǒng)的發(fā)展在美國已經(jīng)逐漸得得到了普及。 Service 在地位上和 Activity 是并列的,但是它和 Activity 不同處在于Service 對于用戶是不可見的,所以它不能和用戶進行交互,因此 Service 有自己的生命周期,并不依賴于一個 Activity,他的主要功能是為其他組件提供后臺服務和監(jiān)控其他組件的運行狀態(tài)。 5 對于服務器端的設(shè)計,主要用 HTML、 CSS 來實現(xiàn),其中對于數(shù)據(jù)庫的請求和獲取數(shù)據(jù)庫的信息并顯示,主要會用到 Jsp 語言來實現(xiàn),如用 Jsp 中 JDBC技術(shù)來實現(xiàn)和數(shù)據(jù)庫的連接,用 Jsp 中一些內(nèi)置對象 request、 response 來處理HTTP 請求中各種參數(shù)的處理 。其中包括主鍵用戶 ID( ID)、此用戶所提得意見( Information)。 String username = null。 yhc_url = (YHC_url)。 11 while(()) { dish = new Dish()。