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

正文內(nèi)容

網(wǎng)上書店實(shí)驗(yàn)報(bào)告畢業(yè)論文(文件)

2025-07-11 23:30 上一頁面

下一頁面
 

【正文】 主要要求及特點(diǎn)如下:在Internet,客戶可通過IE或其他瀏覽器瀏覽書目信息;在互聯(lián)網(wǎng),可提交訂單;后臺(tái)數(shù)據(jù)庫用Microsoft Access ;采用B/S方式設(shè)計(jì);系統(tǒng)采用會(huì)員制,會(huì)員采用唯一的顧客標(biāo)識(shí)號(hào)來標(biāo)識(shí)身份;具有購物車功能;對(duì)購物車,可增加新書、修改數(shù)量、刪除已選書籍等,確認(rèn)后,才完成交易;系統(tǒng)應(yīng)具備一定的安全性與可靠性;客戶應(yīng)能通過作者姓名、書名或者ISBN號(hào)來檢索書籍;客戶可在網(wǎng)上進(jìn)行注冊(cè),成為會(huì)員;1客戶應(yīng)能修改除客戶號(hào)以外的所有客戶信息;1客戶能查看當(dāng)前訂單和以往訂單;1書店員工能查找客戶聯(lián)系信息;1書店員工在發(fā)貨后能改寫訂單中的發(fā)貨日期;1客戶可以通過信息反饋系統(tǒng)跟書店員工進(jìn)行交流。本系統(tǒng)采用的數(shù)據(jù)庫系統(tǒng)是微軟的小型數(shù)據(jù)庫管理系統(tǒng)——MS Access2003。詳細(xì)設(shè)計(jì)的細(xì)化程度,只要達(dá)到可以作為指導(dǎo)代碼編寫的功能就可以了。頁面設(shè)計(jì) 頁面是系統(tǒng)與用戶進(jìn)行信息交互的最有效途徑。 通過前面的需求分析可知,網(wǎng)上書店主要是實(shí)現(xiàn)展示書籍的列表信息、顯示某本書籍的具體信息、選擇書籍放入購物車、從購物車刪除其中已經(jīng)選擇的書籍、下訂單購買書籍等主要功能。只有在用戶填寫基本的聯(lián)系信息并提交之后,這才完成了購書過程。成功購買書籍頁面用于系統(tǒng)出錯(cuò)信息顯示頁面用于鏈接數(shù)據(jù)庫操作的通用頁面用于顯示登錄失敗的信息頁面提供給用戶填寫反饋信息的頁面用于判斷填寫的信息書否成功錄入數(shù)據(jù)庫的頁面首頁,提供用戶登錄,以及游客注冊(cè)登錄頁面,供用戶填寫用戶名及密碼。從表5中,也不難看出各個(gè)頁面之間的關(guān)聯(lián)關(guān)系。JSP Model 1模型的好處就是:JSP直接處理Web瀏覽器送來的請(qǐng)求(Request),并輔以JavaBean 處理應(yīng)用相關(guān)邏輯。JSP頁面需要怎么樣的請(qǐng)求處理,業(yè)務(wù)邏輯就應(yīng)該要實(shí)現(xiàn)相應(yīng)的操作,一切以滿足JSP頁面的請(qǐng)求為目標(biāo)。 圖5 從上圖可以看出,頁面中需要的業(yè)務(wù)邏輯處理。當(dāng)把該書放入購物車的時(shí)候。數(shù)據(jù)庫規(guī)范化就是在設(shè)計(jì)和操作維護(hù)數(shù)據(jù)庫時(shí),使用正確的數(shù)據(jù)結(jié)構(gòu),不僅便于對(duì)數(shù)據(jù)庫進(jìn)行相應(yīng)的存取操作,而且可以極大地簡化應(yīng)用程序的其他內(nèi)容(查詢、窗體、報(bào)表、代碼等)。 在設(shè)計(jì)數(shù)據(jù)庫字段之前,需要先對(duì)系統(tǒng)顯示和收集的數(shù)據(jù)進(jìn)行采集分析。 在設(shè)計(jì)數(shù)據(jù)庫字段的時(shí)候,字段名要盡量用最能夠表達(dá)字段含義的英文單詞或是組合單詞,杜絕使用中文作為表名和字段。 5. 系統(tǒng)實(shí)現(xiàn) 主要代碼實(shí)現(xiàn) 經(jīng)過前面的需求分析、結(jié)構(gòu)分析、數(shù)據(jù)庫設(shè)計(jì)和詳細(xì)設(shè)計(jì)后,現(xiàn)在就要開始系統(tǒng)開發(fā)、具體的代碼編寫了。 創(chuàng)建項(xiàng)目 該網(wǎng)上書店Web系統(tǒng)名字為bookshop,在“CATALINA_HOME/webapps/”目錄下創(chuàng)建一個(gè)Web應(yīng)用項(xiàng)目,名稱為bookshop。import 。 private Date time。 private int saleAmount=0。 =time。 =saleAmount。 } public String getPie() { return pie。 } public String getTitle() { return title。 } public void setPie(String string) { pie = string。 } public void setTitle(String string) { title = string。 }} ,主要是表示訂單的信息,與數(shù)據(jù)庫表custom相對(duì)應(yīng)。 private String sID = null。 private String stel = null。 } //接收三個(gè)參數(shù)的構(gòu)造方法并且調(diào)用空構(gòu)造函數(shù)添加驅(qū)動(dòng) public Linkdatabase2(String ID){ = ID。 } try{ con = (url,sa,)。 } //接收姓名 public void setName(String name){ = name。 } //創(chuàng)建新的得到買單 private void setnewID(){ String id = null。 ()。 ++intId。 } if(==null){ return false。 String strSql = null。+sname+39。+stel+39。 try{ PreparedStatement sql = (strSql)。 } } public boolean Delete(){ String strSql = DELETE FROM custom WHERE sID=?。 if(flag==1){ return true。 try{ PreparedStatement sql = (SELECT * FROM custom WHERE sname like ? AND stel like ?)。 return rs。 PreparedStatement sql = (strSql)。 (4,)。 else return false。例如,某個(gè)用戶的購物車放置了兩種書籍:一種是編號(hào)為IS00000001的《Java》書籍2本;另一種是編號(hào)為IS00000004的《Delphi》書籍1套。public class ShopCarItem {Object item。}public void incrementQuantity() {quantity++。}} 。public class ShopCar {HashMap items = null。()。}public synchronized void remove(String bookId) {if((bookId)) {ShopCarItem scitem = (ShopCarItem) (bookId)。}}public synchronized Collection getItems() {return ()。for(Iterator i = getItems().iterator()。amount += () * ()。}public synchronized void clear() {()。在這里ODBC數(shù)據(jù)源的名稱為BookShopDB。import .*。private String orderId。}catch(Exception e){()。}catch(Exception e){()。alBooks = new ArrayList()。rs = ()。closePrepStmt(prepStmt)。PreparedStatement prepStmt=null。String strSql = select * + from book order by bookID。(bd)。}(alBooks)。ResultSet rs =null。prepStmt = (strSql)。()。closePrepStmt(prepStmt)。Iterator i = ()。BookDetail bd = (BookDetail)()。orderDetail(bd, quantity,con)。throw ex。try{String strSql = select * + from book where bookID = ? 。if (()) {()。(2, bookId)。closePrepStmt(prepStmt)。(orderId)。(4, quantity)。}finally{closePrepStmt(prepStmt)。String strSql = insert into orderList(orderID,status,allAmount,allMoney,name,phone,address,code,info) + values(?,?,?,?,?,?,?,?,?)。(1, orderId)。(5, ())。(9, ())。}}public static String getNowTime() { ctime = new ()。return rTime。public class Linkdatabase { private Connection con=null。 private String spwd = null。 private String stel = null。 public Linkdatabase(){ this(null)。 (())。 } } //返回帳號(hào) public String getID(){ return 。 } //接收出生年月 public void setBirthday(String bir){ = bir。 } //接收姓名 public void setName(String name){ = name。 } catch(Exception e){ (連接錯(cuò)誤)。 //添加驅(qū)動(dòng)的構(gòu)造方法 try{ (JDBC_DRIVER)。 private String JDBC_DRIVER = 。 private String sclass = null。 private String sex = null。其代碼如下:package bookshop。 cf = new (yyyyMMddHHmmss)。}finally{closePrepStmt(prepStmt)。(7, ())。(3, ())。orderId=getNowTime()。PreparedStatement prepStmt=null。()。(2, ())。try{String strSql =insert into orderDetail(orderID,bookId,price,amount,moneys) + values(?,?,?,?,?)。()。prepStmt = (strSql)。(1, bookId)。}}public void buyBook(String bookId, int quantity,Connection con) throws Exception {PreparedStatement prepStmt=null。(true)。int quantity = ()。(false)。}}public void buyBooks(ShopCar car)throws Exception {Connection con=null。}else {return null。rs = ()。(getConnection)。}public BookDetail getBookDetail(String bookId) throws Exception {Connection con=null。closePrepStmt(prepStmt)。rs = ()。alBooks = new ArrayList()。}return ()。(bd)。String strSql = select * + from book。PreparedStatement prepStmt=null。}catch(Exception e){()。}public Connection getConnection()throws Exception{return (dbUrl)。public class BookDB {private ArrayList alBooks。:getConnection方法實(shí)現(xiàn)數(shù)據(jù)庫鏈接;getBookDetail方法實(shí)現(xiàn)讀取書籍列表的詳細(xì)信息;buyBooks方法實(shí)現(xiàn)購買書籍;order方法實(shí)現(xiàn)了下訂單的處理。}}3. 該網(wǎng)上書店系統(tǒng)是使用JDBC訪問MS Access數(shù)據(jù)庫。}private double roundOff(double x) {long val = (x*100)。 ) {ShopCarItem item = (ShopCarItem) ()。}public synchronized int getNumberOfItems() {return numberOfItems。if(() = 0)(bookId)。(bookId, newItem)。public ShopCar() {items = new HashMap()。其代碼實(shí)現(xiàn)如下所示:package bookshop。}public Object getItem() {return item。public ShopCarItem(Object anItem) {item = anItem。ShopCarItem包含兩個(gè)成員變量:Object item和int quantity,其中Object
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1