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

正文內(nèi)容

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

2025-07-18 17:38 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 rchar50否否密碼usernamenvarchar50否否用戶名capacityvarchar50否否身份phonevarchar50否否電話 第四章 系統(tǒng)詳細(xì)設(shè)計(jì)與實(shí)現(xiàn)總體設(shè)計(jì)階段完成了軟件的結(jié)構(gòu)設(shè)計(jì),劃分了模塊,并規(guī)定了各模塊的功能與它們之間的聯(lián)系。在此之后,按照軟件工程開(kāi)發(fā)的思想,應(yīng)進(jìn)入詳細(xì)設(shè)計(jì)階段。在詳細(xì)設(shè)計(jì)這個(gè)階段中,根據(jù)總體設(shè)計(jì)提供的文檔,確定每個(gè)模塊的算法,內(nèi)部的數(shù)據(jù)組織,選定工具表達(dá)清晰正確的算法,編寫詳細(xì)設(shè)計(jì)說(shuō)明書(shū)。詳細(xì)設(shè)計(jì)階段的根本目標(biāo)是確定怎樣實(shí)現(xiàn)所要求的系統(tǒng),給出軟件模塊結(jié)構(gòu)中各個(gè)模塊的內(nèi)部過(guò)程描述。經(jīng)過(guò)這個(gè)階段的設(shè)計(jì)工作,得出對(duì)目標(biāo)系統(tǒng)的精確描述,這個(gè)描述在編碼階段可以由程序員直接翻譯成用某種程序設(shè)計(jì)語(yǔ)言書(shū)寫的程序。系統(tǒng)實(shí)現(xiàn)是指編碼階段。編碼就是將軟件詳細(xì)設(shè)計(jì)的結(jié)果翻譯成用某種程序設(shè)計(jì)語(yǔ)言書(shū)寫的程序。軟件的設(shè)計(jì)開(kāi)發(fā)過(guò)程經(jīng)過(guò)需求分析、總體設(shè)計(jì)和詳細(xì)設(shè)計(jì)幾個(gè)階段之后,已經(jīng)形成了基本變成框架,最后就是通過(guò)編碼對(duì)設(shè)計(jì)進(jìn)一步具體化,實(shí)現(xiàn)相應(yīng)的功能。運(yùn)用軟件功能方法設(shè)計(jì)軟件,主要是為了提高軟件質(zhì)量,軟件質(zhì)量在很大程度上取決于設(shè)計(jì)的質(zhì)量,同時(shí)編碼的好壞也是影響軟件質(zhì)量的十分重要的因素,如果編碼中存在各種問(wèn)題,那么再好的設(shè)計(jì)也無(wú)法體現(xiàn)出來(lái)。 基礎(chǔ)類的設(shè)計(jì)與實(shí)現(xiàn)數(shù)據(jù)庫(kù)類DB里面封裝了數(shù)據(jù)庫(kù)連接和關(guān)閉連接的方法:獲取數(shù)據(jù)庫(kù)連接Connection getConn()創(chuàng)建statement對(duì)象Statement createStmt(Connection conn) 關(guān)閉數(shù)據(jù)庫(kù)連接void close(Connection conn) 關(guān)閉statement對(duì)象void close(Statement stmt) 關(guān)閉結(jié)果集void close(ResultSet rs) 會(huì)員管理模塊該模塊分為增加會(huì)員,修改會(huì)員信息,刪除會(huì)員,查詢會(huì)員已管理員身份登錄, 增加會(huì)員界面其部分代碼如下: 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。會(huì)員39。,?)。 PreparedStatement pstmt = (sql2)。 (1, psw)。 (2, username)。 (3, phone)。 ()。 (pstmt)。 return result。 }catch (Exception e) { ()。 result = 0。 return result。 } finally { (conn)。 } }點(diǎn)擊左側(cè)刪除會(huì)員,頁(yè)面跳轉(zhuǎn)至刪除會(huì)員界面,點(diǎn)擊右側(cè)刪除按鈕,彈出對(duì)話框, 刪除會(huì)員界面其部分代碼如下: 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)。 } }點(diǎn)擊左側(cè)修改會(huì)員信息,頁(yè)面跳轉(zhuǎn)至修改會(huì)員信息,點(diǎn)擊右側(cè)修改按鈕, 修改會(huì)員信息界面其部分代碼如下: 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)。 } }點(diǎn)擊左側(cè)查詢會(huì)員,頁(yè)面跳轉(zhuǎn)至查詢會(huì)員,輸入條件點(diǎn)擊右側(cè)查詢按鈕,點(diǎn)擊用戶名鏈接,其部分代碼如下:按條件獲得用戶列表 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é)果的記錄顯示的頁(yè)數(shù) public int getTotalPages(int totalRecords){ int totalPages = totalRecords % pageSize == 0 ? totalRecords / pageSize : totalRecords / pageSize + 1。 return totalPages。 }獲得一個(gè)用戶對(duì)象,包含該用戶所有信息 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。 }} 圖書(shū)管理模塊該模塊分為增加圖書(shū),修改圖書(shū)信息,刪除圖書(shū),查詢圖書(shū)已管理員身份登錄,其部分代碼如下: 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
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1