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

正文內(nèi)容

無線與移動網(wǎng)絡(luò)終端開發(fā)課程設(shè)計(jì)性實(shí)驗(yàn)報(bào)告-圖書管理app軟(專業(yè)版)

2025-03-01 22:26上一頁面

下一頁面
  

【正文】 (carmera_path, opts)。 startActivityForResult(intent,REQ_CODE_SELECT_IMAGE)。 (new Timestamp(()))。 /*驗(yàn)證獲取圖書名稱*/ if(().toString().equals()) { (, 圖書名稱輸入不能為空!, ).show()。 // 獲取所有的圖片類別 bookClassList = ()。 /*要保存的圖書信息*/ Book book = new Book()。 } public String getBookImage() { return bookImage。 /*圖書價(jià)格*/ private float price。+userName +39。 (bookClassId)。 (publishDate).value(())。 BookDAO bookDAO = new BookDAO()。 int count = ((count))。 Timestamp publishDate = null。 result = 圖書更新成功!。 } finally { ()。 } finally { ()。 sqlString += () + 39。 (book)。 if (!()) sql += and barcode like 39。 編輯圖書信息功能,用戶可以對圖書的信息進(jìn)行修改,實(shí)現(xiàn)效果如下:圖13 選編輯圖書信息圖圖14 進(jìn)行編寫圖圖15 圖書更新圖實(shí)現(xiàn)功能:修改圖書信息實(shí)現(xiàn)方法:長按菜單,觸發(fā)響應(yīng)函數(shù)onContextItemSelected(MenuItem item),點(diǎn)擊編輯圖書信息按鈕,初始化當(dāng)前Activity界面布局,通過findViewById方法實(shí)例化組件,將圖書信息回顯到EditText中,()。,設(shè)置當(dāng)前activity界面布局setContentView()。獲取出版日期。程序框架圖2 程序框架圖程序框架說明:左側(cè)為服務(wù)器的數(shù)據(jù)操作框架,對前臺頁面?zhèn)魅氲臄?shù)據(jù)在后臺進(jìn)行增刪改查操作,并且對前臺傳過來的用戶信息在數(shù)據(jù)庫中進(jìn)行對比,對比成功之后才可以進(jìn)行登錄;右側(cè)為用戶端的設(shè)計(jì),就是用戶能看見的安卓頁面設(shè)計(jì)都在這里進(jìn)行編寫,界面設(shè)計(jì)都在layout里面,然后對界面的相應(yīng)控件進(jìn)行綁定,把適配器代碼寫在activity包里。在服務(wù)端和客戶端相結(jié)合這才能很好地完成整個(gè)項(xiàng)目。將可選內(nèi)容與ArrayAdapter連接起來,bookClassId_adapter=newArrayAdapterString(this, m)。在BookClassAddActivity中初始化xml布局中的控件。獲取所有圖書類別。% + barcode + %39。 } } catch (Exception e) { // TODO Autogenerated catch block ()。)。 } return result。 } return book。 } catch (Exception e) { ()。 if((publishDate)!=null) publishDate = ((publishDate))。 float price = ((price))。 String result = (barcode)。 (bookImage).value(())。 (bookImage)。 and password=39。 /*圖書數(shù)量*/ private int count。 } public void setBookImage(String bookImage) { = bookImage。 protected String carmera_path。 int bookClassCount = ()。 (true)。 if(() != null) { //如果圖片地址不為空,說明用戶選擇了圖片,這時(shí)需要連接服務(wù)器上傳圖片 (正在上傳圖片,稍等...)。 } })。 = (opts, 1, 300*300)。 = true。 (, )。 /*獲取出版日期*/ Date publishDate = new Date(()1900,(),())。 } (().toString())。 btn_bookImage = (Button) findViewById()。 private ListBookClass bookClassList = null。 } public void setPublishDate(Timestamp publishDate) { = publishDate。 /*圖書所在類別*/ private int bookClassId。 String sql = select * from users where userName= 39。 (barcode)。 (count).value(())。 } else if((delete)) { String barcode = new String((barcode).getBytes(iso88591),UTF8)。 String bookName = new String((bookName).getBytes(iso88591),UTF8)。 if((bookClassId) != null) bookClassId = ((bookClassId))。 (sql)。 } } catch (Exception e) { // TODO Autogenerated catch block ()。 result = 圖書刪除失敗。,39。 ((publishDate))。 String sql = select * from Book where 1=1。然后將result傳回Activity,()在布局中打印出來。啟動BookClassAddActivity,并將BookClassListActivity先關(guān)閉,等待之后再使用。獲取查詢參數(shù),通過 Date publishDate = new Date(()1900,(),())。 實(shí)驗(yàn)截圖、操作步驟圖書管理的數(shù)據(jù)庫設(shè)計(jì)圖1 數(shù)據(jù)庫設(shè)計(jì)圖數(shù)據(jù)庫說明:此圖書管理一共分了三個(gè)數(shù)據(jù)表,第一個(gè)為圖書表,里面包含了條形碼(主鍵)、圖書名稱、圖書類別,價(jià)格,庫存數(shù)量、出版日期、圖書封面等屬性;第二個(gè)為用戶表,里面包含了,用戶ID(主鍵),用戶名稱、用戶密碼、電話和地址;第三個(gè)是圖書類別表,包含了圖書類別ID(主鍵),圖書類別名稱,它的主鍵圖書類別ID是圖書表的外鍵。用戶登錄,用戶可以輸入用戶名和密碼通過登錄進(jìn)入主頁面,然后在進(jìn)行圖書的操作,登錄的效果圖如下:圖3 用戶登錄圖圖4 登錄成功圖實(shí)現(xiàn)功能:用戶登錄實(shí)現(xiàn)方法:此模塊為登錄模塊,使用了TextView 、EditText、Button等控件來實(shí)現(xiàn)整體布局。設(shè)置圖書類別下拉列表的風(fēng)格,(bookClassId_adapter)。有兩個(gè)Button控件“確定”、“重新填寫”和一個(gè)EditText控件。點(diǎn)擊確定按鈕時(shí)觸發(fā)監(jiān)聽事件,事件中對圖書的名稱、價(jià)格、庫存、圖片進(jìn)行驗(yàn)證,(url,params,”UTF8”)。 if (!()) sql += and bookName like 39。 } finally { ()。 (sqlString)。 } /* 根據(jù)條形碼獲取到圖書信息 */ public Book GetBook(String barcode) { Book book = null。 } /* 更新圖書信息 */ public String UpdateBook(Book book) { DB db = new DB()。 result = 圖書更新失敗。 ListBook bookList = (barcode,bookName,bookClassId,publishDate)。 Timestamp publishDate = ((publishDate))。 (utf8)。 ()。 (bookName)。+password+39。 /*出版日期*/ private Timestamp publishDate。 }} :?xml version= encoding=utf8?LinearLayout xmlns:android= android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:background=drawable/login TableLayout android:layout_width=fill_parent android:layout_height=fill_parent android:stretchColumns=1 TableRow TextView android:text= / TextView android:text= / /TableRow TableRow TextView android:text= / TextView android:text= / /TableRow TableRow TextView android:text= / TextView android:text= / /TableRow TableRow TextView android:text= / TextView android:text= / /TableRow TableRow TextView android:text= / TextView android:text= / /TableRow TableRow TextView android:text= / TextView android:text= / /TableRow TableRow TextView android:text= / TextView android:text= / /TableRow TableRow TextView android:text= 用戶名: android:id=+id/TextView android:layout_width=70dp android:layout_height=wrap_content android:textColor=0000ff / EditText android:text= android:id=+id/userEditText android:layout_width=fill_parent android:layout_height=wrap_content / /TableRow TableRow TextView android:text= 密碼: android:id=+id/TextView android:layout_width=70dp android:layout_height=wrap_content android:textColor=0000ff / EditText android:text= android:id=+id/pwdEditText android:layout_width=fill_parent android:layout_height=wrap_content android:password=true/ /TableRow TableRow android:gravity=right Button android:text=登入 android:id=+id/loginBut
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1