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

📄 dsba220.vb

📁 通用进销存-visual basic编写
💻 VB
📖 第 1 页 / 共 4 页
字号:
                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
                Try 
                    Return CType(Me(Me.tableCustomer.CreditBalanceColumn),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            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
                Try 
                    Return CType(Me(Me.tableCustomer.AdvanceColumn),Decimal)
                Catch e As InvalidCastException
                    Throw New StrongTypingException("無法取得值,因為它是 DBNull。", e)
                End Try
            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 IsCreditBalanceNull() As Boolean
            Return Me.IsNull(Me.tableCustomer.CreditBalanceColumn)
        End Function
        
        Public Sub SetCreditBalanceNull()
            Me(Me.tableCustomer.CreditBalanceColumn) = 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
        
        Public Function IsAdvanceNull() As Boolean
            Return Me.IsNull(Me.tableCustomer.AdvanceColumn)
        End Function
        
        Public Sub SetAdvanceNull()
            Me(Me.tableCustomer.AdvanceColumn) = 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
    
    <System.Diagnostics.DebuggerStepThrough()>  _
    Public Class SalesManDataTable
        Inherits DataTable
        Implements System.Collections.IEnumerable
        
        Private columnSalesManID As DataColumn
        
        Private columnChineseName As DataColumn
        
        Private columnEnglishName As DataColumn
        
        Private columnContactPhone As DataColumn
        
        Private columnMobilePhone As DataColumn
        
        Private columnContactAddress As DataColumn
        
        Private columnEMail As DataColumn
        
        Friend Sub New()
            MyBase.New("SalesMan")
            Me.InitClass
        End Sub
        
        Friend Sub New(ByVal table As DataTable)
            MyBase.New(table.TableName)
            If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
                Me.CaseSensitive = table.CaseSensitive
            End If
            If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
                Me.Locale = table.Locale
            End If
            If (table.Namespace <> table.DataSet.Namespace) Then
                Me.Namespace = table.Namespace
            End If
            Me.Prefix = table.Prefix
            Me.MinimumCapacity = table.MinimumCapacity
            Me.DisplayExpression = table.DisplayExpression
        End Sub
        
        <System.ComponentModel.Browsable(false)>  _
        Public ReadOnly Property Count As Integer
            Get

⌨️ 快捷键说明

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