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

正文內(nèi)容

基于android的航空訂票系統(tǒng)設計與實現(xiàn)畢業(yè)設計論文-資料下載頁

2025-08-19 19:51本頁面

【導讀】而且隨著科技的進步,手機的發(fā)展也越來越快,功能更全更好的手機也隨之面。世,所以基于安卓系統(tǒng)的應用會逐漸增多,以致形成主流。在這種情況下,為了適應這。種日益增長的需求,正是開發(fā)本系統(tǒng)的目的。因為現(xiàn)在的人出行,并不僅僅是火車、客。車,隨著經(jīng)濟的發(fā)展,人們生活水平提高的十分迅速,所以飛機已逐漸成為現(xiàn)在的主流。它比火車、客車擁有更加快捷的時效性,減少了旅途的勞累。之而來,需要本人到代售點去買,十分不方便。為此,本畢業(yè)設計在進行充分的需求調(diào)。研和分析之后,設計并實現(xiàn)基于Android的手機航空訂票系統(tǒng)。本系統(tǒng)分為七個大的功能模塊:預定機票、訂單管理、網(wǎng)點查詢、航線查詢、個人管理、訂閱消息和軟件幫助。市的營業(yè)網(wǎng)點、航線、航班的機型等信息.。對本論文(設計)的研究做出重要貢獻的個人和集體,均已在文中作了明確說明并表示謝意。論文正文字數(shù)不少于萬字。

  

