?? classproducing.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 + -