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

正文內(nèi)容

網(wǎng)上書店的構(gòu)建與實現(xiàn)論文-閱讀頁

2024-11-25 23:02本頁面
  

【正文】 ver2020 數(shù)據(jù)庫的建立存儲在 中 CREATE DATABASE bookshop。 CREATE TABLE IF NOT EXISTS T_Book( /*商店圖書表 */ BookID int , ISBN char(13) NOT NULL primary key, /*ISBN 序列號 */ BookName varchar(40) NOT NULL, /*書名 */ BookClassNo char(2) not null, /*圖書類別 NO*/ Author varchar(25) NULL, /*作者 */ Publish varchar(150) NULL, /*出版社 */ Content char(200) NULL default 暫缺 , /*內(nèi)容介紹 */ Price float NOT NULL, /*書價 */ Number int not NULL, /*數(shù)量 */ Date datetime /*入庫時間 */ )。 CREATE TABLE IF NOT EXISTS T_Customers ( /*購書用戶表 */ UserId varchar(20) not null primary key, /*用戶 ID*/ PassWord varchar(20) not null, /*用戶密碼 */ Names varchar(20) not null, /*用戶聯(lián)系用姓名 */ Sex char(2), /*用戶性別 */ Address varchar(150), /*用戶聯(lián)系地址 */ Phone varchar(25), /*用戶聯(lián)系電話 */ Post varchar(8), /*用戶聯(lián)系郵編 */ Email varchar(50), /*用戶電子郵件 */ RegTime DateTime, /*用戶注冊時間 */ IDCardNO char(20) not null, /*身份證 */ Grade char(8) not null default 普通用戶 , /*用戶級別 */ BuyMon float not null default 0 /*購書總金額 */ )。 insert into T_BookAdminuser values(39。,39。)。 CREATE TABLE IF NOT EXISTS T_IndentList( /*購物車訂單貨物列表 */ ID int not null, /*ID 序列號 */ IndentNo int not null, /*訂單編號 */ 17 ISBN char(13) not null, /*ISBN*/ BookName varchar(40) not null, /*書名 */ Amount int /*訂貨數(shù)量 */ )。 CREATE TABLE IF NOT EXISTS T_Discount( /*折扣 */ Grade char(8) not null primary key, /*用戶級別 */ Account float default /*享受的折扣 */ )。 CREATE TABLE IF NOT EXISTS T_Lack( /*缺貨列表 */ ISBN char(13) not null primary key, /*ISBN*/ Number int default 1 /*缺少的數(shù)量 */ )。 界面的設(shè)計應(yīng)該有輸入簡單,立即反饋,風格統(tǒng)一,色彩時中等特點。本書店采用清新淡雅的淡藍色、白色作為主色調(diào),這兩種顏色比較柔和。白色為底色則能夠很好的突出圖書的封面和內(nèi)容,使網(wǎng)站內(nèi)容易于閱讀,不會造成讀者的視覺疲勞。 18 3 網(wǎng)上書店系統(tǒng)的實現(xiàn) 網(wǎng)站首頁 進入網(wǎng)上書店的第一個界面是本站的首頁 如圖 所示。標頭下邊是快速搜索區(qū)域,由一個文本框、一個下拉列表、一個圖標按鈕組成。填好關(guān)鍵 字并在下拉列表中選出要查詢的字段后點擊“ GO”字樣的圖標按鈕可以進行模糊搜索。首頁左邊是用戶登錄區(qū)和書籍分類。非注冊會員可以點擊“注冊”轉(zhuǎn)到注冊頁面進行注冊,也可以瀏覽本站信息或通過查詢找到需要的圖書信息。首頁的中間分為兩部分:上半部分是新書顯示區(qū)域;下半部 分是熱門書籍區(qū)域。首頁的右邊是網(wǎng)站公告欄(用于發(fā)布新聞)和特價書籍排行榜。新書、熱門書、特價書、本站公告等動態(tài)模塊分別是同過定義、 、 、 幾個用戶控件并在主頁中引用來實現(xiàn)的。點擊個人信息,可以修改個人信息、修改密碼、查看已訂購貨物列表及 詳細信息。圖書類別由下拉列表框中選出。填好檢索信 圖 復合檢索頁面 息后點擊“ GO”從數(shù)據(jù)庫中模糊檢索出信息。在會員登錄后,可以將會員名稱等信息保存到 Session 對象中。 ( 2)書籍信息放入購物車 當會員看到合適的書籍時單擊詳細信息顯示頁面 (例如圖 )中的“購買” (add to cart),系統(tǒng)將自動調(diào)用 頁面,將信息放入購物車中。在購物車頁面中,用戶可以更改書籍的購買數(shù)量,也可以把書籍從購物車中刪除。點擊 checkout(提交訂單)。 } private void Page_Load(object sender, e) { if(Session[aplloinfo_UserID]==null) ()。S ShoppingCart!。S Shopping Cart!。 } } public void UpdateBtn_Click(Object sender,EventArgs e) 21 { // Update the Shopping Cart and then Repopulate the List UpdateShoppingCartDatabase()。 } public void CheckoutBtn_Click(Object sender,EventArgs e) { // Update Shopping Cart UpdateShoppingCartDatabase()。 // Calculate shopping cart ID String cartId = ()。t empty, navigate to checkout page if ((cartId) !=0) { ()。 } } void PopulateShoppingCartList() { cart = new ()。s shopping cart ID String cartId = ()。 = 目前購物車中沒有貨物 .。 ()。 ()。 // Obtain current user39。 // Iterate through all rows within shopping cart list for (int i=0。 i++) { // Obtain references to row39。 CheckBox remove = (CheckBox) [i].FindControl(Remove)。 try { quantity = ()。 if (quantity == 0 || == true) { (cartId, ())。 } } } catch { = 您的輸入有一個或更多的問題 .。 // If the user is authenticated, use their UserId as a permanent shopping cart id if ( != ) { return 。 } else { // Generate a new random GUID using Class Guid tempCartId = ()。 // Return tempCartId return ()。 OleDbDataAdapter Adpt = new OleDbDataAdapter()。 Adpt = new OleDbDataAdapter(select Count(BookNo) as Item_Count from ShoppingCart where BookNo=+BookNo+ and CartID=39。,myConnection)。 if((int)[0].Rows[0][Item_Count]0) { Adpt = new OleDbDataAdapter(update ShoppingCart set =(+Quantity++) where BookNo=+BookNo+ and CartID=39。,myConnection)。 } else { Adpt = new OleDbDataAdapter(insert into ShoppingCart(CartID,Quantity,BookNo) values (39。,+Quantity+,+BookNo+),myConnection)。 } } public int GetItemCount(string cartID) { DataSet Ds = new DataSet()。 // Create Instance of Connection and Command Object OleDbConnection myConnection = new OleDbConnection([ConnectionString]+Configura[DbName])。+cartID+39。 (Ds)。 } public OleDbDataReader GetItems(string cartID) { // Create Instance of Connection and Command Object OleDbConnection myConnection = new OleDbConnection([ConnectionString]+Configura[DbName])。+cartID+39。 // Execute the mand ()。 // Return the datareader result return result。 OleDbCommand myCommand = new OleDbCommand(delete from ShoppingCart where CartID = 39。 and BookNo = +BookNo+ , myConnection)。 ()。 } 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)。 OleDbCommand myCommand = new OleDbCommand(update ShoppingCart set Quantity = +Quantity+ where CartID = 39。 AND BookNo = +BookNo+ , myConnection)。 ()。 } ?? ?? } 促銷 網(wǎng)上書店促銷的實現(xiàn)機制主要有兩類: ( 1)預先處理的促銷 主要通過特價書籍的方式來實現(xiàn)。管理員登錄后進入調(diào)整特價界面。 ( 2)動態(tài)處理的促銷 根據(jù)用戶購買的書籍多少來進行促銷,采取多買多折的原則,顧客購買書籍越多越便宜。在會員信息管理中,管理員可以查詢到購買書籍累計金額超過一定數(shù)量的會員,修改它們的用戶級別,點擊“保存”,系統(tǒng)把修改信息保存到數(shù)據(jù)庫。 后臺管理 管理員對后臺管理的登錄成功后的界面如圖 所示。還可以發(fā)布新書、添加書籍的類別(也可以在添加新書時添加類別),此外還有添加新聞、修改新聞和會員信息管理
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1