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

正文內容

網(wǎng)上書店的構建與實現(xiàn)論文-資料下載頁

2024-11-05 23:02本頁面

【導讀】隨著因特網(wǎng)的興起和普及,全球的電子商務得到了迅速的發(fā)展。這種具有強大生命力的。現(xiàn)代電子交易手段已被越來越多的人所認識和使用。發(fā)達國家很早就意識到了電子商務的巨。大魅力,投入大量的人力和物力,在電子商務的各領域開展研究。我國也在加緊制定整體的。勢,特別是在我國加入WTO以來,與世界經(jīng)濟的同步已成為我國經(jīng)濟發(fā)展的目標。子商務系統(tǒng),才能真正體現(xiàn)電子商務的巨大魅力,為消費者創(chuàng)造一個高效、方便的購物環(huán)境,發(fā)的技術和網(wǎng)絡數(shù)據(jù)庫的知識。運用來設計與實現(xiàn)一個BtoC的網(wǎng)上書店系統(tǒng),給。出了系統(tǒng)的結構和功能的設計。

  

【正文】 = ()。 // If the cart isn39。t empty, navigate to checkout page if ((cartId) !=0) { ()。 } else { = 你不可以提交空購物車 .。 } } void PopulateShoppingCartList() { cart = new ()。 // Obtain current user39。s shopping cart ID String cartId = ()。 // If no items, hide details and display message if ((cartId) == 0) { = false。 = 目前購物車中沒有貨物 .。 } else { // Databind Gridcontrol with Shopping Cart Items = (cartId)。 ()。 //Update Total Price Label =(cartId)。 ()。 } } 22 void UpdateShoppingCartDatabase() { cart = new ()。 // Obtain current user39。s shopping cart ID String cartId = ()。 // Iterate through all rows within shopping cart list for (int i=0。 i 。 i++) { // Obtain references to row39。s controls TextBox quantityTxt = (TextBox) [i].FindControl(Quantity)。 CheckBox remove = (CheckBox) [i].FindControl(Remove)。 // Wrap in try/catch block to catch errors in the event that someone types in // an invalid value for quantity int quantity。 try { quantity = ()。 // If the quantity field is changed or delete is checked if (quantity != (int)[i] || == true) { Label lblCategory_Id = (Label) [i].FindControl(Category_Id)。 if (quantity == 0 || == true) { (cartId, ())。 } else { (cartId, (),quantity)。 } } } catch { = 您的輸入有一個或更多的問題 .。 } } } ?? ?? 23 } } (5)引用到的類( )中的部分代碼 public class ShoppingCartDB { public ShoppingCartDB() { } public String GetShoppingCartId() { // Obtain current HttpContext of ASP+ Request context = 。 // If the user is authenticated, use their UserId as a permanent shopping cart id if ( != ) { return 。 } // If user is not authenticated, either fetch (or issue) a new temporary cartID if ([applloinfo_CartID] != null) { return [applloinfo_CartID].Value。 } else { // Generate a new random GUID using Class Guid tempCartId = ()。 // Send tempCartId back to client as a cookie [applloinfo_CartID].Value = ()。 // Return tempCartId return ()。 } } public void AddItem(string cartID, int BookNo, int Quantity) { DataSet Ds = new DataSet()。 OleDbDataAdapter Adpt = new OleDbDataAdapter()。 OleDbConnection myConnection = new OleDbConnection([ConnectionString]+Configura[DbName])。 Adpt = new OleDbDataAdapter(select Count(BookNo) as Item_Count from ShoppingCart where BookNo=+BookNo+ and CartID=39。+cartID+39。,myConnection)。 24 (Ds)。 if((int)[0].Rows[0][Item_Count]0) { Adpt = new OleDbDataAdapter(update ShoppingCart set =(+Quantity++) where BookNo=+BookNo+ and CartID=39。+cartID+39。,myConnection)。 (Ds)。 } else { Adpt = new OleDbDataAdapter(insert into ShoppingCart(CartID,Quantity,BookNo) values (39。+cartID+39。,+Quantity+,+BookNo+),myConnection)。 (Ds)。 } } public int GetItemCount(string cartID) { DataSet Ds = new DataSet()。 OleDbDataAdapter Adpt = new OleDbDataAdapter()。 // Create Instance of Connection and Command Object OleDbConnection myConnection = new OleDbConnection([ConnectionString]+Configura[DbName])。 Adpt = new OleDbDataAdapter(select count(BookNo) as ItemCount from ShoppingCart where cartID=39。+cartID+39。 ,myConnection)。 (Ds)。 return ((int)[0].Rows[0][ItemCount])。 } public OleDbDataReader GetItems(string cartID) { // Create Instance of Connection and Command Object OleDbConnection myConnection = new OleDbConnection([ConnectionString]+Configura[DbName])。 OleDbCommand myCommand = new OleDbCommand(select Item_Title,Brand, ,Shoppin,(Cost * ) as ExtendedAmount from Categories,Store_Manage,ShoppingCart where = and = and =39。+cartID+39。 order by Title,Model, myConnection)。 // Execute the mand ()。 OleDbDataReader result = 25 ()。 // Return the datareader result return result。 } public void RemoveItem(string cartID, int BookNo) { // Create Instance of Connection and Command Object OleDbConnection myConnection = new OleDbConnection([ConnectionString]+Configura[DbName])。 OleDbCommand myCommand = new OleDbCommand(delete from ShoppingCart where CartID = 39。+cartID+39。 and BookNo = +BookNo+ , myConnection)。 // Open the connection and execute the Command ()。 ()。 ()。 } public void UpdateItem(string cartID, int BookNo, int Quantity) { // throw an exception if quantity is a negative number if (Quantity 0) { throw new Exception(數(shù)量不可以小于 0)。 } // Create Instance of Connection and Command Object OleDbConnection myConnection = new OleDbConnection([ConnectionString]+Configura[DbName])。 OleDbCommand myCommand = new OleDbCommand(update ShoppingCart set Quantity = +Quantity+ where CartID = 39。+cartID+39。 AND BookNo = +BookNo+ , myConnection)。 // Open the connection and execute the Command ()。 ()。 ()。 } ?? ?? } 促銷 網(wǎng)上書店促銷的實現(xiàn)機制主要有兩類: ( 1)預先處理的促銷 主要通過特價書籍的方式來實現(xiàn)。選定一些圖書在一定時間內 以較優(yōu)惠的價格銷售。管理員登錄后進入調整特價界面。填入查詢條件可以搜索出已經(jīng)為特價的圖書將其修改回原 26 價,也可以搜索出要調整成為特價的圖書修改其價格變?yōu)樘貎r圖書。 ( 2)動態(tài)處理的促銷 根據(jù)用戶購買的書籍多少來進行促銷,采取多買多折的原則,顧客購買書籍越多越便宜。這一功能通過兩個模塊來實現(xiàn): 、 。在會員信息管理中,管理員可以查詢到購買書籍累計金額超過一定數(shù)量的會員,修改它們的用戶級別,點擊“保存”,系統(tǒng)把修改信息保存到數(shù)據(jù)庫。在折扣管理中,管理員 可以修改不同等級用戶可以享受的折扣率,在文本框中填寫不同的 01 間的小數(shù)后,點擊“保存”系統(tǒng)把信息存到數(shù)據(jù)庫中。 后臺管理 管理員對后臺管理的登錄成功后的界面如圖 所示。在此界面中,管理員可已查看應經(jīng)處理后的訂單,也可以處理用戶新下的訂單。還可以發(fā)布新書、添加書籍的類別(也可以在添加新書時添加類別),此外還有添加新聞、修改新聞和會員信息管理的功能。 圖 管理員登錄后界面 個人信息修改 會員登錄后點擊個人資料進入修改
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1