InversionesDEVDataSet1.Designer.vb 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138
  1. '------------------------------------------------------------------------------
  2. ' <auto-generated>
  3. ' Este código fue generado por una herramienta.
  4. ' Versión de runtime:4.0.30319.42000
  5. '
  6. ' Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
  7. ' se vuelve a generar el código.
  8. ' </auto-generated>
  9. '------------------------------------------------------------------------------
  10. Option Strict Off
  11. Option Explicit On
  12. '''<summary>
  13. '''Represents a strongly typed in-memory cache of data.
  14. '''</summary>
  15. <Global.System.Serializable(), _
  16. Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  17. Global.System.ComponentModel.ToolboxItem(true), _
  18. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema"), _
  19. Global.System.Xml.Serialization.XmlRootAttribute("InversionesDEVDataSet1"), _
  20. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")> _
  21. Partial Public Class InversionesDEVDataSet1
  22. Inherits Global.System.Data.DataSet
  23. Private tableINV0 As INV0DataTable
  24. Private _schemaSerializationMode As Global.System.Data.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
  25. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  26. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  27. Public Sub New()
  28. MyBase.New
  29. Me.BeginInit
  30. Me.InitClass
  31. Dim schemaChangedHandler As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
  32. AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
  33. AddHandler MyBase.Relations.CollectionChanged, schemaChangedHandler
  34. Me.EndInit
  35. End Sub
  36. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  37. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  38. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  39. MyBase.New(info, context, false)
  40. If (Me.IsBinarySerialized(info, context) = true) Then
  41. Me.InitVars(false)
  42. Dim schemaChangedHandler1 As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
  43. AddHandler Me.Tables.CollectionChanged, schemaChangedHandler1
  44. AddHandler Me.Relations.CollectionChanged, schemaChangedHandler1
  45. Return
  46. End If
  47. Dim strSchema As String = CType(info.GetValue("XmlSchema", GetType(String)),String)
  48. If (Me.DetermineSchemaSerializationMode(info, context) = Global.System.Data.SchemaSerializationMode.IncludeSchema) Then
  49. Dim ds As Global.System.Data.DataSet = New Global.System.Data.DataSet()
  50. ds.ReadXmlSchema(New Global.System.Xml.XmlTextReader(New Global.System.IO.StringReader(strSchema)))
  51. If (Not (ds.Tables("INV0")) Is Nothing) Then
  52. MyBase.Tables.Add(New INV0DataTable(ds.Tables("INV0")))
  53. End If
  54. Me.DataSetName = ds.DataSetName
  55. Me.Prefix = ds.Prefix
  56. Me.Namespace = ds.Namespace
  57. Me.Locale = ds.Locale
  58. Me.CaseSensitive = ds.CaseSensitive
  59. Me.EnforceConstraints = ds.EnforceConstraints
  60. Me.Merge(ds, false, Global.System.Data.MissingSchemaAction.Add)
  61. Me.InitVars
  62. Else
  63. Me.ReadXmlSchema(New Global.System.Xml.XmlTextReader(New Global.System.IO.StringReader(strSchema)))
  64. End If
  65. Me.GetSerializationData(info, context)
  66. Dim schemaChangedHandler As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
  67. AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
  68. AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
  69. End Sub
  70. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  71. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  72. Global.System.ComponentModel.Browsable(false), _
  73. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  74. Public ReadOnly Property INV0() As INV0DataTable
  75. Get
  76. Return Me.tableINV0
  77. End Get
  78. End Property
  79. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  80. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  81. Global.System.ComponentModel.BrowsableAttribute(true), _
  82. Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Visible)> _
  83. Public Overrides Property SchemaSerializationMode() As Global.System.Data.SchemaSerializationMode
  84. Get
  85. Return Me._schemaSerializationMode
  86. End Get
  87. Set
  88. Me._schemaSerializationMode = value
  89. End Set
  90. End Property
  91. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  92. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  93. Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  94. Public Shadows ReadOnly Property Tables() As Global.System.Data.DataTableCollection
  95. Get
  96. Return MyBase.Tables
  97. End Get
  98. End Property
  99. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  100. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  101. Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  102. Public Shadows ReadOnly Property Relations() As Global.System.Data.DataRelationCollection
  103. Get
  104. Return MyBase.Relations
  105. End Get
  106. End Property
  107. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  108. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  109. Protected Overrides Sub InitializeDerivedDataSet()
  110. Me.BeginInit
  111. Me.InitClass
  112. Me.EndInit
  113. End Sub
  114. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  115. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  116. Public Overrides Function Clone() As Global.System.Data.DataSet
  117. Dim cln As InversionesDEVDataSet1 = CType(MyBase.Clone,InversionesDEVDataSet1)
  118. cln.InitVars
  119. cln.SchemaSerializationMode = Me.SchemaSerializationMode
  120. Return cln
  121. End Function
  122. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  123. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  124. Protected Overrides Function ShouldSerializeTables() As Boolean
  125. Return false
  126. End Function
  127. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  128. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  129. Protected Overrides Function ShouldSerializeRelations() As Boolean
  130. Return false
  131. End Function
  132. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  133. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  134. Protected Overrides Sub ReadXmlSerializable(ByVal reader As Global.System.Xml.XmlReader)
  135. If (Me.DetermineSchemaSerializationMode(reader) = Global.System.Data.SchemaSerializationMode.IncludeSchema) Then
  136. Me.Reset
  137. Dim ds As Global.System.Data.DataSet = New Global.System.Data.DataSet()
  138. ds.ReadXml(reader)
  139. If (Not (ds.Tables("INV0")) Is Nothing) Then
  140. MyBase.Tables.Add(New INV0DataTable(ds.Tables("INV0")))
  141. End If
  142. Me.DataSetName = ds.DataSetName
  143. Me.Prefix = ds.Prefix
  144. Me.Namespace = ds.Namespace
  145. Me.Locale = ds.Locale
  146. Me.CaseSensitive = ds.CaseSensitive
  147. Me.EnforceConstraints = ds.EnforceConstraints
  148. Me.Merge(ds, false, Global.System.Data.MissingSchemaAction.Add)
  149. Me.InitVars
  150. Else
  151. Me.ReadXml(reader)
  152. Me.InitVars
  153. End If
  154. End Sub
  155. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  156. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  157. Protected Overrides Function GetSchemaSerializable() As Global.System.Xml.Schema.XmlSchema
  158. Dim stream As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  159. Me.WriteXmlSchema(New Global.System.Xml.XmlTextWriter(stream, Nothing))
  160. stream.Position = 0
  161. Return Global.System.Xml.Schema.XmlSchema.Read(New Global.System.Xml.XmlTextReader(stream), Nothing)
  162. End Function
  163. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  164. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  165. Friend Overloads Sub InitVars()
  166. Me.InitVars(true)
  167. End Sub
  168. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  169. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  170. Friend Overloads Sub InitVars(ByVal initTable As Boolean)
  171. Me.tableINV0 = CType(MyBase.Tables("INV0"),INV0DataTable)
  172. If (initTable = true) Then
  173. If (Not (Me.tableINV0) Is Nothing) Then
  174. Me.tableINV0.InitVars
  175. End If
  176. End If
  177. End Sub
  178. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  179. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  180. Private Sub InitClass()
  181. Me.DataSetName = "InversionesDEVDataSet1"
  182. Me.Prefix = ""
  183. Me.Namespace = "http://tempuri.org/InversionesDEVDataSet1.xsd"
  184. Me.EnforceConstraints = true
  185. Me.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
  186. Me.tableINV0 = New INV0DataTable()
  187. MyBase.Tables.Add(Me.tableINV0)
  188. End Sub
  189. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  190. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  191. Private Function ShouldSerializeINV0() As Boolean
  192. Return false
  193. End Function
  194. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  195. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  196. Private Sub SchemaChanged(ByVal sender As Object, ByVal e As Global.System.ComponentModel.CollectionChangeEventArgs)
  197. If (e.Action = Global.System.ComponentModel.CollectionChangeAction.Remove) Then
  198. Me.InitVars
  199. End If
  200. End Sub
  201. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  202. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  203. Public Shared Function GetTypedDataSetSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  204. Dim ds As InversionesDEVDataSet1 = New InversionesDEVDataSet1()
  205. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  206. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  207. Dim any As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  208. any.Namespace = ds.Namespace
  209. sequence.Items.Add(any)
  210. type.Particle = sequence
  211. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  212. If xs.Contains(dsSchema.TargetNamespace) Then
  213. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  214. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  215. Try
  216. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  217. dsSchema.Write(s1)
  218. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  219. Do While schemas.MoveNext
  220. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  221. s2.SetLength(0)
  222. schema.Write(s2)
  223. If (s1.Length = s2.Length) Then
  224. s1.Position = 0
  225. s2.Position = 0
  226. Do While ((s1.Position <> s1.Length) _
  227. AndAlso (s1.ReadByte = s2.ReadByte))
  228. Loop
  229. If (s1.Position = s1.Length) Then
  230. Return type
  231. End If
  232. End If
  233. Loop
  234. Finally
  235. If (Not (s1) Is Nothing) Then
  236. s1.Close
  237. End If
  238. If (Not (s2) Is Nothing) Then
  239. s2.Close
  240. End If
  241. End Try
  242. End If
  243. xs.Add(dsSchema)
  244. Return type
  245. End Function
  246. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  247. Public Delegate Sub INV0RowChangeEventHandler(ByVal sender As Object, ByVal e As INV0RowChangeEvent)
  248. '''<summary>
  249. '''Represents the strongly named DataTable class.
  250. '''</summary>
  251. <Global.System.Serializable(), _
  252. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  253. Partial Public Class INV0DataTable
  254. Inherits Global.System.Data.TypedTableBase(Of INV0Row)
  255. Private columnCodInv As Global.System.Data.DataColumn
  256. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  257. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  258. Public Sub New()
  259. MyBase.New
  260. Me.TableName = "INV0"
  261. Me.BeginInit
  262. Me.InitClass
  263. Me.EndInit
  264. End Sub
  265. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  266. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  267. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  268. MyBase.New
  269. Me.TableName = table.TableName
  270. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  271. Me.CaseSensitive = table.CaseSensitive
  272. End If
  273. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  274. Me.Locale = table.Locale
  275. End If
  276. If (table.Namespace <> table.DataSet.Namespace) Then
  277. Me.Namespace = table.Namespace
  278. End If
  279. Me.Prefix = table.Prefix
  280. Me.MinimumCapacity = table.MinimumCapacity
  281. End Sub
  282. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  283. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  284. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  285. MyBase.New(info, context)
  286. Me.InitVars
  287. End Sub
  288. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  289. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  290. Public ReadOnly Property CodInvColumn() As Global.System.Data.DataColumn
  291. Get
  292. Return Me.columnCodInv
  293. End Get
  294. End Property
  295. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  296. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  297. Global.System.ComponentModel.Browsable(false)> _
  298. Public ReadOnly Property Count() As Integer
  299. Get
  300. Return Me.Rows.Count
  301. End Get
  302. End Property
  303. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  304. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  305. Public Default ReadOnly Property Item(ByVal index As Integer) As INV0Row
  306. Get
  307. Return CType(Me.Rows(index),INV0Row)
  308. End Get
  309. End Property
  310. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  311. Public Event INV0RowChanging As INV0RowChangeEventHandler
  312. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  313. Public Event INV0RowChanged As INV0RowChangeEventHandler
  314. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  315. Public Event INV0RowDeleting As INV0RowChangeEventHandler
  316. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  317. Public Event INV0RowDeleted As INV0RowChangeEventHandler
  318. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  319. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  320. Public Overloads Sub AddINV0Row(ByVal row As INV0Row)
  321. Me.Rows.Add(row)
  322. End Sub
  323. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  324. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  325. Public Overloads Function AddINV0Row(ByVal CodInv As String) As INV0Row
  326. Dim rowINV0Row As INV0Row = CType(Me.NewRow,INV0Row)
  327. Dim columnValuesArray() As Object = New Object() {CodInv}
  328. rowINV0Row.ItemArray = columnValuesArray
  329. Me.Rows.Add(rowINV0Row)
  330. Return rowINV0Row
  331. End Function
  332. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  333. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  334. Public Overrides Function Clone() As Global.System.Data.DataTable
  335. Dim cln As INV0DataTable = CType(MyBase.Clone,INV0DataTable)
  336. cln.InitVars
  337. Return cln
  338. End Function
  339. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  340. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  341. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  342. Return New INV0DataTable()
  343. End Function
  344. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  345. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  346. Friend Sub InitVars()
  347. Me.columnCodInv = MyBase.Columns("CodInv")
  348. End Sub
  349. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  350. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  351. Private Sub InitClass()
  352. Me.columnCodInv = New Global.System.Data.DataColumn("CodInv", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  353. MyBase.Columns.Add(Me.columnCodInv)
  354. Me.columnCodInv.AllowDBNull = false
  355. Me.columnCodInv.MaxLength = 20
  356. End Sub
  357. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  358. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  359. Public Function NewINV0Row() As INV0Row
  360. Return CType(Me.NewRow,INV0Row)
  361. End Function
  362. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  363. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  364. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  365. Return New INV0Row(builder)
  366. End Function
  367. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  368. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  369. Protected Overrides Function GetRowType() As Global.System.Type
  370. Return GetType(INV0Row)
  371. End Function
  372. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  373. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  374. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  375. MyBase.OnRowChanged(e)
  376. If (Not (Me.INV0RowChangedEvent) Is Nothing) Then
  377. RaiseEvent INV0RowChanged(Me, New INV0RowChangeEvent(CType(e.Row,INV0Row), e.Action))
  378. End If
  379. End Sub
  380. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  381. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  382. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  383. MyBase.OnRowChanging(e)
  384. If (Not (Me.INV0RowChangingEvent) Is Nothing) Then
  385. RaiseEvent INV0RowChanging(Me, New INV0RowChangeEvent(CType(e.Row,INV0Row), e.Action))
  386. End If
  387. End Sub
  388. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  389. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  390. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  391. MyBase.OnRowDeleted(e)
  392. If (Not (Me.INV0RowDeletedEvent) Is Nothing) Then
  393. RaiseEvent INV0RowDeleted(Me, New INV0RowChangeEvent(CType(e.Row,INV0Row), e.Action))
  394. End If
  395. End Sub
  396. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  397. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  398. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  399. MyBase.OnRowDeleting(e)
  400. If (Not (Me.INV0RowDeletingEvent) Is Nothing) Then
  401. RaiseEvent INV0RowDeleting(Me, New INV0RowChangeEvent(CType(e.Row,INV0Row), e.Action))
  402. End If
  403. End Sub
  404. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  405. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  406. Public Sub RemoveINV0Row(ByVal row As INV0Row)
  407. Me.Rows.Remove(row)
  408. End Sub
  409. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  410. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  411. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  412. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  413. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  414. Dim ds As InversionesDEVDataSet1 = New InversionesDEVDataSet1()
  415. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  416. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  417. any1.MinOccurs = New Decimal(0)
  418. any1.MaxOccurs = Decimal.MaxValue
  419. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  420. sequence.Items.Add(any1)
  421. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  422. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  423. any2.MinOccurs = New Decimal(1)
  424. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  425. sequence.Items.Add(any2)
  426. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  427. attribute1.Name = "namespace"
  428. attribute1.FixedValue = ds.Namespace
  429. type.Attributes.Add(attribute1)
  430. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  431. attribute2.Name = "tableTypeName"
  432. attribute2.FixedValue = "INV0DataTable"
  433. type.Attributes.Add(attribute2)
  434. type.Particle = sequence
  435. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  436. If xs.Contains(dsSchema.TargetNamespace) Then
  437. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  438. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  439. Try
  440. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  441. dsSchema.Write(s1)
  442. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  443. Do While schemas.MoveNext
  444. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  445. s2.SetLength(0)
  446. schema.Write(s2)
  447. If (s1.Length = s2.Length) Then
  448. s1.Position = 0
  449. s2.Position = 0
  450. Do While ((s1.Position <> s1.Length) _
  451. AndAlso (s1.ReadByte = s2.ReadByte))
  452. Loop
  453. If (s1.Position = s1.Length) Then
  454. Return type
  455. End If
  456. End If
  457. Loop
  458. Finally
  459. If (Not (s1) Is Nothing) Then
  460. s1.Close
  461. End If
  462. If (Not (s2) Is Nothing) Then
  463. s2.Close
  464. End If
  465. End Try
  466. End If
  467. xs.Add(dsSchema)
  468. Return type
  469. End Function
  470. End Class
  471. '''<summary>
  472. '''Represents strongly named DataRow class.
  473. '''</summary>
  474. Partial Public Class INV0Row
  475. Inherits Global.System.Data.DataRow
  476. Private tableINV0 As INV0DataTable
  477. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  478. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  479. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  480. MyBase.New(rb)
  481. Me.tableINV0 = CType(Me.Table,INV0DataTable)
  482. End Sub
  483. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  484. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  485. Public Property CodInv() As String
  486. Get
  487. Return CType(Me(Me.tableINV0.CodInvColumn),String)
  488. End Get
  489. Set
  490. Me(Me.tableINV0.CodInvColumn) = value
  491. End Set
  492. End Property
  493. End Class
  494. '''<summary>
  495. '''Row event argument class
  496. '''</summary>
  497. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  498. Public Class INV0RowChangeEvent
  499. Inherits Global.System.EventArgs
  500. Private eventRow As INV0Row
  501. Private eventAction As Global.System.Data.DataRowAction
  502. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  503. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  504. Public Sub New(ByVal row As INV0Row, ByVal action As Global.System.Data.DataRowAction)
  505. MyBase.New
  506. Me.eventRow = row
  507. Me.eventAction = action
  508. End Sub
  509. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  510. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  511. Public ReadOnly Property Row() As INV0Row
  512. Get
  513. Return Me.eventRow
  514. End Get
  515. End Property
  516. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  517. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  518. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  519. Get
  520. Return Me.eventAction
  521. End Get
  522. End Property
  523. End Class
  524. End Class
  525. Namespace InversionesDEVDataSet1TableAdapters
  526. '''<summary>
  527. '''Represents the connection and commands used to retrieve and save data.
  528. '''</summary>
  529. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  530. Global.System.ComponentModel.ToolboxItem(true), _
  531. Global.System.ComponentModel.DataObjectAttribute(true), _
  532. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  533. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  534. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  535. Partial Public Class INV0TableAdapter
  536. Inherits Global.System.ComponentModel.Component
  537. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  538. Private _connection As Global.System.Data.SqlClient.SqlConnection
  539. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  540. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  541. Private _clearBeforeFill As Boolean
  542. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  543. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  544. Public Sub New()
  545. MyBase.New
  546. Me.ClearBeforeFill = true
  547. End Sub
  548. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  549. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  550. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  551. Get
  552. If (Me._adapter Is Nothing) Then
  553. Me.InitAdapter
  554. End If
  555. Return Me._adapter
  556. End Get
  557. End Property
  558. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  559. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  560. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  561. Get
  562. If (Me._connection Is Nothing) Then
  563. Me.InitConnection
  564. End If
  565. Return Me._connection
  566. End Get
  567. Set
  568. Me._connection = value
  569. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  570. Me.Adapter.InsertCommand.Connection = value
  571. End If
  572. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  573. Me.Adapter.DeleteCommand.Connection = value
  574. End If
  575. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  576. Me.Adapter.UpdateCommand.Connection = value
  577. End If
  578. Dim i As Integer = 0
  579. Do While (i < Me.CommandCollection.Length)
  580. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  581. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  582. End If
  583. i = (i + 1)
  584. Loop
  585. End Set
  586. End Property
  587. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  588. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  589. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  590. Get
  591. Return Me._transaction
  592. End Get
  593. Set
  594. Me._transaction = value
  595. Dim i As Integer = 0
  596. Do While (i < Me.CommandCollection.Length)
  597. Me.CommandCollection(i).Transaction = Me._transaction
  598. i = (i + 1)
  599. Loop
  600. If ((Not (Me.Adapter) Is Nothing) _
  601. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  602. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  603. End If
  604. If ((Not (Me.Adapter) Is Nothing) _
  605. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  606. Me.Adapter.InsertCommand.Transaction = Me._transaction
  607. End If
  608. If ((Not (Me.Adapter) Is Nothing) _
  609. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  610. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  611. End If
  612. End Set
  613. End Property
  614. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  615. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  616. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  617. Get
  618. If (Me._commandCollection Is Nothing) Then
  619. Me.InitCommandCollection
  620. End If
  621. Return Me._commandCollection
  622. End Get
  623. End Property
  624. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  625. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  626. Public Property ClearBeforeFill() As Boolean
  627. Get
  628. Return Me._clearBeforeFill
  629. End Get
  630. Set
  631. Me._clearBeforeFill = value
  632. End Set
  633. End Property
  634. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  635. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  636. Private Sub InitAdapter()
  637. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  638. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  639. tableMapping.SourceTable = "Table"
  640. tableMapping.DataSetTable = "INV0"
  641. tableMapping.ColumnMappings.Add("CodInv", "CodInv")
  642. Me._adapter.TableMappings.Add(tableMapping)
  643. End Sub
  644. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  645. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  646. Private Sub InitConnection()
  647. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  648. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.InversionesConnectionString
  649. End Sub
  650. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  651. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  652. Private Sub InitCommandCollection()
  653. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  654. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  655. Me._commandCollection(0).Connection = Me.Connection
  656. Me._commandCollection(0).CommandText = "SELECT CodInv FROM dbo.INV0"
  657. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  658. End Sub
  659. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  660. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  661. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  662. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  663. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDEVDataSet1.INV0DataTable) As Integer
  664. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  665. If (Me.ClearBeforeFill = true) Then
  666. dataTable.Clear
  667. End If
  668. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  669. Return returnValue
  670. End Function
  671. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  672. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  673. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  674. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  675. Public Overloads Overridable Function GetData() As InversionesDEVDataSet1.INV0DataTable
  676. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  677. Dim dataTable As InversionesDEVDataSet1.INV0DataTable = New InversionesDEVDataSet1.INV0DataTable()
  678. Me.Adapter.Fill(dataTable)
  679. Return dataTable
  680. End Function
  681. End Class
  682. '''<summary>
  683. '''TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  684. '''</summary>
  685. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  686. Global.System.ComponentModel.ToolboxItem(true), _
  687. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD"& _
  688. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  689. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")> _
  690. Partial Public Class TableAdapterManager
  691. Inherits Global.System.ComponentModel.Component
  692. Private _updateOrder As UpdateOrderOption
  693. Private _backupDataSetBeforeUpdate As Boolean
  694. Private _connection As Global.System.Data.IDbConnection
  695. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  696. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  697. Public Property UpdateOrder() As UpdateOrderOption
  698. Get
  699. Return Me._updateOrder
  700. End Get
  701. Set
  702. Me._updateOrder = value
  703. End Set
  704. End Property
  705. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  706. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  707. Public Property BackupDataSetBeforeUpdate() As Boolean
  708. Get
  709. Return Me._backupDataSetBeforeUpdate
  710. End Get
  711. Set
  712. Me._backupDataSetBeforeUpdate = value
  713. End Set
  714. End Property
  715. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  716. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  717. Global.System.ComponentModel.Browsable(false)> _
  718. Public Property Connection() As Global.System.Data.IDbConnection
  719. Get
  720. If (Not (Me._connection) Is Nothing) Then
  721. Return Me._connection
  722. End If
  723. Return Nothing
  724. End Get
  725. Set
  726. Me._connection = value
  727. End Set
  728. End Property
  729. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  730. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  731. Global.System.ComponentModel.Browsable(false)> _
  732. Public ReadOnly Property TableAdapterInstanceCount() As Integer
  733. Get
  734. Dim count As Integer = 0
  735. Return count
  736. End Get
  737. End Property
  738. '''<summary>
  739. '''Update rows in top-down order.
  740. '''</summary>
  741. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  742. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  743. Private Function UpdateUpdatedRows(ByVal dataSet As InversionesDEVDataSet1, ByVal allChangedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow), ByVal allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Integer
  744. Dim result As Integer = 0
  745. Return result
  746. End Function
  747. '''<summary>
  748. '''Insert rows in top-down order.
  749. '''</summary>
  750. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  751. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  752. Private Function UpdateInsertedRows(ByVal dataSet As InversionesDEVDataSet1, ByVal allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Integer
  753. Dim result As Integer = 0
  754. Return result
  755. End Function
  756. '''<summary>
  757. '''Delete rows in bottom-up order.
  758. '''</summary>
  759. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  760. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  761. Private Function UpdateDeletedRows(ByVal dataSet As InversionesDEVDataSet1, ByVal allChangedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Integer
  762. Dim result As Integer = 0
  763. Return result
  764. End Function
  765. '''<summary>
  766. '''Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  767. '''</summary>
  768. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  769. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  770. Private Function GetRealUpdatedRows(ByVal updatedRows() As Global.System.Data.DataRow, ByVal allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Global.System.Data.DataRow()
  771. If ((updatedRows Is Nothing) _
  772. OrElse (updatedRows.Length < 1)) Then
  773. Return updatedRows
  774. End If
  775. If ((allAddedRows Is Nothing) _
  776. OrElse (allAddedRows.Count < 1)) Then
  777. Return updatedRows
  778. End If
  779. Dim realUpdatedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
  780. Dim i As Integer = 0
  781. Do While (i < updatedRows.Length)
  782. Dim row As Global.System.Data.DataRow = updatedRows(i)
  783. If (allAddedRows.Contains(row) = false) Then
  784. realUpdatedRows.Add(row)
  785. End If
  786. i = (i + 1)
  787. Loop
  788. Return realUpdatedRows.ToArray
  789. End Function
  790. '''<summary>
  791. '''Update all changes to the dataset.
  792. '''</summary>
  793. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  794. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  795. Public Overridable Function UpdateAll(ByVal dataSet As InversionesDEVDataSet1) As Integer
  796. If (dataSet Is Nothing) Then
  797. Throw New Global.System.ArgumentNullException("dataSet")
  798. End If
  799. If (dataSet.HasChanges = false) Then
  800. Return 0
  801. End If
  802. Dim workConnection As Global.System.Data.IDbConnection = Me.Connection
  803. If (workConnection Is Nothing) Then
  804. Throw New Global.System.ApplicationException("TableAdapterManager no contiene información de conexión. Establezca cada propieda"& _
  805. "d TableAdapterManager TableAdapter en una instancia TableAdapter válida.")
  806. End If
  807. Dim workConnOpened As Boolean = false
  808. If ((workConnection.State And Global.System.Data.ConnectionState.Broken) _
  809. = Global.System.Data.ConnectionState.Broken) Then
  810. workConnection.Close
  811. End If
  812. If (workConnection.State = Global.System.Data.ConnectionState.Closed) Then
  813. workConnection.Open
  814. workConnOpened = true
  815. End If
  816. Dim workTransaction As Global.System.Data.IDbTransaction = workConnection.BeginTransaction
  817. If (workTransaction Is Nothing) Then
  818. Throw New Global.System.ApplicationException("La transacción no puede comenzar. La conexión de datos actual no es compatible co"& _
  819. "n las transacciones o el estado actual no permite que comience la transacción.")
  820. End If
  821. Dim allChangedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
  822. Dim allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
  823. Dim adaptersWithAcceptChangesDuringUpdate As Global.System.Collections.Generic.List(Of Global.System.Data.Common.DataAdapter) = New Global.System.Collections.Generic.List(Of Global.System.Data.Common.DataAdapter)()
  824. Dim revertConnections As Global.System.Collections.Generic.Dictionary(Of Object, Global.System.Data.IDbConnection) = New Global.System.Collections.Generic.Dictionary(Of Object, Global.System.Data.IDbConnection)()
  825. Dim result As Integer = 0
  826. Dim backupDataSet As Global.System.Data.DataSet = Nothing
  827. If Me.BackupDataSetBeforeUpdate Then
  828. backupDataSet = New Global.System.Data.DataSet()
  829. backupDataSet.Merge(dataSet)
  830. End If
  831. Try
  832. '---- Prepare for update -----------
  833. '
  834. '
  835. '---- Perform updates -----------
  836. '
  837. If (Me.UpdateOrder = UpdateOrderOption.UpdateInsertDelete) Then
  838. result = (result + Me.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows))
  839. result = (result + Me.UpdateInsertedRows(dataSet, allAddedRows))
  840. Else
  841. result = (result + Me.UpdateInsertedRows(dataSet, allAddedRows))
  842. result = (result + Me.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows))
  843. End If
  844. result = (result + Me.UpdateDeletedRows(dataSet, allChangedRows))
  845. '
  846. '---- Commit updates -----------
  847. '
  848. workTransaction.Commit
  849. If (0 < allAddedRows.Count) Then
  850. Dim rows((allAddedRows.Count) - 1) As Global.System.Data.DataRow
  851. allAddedRows.CopyTo(rows)
  852. Dim i As Integer = 0
  853. Do While (i < rows.Length)
  854. Dim row As Global.System.Data.DataRow = rows(i)
  855. row.AcceptChanges
  856. i = (i + 1)
  857. Loop
  858. End If
  859. If (0 < allChangedRows.Count) Then
  860. Dim rows((allChangedRows.Count) - 1) As Global.System.Data.DataRow
  861. allChangedRows.CopyTo(rows)
  862. Dim i As Integer = 0
  863. Do While (i < rows.Length)
  864. Dim row As Global.System.Data.DataRow = rows(i)
  865. row.AcceptChanges
  866. i = (i + 1)
  867. Loop
  868. End If
  869. Catch ex As Global.System.Exception
  870. workTransaction.Rollback
  871. '---- Restore the dataset -----------
  872. If Me.BackupDataSetBeforeUpdate Then
  873. Global.System.Diagnostics.Debug.Assert((Not (backupDataSet) Is Nothing))
  874. dataSet.Clear
  875. dataSet.Merge(backupDataSet)
  876. Else
  877. If (0 < allAddedRows.Count) Then
  878. Dim rows((allAddedRows.Count) - 1) As Global.System.Data.DataRow
  879. allAddedRows.CopyTo(rows)
  880. Dim i As Integer = 0
  881. Do While (i < rows.Length)
  882. Dim row As Global.System.Data.DataRow = rows(i)
  883. row.AcceptChanges
  884. row.SetAdded
  885. i = (i + 1)
  886. Loop
  887. End If
  888. End If
  889. Throw ex
  890. Finally
  891. If workConnOpened Then
  892. workConnection.Close
  893. End If
  894. If (0 < adaptersWithAcceptChangesDuringUpdate.Count) Then
  895. Dim adapters((adaptersWithAcceptChangesDuringUpdate.Count) - 1) As Global.System.Data.Common.DataAdapter
  896. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters)
  897. Dim i As Integer = 0
  898. Do While (i < adapters.Length)
  899. Dim adapter As Global.System.Data.Common.DataAdapter = adapters(i)
  900. adapter.AcceptChangesDuringUpdate = true
  901. i = (i + 1)
  902. Loop
  903. End If
  904. End Try
  905. Return result
  906. End Function
  907. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  908. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  909. Protected Overridable Sub SortSelfReferenceRows(ByVal rows() As Global.System.Data.DataRow, ByVal relation As Global.System.Data.DataRelation, ByVal childFirst As Boolean)
  910. Global.System.Array.Sort(Of Global.System.Data.DataRow)(rows, New SelfReferenceComparer(relation, childFirst))
  911. End Sub
  912. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  913. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  914. Protected Overridable Function MatchTableAdapterConnection(ByVal inputConnection As Global.System.Data.IDbConnection) As Boolean
  915. If (Not (Me._connection) Is Nothing) Then
  916. Return true
  917. End If
  918. If ((Me.Connection Is Nothing) _
  919. OrElse (inputConnection Is Nothing)) Then
  920. Return true
  921. End If
  922. If String.Equals(Me.Connection.ConnectionString, inputConnection.ConnectionString, Global.System.StringComparison.Ordinal) Then
  923. Return true
  924. End If
  925. Return false
  926. End Function
  927. '''<summary>
  928. '''Update Order Option
  929. '''</summary>
  930. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  931. Public Enum UpdateOrderOption
  932. InsertUpdateDelete = 0
  933. UpdateInsertDelete = 1
  934. End Enum
  935. '''<summary>
  936. '''Used to sort self-referenced table's rows
  937. '''</summary>
  938. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  939. Private Class SelfReferenceComparer
  940. Inherits Object
  941. Implements Global.System.Collections.Generic.IComparer(Of Global.System.Data.DataRow)
  942. Private _relation As Global.System.Data.DataRelation
  943. Private _childFirst As Integer
  944. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  945. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  946. Friend Sub New(ByVal relation As Global.System.Data.DataRelation, ByVal childFirst As Boolean)
  947. MyBase.New
  948. Me._relation = relation
  949. If childFirst Then
  950. Me._childFirst = -1
  951. Else
  952. Me._childFirst = 1
  953. End If
  954. End Sub
  955. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  956. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  957. Private Function GetRoot(ByVal row As Global.System.Data.DataRow, ByRef distance As Integer) As Global.System.Data.DataRow
  958. Global.System.Diagnostics.Debug.Assert((Not (row) Is Nothing))
  959. Dim root As Global.System.Data.DataRow = row
  960. distance = 0
  961. Dim traversedRows As Global.System.Collections.Generic.IDictionary(Of Global.System.Data.DataRow, Global.System.Data.DataRow) = New Global.System.Collections.Generic.Dictionary(Of Global.System.Data.DataRow, Global.System.Data.DataRow)()
  962. traversedRows(row) = row
  963. Dim parent As Global.System.Data.DataRow = row.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.[Default])
  964. Do While ((Not (parent) Is Nothing) _
  965. AndAlso (traversedRows.ContainsKey(parent) = false))
  966. distance = (distance + 1)
  967. root = parent
  968. traversedRows(parent) = parent
  969. parent = parent.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.[Default])
  970. Loop
  971. If (distance = 0) Then
  972. traversedRows.Clear
  973. traversedRows(row) = row
  974. parent = row.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.Original)
  975. Do While ((Not (parent) Is Nothing) _
  976. AndAlso (traversedRows.ContainsKey(parent) = false))
  977. distance = (distance + 1)
  978. root = parent
  979. traversedRows(parent) = parent
  980. parent = parent.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.Original)
  981. Loop
  982. End If
  983. Return root
  984. End Function
  985. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  986. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  987. Public Function Compare(ByVal row1 As Global.System.Data.DataRow, ByVal row2 As Global.System.Data.DataRow) As Integer Implements Global.System.Collections.Generic.IComparer(Of Global.System.Data.DataRow).Compare
  988. If Object.ReferenceEquals(row1, row2) Then
  989. Return 0
  990. End If
  991. If (row1 Is Nothing) Then
  992. Return -1
  993. End If
  994. If (row2 Is Nothing) Then
  995. Return 1
  996. End If
  997. Dim distance1 As Integer = 0
  998. Dim root1 As Global.System.Data.DataRow = Me.GetRoot(row1, distance1)
  999. Dim distance2 As Integer = 0
  1000. Dim root2 As Global.System.Data.DataRow = Me.GetRoot(row2, distance2)
  1001. If Object.ReferenceEquals(root1, root2) Then
  1002. Return (Me._childFirst * distance1.CompareTo(distance2))
  1003. Else
  1004. Global.System.Diagnostics.Debug.Assert(((Not (root1.Table) Is Nothing) _
  1005. AndAlso (Not (root2.Table) Is Nothing)))
  1006. If (root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2)) Then
  1007. Return -1
  1008. Else
  1009. Return 1
  1010. End If
  1011. End If
  1012. End Function
  1013. End Class
  1014. End Class
  1015. End Namespace