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

正文內(nèi)容

網(wǎng)絡(luò)書(shū)店的設(shè)計(jì)與實(shí)現(xiàn)畢業(yè)論文正文-資料下載頁(yè)

2024-08-28 00:30本頁(yè)面

【導(dǎo)讀】隨著互聯(lián)網(wǎng)在中國(guó)的進(jìn)一步普及應(yīng)用,網(wǎng)上購(gòu)物逐漸成為人們的網(wǎng)上行為之一。易自身所具有的經(jīng)營(yíng)上的優(yōu)勢(shì)以及對(duì)消費(fèi)者強(qiáng)大的吸引力,是刺激網(wǎng)上交易發(fā)展的重要原因。幾年前,我還至少一個(gè)月就會(huì)去書(shū)店逛兩次,如今一年也難得去一回,究其因有如下幾點(diǎn)。一來(lái)支付方便,款到發(fā)貨,拿書(shū)付錢,一點(diǎn)風(fēng)險(xiǎn)也沒(méi)有。在車流中拼搏的好,也算是對(duì)環(huán)保事業(yè)的一點(diǎn)小小支持吧。推薦功能,讓我很容易定位到購(gòu)買的目標(biāo)。將越來(lái)越廣泛和深遠(yuǎn)。網(wǎng)絡(luò)可以在絕對(duì)低成本的狀態(tài)下完成相對(duì)高質(zhì)量的任務(wù)。相對(duì)于Servlet這種Java類,JSP又有特定的優(yōu)勢(shì)。事實(shí)上,在JSP中還可以使用標(biāo)簽等特性進(jìn)一步將JSP中的Java代碼帶來(lái)的不利因素削。在此模式中,JSP頁(yè)面獨(dú)自響應(yīng)請(qǐng)求并將處理結(jié)果返回客戶并實(shí)現(xiàn)頁(yè)面的表現(xiàn)。這樣做的好處是Servlet的重用性好,副作用就是可能會(huì)導(dǎo)致響應(yīng)請(qǐng)求的時(shí)間加長(zhǎng)。完后設(shè)置JavaBean的屬性,JSP讀取此JavaBean的屬性,然后進(jìn)行顯示。色由管理員、會(huì)員、游客組成。

  

