📄 dsar250.vb
字号:
Me.columnAR1200 = Me.Columns("AR1200")
Me.columnARBalance = Me.Columns("ARBalance")
End Sub
Private Sub InitClass()
Me.columnCustomerID = New DataColumn("CustomerID", GetType(System.String), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnCustomerID)
Me.columnCustomerAttribName = New DataColumn("CustomerAttribName", GetType(System.String), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnCustomerAttribName)
Me.columnAR0030 = New DataColumn("AR0030", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnAR0030)
Me.columnAR3160 = New DataColumn("AR3160", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnAR3160)
Me.columnAR6190 = New DataColumn("AR6190", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnAR6190)
Me.columnAR9120 = New DataColumn("AR9120", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnAR9120)
Me.columnAR1200 = New DataColumn("AR1200", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnAR1200)
Me.columnARBalance = New DataColumn("ARBalance", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnARBalance)
End Sub
Public Function NewAR250Row() As AR250Row
Return CType(Me.NewRow,AR250Row)
End Function
Protected Overrides Function NewRowFromBuilder(ByVal builder As DataRowBuilder) As DataRow
Return New AR250Row(builder)
End Function
Protected Overrides Function GetRowType() As System.Type
Return GetType(AR250Row)
End Function
Protected Overrides Sub OnRowChanged(ByVal e As DataRowChangeEventArgs)
MyBase.OnRowChanged(e)
If (Not (Me.AR250RowChangedEvent) Is Nothing) Then
RaiseEvent AR250RowChanged(Me, New AR250RowChangeEvent(CType(e.Row,AR250Row), e.Action))
End If
End Sub
Protected Overrides Sub OnRowChanging(ByVal e As DataRowChangeEventArgs)
MyBase.OnRowChanging(e)
If (Not (Me.AR250RowChangingEvent) Is Nothing) Then
RaiseEvent AR250RowChanging(Me, New AR250RowChangeEvent(CType(e.Row,AR250Row), e.Action))
End If
End Sub
Protected Overrides Sub OnRowDeleted(ByVal e As DataRowChangeEventArgs)
MyBase.OnRowDeleted(e)
If (Not (Me.AR250RowDeletedEvent) Is Nothing) Then
RaiseEvent AR250RowDeleted(Me, New AR250RowChangeEvent(CType(e.Row,AR250Row), e.Action))
End If
End Sub
Protected Overrides Sub OnRowDeleting(ByVal e As DataRowChangeEventArgs)
MyBase.OnRowDeleting(e)
If (Not (Me.AR250RowDeletingEvent) Is Nothing) Then
RaiseEvent AR250RowDeleting(Me, New AR250RowChangeEvent(CType(e.Row,AR250Row), e.Action))
End If
End Sub
Public Sub RemoveAR250Row(ByVal row As AR250Row)
Me.Rows.Remove(row)
End Sub
End Class
<System.Diagnostics.DebuggerStepThrough()> _
Public Class AR250Row
Inherits DataRow
Private tableAR250 As AR250DataTable
Friend Sub New(ByVal rb As DataRowBuilder)
MyBase.New(rb)
Me.tableAR250 = CType(Me.Table,AR250DataTable)
End Sub
Public Property CustomerID As String
Get
Try
Return CType(Me(Me.tableAR250.CustomerIDColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR250.CustomerIDColumn) = value
End Set
End Property
Public Property CustomerAttribName As String
Get
Try
Return CType(Me(Me.tableAR250.CustomerAttribNameColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR250.CustomerAttribNameColumn) = value
End Set
End Property
Public Property AR0030 As Decimal
Get
Try
Return CType(Me(Me.tableAR250.AR0030Column),Decimal)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR250.AR0030Column) = value
End Set
End Property
Public Property AR3160 As Decimal
Get
Try
Return CType(Me(Me.tableAR250.AR3160Column),Decimal)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR250.AR3160Column) = value
End Set
End Property
Public Property AR6190 As Decimal
Get
Try
Return CType(Me(Me.tableAR250.AR6190Column),Decimal)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR250.AR6190Column) = value
End Set
End Property
Public Property AR9120 As Decimal
Get
Try
Return CType(Me(Me.tableAR250.AR9120Column),Decimal)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR250.AR9120Column) = value
End Set
End Property
Public Property AR1200 As Decimal
Get
Try
Return CType(Me(Me.tableAR250.AR1200Column),Decimal)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR250.AR1200Column) = value
End Set
End Property
Public Property ARBalance As Decimal
Get
Try
Return CType(Me(Me.tableAR250.ARBalanceColumn),Decimal)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR250.ARBalanceColumn) = value
End Set
End Property
Public Function IsCustomerIDNull() As Boolean
Return Me.IsNull(Me.tableAR250.CustomerIDColumn)
End Function
Public Sub SetCustomerIDNull()
Me(Me.tableAR250.CustomerIDColumn) = System.Convert.DBNull
End Sub
Public Function IsCustomerAttribNameNull() As Boolean
Return Me.IsNull(Me.tableAR250.CustomerAttribNameColumn)
End Function
Public Sub SetCustomerAttribNameNull()
Me(Me.tableAR250.CustomerAttribNameColumn) = System.Convert.DBNull
End Sub
Public Function IsAR0030Null() As Boolean
Return Me.IsNull(Me.tableAR250.AR0030Column)
End Function
Public Sub SetAR0030Null()
Me(Me.tableAR250.AR0030Column) = System.Convert.DBNull
End Sub
Public Function IsAR3160Null() As Boolean
Return Me.IsNull(Me.tableAR250.AR3160Column)
End Function
Public Sub SetAR3160Null()
Me(Me.tableAR250.AR3160Column) = System.Convert.DBNull
End Sub
Public Function IsAR6190Null() As Boolean
Return Me.IsNull(Me.tableAR250.AR6190Column)
End Function
Public Sub SetAR6190Null()
Me(Me.tableAR250.AR6190Column) = System.Convert.DBNull
End Sub
Public Function IsAR9120Null() As Boolean
Return Me.IsNull(Me.tableAR250.AR9120Column)
End Function
Public Sub SetAR9120Null()
Me(Me.tableAR250.AR9120Column) = System.Convert.DBNull
End Sub
Public Function IsAR1200Null() As Boolean
Return Me.IsNull(Me.tableAR250.AR1200Column)
End Function
Public Sub SetAR1200Null()
Me(Me.tableAR250.AR1200Column) = System.Convert.DBNull
End Sub
Public Function IsARBalanceNull() As Boolean
Return Me.IsNull(Me.tableAR250.ARBalanceColumn)
End Function
Public Sub SetARBalanceNull()
Me(Me.tableAR250.ARBalanceColumn) = System.Convert.DBNull
End Sub
End Class
<System.Diagnostics.DebuggerStepThrough()> _
Public Class AR250RowChangeEvent
Inherits EventArgs
Private eventRow As AR250Row
Private eventAction As DataRowAction
Public Sub New(ByVal row As AR250Row, ByVal action As DataRowAction)
MyBase.New
Me.eventRow = row
Me.eventAction = action
End Sub
Public ReadOnly Property Row As AR250Row
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 + -