【正文】
收銀臺圖標,如果用戶之前未登錄則進入結(jié)算登錄界面,在登錄后系統(tǒng)進入結(jié)算信息填寫界面,最后反饋確認界面如下: 第 26 頁 共 32 頁 圖 9 結(jié)算信息確認界面 ( 4 ) 用戶購買商品后可以 對商品的滿意度和服務(wù)做出評價,即可以進入用戶留言模塊,發(fā)表自己的意見,在該模塊用戶可填寫留言人、留言內(nèi)容、留言人主頁、留言人 、留言人 EMail 等內(nèi)容,在填寫相關(guān)信息后點擊提交則將所有內(nèi)容轉(zhuǎn)入數(shù)據(jù)庫。 PreparedStatement prep = (delete from category where class_id=?)。,\39。 //獲取種類名稱 if (var1 == null) { var1 = 。amp。 ResultSet rs=()。 //總頁數(shù) String strpage。 String date1=y+/+m+/+d+ +h+:+mm。 ()。i()。 =price。 float price=0。 第 19 頁 共 32 頁 } else {% p align=centerfont color=0000FF%=uid%:你是管理員用戶!歡迎你進入! /font/p p /p p align=centerIMG style=CURSOR: hand onClick=winopen() src=picture/ alt=點擊進入 /p % } } else { ()。 try{ ResultSet rs=(uid,pwd)。 //密碼 Connection conn=null。 ( 3 ) 產(chǎn)品管理:在此模塊中,可在各種產(chǎn)品的種類下添 加新的產(chǎn)品,并且可對過時的產(chǎn)品進行刪除,或者更新現(xiàn)有的產(chǎn)品。用戶在選擇自己的商品時,系統(tǒng)則連接到后臺關(guān)于此商品信息的數(shù)據(jù)庫中,找到適合客戶需求的信息。因為顧客對有些商品的代碼,或者名稱不是很熟悉,只知道其中的一兩個字,這時就可以在首頁使用模糊查詢,輸入商品號或者商品名稱或者產(chǎn)地等即可找到所需要的商品 ,只要是有滿足條件的就全部列舉出來,讓用戶選擇。同時可以保證系統(tǒng)的安全,不至于讓一些無聊的人員惡意修改信息,破壞商店的信譽,同時也可以對用戶信息進行確認。 ( 3 ) 各個表的結(jié)構(gòu)如下: 1) 用戶信息表: 表 1 用戶表 uid pwd nickname realname gender address tele qx char(10) char(10) char(10) char(16) char(4) text char(12) char(15) char(1) 用戶代碼 密碼 用戶昵稱 真實姓名 性別 地址 電話 郵箱 身份號 注: qx 為 0 代表一般用戶, 1 代表管理員 主鍵: uid 第 12 頁 共 32 頁 2) 種類信息表: 表 2 種類表 class_id char(2) 種類號 class_name char(16) 種類名稱 注:主鍵: class_id 3) 留言信息表: 表 3 留言表 uid int 用戶 ID times varchar(30) 留言時間 url varchar(100) 主機地址 ip varchar(20) 留言人 IP varchar(50) 留言人郵箱 qq varchar(20) 留言人 content varchar(1000) 留言內(nèi)容 name varchar(20) 留言人姓名 注:主鍵: uid,這個是自動生成 4) 商品信息表: 表 4 商品表 product_id item_id item_name price introduce specs supplier link clicknum char(5) char(8) char(40) float text char(20) char(12) char(40) int 產(chǎn)品號 商品號 商品名稱 價格 介紹 規(guī)格 產(chǎn)地 圖片鏈接 點擊率 注:主鍵: itme_id 外鍵: product_id 5) 訂單細節(jié)表: 表 5 訂單細節(jié)表 order_id item_id item_name price number sumprice char(20) char(8) varchar(40) float int float 訂單號 商品號 商品名稱 價格 數(shù) 量 總價 注:主鍵: order_id+item_id 組合組成 外鍵: order_id, item_id 第 13 頁 共 32 頁 6) 總訂單表: 表 6 總訂單表 order_id char(20) 訂單號 uid char(10) 用戶號 ame char(10) 用戶名稱 address char(10) 用戶地址 pdate char(20) 訂購日期 phone char(15) 用戶電話 sendestatus char(1) 發(fā)貨狀態(tài) paystatus char(1) 付款狀態(tài) total float 總額 zip char(6) 郵政編碼 sex char(1) 性別 pay char(20) 付款方式 send smallint 發(fā)貨方式 content varchar(50) 備注 注:主鍵: order_id 外鍵: uid paystatus:“ 0”代表未付款,“ 1”代表已付款 sendestatus:“ 0”代表未發(fā)貨,“ 1”代表已發(fā)貨 7) 產(chǎn)品信息表: 表 7 產(chǎn)品表 class_id char(2) 種類號 product_id char(5) 產(chǎn)品號 product_name char(20) 產(chǎn)品名稱 注:主鍵: product_id 外鍵: class_id 各模塊詳細設(shè)計 用戶模塊 該模塊是對用戶管理的模塊,是本系統(tǒng)中的一個重要部分,包括用戶注冊、用戶登錄、用戶留言等幾個小部分。 ( 2 ) 表的相關(guān)項命名規(guī)則: 1) 所有表的主鍵命名為“表名 +id”。 8) 一張總訂單對應(yīng)多張詳細訂單。在檢查的同時,還要對這些數(shù)據(jù)進行分析,為制定商品目錄方案做準備。在系統(tǒng)中分別是 和 兩個文件。 5) 配置環(huán)境,裝有 Windows XP 電腦一臺,安裝 SQL Server2020 數(shù)據(jù)庫,搭建 Eclipse 平臺和 Tomcat 服務(wù)器, IE 瀏 覽器等。這種網(wǎng)站的網(wǎng)頁設(shè)計往往制作得更有指導性,并且更加美觀,這些都將會吸引大批的購買者。因此如何高效地管理好產(chǎn)品,控制好物流成本,提高企業(yè)的整體效益,己迫在眉睫。 5) 行業(yè)力量 Eclipse 這樣的高級圖形用戶界面來開發(fā)軟件也是極好的,由于它去掉了許多重復(fù)瑣碎的工作,使我們可以有更多的時間考慮實際的代碼和重要的算法。就其本身而言,它只是一個框架和一組服務(wù),用于通過插件構(gòu)建開發(fā)環(huán)境。Select 語句中位于 Select 關(guān)鍵詞之后的列名用來決定哪些列將作為查詢結(jié)果返回。 ( 5 ) 良好的移植性 作為 Java 平臺的一部分, JSP 擁有 Java 編程語言“一次編寫,各處運行”的特點,即具有良好的移植性。這有助于開發(fā)人員既保護自己的代碼,又保證任何基于 HTML 的 Web 瀏覽器的 完全可用性。在編輯器中輸入 html 代碼即可完成對網(wǎng)頁的設(shè)計,如果在其中加入 VB、 JAVA 等腳本文件以及數(shù)據(jù)庫連接有關(guān)的語句指令,便可對已知數(shù)據(jù)進行查詢,從而生成動態(tài)網(wǎng)頁的一部分?!俺谋尽本褪侵疙撁鎯?nèi)可以包含圖片、鏈接,甚至音樂,程序等非文字的元素。運用 JSP 產(chǎn)生頁面動態(tài)部分, HTML 產(chǎn)生靜態(tài)頁面,同時在 HTML 中嵌入JavaScript 增加動態(tài)效果。 B/S 架構(gòu) 比起 C/S 架構(gòu)有著很大的優(yōu)越性, C/S 架構(gòu)的系統(tǒng)依賴于專門的操作環(huán)境,這意味著操作者的活動空間受到極大限制;而 B/S 架構(gòu)則不需要專門的操作環(huán)境,在任何地方,只要能上網(wǎng),就能夠操作該系統(tǒng)。對基于網(wǎng)絡(luò)的商品銷售系統(tǒng)的設(shè)計開發(fā),可以為完整的大型商務(wù)網(wǎng)站開發(fā)積累大量的經(jīng)驗。 國內(nèi)外發(fā)展現(xiàn)狀 基于網(wǎng)絡(luò)的商品銷售管理系統(tǒng),它是網(wǎng)上商務(wù)活動的產(chǎn)物,代表了未來零售業(yè)的走向。利用簡單、便捷、低成本的電子通信方式,買賣雙方不見面就可以進行各種商貿(mào)活動。 Management system。 畢 業(yè) 論 文 基于網(wǎng)絡(luò)超市商品銷售管理系統(tǒng)的設(shè)計與實現(xiàn) 論文作者姓名: 申請學位專業(yè): 網(wǎng)絡(luò)工程 申請學位類別: 指導教師姓名(職稱): 論文提交日期: 基于網(wǎng)絡(luò)超市商品銷售管理系統(tǒng)的設(shè)計與實現(xiàn) 摘 要 隨著互聯(lián)網(wǎng)日益深入我們的生活,網(wǎng)上商品銷售的方式也逐漸被人們所接受,因而集成銷售管理功能的網(wǎng)上銷售系統(tǒng)也顯得更加重要而實用。 關(guān)鍵詞: 網(wǎng)絡(luò)超市;管理系統(tǒng); JSP; JavaBean; Servlet The Design and Implement of the System of Trade and Management of Products based on Online Supermarket Abstract As the close link of Inter with our lives, the online trading has been accepted by people gradually. So the online integrating system of trade and management bees very important and useful. Therefore, this project designs the system of trade and management of products based on online supermarket. At the beginning, the paper introduces the origin, development and the current situation of the system of trade and management of products briefly. Then it describes some key technologies simply being used by the system. Finally, the system has been analyzed from several aspects, such as the analysis of requirement, designs of the whole system, database design and the implementation of system by using the methods of software engineering. Meanwhile, this project implements the functions which the system requires, including the catalogs, user registration, user login, shopping cart, order inquiry, maintenance and management of system and so on. The system builds this online shopping system based on HTML, JSP and SQL Server database. In the process of designing system, the thinking of modularization of pages and threelayer structure is adopted in the project. The operation of database is made by using JavaBean. Servlets are used to achieve some parts of the system, such as the trade management and system maintenance. But lots of improvements should be made for this system, especially the security issue which is not solved properly. Key words: Online Supermarket。商