【正文】 其部分代碼如下: 刪除訂單 public void delOrder(String id){ Connection conn = ()。 Statement stmt = (conn)。 int num = 0。 int bookid = 0。 try { ResultSet rs = null。 String sql1 = select num,bookid from orderinfo where id=39。+id+39。 rs = (sql1)。 while(()){ num = (num)。 bookid = (bookid)。 } String sql2 = update bookinfo set num = num + ? where id=?。 PreparedStatement pstmt = (sql2)。 (1, num)。 (2, bookid)。 ()。 String sql3 = delete from orderinfo where id=39。+id+39。 (sql3)。 (rs)。 (pstmt)。 }catch (Exception e) { ()。 } finally { (stmt)。 (conn)。 } } 由于點(diǎn)擊訂單管理就直接跳轉(zhuǎn)到圖 ,功能與其他模塊功能相近,在此就不做過(guò)多的說(shuō)明了。 促銷活動(dòng)管理 模塊 該模塊分為 增加促銷活動(dòng),刪除促銷活動(dòng),查詢促銷活動(dòng)。 點(diǎn)擊左側(cè) 增加促銷活動(dòng) ,頁(yè)面跳轉(zhuǎn)至 增加促銷活動(dòng) ,如圖 網(wǎng)絡(luò)書(shū)店的設(shè)計(jì)與實(shí)現(xiàn) 35 圖 增加促銷活動(dòng)界面 其部分代碼如下: public int addAct(String title,String contents,String stime,String ftime){ int result = 1。 Connection conn = ()。 try { String sql = insert into actinfo (title,contents,stime,ftime,createdtime) values (?,?,?,?,getdate())。 PreparedStatement pstmt = (sql)。 (1, title)。 (2, contents)。 (3, stime)。 (4, ftime)。 ()。 (pstmt)。 return result。 }catch (Exception e) { ()。 result = 0。 return result。 } finally { (conn)。 } } 點(diǎn)擊左側(cè) 刪除促銷活動(dòng) ,頁(yè)面跳轉(zhuǎn)至 刪除促銷活動(dòng) , 如圖 ,點(diǎn)擊右側(cè)刪除按鈕,頁(yè)面跳轉(zhuǎn)至如圖 。 網(wǎng)絡(luò)書(shū)店的設(shè)計(jì)與實(shí)現(xiàn) 36 圖 刪除促銷活動(dòng)界面 圖 刪除促銷活動(dòng)界面 其部分代碼如下: public void delAct(String id){ Connection conn = ()。 Statement stmt = (conn)。 try { String sql = delete from actinfo where id=39。+id+39。 (sql)。 }catch (Exception e) { ()。 } finally { (stmt)。 (conn)。 } } 點(diǎn)擊左側(cè) 查詢促銷活動(dòng) ,頁(yè)面跳轉(zhuǎn)至 查詢促銷活動(dòng) ,如圖 ,輸入條件點(diǎn)擊右側(cè)查詢按鈕,頁(yè)面跳轉(zhuǎn)至如圖 ,點(diǎn)擊 id鏈接,頁(yè)面跳轉(zhuǎn)至如圖 。 網(wǎng)絡(luò)書(shū)店的設(shè)計(jì)與實(shí)現(xiàn) 37 圖 查詢促銷活動(dòng)界面 圖 查詢促銷活動(dòng)界面 圖 查詢促銷活動(dòng)界 面 其部分代碼如下: 獲得符合結(jié)果的記錄條數(shù)方法 public int getTotalRecords(String strPageNo,String title ,String operater1,String stime,String operater2,String ftime){ int totalRecords =0。 Connection conn = ()。 Statement stmt = (conn)。 ResultSet rs = null。 網(wǎng)絡(luò)書(shū)店的設(shè)計(jì)與實(shí)現(xiàn) 38 try { StringBuffer buffer = new StringBuffer(select count(*) from actinfo where 1=1)。 if(title!=nullamp。amp。!()){ ( and title like 39。%+title+%39。)。 } if(operater1!=nullamp。amp。!()amp。amp。stime!=nullamp。amp。!()){ ( and stime)。 if((1)) ()。 if((2)) (=)。 if((3)) ()。 (39。+stime+39。)。 } if(operater2!=nullamp。amp。!()amp。amp。ftime!=nullamp。amp。!()){ ( and ftime)。 if((1)) ()。 if((2)) (=)。 if((3)) ()。 (39。+ftime+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){ 網(wǎng)絡(luò)書(shū)店的設(shè)計(jì)與實(shí)現(xiàn) 39 int totalPages = totalRecords % pageSize == 0 ? totalRecords / pageSize : totalRecords / pageSize + 1。 return totalPages。 } 獲取一個(gè)促銷活動(dòng)對(duì)象 public Act getAct(String id){ Connection conn = ()。 Statement stmt = (conn)。 Act act = null。 try { ResultSet rs = null。 String sql = select * from actinfo where id=+ id。 rs = (sql)。 if(()){ act = new Act()。 ((title))。 ((contents))。 ((stime))。 ((ftime))。 ((id))。 ((createdtime))。 } (rs)。 } catch (SQLException e) { ()。 }finally{ (stmt)。 (conn)。 }return act。 } } 留言簿模塊 該模塊分為 刪除留言,查看留言。 留言 點(diǎn) 擊上面留言簿,頁(yè)面跳轉(zhuǎn)至刪除留言界面,點(diǎn)擊右側(cè)刪除按鈕,彈出對(duì)話框,提示是否刪除如圖 網(wǎng)絡(luò)書(shū)店的設(shè)計(jì)與實(shí)現(xiàn) 40 圖 刪除留言簿界面 其部分代碼如下: public void delComment(String id){ Connection conn = ()。 Statement stmt = (conn)。 try { String sql = delete from ment where id=39。+id+39。 (sql)。 }catch (Exception e) { ()。 } finally { (stmt)。 (conn)。 } } 點(diǎn)擊上面留言簿,頁(yè)面跳轉(zhuǎn)至如圖 網(wǎng)絡(luò)書(shū)店的設(shè)計(jì)與實(shí)現(xiàn) 41 圖 查看留言簿界面 其部分代碼如下: public ListComment getCommentsList(String strPageNo,int totalPages){ int pageNo = 0。 Connection conn = ()。 Statement stmt = (conn)。 ListComment mentList = new ArrayListComment()。 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。 String sql = select top +pageSize+* + from(select ROW_NUMBER() OVER (ORDER BY createdtime desc) AS rn, * from ment)c where rn +pageSize*(pageNo1)。 rs = (sql)。 Comment ment = null。 while(()){ ment = new Comment()。 ((id))。 ((sendname))。 ((contents))。 ((createdtime))。 (ment)。 } (rs)。 } catch (SQLException e) { 網(wǎng)絡(luò)書(shū)店的設(shè)計(jì)與實(shí)現(xiàn) 42 ()。 }finally{ (stmt)。 (conn)。 }return mentList。 } 獲得符合結(jié)果的記錄條數(shù) public int getTotalRecords(String strPageNo){ int totalRecords =0。 Connection conn = ()。 Statement stmt = (conn)。 ResultSet rs = null。 try { String sql = select count(*) from ment。 rs = (sql)。 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。 } } 網(wǎng)絡(luò)書(shū)店的設(shè)計(jì)與實(shí)現(xiàn) 4
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1