📄 dsar260.vb
字号:
Me.columnOVR1200 = Me.Columns("OVR1200")
Me.columnOVRBalance = Me.Columns("OVRBalance")
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.columnOVR0030 = New DataColumn("OVR0030", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnOVR0030)
Me.columnOVR3160 = New DataColumn("OVR3160", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnOVR3160)
Me.columnOVR6190 = New DataColumn("OVR6190", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnOVR6190)
Me.columnOVR9120 = New DataColumn("OVR9120", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnOVR9120)
Me.columnOVR1200 = New DataColumn("OVR1200", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnOVR1200)
Me.columnOVRBalance = New DataColumn("OVRBalance", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.columnOVRBalance)
End Sub
Public Function NewAR260Row() As AR260Row
Return CType(Me.NewRow,AR260Row)
End Function
Protected Overrides Function NewRowFromBuilder(ByVal builder As DataRowBuilder) As DataRow
Return New AR260Row(builder)
End Function
Protected Overrides Function GetRowType() As System.Type
Return GetType(AR260Row)
End Function
Protected Overrides Sub OnRowChanged(ByVal e As DataRowChangeEventArgs)
MyBase.OnRowChanged(e)
If (Not (Me.AR260RowChangedEvent) Is Nothing) Then
RaiseEvent AR260RowChanged(Me, New AR260RowChangeEvent(CType(e.Row,AR260Row), e.Action))
End If
End Sub
Protected Overrides Sub OnRowChanging(ByVal e As DataRowChangeEventArgs)
MyBase.OnRowChanging(e)
If (Not (Me.AR260RowChangingEvent) Is Nothing) Then
RaiseEvent AR260RowChanging(Me, New AR260RowChangeEvent(CType(e.Row,AR260Row), e.Action))
End If
End Sub
Protected Overrides Sub OnRowDeleted(ByVal e As DataRowChangeEventArgs)
MyBase.OnRowDeleted(e)
If (Not (Me.AR260RowDeletedEvent) Is Nothing) Then
RaiseEvent AR260RowDeleted(Me, New AR260RowChangeEvent(CType(e.Row,AR260Row), e.Action))
End If
End Sub
Protected Overrides Sub OnRowDeleting(ByVal e As DataRowChangeEventArgs)
MyBase.OnRowDeleting(e)
If (Not (Me.AR260RowDeletingEvent) Is Nothing) Then
RaiseEvent AR260RowDeleting(Me, New AR260RowChangeEvent(CType(e.Row,AR260Row), e.Action))
End If
End Sub
Public Sub RemoveAR260Row(ByVal row As AR260Row)
Me.Rows.Remove(row)
End Sub
End Class
<System.Diagnostics.DebuggerStepThrough()> _
Public Class AR260Row
Inherits DataRow
Private tableAR260 As AR260DataTable
Friend Sub New(ByVal rb As DataRowBuilder)
MyBase.New(rb)
Me.tableAR260 = CType(Me.Table,AR260DataTable)
End Sub
Public Property CustomerID As String
Get
Try
Return CType(Me(Me.tableAR260.CustomerIDColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR260.CustomerIDColumn) = value
End Set
End Property
Public Property CustomerAttribName As String
Get
Try
Return CType(Me(Me.tableAR260.CustomerAttribNameColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR260.CustomerAttribNameColumn) = value
End Set
End Property
Public Property OVR0030 As Decimal
Get
Try
Return CType(Me(Me.tableAR260.OVR0030Column),Decimal)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR260.OVR0030Column) = value
End Set
End Property
Public Property OVR3160 As Decimal
Get
Try
Return CType(Me(Me.tableAR260.OVR3160Column),Decimal)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR260.OVR3160Column) = value
End Set
End Property
Public Property OVR6190 As Decimal
Get
Try
Return CType(Me(Me.tableAR260.OVR6190Column),Decimal)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR260.OVR6190Column) = value
End Set
End Property
Public Property OVR9120 As Decimal
Get
Try
Return CType(Me(Me.tableAR260.OVR9120Column),Decimal)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR260.OVR9120Column) = value
End Set
End Property
Public Property OVR1200 As Decimal
Get
Try
Return CType(Me(Me.tableAR260.OVR1200Column),Decimal)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR260.OVR1200Column) = value
End Set
End Property
Public Property OVRBalance As Decimal
Get
Try
Return CType(Me(Me.tableAR260.OVRBalanceColumn),Decimal)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableAR260.OVRBalanceColumn) = value
End Set
End Property
Public Function IsCustomerIDNull() As Boolean
Return Me.IsNull(Me.tableAR260.CustomerIDColumn)
End Function
Public Sub SetCustomerIDNull()
Me(Me.tableAR260.CustomerIDColumn) = System.Convert.DBNull
End Sub
Public Function IsCustomerAttribNameNull() As Boolean
Return Me.IsNull(Me.tableAR260.CustomerAttribNameColumn)
End Function
Public Sub SetCustomerAttribNameNull()
Me(Me.tableAR260.CustomerAttribNameColumn) = System.Convert.DBNull
End Sub
Public Function IsOVR0030Null() As Boolean
Return Me.IsNull(Me.tableAR260.OVR0030Column)
End Function
Public Sub SetOVR0030Null()
Me(Me.tableAR260.OVR0030Column) = System.Convert.DBNull
End Sub
Public Function IsOVR3160Null() As Boolean
Return Me.IsNull(Me.tableAR260.OVR3160Column)
End Function
Public Sub SetOVR3160Null()
Me(Me.tableAR260.OVR3160Column) = System.Convert.DBNull
End Sub
Public Function IsOVR6190Null() As Boolean
Return Me.IsNull(Me.tableAR260.OVR6190Column)
End Function
Public Sub SetOVR6190Null()
Me(Me.tableAR260.OVR6190Column) = System.Convert.DBNull
End Sub
Public Function IsOVR9120Null() As Boolean
Return Me.IsNull(Me.tableAR260.OVR9120Column)
End Function
Public Sub SetOVR9120Null()
Me(Me.tableAR260.OVR9120Column) = System.Convert.DBNull
End Sub
Public Function IsOVR1200Null() As Boolean
Return Me.IsNull(Me.tableAR260.OVR1200Column)
End Function
Public Sub SetOVR1200Null()
Me(Me.tableAR260.OVR1200Column) = System.Convert.DBNull
End Sub
Public Function IsOVRBalanceNull() As Boolean
Return Me.IsNull(Me.tableAR260.OVRBalanceColumn)
End Function
Public Sub SetOVRBalanceNull()
Me(Me.tableAR260.OVRBalanceColumn) = System.Convert.DBNull
End Sub
End Class
<System.Diagnostics.DebuggerStepThrough()> _
Public Class AR260RowChangeEvent
Inherits EventArgs
Private eventRow As AR260Row
Private eventAction As DataRowAction
Public Sub New(ByVal row As AR260Row, ByVal action As DataRowAction)
MyBase.New
Me.eventRow = row
Me.eventAction = action
End Sub
Public ReadOnly Property Row As AR260Row
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 + -