



版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、_綜合實(shí)訓(xùn) ( 課程設(shè)計(jì) ) 項(xiàng)目ASP.NET專業(yè):計(jì)算機(jī)應(yīng)用技術(shù)課程名稱:ASP.NET系部:計(jì)算機(jī)與信息工程系班級:091311指導(dǎo)教師:高 祖 彥完成時(shí)間:2011-11-22學(xué)生姓名:談銳學(xué)號:09131120精品資料_恩施職業(yè)技術(shù)學(xué)院學(xué)生綜合實(shí)訓(xùn)(課程設(shè)計(jì))評分表學(xué)生姓名談銳專業(yè)計(jì)算機(jī)應(yīng)用班級091311課程名稱A綜合實(shí)訓(xùn)項(xiàng)目(課程設(shè)計(jì)題B2C目 )完成時(shí)間2011-11-22實(shí)訓(xùn)總結(jié)通過這次實(shí)驗(yàn)我自己動(dòng)手用做了一個(gè)電子商務(wù)網(wǎng)(設(shè)計(jì)說明)站,在制作的過程中我學(xué)到了許多知識,為以后的工作打下良好摘要的基礎(chǔ)。指導(dǎo)教師意見指導(dǎo)教師簽字:年月日綜合實(shí)訓(xùn)(課程設(shè)計(jì))成績精品資料_數(shù)據(jù)庫名:
2、db_NetStore表名: sysdiagrams1序號列名數(shù)據(jù)類型長度小數(shù)位標(biāo)識主鍵允許空默認(rèn)值說明1namesysname2560否2principal_idint40否3diagram_idint40是是否4versionint40是5definitionvarbinaryMAX0是表名: tb_Admin序號列名數(shù)據(jù)類型長度小數(shù)位標(biāo)識主鍵允許空默認(rèn)值說明1AdminIDint40是是否2AdminNamevarchar500否3Passwordvarchar500否4RealNamevarchar500否5Emailvarchar500否6LoadDatedatetime83否get
3、date表名: tb_BookInfo序號列名數(shù)據(jù)類型長度小數(shù)位標(biāo)識主鍵允許空默認(rèn)值說明1BookIDint40是是否2ClassIDint40否3BookNamevarchar500否4BookIntroducentext160否5Authorvarchar500否6Companyvarchar500否7BookUrlvarchar2000否8MarketPricefloat80否9HotPricefloat80否10Isrefinementbit10否11IsHotbit10否12IsDiscountbit10否13LoadDatedatetime83否getdate表名: tb_Clas
4、s精品資料_序號列名數(shù)據(jù)類型長度小數(shù)位標(biāo)識主鍵允許空默認(rèn)值說明1ClassIDint40是是否2ClassNamevarchar500否3CategoryUrlvarchar500否表名: tb_Detail序號列名數(shù)據(jù)類型長度小數(shù)位標(biāo)識主鍵允許空默認(rèn)值說明1DetailIDint40是是否2BookIDint40否3Numint40否4OrderIDint40否5TotailPricefloat80否6Remarkvarchar2000是表名: tb_Image序號列名數(shù)據(jù)類型長度小數(shù)位標(biāo)識主鍵允許空默認(rèn)值說明1ImageIDint40是是否2ImageNamevarchar500否3Ima
5、geUrlvarchar2000否表名: tb_LeaveWord序號列名數(shù)據(jù)類型長度小數(shù)位標(biāo)識主鍵允許空默認(rèn)值說明1IDint40是是否2Uidnvarchar500否3Subjectnvarchar500否4Contentntext160是5DateTimedatetime83否6IPnvarchar200否表名: tb_Member序號列名數(shù)據(jù)類型長度小數(shù)位標(biāo)識主鍵允許空默認(rèn)值說明1MemberIDint40是是否2UserNamevarchar500否3Passwordvarchar500否4RealNamevarchar500否精品資料_5Sexbit10否6Phonecodevar
6、char200否7Emailvarchar500否8Addressvarchar2000否9PostCodechar100否10LoadDatedatetime83否getdate表名: tb_OrderInfo序號列名數(shù)據(jù)類型長度小數(shù)標(biāo)識主鍵允許默認(rèn)值說明位空1OrderIDint40是是否2OrderDatedatetime83否getdate3BooksFeefloat80否4ShipFeefloat80否5TotalPricefloat80否6ShipTypevarchar500否7ReceiverNamevarchar500否8ReceiverPhonevarchar200否9Rec
7、eiverPostCodechar100否10ReceiverAddressvarchar2000否11ReceiverEmailvarchar500否12IsConfirmbit10否013IsSendbit10否014IsEndbit10否015AdminIDint40是16ConfirmTimedatetime83是表名: tb_Reply序號列名數(shù)據(jù)類型長度小數(shù)位標(biāo)識主鍵允許空默認(rèn)值說明1IDint40是是否2UNamenvarchar500是3Contentntext160是4DateTimedatetime83是5ReplyIDint40是6IPnvarchar200是精品資料_u
8、sing System;using System.Data;using System.Configuration;using System.Web;using System.Collections;CommonClass ccObj = new CommonClass();GoodsClass gcObj = new GoodsClass();protected void Page_Load(object sender, EventArgs e)if (!IsPostBack)RefineBind();HotBind();DiscountBind();/ 綁定市場價(jià)格public string
9、 GetVarMKP(string strMarketPrice)精品資料_return ccObj.VarStr(strMarketPrice, 2);/ 綁定熱賣價(jià)格public string GetVarHot(string strHotPrice)return ccObj.VarStr(strHotPrice, 2);protected void RefineBind()gcObj.DLDeplayGI(1, this.dLRefine, "Refine");protected void HotBind()gcObj.DLDeplayGI(3, this.dlHot
10、, "Hot");protected void DiscountBind()gcObj.DLDeplayGI(2, this.dlDiscount, "Discount");public void AddressBack(DataListCommandEventArgs e)Session"address" = ""Session"address" = "Default.aspx"Response.Redirect("/showInfo.aspx?id="
11、 +protected void dLRefine_ItemCommand(object source, DataListCommandEventArgs e)if (e.CommandName = "detailSee")AddressBack(e);else if (e.CommandName = "buy")AddShopCart(e);protected void dlDiscount_ItemCommand(object source, DataListCommandEventArgs e)精品資料_if (e.CommandName = &q
12、uot;detailSee")AddressBack(e);else if (e.CommandName = "buy")AddShopCart(e);protected void dlHot_ItemCommand(object source, DataListCommandEventArgs e)if (e.CommandName = "detailSee")AddressBack(e);else if (e.CommandName = "buy")AddShopCart(e);/ <summary>/ 向購
13、物車中添加新商品/ </summary>/ <param name="e">/ 獲取或設(shè)置可選參數(shù),/ 該參數(shù)與關(guān)聯(lián)的 CommandName/ 一起被傳遞到 Command事件。/ </param>public void AddShopCart(DataListCommandEventArgs e)Hashtable hashCar;if (Session"ShopCart" = null)/如果用戶沒有分配購物車hashCar = new Hashtable();/新生成一個(gè)hashCar.Add(e.Comman
14、dArgument, 1); /添加一個(gè)商品Session"ShopCart" = hashCar;/分配給用戶else/用戶已經(jīng)有購物車精品資料_hashCar = (Hashtable)Session"ShopCart"/得到購物車的hash表if (hashCar.Contains(e.CommandArgument)/購物車中已有此商品,商品數(shù)量加 1int count =Convert.ToInt32(hashCare.CommandArgument.ToString();/得到該商品的數(shù)量hashCare.CommandArgument =
15、(count + 1);/商品數(shù)量加 1elsehashCar.Add(e.CommandArgument,1);/如果沒有此商品,則新添加一個(gè)項(xiàng)protected void Button1_Click(object sender, EventArgs e)using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;精品資料_CommonClass ccObj = new CommonClass();DBClass dbObj = new DBClass(
16、);protected void Page_Load(object sender, EventArgs e)if (!IsPostBack)產(chǎn)生驗(yàn)證碼protected void btnLogin_Click(object sender, EventArgs e)/ 判斷用戶是否已輸入了必要的信息Response.Write(ccObj.MessageBox("登錄名和密碼不能為空!");else/判斷用戶輸入的驗(yàn)證碼是否正確/定義一個(gè)字符串,獲取用戶信息string strSql = "select * from tb_Admin whereDataTable
17、dsTable=dbObj.GetDataSetStr(strSql, "tbAdmin");Session"AID" =Convert.ToInt32(dsTable.Rows00.ToString();/ 保存用戶 ID Session"AName" =dsTable.Rows01.ToString();/保存用戶名Response.Write("<scriptlanguage=javascript>window.open('AdminIndex.aspx');window.close();&
18、lt;/s精品資料_cript>");elseResponse.Write(ccObj.MessageBox("您輸入的用戶名或密碼錯(cuò)誤,請重新輸入!");elseResponse.Write(ccObj.MessageBox(" 驗(yàn)證碼輸入有誤,請重新輸入! ");protected void btnCancel_Click(object sender, EventArgs e)Response.Write("<script>window.close();location='javascript:histo
19、ry.g o(-1)'</script>");精品資料_精品資料_using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;精品資料_CommonClass ccObj = new CommonClass();DBClass dbObj = new DBClass();protected void Page_Load(object sender, EventArgs e)if (!IsPostBack)if (Session"UserName" = null)
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 大棚辣椒多種常發(fā)病蟲害的發(fā)生特點(diǎn)及針對性高效防治措施
- 黑龍江省大慶市肇源縣開學(xué)聯(lián)考2024-2025學(xué)年七年級下學(xué)期開學(xué)考試歷史試題(原卷版+解析版)
- 住房保障與城鎮(zhèn)化的相互促進(jìn)策略
- 智能制造的生態(tài)系統(tǒng)與平臺的策略及實(shí)施路徑
- 智研咨詢發(fā)布:LED路燈行業(yè)市場動(dòng)態(tài)分析、發(fā)展方向及投資前景分析報(bào)告
- 2025年中國靈巧手行業(yè)市場規(guī)模、行業(yè)集中度及發(fā)展前景研究報(bào)告
- 【專精特新】AI芯片企業(yè)專精特新“小巨人”成長之路(智研咨詢)
- 土壤污染防治策略與路徑
- 核心素養(yǎng)視域下高中政治活動(dòng)課教學(xué)的實(shí)踐與研究
- 2025年全液壓自行式大口徑工程鉆機(jī)項(xiàng)目建議書
- 天堂旅行團(tuán)讀書分享
- 室內(nèi)裝潢與裝修的危險(xiǎn)源辨識與風(fēng)險(xiǎn)評估
- 護(hù)理安全警示教育案例完整版
- 醫(yī)療保險(xiǎn)異地就醫(yī)登記備案表
- MAXIMO系統(tǒng)介紹課件
- 《雇主責(zé)任險(xiǎn)》課件
- 煙花爆竹經(jīng)營安全培訓(xùn)課件
- 人為因素和航空法規(guī)-第二版-第1章
- 動(dòng)漫設(shè)計(jì)與制作專業(yè)實(shí)訓(xùn)室建設(shè)方案
- 初中英語翻譯專題訓(xùn)練題100題含答案
- 教科版科學(xué)五年級下冊第一單元《生物與環(huán)境》測試卷含答案(精練)
評論
0/150
提交評論