【正文】
, )。 //合并購物車 (TempCartID,UserID)。 //重定向到購物車界面 ()。 } } 調(diào)用了一個(gè)存儲過程 spShoppingCartMigrate. CREATE PROCEDURE ( OldCartID VARCHAR(50), NewCartID VARCHAR(50) ) AS UPDATE ShoppingCart SET CartID = NewCartID WHERE CartID = OldCartID GO 在用戶注冊的時(shí)候需要輸入電話號碼,電話號碼采用了一個(gè)正則表達(dá)式,只有輸入正確的格式才能注冊,否則將提示錯(cuò)誤信息。 注銷的實(shí)現(xiàn)過程:通過調(diào)用 .NET 的一個(gè)控件 ()來完成。 ()。 主要實(shí)現(xiàn)過程: 1)獲取當(dāng)前用戶的 OrderID 2)利用 ShoppingCart 表和 Flower 表的內(nèi)聯(lián)接,將 當(dāng)前用戶的當(dāng)前購物車復(fù)制到當(dāng)前所產(chǎn)生的訂單詳情中 3)利用 OrderDetails 表和 Flower 表的內(nèi)聯(lián)接,扣除 Flower表中的鮮花庫存 4) 調(diào)用另一存儲過程 spShoppingCartEmpty 將購物車清空 圖 10 下訂單 主要代碼如下 : CREATE PROCEDURE 圖 11 訂單詳情 ( UserID INT, CartID NVARCHAR(50), Address VARCHAR(50), PostCode CHAR(10), Telephone VARCHAR(50), OrderID INT OUTPUT ) AS BEGIN TRAN OrdersInsert /* 產(chǎn)生訂單 */ INSERT INTO Orders ( UserID, Address, PostCode, Telephone, OrderDate ) VALUES ( UserID, Address, PostCode, Telephone GETDATE() ) 返回當(dāng)前所產(chǎn)生的 OrderID SELECT OrderID = Identity /* 將當(dāng)前用戶的當(dāng)前購物車復(fù)制到當(dāng)前所產(chǎn)生的訂單詳情中 */ INSERT INTO OrderDetails ( OrderID, FlowerID, Quantity ) SELECT OrderID, , Quantity FROM ShoppingCart INNER JOIN Flower ON = WHERE CartID = CartID /*扣除相應(yīng)的庫存鮮花數(shù)量 */ UPDATE Flower SET FlowerStock = FlowerStock FROM OrderDetails INNER JOIN Flower ON = WHERE = OrderID /* 完成后 , 調(diào)用另一存儲過程 spShoppingCartEmpty 清空當(dāng)前購物車 ID 的所有明細(xì) */ EXEC spShoppingCartEmpty CartID COMMIT TRAN OrdersInsert GO 其中調(diào)用了一個(gè)存儲過程 spShoppingCartEmpty 主要代碼如下 : CREATE Procedure spShoppingCartEmpty ( CartID nvarchar(50) ) AS DELETE FROM ShoppingCart WHERE CartID = CartID GO 撤消訂單 客戶可以在規(guī)定的時(shí)間內(nèi)將自己所下的訂單撤消 ,如圖 12。 圖 12 撤消訂單 主要的代碼如下 : public void spCancelOrder(int iUserID, int iOrderID) { ConnOpen()。 = 。 SqlParameter Param2 = new SqlParameter(OrderID, , 4)。 (Param2)。 = iOrderID。 ConnClose()。 如果不是管理員 登錄 則不會(huì)顯示該表 ,如圖 13。 圖 13 鮮花添加刪除 主要代碼如下: try { int UserID = ()。 = true。 } catch { (?info=請先登錄或注冊! )。這些過程的討論和分析, 可以 對系統(tǒng)的體系結(jié)構(gòu),功能模塊等有了更深的了解。但系統(tǒng)仍然有一些不盡人意,而這些問題主要集中在系統(tǒng)的安全上,雖然系統(tǒng)已經(jīng)通過相關(guān)的控制語句對 登錄 用戶身份進(jìn)行驗(yàn)證,但是在當(dāng)今網(wǎng)絡(luò)信息安全中,僅僅對用戶身份驗(yàn)證是不夠的,還需要對 傳送數(shù)據(jù)進(jìn)行加密,防止數(shù)據(jù)傳輸過程中被篡改等攻擊進(jìn)行防御。 網(wǎng)上購物系統(tǒng)無論是在開發(fā)過程中,還是建成后的日常維護(hù)過程中,都需要進(jìn)行嚴(yán)格的檢測,以保證購物系統(tǒng)的服務(wù)質(zhì)量。 ( 1)把握好商品質(zhì)量和宣傳內(nèi)容環(huán)節(jié)。產(chǎn)品宣傳廣告內(nèi)容應(yīng)健康真實(shí),既要反映客觀事物又要有欣賞價(jià)值。對虛擬電子商品的審查,首先要進(jìn)行內(nèi)容正確性測試。 ② 進(jìn)行系統(tǒng)功能的測試。 ③ 對系統(tǒng)的執(zhí)行效率進(jìn)行測試。 ( 3)用戶身份確認(rèn)及商品配送 隨著網(wǎng)上購物系統(tǒng)技術(shù)的日趨成熟、網(wǎng)上購物的優(yōu)勢日趨明顯 ,會(huì)有更多的人參與到網(wǎng)上購物的浪潮中來,人類最終將迎接電子商務(wù)時(shí)代的來臨。 [2] 石志國 ,劉冬梅 . [M].北京 : 清華大學(xué)出版社和北京交通大學(xué)出版社出版 ,2021。 [4] [M].北京 : 清華大學(xué)出版社 ,2021。 [6] 江廣順 ,余松 . +SQL SERVER 熱門網(wǎng)絡(luò)應(yīng)用開發(fā)詳解 [M].北京:人民郵電 出版社 ,2021。 致 謝 本文是在熊淑華老師和張金全老師的熱情關(guān)心和指導(dǎo)下完成的,他們淵博的知識和嚴(yán)謹(jǐn)?shù)闹螌W(xué)作風(fēng)使我受益匪淺,對順利完成本課題起到了極大的作用。文中除了特別加以標(biāo)注地方外,不包含他人已經(jīng)發(fā)表或撰寫過的研究成果,也不包含為獲得成都信息工程學(xué)院或其他教學(xué)機(jī)構(gòu)的學(xué)位或證書而使用過 的材料。 關(guān)于學(xué)位論文使用權(quán)和研究成果知識產(chǎn)權(quán)的說明: 本人完全了解成都信息工程學(xué)院有關(guān)保管使用學(xué)位論文的規(guī)定,其中包括: ( 1)學(xué)校有權(quán)保管并向有關(guān)部門遞交學(xué)位論文的原件與復(fù)印件。 ( 3)學(xué)校可以學(xué)術(shù)交流為目的復(fù)制、贈(zèng)送和交換學(xué)位論文。 ( 5)學(xué)??梢怨紝W(xué)位論文的全部或部分內(nèi)容(保密學(xué)位論文在解密后遵守此規(guī)定)。 特此聲明! 作者簽名: 年 月 日 54 Of Vainglory It was prettily devised of Aesop。s really a pleasure now and then to bee a mere nothing, especially when a man is as highly placed as I am. And then to think that we all, even with patent lacquer, are nothing more than insects of a moment on that anthill the earth, though we may be insects with stars and garters, places and offices! One feels quite a novice beside these venerable millionyearold boulders. On last New Year39。s diversion, namely, the wild hunt to Amack. Ah, you don39。s eve, to the Brocken。s night through the air to Amack. They sit backwards on their painting b all lapse of time, and had bee a cipher and a nothing. Then three alone, or moveth upon greater means, if the y have never so little hand in it, they think it is they that carry it They that are glorious, must needs be factious。 but according to die French proverb。 there are som etimes great effects of cross lies。 for as iron sharpens iron, so by glory one courage sharpeh another. In cases of great enterprise, upon charge and adventure, a position of glorious natures doth put life into business。s memory。 omnium, quae cHxerat jeceratque, arte quadam ostentator: for that proceeds not of vanity, but of natural magnanimity, and discretion: and in some persons is not only ely, but gracious. For excusations, cessions, modesty itself well governed, are but arts of ostentation. And amongst those arts there is none be tter, than that which Plinius Secundus speaketh of。s self hath any perfection. For saith Pliny very wittily。 for he that you mend, is either superior to you, in that you mend, or inferior. If he be inferior, if he be to be mended, you much more。 the admiration of fools。 and the slaves of their own vaunts. LastIndexNext And now having spoken of assaults, let us sum up all acts ofviolence under a single law, which shall be as follows:No one shallta ke or carry away any of his neighbour39。s without the consent of theowner。 and especially greatwhen in violation of public and holy rites, or of the partly monrites in which tribes and phratries share。 the fourth kind of violence iswhen any one, regardless of the author ity of the rulers, takes orcarries away or makes use of anything which belongs to them, nothaving their consent。 but he who did must have supposed one of threethingseither that they did not exist