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

正文內(nèi)容

基于安卓android平臺的圖書管理系統(tǒng)手機客戶端開發(fā)-資料下載頁

2024-12-07 09:22本頁面

【導(dǎo)讀】傳統(tǒng)WEB應(yīng)用只能在PC機上使用,不能做到隨時隨地的使用,為了解決這樣的不足,基于Android平臺的圖書館管理系統(tǒng)客戶端就應(yīng)運而生。本設(shè)計闡述了在Android平臺下圖。本系統(tǒng)采用C/S結(jié)構(gòu),MVC軟件開發(fā)。擬器上測試通過。系統(tǒng)實現(xiàn)了用戶注冊、登錄、查詢圖書以及學(xué)生用戶管理和圖書管理等功。“操作簡單,功能實用”這是本軟件設(shè)計的核心理念,本系統(tǒng)力求創(chuàng)造最好的用戶體驗。

  

【正文】 Exception e) { // TODO Autogenerated catch block ()。 } 客戶端的設(shè)計 設(shè)計 ANDROID UI 界面 在 Eclipse安裝好了 ADT插件并且導(dǎo)入了 AndroidSDK后,創(chuàng)建一個 android project,此工程是作為圖書館管理系統(tǒng)的客戶端,是為廣大用戶下載使用的,所以,該 UI界面的主要要求是要操作性強和交互簡單。客戶端的注意事項為:一個是數(shù)據(jù)庫的設(shè)計,一個是各個功能的布局。 Android project 名稱: Library 工程結(jié)構(gòu)如圖所示: 理工大學(xué)畢業(yè)設(shè)計 23 圖 客戶端系統(tǒng)結(jié)構(gòu) 中包含的是各種工具類和封裝的方法; 中則是客戶端中實現(xiàn)各個功能的類,每一個界面的類都在此包中,詳細情況如下: 是系統(tǒng)主界面,用于選擇登錄或者注冊; 是注冊界面; 是登錄界面; 是學(xué)生用戶查詢書籍信息界面; 是管理員管理界面; 是管理員管理書籍界面,包括書籍的添加 、查詢、刪除; 是管理學(xué)生用戶界面; 是管理員查詢特定學(xué)生界面; 是管理員查詢所有學(xué)生界面。 具體功能模塊 注冊界面 對于一個系統(tǒng)的開始,首先必須的是用戶的注冊界面,注冊模塊是為了登錄系統(tǒng)所進行理工大學(xué)畢業(yè)設(shè)計 24 的獲取通行證的步驟,注冊所有的信息都將提交給數(shù)據(jù)庫進行存儲,注冊的信息將作為用戶在本系統(tǒng)進行一切活動的標識。注冊功能對應(yīng)的程序名為 包下的。注冊界面如下: 圖 注冊界面 在輸入框輸入注冊信息,點擊確定便可以注冊成功,主要代碼如下: (newOnItemSelectedListener() { @Override public void onItemSelected(AdapterView? arg0, View arg1, int index, long id) { // TODO Autogenerated method stub college=colleges[index]。 } @Override public void onNothingSelected(AdapterView? arg0) { } })。 (new () { @Override public void onCheckedChanged(RadioGroup group, int checkedId) { switch(checkedId){ case : gender=male。 理工大學(xué)畢業(yè)設(shè)計 25 break。 case : gender=female。 break。 } } })。 public static String makeString(String str1,String str2,String str3,String str4,String str5,String str6,String servlet){ String str=null。 //封裝信息 ListBasicNameValuePairlist=new ArrayListBasicNameValuePair()。 (new BasicNameValuePair(username, ()))。 (new BasicNameValuePair(password, ()))。 (new BasicNameValuePair(indentityid,()))。 (new BasicNameValuePair(year, ()))。 (new BasicNameValuePair(gender,()))。 (new BasicNameValuePair(college,()))。 String url=url+()。 CommenMethod cm=new CommenMethod()。 HttpResponse response=(list, url)。 try { if(response!=nullamp。amp。(). getStatusCode()==200) { //用 DOM 解析 response(數(shù)據(jù)小 ) DocumentBuilderFactory factory =()。 //通過工廠獲得解析器 DocumentBuilder parser=()。 Document document=(().getContent())。 //得到節(jié)點 NodeList messages=(message)。 NodeList errors=(error)。 if(errors!=nullamp。amp。()0) { str=(0).getFirstChild().getNodeValue()。 } if(messages!=nullamp。amp。()0) { str=(0).getFirstChild().getNodeValue()。 理工大學(xué)畢業(yè)設(shè)計 26 } } } catch (Exception e) { // TODO: handle exception ()。 } return str。 登錄界面 登錄界面作為系統(tǒng)的門面,登錄界面完成的功能是驗證所登錄用戶的賬號是否正確,以驗證是否有進入系統(tǒng)的權(quán)限。登錄功能對應(yīng)的程序名為 包下的 。登錄界面如下: 圖 登錄界面 登錄界面主要為驗證賬號和密碼的功能,登錄界面分為學(xué)生用戶登錄和管理員登錄,其主要代碼如下: if((admin)) { //封裝信息 ListBasicNameValuePairlist=new ArrayListBasicNameValuePair()。 (new BasicNameValuePair(username, username))。 (new BasicNameValuePair(password, password))。 理工大學(xué)畢業(yè)設(shè)計 27 (new BasicNameValuePair(flag, flag))。 String url=url+loginservlet。 CommenMethod cm=new CommenMethod()。 HttpResponse response=(list, url)。 try { if(response!=nullamp。amp。().getStatusCode()==200) { //用 DOM 解析 response(數(shù)據(jù)小 ) DocumentBuilderFactory factory= ()。 //通過工廠獲得解析器 DocumentBuilder parser=()。 Document document=(().getContent())。 //得到節(jié)點 NodeList messages=(message)。 NodeList errors=(error)。 if(errors!=nullamp。amp。()0) { str=(0).getFirstChild().getNodeValue()。 (this, str, ).show()。 ()。 ()。 } if(messages!=nullamp。amp。()0) { str=(0).getFirstChild().getNodeValue()。 (this, str, ).show()。 Intent inte =new Intent(this,)。 startActivity(inte)。 } } } catch (Exception e) { // TODO: handle exception ()。 } }else if((normal)) { //封裝信息 ListBasicNameValuePairlist=new ArrayListBasicNameValuePair()。 (new BasicNameValuePair(username, username))。 (new BasicNameValuePair(password, password))。 理工大學(xué)畢業(yè)設(shè)計 28 (new BasicNameValuePair(flag, flag))。 String url=url+loginservlet。 CommenMethod cm=new CommenMethod()。 HttpResponse response=(list, url)。 try { if(response!=nullamp。amp。().getStatusCode()==200) { //用 DOM 解析 response(數(shù)據(jù)小 ) DocumentBuilderFactory factory=()。 //通過工廠獲得解析器 DocumentBuilder parser=()。 Document document=(().getContent())。 //得到節(jié)點 NodeList messages=(message)。 NodeList errors=(error)。 if(errors!=nullamp。amp。()0) { str=(0).getFirstChild().getNodeValue()。 (this, str, ).show()。 ()。 ()。 } if(messages!=nullamp。amp。()0) { str=(0).getFirstChild().getNodeValue()。 (this, str, ).show()。 Intent intent=new Intent(this,)。 (username, username)。 startActivity(intent)。 } } } catch (Exception e) { // TODO: handle exception ()。 } (this, str, ).show()。 } }else{ (this, 請?zhí)顚懲?,謝謝 , ).show()。 } 學(xué)生用戶書籍查詢界面 理工大學(xué)畢業(yè)設(shè)計 29 學(xué)生用戶通過輸入所需查詢的書籍名字和書籍作者名,便可以從數(shù)據(jù)庫中查詢到所查詢的圖書。書籍查詢功能對應(yīng)的程序名為 包下的 。查詢界面如下: 圖 圖書查詢界面 圖書查詢功能主要代碼如下: String bookname=().toString().trim()。 String authorname=().toString().trim()。 if(bookname!=nullamp。amp。authorname!=null) { (this, 請稍等。 , ).show()。 Intent intent=new Intent(this,)。 (bookname, bookname)。 (authorname, authorname)。 startActivity(intent)。 }else{ (this, 請?zhí)顚懬宄?, ).show()。 } 管理員界面 管理員界面顯示的是管理員的兩個主要功能 :管理用戶和管理圖書,通過點擊不同的按鈕可以實現(xiàn)不同的功能進行管理。注冊功能對應(yīng)的程序名為 包下的。管理員管理界面如下: 理工大學(xué)畢業(yè)設(shè)計 30 圖 管理員管理界面 管理學(xué)生用戶界面 管理學(xué)生用戶界面是對所有學(xué)生用戶進行管理的界面,這個界面的主要功能有查找特定用戶和查找所有用戶兩種方式,通過查找,最終把所有用戶都顯示在界面上。注冊功能對應(yīng)的程序名為 包下的 : 圖 管理用戶界面 理工大學(xué)畢業(yè)設(shè)計 31 主要代碼如下: Intent intent=()。 String username=().getString(username
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1