亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? shoppingcartdb.vb

?? 學(xué)習(xí)visual studio.net的資料!
?? VB
?? 第 1 頁 / 共 2 頁
字號(hào):
Imports System
Imports System.Data
Imports System.Data.SQL

Namespace Conference

    '*******************************************************
    '
    ' ShoppingCartDB Class
    '
    ' Business/Data Logic Class that encapsulates all data
    ' logic necessary to add/remove/update/purchase items
    ' within an Conference shopping cart.
    '
    '*******************************************************

    Public Class ShoppingCartDB 
 
        '*******************************************************
        '
        ' ShoppingCartDB.GetItems() Method <a name="GetItems"></a>
        '
        ' The GetItems method returns a bindable
        ' DataSet of all items within a shopping cart.
        '
        ' Other relevant sources:  
        '     + <a href="srcview.aspx?path=../ShoppingCart.src&file=docs/ShoppingCartList.htm" style="color:green">ShoppingCartList Stored Procedure</a>
        '
        '*******************************************************   
 
        Public Function GetItems(cartID As String) As DataSet

            ' Create Instance of Connection and Command Object
            Dim myConnection As SQLConnection = New SQLConnection(ConferenceDB.ConnectionString)
            Dim myCommand As SQLDataSetCommand = New SQLDataSetCommand("ShoppingCartList", myConnection)

            ' Mark the Command as a SPROC
            myCommand.SelectCommand.CommandType = CommandType.StoredProcedure

            ' Add Parameters to SPROC
            Dim parameterCartID As SQLParameter = New SQLParameter("@CartID", SQLDataType.NChar, 50)
            parameterCartID.Value = cartID
            myCommand.SelectCommand.Parameters.Add(parameterCartID)

            ' Create and Fill the DataSet
            Dim myDataSet As DataSet = New DataSet()
            myCommand.FillDataSet(myDataSet, "CartItems")

            ' Return the DataSet
            return myDataSet
        
        End Function

        '*******************************************************
        '
        ' ShoppingCartDB.AddItem() Method <a name="AddItem"></a>
        '
        ' The AddItem method adds an item into a shopping cart.
        '
        ' Other relevant sources:  
        '     + <a href="srcview.aspx?path=../AddToCart.src&file=docs/ShoppingCartAddItem.htm" style="color:green">ShoppingCartAddItem Stored Procedure</a>
        '
        '******************************************************* 

        Public Sub AddItem(cartID As String, productID As Integer, quantity As Integer) 
                        
            ' Create Instance of Connection and Command Object
            Dim myConnection As SQLConnection = New SQLConnection(ConferenceDB.ConnectionString)
            Dim myCommand As SQLCommand = New SQLCommand("ShoppingCartAddItem", myConnection)

            ' Mark the Command as a SPROC
            myCommand.CommandType = CommandType.StoredProcedure

            ' Add Parameters to SPROC
            Dim parameterProductID As SQLParameter = New SQLParameter("@ProductID", SQLDataType.Int, 4)
            parameterProductID.Value = productID
            myCommand.Parameters.Add(parameterProductID)

            Dim parameterCartID As SQLParameter = New SQLParameter("@CartID", SQLDataType.NChar, 50)
            parameterCartID.Value = cartID
            myCommand.Parameters.Add(parameterCartID)

            Dim parameterQuantity As SQLParameter = New SQLParameter("@Quantity", SQLDataType.Int, 4)
            parameterQuantity.Value = quantity
            myCommand.Parameters.Add(parameterQuantity)

            Try 
                ' Open the connection and execute the Command
                myConnection.Open()
                myCommand.Execute()
            Catch e As Exception
                ' An error occurred, pass the exception up
                throw e
            Finally 
                ' Close the Connection
                If myConnection.State = DBObjectState.Open then
                    myConnection.Close()
                End If
            End Try
        
        End Sub

        '*******************************************************
        '
        ' ShoppingCartDB.UpdateItem() Method <a name="UpdateItem"></a>
        '
        ' The UpdateItem method updates the quantity of an item 
        ' in a shopping cart.
        '
        ' Other relevant sources:  
        '     + <a href="srcview.aspx?path=../ShoppingCart.src&file=docs/ShoppingCartUpdate.htm" style="color:green">ShoppingCartUpdate Stored Procedure</a>
        '
        '******************************************************* 

        Public Sub UpdateItem(cartID As String, productID As Integer, quantity As Integer) 
            
            ' Create Instance of Connection and Command Object
            Dim myConnection As SQLConnection = New SQLConnection(ConferenceDB.ConnectionString)
            Dim myCommand As SQLCommand = New SQLCommand("ShoppingCartUpdate", myConnection)

            ' Mark the Command as a SPROC
            myCommand.CommandType = CommandType.StoredProcedure

            ' Add Parameters to SPROC
            Dim parameterProductID As SQLParameter = New SQLParameter("@ProductID", SQLDataType.Int, 4)
            parameterProductID.Value = productID
            myCommand.Parameters.Add(parameterProductID)

            Dim parameterCartID As SQLParameter = New SQLParameter("@CartID", SQLDataType.NChar, 50)
            parameterCartID.Value = cartID
            myCommand.Parameters.Add(parameterCartID)

            Dim parameterQuantity As SQLParameter = New SQLParameter("@Quantity", SQLDataType.Int, 4)
            parameterQuantity.Value = quantity
            myCommand.Parameters.Add(parameterQuantity)

            Try 
                ' Open the connection and execute the Command
                myConnection.Open()
                myCommand.Execute()
            Catch e As Exception
                ' An error occurred, pass the exception up
                throw e
            Finally 
                ' Close the Connection
                If myConnection.State = DBObjectState.Open then
                    myConnection.Close()
                End If
            End Try
        
        End Sub

        '*******************************************************
        '
        ' ShoppingCartDB.RemoveItem() Method <a name="RemoveItem"></a>
        '
        ' The RemoveItem method removes an item from a 
        ' shopping cart.
        '
        ' Other relevant sources:  
        '     + <a href="srcview.aspx?path=../ShoppingCart.src&file=docs/ShoppingCartRemoveItem.htm" style="color:green">ShoppingCartRemoveItem Stored Procedure</a>
        '
        '******************************************************* 

        Public Sub RemoveItem(cartID As String, productID As Integer) 

            ' Create Instance of Connection and Command Object
            Dim myConnection As SQLConnection = New SQLConnection(ConferenceDB.ConnectionString)
            Dim myCommand As SQLCommand = New SQLCommand("ShoppingCartRemoveItem", myConnection)

            ' Mark the Command as a SPROC
            myCommand.CommandType = CommandType.StoredProcedure

            ' Add Parameters to SPROC
            Dim parameterProductID As SQLParameter = New SQLParameter("@ProductID", SQLDataType.Int, 4)
            parameterProductID.Value = productID
            myCommand.Parameters.Add(parameterProductID)

            Dim parameterCartID As SQLParameter = New SQLParameter("@CartID", SQLDataType.NChar, 50)
            parameterCartID.Value = cartID
            myCommand.Parameters.Add(parameterCartID)

            Try 
                ' Open the connection and execute the Command
                myConnection.Open()
                myCommand.Execute()
            Catch e As Exception
                ' An error occurred, pass the exception up
                throw e
            Finally 
                ' Close the Connection
                If myConnection.State = DBObjectState.Open then
                    myConnection.Close()
                End If
            End Try
        
        End Sub

        '*******************************************************
        '
        ' ShoppingCartDB.GetItemCount() Method <a name="GetItemCount"></a>
        '
        ' The GetItemCount method returns the number of items
        ' within a shopping cart.
        '
        ' Other relevant sources:  
        '     + <a href="srcview.aspx?path=../ShoppingCart.src&file=docs/ShoppingCartItemCount.htm" style="color:green">ShoppingCartItemCount Stored Procedure</a>
        '
        '******************************************************* 

        Public Function GetItemCount(cartID As String) As Integer
            
            ' Create Instance of Connection and Command Object
            Dim myConnection As SQLConnection = New SQLConnection(ConferenceDB.ConnectionString)
            Dim myCommand As SQLCommand = New SQLCommand("ShoppingCartItemCount", myConnection)
      

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区国产| 91在线视频免费91| 麻豆免费精品视频| 久久99热这里只有精品| 国产一区在线不卡| 欧美在线一区二区三区| 欧美成人vr18sexvr| 亚洲视频狠狠干| 亚洲国产精品一区二区www在线| 一个色综合av| 久久99精品网久久| 色综合久久88色综合天天6| 精品国产污污免费网站入口 | 99久久精品久久久久久清纯| 欧美日韩精品欧美日韩精品一| 精品国产sm最大网站免费看| 亚洲国产日韩精品| 丁香激情综合五月| 欧美一区二区日韩| 亚洲成人777| 成人av网站在线| 91麻豆精品久久久久蜜臀| 国产无遮挡一区二区三区毛片日本| 日本不卡不码高清免费观看| 国产成人综合精品三级| 欧美日韩一区视频| 亚洲成人黄色影院| 欧洲一区二区三区免费视频| 中文字幕一区三区| 国产在线精品免费av| 欧美成人一级视频| 精油按摩中文字幕久久| 欧美麻豆精品久久久久久| 久久黄色级2电影| 精品久久人人做人人爽| 国产成人啪午夜精品网站男同| 久久精品综合网| 在线视频你懂得一区二区三区| 强制捆绑调教一区二区| 国产精品二三区| 9191久久久久久久久久久| 亚洲日本欧美天堂| 中文字幕av一区二区三区高| 国产高清久久久久| 日韩一级成人av| 欧美一区二区不卡视频| 国产午夜精品久久久久久免费视| 国产一区二区三区最好精华液| 亚洲精品一区二区在线观看| 国产69精品一区二区亚洲孕妇| 亚洲黄色在线视频| 欧美妇女性影城| 成人黄色电影在线| 老司机免费视频一区二区| 日本v片在线高清不卡在线观看| 免费在线欧美视频| 精品亚洲免费视频| 国产不卡视频一区二区三区| 国产在线一区观看| 国产一区二区三区四区五区美女 | 国产精品理伦片| 久久免费电影网| 久久九九久精品国产免费直播| 国产欧美日韩在线看| 亚洲一区二区免费视频| 久久99在线观看| 一本大道综合伊人精品热热| 欧美日本一道本在线视频| 26uuu久久综合| 一区二区三区国产精品| 婷婷夜色潮精品综合在线| 国产在线不卡一区| 色嗨嗨av一区二区三区| 精品剧情在线观看| 国产精品久久久久久久久搜平片 | 一区二区三区成人在线视频| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 中文字幕欧美区| 麻豆精品视频在线观看免费| 99视频精品全部免费在线| 日韩欧美高清一区| 亚洲午夜精品网| 在线观看精品一区| 免费视频最近日韩| 欧美日韩高清一区二区| 亚洲九九爱视频| 北条麻妃国产九九精品视频| 精品欧美一区二区久久 | 国产精品久久久久影院老司| 国产精品一区二区久久精品爱涩| 欧美日韩高清一区| 亚洲自拍都市欧美小说| 日本韩国视频一区二区| 日韩一区在线免费观看| 色综合天天综合狠狠| 一区在线观看视频| 久久不见久久见免费视频7| 91精品免费在线观看| 日本成人在线视频网站| 欧美一区二区福利在线| 久久成人18免费观看| 欧美精品一区二区三区四区 | 成人免费精品视频| 亚洲人成网站在线| 欧美日本不卡视频| 蜜臀av一区二区在线观看| 久久久综合精品| 91视频观看免费| 男人的j进女人的j一区| 久久久国产午夜精品| 一本色道亚洲精品aⅴ| 另类的小说在线视频另类成人小视频在线 | 欧美色视频在线观看| 亚洲成人黄色小说| 久久久蜜臀国产一区二区| 91蜜桃网址入口| 精品一区二区三区香蕉蜜桃| 亚洲精品高清在线观看| 精品视频123区在线观看| 九九精品视频在线看| 亚洲欧美日韩在线| 欧美一区在线视频| 91久久免费观看| 激情久久五月天| 五月天婷婷综合| 中文字幕制服丝袜一区二区三区 | 日韩欧美在线观看一区二区三区| 成人免费高清在线| 麻豆成人91精品二区三区| 中文字幕亚洲精品在线观看| 欧美一区二区三区人| 欧美伊人久久大香线蕉综合69| 国产精品自产自拍| 日本成人在线网站| 天堂蜜桃一区二区三区| 亚洲综合一区二区三区| 亚洲柠檬福利资源导航| 国产精品黄色在线观看| 国产女人18水真多18精品一级做| 久久久久久久久一| 久久综合久久99| 欧美大片在线观看| 久久综合久久综合亚洲| 久久人人97超碰com| 久久亚洲精华国产精华液| 精品sm在线观看| 精品国产a毛片| 国产精品日韩成人| 亚洲色图一区二区三区| 亚洲精品中文在线| 亚洲一级电影视频| 麻豆91免费观看| 国产东北露脸精品视频| www.亚洲精品| 色综合天天视频在线观看| 欧美体内she精高潮| 日韩欧美高清dvd碟片| 欧美国产激情一区二区三区蜜月| 中文字幕成人av| 亚洲一区二区三区四区五区黄| 石原莉奈在线亚洲三区| 蓝色福利精品导航| 91玉足脚交白嫩脚丫在线播放| 一本到三区不卡视频| 欧美一区二区大片| 最新不卡av在线| 日av在线不卡| 99精品欧美一区二区三区综合在线| 欧美男男青年gay1069videost | 一区二区三区在线高清| 美女视频黄频大全不卡视频在线播放| 久久国产精品第一页| 91在线精品一区二区| 欧美白人最猛性xxxxx69交| 亚洲人成精品久久久久久| 久久99国产精品免费网站| 欧美中文字幕亚洲一区二区va在线 | 精品第一国产综合精品aⅴ| 亚洲品质自拍视频网站| 国产专区欧美精品| 911精品国产一区二区在线| 亚洲欧美色一区| 成人sese在线| 欧美激情一区在线| 国产乱码精品一区二区三区av | 国内成人自拍视频| 欧美日产在线观看| 午夜视频在线观看一区二区三区| 色综合久久88色综合天天 | 亚洲精品久久久蜜桃| 成人国产精品免费| 久久久噜噜噜久久人人看| 九一久久久久久| 久久综合视频网| 国产高清久久久| 中文字幕在线一区| 97aⅴ精品视频一二三区| 国产精品国产三级国产普通话99 | 91麻豆视频网站| 亚洲国产一区二区视频|