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

正文內(nèi)容

網(wǎng)絡(luò)書店的設(shè)計與實現(xiàn)畢業(yè)論文正文(編輯修改稿)

2025-07-18 17:38 本頁面
 

【文章內(nèi)容簡介】 rchar50否否密碼usernamenvarchar50否否用戶名capacityvarchar50否否身份phonevarchar50否否電話 第四章 系統(tǒng)詳細設(shè)計與實現(xiàn)總體設(shè)計階段完成了軟件的結(jié)構(gòu)設(shè)計,劃分了模塊,并規(guī)定了各模塊的功能與它們之間的聯(lián)系。在此之后,按照軟件工程開發(fā)的思想,應(yīng)進入詳細設(shè)計階段。在詳細設(shè)計這個階段中,根據(jù)總體設(shè)計提供的文檔,確定每個模塊的算法,內(nèi)部的數(shù)據(jù)組織,選定工具表達清晰正確的算法,編寫詳細設(shè)計說明書。詳細設(shè)計階段的根本目標是確定怎樣實現(xiàn)所要求的系統(tǒng),給出軟件模塊結(jié)構(gòu)中各個模塊的內(nèi)部過程描述。經(jīng)過這個階段的設(shè)計工作,得出對目標系統(tǒng)的精確描述,這個描述在編碼階段可以由程序員直接翻譯成用某種程序設(shè)計語言書寫的程序。系統(tǒng)實現(xiàn)是指編碼階段。編碼就是將軟件詳細設(shè)計的結(jié)果翻譯成用某種程序設(shè)計語言書寫的程序。軟件的設(shè)計開發(fā)過程經(jīng)過需求分析、總體設(shè)計和詳細設(shè)計幾個階段之后,已經(jīng)形成了基本變成框架,最后就是通過編碼對設(shè)計進一步具體化,實現(xiàn)相應(yīng)的功能。運用軟件功能方法設(shè)計軟件,主要是為了提高軟件質(zhì)量,軟件質(zhì)量在很大程度上取決于設(shè)計的質(zhì)量,同時編碼的好壞也是影響軟件質(zhì)量的十分重要的因素,如果編碼中存在各種問題,那么再好的設(shè)計也無法體現(xiàn)出來。 基礎(chǔ)類的設(shè)計與實現(xiàn)數(shù)據(jù)庫類DB里面封裝了數(shù)據(jù)庫連接和關(guān)閉連接的方法:獲取數(shù)據(jù)庫連接Connection getConn()創(chuàng)建statement對象Statement createStmt(Connection conn) 關(guān)閉數(shù)據(jù)庫連接void close(Connection conn) 關(guān)閉statement對象void close(Statement stmt) 關(guān)閉結(jié)果集void close(ResultSet rs) 會員管理模塊該模塊分為增加會員,修改會員信息,刪除會員,查詢會員已管理員身份登錄, 增加會員界面其部分代碼如下: public int addUsers(String psw,String username,String phone){ int result = 1。 Connection conn = ()。 Statement stmt = (conn)。 ResultSet rs =null。 try { String sql1 = select * from userinfo where username= 39。+username+ 39。 rs = (sql1)。 while (()) { result = 0。 return result。 } String sql2 = insert into userinfo (psw,username,capacity,phone) values (?,?,39。會員39。,?)。 PreparedStatement pstmt = (sql2)。 (1, psw)。 (2, username)。 (3, phone)。 ()。 (pstmt)。 return result。 }catch (Exception e) { ()。 result = 0。 return result。 } finally { (conn)。 } }點擊左側(cè)刪除會員,頁面跳轉(zhuǎn)至刪除會員界面,點擊右側(cè)刪除按鈕,彈出對話框, 刪除會員界面其部分代碼如下: public void delUsers(String username){ Connection conn = ()。 Statement stmt = (conn)。 try { String sql = delete from userinfo where username=39。+username+39。 (sql)。 }catch (Exception e) { ()。 } finally { (stmt)。 (conn)。 } }點擊左側(cè)修改會員信息,頁面跳轉(zhuǎn)至修改會員信息,點擊右側(cè)修改按鈕, 修改會員信息界面其部分代碼如下: public int editUsers(String psw1,String psw2,String psw3,String phone,int id){ int result = 1。 Connection conn = ()。 Statement stmt = (conn)。 ResultSet rs = null。 try { String pswsql=select psw from userinfo where id= 39。+id+39。 rs = (pswsql)。 ()。 String password = (1)。 if(!(psw1)){ result = 0。 return result。 } if(!(psw3)){ result = 0。 return result。 }else{ String sql = update userinfo set psw=?,phone=? where id=?。 PreparedStatement pstmt = (sql)。 (1, psw2)。 (2, phone)。 (3, id)。 ()。 (pstmt)。 return result。 } } catch (Exception e) { ()。 result = 0。 return result。 } finally { (conn)。 } }點擊左側(cè)查詢會員,頁面跳轉(zhuǎn)至查詢會員,輸入條件點擊右側(cè)查詢按鈕,點擊用戶名鏈接,其部分代碼如下:按條件獲得用戶列表 public ListUsers selUsers(String strPageNo,int totalPages,String username){ int pageNo = 0。 Connection conn = ()。 Statement stmt = (conn)。 ListUsers usersList = new ArrayListUsers()。 if (strPageNo == null || ()) { pageNo = 1。 } else { try { pageNo = (())。 } catch (NumberFormatException e) { pageNo = 1。 } if (pageNo = 0) pageNo = 1。 } if (pageNo totalPages){ if(totalPages0) pageNo = totalPages。 else{ pageNo = 1。 } } try { ResultSet rs = null。 StringBuffer buffer = new StringBuffer(select top +pageSize+* + from(select ROW_NUMBER() OVER (ORDER BY id) AS rn, * from userinfo)。 if(username!=nullamp。amp。!()){ ( where username like 39。%+username+%39。)。 } ()u where rn +pageSize*(pageNo1))。 rs = (())。 Users users = null。 while(()){ users = new Users()。 ((id))。 ((psw))。 ((username))。 ((capacity))。 ((phone))。 (users)。 } (rs)。 } catch (SQLException e) { ()。 }finally{ (stmt)。 (conn)。 }return usersList。 }獲得符合結(jié)果的記錄條數(shù) public int getTotalRecords(String strPageNo,String username){ int totalRecords =0。 Connection conn = ()。 Statement stmt = (conn)。 ResultSet rs = null。 try { StringBuffer buffer = new StringBuffer(select count(*) from userinfo )。 if(username!=nullamp。amp。!()){ (where username like 39。%+username+%39。)。 } rs = (())。 if(()){ totalRecords = (1)。 }else{ totalRecords =0。 } }catch(SQLException e) { ()。 }finally{ (rs)。 (stmt)。 (conn)。 }return totalRecords。 }獲得符合查詢結(jié)果的記錄顯示的頁數(shù) public int getTotalPages(int totalRecords){ int totalPages = totalRecords % pageSize == 0 ? totalRecords / pageSize : totalRecords / pageSize + 1。 return totalPages。 }獲得一個用戶對象,包含該用戶所有信息 public Users getUsers(String username){ Connection conn = ()。 Statement stmt = (conn)。 Users users = null。 try { ResultSet rs = null。 String sql = select * from userinfo where username= 39。+ username+39。 rs = (sql)。 if(()){ users = new Users()。 ((id))。 ((psw))。 ((username))。 ((capacity))。 ((phone))。 } (rs)。 } catch (SQLException e) { ()。 }finally{ (stmt)。 (conn)。 }return users。 }} 圖書管理模塊該模塊分為增加圖書,修改圖書信息,刪除圖書,查詢圖書已管理員身份登錄,其部分代碼如下: public int addBook(String bookname,String author,String publish,String isbn,String price,String num,String category,String contents){ int result = 1。 Connection conn = ()。 try { Stri
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1