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

正文內(nèi)容

電子商務(wù)手機銷售網(wǎng)站畢業(yè)設(shè)計論文-資料下載頁

2024-12-03 15:24本頁面

【導(dǎo)讀】112課題研究的意義2. 113手機銷售網(wǎng)站的現(xiàn)狀3. 212會員用戶需求6. 22架構(gòu)分析與設(shè)計7. 第3章系統(tǒng)總體設(shè)計8. 32數(shù)據(jù)庫結(jié)構(gòu)與表設(shè)計9. 332后臺admin目錄下14. 第4章功能實現(xiàn)16. 422用戶模塊后臺17. 432產(chǎn)品類接口設(shè)計25. 451訂單對象實體類43. 454訂單前臺的處理45. 第5章系統(tǒng)運行測試48. 53商品購買功能測試49. 本系統(tǒng)功能主要包括會員注冊賬戶管理購物車搜索在線支付等基本功能此。很大程度上減輕了維護(hù)人員的勞動強度提高了工作效率與管理水平具有很大的。商務(wù)的應(yīng)用和推廣將給社會和經(jīng)濟(jì)帶來極大的效益并將成為全球經(jīng)濟(jì)的最大增。買數(shù)字類產(chǎn)品如信息錄像錄音數(shù)據(jù)庫軟件及各類知識產(chǎn)品此外還能獲得各類服。把握消費方向從而對市場變化做出相應(yīng)反應(yīng)。有資料顯示2021年我國僅一個購物網(wǎng)站全年的交易額就有超過20億元人民。的消費者參與其中網(wǎng)上購物行形成了與傳統(tǒng)商業(yè)業(yè)態(tài)相抗衡的力量。近年來隨著Inter的迅速崛起互聯(lián)網(wǎng)已日益成為手機提供信息的最佳渠

  

【正文】 i 0 i topCategoriessize i Category parent topCategoriesget i List childs getChilds parent categories tr id pma_ parentgetId style display none td style position relative left 0pt height 25 width 100 nbsp getChildsStr childs 效果如下 圖 49 手機列表 圖 410 管理員列表 435 文件上傳 商品圖片的上傳通過 FileUploadjava 這個 Servlet 實現(xiàn)的用到了monsfileupload111 工具包和 monsio12 工具包具體實現(xiàn)方法如下 public void doPost HttpServletRequest req HttpServletResponse res throws ServletException IOException int id 1 String uploadPath configgetInitParameter uploadPath 獲取上傳文檔路徑 ressetContentType texthtml charset GB2312 PrintWriter out resgetWriter Systemoutprintln reqgetContentLength Systemoutprintln reqgetContentType DiskFileItemFactory factory new DiskFileItemFactory factorysetSizeThreshold 4096 factorysetRepository tempPath ServletFileUpload upload new ServletFileUpload factory uploadsetSize 1000000 try List fileItems uploadparseRequest req Iterator iter fileItemsiterator 使用正則表達(dá)式檢驗是否包含 String regExp \\\\ 上傳文件的類型限制 String[] errorType exe cgi jsp Pattern p Patternpile regExp while iterhasNext FileItem item FileItem iternext if itemisFormField if itemgetFieldName equals id id IntegerparseInt itemgetString if itemisFormField String name itemgetName long size itemgetSize if name null nameequals size 0 continue Matcher m pmatcher name boolean result mfind if result for int temp 0 temp errorTypelength temp if mgroup 1 endsWith errorType[temp] throw new IOException name wrong type try itemwrite new File uploadPath id jpg outprint name nbspnbsp size catch Exception e outprintln e else throw new IOException fail to upload catch IOException e outprintln e catch FileUploadException e outprintln e 實現(xiàn)效果如下 圖 415 圖片上傳 44 購物車模塊 441 購物車后臺 CartItem 類本類是 一個不跟數(shù)據(jù)庫打交道的類是一個購物項比如 3 臺iphone4是一個購物項屬性有 2個 private Product product產(chǎn)品本身和 private int count 產(chǎn)品的數(shù)量 package bjsxtshoppingclient import bjsxtshoppingproductProduct public class CartItem private Product product private int count public int getCount return count public void setCount int count thiscount count public Product getProduct return product public void setProduct Product product thisproduct product Cart 類購物車類購物車類中的屬性只有一個 List 購物車類中是一個個購物項 package bjsxtshoppingclient import javautilArrayList import javautilIterator import javautilList public class Cart List items new ArrayList public List getItems return items public void setItems List items thisitems items public void add CartItem ci for Iterator iter itemsiterator iterhasNext CartItem item iternext if itemgetProduct getId cigetProduct getId itemsetCount itemgetCount 1 return itemsadd ci public double getTotalMemberPrice double d 00 for Iterator it itemsiterator ithasNext CartItem current itnext d currentgetProduct getMemberPrice currentgetCount return d public void deleteItemById int productId for Iterator iter itemsiterator iterhasNext CartItem item iternext if itemgetProduct getId productId iterremove Cart 類中的 add 方法首先判斷購物項中是否有這商品如果有的話在 count上加 1 代碼如下 public void add CartItem ci for Iterator iter itemsiterator iterhasNext CartItem item iternext if itemgetProduct getId cigetProduct getId itemsetCount itemgetCount 1 return itemsadd ci 實現(xiàn)效果如下 圖 411 商品購買 442 購物車前臺 購物車的 JPS 是 Buyjsp 每個用戶都有一個購物車所以每個用戶應(yīng)該把自己的購 物車保存起來這里采用保存在 session 中 Cart c Cart sessiongetAttribute cart if c null c new Cart sessionsetAttribute cart c 實現(xiàn)效果如下 圖 412 購物車 刪除功能刪除采用了一個連接 a href Buyjspaction deleteid cigetProduct getId 刪除 if action null actiontrim equals delete int id IntegerparseInt requestgetParameter id cdeleteItemById id 刪除效果如下 圖 413 商品刪除 修改數(shù)量功能通過表單 get 方式提交 if action null actiontrim equals update 拿出每一個購物項 for int i 0 i cgetItems size i CartItem ci cgetItems get i 獲得數(shù)量然后重新設(shè)置本商品的數(shù)量 int count IntegerparseInt requestgetParameter p cigetProduct getId cisetCount count 45 下單模塊 451 訂單對象實體類 SalesOrder 實體類其中的屬性如下 private int idID private User user 下單著 private String addr 送貨地址 private Date oDate 下單時間 private int status 狀態(tài) private List items 訂單項 SalesItem 實體類類似于購物車項類屬性如下 private int idID private Product product 產(chǎn)品 private double unitPrice 當(dāng)時下單的產(chǎn)品價格 private int count 數(shù)量 private int orderId 訂單 ID 452 訂單接口設(shè)計 package oxbridgeshoppingorder import javautilList import oxbridgeshoppingproductProduct public interface OrderDAO public void update SalesOrder so 修改訂單 public int add SalesOrder so 添加訂單 public List getOrders 獲得所有訂單 public int getOrders List orders int pageNo int pageSize 分頁顯示訂單 public void delete int id 根據(jù) id 刪除訂單
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1