【正文】 / 忘記密碼按鈕 if (().toString() .equals(().toString())) { // 獲得用戶名稱 String username = ().toString()。 // 獲得密碼 String pwd = ().toString()。 String real_name = ().toString()。 String code = ().toString()。 // 獲得登錄結(jié)果 String result = regsisterServer(username, pwd, real_name, code)。 if (result != null amp。amp。 (success)) { Intent intent = new Intent(, )。 startActivity(intent)。 } else { // saveUserMsg(result)。 new () setIcon( 22 getResources().getDrawable( )) setTitle(注冊錯誤 ) setMessage(用戶名帳號或者密碼不能注冊, \n請確認后再注 冊! ) . } } else { new () setIcon( getResources().getDrawable( )) setTitle(注冊錯誤 ).setMessage(兩次密碼應相同, \n請輸入后再注 .show()。 } } public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu。 this adds items to the action bar if it is present. return true。 } // 根據(jù)用戶名稱密碼查詢 private String regsisterServer(String account, String password, String real_name, String code) { // 查詢參數(shù) String queryString = account= + account + amp。password= + password + amp。real_name= + real_name + amp。code= + code。 // url String url = + servlet/RegisterServlet? + queryString。 // 查詢返回結(jié)果 return (url)。 } } 修改密碼 注冊用戶修改本帳號的登錄密碼。若用戶沒有權限則彈出您不是注冊用戶的錯誤提示。若用戶登錄失效,則彈出已超時,請重新登錄。 android 開發(fā)中,用戶的密碼肯定是放在服務器端的數(shù)據(jù)庫中的,這一點毫無疑問。若要實現(xiàn)用戶密碼的修改,首先服務器端必須要有用戶修改密碼的端口。如果服務器端都不允許 你修改密碼,那么這一功能根本不可能實現(xiàn)。 若是服務器端允許用戶修改密碼,那么原理就是根據(jù)用戶注冊時返回的 userid(通常用 sharedpreference 用戶手機本地文件中 )來查詢服務器端的數(shù)據(jù)庫中該用戶的賬 23 號密碼數(shù)據(jù),然后進行更新。用戶發(fā)出修改密碼這樣的請求后,服務器根據(jù)用戶提交的信息對數(shù)據(jù)庫更新。手機端只是一個請求,更多的操作要放在服務器端。 寫好用戶修改密碼的頁面之后,在該 Activity 中用 map 或者 namevalue 裝載修改的密碼和其他必須的參數(shù),然后在提交按鈕的的監(jiān)聽事件里發(fā)送 請求至服務器(當然發(fā)送請求獲取數(shù)據(jù)這些操作別放進主線程,寫個異步任務類。),服務器讀取用戶請求,更新數(shù)據(jù)庫。至于密碼類型長度這些要求的判斷最好直接在裝載數(shù)據(jù)前就判斷,減輕服務器壓力 。 主界面功能 主界面顯示七個功能,分別為預定機票、訂單管理、網(wǎng)點查詢、航線查詢、個人管理、訂閱信息和軟件管理,如圖 63 所示。 圖 63 主界面 程序主界面功能實現(xiàn)主要代碼如下: public class MainActivity extends Activity implements OnItemClickListener{ private static final String TAG = MainActivity。 private GridView gv_main。 private MainUIAdapter adapter。 Intent lostIntent。 @Override protected void onCreate(Bundle savedInstanceState) { 24 (savedInstanceState)。 setContentView()。 (機票預訂系統(tǒng) )。 gv_main = (GridView) findViewById()。 adapter = new MainUIAdapter(this)。 (adapter)。 (this)。 } public void onItemClick(AdapterView? parent, View view, int position,long id) { // TODO Autogenerated method stub (TAG, click position + position)。 switch (position) { /** * 預訂機票 */ case 0: (TAG, the security assistant can working)。 //active the lostprotectedActivity lostIntent = new Intent(, )。 startActivity(lostIntent)。 break。 case 1: (TAG, the security assistant can working)。 //active the lostprotectedActivity lostIntent = new Intent(, )。 startActivity(lostIntent)。 break。 case 2: (TAG, the security assistant can working)。 //active the lostprotectedActivity lostIntent = new Intent(, )。 startActivity(lostIntent)。 break。 case 3: (TAG, the security assistant can working)。 //active the lostprotectedActivity lostIntent = new Intent(, )。 startActivity(lostIntent)。 break。 case 4: break。 case 5: 25 (TAG, the security assistant can working)。 //active the lostprotectedActivity lostIntent = new Intent(, )。 startActivity(lostIntent)。 break。 case 6: break。 } } 預訂機票 功能 航班查詢功能 航班查詢可以查找到處罰機場和到達機場的地址,并顯示時間,如圖 64 所示 。 圖 64 查詢航班 航班查詢功能實現(xiàn)主要代碼如下: public class FlightSearchActivity extends Activity implements { private Spinner from_airport_spinner。 private Spinner to_airport_spinner。 private EditText start_date_edit。 private Button search_btn。 protected void onCreate(Bundle savedInstanceState) { 26 (savedInstanceState)。 (savedInstanceState)。 requestWindowFeature()。 (new () .detectDiskReads().detectDiskWrites().detectNetwork() .penaltyLog().build())。 (new () detectLeakedSqlLiteObjects().penaltyLog().penaltyDeath() build())。 setContentView()。 from_airport_spinner findViewById()。 to_airport_spinner findViewById()。 start_date_edit = (EditText) findViewById()。 //jicang_spinner = (Spinner) findViewById()。 search_btn = (Button) findViewById()。 (this)。 /*film_price_text = (TextView) findViewById()。 film_hall_num_text = (TextView) findViewById()。 spinner = (Spinner) findViewById()。 ShowPlayInfo()。*/ ShowStartEndAirport()。 //ShowJiCangSpinner()。 } /* public void ShowJiCangSpinner(){ jicang_str = new String[3]。 jicang_str[0] = 頭等艙 。 jicang_str[1] = 公務艙 。 jicang_str[2] = 經(jīng)濟艙 。 jicangadapter = new ArrayAdapterString(this, , jicang_str)。 // 設置下拉列表的風格 ( )。 // 將 adapter 添加到 spinner 中 (jicangadapter)。 ((BaseAdapter) ()).notifyDataSetChanged()。 // 添加事件 Spinner 事件監(jiān)聽 (newSpinnerJiCangSelectedListener())。 // 設置默認值 ()。 }*/ 27 預訂機票功能 用戶登錄、查詢航班并選定后,輸入乘客的信息,并生成訂單。在查詢航班結(jié)果頁 面上選擇某一個航班,進入選擇乘機人頁面,選擇一個或多個已保存的乘機人,點擊預 定機票按鈕。系統(tǒng)生成訂單信息,并進入訂單詳情頁面,單擊確認預定按鈕,將訂單提 交。若預定成功,系統(tǒng)自動跳轉(zhuǎn)到支付入口頁面。若乘客不在保存的乘機人列表中 ,則 點擊添加其他乘機人按鈕,進入添加乘機人用例。若航班座位已滿,則彈出無空座的錯 誤提示信息。若用戶沒有權限則彈出您不是注冊用戶的錯誤提示。若用戶登錄失效,則 彈出已超時,請重新登錄。 訂單管理功能 當用戶在預定機票結(jié)束后,能隨后進入主頁面,選擇訂單管理進行操作。點擊訂單管 理圖標后,頁面顯示所有所有用戶的歷史預訂的記錄。如:訂單號、價格、預定時間、 以及訂單狀態(tài)(是否支付或刪除)。 如圖 65所示 。 圖 65 訂單管理 點擊一個訂單條目,頁面通過 Intent 將訂單號傳給下一個 頁面,下一頁面調(diào)用ClientServiceImplForNet 的 findOrder()方法在數(shù)據(jù)庫中查找訂單, 然后列出此項訂單的 詳細情況,如:機票款、燃油稅、機場建設費、保險用費、合計、航班號、起飛時間、起飛機 場、到達機場、日期、到達時間、乘客姓名、乘客類型、證件類型、證件號碼等頁面如 66圖所示
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1