📄 dsba140.vb
字号:
Return CType(Me(Me.tableCustomer.RocIDColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableCustomer.RocIDColumn) = value
End Set
End Property
Public Property ContactMan1 As String
Get
Try
Return CType(Me(Me.tableCustomer.ContactMan1Column),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableCustomer.ContactMan1Column) = value
End Set
End Property
Public Property ContactMan2 As String
Get
Try
Return CType(Me(Me.tableCustomer.ContactMan2Column),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableCustomer.ContactMan2Column) = value
End Set
End Property
Public Property ContactPhone1 As String
Get
Try
Return CType(Me(Me.tableCustomer.ContactPhone1Column),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableCustomer.ContactPhone1Column) = value
End Set
End Property
Public Property ContactPhone2 As String
Get
Try
Return CType(Me(Me.tableCustomer.ContactPhone2Column),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableCustomer.ContactPhone2Column) = value
End Set
End Property
Public Property Fax As String
Get
Try
Return CType(Me(Me.tableCustomer.FaxColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableCustomer.FaxColumn) = value
End Set
End Property
Public Property SalesManID As String
Get
Return CType(Me(Me.tableCustomer.SalesManIDColumn),String)
End Get
Set
Me(Me.tableCustomer.SalesManIDColumn) = value
End Set
End Property
Public Property CustomerAddress As String
Get
Try
Return CType(Me(Me.tableCustomer.CustomerAddressColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableCustomer.CustomerAddressColumn) = value
End Set
End Property
Public Property DeliveryAddress As String
Get
Try
Return CType(Me(Me.tableCustomer.DeliveryAddressColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableCustomer.DeliveryAddressColumn) = value
End Set
End Property
Public Property InvoiceAddress As String
Get
Try
Return CType(Me(Me.tableCustomer.InvoiceAddressColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableCustomer.InvoiceAddressColumn) = value
End Set
End Property
Public Property PayDays As Decimal
Get
Return CType(Me(Me.tableCustomer.PayDaysColumn),Decimal)
End Get
Set
Me(Me.tableCustomer.PayDaysColumn) = value
End Set
End Property
Public Property CreditLine As Decimal
Get
Return CType(Me(Me.tableCustomer.CreditLineColumn),Decimal)
End Get
Set
Me(Me.tableCustomer.CreditLineColumn) = value
End Set
End Property
Public Property CreditBalance As Decimal
Get
Return CType(Me(Me.tableCustomer.CreditBalanceColumn),Decimal)
End Get
Set
Me(Me.tableCustomer.CreditBalanceColumn) = value
End Set
End Property
Public Property LastDeliveryDate As Date
Get
Try
Return CType(Me(Me.tableCustomer.LastDeliveryDateColumn),Date)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableCustomer.LastDeliveryDateColumn) = value
End Set
End Property
Public Property Advance As Decimal
Get
Return CType(Me(Me.tableCustomer.AdvanceColumn),Decimal)
End Get
Set
Me(Me.tableCustomer.AdvanceColumn) = value
End Set
End Property
Public Function IsCustomerNameNull() As Boolean
Return Me.IsNull(Me.tableCustomer.CustomerNameColumn)
End Function
Public Sub SetCustomerNameNull()
Me(Me.tableCustomer.CustomerNameColumn) = System.Convert.DBNull
End Sub
Public Function IsInvoiceNoNull() As Boolean
Return Me.IsNull(Me.tableCustomer.InvoiceNoColumn)
End Function
Public Sub SetInvoiceNoNull()
Me(Me.tableCustomer.InvoiceNoColumn) = System.Convert.DBNull
End Sub
Public Function IsOwnerNull() As Boolean
Return Me.IsNull(Me.tableCustomer.OwnerColumn)
End Function
Public Sub SetOwnerNull()
Me(Me.tableCustomer.OwnerColumn) = System.Convert.DBNull
End Sub
Public Function IsRocIDNull() As Boolean
Return Me.IsNull(Me.tableCustomer.RocIDColumn)
End Function
Public Sub SetRocIDNull()
Me(Me.tableCustomer.RocIDColumn) = System.Convert.DBNull
End Sub
Public Function IsContactMan1Null() As Boolean
Return Me.IsNull(Me.tableCustomer.ContactMan1Column)
End Function
Public Sub SetContactMan1Null()
Me(Me.tableCustomer.ContactMan1Column) = System.Convert.DBNull
End Sub
Public Function IsContactMan2Null() As Boolean
Return Me.IsNull(Me.tableCustomer.ContactMan2Column)
End Function
Public Sub SetContactMan2Null()
Me(Me.tableCustomer.ContactMan2Column) = System.Convert.DBNull
End Sub
Public Function IsContactPhone1Null() As Boolean
Return Me.IsNull(Me.tableCustomer.ContactPhone1Column)
End Function
Public Sub SetContactPhone1Null()
Me(Me.tableCustomer.ContactPhone1Column) = System.Convert.DBNull
End Sub
Public Function IsContactPhone2Null() As Boolean
Return Me.IsNull(Me.tableCustomer.ContactPhone2Column)
End Function
Public Sub SetContactPhone2Null()
Me(Me.tableCustomer.ContactPhone2Column) = System.Convert.DBNull
End Sub
Public Function IsFaxNull() As Boolean
Return Me.IsNull(Me.tableCustomer.FaxColumn)
End Function
Public Sub SetFaxNull()
Me(Me.tableCustomer.FaxColumn) = System.Convert.DBNull
End Sub
Public Function IsCustomerAddressNull() As Boolean
Return Me.IsNull(Me.tableCustomer.CustomerAddressColumn)
End Function
Public Sub SetCustomerAddressNull()
Me(Me.tableCustomer.CustomerAddressColumn) = System.Convert.DBNull
End Sub
Public Function IsDeliveryAddressNull() As Boolean
Return Me.IsNull(Me.tableCustomer.DeliveryAddressColumn)
End Function
Public Sub SetDeliveryAddressNull()
Me(Me.tableCustomer.DeliveryAddressColumn) = System.Convert.DBNull
End Sub
Public Function IsInvoiceAddressNull() As Boolean
Return Me.IsNull(Me.tableCustomer.InvoiceAddressColumn)
End Function
Public Sub SetInvoiceAddressNull()
Me(Me.tableCustomer.InvoiceAddressColumn) = System.Convert.DBNull
End Sub
Public Function IsLastDeliveryDateNull() As Boolean
Return Me.IsNull(Me.tableCustomer.LastDeliveryDateColumn)
End Function
Public Sub SetLastDeliveryDateNull()
Me(Me.tableCustomer.LastDeliveryDateColumn) = System.Convert.DBNull
End Sub
End Class
<System.Diagnostics.DebuggerStepThrough()> _
Public Class CustomerRowChangeEvent
Inherits EventArgs
Private eventRow As CustomerRow
Private eventAction As DataRowAction
Public Sub New(ByVal row As CustomerRow, ByVal action As DataRowAction)
MyBase.New
Me.eventRow = row
Me.eventAction = action
End Sub
Public ReadOnly Property Row As CustomerRow
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 + -