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

📄 dsdl240.vb

📁 通用进销存-visual basic编写
💻 VB
📖 第 1 页 / 共 2 页
字号:
        Protected Overrides Sub OnRowChanged(ByVal e As DataRowChangeEventArgs)
            MyBase.OnRowChanged(e)
            If (Not (Me.DL240RowChangedEvent) Is Nothing) Then
                RaiseEvent DL240RowChanged(Me, New DL240RowChangeEvent(CType(e.Row,DL240Row), e.Action))
            End If
        End Sub
        
        Protected Overrides Sub OnRowChanging(ByVal e As DataRowChangeEventArgs)
            MyBase.OnRowChanging(e)
            If (Not (Me.DL240RowChangingEvent) Is Nothing) Then
                RaiseEvent DL240RowChanging(Me, New DL240RowChangeEvent(CType(e.Row,DL240Row), e.Action))
            End If
        End Sub
        
        Protected Overrides Sub OnRowDeleted(ByVal e As DataRowChangeEventArgs)
            MyBase.OnRowDeleted(e)
            If (Not (Me.DL240RowDeletedEvent) Is Nothing) Then
                RaiseEvent DL240RowDeleted(Me, New DL240RowChangeEvent(CType(e.Row,DL240Row), e.Action))
            End If
        End Sub
        
        Protected Overrides Sub OnRowDeleting(ByVal e As DataRowChangeEventArgs)
            MyBase.OnRowDeleting(e)
            If (Not (Me.DL240RowDeletingEvent) Is Nothing) Then
                RaiseEvent DL240RowDeleting(Me, New DL240RowChangeEvent(CType(e.Row,DL240Row), e.Action))
            End If
        End Sub
        
        Public Sub RemoveDL240Row(ByVal row As DL240Row)
            Me.Rows.Remove(row)
        End Sub
    End Class
    
    <System.Diagnostics.DebuggerStepThrough()>  _
    Public Class DL240Row
        Inherits DataRow
        
        Private tableDL240 As DL240DataTable
        
        Friend Sub New(ByVal rb As DataRowBuilder)
            MyBase.New(rb)
            Me.tableDL240 = CType(Me.Table,DL240DataTable)
        End Sub
        
        Public Property CustomerID As String
            Get
                Try 
                    Return CType(Me(Me.tableDL240.CustomerIDColumn),String)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.CustomerIDColumn) = value
            End Set
        End Property
        
        Public Property CustomerAttribName As String
            Get
                Try 
                    Return CType(Me(Me.tableDL240.CustomerAttribNameColumn),String)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.CustomerAttribNameColumn) = value
            End Set
        End Property
        
        Public Property Amount01 As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableDL240.Amount01Column),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.Amount01Column) = value
            End Set
        End Property
        
        Public Property Amount02 As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableDL240.Amount02Column),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.Amount02Column) = value
            End Set
        End Property
        
        Public Property Amount03 As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableDL240.Amount03Column),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.Amount03Column) = value
            End Set
        End Property
        
        Public Property Amount04 As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableDL240.Amount04Column),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.Amount04Column) = value
            End Set
        End Property
        
        Public Property Amount05 As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableDL240.Amount05Column),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.Amount05Column) = value
            End Set
        End Property
        
        Public Property Amount06 As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableDL240.Amount06Column),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.Amount06Column) = value
            End Set
        End Property
        
        Public Property Amount07 As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableDL240.Amount07Column),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.Amount07Column) = value
            End Set
        End Property
        
        Public Property Amount08 As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableDL240.Amount08Column),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.Amount08Column) = value
            End Set
        End Property
        
        Public Property Amount09 As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableDL240.Amount09Column),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.Amount09Column) = value
            End Set
        End Property
        
        Public Property Amount10 As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableDL240.Amount10Column),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.Amount10Column) = value
            End Set
        End Property
        
        Public Property Amount11 As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableDL240.Amount11Column),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.Amount11Column) = value
            End Set
        End Property
        
        Public Property Amount12 As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableDL240.Amount12Column),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.Amount12Column) = value
            End Set
        End Property
        
        Public Property Amount As Decimal
            Get
                Try 
                    Return CType(Me(Me.tableDL240.AmountColumn),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            End Get
            Set
                Me(Me.tableDL240.AmountColumn) = value
            End Set
        End Property
        
        Public Function IsCustomerIDNull() As Boolean
            Return Me.IsNull(Me.tableDL240.CustomerIDColumn)
        End Function
        
        Public Sub SetCustomerIDNull()
            Me(Me.tableDL240.CustomerIDColumn) = System.Convert.DBNull
        End Sub
        
        Public Function IsCustomerAttribNameNull() As Boolean
            Return Me.IsNull(Me.tableDL240.CustomerAttribNameColumn)
        End Function
        
        Public Sub SetCustomerAttribNameNull()
            Me(Me.tableDL240.CustomerAttribNameColumn) = System.Convert.DBNull
        End Sub
        
        Public Function IsAmount01Null() As Boolean
            Return Me.IsNull(Me.tableDL240.Amount01Column)
        End Function
        
        Public Sub SetAmount01Null()
            Me(Me.tableDL240.Amount01Column) = System.Convert.DBNull
        End Sub
        
        Public Function IsAmount02Null() As Boolean
            Return Me.IsNull(Me.tableDL240.Amount02Column)
        End Function
        
        Public Sub SetAmount02Null()
            Me(Me.tableDL240.Amount02Column) = System.Convert.DBNull
        End Sub
        
        Public Function IsAmount03Null() As Boolean
            Return Me.IsNull(Me.tableDL240.Amount03Column)
        End Function
        
        Public Sub SetAmount03Null()
            Me(Me.tableDL240.Amount03Column) = System.Convert.DBNull
        End Sub
        
        Public Function IsAmount04Null() As Boolean
            Return Me.IsNull(Me.tableDL240.Amount04Column)
        End Function
        
        Public Sub SetAmount04Null()
            Me(Me.tableDL240.Amount04Column) = System.Convert.DBNull
        End Sub
        
        Public Function IsAmount05Null() As Boolean
            Return Me.IsNull(Me.tableDL240.Amount05Column)
        End Function
        
        Public Sub SetAmount05Null()
            Me(Me.tableDL240.Amount05Column) = System.Convert.DBNull
        End Sub
        
        Public Function IsAmount06Null() As Boolean
            Return Me.IsNull(Me.tableDL240.Amount06Column)
        End Function
        
        Public Sub SetAmount06Null()
            Me(Me.tableDL240.Amount06Column) = System.Convert.DBNull
        End Sub
        
        Public Function IsAmount07Null() As Boolean
            Return Me.IsNull(Me.tableDL240.Amount07Column)
        End Function
        
        Public Sub SetAmount07Null()
            Me(Me.tableDL240.Amount07Column) = System.Convert.DBNull
        End Sub
        
        Public Function IsAmount08Null() As Boolean
            Return Me.IsNull(Me.tableDL240.Amount08Column)
        End Function
        
        Public Sub SetAmount08Null()
            Me(Me.tableDL240.Amount08Column) = System.Convert.DBNull
        End Sub
        
        Public Function IsAmount09Null() As Boolean
            Return Me.IsNull(Me.tableDL240.Amount09Column)
        End Function
        
        Public Sub SetAmount09Null()
            Me(Me.tableDL240.Amount09Column) = System.Convert.DBNull
        End Sub
        
        Public Function IsAmount10Null() As Boolean
            Return Me.IsNull(Me.tableDL240.Amount10Column)
        End Function
        
        Public Sub SetAmount10Null()
            Me(Me.tableDL240.Amount10Column) = System.Convert.DBNull
        End Sub
        
        Public Function IsAmount11Null() As Boolean
            Return Me.IsNull(Me.tableDL240.Amount11Column)
        End Function
        
        Public Sub SetAmount11Null()
            Me(Me.tableDL240.Amount11Column) = System.Convert.DBNull
        End Sub
        
        Public Function IsAmount12Null() As Boolean
            Return Me.IsNull(Me.tableDL240.Amount12Column)
        End Function
        
        Public Sub SetAmount12Null()
            Me(Me.tableDL240.Amount12Column) = System.Convert.DBNull
        End Sub
        
        Public Function IsAmountNull() As Boolean
            Return Me.IsNull(Me.tableDL240.AmountColumn)
        End Function
        
        Public Sub SetAmountNull()
            Me(Me.tableDL240.AmountColumn) = System.Convert.DBNull
        End Sub
    End Class
    
    <System.Diagnostics.DebuggerStepThrough()>  _
    Public Class DL240RowChangeEvent
        Inherits EventArgs
        
        Private eventRow As DL240Row
        
        Private eventAction As DataRowAction
        
        Public Sub New(ByVal row As DL240Row, ByVal action As DataRowAction)
            MyBase.New
            Me.eventRow = row
            Me.eventAction = action
        End Sub
        
        Public ReadOnly Property Row As DL240Row
            Get
                Return Me.eventRow
            End Get
        End Property
        
        Public ReadOnly Property Action As DataRowAction
            Get
                Return Me.eventAction
            End Get
        End Property
    End Class
End Class

⌨️ 快捷键说明

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