⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inventorymanagement.vb

📁 .net 编写的电子商务系统 使用方便 超做简单 好用
💻 VB
字号:
Imports System
Imports System.Data
Imports System.Data.SqlClient

Namespace Services
    Public Class InventoryManagement
        Public Connstring As String = "Data Source=localhost;Initial Catalog=Shop;user id=sa;pwd=sa"
        Public Function GetInventoryInformation(ByVal strProductID As String) As dsInventory
            Dim sqlcmdSelectInventory As New SqlCommand("sp_Inventory_SEL_byProductID")
            With sqlcmdSelectInventory
                .CommandType = CommandType.StoredProcedure
                With .Parameters
                    .Add("@chrProductID", SqlDbType.Char, 38)
                    .Item("@chrProductID").Value = strProductID
                End With
            End With
            Dim dsInventory As New dsInventory()
            Dim sqlconIBuyAdventure As New SqlConnection(Connstring)
            sqlcmdSelectInventory.Connection = sqlconIBuyAdventure
            Dim sqladpInventory As New SqlDataAdapter(sqlcmdSelectInventory)
            sqladpInventory.Fill(dsInventory, "Inventory")
            Return dsInventory
        End Function

    End Class
End Namespace

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -