資源簡(jiǎn)介
網(wǎng)上書店系統(tǒng),采用ASP.NET+C#+SQL2000 并采用三層架構(gòu),可以直接拿來用,保證質(zhì)量

代碼片段和文件信息
using?System;
using?System.Data;
using?System.Configuration;
using?System.Collections;
using?System.Web;
using?System.Web.Security;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.WebControls.WebParts;
using?System.Web.UI.HtmlControls;
public?partial?class?CheckOut?:?System.Web.UI.Page
{
????protected?void?Page_Load(object?sender?EventArgs?e)
????{
????????if?(billingForm.Address?==?null)
????????{
????????????//如果帳戶地址中沒有信息
????????????//可以提取Profile中的信息為其賦值
????????????billingForm.Address?=?Profile.AccountInfo;
????????}
????}
????///?
????///?當(dāng)用戶選擇“與帳戶地址相同”復(fù)選框時(shí)
????///?用帳戶地址的內(nèi)容填充送貨地址
????///?
????protected?void?chkShipToBilling_CheckedChanged(object?sender?EventArgs?e)
????{
????????if?(chkShipToBilling.Checked)
????????????shippingForm.Address?=?billingForm.Address;
????}
????protected?void?Wizard1_NextButtonclick(object?sender?WizardNavigationEventArgs?e)
????{
????????//如果當(dāng)前是第3步,則顯示帳戶地址和送貨地址
????????if?(Wizard1.ActiveStepIndex?==?2)
????????{
????????????//帳戶地址
????????????billingConfirm.Address?=?billingForm.Address;
????????????//送貨地址
????????????shippingConfirm.Address?=?shippingForm.Address;
????????????//總價(jià)格
????????????ltlTotal.Text?=?Profile.ShoppingCart.Total.ToString(“c“);
????????}
????}
????protected?void?Wizard1_FinishButtonclick(object?sender?WizardNavigationEventArgs?e)
????{
????????//首先判斷購(gòu)物籃中的商品數(shù)目是否大于0
????????if?(Profile.ShoppingCart.CartItems.Count?>?0)
????????{
????????????if?(Profile.ShoppingCart.Count?>?0)
????????????{
????????????????//?綁定購(gòu)物籃內(nèi)容到顯示控件
????????????????CartListOrdered.Bind(Profile.ShoppingCart.CartItems);
????????????????//?創(chuàng)建訂單
????????????????OrderInfo?order?=?new?OrderInfo(int.MinValue?DateTime.Now.Date?User.Identity.Name?GetCreditCardInfo()?billingForm.Address?shippingForm.Address?Profile.ShoppingCart.Total?Profile.ShoppingCart.GetOrderLineItems());
????????????????//?保存訂單
????????????????Order?newOrder?=?new?Order();
????????????????newOrder.Insert(order);
????????????????//清空購(gòu)物籃
????????????????Profile.ShoppingCart.Clear();
????????????????Profile.Save();
????????????}
????????????lblMsg.Text?=?“您的訂單已經(jīng)提交,謝謝購(gòu)買本站圖書!“;
????????}
????????else
????????{
????????????lblMsg.Text?=?“
不能提交訂單,因?yàn)槟馁?gòu)物籃為空.
nkNewUser?href=Default.aspx>繼續(xù)購(gòu)物“;
????????}
????}
????///?
????///?獲取付款信息
????///?
????private?PayInfo?GetCreditCardInfo()
????{
????????return?PayControl1.Pay;
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????8184??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\數(shù)據(jù)庫(kù)腳本\BookShop.sql
?????文件????3145728??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\數(shù)據(jù)庫(kù)\BookShop.mdf
?????文件????1048576??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\數(shù)據(jù)庫(kù)\BookShop_log.ldf
?????文件???????2746??2006-11-22?11:45??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\CheckOut.aspx
?????文件???????2878??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\CheckOut.aspx.cs
?????文件???????2004??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\Default.aspx
?????文件???????1646??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\Default.aspx.cs
?????文件????????578??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\Login.aspx
?????文件????????406??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\Login.aspx.cs
?????文件???????1288??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\Manager.aspx
?????文件????????408??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\Manager.aspx.cs
?????文件???????2250??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\MasterPage.master
?????文件???????1878??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\MasterPage.master.cs
?????文件???????2130??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\RegisterPage.aspx
?????文件????????515??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\RegisterPage.aspx.cs
?????文件??????13126??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\st
?????文件???????1468??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\UserProfile.aspx
?????文件????????771??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\UserProfile.aspx.cs
?????文件???????2801??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\Web.Config
?????文件????????447??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\test.aspx
?????文件????????405??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\test.aspx.cs
?????文件?????????93??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\images\button-calculate.gif
?????文件?????????61??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\images\button-delete.gif
?????文件???????1040??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\controls\AddCategory.ascx
?????文件????????894??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\controls\AddCategory.ascx.cs
?????文件????????680??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\controls\AddressConfirm.ascx
?????文件???????1318??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\controls\AddressConfirm.ascx.cs
?????文件???????3380??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\controls\AddressForm.ascx
?????文件???????2434??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\controls\AddressForm.ascx.cs
?????文件????????622??2006-11-22?11:46??網(wǎng)上書店系統(tǒng)\SQL?Server2005源代碼\controls\CartList.ascx
............此處省略159個(gè)文件信息
評(píng)論
共有 條評(píng)論