📄 dsba130.vb
字号:
Return CType(Me(Me.tableSupplier.Phone1Column),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableSupplier.Phone1Column) = value
End Set
End Property
Public Property Phone2 As String
Get
Try
Return CType(Me(Me.tableSupplier.Phone2Column),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableSupplier.Phone2Column) = value
End Set
End Property
Public Property Fax As String
Get
Try
Return CType(Me(Me.tableSupplier.FaxColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableSupplier.FaxColumn) = value
End Set
End Property
Public Property ContactName1 As String
Get
Try
Return CType(Me(Me.tableSupplier.ContactName1Column),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableSupplier.ContactName1Column) = value
End Set
End Property
Public Property ContactName2 As String
Get
Try
Return CType(Me(Me.tableSupplier.ContactName2Column),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableSupplier.ContactName2Column) = value
End Set
End Property
Public Property CompanyAddress As String
Get
Try
Return CType(Me(Me.tableSupplier.CompanyAddressColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableSupplier.CompanyAddressColumn) = value
End Set
End Property
Public Property DeliveryAddress As String
Get
Try
Return CType(Me(Me.tableSupplier.DeliveryAddressColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableSupplier.DeliveryAddressColumn) = value
End Set
End Property
Public Property InvoiceAddress As String
Get
Try
Return CType(Me(Me.tableSupplier.InvoiceAddressColumn),String)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableSupplier.InvoiceAddressColumn) = value
End Set
End Property
Public Property LastPurchaseDate As Date
Get
Try
Return CType(Me(Me.tableSupplier.LastPurchaseDateColumn),Date)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableSupplier.LastPurchaseDateColumn) = value
End Set
End Property
Public Property PayDays As Decimal
Get
Return CType(Me(Me.tableSupplier.PayDaysColumn),Decimal)
End Get
Set
Me(Me.tableSupplier.PayDaysColumn) = value
End Set
End Property
Public Property Prepaid As Decimal
Get
Try
Return CType(Me(Me.tableSupplier.PrepaidColumn),Decimal)
Catch e As InvalidCastException
Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
End Try
End Get
Set
Me(Me.tableSupplier.PrepaidColumn) = value
End Set
End Property
Public Function IsSupplierNameNull() As Boolean
Return Me.IsNull(Me.tableSupplier.SupplierNameColumn)
End Function
Public Sub SetSupplierNameNull()
Me(Me.tableSupplier.SupplierNameColumn) = System.Convert.DBNull
End Sub
Public Function IsInvoiceNoNull() As Boolean
Return Me.IsNull(Me.tableSupplier.InvoiceNoColumn)
End Function
Public Sub SetInvoiceNoNull()
Me(Me.tableSupplier.InvoiceNoColumn) = System.Convert.DBNull
End Sub
Public Function IsOwnerNull() As Boolean
Return Me.IsNull(Me.tableSupplier.OwnerColumn)
End Function
Public Sub SetOwnerNull()
Me(Me.tableSupplier.OwnerColumn) = System.Convert.DBNull
End Sub
Public Function IsRocIDNull() As Boolean
Return Me.IsNull(Me.tableSupplier.RocIDColumn)
End Function
Public Sub SetRocIDNull()
Me(Me.tableSupplier.RocIDColumn) = System.Convert.DBNull
End Sub
Public Function IsPhone1Null() As Boolean
Return Me.IsNull(Me.tableSupplier.Phone1Column)
End Function
Public Sub SetPhone1Null()
Me(Me.tableSupplier.Phone1Column) = System.Convert.DBNull
End Sub
Public Function IsPhone2Null() As Boolean
Return Me.IsNull(Me.tableSupplier.Phone2Column)
End Function
Public Sub SetPhone2Null()
Me(Me.tableSupplier.Phone2Column) = System.Convert.DBNull
End Sub
Public Function IsFaxNull() As Boolean
Return Me.IsNull(Me.tableSupplier.FaxColumn)
End Function
Public Sub SetFaxNull()
Me(Me.tableSupplier.FaxColumn) = System.Convert.DBNull
End Sub
Public Function IsContactName1Null() As Boolean
Return Me.IsNull(Me.tableSupplier.ContactName1Column)
End Function
Public Sub SetContactName1Null()
Me(Me.tableSupplier.ContactName1Column) = System.Convert.DBNull
End Sub
Public Function IsContactName2Null() As Boolean
Return Me.IsNull(Me.tableSupplier.ContactName2Column)
End Function
Public Sub SetContactName2Null()
Me(Me.tableSupplier.ContactName2Column) = System.Convert.DBNull
End Sub
Public Function IsCompanyAddressNull() As Boolean
Return Me.IsNull(Me.tableSupplier.CompanyAddressColumn)
End Function
Public Sub SetCompanyAddressNull()
Me(Me.tableSupplier.CompanyAddressColumn) = System.Convert.DBNull
End Sub
Public Function IsDeliveryAddressNull() As Boolean
Return Me.IsNull(Me.tableSupplier.DeliveryAddressColumn)
End Function
Public Sub SetDeliveryAddressNull()
Me(Me.tableSupplier.DeliveryAddressColumn) = System.Convert.DBNull
End Sub
Public Function IsInvoiceAddressNull() As Boolean
Return Me.IsNull(Me.tableSupplier.InvoiceAddressColumn)
End Function
Public Sub SetInvoiceAddressNull()
Me(Me.tableSupplier.InvoiceAddressColumn) = System.Convert.DBNull
End Sub
Public Function IsLastPurchaseDateNull() As Boolean
Return Me.IsNull(Me.tableSupplier.LastPurchaseDateColumn)
End Function
Public Sub SetLastPurchaseDateNull()
Me(Me.tableSupplier.LastPurchaseDateColumn) = System.Convert.DBNull
End Sub
Public Function IsPrepaidNull() As Boolean
Return Me.IsNull(Me.tableSupplier.PrepaidColumn)
End Function
Public Sub SetPrepaidNull()
Me(Me.tableSupplier.PrepaidColumn) = System.Convert.DBNull
End Sub
End Class
<System.Diagnostics.DebuggerStepThrough()> _
Public Class SupplierRowChangeEvent
Inherits EventArgs
Private eventRow As SupplierRow
Private eventAction As DataRowAction
Public Sub New(ByVal row As SupplierRow, ByVal action As DataRowAction)
MyBase.New
Me.eventRow = row
Me.eventAction = action
End Sub
Public ReadOnly Property Row As SupplierRow
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 + -