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

📄 classproducing.vb

📁 这是一个订单管理系统
💻 VB
字号:
Imports System.Text
Imports System.Data

Public Class ClassProducing
    Public Function Update(ByVal id As String, ByVal pro_date As String, ByVal number As String) As Boolean
        Dim strSql As New StringBuilder
        strSql.AppendLine("INSERT INTO")
        strSql.AppendLine("Produce")
        strSql.AppendLine("VALUES")
        strSql.AppendLine("(")
        strSql.AppendLine("" & id & ",")
        strSql.AppendLine("TO_DATE('" & pro_date & "','YYYY-MM-DD'),")
        strSql.AppendLine("" & number & ")")

        Return ClassCommon.RunSql(strSql.ToString)
    End Function
    Public Function ViewByID(ByRef ds As DataSet, ByVal pid As String) As Boolean
        Dim strSql As New StringBuilder()
        strSql.AppendLine("SELECT")
        strSql.AppendLine("ProduceDate,")
        strSql.AppendLine("ProduceNumber")
        strSql.AppendLine("FROM")
        strSql.AppendLine("Produce")
        strSql.AppendLine("WHERE")
        strSql.AppendLine("ProductId = " & pid)
        Return ClassCommon.RunSql(ds, strSql.ToString)
    End Function

End Class

⌨️ 快捷键说明

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