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

正文內(nèi)容

畢業(yè)設(shè)計-基于aspnet的電子商務(wù)網(wǎng)上購物系統(tǒng)(編輯修改稿)

2025-01-08 19:39 本頁面
 

【文章內(nèi)容簡介】 支持 Microsoft SQL Server數(shù) 據(jù) 庫 要求必 須 安 裝 IIS 開發(fā)工具: Visual Studio .NET, Dreamwever2021, SQL SERVER 2021,flash, phtoshop 等。 限制條件 用戶只有在登陸的情況下才能購買商品,沒有登錄時只具有瀏覽和查詢商品及留言權(quán)限。 商品購買是每次只能購買一種商品但每次可以購買多個。 后臺只有一個高級管理員,必須登錄后臺后才能進入后臺界面。 想注冊為后臺管理員,必須 經(jīng)過高級管理員的審核,只有審核通過后才可以對后臺進行操作。 商品上傳時,每次只能上傳一個商品,不能批量上傳。 商品上傳時,必須與相應(yīng)的商品類相對應(yīng)。 修改商品信息時,也要把商品和商品類相對應(yīng)。 系統(tǒng)難點分析 本系統(tǒng)的難點在于購物車的實現(xiàn)和在線支付功能,我所做的購物車比較簡單,一般的購物系統(tǒng)中的購物車都比較復(fù)雜,牽扯到很多東西。另外一個就是在線支付, 10 他要生成一個流水賬號,通過網(wǎng)上銀行來進行支付,還要購物中介等很多東西。雖然他比較難, 但我還是努力向這方面發(fā)展,以強大該系統(tǒng)。進而使該系統(tǒng)更多的流通于網(wǎng)絡(luò)。 第五部份 總體設(shè)計 數(shù)據(jù)庫設(shè)計 數(shù)據(jù)庫圖 user(客戶)表 admin(管理員)表 product(商品)表 11 pclass(商品類)表 province(省份)表 city(城市)表 orders(定單)表 message(留言)表 12 注:創(chuàng)建數(shù)據(jù)庫及表的 SQL 語句及各字段表示什么意思見 (附錄一 ) 數(shù)據(jù)庫的約束與關(guān)系 管理員表與其他表沒有關(guān)系,只是存放管理員的資料信息。 用戶表與其他表也沒有關(guān)系,用來存放用戶的基本信息商品表與商品類表有關(guān),其 pclassid 為 pclass表中主鍵 pclassid 城市表與省份表有關(guān) ,其 pid 為 province 表中的主鍵 pid 定單表與其他表沒關(guān)系,只是存放定單的詳細 信息 。 留言表與其他表沒關(guān)系,用于存放留言信息 主要功能的界面和編碼 DBConn 類的編碼 實現(xiàn)數(shù)據(jù)庫的連接和關(guān)閉,及封裝的對數(shù)據(jù)庫操作的方法。 using System。 using 。 using 。 using 。 using 。 namespace webshopping { public class DBConn { private SqlConnection conn。 public DBConn() { conn=new SqlConnection([ConnStr])。 ()。 } public DBConn(string ConnStr) 13 { conn=new SqlConnection(ConnStr)。 ()。 } public void Close()//關(guān)閉數(shù)據(jù)庫連接 { ()。 conn = null。 } public SqlDataReader getDataReader(string SQLQuery) { SqlCommand cmd = new SqlCommand(SQLQuery,conn)。 return ()。 } public int Insert(string SQLQuery) { SqlCommand cmd = new SqlCommand(SQLQuery,conn)。 return ()。 } public int Update(string SQLQuery) { SqlCommand cmd = new SqlCommand(SQLQuery,conn)。 return ()。 } public int Delete(string SQLQuery) { SqlCommand cmd = new SqlCommand(SQLQuery,conn)。 return ()。 } } } 14 Order 類的編碼 獲取定單信息 using System。 namespace webshopping { public class Order { private string strOID。 private string strPID。 private string strPName。 private string strPNum。 private string strPPrice。 private string strTotalPrice。 private string strTName。 private string strEmail。 private string strPhone。 private string strPCPrice。//成本 public Order() { strOID = 。 strPID = 。 strPNum = 。 strPPrice = 。 strTotalPrice = 。 strTName = 。 strEmail = 。 strPhone = 。 strPCPrice = 。// } public void setOID(string str){ strOID = str。 } 15 public string getOID(){ return strOID。 } public void setPID(string str){ strPID = str。 } public string getPID(){ return strPID。 } public void setPName(string str){ strPName = str。 } public string getPName(){ return strPName。 } public void setPNum(string str){ strPNum = str。 } public string getPNum(){ return strPNum。 } public void setPPrice(string str){ strPPrice = str。 } public string getPPrice(){ return strPPrice。 } public void setTotalPrice(string str){ strTotalPrice = str。 } public string getTotalPrice(){ return strTotalPrice。 } public void setTName(string str){ strTName = str。 } public string getTName(){ return strTName。 } public void setEmail(string str){ strEmail = str。 } public string getEmail(){ return strEmail。 } public void setPhone(string str){ strPhone = str。 } public string getPhone(){ return strPhone。 } public void setPCPrice(string str){ strPCPrice = str。 } public string getPCPrice(){ return strPCPrice。 } } } 用戶登錄及密碼找回界面及編碼 對 panel 和數(shù)據(jù)庫連接的應(yīng)用,當(dāng)用戶輸入的用戶名和密碼與數(shù)據(jù)庫中所存放的相對應(yīng)時,允許用戶登陸。當(dāng)用戶密碼丟失時,用戶可以根據(jù)注冊是所填寫的密碼提示問題和答案來找回密碼,只有問題和答案都正確是才可以。 16 其代碼如下: private void Page_Load(object sender, e) { =false。 Session[userid]=。 } private void Button1_Click(object sender, e) { if() { if( Session[CheckCode].ToString() != () ) { (script)。 (alert(39。輸入的驗證碼有誤!請重新輸入! 39。))。 (/script)。 return。 } string username=。 string userpwd=。 DBConn mydb=new DBConn()。 string sql=select * from users where userid=39。+username+39。and pwd=39。+userpwd+39。 SqlDataReader sd。 sd=(sql)。 if(()) { 17 ()。 } else { (script alert(39。你輸入的用戶名或密碼錯誤!請重新輸入。39。)/script)。 } ()。 ()。 } } private void Button2_Click(object sender, e) { =true。 string userid=。 string uquestion=。 string uanswer=。 DBConn mydb=new DBConn()。 string sql=select * from users where userid=39。+userid+39。and question=39。+uquestion+39。and answer in(select answer from users where userid=39。+userid+39。)。 SqlDataReader sd。 sd=(sql)。 if(()) { =你的密碼為: +sd[pwd]。} else { =輸入有誤! 。} ()。 ()。 } private void LinkButton3_Click(object sender, e) { ()。 18 } private void LinkButton4_Click(object sender, e) { =false。 =true。 } 商品購買界面及編碼 只有在用戶登陸的情況下,才
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1