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

📄 dsar220.vb

📁 通用进销存-visual basic编写
💻 VB
📖 第 1 页 / 共 2 页
字号:
'------------------------------------------------------------------------------
' <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 dsAR220
    Inherits DataSet
    
    Private tableAR220 As AR220DataTable
    
    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("AR220")) Is Nothing) Then
                Me.Tables.Add(New AR220DataTable(ds.Tables("AR220")))
            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 AR220 As AR220DataTable
        Get
            Return Me.tableAR220
        End Get
    End Property
    
    Public Overrides Function Clone() As DataSet
        Dim cln As dsAR220 = CType(MyBase.Clone,dsAR220)
        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("AR220")) Is Nothing) Then
            Me.Tables.Add(New AR220DataTable(ds.Tables("AR220")))
        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.tableAR220 = CType(Me.Tables("AR220"),AR220DataTable)
        If (Not (Me.tableAR220) Is Nothing) Then
            Me.tableAR220.InitVars
        End If
    End Sub
    
    Private Sub InitClass()
        Me.DataSetName = "dsAR220"
        Me.Prefix = ""
        Me.Namespace = "http://tempuri.org/dsAR220.xsd"
        Me.Locale = New System.Globalization.CultureInfo("en-US")
        Me.CaseSensitive = false
        Me.EnforceConstraints = true
        Me.tableAR220 = New AR220DataTable
        Me.Tables.Add(Me.tableAR220)
    End Sub
    
    Private Function ShouldSerializeAR220() 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 AR220RowChangeEventHandler(ByVal sender As Object, ByVal e As AR220RowChangeEvent)
    
    <System.Diagnostics.DebuggerStepThrough()>  _
    Public Class AR220DataTable
        Inherits DataTable
        Implements System.Collections.IEnumerable
        
        Private columnCustomerID As DataColumn
        
        Private columnDeliveryDate As DataColumn
        
        Private columnDeliveryID As DataColumn
        
        Private columnCustomerAttribName As DataColumn
        
        Private columnEarNo As DataColumn
        
        Private columnContactName As DataColumn
        
        Private columnCompanyAddress As DataColumn
        
        Private columnDeliveryProperty As DataColumn
        
        Private columnInvoiceNo As DataColumn
        
        Private columnSubTotal As DataColumn
        
        Private columnValueAddTax As DataColumn
        
        Private columnAmount As DataColumn
        
        Private columnAccountReceivable As DataColumn
        
        Private columnReceived As DataColumn
        
        Private columnUnReceived As DataColumn
        
        Friend Sub New()
            MyBase.New("AR220")
            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 CustomerIDColumn As DataColumn
            Get
                Return Me.columnCustomerID
            End Get
        End Property
        
        Friend ReadOnly Property DeliveryDateColumn As DataColumn
            Get
                Return Me.columnDeliveryDate
            End Get
        End Property
        
        Friend ReadOnly Property DeliveryIDColumn As DataColumn
            Get
                Return Me.columnDeliveryID
            End Get
        End Property
        
        Friend ReadOnly Property CustomerAttribNameColumn As DataColumn
            Get
                Return Me.columnCustomerAttribName
            End Get
        End Property
        
        Friend ReadOnly Property EarNoColumn As DataColumn
            Get
                Return Me.columnEarNo
            End Get
        End Property
        
        Friend ReadOnly Property ContactNameColumn As DataColumn
            Get
                Return Me.columnContactName
            End Get
        End Property
        
        Friend ReadOnly Property CompanyAddressColumn As DataColumn
            Get
                Return Me.columnCompanyAddress
            End Get
        End Property
        
        Friend ReadOnly Property DeliveryPropertyColumn As DataColumn
            Get
                Return Me.columnDeliveryProperty
            End Get
        End Property
        
        Friend ReadOnly Property InvoiceNoColumn As DataColumn
            Get
                Return Me.columnInvoiceNo
            End Get
        End Property
        
        Friend ReadOnly Property SubTotalColumn As DataColumn
            Get
                Return Me.columnSubTotal
            End Get
        End Property
        
        Friend ReadOnly Property ValueAddTaxColumn As DataColumn
            Get
                Return Me.columnValueAddTax
            End Get
        End Property
        
        Friend ReadOnly Property AmountColumn As DataColumn
            Get
                Return Me.columnAmount
            End Get
        End Property
        
        Friend ReadOnly Property AccountReceivableColumn As DataColumn
            Get
                Return Me.columnAccountReceivable
            End Get
        End Property
        
        Friend ReadOnly Property ReceivedColumn As DataColumn
            Get
                Return Me.columnReceived
            End Get
        End Property
        
        Friend ReadOnly Property UnReceivedColumn As DataColumn
            Get
                Return Me.columnUnReceived
            End Get
        End Property
        
        Public Default ReadOnly Property Item(ByVal index As Integer) As AR220Row
            Get
                Return CType(Me.Rows(index),AR220Row)
            End Get
        End Property
        
        Public Event AR220RowChanged As AR220RowChangeEventHandler
        
        Public Event AR220RowChanging As AR220RowChangeEventHandler
        
        Public Event AR220RowDeleted As AR220RowChangeEventHandler
        
        Public Event AR220RowDeleting As AR220RowChangeEventHandler
        
        Public Overloads Sub AddAR220Row(ByVal row As AR220Row)
            Me.Rows.Add(row)
        End Sub
        
        Public Overloads Function AddAR220Row(ByVal CustomerID As String, ByVal DeliveryDate As String, ByVal DeliveryID As String, ByVal CustomerAttribName As String, ByVal EarNo As String, ByVal ContactName As String, ByVal CompanyAddress As String, ByVal DeliveryProperty As String, ByVal InvoiceNo As String, ByVal SubTotal As Decimal, ByVal ValueAddTax As Decimal, ByVal Amount As Decimal, ByVal AccountReceivable As Decimal, ByVal Received As Decimal, ByVal UnReceived As Decimal) As AR220Row
            Dim rowAR220Row As AR220Row = CType(Me.NewRow,AR220Row)
            rowAR220Row.ItemArray = New Object() {CustomerID, DeliveryDate, DeliveryID, CustomerAttribName, EarNo, ContactName, CompanyAddress, DeliveryProperty, InvoiceNo, SubTotal, ValueAddTax, Amount, AccountReceivable, Received, UnReceived}
            Me.Rows.Add(rowAR220Row)
            Return rowAR220Row
        End Function
        
        Public Function GetEnumerator() As System.Collections.IEnumerator Implements System.Collections.IEnumerable.GetEnumerator
            Return Me.Rows.GetEnumerator
        End Function
        
        Public Overrides Function Clone() As DataTable
            Dim cln As AR220DataTable = CType(MyBase.Clone,AR220DataTable)
            cln.InitVars
            Return cln
        End Function
        
        Friend Sub InitVars()
            Me.columnCustomerID = Me.Columns("CustomerID")
            Me.columnDeliveryDate = Me.Columns("DeliveryDate")
            Me.columnDeliveryID = Me.Columns("DeliveryID")
            Me.columnCustomerAttribName = Me.Columns("CustomerAttribName")
            Me.columnEarNo = Me.Columns("EarNo")
            Me.columnContactName = Me.Columns("ContactName")
            Me.columnCompanyAddress = Me.Columns("CompanyAddress")
            Me.columnDeliveryProperty = Me.Columns("DeliveryProperty")
            Me.columnInvoiceNo = Me.Columns("InvoiceNo")
            Me.columnSubTotal = Me.Columns("SubTotal")
            Me.columnValueAddTax = Me.Columns("ValueAddTax")
            Me.columnAmount = Me.Columns("Amount")
            Me.columnAccountReceivable = Me.Columns("AccountReceivable")
            Me.columnReceived = Me.Columns("Received")
            Me.columnUnReceived = Me.Columns("UnReceived")
        End Sub
        
        Private Sub InitClass()
            Me.columnCustomerID = New DataColumn("CustomerID", GetType(System.String), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnCustomerID)
            Me.columnDeliveryDate = New DataColumn("DeliveryDate", GetType(System.String), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnDeliveryDate)
            Me.columnDeliveryID = New DataColumn("DeliveryID", GetType(System.String), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnDeliveryID)
            Me.columnCustomerAttribName = New DataColumn("CustomerAttribName", GetType(System.String), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnCustomerAttribName)
            Me.columnEarNo = New DataColumn("EarNo", GetType(System.String), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnEarNo)
            Me.columnContactName = New DataColumn("ContactName", GetType(System.String), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnContactName)
            Me.columnCompanyAddress = New DataColumn("CompanyAddress", GetType(System.String), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnCompanyAddress)
            Me.columnDeliveryProperty = New DataColumn("DeliveryProperty", GetType(System.String), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnDeliveryProperty)
            Me.columnInvoiceNo = New DataColumn("InvoiceNo", GetType(System.String), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnInvoiceNo)
            Me.columnSubTotal = New DataColumn("SubTotal", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnSubTotal)
            Me.columnValueAddTax = New DataColumn("ValueAddTax", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnValueAddTax)
            Me.columnAmount = New DataColumn("Amount", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnAmount)
            Me.columnAccountReceivable = New DataColumn("AccountReceivable", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnAccountReceivable)
            Me.columnReceived = New DataColumn("Received", GetType(System.Decimal), Nothing, System.Data.MappingType.Element)
            Me.Columns.Add(Me.columnReceived)

⌨️ 快捷键说明

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