InversionesDEVDataSet4.Designer.vb 207 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213
  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("InversionesDEVDataSet4"), _
  20. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")> _
  21. Partial Public Class InversionesDEVDataSet4
  22. Inherits Global.System.Data.DataSet
  23. Private tablePIN0 As PIN0DataTable
  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("PIN0")) Is Nothing) Then
  52. MyBase.Tables.Add(New PIN0DataTable(ds.Tables("PIN0")))
  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 PIN0() As PIN0DataTable
  75. Get
  76. Return Me.tablePIN0
  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 InversionesDEVDataSet4 = CType(MyBase.Clone,InversionesDEVDataSet4)
  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("PIN0")) Is Nothing) Then
  140. MyBase.Tables.Add(New PIN0DataTable(ds.Tables("PIN0")))
  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.tablePIN0 = CType(MyBase.Tables("PIN0"),PIN0DataTable)
  172. If (initTable = true) Then
  173. If (Not (Me.tablePIN0) Is Nothing) Then
  174. Me.tablePIN0.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 = "InversionesDEVDataSet4"
  182. Me.Prefix = ""
  183. Me.Namespace = "http://tempuri.org/InversionesDEVDataSet4.xsd"
  184. Me.EnforceConstraints = true
  185. Me.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
  186. Me.tablePIN0 = New PIN0DataTable()
  187. MyBase.Tables.Add(Me.tablePIN0)
  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 ShouldSerializePIN0() 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 InversionesDEVDataSet4 = New InversionesDEVDataSet4()
  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 PIN0RowChangeEventHandler(ByVal sender As Object, ByVal e As PIN0RowChangeEvent)
  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 PIN0DataTable
  254. Inherits Global.System.Data.TypedTableBase(Of PIN0Row)
  255. Private columnDocId As Global.System.Data.DataColumn
  256. Private columnCodInv As Global.System.Data.DataColumn
  257. Private columnDocEst As Global.System.Data.DataColumn
  258. Private columnAsunto As Global.System.Data.DataColumn
  259. Private columnCodEmpr As Global.System.Data.DataColumn
  260. Private columnCodIF As Global.System.Data.DataColumn
  261. Private columnCodEmis As Global.System.Data.DataColumn
  262. Private columnCodCalRi As Global.System.Data.DataColumn
  263. Private columnCodECalRi As Global.System.Data.DataColumn
  264. Private columnOFon As Global.System.Data.DataColumn
  265. Private columnComent As Global.System.Data.DataColumn
  266. Private columnJust As Global.System.Data.DataColumn
  267. Private columnTipoOper As Global.System.Data.DataColumn
  268. Private columnDocBase As Global.System.Data.DataColumn
  269. Private columnMontoInv As Global.System.Data.DataColumn
  270. Private columnPrecio As Global.System.Data.DataColumn
  271. Private columnRendimiento As Global.System.Data.DataColumn
  272. Private columnPlazo As Global.System.Data.DataColumn
  273. Private columnPlazoFact As Global.System.Data.DataColumn
  274. Private columnIngresos As Global.System.Data.DataColumn
  275. Private columnFechaDoc As Global.System.Data.DataColumn
  276. Private columnAutEstado As Global.System.Data.DataColumn
  277. Private columnTipoMerc As Global.System.Data.DataColumn
  278. Private columnCodPais As Global.System.Data.DataColumn
  279. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  280. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  281. Public Sub New()
  282. MyBase.New
  283. Me.TableName = "PIN0"
  284. Me.BeginInit
  285. Me.InitClass
  286. Me.EndInit
  287. End Sub
  288. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  289. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  290. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  291. MyBase.New
  292. Me.TableName = table.TableName
  293. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  294. Me.CaseSensitive = table.CaseSensitive
  295. End If
  296. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  297. Me.Locale = table.Locale
  298. End If
  299. If (table.Namespace <> table.DataSet.Namespace) Then
  300. Me.Namespace = table.Namespace
  301. End If
  302. Me.Prefix = table.Prefix
  303. Me.MinimumCapacity = table.MinimumCapacity
  304. End Sub
  305. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  306. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  307. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  308. MyBase.New(info, context)
  309. Me.InitVars
  310. End Sub
  311. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  312. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  313. Public ReadOnly Property DocIdColumn() As Global.System.Data.DataColumn
  314. Get
  315. Return Me.columnDocId
  316. End Get
  317. End Property
  318. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  319. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  320. Public ReadOnly Property CodInvColumn() As Global.System.Data.DataColumn
  321. Get
  322. Return Me.columnCodInv
  323. End Get
  324. End Property
  325. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  326. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  327. Public ReadOnly Property DocEstColumn() As Global.System.Data.DataColumn
  328. Get
  329. Return Me.columnDocEst
  330. End Get
  331. End Property
  332. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  333. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  334. Public ReadOnly Property AsuntoColumn() As Global.System.Data.DataColumn
  335. Get
  336. Return Me.columnAsunto
  337. End Get
  338. End Property
  339. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  340. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  341. Public ReadOnly Property CodEmprColumn() As Global.System.Data.DataColumn
  342. Get
  343. Return Me.columnCodEmpr
  344. End Get
  345. End Property
  346. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  347. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  348. Public ReadOnly Property CodIFColumn() As Global.System.Data.DataColumn
  349. Get
  350. Return Me.columnCodIF
  351. End Get
  352. End Property
  353. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  354. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  355. Public ReadOnly Property CodEmisColumn() As Global.System.Data.DataColumn
  356. Get
  357. Return Me.columnCodEmis
  358. End Get
  359. End Property
  360. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  361. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  362. Public ReadOnly Property CodCalRiColumn() As Global.System.Data.DataColumn
  363. Get
  364. Return Me.columnCodCalRi
  365. End Get
  366. End Property
  367. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  368. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  369. Public ReadOnly Property CodECalRiColumn() As Global.System.Data.DataColumn
  370. Get
  371. Return Me.columnCodECalRi
  372. End Get
  373. End Property
  374. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  375. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  376. Public ReadOnly Property OFonColumn() As Global.System.Data.DataColumn
  377. Get
  378. Return Me.columnOFon
  379. End Get
  380. End Property
  381. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  382. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  383. Public ReadOnly Property ComentColumn() As Global.System.Data.DataColumn
  384. Get
  385. Return Me.columnComent
  386. End Get
  387. End Property
  388. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  389. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  390. Public ReadOnly Property JustColumn() As Global.System.Data.DataColumn
  391. Get
  392. Return Me.columnJust
  393. End Get
  394. End Property
  395. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  396. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  397. Public ReadOnly Property TipoOperColumn() As Global.System.Data.DataColumn
  398. Get
  399. Return Me.columnTipoOper
  400. End Get
  401. End Property
  402. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  403. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  404. Public ReadOnly Property DocBaseColumn() As Global.System.Data.DataColumn
  405. Get
  406. Return Me.columnDocBase
  407. End Get
  408. End Property
  409. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  410. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  411. Public ReadOnly Property MontoInvColumn() As Global.System.Data.DataColumn
  412. Get
  413. Return Me.columnMontoInv
  414. End Get
  415. End Property
  416. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  417. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  418. Public ReadOnly Property PrecioColumn() As Global.System.Data.DataColumn
  419. Get
  420. Return Me.columnPrecio
  421. End Get
  422. End Property
  423. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  424. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  425. Public ReadOnly Property RendimientoColumn() As Global.System.Data.DataColumn
  426. Get
  427. Return Me.columnRendimiento
  428. End Get
  429. End Property
  430. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  431. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  432. Public ReadOnly Property PlazoColumn() As Global.System.Data.DataColumn
  433. Get
  434. Return Me.columnPlazo
  435. End Get
  436. End Property
  437. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  438. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  439. Public ReadOnly Property PlazoFactColumn() As Global.System.Data.DataColumn
  440. Get
  441. Return Me.columnPlazoFact
  442. End Get
  443. End Property
  444. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  445. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  446. Public ReadOnly Property IngresosColumn() As Global.System.Data.DataColumn
  447. Get
  448. Return Me.columnIngresos
  449. End Get
  450. End Property
  451. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  452. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  453. Public ReadOnly Property FechaDocColumn() As Global.System.Data.DataColumn
  454. Get
  455. Return Me.columnFechaDoc
  456. End Get
  457. End Property
  458. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  459. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  460. Public ReadOnly Property AutEstadoColumn() As Global.System.Data.DataColumn
  461. Get
  462. Return Me.columnAutEstado
  463. End Get
  464. End Property
  465. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  466. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  467. Public ReadOnly Property TipoMercColumn() As Global.System.Data.DataColumn
  468. Get
  469. Return Me.columnTipoMerc
  470. End Get
  471. End Property
  472. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  473. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  474. Public ReadOnly Property CodPaisColumn() As Global.System.Data.DataColumn
  475. Get
  476. Return Me.columnCodPais
  477. End Get
  478. End Property
  479. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  480. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  481. Global.System.ComponentModel.Browsable(false)> _
  482. Public ReadOnly Property Count() As Integer
  483. Get
  484. Return Me.Rows.Count
  485. End Get
  486. End Property
  487. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  488. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  489. Public Default ReadOnly Property Item(ByVal index As Integer) As PIN0Row
  490. Get
  491. Return CType(Me.Rows(index),PIN0Row)
  492. End Get
  493. End Property
  494. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  495. Public Event PIN0RowChanging As PIN0RowChangeEventHandler
  496. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  497. Public Event PIN0RowChanged As PIN0RowChangeEventHandler
  498. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  499. Public Event PIN0RowDeleting As PIN0RowChangeEventHandler
  500. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  501. Public Event PIN0RowDeleted As PIN0RowChangeEventHandler
  502. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  503. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  504. Public Overloads Sub AddPIN0Row(ByVal row As PIN0Row)
  505. Me.Rows.Add(row)
  506. End Sub
  507. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  508. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  509. Public Overloads Function AddPIN0Row( _
  510. ByVal CodInv As String, _
  511. ByVal DocEst As String, _
  512. ByVal Asunto As String, _
  513. ByVal CodEmpr As String, _
  514. ByVal CodIF As String, _
  515. ByVal CodEmis As Integer, _
  516. ByVal CodCalRi As String, _
  517. ByVal CodECalRi As String, _
  518. ByVal OFon As String, _
  519. ByVal Coment As String, _
  520. ByVal Just As String, _
  521. ByVal TipoOper As String, _
  522. ByVal DocBase As Integer, _
  523. ByVal MontoInv As Decimal, _
  524. ByVal Precio As Decimal, _
  525. ByVal Rendimiento As String, _
  526. ByVal Plazo As Integer, _
  527. ByVal PlazoFact As String, _
  528. ByVal Ingresos As Decimal, _
  529. ByVal FechaDoc As Date, _
  530. ByVal AutEstado As String, _
  531. ByVal TipoMerc As String, _
  532. ByVal CodPais As String) As PIN0Row
  533. Dim rowPIN0Row As PIN0Row = CType(Me.NewRow,PIN0Row)
  534. Dim columnValuesArray() As Object = New Object() {Nothing, CodInv, DocEst, Asunto, CodEmpr, CodIF, CodEmis, CodCalRi, CodECalRi, OFon, Coment, Just, TipoOper, DocBase, MontoInv, Precio, Rendimiento, Plazo, PlazoFact, Ingresos, FechaDoc, AutEstado, TipoMerc, CodPais}
  535. rowPIN0Row.ItemArray = columnValuesArray
  536. Me.Rows.Add(rowPIN0Row)
  537. Return rowPIN0Row
  538. End Function
  539. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  540. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  541. Public Function FindByDocId(ByVal DocId As Integer) As PIN0Row
  542. Return CType(Me.Rows.Find(New Object() {DocId}),PIN0Row)
  543. End Function
  544. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  545. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  546. Public Overrides Function Clone() As Global.System.Data.DataTable
  547. Dim cln As PIN0DataTable = CType(MyBase.Clone,PIN0DataTable)
  548. cln.InitVars
  549. Return cln
  550. End Function
  551. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  552. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  553. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  554. Return New PIN0DataTable()
  555. End Function
  556. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  557. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  558. Friend Sub InitVars()
  559. Me.columnDocId = MyBase.Columns("DocId")
  560. Me.columnCodInv = MyBase.Columns("CodInv")
  561. Me.columnDocEst = MyBase.Columns("DocEst")
  562. Me.columnAsunto = MyBase.Columns("Asunto")
  563. Me.columnCodEmpr = MyBase.Columns("CodEmpr")
  564. Me.columnCodIF = MyBase.Columns("CodIF")
  565. Me.columnCodEmis = MyBase.Columns("CodEmis")
  566. Me.columnCodCalRi = MyBase.Columns("CodCalRi")
  567. Me.columnCodECalRi = MyBase.Columns("CodECalRi")
  568. Me.columnOFon = MyBase.Columns("OFon")
  569. Me.columnComent = MyBase.Columns("Coment")
  570. Me.columnJust = MyBase.Columns("Just")
  571. Me.columnTipoOper = MyBase.Columns("TipoOper")
  572. Me.columnDocBase = MyBase.Columns("DocBase")
  573. Me.columnMontoInv = MyBase.Columns("MontoInv")
  574. Me.columnPrecio = MyBase.Columns("Precio")
  575. Me.columnRendimiento = MyBase.Columns("Rendimiento")
  576. Me.columnPlazo = MyBase.Columns("Plazo")
  577. Me.columnPlazoFact = MyBase.Columns("PlazoFact")
  578. Me.columnIngresos = MyBase.Columns("Ingresos")
  579. Me.columnFechaDoc = MyBase.Columns("FechaDoc")
  580. Me.columnAutEstado = MyBase.Columns("AutEstado")
  581. Me.columnTipoMerc = MyBase.Columns("TipoMerc")
  582. Me.columnCodPais = MyBase.Columns("CodPais")
  583. End Sub
  584. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  585. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  586. Private Sub InitClass()
  587. Me.columnDocId = New Global.System.Data.DataColumn("DocId", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  588. MyBase.Columns.Add(Me.columnDocId)
  589. Me.columnCodInv = New Global.System.Data.DataColumn("CodInv", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  590. MyBase.Columns.Add(Me.columnCodInv)
  591. Me.columnDocEst = New Global.System.Data.DataColumn("DocEst", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  592. MyBase.Columns.Add(Me.columnDocEst)
  593. Me.columnAsunto = New Global.System.Data.DataColumn("Asunto", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  594. MyBase.Columns.Add(Me.columnAsunto)
  595. Me.columnCodEmpr = New Global.System.Data.DataColumn("CodEmpr", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  596. MyBase.Columns.Add(Me.columnCodEmpr)
  597. Me.columnCodIF = New Global.System.Data.DataColumn("CodIF", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  598. MyBase.Columns.Add(Me.columnCodIF)
  599. Me.columnCodEmis = New Global.System.Data.DataColumn("CodEmis", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  600. MyBase.Columns.Add(Me.columnCodEmis)
  601. Me.columnCodCalRi = New Global.System.Data.DataColumn("CodCalRi", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  602. MyBase.Columns.Add(Me.columnCodCalRi)
  603. Me.columnCodECalRi = New Global.System.Data.DataColumn("CodECalRi", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  604. MyBase.Columns.Add(Me.columnCodECalRi)
  605. Me.columnOFon = New Global.System.Data.DataColumn("OFon", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  606. MyBase.Columns.Add(Me.columnOFon)
  607. Me.columnComent = New Global.System.Data.DataColumn("Coment", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  608. MyBase.Columns.Add(Me.columnComent)
  609. Me.columnJust = New Global.System.Data.DataColumn("Just", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  610. MyBase.Columns.Add(Me.columnJust)
  611. Me.columnTipoOper = New Global.System.Data.DataColumn("TipoOper", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  612. MyBase.Columns.Add(Me.columnTipoOper)
  613. Me.columnDocBase = New Global.System.Data.DataColumn("DocBase", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  614. MyBase.Columns.Add(Me.columnDocBase)
  615. Me.columnMontoInv = New Global.System.Data.DataColumn("MontoInv", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
  616. MyBase.Columns.Add(Me.columnMontoInv)
  617. Me.columnPrecio = New Global.System.Data.DataColumn("Precio", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
  618. MyBase.Columns.Add(Me.columnPrecio)
  619. Me.columnRendimiento = New Global.System.Data.DataColumn("Rendimiento", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  620. MyBase.Columns.Add(Me.columnRendimiento)
  621. Me.columnPlazo = New Global.System.Data.DataColumn("Plazo", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  622. MyBase.Columns.Add(Me.columnPlazo)
  623. Me.columnPlazoFact = New Global.System.Data.DataColumn("PlazoFact", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  624. MyBase.Columns.Add(Me.columnPlazoFact)
  625. Me.columnIngresos = New Global.System.Data.DataColumn("Ingresos", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
  626. MyBase.Columns.Add(Me.columnIngresos)
  627. Me.columnFechaDoc = New Global.System.Data.DataColumn("FechaDoc", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
  628. MyBase.Columns.Add(Me.columnFechaDoc)
  629. Me.columnAutEstado = New Global.System.Data.DataColumn("AutEstado", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  630. MyBase.Columns.Add(Me.columnAutEstado)
  631. Me.columnTipoMerc = New Global.System.Data.DataColumn("TipoMerc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  632. MyBase.Columns.Add(Me.columnTipoMerc)
  633. Me.columnCodPais = New Global.System.Data.DataColumn("CodPais", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  634. MyBase.Columns.Add(Me.columnCodPais)
  635. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnDocId}, true))
  636. Me.columnDocId.AutoIncrement = true
  637. Me.columnDocId.AutoIncrementSeed = -1
  638. Me.columnDocId.AutoIncrementStep = -1
  639. Me.columnDocId.AllowDBNull = false
  640. Me.columnDocId.ReadOnly = true
  641. Me.columnDocId.Unique = true
  642. Me.columnCodInv.MaxLength = 20
  643. Me.columnDocEst.MaxLength = 1
  644. Me.columnAsunto.MaxLength = 100
  645. Me.columnCodEmpr.MaxLength = 10
  646. Me.columnCodIF.MaxLength = 10
  647. Me.columnCodCalRi.MaxLength = 8
  648. Me.columnCodECalRi.MaxLength = 8
  649. Me.columnOFon.MaxLength = 10
  650. Me.columnComent.MaxLength = 100
  651. Me.columnJust.MaxLength = 100
  652. Me.columnTipoOper.MaxLength = 1
  653. Me.columnRendimiento.MaxLength = 20
  654. Me.columnPlazoFact.MaxLength = 1
  655. Me.columnAutEstado.MaxLength = 1
  656. Me.columnTipoMerc.MaxLength = 3
  657. Me.columnCodPais.MaxLength = 3
  658. End Sub
  659. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  660. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  661. Public Function NewPIN0Row() As PIN0Row
  662. Return CType(Me.NewRow,PIN0Row)
  663. End Function
  664. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  665. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  666. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  667. Return New PIN0Row(builder)
  668. End Function
  669. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  670. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  671. Protected Overrides Function GetRowType() As Global.System.Type
  672. Return GetType(PIN0Row)
  673. End Function
  674. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  675. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  676. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  677. MyBase.OnRowChanged(e)
  678. If (Not (Me.PIN0RowChangedEvent) Is Nothing) Then
  679. RaiseEvent PIN0RowChanged(Me, New PIN0RowChangeEvent(CType(e.Row,PIN0Row), e.Action))
  680. End If
  681. End Sub
  682. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  683. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  684. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  685. MyBase.OnRowChanging(e)
  686. If (Not (Me.PIN0RowChangingEvent) Is Nothing) Then
  687. RaiseEvent PIN0RowChanging(Me, New PIN0RowChangeEvent(CType(e.Row,PIN0Row), e.Action))
  688. End If
  689. End Sub
  690. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  691. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  692. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  693. MyBase.OnRowDeleted(e)
  694. If (Not (Me.PIN0RowDeletedEvent) Is Nothing) Then
  695. RaiseEvent PIN0RowDeleted(Me, New PIN0RowChangeEvent(CType(e.Row,PIN0Row), e.Action))
  696. End If
  697. End Sub
  698. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  699. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  700. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  701. MyBase.OnRowDeleting(e)
  702. If (Not (Me.PIN0RowDeletingEvent) Is Nothing) Then
  703. RaiseEvent PIN0RowDeleting(Me, New PIN0RowChangeEvent(CType(e.Row,PIN0Row), e.Action))
  704. End If
  705. End Sub
  706. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  707. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  708. Public Sub RemovePIN0Row(ByVal row As PIN0Row)
  709. Me.Rows.Remove(row)
  710. End Sub
  711. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  712. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  713. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  714. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  715. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  716. Dim ds As InversionesDEVDataSet4 = New InversionesDEVDataSet4()
  717. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  718. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  719. any1.MinOccurs = New Decimal(0)
  720. any1.MaxOccurs = Decimal.MaxValue
  721. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  722. sequence.Items.Add(any1)
  723. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  724. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  725. any2.MinOccurs = New Decimal(1)
  726. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  727. sequence.Items.Add(any2)
  728. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  729. attribute1.Name = "namespace"
  730. attribute1.FixedValue = ds.Namespace
  731. type.Attributes.Add(attribute1)
  732. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  733. attribute2.Name = "tableTypeName"
  734. attribute2.FixedValue = "PIN0DataTable"
  735. type.Attributes.Add(attribute2)
  736. type.Particle = sequence
  737. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  738. If xs.Contains(dsSchema.TargetNamespace) Then
  739. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  740. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  741. Try
  742. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  743. dsSchema.Write(s1)
  744. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  745. Do While schemas.MoveNext
  746. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  747. s2.SetLength(0)
  748. schema.Write(s2)
  749. If (s1.Length = s2.Length) Then
  750. s1.Position = 0
  751. s2.Position = 0
  752. Do While ((s1.Position <> s1.Length) _
  753. AndAlso (s1.ReadByte = s2.ReadByte))
  754. Loop
  755. If (s1.Position = s1.Length) Then
  756. Return type
  757. End If
  758. End If
  759. Loop
  760. Finally
  761. If (Not (s1) Is Nothing) Then
  762. s1.Close
  763. End If
  764. If (Not (s2) Is Nothing) Then
  765. s2.Close
  766. End If
  767. End Try
  768. End If
  769. xs.Add(dsSchema)
  770. Return type
  771. End Function
  772. End Class
  773. '''<summary>
  774. '''Represents strongly named DataRow class.
  775. '''</summary>
  776. Partial Public Class PIN0Row
  777. Inherits Global.System.Data.DataRow
  778. Private tablePIN0 As PIN0DataTable
  779. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  780. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  781. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  782. MyBase.New(rb)
  783. Me.tablePIN0 = CType(Me.Table,PIN0DataTable)
  784. End Sub
  785. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  786. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  787. Public Property DocId() As Integer
  788. Get
  789. Return CType(Me(Me.tablePIN0.DocIdColumn),Integer)
  790. End Get
  791. Set
  792. Me(Me.tablePIN0.DocIdColumn) = value
  793. End Set
  794. End Property
  795. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  796. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  797. Public Property CodInv() As String
  798. Get
  799. Try
  800. Return CType(Me(Me.tablePIN0.CodInvColumn),String)
  801. Catch e As Global.System.InvalidCastException
  802. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodInv' de la tabla 'PIN0' es DBNull.", e)
  803. End Try
  804. End Get
  805. Set
  806. Me(Me.tablePIN0.CodInvColumn) = value
  807. End Set
  808. End Property
  809. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  810. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  811. Public Property DocEst() As String
  812. Get
  813. Try
  814. Return CType(Me(Me.tablePIN0.DocEstColumn),String)
  815. Catch e As Global.System.InvalidCastException
  816. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'DocEst' de la tabla 'PIN0' es DBNull.", e)
  817. End Try
  818. End Get
  819. Set
  820. Me(Me.tablePIN0.DocEstColumn) = value
  821. End Set
  822. End Property
  823. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  824. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  825. Public Property Asunto() As String
  826. Get
  827. Try
  828. Return CType(Me(Me.tablePIN0.AsuntoColumn),String)
  829. Catch e As Global.System.InvalidCastException
  830. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Asunto' de la tabla 'PIN0' es DBNull.", e)
  831. End Try
  832. End Get
  833. Set
  834. Me(Me.tablePIN0.AsuntoColumn) = value
  835. End Set
  836. End Property
  837. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  838. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  839. Public Property CodEmpr() As String
  840. Get
  841. Try
  842. Return CType(Me(Me.tablePIN0.CodEmprColumn),String)
  843. Catch e As Global.System.InvalidCastException
  844. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodEmpr' de la tabla 'PIN0' es DBNull.", e)
  845. End Try
  846. End Get
  847. Set
  848. Me(Me.tablePIN0.CodEmprColumn) = value
  849. End Set
  850. End Property
  851. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  852. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  853. Public Property CodIF() As String
  854. Get
  855. Try
  856. Return CType(Me(Me.tablePIN0.CodIFColumn),String)
  857. Catch e As Global.System.InvalidCastException
  858. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodIF' de la tabla 'PIN0' es DBNull.", e)
  859. End Try
  860. End Get
  861. Set
  862. Me(Me.tablePIN0.CodIFColumn) = value
  863. End Set
  864. End Property
  865. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  866. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  867. Public Property CodEmis() As Integer
  868. Get
  869. Try
  870. Return CType(Me(Me.tablePIN0.CodEmisColumn),Integer)
  871. Catch e As Global.System.InvalidCastException
  872. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodEmis' de la tabla 'PIN0' es DBNull.", e)
  873. End Try
  874. End Get
  875. Set
  876. Me(Me.tablePIN0.CodEmisColumn) = value
  877. End Set
  878. End Property
  879. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  880. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  881. Public Property CodCalRi() As String
  882. Get
  883. Try
  884. Return CType(Me(Me.tablePIN0.CodCalRiColumn),String)
  885. Catch e As Global.System.InvalidCastException
  886. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodCalRi' de la tabla 'PIN0' es DBNull.", e)
  887. End Try
  888. End Get
  889. Set
  890. Me(Me.tablePIN0.CodCalRiColumn) = value
  891. End Set
  892. End Property
  893. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  894. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  895. Public Property CodECalRi() As String
  896. Get
  897. Try
  898. Return CType(Me(Me.tablePIN0.CodECalRiColumn),String)
  899. Catch e As Global.System.InvalidCastException
  900. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodECalRi' de la tabla 'PIN0' es DBNull.", e)
  901. End Try
  902. End Get
  903. Set
  904. Me(Me.tablePIN0.CodECalRiColumn) = value
  905. End Set
  906. End Property
  907. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  908. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  909. Public Property OFon() As String
  910. Get
  911. Try
  912. Return CType(Me(Me.tablePIN0.OFonColumn),String)
  913. Catch e As Global.System.InvalidCastException
  914. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'OFon' de la tabla 'PIN0' es DBNull.", e)
  915. End Try
  916. End Get
  917. Set
  918. Me(Me.tablePIN0.OFonColumn) = value
  919. End Set
  920. End Property
  921. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  922. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  923. Public Property Coment() As String
  924. Get
  925. Try
  926. Return CType(Me(Me.tablePIN0.ComentColumn),String)
  927. Catch e As Global.System.InvalidCastException
  928. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Coment' de la tabla 'PIN0' es DBNull.", e)
  929. End Try
  930. End Get
  931. Set
  932. Me(Me.tablePIN0.ComentColumn) = value
  933. End Set
  934. End Property
  935. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  936. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  937. Public Property Just() As String
  938. Get
  939. Try
  940. Return CType(Me(Me.tablePIN0.JustColumn),String)
  941. Catch e As Global.System.InvalidCastException
  942. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Just' de la tabla 'PIN0' es DBNull.", e)
  943. End Try
  944. End Get
  945. Set
  946. Me(Me.tablePIN0.JustColumn) = value
  947. End Set
  948. End Property
  949. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  950. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  951. Public Property TipoOper() As String
  952. Get
  953. Try
  954. Return CType(Me(Me.tablePIN0.TipoOperColumn),String)
  955. Catch e As Global.System.InvalidCastException
  956. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'TipoOper' de la tabla 'PIN0' es DBNull.", e)
  957. End Try
  958. End Get
  959. Set
  960. Me(Me.tablePIN0.TipoOperColumn) = value
  961. End Set
  962. End Property
  963. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  964. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  965. Public Property DocBase() As Integer
  966. Get
  967. Try
  968. Return CType(Me(Me.tablePIN0.DocBaseColumn),Integer)
  969. Catch e As Global.System.InvalidCastException
  970. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'DocBase' de la tabla 'PIN0' es DBNull.", e)
  971. End Try
  972. End Get
  973. Set
  974. Me(Me.tablePIN0.DocBaseColumn) = value
  975. End Set
  976. End Property
  977. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  978. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  979. Public Property MontoInv() As Decimal
  980. Get
  981. Try
  982. Return CType(Me(Me.tablePIN0.MontoInvColumn),Decimal)
  983. Catch e As Global.System.InvalidCastException
  984. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'MontoInv' de la tabla 'PIN0' es DBNull.", e)
  985. End Try
  986. End Get
  987. Set
  988. Me(Me.tablePIN0.MontoInvColumn) = value
  989. End Set
  990. End Property
  991. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  992. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  993. Public Property Precio() As Decimal
  994. Get
  995. Try
  996. Return CType(Me(Me.tablePIN0.PrecioColumn),Decimal)
  997. Catch e As Global.System.InvalidCastException
  998. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Precio' de la tabla 'PIN0' es DBNull.", e)
  999. End Try
  1000. End Get
  1001. Set
  1002. Me(Me.tablePIN0.PrecioColumn) = value
  1003. End Set
  1004. End Property
  1005. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1006. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1007. Public Property Rendimiento() As String
  1008. Get
  1009. Try
  1010. Return CType(Me(Me.tablePIN0.RendimientoColumn),String)
  1011. Catch e As Global.System.InvalidCastException
  1012. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Rendimiento' de la tabla 'PIN0' es DBNull.", e)
  1013. End Try
  1014. End Get
  1015. Set
  1016. Me(Me.tablePIN0.RendimientoColumn) = value
  1017. End Set
  1018. End Property
  1019. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1020. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1021. Public Property Plazo() As Integer
  1022. Get
  1023. Try
  1024. Return CType(Me(Me.tablePIN0.PlazoColumn),Integer)
  1025. Catch e As Global.System.InvalidCastException
  1026. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Plazo' de la tabla 'PIN0' es DBNull.", e)
  1027. End Try
  1028. End Get
  1029. Set
  1030. Me(Me.tablePIN0.PlazoColumn) = value
  1031. End Set
  1032. End Property
  1033. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1034. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1035. Public Property PlazoFact() As String
  1036. Get
  1037. Try
  1038. Return CType(Me(Me.tablePIN0.PlazoFactColumn),String)
  1039. Catch e As Global.System.InvalidCastException
  1040. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'PlazoFact' de la tabla 'PIN0' es DBNull.", e)
  1041. End Try
  1042. End Get
  1043. Set
  1044. Me(Me.tablePIN0.PlazoFactColumn) = value
  1045. End Set
  1046. End Property
  1047. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1048. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1049. Public Property Ingresos() As Decimal
  1050. Get
  1051. Try
  1052. Return CType(Me(Me.tablePIN0.IngresosColumn),Decimal)
  1053. Catch e As Global.System.InvalidCastException
  1054. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Ingresos' de la tabla 'PIN0' es DBNull.", e)
  1055. End Try
  1056. End Get
  1057. Set
  1058. Me(Me.tablePIN0.IngresosColumn) = value
  1059. End Set
  1060. End Property
  1061. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1062. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1063. Public Property FechaDoc() As Date
  1064. Get
  1065. Try
  1066. Return CType(Me(Me.tablePIN0.FechaDocColumn),Date)
  1067. Catch e As Global.System.InvalidCastException
  1068. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'FechaDoc' de la tabla 'PIN0' es DBNull.", e)
  1069. End Try
  1070. End Get
  1071. Set
  1072. Me(Me.tablePIN0.FechaDocColumn) = value
  1073. End Set
  1074. End Property
  1075. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1076. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1077. Public Property AutEstado() As String
  1078. Get
  1079. Try
  1080. Return CType(Me(Me.tablePIN0.AutEstadoColumn),String)
  1081. Catch e As Global.System.InvalidCastException
  1082. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'AutEstado' de la tabla 'PIN0' es DBNull.", e)
  1083. End Try
  1084. End Get
  1085. Set
  1086. Me(Me.tablePIN0.AutEstadoColumn) = value
  1087. End Set
  1088. End Property
  1089. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1090. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1091. Public Property TipoMerc() As String
  1092. Get
  1093. Try
  1094. Return CType(Me(Me.tablePIN0.TipoMercColumn),String)
  1095. Catch e As Global.System.InvalidCastException
  1096. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'TipoMerc' de la tabla 'PIN0' es DBNull.", e)
  1097. End Try
  1098. End Get
  1099. Set
  1100. Me(Me.tablePIN0.TipoMercColumn) = value
  1101. End Set
  1102. End Property
  1103. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1104. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1105. Public Property CodPais() As String
  1106. Get
  1107. Try
  1108. Return CType(Me(Me.tablePIN0.CodPaisColumn),String)
  1109. Catch e As Global.System.InvalidCastException
  1110. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodPais' de la tabla 'PIN0' es DBNull.", e)
  1111. End Try
  1112. End Get
  1113. Set
  1114. Me(Me.tablePIN0.CodPaisColumn) = value
  1115. End Set
  1116. End Property
  1117. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1118. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1119. Public Function IsCodInvNull() As Boolean
  1120. Return Me.IsNull(Me.tablePIN0.CodInvColumn)
  1121. End Function
  1122. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1123. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1124. Public Sub SetCodInvNull()
  1125. Me(Me.tablePIN0.CodInvColumn) = Global.System.Convert.DBNull
  1126. End Sub
  1127. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1128. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1129. Public Function IsDocEstNull() As Boolean
  1130. Return Me.IsNull(Me.tablePIN0.DocEstColumn)
  1131. End Function
  1132. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1133. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1134. Public Sub SetDocEstNull()
  1135. Me(Me.tablePIN0.DocEstColumn) = Global.System.Convert.DBNull
  1136. End Sub
  1137. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1138. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1139. Public Function IsAsuntoNull() As Boolean
  1140. Return Me.IsNull(Me.tablePIN0.AsuntoColumn)
  1141. End Function
  1142. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1143. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1144. Public Sub SetAsuntoNull()
  1145. Me(Me.tablePIN0.AsuntoColumn) = Global.System.Convert.DBNull
  1146. End Sub
  1147. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1148. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1149. Public Function IsCodEmprNull() As Boolean
  1150. Return Me.IsNull(Me.tablePIN0.CodEmprColumn)
  1151. End Function
  1152. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1153. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1154. Public Sub SetCodEmprNull()
  1155. Me(Me.tablePIN0.CodEmprColumn) = Global.System.Convert.DBNull
  1156. End Sub
  1157. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1158. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1159. Public Function IsCodIFNull() As Boolean
  1160. Return Me.IsNull(Me.tablePIN0.CodIFColumn)
  1161. End Function
  1162. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1163. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1164. Public Sub SetCodIFNull()
  1165. Me(Me.tablePIN0.CodIFColumn) = Global.System.Convert.DBNull
  1166. End Sub
  1167. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1168. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1169. Public Function IsCodEmisNull() As Boolean
  1170. Return Me.IsNull(Me.tablePIN0.CodEmisColumn)
  1171. End Function
  1172. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1173. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1174. Public Sub SetCodEmisNull()
  1175. Me(Me.tablePIN0.CodEmisColumn) = Global.System.Convert.DBNull
  1176. End Sub
  1177. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1178. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1179. Public Function IsCodCalRiNull() As Boolean
  1180. Return Me.IsNull(Me.tablePIN0.CodCalRiColumn)
  1181. End Function
  1182. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1183. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1184. Public Sub SetCodCalRiNull()
  1185. Me(Me.tablePIN0.CodCalRiColumn) = Global.System.Convert.DBNull
  1186. End Sub
  1187. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1188. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1189. Public Function IsCodECalRiNull() As Boolean
  1190. Return Me.IsNull(Me.tablePIN0.CodECalRiColumn)
  1191. End Function
  1192. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1193. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1194. Public Sub SetCodECalRiNull()
  1195. Me(Me.tablePIN0.CodECalRiColumn) = Global.System.Convert.DBNull
  1196. End Sub
  1197. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1198. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1199. Public Function IsOFonNull() As Boolean
  1200. Return Me.IsNull(Me.tablePIN0.OFonColumn)
  1201. End Function
  1202. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1203. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1204. Public Sub SetOFonNull()
  1205. Me(Me.tablePIN0.OFonColumn) = Global.System.Convert.DBNull
  1206. End Sub
  1207. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1208. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1209. Public Function IsComentNull() As Boolean
  1210. Return Me.IsNull(Me.tablePIN0.ComentColumn)
  1211. End Function
  1212. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1213. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1214. Public Sub SetComentNull()
  1215. Me(Me.tablePIN0.ComentColumn) = Global.System.Convert.DBNull
  1216. End Sub
  1217. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1218. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1219. Public Function IsJustNull() As Boolean
  1220. Return Me.IsNull(Me.tablePIN0.JustColumn)
  1221. End Function
  1222. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1223. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1224. Public Sub SetJustNull()
  1225. Me(Me.tablePIN0.JustColumn) = Global.System.Convert.DBNull
  1226. End Sub
  1227. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1228. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1229. Public Function IsTipoOperNull() As Boolean
  1230. Return Me.IsNull(Me.tablePIN0.TipoOperColumn)
  1231. End Function
  1232. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1233. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1234. Public Sub SetTipoOperNull()
  1235. Me(Me.tablePIN0.TipoOperColumn) = Global.System.Convert.DBNull
  1236. End Sub
  1237. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1238. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1239. Public Function IsDocBaseNull() As Boolean
  1240. Return Me.IsNull(Me.tablePIN0.DocBaseColumn)
  1241. End Function
  1242. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1243. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1244. Public Sub SetDocBaseNull()
  1245. Me(Me.tablePIN0.DocBaseColumn) = Global.System.Convert.DBNull
  1246. End Sub
  1247. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1248. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1249. Public Function IsMontoInvNull() As Boolean
  1250. Return Me.IsNull(Me.tablePIN0.MontoInvColumn)
  1251. End Function
  1252. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1253. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1254. Public Sub SetMontoInvNull()
  1255. Me(Me.tablePIN0.MontoInvColumn) = Global.System.Convert.DBNull
  1256. End Sub
  1257. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1258. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1259. Public Function IsPrecioNull() As Boolean
  1260. Return Me.IsNull(Me.tablePIN0.PrecioColumn)
  1261. End Function
  1262. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1263. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1264. Public Sub SetPrecioNull()
  1265. Me(Me.tablePIN0.PrecioColumn) = Global.System.Convert.DBNull
  1266. End Sub
  1267. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1268. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1269. Public Function IsRendimientoNull() As Boolean
  1270. Return Me.IsNull(Me.tablePIN0.RendimientoColumn)
  1271. End Function
  1272. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1273. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1274. Public Sub SetRendimientoNull()
  1275. Me(Me.tablePIN0.RendimientoColumn) = Global.System.Convert.DBNull
  1276. End Sub
  1277. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1278. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1279. Public Function IsPlazoNull() As Boolean
  1280. Return Me.IsNull(Me.tablePIN0.PlazoColumn)
  1281. End Function
  1282. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1283. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1284. Public Sub SetPlazoNull()
  1285. Me(Me.tablePIN0.PlazoColumn) = Global.System.Convert.DBNull
  1286. End Sub
  1287. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1288. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1289. Public Function IsPlazoFactNull() As Boolean
  1290. Return Me.IsNull(Me.tablePIN0.PlazoFactColumn)
  1291. End Function
  1292. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1293. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1294. Public Sub SetPlazoFactNull()
  1295. Me(Me.tablePIN0.PlazoFactColumn) = Global.System.Convert.DBNull
  1296. End Sub
  1297. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1298. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1299. Public Function IsIngresosNull() As Boolean
  1300. Return Me.IsNull(Me.tablePIN0.IngresosColumn)
  1301. End Function
  1302. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1303. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1304. Public Sub SetIngresosNull()
  1305. Me(Me.tablePIN0.IngresosColumn) = Global.System.Convert.DBNull
  1306. End Sub
  1307. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1308. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1309. Public Function IsFechaDocNull() As Boolean
  1310. Return Me.IsNull(Me.tablePIN0.FechaDocColumn)
  1311. End Function
  1312. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1313. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1314. Public Sub SetFechaDocNull()
  1315. Me(Me.tablePIN0.FechaDocColumn) = Global.System.Convert.DBNull
  1316. End Sub
  1317. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1318. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1319. Public Function IsAutEstadoNull() As Boolean
  1320. Return Me.IsNull(Me.tablePIN0.AutEstadoColumn)
  1321. End Function
  1322. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1323. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1324. Public Sub SetAutEstadoNull()
  1325. Me(Me.tablePIN0.AutEstadoColumn) = Global.System.Convert.DBNull
  1326. End Sub
  1327. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1328. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1329. Public Function IsTipoMercNull() As Boolean
  1330. Return Me.IsNull(Me.tablePIN0.TipoMercColumn)
  1331. End Function
  1332. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1333. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1334. Public Sub SetTipoMercNull()
  1335. Me(Me.tablePIN0.TipoMercColumn) = Global.System.Convert.DBNull
  1336. End Sub
  1337. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1338. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1339. Public Function IsCodPaisNull() As Boolean
  1340. Return Me.IsNull(Me.tablePIN0.CodPaisColumn)
  1341. End Function
  1342. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1343. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1344. Public Sub SetCodPaisNull()
  1345. Me(Me.tablePIN0.CodPaisColumn) = Global.System.Convert.DBNull
  1346. End Sub
  1347. End Class
  1348. '''<summary>
  1349. '''Row event argument class
  1350. '''</summary>
  1351. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1352. Public Class PIN0RowChangeEvent
  1353. Inherits Global.System.EventArgs
  1354. Private eventRow As PIN0Row
  1355. Private eventAction As Global.System.Data.DataRowAction
  1356. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1357. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1358. Public Sub New(ByVal row As PIN0Row, ByVal action As Global.System.Data.DataRowAction)
  1359. MyBase.New
  1360. Me.eventRow = row
  1361. Me.eventAction = action
  1362. End Sub
  1363. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1364. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1365. Public ReadOnly Property Row() As PIN0Row
  1366. Get
  1367. Return Me.eventRow
  1368. End Get
  1369. End Property
  1370. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1371. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1372. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  1373. Get
  1374. Return Me.eventAction
  1375. End Get
  1376. End Property
  1377. End Class
  1378. End Class
  1379. Namespace InversionesDEVDataSet4TableAdapters
  1380. '''<summary>
  1381. '''Represents the connection and commands used to retrieve and save data.
  1382. '''</summary>
  1383. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  1384. Global.System.ComponentModel.ToolboxItem(true), _
  1385. Global.System.ComponentModel.DataObjectAttribute(true), _
  1386. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  1387. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  1388. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  1389. Partial Public Class PIN0TableAdapter
  1390. Inherits Global.System.ComponentModel.Component
  1391. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  1392. Private _connection As Global.System.Data.SqlClient.SqlConnection
  1393. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  1394. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  1395. Private _clearBeforeFill As Boolean
  1396. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1397. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1398. Public Sub New()
  1399. MyBase.New
  1400. Me.ClearBeforeFill = true
  1401. End Sub
  1402. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1403. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1404. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  1405. Get
  1406. If (Me._adapter Is Nothing) Then
  1407. Me.InitAdapter
  1408. End If
  1409. Return Me._adapter
  1410. End Get
  1411. End Property
  1412. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1413. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1414. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  1415. Get
  1416. If (Me._connection Is Nothing) Then
  1417. Me.InitConnection
  1418. End If
  1419. Return Me._connection
  1420. End Get
  1421. Set
  1422. Me._connection = value
  1423. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  1424. Me.Adapter.InsertCommand.Connection = value
  1425. End If
  1426. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  1427. Me.Adapter.DeleteCommand.Connection = value
  1428. End If
  1429. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  1430. Me.Adapter.UpdateCommand.Connection = value
  1431. End If
  1432. Dim i As Integer = 0
  1433. Do While (i < Me.CommandCollection.Length)
  1434. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  1435. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  1436. End If
  1437. i = (i + 1)
  1438. Loop
  1439. End Set
  1440. End Property
  1441. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1442. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1443. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  1444. Get
  1445. Return Me._transaction
  1446. End Get
  1447. Set
  1448. Me._transaction = value
  1449. Dim i As Integer = 0
  1450. Do While (i < Me.CommandCollection.Length)
  1451. Me.CommandCollection(i).Transaction = Me._transaction
  1452. i = (i + 1)
  1453. Loop
  1454. If ((Not (Me.Adapter) Is Nothing) _
  1455. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  1456. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  1457. End If
  1458. If ((Not (Me.Adapter) Is Nothing) _
  1459. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  1460. Me.Adapter.InsertCommand.Transaction = Me._transaction
  1461. End If
  1462. If ((Not (Me.Adapter) Is Nothing) _
  1463. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  1464. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  1465. End If
  1466. End Set
  1467. End Property
  1468. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1469. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1470. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  1471. Get
  1472. If (Me._commandCollection Is Nothing) Then
  1473. Me.InitCommandCollection
  1474. End If
  1475. Return Me._commandCollection
  1476. End Get
  1477. End Property
  1478. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1479. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1480. Public Property ClearBeforeFill() As Boolean
  1481. Get
  1482. Return Me._clearBeforeFill
  1483. End Get
  1484. Set
  1485. Me._clearBeforeFill = value
  1486. End Set
  1487. End Property
  1488. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1489. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1490. Private Sub InitAdapter()
  1491. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  1492. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  1493. tableMapping.SourceTable = "Table"
  1494. tableMapping.DataSetTable = "PIN0"
  1495. tableMapping.ColumnMappings.Add("DocId", "DocId")
  1496. tableMapping.ColumnMappings.Add("CodInv", "CodInv")
  1497. tableMapping.ColumnMappings.Add("DocEst", "DocEst")
  1498. tableMapping.ColumnMappings.Add("Asunto", "Asunto")
  1499. tableMapping.ColumnMappings.Add("CodEmpr", "CodEmpr")
  1500. tableMapping.ColumnMappings.Add("CodIF", "CodIF")
  1501. tableMapping.ColumnMappings.Add("CodEmis", "CodEmis")
  1502. tableMapping.ColumnMappings.Add("CodCalRi", "CodCalRi")
  1503. tableMapping.ColumnMappings.Add("CodECalRi", "CodECalRi")
  1504. tableMapping.ColumnMappings.Add("OFon", "OFon")
  1505. tableMapping.ColumnMappings.Add("Coment", "Coment")
  1506. tableMapping.ColumnMappings.Add("Just", "Just")
  1507. tableMapping.ColumnMappings.Add("TipoOper", "TipoOper")
  1508. tableMapping.ColumnMappings.Add("DocBase", "DocBase")
  1509. tableMapping.ColumnMappings.Add("MontoInv", "MontoInv")
  1510. tableMapping.ColumnMappings.Add("Precio", "Precio")
  1511. tableMapping.ColumnMappings.Add("Rendimiento", "Rendimiento")
  1512. tableMapping.ColumnMappings.Add("Plazo", "Plazo")
  1513. tableMapping.ColumnMappings.Add("PlazoFact", "PlazoFact")
  1514. tableMapping.ColumnMappings.Add("Ingresos", "Ingresos")
  1515. tableMapping.ColumnMappings.Add("FechaDoc", "FechaDoc")
  1516. tableMapping.ColumnMappings.Add("AutEstado", "AutEstado")
  1517. tableMapping.ColumnMappings.Add("TipoMerc", "TipoMerc")
  1518. tableMapping.ColumnMappings.Add("CodPais", "CodPais")
  1519. Me._adapter.TableMappings.Add(tableMapping)
  1520. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  1521. Me._adapter.DeleteCommand.Connection = Me.Connection
  1522. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[PIN0] WHERE (([DocId] = @Original_DocId) AND ((@IsNull_CodInv "& _
  1523. "= 1 AND [CodInv] IS NULL) OR ([CodInv] = @Original_CodInv)) AND ((@IsNull_DocEst"& _
  1524. " = 1 AND [DocEst] IS NULL) OR ([DocEst] = @Original_DocEst)) AND ((@IsNull_Asunt"& _
  1525. "o = 1 AND [Asunto] IS NULL) OR ([Asunto] = @Original_Asunto)) AND ((@IsNull_CodE"& _
  1526. "mpr = 1 AND [CodEmpr] IS NULL) OR ([CodEmpr] = @Original_CodEmpr)) AND ((@IsNull"& _
  1527. "_CodIF = 1 AND [CodIF] IS NULL) OR ([CodIF] = @Original_CodIF)) AND ((@IsNull_Co"& _
  1528. "dEmis = 1 AND [CodEmis] IS NULL) OR ([CodEmis] = @Original_CodEmis)) AND ((@IsNu"& _
  1529. "ll_CodCalRi = 1 AND [CodCalRi] IS NULL) OR ([CodCalRi] = @Original_CodCalRi)) AN"& _
  1530. "D ((@IsNull_CodECalRi = 1 AND [CodECalRi] IS NULL) OR ([CodECalRi] = @Original_C"& _
  1531. "odECalRi)) AND ((@IsNull_OFon = 1 AND [OFon] IS NULL) OR ([OFon] = @Original_OFo"& _
  1532. "n)) AND ((@IsNull_Coment = 1 AND [Coment] IS NULL) OR ([Coment] = @Original_Come"& _
  1533. "nt)) AND ((@IsNull_Just = 1 AND [Just] IS NULL) OR ([Just] = @Original_Just)) AN"& _
  1534. "D ((@IsNull_TipoOper = 1 AND [TipoOper] IS NULL) OR ([TipoOper] = @Original_Tipo"& _
  1535. "Oper)) AND ((@IsNull_DocBase = 1 AND [DocBase] IS NULL) OR ([DocBase] = @Origina"& _
  1536. "l_DocBase)) AND ((@IsNull_MontoInv = 1 AND [MontoInv] IS NULL) OR ([MontoInv] = "& _
  1537. "@Original_MontoInv)) AND ((@IsNull_Precio = 1 AND [Precio] IS NULL) OR ([Precio]"& _
  1538. " = @Original_Precio)) AND ((@IsNull_Rendimiento = 1 AND [Rendimiento] IS NULL) O"& _
  1539. "R ([Rendimiento] = @Original_Rendimiento)) AND ((@IsNull_Plazo = 1 AND [Plazo] I"& _
  1540. "S NULL) OR ([Plazo] = @Original_Plazo)) AND ((@IsNull_PlazoFact = 1 AND [PlazoFa"& _
  1541. "ct] IS NULL) OR ([PlazoFact] = @Original_PlazoFact)) AND ((@IsNull_Ingresos = 1 "& _
  1542. "AND [Ingresos] IS NULL) OR ([Ingresos] = @Original_Ingresos)) AND ((@IsNull_Fech"& _
  1543. "aDoc = 1 AND [FechaDoc] IS NULL) OR ([FechaDoc] = @Original_FechaDoc)) AND ((@Is"& _
  1544. "Null_AutEstado = 1 AND [AutEstado] IS NULL) OR ([AutEstado] = @Original_AutEstad"& _
  1545. "o)) AND ((@IsNull_TipoMerc = 1 AND [TipoMerc] IS NULL) OR ([TipoMerc] = @Origina"& _
  1546. "l_TipoMerc)) AND ((@IsNull_CodPais = 1 AND [CodPais] IS NULL) OR ([CodPais] = @O"& _
  1547. "riginal_CodPais)))"
  1548. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  1549. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_DocId", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocId", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1550. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodInv", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodInv", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1551. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodInv", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodInv", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1552. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_DocEst", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocEst", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1553. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_DocEst", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocEst", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1554. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Asunto", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Asunto", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1555. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Asunto", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Asunto", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1556. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodEmpr", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmpr", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1557. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodEmpr", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmpr", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1558. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodIF", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodIF", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1559. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodIF", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodIF", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1560. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodEmis", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmis", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1561. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodEmis", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmis", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1562. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodCalRi", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodCalRi", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1563. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodCalRi", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodCalRi", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1564. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodECalRi", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodECalRi", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1565. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodECalRi", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodECalRi", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1566. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_OFon", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "OFon", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1567. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_OFon", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "OFon", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1568. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Coment", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Coment", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1569. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Coment", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Coment", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1570. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Just", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Just", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1571. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Just", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Just", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1572. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_TipoOper", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoOper", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1573. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_TipoOper", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoOper", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1574. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_DocBase", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocBase", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1575. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_DocBase", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocBase", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1576. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_MontoInv", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "MontoInv", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1577. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_MontoInv", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "MontoInv", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1578. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Precio", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Precio", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1579. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Precio", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "Precio", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1580. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Rendimiento", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Rendimiento", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1581. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Rendimiento", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Rendimiento", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1582. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Plazo", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Plazo", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1583. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Plazo", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Plazo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1584. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_PlazoFact", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "PlazoFact", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1585. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_PlazoFact", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "PlazoFact", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1586. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Ingresos", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Ingresos", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1587. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Ingresos", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "Ingresos", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1588. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_FechaDoc", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FechaDoc", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1589. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_FechaDoc", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FechaDoc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1590. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_AutEstado", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "AutEstado", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1591. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_AutEstado", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "AutEstado", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1592. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_TipoMerc", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoMerc", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1593. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_TipoMerc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoMerc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1594. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodPais", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodPais", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1595. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodPais", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodPais", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1596. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  1597. Me._adapter.InsertCommand.Connection = Me.Connection
  1598. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[PIN0] ([CodInv], [DocEst], [Asunto], [CodEmpr], [CodIF], [CodE"& _
  1599. "mis], [CodCalRi], [CodECalRi], [OFon], [Coment], [Just], [TipoOper], [DocBase], "& _
  1600. "[MontoInv], [Precio], [Rendimiento], [Plazo], [PlazoFact], [Ingresos], [FechaDoc"& _
  1601. "], [AutEstado], [TipoMerc], [CodPais]) VALUES (@CodInv, @DocEst, @Asunto, @CodEm"& _
  1602. "pr, @CodIF, @CodEmis, @CodCalRi, @CodECalRi, @OFon, @Coment, @Just, @TipoOper, @"& _
  1603. "DocBase, @MontoInv, @Precio, @Rendimiento, @Plazo, @PlazoFact, @Ingresos, @Fecha"& _
  1604. "Doc, @AutEstado, @TipoMerc, @CodPais);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT DocId, CodInv, DocEst, Asunto, Co"& _
  1605. "dEmpr, CodIF, CodEmis, CodCalRi, CodECalRi, OFon, Coment, Just, TipoOper, DocBas"& _
  1606. "e, MontoInv, Precio, Rendimiento, Plazo, PlazoFact, Ingresos, FechaDoc, AutEstad"& _
  1607. "o, TipoMerc, CodPais FROM PIN0 WHERE (DocId = SCOPE_IDENTITY())"
  1608. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  1609. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodInv", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodInv", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1610. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DocEst", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocEst", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1611. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Asunto", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Asunto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1612. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodEmpr", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmpr", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1613. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodIF", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodIF", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1614. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodEmis", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmis", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1615. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodCalRi", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodCalRi", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1616. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodECalRi", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodECalRi", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1617. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@OFon", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "OFon", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1618. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Coment", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Coment", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1619. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Just", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Just", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1620. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@TipoOper", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoOper", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1621. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DocBase", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocBase", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1622. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@MontoInv", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "MontoInv", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1623. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Precio", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "Precio", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1624. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Rendimiento", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Rendimiento", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1625. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Plazo", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Plazo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1626. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@PlazoFact", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "PlazoFact", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1627. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Ingresos", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "Ingresos", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1628. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@FechaDoc", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FechaDoc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1629. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@AutEstado", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "AutEstado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1630. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@TipoMerc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoMerc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1631. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodPais", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodPais", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1632. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  1633. Me._adapter.UpdateCommand.Connection = Me.Connection
  1634. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[PIN0] SET [CodInv] = @CodInv, [DocEst] = @DocEst, [Asunto] = @Asunt"& _
  1635. "o, [CodEmpr] = @CodEmpr, [CodIF] = @CodIF, [CodEmis] = @CodEmis, [CodCalRi] = @C"& _
  1636. "odCalRi, [CodECalRi] = @CodECalRi, [OFon] = @OFon, [Coment] = @Coment, [Just] = "& _
  1637. "@Just, [TipoOper] = @TipoOper, [DocBase] = @DocBase, [MontoInv] = @MontoInv, [Pr"& _
  1638. "ecio] = @Precio, [Rendimiento] = @Rendimiento, [Plazo] = @Plazo, [PlazoFact] = @"& _
  1639. "PlazoFact, [Ingresos] = @Ingresos, [FechaDoc] = @FechaDoc, [AutEstado] = @AutEst"& _
  1640. "ado, [TipoMerc] = @TipoMerc, [CodPais] = @CodPais WHERE (([DocId] = @Original_Do"& _
  1641. "cId) AND ((@IsNull_CodInv = 1 AND [CodInv] IS NULL) OR ([CodInv] = @Original_Cod"& _
  1642. "Inv)) AND ((@IsNull_DocEst = 1 AND [DocEst] IS NULL) OR ([DocEst] = @Original_Do"& _
  1643. "cEst)) AND ((@IsNull_Asunto = 1 AND [Asunto] IS NULL) OR ([Asunto] = @Original_A"& _
  1644. "sunto)) AND ((@IsNull_CodEmpr = 1 AND [CodEmpr] IS NULL) OR ([CodEmpr] = @Origin"& _
  1645. "al_CodEmpr)) AND ((@IsNull_CodIF = 1 AND [CodIF] IS NULL) OR ([CodIF] = @Origina"& _
  1646. "l_CodIF)) AND ((@IsNull_CodEmis = 1 AND [CodEmis] IS NULL) OR ([CodEmis] = @Orig"& _
  1647. "inal_CodEmis)) AND ((@IsNull_CodCalRi = 1 AND [CodCalRi] IS NULL) OR ([CodCalRi]"& _
  1648. " = @Original_CodCalRi)) AND ((@IsNull_CodECalRi = 1 AND [CodECalRi] IS NULL) OR "& _
  1649. "([CodECalRi] = @Original_CodECalRi)) AND ((@IsNull_OFon = 1 AND [OFon] IS NULL) "& _
  1650. "OR ([OFon] = @Original_OFon)) AND ((@IsNull_Coment = 1 AND [Coment] IS NULL) OR "& _
  1651. "([Coment] = @Original_Coment)) AND ((@IsNull_Just = 1 AND [Just] IS NULL) OR ([J"& _
  1652. "ust] = @Original_Just)) AND ((@IsNull_TipoOper = 1 AND [TipoOper] IS NULL) OR (["& _
  1653. "TipoOper] = @Original_TipoOper)) AND ((@IsNull_DocBase = 1 AND [DocBase] IS NULL"& _
  1654. ") OR ([DocBase] = @Original_DocBase)) AND ((@IsNull_MontoInv = 1 AND [MontoInv] "& _
  1655. "IS NULL) OR ([MontoInv] = @Original_MontoInv)) AND ((@IsNull_Precio = 1 AND [Pre"& _
  1656. "cio] IS NULL) OR ([Precio] = @Original_Precio)) AND ((@IsNull_Rendimiento = 1 AN"& _
  1657. "D [Rendimiento] IS NULL) OR ([Rendimiento] = @Original_Rendimiento)) AND ((@IsNu"& _
  1658. "ll_Plazo = 1 AND [Plazo] IS NULL) OR ([Plazo] = @Original_Plazo)) AND ((@IsNull_"& _
  1659. "PlazoFact = 1 AND [PlazoFact] IS NULL) OR ([PlazoFact] = @Original_PlazoFact)) A"& _
  1660. "ND ((@IsNull_Ingresos = 1 AND [Ingresos] IS NULL) OR ([Ingresos] = @Original_Ing"& _
  1661. "resos)) AND ((@IsNull_FechaDoc = 1 AND [FechaDoc] IS NULL) OR ([FechaDoc] = @Ori"& _
  1662. "ginal_FechaDoc)) AND ((@IsNull_AutEstado = 1 AND [AutEstado] IS NULL) OR ([AutEs"& _
  1663. "tado] = @Original_AutEstado)) AND ((@IsNull_TipoMerc = 1 AND [TipoMerc] IS NULL)"& _
  1664. " OR ([TipoMerc] = @Original_TipoMerc)) AND ((@IsNull_CodPais = 1 AND [CodPais] I"& _
  1665. "S NULL) OR ([CodPais] = @Original_CodPais)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT DocId, CodInv, DocEst, Asu"& _
  1666. "nto, CodEmpr, CodIF, CodEmis, CodCalRi, CodECalRi, OFon, Coment, Just, TipoOper,"& _
  1667. " DocBase, MontoInv, Precio, Rendimiento, Plazo, PlazoFact, Ingresos, FechaDoc, A"& _
  1668. "utEstado, TipoMerc, CodPais FROM PIN0 WHERE (DocId = @DocId)"
  1669. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  1670. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodInv", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodInv", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1671. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DocEst", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocEst", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1672. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Asunto", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Asunto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1673. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodEmpr", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmpr", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1674. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodIF", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodIF", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1675. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodEmis", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmis", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1676. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodCalRi", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodCalRi", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1677. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodECalRi", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodECalRi", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1678. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@OFon", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "OFon", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1679. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Coment", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Coment", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1680. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Just", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Just", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1681. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@TipoOper", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoOper", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1682. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DocBase", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocBase", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1683. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@MontoInv", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "MontoInv", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1684. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Precio", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "Precio", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1685. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Rendimiento", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Rendimiento", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1686. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Plazo", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Plazo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1687. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@PlazoFact", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "PlazoFact", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1688. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Ingresos", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "Ingresos", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1689. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@FechaDoc", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FechaDoc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1690. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@AutEstado", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "AutEstado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1691. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@TipoMerc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoMerc", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1692. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodPais", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodPais", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1693. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_DocId", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocId", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1694. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodInv", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodInv", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1695. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodInv", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodInv", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1696. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_DocEst", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocEst", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1697. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_DocEst", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocEst", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1698. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Asunto", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Asunto", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1699. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Asunto", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Asunto", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1700. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodEmpr", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmpr", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1701. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodEmpr", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmpr", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1702. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodIF", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodIF", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1703. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodIF", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodIF", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1704. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodEmis", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmis", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1705. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodEmis", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmis", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1706. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodCalRi", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodCalRi", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1707. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodCalRi", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodCalRi", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1708. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodECalRi", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodECalRi", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1709. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodECalRi", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodECalRi", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1710. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_OFon", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "OFon", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1711. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_OFon", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "OFon", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1712. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Coment", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Coment", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1713. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Coment", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Coment", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1714. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Just", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Just", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1715. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Just", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Just", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1716. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_TipoOper", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoOper", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1717. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_TipoOper", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoOper", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1718. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_DocBase", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocBase", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1719. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_DocBase", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DocBase", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1720. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_MontoInv", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "MontoInv", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1721. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_MontoInv", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "MontoInv", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1722. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Precio", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Precio", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1723. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Precio", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "Precio", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1724. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Rendimiento", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Rendimiento", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1725. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Rendimiento", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Rendimiento", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1726. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Plazo", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Plazo", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1727. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Plazo", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Plazo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1728. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_PlazoFact", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "PlazoFact", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1729. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_PlazoFact", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "PlazoFact", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1730. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Ingresos", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Ingresos", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1731. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Ingresos", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "Ingresos", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1732. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_FechaDoc", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FechaDoc", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1733. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_FechaDoc", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FechaDoc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1734. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_AutEstado", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "AutEstado", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1735. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_AutEstado", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "AutEstado", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1736. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_TipoMerc", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoMerc", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1737. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_TipoMerc", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoMerc", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1738. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodPais", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodPais", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  1739. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodPais", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodPais", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  1740. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DocId", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "DocId", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  1741. End Sub
  1742. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1743. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1744. Private Sub InitConnection()
  1745. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  1746. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.InversionesConnectionString
  1747. End Sub
  1748. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1749. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1750. Private Sub InitCommandCollection()
  1751. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  1752. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  1753. Me._commandCollection(0).Connection = Me.Connection
  1754. Me._commandCollection(0).CommandText = "SELECT DocId, CodInv, DocEst, Asunto, CodEmpr, CodIF, CodEmis, CodCalRi, CodECalR"& _
  1755. "i, OFon, Coment, Just, TipoOper, DocBase, MontoInv, Precio, Rendimiento, Plazo, "& _
  1756. "PlazoFact, Ingresos, FechaDoc, AutEstado, TipoMerc, CodPais FROM dbo.PIN0"
  1757. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  1758. End Sub
  1759. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1760. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  1761. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  1762. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  1763. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDEVDataSet4.PIN0DataTable) As Integer
  1764. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  1765. If (Me.ClearBeforeFill = true) Then
  1766. dataTable.Clear
  1767. End If
  1768. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  1769. Return returnValue
  1770. End Function
  1771. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1772. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  1773. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  1774. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  1775. Public Overloads Overridable Function GetData() As InversionesDEVDataSet4.PIN0DataTable
  1776. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  1777. Dim dataTable As InversionesDEVDataSet4.PIN0DataTable = New InversionesDEVDataSet4.PIN0DataTable()
  1778. Me.Adapter.Fill(dataTable)
  1779. Return dataTable
  1780. End Function
  1781. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1782. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  1783. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  1784. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDEVDataSet4.PIN0DataTable) As Integer
  1785. Return Me.Adapter.Update(dataTable)
  1786. End Function
  1787. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1788. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  1789. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  1790. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDEVDataSet4) As Integer
  1791. Return Me.Adapter.Update(dataSet, "PIN0")
  1792. End Function
  1793. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1794. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  1795. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  1796. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  1797. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  1798. End Function
  1799. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1800. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  1801. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  1802. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  1803. Return Me.Adapter.Update(dataRows)
  1804. End Function
  1805. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1806. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  1807. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  1808. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  1809. Public Overloads Overridable Function Delete( _
  1810. ByVal Original_DocId As Integer, _
  1811. ByVal Original_CodInv As String, _
  1812. ByVal Original_DocEst As String, _
  1813. ByVal Original_Asunto As String, _
  1814. ByVal Original_CodEmpr As String, _
  1815. ByVal Original_CodIF As String, _
  1816. ByVal Original_CodEmis As Global.System.Nullable(Of Integer), _
  1817. ByVal Original_CodCalRi As String, _
  1818. ByVal Original_CodECalRi As String, _
  1819. ByVal Original_OFon As String, _
  1820. ByVal Original_Coment As String, _
  1821. ByVal Original_Just As String, _
  1822. ByVal Original_TipoOper As String, _
  1823. ByVal Original_DocBase As Global.System.Nullable(Of Integer), _
  1824. ByVal Original_MontoInv As Global.System.Nullable(Of Decimal), _
  1825. ByVal Original_Precio As Global.System.Nullable(Of Decimal), _
  1826. ByVal Original_Rendimiento As String, _
  1827. ByVal Original_Plazo As Global.System.Nullable(Of Integer), _
  1828. ByVal Original_PlazoFact As String, _
  1829. ByVal Original_Ingresos As Global.System.Nullable(Of Decimal), _
  1830. ByVal Original_FechaDoc As Global.System.Nullable(Of Date), _
  1831. ByVal Original_AutEstado As String, _
  1832. ByVal Original_TipoMerc As String, _
  1833. ByVal Original_CodPais As String) As Integer
  1834. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_DocId,Integer)
  1835. If (Original_CodInv Is Nothing) Then
  1836. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  1837. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  1838. Else
  1839. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  1840. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_CodInv,String)
  1841. End If
  1842. If (Original_DocEst Is Nothing) Then
  1843. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
  1844. Me.Adapter.DeleteCommand.Parameters(4).Value = Global.System.DBNull.Value
  1845. Else
  1846. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
  1847. Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_DocEst,String)
  1848. End If
  1849. If (Original_Asunto Is Nothing) Then
  1850. Me.Adapter.DeleteCommand.Parameters(5).Value = CType(1,Object)
  1851. Me.Adapter.DeleteCommand.Parameters(6).Value = Global.System.DBNull.Value
  1852. Else
  1853. Me.Adapter.DeleteCommand.Parameters(5).Value = CType(0,Object)
  1854. Me.Adapter.DeleteCommand.Parameters(6).Value = CType(Original_Asunto,String)
  1855. End If
  1856. If (Original_CodEmpr Is Nothing) Then
  1857. Me.Adapter.DeleteCommand.Parameters(7).Value = CType(1,Object)
  1858. Me.Adapter.DeleteCommand.Parameters(8).Value = Global.System.DBNull.Value
  1859. Else
  1860. Me.Adapter.DeleteCommand.Parameters(7).Value = CType(0,Object)
  1861. Me.Adapter.DeleteCommand.Parameters(8).Value = CType(Original_CodEmpr,String)
  1862. End If
  1863. If (Original_CodIF Is Nothing) Then
  1864. Me.Adapter.DeleteCommand.Parameters(9).Value = CType(1,Object)
  1865. Me.Adapter.DeleteCommand.Parameters(10).Value = Global.System.DBNull.Value
  1866. Else
  1867. Me.Adapter.DeleteCommand.Parameters(9).Value = CType(0,Object)
  1868. Me.Adapter.DeleteCommand.Parameters(10).Value = CType(Original_CodIF,String)
  1869. End If
  1870. If (Original_CodEmis.HasValue = true) Then
  1871. Me.Adapter.DeleteCommand.Parameters(11).Value = CType(0,Object)
  1872. Me.Adapter.DeleteCommand.Parameters(12).Value = CType(Original_CodEmis.Value,Integer)
  1873. Else
  1874. Me.Adapter.DeleteCommand.Parameters(11).Value = CType(1,Object)
  1875. Me.Adapter.DeleteCommand.Parameters(12).Value = Global.System.DBNull.Value
  1876. End If
  1877. If (Original_CodCalRi Is Nothing) Then
  1878. Me.Adapter.DeleteCommand.Parameters(13).Value = CType(1,Object)
  1879. Me.Adapter.DeleteCommand.Parameters(14).Value = Global.System.DBNull.Value
  1880. Else
  1881. Me.Adapter.DeleteCommand.Parameters(13).Value = CType(0,Object)
  1882. Me.Adapter.DeleteCommand.Parameters(14).Value = CType(Original_CodCalRi,String)
  1883. End If
  1884. If (Original_CodECalRi Is Nothing) Then
  1885. Me.Adapter.DeleteCommand.Parameters(15).Value = CType(1,Object)
  1886. Me.Adapter.DeleteCommand.Parameters(16).Value = Global.System.DBNull.Value
  1887. Else
  1888. Me.Adapter.DeleteCommand.Parameters(15).Value = CType(0,Object)
  1889. Me.Adapter.DeleteCommand.Parameters(16).Value = CType(Original_CodECalRi,String)
  1890. End If
  1891. If (Original_OFon Is Nothing) Then
  1892. Me.Adapter.DeleteCommand.Parameters(17).Value = CType(1,Object)
  1893. Me.Adapter.DeleteCommand.Parameters(18).Value = Global.System.DBNull.Value
  1894. Else
  1895. Me.Adapter.DeleteCommand.Parameters(17).Value = CType(0,Object)
  1896. Me.Adapter.DeleteCommand.Parameters(18).Value = CType(Original_OFon,String)
  1897. End If
  1898. If (Original_Coment Is Nothing) Then
  1899. Me.Adapter.DeleteCommand.Parameters(19).Value = CType(1,Object)
  1900. Me.Adapter.DeleteCommand.Parameters(20).Value = Global.System.DBNull.Value
  1901. Else
  1902. Me.Adapter.DeleteCommand.Parameters(19).Value = CType(0,Object)
  1903. Me.Adapter.DeleteCommand.Parameters(20).Value = CType(Original_Coment,String)
  1904. End If
  1905. If (Original_Just Is Nothing) Then
  1906. Me.Adapter.DeleteCommand.Parameters(21).Value = CType(1,Object)
  1907. Me.Adapter.DeleteCommand.Parameters(22).Value = Global.System.DBNull.Value
  1908. Else
  1909. Me.Adapter.DeleteCommand.Parameters(21).Value = CType(0,Object)
  1910. Me.Adapter.DeleteCommand.Parameters(22).Value = CType(Original_Just,String)
  1911. End If
  1912. If (Original_TipoOper Is Nothing) Then
  1913. Me.Adapter.DeleteCommand.Parameters(23).Value = CType(1,Object)
  1914. Me.Adapter.DeleteCommand.Parameters(24).Value = Global.System.DBNull.Value
  1915. Else
  1916. Me.Adapter.DeleteCommand.Parameters(23).Value = CType(0,Object)
  1917. Me.Adapter.DeleteCommand.Parameters(24).Value = CType(Original_TipoOper,String)
  1918. End If
  1919. If (Original_DocBase.HasValue = true) Then
  1920. Me.Adapter.DeleteCommand.Parameters(25).Value = CType(0,Object)
  1921. Me.Adapter.DeleteCommand.Parameters(26).Value = CType(Original_DocBase.Value,Integer)
  1922. Else
  1923. Me.Adapter.DeleteCommand.Parameters(25).Value = CType(1,Object)
  1924. Me.Adapter.DeleteCommand.Parameters(26).Value = Global.System.DBNull.Value
  1925. End If
  1926. If (Original_MontoInv.HasValue = true) Then
  1927. Me.Adapter.DeleteCommand.Parameters(27).Value = CType(0,Object)
  1928. Me.Adapter.DeleteCommand.Parameters(28).Value = CType(Original_MontoInv.Value,Decimal)
  1929. Else
  1930. Me.Adapter.DeleteCommand.Parameters(27).Value = CType(1,Object)
  1931. Me.Adapter.DeleteCommand.Parameters(28).Value = Global.System.DBNull.Value
  1932. End If
  1933. If (Original_Precio.HasValue = true) Then
  1934. Me.Adapter.DeleteCommand.Parameters(29).Value = CType(0,Object)
  1935. Me.Adapter.DeleteCommand.Parameters(30).Value = CType(Original_Precio.Value,Decimal)
  1936. Else
  1937. Me.Adapter.DeleteCommand.Parameters(29).Value = CType(1,Object)
  1938. Me.Adapter.DeleteCommand.Parameters(30).Value = Global.System.DBNull.Value
  1939. End If
  1940. If (Original_Rendimiento Is Nothing) Then
  1941. Me.Adapter.DeleteCommand.Parameters(31).Value = CType(1,Object)
  1942. Me.Adapter.DeleteCommand.Parameters(32).Value = Global.System.DBNull.Value
  1943. Else
  1944. Me.Adapter.DeleteCommand.Parameters(31).Value = CType(0,Object)
  1945. Me.Adapter.DeleteCommand.Parameters(32).Value = CType(Original_Rendimiento,String)
  1946. End If
  1947. If (Original_Plazo.HasValue = true) Then
  1948. Me.Adapter.DeleteCommand.Parameters(33).Value = CType(0,Object)
  1949. Me.Adapter.DeleteCommand.Parameters(34).Value = CType(Original_Plazo.Value,Integer)
  1950. Else
  1951. Me.Adapter.DeleteCommand.Parameters(33).Value = CType(1,Object)
  1952. Me.Adapter.DeleteCommand.Parameters(34).Value = Global.System.DBNull.Value
  1953. End If
  1954. If (Original_PlazoFact Is Nothing) Then
  1955. Me.Adapter.DeleteCommand.Parameters(35).Value = CType(1,Object)
  1956. Me.Adapter.DeleteCommand.Parameters(36).Value = Global.System.DBNull.Value
  1957. Else
  1958. Me.Adapter.DeleteCommand.Parameters(35).Value = CType(0,Object)
  1959. Me.Adapter.DeleteCommand.Parameters(36).Value = CType(Original_PlazoFact,String)
  1960. End If
  1961. If (Original_Ingresos.HasValue = true) Then
  1962. Me.Adapter.DeleteCommand.Parameters(37).Value = CType(0,Object)
  1963. Me.Adapter.DeleteCommand.Parameters(38).Value = CType(Original_Ingresos.Value,Decimal)
  1964. Else
  1965. Me.Adapter.DeleteCommand.Parameters(37).Value = CType(1,Object)
  1966. Me.Adapter.DeleteCommand.Parameters(38).Value = Global.System.DBNull.Value
  1967. End If
  1968. If (Original_FechaDoc.HasValue = true) Then
  1969. Me.Adapter.DeleteCommand.Parameters(39).Value = CType(0,Object)
  1970. Me.Adapter.DeleteCommand.Parameters(40).Value = CType(Original_FechaDoc.Value,Date)
  1971. Else
  1972. Me.Adapter.DeleteCommand.Parameters(39).Value = CType(1,Object)
  1973. Me.Adapter.DeleteCommand.Parameters(40).Value = Global.System.DBNull.Value
  1974. End If
  1975. If (Original_AutEstado Is Nothing) Then
  1976. Me.Adapter.DeleteCommand.Parameters(41).Value = CType(1,Object)
  1977. Me.Adapter.DeleteCommand.Parameters(42).Value = Global.System.DBNull.Value
  1978. Else
  1979. Me.Adapter.DeleteCommand.Parameters(41).Value = CType(0,Object)
  1980. Me.Adapter.DeleteCommand.Parameters(42).Value = CType(Original_AutEstado,String)
  1981. End If
  1982. If (Original_TipoMerc Is Nothing) Then
  1983. Me.Adapter.DeleteCommand.Parameters(43).Value = CType(1,Object)
  1984. Me.Adapter.DeleteCommand.Parameters(44).Value = Global.System.DBNull.Value
  1985. Else
  1986. Me.Adapter.DeleteCommand.Parameters(43).Value = CType(0,Object)
  1987. Me.Adapter.DeleteCommand.Parameters(44).Value = CType(Original_TipoMerc,String)
  1988. End If
  1989. If (Original_CodPais Is Nothing) Then
  1990. Me.Adapter.DeleteCommand.Parameters(45).Value = CType(1,Object)
  1991. Me.Adapter.DeleteCommand.Parameters(46).Value = Global.System.DBNull.Value
  1992. Else
  1993. Me.Adapter.DeleteCommand.Parameters(45).Value = CType(0,Object)
  1994. Me.Adapter.DeleteCommand.Parameters(46).Value = CType(Original_CodPais,String)
  1995. End If
  1996. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  1997. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  1998. <> Global.System.Data.ConnectionState.Open) Then
  1999. Me.Adapter.DeleteCommand.Connection.Open
  2000. End If
  2001. Try
  2002. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  2003. Return returnValue
  2004. Finally
  2005. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  2006. Me.Adapter.DeleteCommand.Connection.Close
  2007. End If
  2008. End Try
  2009. End Function
  2010. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2011. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  2012. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  2013. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  2014. Public Overloads Overridable Function Insert( _
  2015. ByVal CodInv As String, _
  2016. ByVal DocEst As String, _
  2017. ByVal Asunto As String, _
  2018. ByVal CodEmpr As String, _
  2019. ByVal CodIF As String, _
  2020. ByVal CodEmis As Global.System.Nullable(Of Integer), _
  2021. ByVal CodCalRi As String, _
  2022. ByVal CodECalRi As String, _
  2023. ByVal OFon As String, _
  2024. ByVal Coment As String, _
  2025. ByVal Just As String, _
  2026. ByVal TipoOper As String, _
  2027. ByVal DocBase As Global.System.Nullable(Of Integer), _
  2028. ByVal MontoInv As Global.System.Nullable(Of Decimal), _
  2029. ByVal Precio As Global.System.Nullable(Of Decimal), _
  2030. ByVal Rendimiento As String, _
  2031. ByVal Plazo As Global.System.Nullable(Of Integer), _
  2032. ByVal PlazoFact As String, _
  2033. ByVal Ingresos As Global.System.Nullable(Of Decimal), _
  2034. ByVal FechaDoc As Global.System.Nullable(Of Date), _
  2035. ByVal AutEstado As String, _
  2036. ByVal TipoMerc As String, _
  2037. ByVal CodPais As String) As Integer
  2038. If (CodInv Is Nothing) Then
  2039. Me.Adapter.InsertCommand.Parameters(0).Value = Global.System.DBNull.Value
  2040. Else
  2041. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodInv,String)
  2042. End If
  2043. If (DocEst Is Nothing) Then
  2044. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  2045. Else
  2046. Me.Adapter.InsertCommand.Parameters(1).Value = CType(DocEst,String)
  2047. End If
  2048. If (Asunto Is Nothing) Then
  2049. Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
  2050. Else
  2051. Me.Adapter.InsertCommand.Parameters(2).Value = CType(Asunto,String)
  2052. End If
  2053. If (CodEmpr Is Nothing) Then
  2054. Me.Adapter.InsertCommand.Parameters(3).Value = Global.System.DBNull.Value
  2055. Else
  2056. Me.Adapter.InsertCommand.Parameters(3).Value = CType(CodEmpr,String)
  2057. End If
  2058. If (CodIF Is Nothing) Then
  2059. Me.Adapter.InsertCommand.Parameters(4).Value = Global.System.DBNull.Value
  2060. Else
  2061. Me.Adapter.InsertCommand.Parameters(4).Value = CType(CodIF,String)
  2062. End If
  2063. If (CodEmis.HasValue = true) Then
  2064. Me.Adapter.InsertCommand.Parameters(5).Value = CType(CodEmis.Value,Integer)
  2065. Else
  2066. Me.Adapter.InsertCommand.Parameters(5).Value = Global.System.DBNull.Value
  2067. End If
  2068. If (CodCalRi Is Nothing) Then
  2069. Me.Adapter.InsertCommand.Parameters(6).Value = Global.System.DBNull.Value
  2070. Else
  2071. Me.Adapter.InsertCommand.Parameters(6).Value = CType(CodCalRi,String)
  2072. End If
  2073. If (CodECalRi Is Nothing) Then
  2074. Me.Adapter.InsertCommand.Parameters(7).Value = Global.System.DBNull.Value
  2075. Else
  2076. Me.Adapter.InsertCommand.Parameters(7).Value = CType(CodECalRi,String)
  2077. End If
  2078. If (OFon Is Nothing) Then
  2079. Me.Adapter.InsertCommand.Parameters(8).Value = Global.System.DBNull.Value
  2080. Else
  2081. Me.Adapter.InsertCommand.Parameters(8).Value = CType(OFon,String)
  2082. End If
  2083. If (Coment Is Nothing) Then
  2084. Me.Adapter.InsertCommand.Parameters(9).Value = Global.System.DBNull.Value
  2085. Else
  2086. Me.Adapter.InsertCommand.Parameters(9).Value = CType(Coment,String)
  2087. End If
  2088. If (Just Is Nothing) Then
  2089. Me.Adapter.InsertCommand.Parameters(10).Value = Global.System.DBNull.Value
  2090. Else
  2091. Me.Adapter.InsertCommand.Parameters(10).Value = CType(Just,String)
  2092. End If
  2093. If (TipoOper Is Nothing) Then
  2094. Me.Adapter.InsertCommand.Parameters(11).Value = Global.System.DBNull.Value
  2095. Else
  2096. Me.Adapter.InsertCommand.Parameters(11).Value = CType(TipoOper,String)
  2097. End If
  2098. If (DocBase.HasValue = true) Then
  2099. Me.Adapter.InsertCommand.Parameters(12).Value = CType(DocBase.Value,Integer)
  2100. Else
  2101. Me.Adapter.InsertCommand.Parameters(12).Value = Global.System.DBNull.Value
  2102. End If
  2103. If (MontoInv.HasValue = true) Then
  2104. Me.Adapter.InsertCommand.Parameters(13).Value = CType(MontoInv.Value,Decimal)
  2105. Else
  2106. Me.Adapter.InsertCommand.Parameters(13).Value = Global.System.DBNull.Value
  2107. End If
  2108. If (Precio.HasValue = true) Then
  2109. Me.Adapter.InsertCommand.Parameters(14).Value = CType(Precio.Value,Decimal)
  2110. Else
  2111. Me.Adapter.InsertCommand.Parameters(14).Value = Global.System.DBNull.Value
  2112. End If
  2113. If (Rendimiento Is Nothing) Then
  2114. Me.Adapter.InsertCommand.Parameters(15).Value = Global.System.DBNull.Value
  2115. Else
  2116. Me.Adapter.InsertCommand.Parameters(15).Value = CType(Rendimiento,String)
  2117. End If
  2118. If (Plazo.HasValue = true) Then
  2119. Me.Adapter.InsertCommand.Parameters(16).Value = CType(Plazo.Value,Integer)
  2120. Else
  2121. Me.Adapter.InsertCommand.Parameters(16).Value = Global.System.DBNull.Value
  2122. End If
  2123. If (PlazoFact Is Nothing) Then
  2124. Me.Adapter.InsertCommand.Parameters(17).Value = Global.System.DBNull.Value
  2125. Else
  2126. Me.Adapter.InsertCommand.Parameters(17).Value = CType(PlazoFact,String)
  2127. End If
  2128. If (Ingresos.HasValue = true) Then
  2129. Me.Adapter.InsertCommand.Parameters(18).Value = CType(Ingresos.Value,Decimal)
  2130. Else
  2131. Me.Adapter.InsertCommand.Parameters(18).Value = Global.System.DBNull.Value
  2132. End If
  2133. If (FechaDoc.HasValue = true) Then
  2134. Me.Adapter.InsertCommand.Parameters(19).Value = CType(FechaDoc.Value,Date)
  2135. Else
  2136. Me.Adapter.InsertCommand.Parameters(19).Value = Global.System.DBNull.Value
  2137. End If
  2138. If (AutEstado Is Nothing) Then
  2139. Me.Adapter.InsertCommand.Parameters(20).Value = Global.System.DBNull.Value
  2140. Else
  2141. Me.Adapter.InsertCommand.Parameters(20).Value = CType(AutEstado,String)
  2142. End If
  2143. If (TipoMerc Is Nothing) Then
  2144. Me.Adapter.InsertCommand.Parameters(21).Value = Global.System.DBNull.Value
  2145. Else
  2146. Me.Adapter.InsertCommand.Parameters(21).Value = CType(TipoMerc,String)
  2147. End If
  2148. If (CodPais Is Nothing) Then
  2149. Me.Adapter.InsertCommand.Parameters(22).Value = Global.System.DBNull.Value
  2150. Else
  2151. Me.Adapter.InsertCommand.Parameters(22).Value = CType(CodPais,String)
  2152. End If
  2153. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  2154. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  2155. <> Global.System.Data.ConnectionState.Open) Then
  2156. Me.Adapter.InsertCommand.Connection.Open
  2157. End If
  2158. Try
  2159. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  2160. Return returnValue
  2161. Finally
  2162. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  2163. Me.Adapter.InsertCommand.Connection.Close
  2164. End If
  2165. End Try
  2166. End Function
  2167. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2168. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  2169. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  2170. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  2171. Public Overloads Overridable Function Update( _
  2172. ByVal CodInv As String, _
  2173. ByVal DocEst As String, _
  2174. ByVal Asunto As String, _
  2175. ByVal CodEmpr As String, _
  2176. ByVal CodIF As String, _
  2177. ByVal CodEmis As Global.System.Nullable(Of Integer), _
  2178. ByVal CodCalRi As String, _
  2179. ByVal CodECalRi As String, _
  2180. ByVal OFon As String, _
  2181. ByVal Coment As String, _
  2182. ByVal Just As String, _
  2183. ByVal TipoOper As String, _
  2184. ByVal DocBase As Global.System.Nullable(Of Integer), _
  2185. ByVal MontoInv As Global.System.Nullable(Of Decimal), _
  2186. ByVal Precio As Global.System.Nullable(Of Decimal), _
  2187. ByVal Rendimiento As String, _
  2188. ByVal Plazo As Global.System.Nullable(Of Integer), _
  2189. ByVal PlazoFact As String, _
  2190. ByVal Ingresos As Global.System.Nullable(Of Decimal), _
  2191. ByVal FechaDoc As Global.System.Nullable(Of Date), _
  2192. ByVal AutEstado As String, _
  2193. ByVal TipoMerc As String, _
  2194. ByVal CodPais As String, _
  2195. ByVal Original_DocId As Integer, _
  2196. ByVal Original_CodInv As String, _
  2197. ByVal Original_DocEst As String, _
  2198. ByVal Original_Asunto As String, _
  2199. ByVal Original_CodEmpr As String, _
  2200. ByVal Original_CodIF As String, _
  2201. ByVal Original_CodEmis As Global.System.Nullable(Of Integer), _
  2202. ByVal Original_CodCalRi As String, _
  2203. ByVal Original_CodECalRi As String, _
  2204. ByVal Original_OFon As String, _
  2205. ByVal Original_Coment As String, _
  2206. ByVal Original_Just As String, _
  2207. ByVal Original_TipoOper As String, _
  2208. ByVal Original_DocBase As Global.System.Nullable(Of Integer), _
  2209. ByVal Original_MontoInv As Global.System.Nullable(Of Decimal), _
  2210. ByVal Original_Precio As Global.System.Nullable(Of Decimal), _
  2211. ByVal Original_Rendimiento As String, _
  2212. ByVal Original_Plazo As Global.System.Nullable(Of Integer), _
  2213. ByVal Original_PlazoFact As String, _
  2214. ByVal Original_Ingresos As Global.System.Nullable(Of Decimal), _
  2215. ByVal Original_FechaDoc As Global.System.Nullable(Of Date), _
  2216. ByVal Original_AutEstado As String, _
  2217. ByVal Original_TipoMerc As String, _
  2218. ByVal Original_CodPais As String, _
  2219. ByVal DocId As Integer) As Integer
  2220. If (CodInv Is Nothing) Then
  2221. Me.Adapter.UpdateCommand.Parameters(0).Value = Global.System.DBNull.Value
  2222. Else
  2223. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodInv,String)
  2224. End If
  2225. If (DocEst Is Nothing) Then
  2226. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  2227. Else
  2228. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(DocEst,String)
  2229. End If
  2230. If (Asunto Is Nothing) Then
  2231. Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
  2232. Else
  2233. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Asunto,String)
  2234. End If
  2235. If (CodEmpr Is Nothing) Then
  2236. Me.Adapter.UpdateCommand.Parameters(3).Value = Global.System.DBNull.Value
  2237. Else
  2238. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(CodEmpr,String)
  2239. End If
  2240. If (CodIF Is Nothing) Then
  2241. Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
  2242. Else
  2243. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(CodIF,String)
  2244. End If
  2245. If (CodEmis.HasValue = true) Then
  2246. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(CodEmis.Value,Integer)
  2247. Else
  2248. Me.Adapter.UpdateCommand.Parameters(5).Value = Global.System.DBNull.Value
  2249. End If
  2250. If (CodCalRi Is Nothing) Then
  2251. Me.Adapter.UpdateCommand.Parameters(6).Value = Global.System.DBNull.Value
  2252. Else
  2253. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(CodCalRi,String)
  2254. End If
  2255. If (CodECalRi Is Nothing) Then
  2256. Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
  2257. Else
  2258. Me.Adapter.UpdateCommand.Parameters(7).Value = CType(CodECalRi,String)
  2259. End If
  2260. If (OFon Is Nothing) Then
  2261. Me.Adapter.UpdateCommand.Parameters(8).Value = Global.System.DBNull.Value
  2262. Else
  2263. Me.Adapter.UpdateCommand.Parameters(8).Value = CType(OFon,String)
  2264. End If
  2265. If (Coment Is Nothing) Then
  2266. Me.Adapter.UpdateCommand.Parameters(9).Value = Global.System.DBNull.Value
  2267. Else
  2268. Me.Adapter.UpdateCommand.Parameters(9).Value = CType(Coment,String)
  2269. End If
  2270. If (Just Is Nothing) Then
  2271. Me.Adapter.UpdateCommand.Parameters(10).Value = Global.System.DBNull.Value
  2272. Else
  2273. Me.Adapter.UpdateCommand.Parameters(10).Value = CType(Just,String)
  2274. End If
  2275. If (TipoOper Is Nothing) Then
  2276. Me.Adapter.UpdateCommand.Parameters(11).Value = Global.System.DBNull.Value
  2277. Else
  2278. Me.Adapter.UpdateCommand.Parameters(11).Value = CType(TipoOper,String)
  2279. End If
  2280. If (DocBase.HasValue = true) Then
  2281. Me.Adapter.UpdateCommand.Parameters(12).Value = CType(DocBase.Value,Integer)
  2282. Else
  2283. Me.Adapter.UpdateCommand.Parameters(12).Value = Global.System.DBNull.Value
  2284. End If
  2285. If (MontoInv.HasValue = true) Then
  2286. Me.Adapter.UpdateCommand.Parameters(13).Value = CType(MontoInv.Value,Decimal)
  2287. Else
  2288. Me.Adapter.UpdateCommand.Parameters(13).Value = Global.System.DBNull.Value
  2289. End If
  2290. If (Precio.HasValue = true) Then
  2291. Me.Adapter.UpdateCommand.Parameters(14).Value = CType(Precio.Value,Decimal)
  2292. Else
  2293. Me.Adapter.UpdateCommand.Parameters(14).Value = Global.System.DBNull.Value
  2294. End If
  2295. If (Rendimiento Is Nothing) Then
  2296. Me.Adapter.UpdateCommand.Parameters(15).Value = Global.System.DBNull.Value
  2297. Else
  2298. Me.Adapter.UpdateCommand.Parameters(15).Value = CType(Rendimiento,String)
  2299. End If
  2300. If (Plazo.HasValue = true) Then
  2301. Me.Adapter.UpdateCommand.Parameters(16).Value = CType(Plazo.Value,Integer)
  2302. Else
  2303. Me.Adapter.UpdateCommand.Parameters(16).Value = Global.System.DBNull.Value
  2304. End If
  2305. If (PlazoFact Is Nothing) Then
  2306. Me.Adapter.UpdateCommand.Parameters(17).Value = Global.System.DBNull.Value
  2307. Else
  2308. Me.Adapter.UpdateCommand.Parameters(17).Value = CType(PlazoFact,String)
  2309. End If
  2310. If (Ingresos.HasValue = true) Then
  2311. Me.Adapter.UpdateCommand.Parameters(18).Value = CType(Ingresos.Value,Decimal)
  2312. Else
  2313. Me.Adapter.UpdateCommand.Parameters(18).Value = Global.System.DBNull.Value
  2314. End If
  2315. If (FechaDoc.HasValue = true) Then
  2316. Me.Adapter.UpdateCommand.Parameters(19).Value = CType(FechaDoc.Value,Date)
  2317. Else
  2318. Me.Adapter.UpdateCommand.Parameters(19).Value = Global.System.DBNull.Value
  2319. End If
  2320. If (AutEstado Is Nothing) Then
  2321. Me.Adapter.UpdateCommand.Parameters(20).Value = Global.System.DBNull.Value
  2322. Else
  2323. Me.Adapter.UpdateCommand.Parameters(20).Value = CType(AutEstado,String)
  2324. End If
  2325. If (TipoMerc Is Nothing) Then
  2326. Me.Adapter.UpdateCommand.Parameters(21).Value = Global.System.DBNull.Value
  2327. Else
  2328. Me.Adapter.UpdateCommand.Parameters(21).Value = CType(TipoMerc,String)
  2329. End If
  2330. If (CodPais Is Nothing) Then
  2331. Me.Adapter.UpdateCommand.Parameters(22).Value = Global.System.DBNull.Value
  2332. Else
  2333. Me.Adapter.UpdateCommand.Parameters(22).Value = CType(CodPais,String)
  2334. End If
  2335. Me.Adapter.UpdateCommand.Parameters(23).Value = CType(Original_DocId,Integer)
  2336. If (Original_CodInv Is Nothing) Then
  2337. Me.Adapter.UpdateCommand.Parameters(24).Value = CType(1,Object)
  2338. Me.Adapter.UpdateCommand.Parameters(25).Value = Global.System.DBNull.Value
  2339. Else
  2340. Me.Adapter.UpdateCommand.Parameters(24).Value = CType(0,Object)
  2341. Me.Adapter.UpdateCommand.Parameters(25).Value = CType(Original_CodInv,String)
  2342. End If
  2343. If (Original_DocEst Is Nothing) Then
  2344. Me.Adapter.UpdateCommand.Parameters(26).Value = CType(1,Object)
  2345. Me.Adapter.UpdateCommand.Parameters(27).Value = Global.System.DBNull.Value
  2346. Else
  2347. Me.Adapter.UpdateCommand.Parameters(26).Value = CType(0,Object)
  2348. Me.Adapter.UpdateCommand.Parameters(27).Value = CType(Original_DocEst,String)
  2349. End If
  2350. If (Original_Asunto Is Nothing) Then
  2351. Me.Adapter.UpdateCommand.Parameters(28).Value = CType(1,Object)
  2352. Me.Adapter.UpdateCommand.Parameters(29).Value = Global.System.DBNull.Value
  2353. Else
  2354. Me.Adapter.UpdateCommand.Parameters(28).Value = CType(0,Object)
  2355. Me.Adapter.UpdateCommand.Parameters(29).Value = CType(Original_Asunto,String)
  2356. End If
  2357. If (Original_CodEmpr Is Nothing) Then
  2358. Me.Adapter.UpdateCommand.Parameters(30).Value = CType(1,Object)
  2359. Me.Adapter.UpdateCommand.Parameters(31).Value = Global.System.DBNull.Value
  2360. Else
  2361. Me.Adapter.UpdateCommand.Parameters(30).Value = CType(0,Object)
  2362. Me.Adapter.UpdateCommand.Parameters(31).Value = CType(Original_CodEmpr,String)
  2363. End If
  2364. If (Original_CodIF Is Nothing) Then
  2365. Me.Adapter.UpdateCommand.Parameters(32).Value = CType(1,Object)
  2366. Me.Adapter.UpdateCommand.Parameters(33).Value = Global.System.DBNull.Value
  2367. Else
  2368. Me.Adapter.UpdateCommand.Parameters(32).Value = CType(0,Object)
  2369. Me.Adapter.UpdateCommand.Parameters(33).Value = CType(Original_CodIF,String)
  2370. End If
  2371. If (Original_CodEmis.HasValue = true) Then
  2372. Me.Adapter.UpdateCommand.Parameters(34).Value = CType(0,Object)
  2373. Me.Adapter.UpdateCommand.Parameters(35).Value = CType(Original_CodEmis.Value,Integer)
  2374. Else
  2375. Me.Adapter.UpdateCommand.Parameters(34).Value = CType(1,Object)
  2376. Me.Adapter.UpdateCommand.Parameters(35).Value = Global.System.DBNull.Value
  2377. End If
  2378. If (Original_CodCalRi Is Nothing) Then
  2379. Me.Adapter.UpdateCommand.Parameters(36).Value = CType(1,Object)
  2380. Me.Adapter.UpdateCommand.Parameters(37).Value = Global.System.DBNull.Value
  2381. Else
  2382. Me.Adapter.UpdateCommand.Parameters(36).Value = CType(0,Object)
  2383. Me.Adapter.UpdateCommand.Parameters(37).Value = CType(Original_CodCalRi,String)
  2384. End If
  2385. If (Original_CodECalRi Is Nothing) Then
  2386. Me.Adapter.UpdateCommand.Parameters(38).Value = CType(1,Object)
  2387. Me.Adapter.UpdateCommand.Parameters(39).Value = Global.System.DBNull.Value
  2388. Else
  2389. Me.Adapter.UpdateCommand.Parameters(38).Value = CType(0,Object)
  2390. Me.Adapter.UpdateCommand.Parameters(39).Value = CType(Original_CodECalRi,String)
  2391. End If
  2392. If (Original_OFon Is Nothing) Then
  2393. Me.Adapter.UpdateCommand.Parameters(40).Value = CType(1,Object)
  2394. Me.Adapter.UpdateCommand.Parameters(41).Value = Global.System.DBNull.Value
  2395. Else
  2396. Me.Adapter.UpdateCommand.Parameters(40).Value = CType(0,Object)
  2397. Me.Adapter.UpdateCommand.Parameters(41).Value = CType(Original_OFon,String)
  2398. End If
  2399. If (Original_Coment Is Nothing) Then
  2400. Me.Adapter.UpdateCommand.Parameters(42).Value = CType(1,Object)
  2401. Me.Adapter.UpdateCommand.Parameters(43).Value = Global.System.DBNull.Value
  2402. Else
  2403. Me.Adapter.UpdateCommand.Parameters(42).Value = CType(0,Object)
  2404. Me.Adapter.UpdateCommand.Parameters(43).Value = CType(Original_Coment,String)
  2405. End If
  2406. If (Original_Just Is Nothing) Then
  2407. Me.Adapter.UpdateCommand.Parameters(44).Value = CType(1,Object)
  2408. Me.Adapter.UpdateCommand.Parameters(45).Value = Global.System.DBNull.Value
  2409. Else
  2410. Me.Adapter.UpdateCommand.Parameters(44).Value = CType(0,Object)
  2411. Me.Adapter.UpdateCommand.Parameters(45).Value = CType(Original_Just,String)
  2412. End If
  2413. If (Original_TipoOper Is Nothing) Then
  2414. Me.Adapter.UpdateCommand.Parameters(46).Value = CType(1,Object)
  2415. Me.Adapter.UpdateCommand.Parameters(47).Value = Global.System.DBNull.Value
  2416. Else
  2417. Me.Adapter.UpdateCommand.Parameters(46).Value = CType(0,Object)
  2418. Me.Adapter.UpdateCommand.Parameters(47).Value = CType(Original_TipoOper,String)
  2419. End If
  2420. If (Original_DocBase.HasValue = true) Then
  2421. Me.Adapter.UpdateCommand.Parameters(48).Value = CType(0,Object)
  2422. Me.Adapter.UpdateCommand.Parameters(49).Value = CType(Original_DocBase.Value,Integer)
  2423. Else
  2424. Me.Adapter.UpdateCommand.Parameters(48).Value = CType(1,Object)
  2425. Me.Adapter.UpdateCommand.Parameters(49).Value = Global.System.DBNull.Value
  2426. End If
  2427. If (Original_MontoInv.HasValue = true) Then
  2428. Me.Adapter.UpdateCommand.Parameters(50).Value = CType(0,Object)
  2429. Me.Adapter.UpdateCommand.Parameters(51).Value = CType(Original_MontoInv.Value,Decimal)
  2430. Else
  2431. Me.Adapter.UpdateCommand.Parameters(50).Value = CType(1,Object)
  2432. Me.Adapter.UpdateCommand.Parameters(51).Value = Global.System.DBNull.Value
  2433. End If
  2434. If (Original_Precio.HasValue = true) Then
  2435. Me.Adapter.UpdateCommand.Parameters(52).Value = CType(0,Object)
  2436. Me.Adapter.UpdateCommand.Parameters(53).Value = CType(Original_Precio.Value,Decimal)
  2437. Else
  2438. Me.Adapter.UpdateCommand.Parameters(52).Value = CType(1,Object)
  2439. Me.Adapter.UpdateCommand.Parameters(53).Value = Global.System.DBNull.Value
  2440. End If
  2441. If (Original_Rendimiento Is Nothing) Then
  2442. Me.Adapter.UpdateCommand.Parameters(54).Value = CType(1,Object)
  2443. Me.Adapter.UpdateCommand.Parameters(55).Value = Global.System.DBNull.Value
  2444. Else
  2445. Me.Adapter.UpdateCommand.Parameters(54).Value = CType(0,Object)
  2446. Me.Adapter.UpdateCommand.Parameters(55).Value = CType(Original_Rendimiento,String)
  2447. End If
  2448. If (Original_Plazo.HasValue = true) Then
  2449. Me.Adapter.UpdateCommand.Parameters(56).Value = CType(0,Object)
  2450. Me.Adapter.UpdateCommand.Parameters(57).Value = CType(Original_Plazo.Value,Integer)
  2451. Else
  2452. Me.Adapter.UpdateCommand.Parameters(56).Value = CType(1,Object)
  2453. Me.Adapter.UpdateCommand.Parameters(57).Value = Global.System.DBNull.Value
  2454. End If
  2455. If (Original_PlazoFact Is Nothing) Then
  2456. Me.Adapter.UpdateCommand.Parameters(58).Value = CType(1,Object)
  2457. Me.Adapter.UpdateCommand.Parameters(59).Value = Global.System.DBNull.Value
  2458. Else
  2459. Me.Adapter.UpdateCommand.Parameters(58).Value = CType(0,Object)
  2460. Me.Adapter.UpdateCommand.Parameters(59).Value = CType(Original_PlazoFact,String)
  2461. End If
  2462. If (Original_Ingresos.HasValue = true) Then
  2463. Me.Adapter.UpdateCommand.Parameters(60).Value = CType(0,Object)
  2464. Me.Adapter.UpdateCommand.Parameters(61).Value = CType(Original_Ingresos.Value,Decimal)
  2465. Else
  2466. Me.Adapter.UpdateCommand.Parameters(60).Value = CType(1,Object)
  2467. Me.Adapter.UpdateCommand.Parameters(61).Value = Global.System.DBNull.Value
  2468. End If
  2469. If (Original_FechaDoc.HasValue = true) Then
  2470. Me.Adapter.UpdateCommand.Parameters(62).Value = CType(0,Object)
  2471. Me.Adapter.UpdateCommand.Parameters(63).Value = CType(Original_FechaDoc.Value,Date)
  2472. Else
  2473. Me.Adapter.UpdateCommand.Parameters(62).Value = CType(1,Object)
  2474. Me.Adapter.UpdateCommand.Parameters(63).Value = Global.System.DBNull.Value
  2475. End If
  2476. If (Original_AutEstado Is Nothing) Then
  2477. Me.Adapter.UpdateCommand.Parameters(64).Value = CType(1,Object)
  2478. Me.Adapter.UpdateCommand.Parameters(65).Value = Global.System.DBNull.Value
  2479. Else
  2480. Me.Adapter.UpdateCommand.Parameters(64).Value = CType(0,Object)
  2481. Me.Adapter.UpdateCommand.Parameters(65).Value = CType(Original_AutEstado,String)
  2482. End If
  2483. If (Original_TipoMerc Is Nothing) Then
  2484. Me.Adapter.UpdateCommand.Parameters(66).Value = CType(1,Object)
  2485. Me.Adapter.UpdateCommand.Parameters(67).Value = Global.System.DBNull.Value
  2486. Else
  2487. Me.Adapter.UpdateCommand.Parameters(66).Value = CType(0,Object)
  2488. Me.Adapter.UpdateCommand.Parameters(67).Value = CType(Original_TipoMerc,String)
  2489. End If
  2490. If (Original_CodPais Is Nothing) Then
  2491. Me.Adapter.UpdateCommand.Parameters(68).Value = CType(1,Object)
  2492. Me.Adapter.UpdateCommand.Parameters(69).Value = Global.System.DBNull.Value
  2493. Else
  2494. Me.Adapter.UpdateCommand.Parameters(68).Value = CType(0,Object)
  2495. Me.Adapter.UpdateCommand.Parameters(69).Value = CType(Original_CodPais,String)
  2496. End If
  2497. Me.Adapter.UpdateCommand.Parameters(70).Value = CType(DocId,Integer)
  2498. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  2499. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  2500. <> Global.System.Data.ConnectionState.Open) Then
  2501. Me.Adapter.UpdateCommand.Connection.Open
  2502. End If
  2503. Try
  2504. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  2505. Return returnValue
  2506. Finally
  2507. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  2508. Me.Adapter.UpdateCommand.Connection.Close
  2509. End If
  2510. End Try
  2511. End Function
  2512. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2513. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  2514. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  2515. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  2516. Public Overloads Overridable Function Update( _
  2517. ByVal CodInv As String, _
  2518. ByVal DocEst As String, _
  2519. ByVal Asunto As String, _
  2520. ByVal CodEmpr As String, _
  2521. ByVal CodIF As String, _
  2522. ByVal CodEmis As Global.System.Nullable(Of Integer), _
  2523. ByVal CodCalRi As String, _
  2524. ByVal CodECalRi As String, _
  2525. ByVal OFon As String, _
  2526. ByVal Coment As String, _
  2527. ByVal Just As String, _
  2528. ByVal TipoOper As String, _
  2529. ByVal DocBase As Global.System.Nullable(Of Integer), _
  2530. ByVal MontoInv As Global.System.Nullable(Of Decimal), _
  2531. ByVal Precio As Global.System.Nullable(Of Decimal), _
  2532. ByVal Rendimiento As String, _
  2533. ByVal Plazo As Global.System.Nullable(Of Integer), _
  2534. ByVal PlazoFact As String, _
  2535. ByVal Ingresos As Global.System.Nullable(Of Decimal), _
  2536. ByVal FechaDoc As Global.System.Nullable(Of Date), _
  2537. ByVal AutEstado As String, _
  2538. ByVal TipoMerc As String, _
  2539. ByVal CodPais As String, _
  2540. ByVal Original_DocId As Integer, _
  2541. ByVal Original_CodInv As String, _
  2542. ByVal Original_DocEst As String, _
  2543. ByVal Original_Asunto As String, _
  2544. ByVal Original_CodEmpr As String, _
  2545. ByVal Original_CodIF As String, _
  2546. ByVal Original_CodEmis As Global.System.Nullable(Of Integer), _
  2547. ByVal Original_CodCalRi As String, _
  2548. ByVal Original_CodECalRi As String, _
  2549. ByVal Original_OFon As String, _
  2550. ByVal Original_Coment As String, _
  2551. ByVal Original_Just As String, _
  2552. ByVal Original_TipoOper As String, _
  2553. ByVal Original_DocBase As Global.System.Nullable(Of Integer), _
  2554. ByVal Original_MontoInv As Global.System.Nullable(Of Decimal), _
  2555. ByVal Original_Precio As Global.System.Nullable(Of Decimal), _
  2556. ByVal Original_Rendimiento As String, _
  2557. ByVal Original_Plazo As Global.System.Nullable(Of Integer), _
  2558. ByVal Original_PlazoFact As String, _
  2559. ByVal Original_Ingresos As Global.System.Nullable(Of Decimal), _
  2560. ByVal Original_FechaDoc As Global.System.Nullable(Of Date), _
  2561. ByVal Original_AutEstado As String, _
  2562. ByVal Original_TipoMerc As String, _
  2563. ByVal Original_CodPais As String) As Integer
  2564. Return Me.Update(CodInv, DocEst, Asunto, CodEmpr, CodIF, CodEmis, CodCalRi, CodECalRi, OFon, Coment, Just, TipoOper, DocBase, MontoInv, Precio, Rendimiento, Plazo, PlazoFact, Ingresos, FechaDoc, AutEstado, TipoMerc, CodPais, Original_DocId, Original_CodInv, Original_DocEst, Original_Asunto, Original_CodEmpr, Original_CodIF, Original_CodEmis, Original_CodCalRi, Original_CodECalRi, Original_OFon, Original_Coment, Original_Just, Original_TipoOper, Original_DocBase, Original_MontoInv, Original_Precio, Original_Rendimiento, Original_Plazo, Original_PlazoFact, Original_Ingresos, Original_FechaDoc, Original_AutEstado, Original_TipoMerc, Original_CodPais, Original_DocId)
  2565. End Function
  2566. End Class
  2567. '''<summary>
  2568. '''TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  2569. '''</summary>
  2570. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  2571. Global.System.ComponentModel.ToolboxItem(true), _
  2572. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD"& _
  2573. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  2574. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")> _
  2575. Partial Public Class TableAdapterManager
  2576. Inherits Global.System.ComponentModel.Component
  2577. Private _updateOrder As UpdateOrderOption
  2578. Private _pIN0TableAdapter As PIN0TableAdapter
  2579. Private _backupDataSetBeforeUpdate As Boolean
  2580. Private _connection As Global.System.Data.IDbConnection
  2581. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2582. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2583. Public Property UpdateOrder() As UpdateOrderOption
  2584. Get
  2585. Return Me._updateOrder
  2586. End Get
  2587. Set
  2588. Me._updateOrder = value
  2589. End Set
  2590. End Property
  2591. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2592. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  2593. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  2594. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  2595. "a", "System.Drawing.Design.UITypeEditor")> _
  2596. Public Property PIN0TableAdapter() As PIN0TableAdapter
  2597. Get
  2598. Return Me._pIN0TableAdapter
  2599. End Get
  2600. Set
  2601. Me._pIN0TableAdapter = value
  2602. End Set
  2603. End Property
  2604. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2605. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2606. Public Property BackupDataSetBeforeUpdate() As Boolean
  2607. Get
  2608. Return Me._backupDataSetBeforeUpdate
  2609. End Get
  2610. Set
  2611. Me._backupDataSetBeforeUpdate = value
  2612. End Set
  2613. End Property
  2614. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2615. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  2616. Global.System.ComponentModel.Browsable(false)> _
  2617. Public Property Connection() As Global.System.Data.IDbConnection
  2618. Get
  2619. If (Not (Me._connection) Is Nothing) Then
  2620. Return Me._connection
  2621. End If
  2622. If ((Not (Me._pIN0TableAdapter) Is Nothing) _
  2623. AndAlso (Not (Me._pIN0TableAdapter.Connection) Is Nothing)) Then
  2624. Return Me._pIN0TableAdapter.Connection
  2625. End If
  2626. Return Nothing
  2627. End Get
  2628. Set
  2629. Me._connection = value
  2630. End Set
  2631. End Property
  2632. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2633. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  2634. Global.System.ComponentModel.Browsable(false)> _
  2635. Public ReadOnly Property TableAdapterInstanceCount() As Integer
  2636. Get
  2637. Dim count As Integer = 0
  2638. If (Not (Me._pIN0TableAdapter) Is Nothing) Then
  2639. count = (count + 1)
  2640. End If
  2641. Return count
  2642. End Get
  2643. End Property
  2644. '''<summary>
  2645. '''Update rows in top-down order.
  2646. '''</summary>
  2647. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2648. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2649. Private Function UpdateUpdatedRows(ByVal dataSet As InversionesDEVDataSet4, 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
  2650. Dim result As Integer = 0
  2651. If (Not (Me._pIN0TableAdapter) Is Nothing) Then
  2652. Dim updatedRows() As Global.System.Data.DataRow = dataSet.PIN0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  2653. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  2654. If ((Not (updatedRows) Is Nothing) _
  2655. AndAlso (0 < updatedRows.Length)) Then
  2656. result = (result + Me._pIN0TableAdapter.Update(updatedRows))
  2657. allChangedRows.AddRange(updatedRows)
  2658. End If
  2659. End If
  2660. Return result
  2661. End Function
  2662. '''<summary>
  2663. '''Insert rows in top-down order.
  2664. '''</summary>
  2665. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2666. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2667. Private Function UpdateInsertedRows(ByVal dataSet As InversionesDEVDataSet4, ByVal allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Integer
  2668. Dim result As Integer = 0
  2669. If (Not (Me._pIN0TableAdapter) Is Nothing) Then
  2670. Dim addedRows() As Global.System.Data.DataRow = dataSet.PIN0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  2671. If ((Not (addedRows) Is Nothing) _
  2672. AndAlso (0 < addedRows.Length)) Then
  2673. result = (result + Me._pIN0TableAdapter.Update(addedRows))
  2674. allAddedRows.AddRange(addedRows)
  2675. End If
  2676. End If
  2677. Return result
  2678. End Function
  2679. '''<summary>
  2680. '''Delete rows in bottom-up order.
  2681. '''</summary>
  2682. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2683. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2684. Private Function UpdateDeletedRows(ByVal dataSet As InversionesDEVDataSet4, ByVal allChangedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Integer
  2685. Dim result As Integer = 0
  2686. If (Not (Me._pIN0TableAdapter) Is Nothing) Then
  2687. Dim deletedRows() As Global.System.Data.DataRow = dataSet.PIN0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  2688. If ((Not (deletedRows) Is Nothing) _
  2689. AndAlso (0 < deletedRows.Length)) Then
  2690. result = (result + Me._pIN0TableAdapter.Update(deletedRows))
  2691. allChangedRows.AddRange(deletedRows)
  2692. End If
  2693. End If
  2694. Return result
  2695. End Function
  2696. '''<summary>
  2697. '''Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  2698. '''</summary>
  2699. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2700. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2701. 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()
  2702. If ((updatedRows Is Nothing) _
  2703. OrElse (updatedRows.Length < 1)) Then
  2704. Return updatedRows
  2705. End If
  2706. If ((allAddedRows Is Nothing) _
  2707. OrElse (allAddedRows.Count < 1)) Then
  2708. Return updatedRows
  2709. End If
  2710. Dim realUpdatedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
  2711. Dim i As Integer = 0
  2712. Do While (i < updatedRows.Length)
  2713. Dim row As Global.System.Data.DataRow = updatedRows(i)
  2714. If (allAddedRows.Contains(row) = false) Then
  2715. realUpdatedRows.Add(row)
  2716. End If
  2717. i = (i + 1)
  2718. Loop
  2719. Return realUpdatedRows.ToArray
  2720. End Function
  2721. '''<summary>
  2722. '''Update all changes to the dataset.
  2723. '''</summary>
  2724. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2725. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2726. Public Overridable Function UpdateAll(ByVal dataSet As InversionesDEVDataSet4) As Integer
  2727. If (dataSet Is Nothing) Then
  2728. Throw New Global.System.ArgumentNullException("dataSet")
  2729. End If
  2730. If (dataSet.HasChanges = false) Then
  2731. Return 0
  2732. End If
  2733. If ((Not (Me._pIN0TableAdapter) Is Nothing) _
  2734. AndAlso (Me.MatchTableAdapterConnection(Me._pIN0TableAdapter.Connection) = false)) Then
  2735. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  2736. "sma cadena de conexión.")
  2737. End If
  2738. Dim workConnection As Global.System.Data.IDbConnection = Me.Connection
  2739. If (workConnection Is Nothing) Then
  2740. Throw New Global.System.ApplicationException("TableAdapterManager no contiene información de conexión. Establezca cada propieda"& _
  2741. "d TableAdapterManager TableAdapter en una instancia TableAdapter válida.")
  2742. End If
  2743. Dim workConnOpened As Boolean = false
  2744. If ((workConnection.State And Global.System.Data.ConnectionState.Broken) _
  2745. = Global.System.Data.ConnectionState.Broken) Then
  2746. workConnection.Close
  2747. End If
  2748. If (workConnection.State = Global.System.Data.ConnectionState.Closed) Then
  2749. workConnection.Open
  2750. workConnOpened = true
  2751. End If
  2752. Dim workTransaction As Global.System.Data.IDbTransaction = workConnection.BeginTransaction
  2753. If (workTransaction Is Nothing) Then
  2754. Throw New Global.System.ApplicationException("La transacción no puede comenzar. La conexión de datos actual no es compatible co"& _
  2755. "n las transacciones o el estado actual no permite que comience la transacción.")
  2756. End If
  2757. Dim allChangedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
  2758. Dim allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
  2759. 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)()
  2760. 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)()
  2761. Dim result As Integer = 0
  2762. Dim backupDataSet As Global.System.Data.DataSet = Nothing
  2763. If Me.BackupDataSetBeforeUpdate Then
  2764. backupDataSet = New Global.System.Data.DataSet()
  2765. backupDataSet.Merge(dataSet)
  2766. End If
  2767. Try
  2768. '---- Prepare for update -----------
  2769. '
  2770. If (Not (Me._pIN0TableAdapter) Is Nothing) Then
  2771. revertConnections.Add(Me._pIN0TableAdapter, Me._pIN0TableAdapter.Connection)
  2772. Me._pIN0TableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  2773. Me._pIN0TableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  2774. If Me._pIN0TableAdapter.Adapter.AcceptChangesDuringUpdate Then
  2775. Me._pIN0TableAdapter.Adapter.AcceptChangesDuringUpdate = false
  2776. adaptersWithAcceptChangesDuringUpdate.Add(Me._pIN0TableAdapter.Adapter)
  2777. End If
  2778. End If
  2779. '
  2780. '---- Perform updates -----------
  2781. '
  2782. If (Me.UpdateOrder = UpdateOrderOption.UpdateInsertDelete) Then
  2783. result = (result + Me.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows))
  2784. result = (result + Me.UpdateInsertedRows(dataSet, allAddedRows))
  2785. Else
  2786. result = (result + Me.UpdateInsertedRows(dataSet, allAddedRows))
  2787. result = (result + Me.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows))
  2788. End If
  2789. result = (result + Me.UpdateDeletedRows(dataSet, allChangedRows))
  2790. '
  2791. '---- Commit updates -----------
  2792. '
  2793. workTransaction.Commit
  2794. If (0 < allAddedRows.Count) Then
  2795. Dim rows((allAddedRows.Count) - 1) As Global.System.Data.DataRow
  2796. allAddedRows.CopyTo(rows)
  2797. Dim i As Integer = 0
  2798. Do While (i < rows.Length)
  2799. Dim row As Global.System.Data.DataRow = rows(i)
  2800. row.AcceptChanges
  2801. i = (i + 1)
  2802. Loop
  2803. End If
  2804. If (0 < allChangedRows.Count) Then
  2805. Dim rows((allChangedRows.Count) - 1) As Global.System.Data.DataRow
  2806. allChangedRows.CopyTo(rows)
  2807. Dim i As Integer = 0
  2808. Do While (i < rows.Length)
  2809. Dim row As Global.System.Data.DataRow = rows(i)
  2810. row.AcceptChanges
  2811. i = (i + 1)
  2812. Loop
  2813. End If
  2814. Catch ex As Global.System.Exception
  2815. workTransaction.Rollback
  2816. '---- Restore the dataset -----------
  2817. If Me.BackupDataSetBeforeUpdate Then
  2818. Global.System.Diagnostics.Debug.Assert((Not (backupDataSet) Is Nothing))
  2819. dataSet.Clear
  2820. dataSet.Merge(backupDataSet)
  2821. Else
  2822. If (0 < allAddedRows.Count) Then
  2823. Dim rows((allAddedRows.Count) - 1) As Global.System.Data.DataRow
  2824. allAddedRows.CopyTo(rows)
  2825. Dim i As Integer = 0
  2826. Do While (i < rows.Length)
  2827. Dim row As Global.System.Data.DataRow = rows(i)
  2828. row.AcceptChanges
  2829. row.SetAdded
  2830. i = (i + 1)
  2831. Loop
  2832. End If
  2833. End If
  2834. Throw ex
  2835. Finally
  2836. If workConnOpened Then
  2837. workConnection.Close
  2838. End If
  2839. If (Not (Me._pIN0TableAdapter) Is Nothing) Then
  2840. Me._pIN0TableAdapter.Connection = CType(revertConnections(Me._pIN0TableAdapter),Global.System.Data.SqlClient.SqlConnection)
  2841. Me._pIN0TableAdapter.Transaction = Nothing
  2842. End If
  2843. If (0 < adaptersWithAcceptChangesDuringUpdate.Count) Then
  2844. Dim adapters((adaptersWithAcceptChangesDuringUpdate.Count) - 1) As Global.System.Data.Common.DataAdapter
  2845. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters)
  2846. Dim i As Integer = 0
  2847. Do While (i < adapters.Length)
  2848. Dim adapter As Global.System.Data.Common.DataAdapter = adapters(i)
  2849. adapter.AcceptChangesDuringUpdate = true
  2850. i = (i + 1)
  2851. Loop
  2852. End If
  2853. End Try
  2854. Return result
  2855. End Function
  2856. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2857. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2858. Protected Overridable Sub SortSelfReferenceRows(ByVal rows() As Global.System.Data.DataRow, ByVal relation As Global.System.Data.DataRelation, ByVal childFirst As Boolean)
  2859. Global.System.Array.Sort(Of Global.System.Data.DataRow)(rows, New SelfReferenceComparer(relation, childFirst))
  2860. End Sub
  2861. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2862. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2863. Protected Overridable Function MatchTableAdapterConnection(ByVal inputConnection As Global.System.Data.IDbConnection) As Boolean
  2864. If (Not (Me._connection) Is Nothing) Then
  2865. Return true
  2866. End If
  2867. If ((Me.Connection Is Nothing) _
  2868. OrElse (inputConnection Is Nothing)) Then
  2869. Return true
  2870. End If
  2871. If String.Equals(Me.Connection.ConnectionString, inputConnection.ConnectionString, Global.System.StringComparison.Ordinal) Then
  2872. Return true
  2873. End If
  2874. Return false
  2875. End Function
  2876. '''<summary>
  2877. '''Update Order Option
  2878. '''</summary>
  2879. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2880. Public Enum UpdateOrderOption
  2881. InsertUpdateDelete = 0
  2882. UpdateInsertDelete = 1
  2883. End Enum
  2884. '''<summary>
  2885. '''Used to sort self-referenced table's rows
  2886. '''</summary>
  2887. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2888. Private Class SelfReferenceComparer
  2889. Inherits Object
  2890. Implements Global.System.Collections.Generic.IComparer(Of Global.System.Data.DataRow)
  2891. Private _relation As Global.System.Data.DataRelation
  2892. Private _childFirst As Integer
  2893. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2894. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2895. Friend Sub New(ByVal relation As Global.System.Data.DataRelation, ByVal childFirst As Boolean)
  2896. MyBase.New
  2897. Me._relation = relation
  2898. If childFirst Then
  2899. Me._childFirst = -1
  2900. Else
  2901. Me._childFirst = 1
  2902. End If
  2903. End Sub
  2904. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2905. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2906. Private Function GetRoot(ByVal row As Global.System.Data.DataRow, ByRef distance As Integer) As Global.System.Data.DataRow
  2907. Global.System.Diagnostics.Debug.Assert((Not (row) Is Nothing))
  2908. Dim root As Global.System.Data.DataRow = row
  2909. distance = 0
  2910. 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)()
  2911. traversedRows(row) = row
  2912. Dim parent As Global.System.Data.DataRow = row.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.[Default])
  2913. Do While ((Not (parent) Is Nothing) _
  2914. AndAlso (traversedRows.ContainsKey(parent) = false))
  2915. distance = (distance + 1)
  2916. root = parent
  2917. traversedRows(parent) = parent
  2918. parent = parent.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.[Default])
  2919. Loop
  2920. If (distance = 0) Then
  2921. traversedRows.Clear
  2922. traversedRows(row) = row
  2923. parent = row.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.Original)
  2924. Do While ((Not (parent) Is Nothing) _
  2925. AndAlso (traversedRows.ContainsKey(parent) = false))
  2926. distance = (distance + 1)
  2927. root = parent
  2928. traversedRows(parent) = parent
  2929. parent = parent.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.Original)
  2930. Loop
  2931. End If
  2932. Return root
  2933. End Function
  2934. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2935. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2936. 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
  2937. If Object.ReferenceEquals(row1, row2) Then
  2938. Return 0
  2939. End If
  2940. If (row1 Is Nothing) Then
  2941. Return -1
  2942. End If
  2943. If (row2 Is Nothing) Then
  2944. Return 1
  2945. End If
  2946. Dim distance1 As Integer = 0
  2947. Dim root1 As Global.System.Data.DataRow = Me.GetRoot(row1, distance1)
  2948. Dim distance2 As Integer = 0
  2949. Dim root2 As Global.System.Data.DataRow = Me.GetRoot(row2, distance2)
  2950. If Object.ReferenceEquals(root1, root2) Then
  2951. Return (Me._childFirst * distance1.CompareTo(distance2))
  2952. Else
  2953. Global.System.Diagnostics.Debug.Assert(((Not (root1.Table) Is Nothing) _
  2954. AndAlso (Not (root2.Table) Is Nothing)))
  2955. If (root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2)) Then
  2956. Return -1
  2957. Else
  2958. Return 1
  2959. End If
  2960. End If
  2961. End Function
  2962. End Class
  2963. End Class
  2964. End Namespace