📄 dataset7.vb
字号:
'------------------------------------------------------------------------------
' <autogenerated>
' This code was generated by a tool.
' Runtime Version: 1.0.3705.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 DataSet7
Inherits DataSet
Private table应急物资信息表 As 应急物资信息表DataTable
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("应急物资信息表")) Is Nothing) Then
Me.Tables.Add(New 应急物资信息表DataTable(ds.Tables("应急物资信息表")))
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 应急物资信息表 As 应急物资信息表DataTable
Get
Return Me.table应急物资信息表
End Get
End Property
Public Overrides Function Clone() As DataSet
Dim cln As DataSet7 = CType(MyBase.Clone,DataSet7)
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("应急物资信息表")) Is Nothing) Then
Me.Tables.Add(New 应急物资信息表DataTable(ds.Tables("应急物资信息表")))
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.table应急物资信息表 = CType(Me.Tables("应急物资信息表"),应急物资信息表DataTable)
If (Not (Me.table应急物资信息表) Is Nothing) Then
Me.table应急物资信息表.InitVars
End If
End Sub
Private Sub InitClass()
Me.DataSetName = "DataSet7"
Me.Prefix = ""
Me.Namespace = "http://www.tempuri.org/DataSet7.xsd"
Me.Locale = New System.Globalization.CultureInfo("zh-CN")
Me.CaseSensitive = false
Me.EnforceConstraints = true
Me.table应急物资信息表 = New 应急物资信息表DataTable
Me.Tables.Add(Me.table应急物资信息表)
End Sub
Private Function ShouldSerialize应急物资信息表() 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 应急物资信息表RowChangeEventHandler(ByVal sender As Object, ByVal e As 应急物资信息表RowChangeEvent)
<System.Diagnostics.DebuggerStepThrough()> _
Public Class 应急物资信息表DataTable
Inherits DataTable
Implements System.Collections.IEnumerable
Private column编号 As DataColumn
Private column应急物资名称 As DataColumn
Private column数量 As DataColumn
Private column隶属部门 As DataColumn
Private column申报时间 As DataColumn
Private column申报单位 As DataColumn
Private column申报单位电话 As DataColumn
Private column修改时间 As DataColumn
Private column修改单位 As DataColumn
Private column修改单位电话 As DataColumn
Private column备注 As DataColumn
Friend Sub New()
MyBase.New("应急物资信息表")
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 编号Column As DataColumn
Get
Return Me.column编号
End Get
End Property
Friend ReadOnly Property 应急物资名称Column As DataColumn
Get
Return Me.column应急物资名称
End Get
End Property
Friend ReadOnly Property 数量Column As DataColumn
Get
Return Me.column数量
End Get
End Property
Friend ReadOnly Property 隶属部门Column As DataColumn
Get
Return Me.column隶属部门
End Get
End Property
Friend ReadOnly Property 申报时间Column As DataColumn
Get
Return Me.column申报时间
End Get
End Property
Friend ReadOnly Property 申报单位Column As DataColumn
Get
Return Me.column申报单位
End Get
End Property
Friend ReadOnly Property 申报单位电话Column As DataColumn
Get
Return Me.column申报单位电话
End Get
End Property
Friend ReadOnly Property 修改时间Column As DataColumn
Get
Return Me.column修改时间
End Get
End Property
Friend ReadOnly Property 修改单位Column As DataColumn
Get
Return Me.column修改单位
End Get
End Property
Friend ReadOnly Property 修改单位电话Column As DataColumn
Get
Return Me.column修改单位电话
End Get
End Property
Friend ReadOnly Property 备注Column As DataColumn
Get
Return Me.column备注
End Get
End Property
Public Default ReadOnly Property Item(ByVal index As Integer) As 应急物资信息表Row
Get
Return CType(Me.Rows(index),应急物资信息表Row)
End Get
End Property
Public Event 应急物资信息表RowChanged As 应急物资信息表RowChangeEventHandler
Public Event 应急物资信息表RowChanging As 应急物资信息表RowChangeEventHandler
Public Event 应急物资信息表RowDeleted As 应急物资信息表RowChangeEventHandler
Public Event 应急物资信息表RowDeleting As 应急物资信息表RowChangeEventHandler
Public Overloads Sub Add应急物资信息表Row(ByVal row As 应急物资信息表Row)
Me.Rows.Add(row)
End Sub
Public Overloads Function Add应急物资信息表Row(ByVal 编号 As Integer, ByVal 应急物资名称 As String, ByVal 数量 As String, ByVal 隶属部门 As String, ByVal 申报时间 As Date, ByVal 申报单位 As String, ByVal 申报单位电话 As String, ByVal 修改时间 As Date, ByVal 修改单位 As String, ByVal 修改单位电话 As String, ByVal 备注 As String) As 应急物资信息表Row
Dim row应急物资信息表Row As 应急物资信息表Row = CType(Me.NewRow,应急物资信息表Row)
row应急物资信息表Row.ItemArray = New Object() {编号, 应急物资名称, 数量, 隶属部门, 申报时间, 申报单位, 申报单位电话, 修改时间, 修改单位, 修改单位电话, 备注}
Me.Rows.Add(row应急物资信息表Row)
Return row应急物资信息表Row
End Function
Public Function FindBy编号(ByVal 编号 As Integer) As 应急物资信息表Row
Return CType(Me.Rows.Find(New Object() {编号}),应急物资信息表Row)
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 应急物资信息表DataTable = CType(MyBase.Clone,应急物资信息表DataTable)
cln.InitVars
Return cln
End Function
Protected Overrides Function CreateInstance() As DataTable
Return New 应急物资信息表DataTable
End Function
Friend Sub InitVars()
Me.column编号 = Me.Columns("编号")
Me.column应急物资名称 = Me.Columns("应急物资名称")
Me.column数量 = Me.Columns("数量")
Me.column隶属部门 = Me.Columns("隶属部门")
Me.column申报时间 = Me.Columns("申报时间")
Me.column申报单位 = Me.Columns("申报单位")
Me.column申报单位电话 = Me.Columns("申报单位电话")
Me.column修改时间 = Me.Columns("修改时间")
Me.column修改单位 = Me.Columns("修改单位")
Me.column修改单位电话 = Me.Columns("修改单位电话")
Me.column备注 = Me.Columns("备注")
End Sub
Private Sub InitClass()
Me.column编号 = New DataColumn("编号", GetType(System.Int32), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.column编号)
Me.column应急物资名称 = New DataColumn("应急物资名称", GetType(System.String), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.column应急物资名称)
Me.column数量 = New DataColumn("数量", GetType(System.String), Nothing, System.Data.MappingType.Element)
Me.Columns.Add(Me.column数量)
Me.column隶属部门 = New DataColumn("隶属部门", GetType(System.String), Nothing, System.Data.MappingType.Element)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -