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

📄 dsba130.vb

📁 通用进销存-visual basic编写
💻 VB
📖 第 1 页 / 共 3 页
字号:
'------------------------------------------------------------------------------
' <autogenerated>
'     This code was generated by a tool.
'     Runtime Version: 1.0.3608.0
'
'     Changes to this file may cause incorrect behavior and will be lost if 
'     the code is regenerated.
' </autogenerated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.Data
Imports System.Runtime.Serialization
Imports System.Xml


<Serializable(),  _
 System.ComponentModel.DesignerCategoryAttribute("code"),  _
 System.Diagnostics.DebuggerStepThrough(),  _
 System.ComponentModel.ToolboxItem(true)>  _
Public Class dsBA130
    Inherits DataSet
    
    Private tableSupplier As SupplierDataTable
    
    Public Sub New()
        MyBase.New
        Me.InitClass
        Dim schemaChangedHandler As System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
        AddHandler Me.Tables.CollectionChanged, schemaChangedHandler
        AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
    End Sub
    
    Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)
        MyBase.New
        Dim strSchema As String = CType(info.GetValue("XmlSchema", GetType(System.String)),String)
        If (Not (strSchema) Is Nothing) Then
            Dim ds As DataSet = New DataSet
            ds.ReadXmlSchema(New XmlTextReader(New System.IO.StringReader(strSchema)))
            If (Not (ds.Tables("Supplier")) Is Nothing) Then
                Me.Tables.Add(New SupplierDataTable(ds.Tables("Supplier")))
            End If
            Me.DataSetName = ds.DataSetName
            Me.Prefix = ds.Prefix
            Me.Namespace = ds.Namespace
            Me.Locale = ds.Locale
            Me.CaseSensitive = ds.CaseSensitive
            Me.EnforceConstraints = ds.EnforceConstraints
            Me.Merge(ds, false, System.Data.MissingSchemaAction.Add)
            Me.InitVars
        Else
            Me.InitClass
        End If
        Me.GetSerializationData(info, context)
        Dim schemaChangedHandler As System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
        AddHandler Me.Tables.CollectionChanged, schemaChangedHandler
        AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
    End Sub
    
    <System.ComponentModel.Browsable(false),  _
     System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)>  _
    Public ReadOnly Property Supplier As SupplierDataTable
        Get
            Return Me.tableSupplier
        End Get
    End Property
    
    Public Overrides Function Clone() As DataSet
        Dim cln As dsBA130 = CType(MyBase.Clone,dsBA130)
        cln.InitVars
        Return cln
    End Function
    
    Protected Overrides Function ShouldSerializeTables() As Boolean
        Return false
    End Function
    
    Protected Overrides Function ShouldSerializeRelations() As Boolean
        Return false
    End Function
    
    Protected Overrides Sub ReadXmlSerializable(ByVal reader As XmlReader)
        Me.Reset
        Dim ds As DataSet = New DataSet
        ds.ReadXml(reader)
        If (Not (ds.Tables("Supplier")) Is Nothing) Then
            Me.Tables.Add(New SupplierDataTable(ds.Tables("Supplier")))
        End If
        Me.DataSetName = ds.DataSetName
        Me.Prefix = ds.Prefix
        Me.Namespace = ds.Namespace
        Me.Locale = ds.Locale
        Me.CaseSensitive = ds.CaseSensitive
        Me.EnforceConstraints = ds.EnforceConstraints
        Me.Merge(ds, false, System.Data.MissingSchemaAction.Add)
        Me.InitVars
    End Sub
    
    Protected Overrides Function GetSchemaSerializable() As System.Xml.Schema.XmlSchema
        Dim stream As System.IO.MemoryStream = New System.IO.MemoryStream
        Me.WriteXmlSchema(New XmlTextWriter(stream, Nothing))
        stream.Position = 0
        Return System.Xml.Schema.XmlSchema.Read(New XmlTextReader(stream), Nothing)
    End Function
    
    Friend Sub InitVars()
        Me.tableSupplier = CType(Me.Tables("Supplier"),SupplierDataTable)
        If (Not (Me.tableSupplier) Is Nothing) Then
            Me.tableSupplier.InitVars
        End If
    End Sub
    
    Private Sub InitClass()
        Me.DataSetName = "dsBA130"
        Me.Prefix = ""
        Me.Namespace = "http://www.tempuri.org/dsBA130.xsd"
        Me.Locale = New System.Globalization.CultureInfo("zh-TW")
        Me.CaseSensitive = false
        Me.EnforceConstraints = true
        Me.tableSupplier = New SupplierDataTable
        Me.Tables.Add(Me.tableSupplier)
    End Sub
    
    Private Function ShouldSerializeSupplier() As Boolean
        Return false
    End Function
    
    Private Sub SchemaChanged(ByVal sender As Object, ByVal e As System.ComponentModel.CollectionChangeEventArgs)
        If (e.Action = System.ComponentModel.CollectionChangeAction.Remove) Then
            Me.InitVars
        End If
    End Sub
    
    Public Delegate Sub SupplierRowChangeEventHandler(ByVal sender As Object, ByVal e As SupplierRowChangeEvent)
    
    <System.Diagnostics.DebuggerStepThrough()>  _
    Public Class SupplierDataTable
        Inherits DataTable
        Implements System.Collections.IEnumerable
        
        Private columnSupplierID As DataColumn
        
        Private columnSupplierAttribName As DataColumn
        
        Private columnSupplierName As DataColumn
        
        Private columnInvoiceNo As DataColumn
        
        Private columnOwner As DataColumn
        
        Private columnRocID As DataColumn
        
        Private columnPhone1 As DataColumn
        
        Private columnPhone2 As DataColumn
        
        Private columnFax As DataColumn
        
        Private columnContactName1 As DataColumn
        
        Private columnContactName2 As DataColumn
        
        Private columnCompanyAddress As DataColumn
        
        Private columnDeliveryAddress As DataColumn
        
        Private columnInvoiceAddress As DataColumn
        
        Private columnLastPurchaseDate As DataColumn
        
        Private columnPayDays As DataColumn
        
        Private columnPrepaid As DataColumn
        
        Friend Sub New()
            MyBase.New("Supplier")
            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
                Return Me.Rows.Count
            End Get
        End Property
        
        Friend ReadOnly Property SupplierIDColumn As DataColumn
            Get
                Return Me.columnSupplierID
            End Get
        End Property
        
        Friend ReadOnly Property SupplierAttribNameColumn As DataColumn
            Get
                Return Me.columnSupplierAttribName
            End Get
        End Property
        
        Friend ReadOnly Property SupplierNameColumn As DataColumn
            Get
                Return Me.columnSupplierName
            End Get
        End Property
        
        Friend ReadOnly Property InvoiceNoColumn As DataColumn
            Get
                Return Me.columnInvoiceNo
            End Get
        End Property
        
        Friend ReadOnly Property OwnerColumn As DataColumn
            Get
                Return Me.columnOwner
            End Get
        End Property
        
        Friend ReadOnly Property RocIDColumn As DataColumn
            Get
                Return Me.columnRocID
            End Get
        End Property
        
        Friend ReadOnly Property Phone1Column As DataColumn
            Get
                Return Me.columnPhone1
            End Get
        End Property
        
        Friend ReadOnly Property Phone2Column As DataColumn
            Get
                Return Me.columnPhone2
            End Get
        End Property
        
        Friend ReadOnly Property FaxColumn As DataColumn
            Get
                Return Me.columnFax
            End Get
        End Property
        
        Friend ReadOnly Property ContactName1Column As DataColumn
            Get
                Return Me.columnContactName1
            End Get
        End Property
        
        Friend ReadOnly Property ContactName2Column As DataColumn
            Get
                Return Me.columnContactName2
            End Get
        End Property
        
        Friend ReadOnly Property CompanyAddressColumn As DataColumn
            Get
                Return Me.columnCompanyAddress
            End Get
        End Property
        

⌨️ 快捷键说明

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