InversionesDataSet1.Designer.vb 1.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214
  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("InversionesDataSet1"), _
  20. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")> _
  21. Partial Public Class InversionesDataSet1
  22. Inherits Global.System.Data.DataSet
  23. Private tableECALRI As ECALRIDataTable
  24. Private tableEMIS As EMISDataTable
  25. Private tableEMPR As EMPRDataTable
  26. Private tableINFI As INFIDataTable
  27. Private tablePAIS As PAISDataTable
  28. Private tableSP_InventarioMaster As SP_InventarioMasterDataTable
  29. Private tableBAN0 As BAN0DataTable
  30. Private tableBAN1 As BAN1DataTable
  31. Private tableFPAG As FPAGDataTable
  32. Private tablePIN0 As PIN0DataTable
  33. Private tableCALRI As CALRIDataTable
  34. Private tableRPAG As RPAGDataTable
  35. Private tableBAN2 As BAN2DataTable
  36. Private tableOFON As OFONDataTable
  37. Private tableDEP0 As DEP0DataTable
  38. Private tableUSR0 As USR0DataTable
  39. Private _schemaSerializationMode As Global.System.Data.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
  40. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  41. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  42. Public Sub New()
  43. MyBase.New
  44. Me.BeginInit
  45. Me.InitClass
  46. Dim schemaChangedHandler As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
  47. AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
  48. AddHandler MyBase.Relations.CollectionChanged, schemaChangedHandler
  49. Me.EndInit
  50. End Sub
  51. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  52. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  53. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  54. MyBase.New(info, context, false)
  55. If (Me.IsBinarySerialized(info, context) = true) Then
  56. Me.InitVars(false)
  57. Dim schemaChangedHandler1 As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
  58. AddHandler Me.Tables.CollectionChanged, schemaChangedHandler1
  59. AddHandler Me.Relations.CollectionChanged, schemaChangedHandler1
  60. Return
  61. End If
  62. Dim strSchema As String = CType(info.GetValue("XmlSchema", GetType(String)),String)
  63. If (Me.DetermineSchemaSerializationMode(info, context) = Global.System.Data.SchemaSerializationMode.IncludeSchema) Then
  64. Dim ds As Global.System.Data.DataSet = New Global.System.Data.DataSet()
  65. ds.ReadXmlSchema(New Global.System.Xml.XmlTextReader(New Global.System.IO.StringReader(strSchema)))
  66. If (Not (ds.Tables("ECALRI")) Is Nothing) Then
  67. MyBase.Tables.Add(New ECALRIDataTable(ds.Tables("ECALRI")))
  68. End If
  69. If (Not (ds.Tables("EMIS")) Is Nothing) Then
  70. MyBase.Tables.Add(New EMISDataTable(ds.Tables("EMIS")))
  71. End If
  72. If (Not (ds.Tables("EMPR")) Is Nothing) Then
  73. MyBase.Tables.Add(New EMPRDataTable(ds.Tables("EMPR")))
  74. End If
  75. If (Not (ds.Tables("INFI")) Is Nothing) Then
  76. MyBase.Tables.Add(New INFIDataTable(ds.Tables("INFI")))
  77. End If
  78. If (Not (ds.Tables("PAIS")) Is Nothing) Then
  79. MyBase.Tables.Add(New PAISDataTable(ds.Tables("PAIS")))
  80. End If
  81. If (Not (ds.Tables("SP_InventarioMaster")) Is Nothing) Then
  82. MyBase.Tables.Add(New SP_InventarioMasterDataTable(ds.Tables("SP_InventarioMaster")))
  83. End If
  84. If (Not (ds.Tables("BAN0")) Is Nothing) Then
  85. MyBase.Tables.Add(New BAN0DataTable(ds.Tables("BAN0")))
  86. End If
  87. If (Not (ds.Tables("BAN1")) Is Nothing) Then
  88. MyBase.Tables.Add(New BAN1DataTable(ds.Tables("BAN1")))
  89. End If
  90. If (Not (ds.Tables("FPAG")) Is Nothing) Then
  91. MyBase.Tables.Add(New FPAGDataTable(ds.Tables("FPAG")))
  92. End If
  93. If (Not (ds.Tables("PIN0")) Is Nothing) Then
  94. MyBase.Tables.Add(New PIN0DataTable(ds.Tables("PIN0")))
  95. End If
  96. If (Not (ds.Tables("CALRI")) Is Nothing) Then
  97. MyBase.Tables.Add(New CALRIDataTable(ds.Tables("CALRI")))
  98. End If
  99. If (Not (ds.Tables("RPAG")) Is Nothing) Then
  100. MyBase.Tables.Add(New RPAGDataTable(ds.Tables("RPAG")))
  101. End If
  102. If (Not (ds.Tables("BAN2")) Is Nothing) Then
  103. MyBase.Tables.Add(New BAN2DataTable(ds.Tables("BAN2")))
  104. End If
  105. If (Not (ds.Tables("OFON")) Is Nothing) Then
  106. MyBase.Tables.Add(New OFONDataTable(ds.Tables("OFON")))
  107. End If
  108. If (Not (ds.Tables("DEP0")) Is Nothing) Then
  109. MyBase.Tables.Add(New DEP0DataTable(ds.Tables("DEP0")))
  110. End If
  111. If (Not (ds.Tables("USR0")) Is Nothing) Then
  112. MyBase.Tables.Add(New USR0DataTable(ds.Tables("USR0")))
  113. End If
  114. Me.DataSetName = ds.DataSetName
  115. Me.Prefix = ds.Prefix
  116. Me.Namespace = ds.Namespace
  117. Me.Locale = ds.Locale
  118. Me.CaseSensitive = ds.CaseSensitive
  119. Me.EnforceConstraints = ds.EnforceConstraints
  120. Me.Merge(ds, false, Global.System.Data.MissingSchemaAction.Add)
  121. Me.InitVars
  122. Else
  123. Me.ReadXmlSchema(New Global.System.Xml.XmlTextReader(New Global.System.IO.StringReader(strSchema)))
  124. End If
  125. Me.GetSerializationData(info, context)
  126. Dim schemaChangedHandler As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
  127. AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
  128. AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
  129. End Sub
  130. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  131. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  132. Global.System.ComponentModel.Browsable(false), _
  133. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  134. Public ReadOnly Property ECALRI() As ECALRIDataTable
  135. Get
  136. Return Me.tableECALRI
  137. End Get
  138. End Property
  139. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  140. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  141. Global.System.ComponentModel.Browsable(false), _
  142. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  143. Public ReadOnly Property EMIS() As EMISDataTable
  144. Get
  145. Return Me.tableEMIS
  146. End Get
  147. End Property
  148. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  149. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  150. Global.System.ComponentModel.Browsable(false), _
  151. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  152. Public ReadOnly Property EMPR() As EMPRDataTable
  153. Get
  154. Return Me.tableEMPR
  155. End Get
  156. End Property
  157. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  158. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  159. Global.System.ComponentModel.Browsable(false), _
  160. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  161. Public ReadOnly Property INFI() As INFIDataTable
  162. Get
  163. Return Me.tableINFI
  164. End Get
  165. End Property
  166. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  167. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  168. Global.System.ComponentModel.Browsable(false), _
  169. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  170. Public ReadOnly Property PAIS() As PAISDataTable
  171. Get
  172. Return Me.tablePAIS
  173. End Get
  174. End Property
  175. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  176. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  177. Global.System.ComponentModel.Browsable(false), _
  178. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  179. Public ReadOnly Property SP_InventarioMaster() As SP_InventarioMasterDataTable
  180. Get
  181. Return Me.tableSP_InventarioMaster
  182. End Get
  183. End Property
  184. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  185. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  186. Global.System.ComponentModel.Browsable(false), _
  187. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  188. Public ReadOnly Property BAN0() As BAN0DataTable
  189. Get
  190. Return Me.tableBAN0
  191. End Get
  192. End Property
  193. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  194. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  195. Global.System.ComponentModel.Browsable(false), _
  196. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  197. Public ReadOnly Property BAN1() As BAN1DataTable
  198. Get
  199. Return Me.tableBAN1
  200. End Get
  201. End Property
  202. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  203. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  204. Global.System.ComponentModel.Browsable(false), _
  205. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  206. Public ReadOnly Property FPAG() As FPAGDataTable
  207. Get
  208. Return Me.tableFPAG
  209. End Get
  210. End Property
  211. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  212. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  213. Global.System.ComponentModel.Browsable(false), _
  214. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  215. Public ReadOnly Property PIN0() As PIN0DataTable
  216. Get
  217. Return Me.tablePIN0
  218. End Get
  219. End Property
  220. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  221. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  222. Global.System.ComponentModel.Browsable(false), _
  223. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  224. Public ReadOnly Property CALRI() As CALRIDataTable
  225. Get
  226. Return Me.tableCALRI
  227. End Get
  228. End Property
  229. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  230. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  231. Global.System.ComponentModel.Browsable(false), _
  232. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  233. Public ReadOnly Property RPAG() As RPAGDataTable
  234. Get
  235. Return Me.tableRPAG
  236. End Get
  237. End Property
  238. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  239. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  240. Global.System.ComponentModel.Browsable(false), _
  241. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  242. Public ReadOnly Property BAN2() As BAN2DataTable
  243. Get
  244. Return Me.tableBAN2
  245. End Get
  246. End Property
  247. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  248. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  249. Global.System.ComponentModel.Browsable(false), _
  250. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  251. Public ReadOnly Property OFON() As OFONDataTable
  252. Get
  253. Return Me.tableOFON
  254. End Get
  255. End Property
  256. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  257. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  258. Global.System.ComponentModel.Browsable(false), _
  259. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  260. Public ReadOnly Property DEP0() As DEP0DataTable
  261. Get
  262. Return Me.tableDEP0
  263. End Get
  264. End Property
  265. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  266. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  267. Global.System.ComponentModel.Browsable(false), _
  268. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  269. Public ReadOnly Property USR0() As USR0DataTable
  270. Get
  271. Return Me.tableUSR0
  272. End Get
  273. End Property
  274. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  275. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  276. Global.System.ComponentModel.BrowsableAttribute(true), _
  277. Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Visible)> _
  278. Public Overrides Property SchemaSerializationMode() As Global.System.Data.SchemaSerializationMode
  279. Get
  280. Return Me._schemaSerializationMode
  281. End Get
  282. Set
  283. Me._schemaSerializationMode = value
  284. End Set
  285. End Property
  286. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  287. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  288. Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  289. Public Shadows ReadOnly Property Tables() As Global.System.Data.DataTableCollection
  290. Get
  291. Return MyBase.Tables
  292. End Get
  293. End Property
  294. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  295. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  296. Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  297. Public Shadows ReadOnly Property Relations() As Global.System.Data.DataRelationCollection
  298. Get
  299. Return MyBase.Relations
  300. End Get
  301. End Property
  302. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  303. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  304. Protected Overrides Sub InitializeDerivedDataSet()
  305. Me.BeginInit
  306. Me.InitClass
  307. Me.EndInit
  308. End Sub
  309. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  310. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  311. Public Overrides Function Clone() As Global.System.Data.DataSet
  312. Dim cln As InversionesDataSet1 = CType(MyBase.Clone,InversionesDataSet1)
  313. cln.InitVars
  314. cln.SchemaSerializationMode = Me.SchemaSerializationMode
  315. Return cln
  316. End Function
  317. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  318. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  319. Protected Overrides Function ShouldSerializeTables() As Boolean
  320. Return false
  321. End Function
  322. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  323. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  324. Protected Overrides Function ShouldSerializeRelations() As Boolean
  325. Return false
  326. End Function
  327. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  328. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  329. Protected Overrides Sub ReadXmlSerializable(ByVal reader As Global.System.Xml.XmlReader)
  330. If (Me.DetermineSchemaSerializationMode(reader) = Global.System.Data.SchemaSerializationMode.IncludeSchema) Then
  331. Me.Reset
  332. Dim ds As Global.System.Data.DataSet = New Global.System.Data.DataSet()
  333. ds.ReadXml(reader)
  334. If (Not (ds.Tables("ECALRI")) Is Nothing) Then
  335. MyBase.Tables.Add(New ECALRIDataTable(ds.Tables("ECALRI")))
  336. End If
  337. If (Not (ds.Tables("EMIS")) Is Nothing) Then
  338. MyBase.Tables.Add(New EMISDataTable(ds.Tables("EMIS")))
  339. End If
  340. If (Not (ds.Tables("EMPR")) Is Nothing) Then
  341. MyBase.Tables.Add(New EMPRDataTable(ds.Tables("EMPR")))
  342. End If
  343. If (Not (ds.Tables("INFI")) Is Nothing) Then
  344. MyBase.Tables.Add(New INFIDataTable(ds.Tables("INFI")))
  345. End If
  346. If (Not (ds.Tables("PAIS")) Is Nothing) Then
  347. MyBase.Tables.Add(New PAISDataTable(ds.Tables("PAIS")))
  348. End If
  349. If (Not (ds.Tables("SP_InventarioMaster")) Is Nothing) Then
  350. MyBase.Tables.Add(New SP_InventarioMasterDataTable(ds.Tables("SP_InventarioMaster")))
  351. End If
  352. If (Not (ds.Tables("BAN0")) Is Nothing) Then
  353. MyBase.Tables.Add(New BAN0DataTable(ds.Tables("BAN0")))
  354. End If
  355. If (Not (ds.Tables("BAN1")) Is Nothing) Then
  356. MyBase.Tables.Add(New BAN1DataTable(ds.Tables("BAN1")))
  357. End If
  358. If (Not (ds.Tables("FPAG")) Is Nothing) Then
  359. MyBase.Tables.Add(New FPAGDataTable(ds.Tables("FPAG")))
  360. End If
  361. If (Not (ds.Tables("PIN0")) Is Nothing) Then
  362. MyBase.Tables.Add(New PIN0DataTable(ds.Tables("PIN0")))
  363. End If
  364. If (Not (ds.Tables("CALRI")) Is Nothing) Then
  365. MyBase.Tables.Add(New CALRIDataTable(ds.Tables("CALRI")))
  366. End If
  367. If (Not (ds.Tables("RPAG")) Is Nothing) Then
  368. MyBase.Tables.Add(New RPAGDataTable(ds.Tables("RPAG")))
  369. End If
  370. If (Not (ds.Tables("BAN2")) Is Nothing) Then
  371. MyBase.Tables.Add(New BAN2DataTable(ds.Tables("BAN2")))
  372. End If
  373. If (Not (ds.Tables("OFON")) Is Nothing) Then
  374. MyBase.Tables.Add(New OFONDataTable(ds.Tables("OFON")))
  375. End If
  376. If (Not (ds.Tables("DEP0")) Is Nothing) Then
  377. MyBase.Tables.Add(New DEP0DataTable(ds.Tables("DEP0")))
  378. End If
  379. If (Not (ds.Tables("USR0")) Is Nothing) Then
  380. MyBase.Tables.Add(New USR0DataTable(ds.Tables("USR0")))
  381. End If
  382. Me.DataSetName = ds.DataSetName
  383. Me.Prefix = ds.Prefix
  384. Me.Namespace = ds.Namespace
  385. Me.Locale = ds.Locale
  386. Me.CaseSensitive = ds.CaseSensitive
  387. Me.EnforceConstraints = ds.EnforceConstraints
  388. Me.Merge(ds, false, Global.System.Data.MissingSchemaAction.Add)
  389. Me.InitVars
  390. Else
  391. Me.ReadXml(reader)
  392. Me.InitVars
  393. End If
  394. End Sub
  395. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  396. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  397. Protected Overrides Function GetSchemaSerializable() As Global.System.Xml.Schema.XmlSchema
  398. Dim stream As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  399. Me.WriteXmlSchema(New Global.System.Xml.XmlTextWriter(stream, Nothing))
  400. stream.Position = 0
  401. Return Global.System.Xml.Schema.XmlSchema.Read(New Global.System.Xml.XmlTextReader(stream), Nothing)
  402. End Function
  403. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  404. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  405. Friend Overloads Sub InitVars()
  406. Me.InitVars(true)
  407. End Sub
  408. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  409. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  410. Friend Overloads Sub InitVars(ByVal initTable As Boolean)
  411. Me.tableECALRI = CType(MyBase.Tables("ECALRI"),ECALRIDataTable)
  412. If (initTable = true) Then
  413. If (Not (Me.tableECALRI) Is Nothing) Then
  414. Me.tableECALRI.InitVars
  415. End If
  416. End If
  417. Me.tableEMIS = CType(MyBase.Tables("EMIS"),EMISDataTable)
  418. If (initTable = true) Then
  419. If (Not (Me.tableEMIS) Is Nothing) Then
  420. Me.tableEMIS.InitVars
  421. End If
  422. End If
  423. Me.tableEMPR = CType(MyBase.Tables("EMPR"),EMPRDataTable)
  424. If (initTable = true) Then
  425. If (Not (Me.tableEMPR) Is Nothing) Then
  426. Me.tableEMPR.InitVars
  427. End If
  428. End If
  429. Me.tableINFI = CType(MyBase.Tables("INFI"),INFIDataTable)
  430. If (initTable = true) Then
  431. If (Not (Me.tableINFI) Is Nothing) Then
  432. Me.tableINFI.InitVars
  433. End If
  434. End If
  435. Me.tablePAIS = CType(MyBase.Tables("PAIS"),PAISDataTable)
  436. If (initTable = true) Then
  437. If (Not (Me.tablePAIS) Is Nothing) Then
  438. Me.tablePAIS.InitVars
  439. End If
  440. End If
  441. Me.tableSP_InventarioMaster = CType(MyBase.Tables("SP_InventarioMaster"),SP_InventarioMasterDataTable)
  442. If (initTable = true) Then
  443. If (Not (Me.tableSP_InventarioMaster) Is Nothing) Then
  444. Me.tableSP_InventarioMaster.InitVars
  445. End If
  446. End If
  447. Me.tableBAN0 = CType(MyBase.Tables("BAN0"),BAN0DataTable)
  448. If (initTable = true) Then
  449. If (Not (Me.tableBAN0) Is Nothing) Then
  450. Me.tableBAN0.InitVars
  451. End If
  452. End If
  453. Me.tableBAN1 = CType(MyBase.Tables("BAN1"),BAN1DataTable)
  454. If (initTable = true) Then
  455. If (Not (Me.tableBAN1) Is Nothing) Then
  456. Me.tableBAN1.InitVars
  457. End If
  458. End If
  459. Me.tableFPAG = CType(MyBase.Tables("FPAG"),FPAGDataTable)
  460. If (initTable = true) Then
  461. If (Not (Me.tableFPAG) Is Nothing) Then
  462. Me.tableFPAG.InitVars
  463. End If
  464. End If
  465. Me.tablePIN0 = CType(MyBase.Tables("PIN0"),PIN0DataTable)
  466. If (initTable = true) Then
  467. If (Not (Me.tablePIN0) Is Nothing) Then
  468. Me.tablePIN0.InitVars
  469. End If
  470. End If
  471. Me.tableCALRI = CType(MyBase.Tables("CALRI"),CALRIDataTable)
  472. If (initTable = true) Then
  473. If (Not (Me.tableCALRI) Is Nothing) Then
  474. Me.tableCALRI.InitVars
  475. End If
  476. End If
  477. Me.tableRPAG = CType(MyBase.Tables("RPAG"),RPAGDataTable)
  478. If (initTable = true) Then
  479. If (Not (Me.tableRPAG) Is Nothing) Then
  480. Me.tableRPAG.InitVars
  481. End If
  482. End If
  483. Me.tableBAN2 = CType(MyBase.Tables("BAN2"),BAN2DataTable)
  484. If (initTable = true) Then
  485. If (Not (Me.tableBAN2) Is Nothing) Then
  486. Me.tableBAN2.InitVars
  487. End If
  488. End If
  489. Me.tableOFON = CType(MyBase.Tables("OFON"),OFONDataTable)
  490. If (initTable = true) Then
  491. If (Not (Me.tableOFON) Is Nothing) Then
  492. Me.tableOFON.InitVars
  493. End If
  494. End If
  495. Me.tableDEP0 = CType(MyBase.Tables("DEP0"),DEP0DataTable)
  496. If (initTable = true) Then
  497. If (Not (Me.tableDEP0) Is Nothing) Then
  498. Me.tableDEP0.InitVars
  499. End If
  500. End If
  501. Me.tableUSR0 = CType(MyBase.Tables("USR0"),USR0DataTable)
  502. If (initTable = true) Then
  503. If (Not (Me.tableUSR0) Is Nothing) Then
  504. Me.tableUSR0.InitVars
  505. End If
  506. End If
  507. End Sub
  508. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  509. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  510. Private Sub InitClass()
  511. Me.DataSetName = "InversionesDataSet1"
  512. Me.Prefix = ""
  513. Me.Namespace = "http://tempuri.org/InversionesDataSet1.xsd"
  514. Me.EnforceConstraints = true
  515. Me.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
  516. Me.tableECALRI = New ECALRIDataTable()
  517. MyBase.Tables.Add(Me.tableECALRI)
  518. Me.tableEMIS = New EMISDataTable()
  519. MyBase.Tables.Add(Me.tableEMIS)
  520. Me.tableEMPR = New EMPRDataTable()
  521. MyBase.Tables.Add(Me.tableEMPR)
  522. Me.tableINFI = New INFIDataTable()
  523. MyBase.Tables.Add(Me.tableINFI)
  524. Me.tablePAIS = New PAISDataTable()
  525. MyBase.Tables.Add(Me.tablePAIS)
  526. Me.tableSP_InventarioMaster = New SP_InventarioMasterDataTable()
  527. MyBase.Tables.Add(Me.tableSP_InventarioMaster)
  528. Me.tableBAN0 = New BAN0DataTable()
  529. MyBase.Tables.Add(Me.tableBAN0)
  530. Me.tableBAN1 = New BAN1DataTable()
  531. MyBase.Tables.Add(Me.tableBAN1)
  532. Me.tableFPAG = New FPAGDataTable()
  533. MyBase.Tables.Add(Me.tableFPAG)
  534. Me.tablePIN0 = New PIN0DataTable()
  535. MyBase.Tables.Add(Me.tablePIN0)
  536. Me.tableCALRI = New CALRIDataTable()
  537. MyBase.Tables.Add(Me.tableCALRI)
  538. Me.tableRPAG = New RPAGDataTable()
  539. MyBase.Tables.Add(Me.tableRPAG)
  540. Me.tableBAN2 = New BAN2DataTable()
  541. MyBase.Tables.Add(Me.tableBAN2)
  542. Me.tableOFON = New OFONDataTable()
  543. MyBase.Tables.Add(Me.tableOFON)
  544. Me.tableDEP0 = New DEP0DataTable()
  545. MyBase.Tables.Add(Me.tableDEP0)
  546. Me.tableUSR0 = New USR0DataTable()
  547. MyBase.Tables.Add(Me.tableUSR0)
  548. End Sub
  549. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  550. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  551. Private Function ShouldSerializeECALRI() As Boolean
  552. Return false
  553. End Function
  554. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  555. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  556. Private Function ShouldSerializeEMIS() As Boolean
  557. Return false
  558. End Function
  559. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  560. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  561. Private Function ShouldSerializeEMPR() As Boolean
  562. Return false
  563. End Function
  564. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  565. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  566. Private Function ShouldSerializeINFI() As Boolean
  567. Return false
  568. End Function
  569. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  570. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  571. Private Function ShouldSerializePAIS() As Boolean
  572. Return false
  573. End Function
  574. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  575. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  576. Private Function ShouldSerializeSP_InventarioMaster() As Boolean
  577. Return false
  578. End Function
  579. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  580. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  581. Private Function ShouldSerializeBAN0() As Boolean
  582. Return false
  583. End Function
  584. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  585. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  586. Private Function ShouldSerializeBAN1() As Boolean
  587. Return false
  588. End Function
  589. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  590. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  591. Private Function ShouldSerializeFPAG() As Boolean
  592. Return false
  593. End Function
  594. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  595. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  596. Private Function ShouldSerializePIN0() As Boolean
  597. Return false
  598. End Function
  599. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  600. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  601. Private Function ShouldSerializeCALRI() As Boolean
  602. Return false
  603. End Function
  604. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  605. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  606. Private Function ShouldSerializeRPAG() As Boolean
  607. Return false
  608. End Function
  609. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  610. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  611. Private Function ShouldSerializeBAN2() As Boolean
  612. Return false
  613. End Function
  614. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  615. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  616. Private Function ShouldSerializeOFON() As Boolean
  617. Return false
  618. End Function
  619. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  620. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  621. Private Function ShouldSerializeDEP0() As Boolean
  622. Return false
  623. End Function
  624. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  625. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  626. Private Function ShouldSerializeUSR0() As Boolean
  627. Return false
  628. End Function
  629. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  630. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  631. Private Sub SchemaChanged(ByVal sender As Object, ByVal e As Global.System.ComponentModel.CollectionChangeEventArgs)
  632. If (e.Action = Global.System.ComponentModel.CollectionChangeAction.Remove) Then
  633. Me.InitVars
  634. End If
  635. End Sub
  636. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  637. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  638. Public Shared Function GetTypedDataSetSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  639. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  640. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  641. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  642. Dim any As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  643. any.Namespace = ds.Namespace
  644. sequence.Items.Add(any)
  645. type.Particle = sequence
  646. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  647. If xs.Contains(dsSchema.TargetNamespace) Then
  648. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  649. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  650. Try
  651. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  652. dsSchema.Write(s1)
  653. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  654. Do While schemas.MoveNext
  655. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  656. s2.SetLength(0)
  657. schema.Write(s2)
  658. If (s1.Length = s2.Length) Then
  659. s1.Position = 0
  660. s2.Position = 0
  661. Do While ((s1.Position <> s1.Length) _
  662. AndAlso (s1.ReadByte = s2.ReadByte))
  663. Loop
  664. If (s1.Position = s1.Length) Then
  665. Return type
  666. End If
  667. End If
  668. Loop
  669. Finally
  670. If (Not (s1) Is Nothing) Then
  671. s1.Close
  672. End If
  673. If (Not (s2) Is Nothing) Then
  674. s2.Close
  675. End If
  676. End Try
  677. End If
  678. xs.Add(dsSchema)
  679. Return type
  680. End Function
  681. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  682. Public Delegate Sub ECALRIRowChangeEventHandler(ByVal sender As Object, ByVal e As ECALRIRowChangeEvent)
  683. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  684. Public Delegate Sub EMISRowChangeEventHandler(ByVal sender As Object, ByVal e As EMISRowChangeEvent)
  685. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  686. Public Delegate Sub EMPRRowChangeEventHandler(ByVal sender As Object, ByVal e As EMPRRowChangeEvent)
  687. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  688. Public Delegate Sub INFIRowChangeEventHandler(ByVal sender As Object, ByVal e As INFIRowChangeEvent)
  689. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  690. Public Delegate Sub PAISRowChangeEventHandler(ByVal sender As Object, ByVal e As PAISRowChangeEvent)
  691. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  692. Public Delegate Sub SP_InventarioMasterRowChangeEventHandler(ByVal sender As Object, ByVal e As SP_InventarioMasterRowChangeEvent)
  693. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  694. Public Delegate Sub BAN0RowChangeEventHandler(ByVal sender As Object, ByVal e As BAN0RowChangeEvent)
  695. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  696. Public Delegate Sub BAN1RowChangeEventHandler(ByVal sender As Object, ByVal e As BAN1RowChangeEvent)
  697. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  698. Public Delegate Sub FPAGRowChangeEventHandler(ByVal sender As Object, ByVal e As FPAGRowChangeEvent)
  699. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  700. Public Delegate Sub PIN0RowChangeEventHandler(ByVal sender As Object, ByVal e As PIN0RowChangeEvent)
  701. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  702. Public Delegate Sub CALRIRowChangeEventHandler(ByVal sender As Object, ByVal e As CALRIRowChangeEvent)
  703. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  704. Public Delegate Sub RPAGRowChangeEventHandler(ByVal sender As Object, ByVal e As RPAGRowChangeEvent)
  705. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  706. Public Delegate Sub BAN2RowChangeEventHandler(ByVal sender As Object, ByVal e As BAN2RowChangeEvent)
  707. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  708. Public Delegate Sub OFONRowChangeEventHandler(ByVal sender As Object, ByVal e As OFONRowChangeEvent)
  709. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  710. Public Delegate Sub DEP0RowChangeEventHandler(ByVal sender As Object, ByVal e As DEP0RowChangeEvent)
  711. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  712. Public Delegate Sub USR0RowChangeEventHandler(ByVal sender As Object, ByVal e As USR0RowChangeEvent)
  713. '''<summary>
  714. '''Represents the strongly named DataTable class.
  715. '''</summary>
  716. <Global.System.Serializable(), _
  717. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  718. Partial Public Class ECALRIDataTable
  719. Inherits Global.System.Data.TypedTableBase(Of ECALRIRow)
  720. Private columnCodECalRi As Global.System.Data.DataColumn
  721. Private columnDescrip As Global.System.Data.DataColumn
  722. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  723. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  724. Public Sub New()
  725. MyBase.New
  726. Me.TableName = "ECALRI"
  727. Me.BeginInit
  728. Me.InitClass
  729. Me.EndInit
  730. End Sub
  731. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  732. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  733. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  734. MyBase.New
  735. Me.TableName = table.TableName
  736. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  737. Me.CaseSensitive = table.CaseSensitive
  738. End If
  739. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  740. Me.Locale = table.Locale
  741. End If
  742. If (table.Namespace <> table.DataSet.Namespace) Then
  743. Me.Namespace = table.Namespace
  744. End If
  745. Me.Prefix = table.Prefix
  746. Me.MinimumCapacity = table.MinimumCapacity
  747. End Sub
  748. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  749. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  750. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  751. MyBase.New(info, context)
  752. Me.InitVars
  753. End Sub
  754. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  755. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  756. Public ReadOnly Property CodECalRiColumn() As Global.System.Data.DataColumn
  757. Get
  758. Return Me.columnCodECalRi
  759. End Get
  760. End Property
  761. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  762. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  763. Public ReadOnly Property DescripColumn() As Global.System.Data.DataColumn
  764. Get
  765. Return Me.columnDescrip
  766. End Get
  767. End Property
  768. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  769. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  770. Global.System.ComponentModel.Browsable(false)> _
  771. Public ReadOnly Property Count() As Integer
  772. Get
  773. Return Me.Rows.Count
  774. End Get
  775. End Property
  776. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  777. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  778. Public Default ReadOnly Property Item(ByVal index As Integer) As ECALRIRow
  779. Get
  780. Return CType(Me.Rows(index),ECALRIRow)
  781. End Get
  782. End Property
  783. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  784. Public Event ECALRIRowChanging As ECALRIRowChangeEventHandler
  785. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  786. Public Event ECALRIRowChanged As ECALRIRowChangeEventHandler
  787. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  788. Public Event ECALRIRowDeleting As ECALRIRowChangeEventHandler
  789. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  790. Public Event ECALRIRowDeleted As ECALRIRowChangeEventHandler
  791. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  792. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  793. Public Overloads Sub AddECALRIRow(ByVal row As ECALRIRow)
  794. Me.Rows.Add(row)
  795. End Sub
  796. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  797. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  798. Public Overloads Function AddECALRIRow(ByVal CodECalRi As String, ByVal Descrip As String) As ECALRIRow
  799. Dim rowECALRIRow As ECALRIRow = CType(Me.NewRow,ECALRIRow)
  800. Dim columnValuesArray() As Object = New Object() {CodECalRi, Descrip}
  801. rowECALRIRow.ItemArray = columnValuesArray
  802. Me.Rows.Add(rowECALRIRow)
  803. Return rowECALRIRow
  804. End Function
  805. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  806. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  807. Public Function FindByCodECalRi(ByVal CodECalRi As String) As ECALRIRow
  808. Return CType(Me.Rows.Find(New Object() {CodECalRi}),ECALRIRow)
  809. End Function
  810. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  811. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  812. Public Overrides Function Clone() As Global.System.Data.DataTable
  813. Dim cln As ECALRIDataTable = CType(MyBase.Clone,ECALRIDataTable)
  814. cln.InitVars
  815. Return cln
  816. End Function
  817. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  818. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  819. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  820. Return New ECALRIDataTable()
  821. End Function
  822. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  823. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  824. Friend Sub InitVars()
  825. Me.columnCodECalRi = MyBase.Columns("CodECalRi")
  826. Me.columnDescrip = MyBase.Columns("Descrip")
  827. End Sub
  828. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  829. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  830. Private Sub InitClass()
  831. Me.columnCodECalRi = New Global.System.Data.DataColumn("CodECalRi", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  832. MyBase.Columns.Add(Me.columnCodECalRi)
  833. Me.columnDescrip = New Global.System.Data.DataColumn("Descrip", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  834. MyBase.Columns.Add(Me.columnDescrip)
  835. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodECalRi}, true))
  836. Me.columnCodECalRi.AllowDBNull = false
  837. Me.columnCodECalRi.Unique = true
  838. Me.columnCodECalRi.MaxLength = 8
  839. Me.columnDescrip.MaxLength = 100
  840. End Sub
  841. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  842. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  843. Public Function NewECALRIRow() As ECALRIRow
  844. Return CType(Me.NewRow,ECALRIRow)
  845. End Function
  846. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  847. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  848. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  849. Return New ECALRIRow(builder)
  850. End Function
  851. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  852. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  853. Protected Overrides Function GetRowType() As Global.System.Type
  854. Return GetType(ECALRIRow)
  855. End Function
  856. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  857. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  858. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  859. MyBase.OnRowChanged(e)
  860. If (Not (Me.ECALRIRowChangedEvent) Is Nothing) Then
  861. RaiseEvent ECALRIRowChanged(Me, New ECALRIRowChangeEvent(CType(e.Row,ECALRIRow), e.Action))
  862. End If
  863. End Sub
  864. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  865. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  866. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  867. MyBase.OnRowChanging(e)
  868. If (Not (Me.ECALRIRowChangingEvent) Is Nothing) Then
  869. RaiseEvent ECALRIRowChanging(Me, New ECALRIRowChangeEvent(CType(e.Row,ECALRIRow), e.Action))
  870. End If
  871. End Sub
  872. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  873. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  874. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  875. MyBase.OnRowDeleted(e)
  876. If (Not (Me.ECALRIRowDeletedEvent) Is Nothing) Then
  877. RaiseEvent ECALRIRowDeleted(Me, New ECALRIRowChangeEvent(CType(e.Row,ECALRIRow), e.Action))
  878. End If
  879. End Sub
  880. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  881. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  882. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  883. MyBase.OnRowDeleting(e)
  884. If (Not (Me.ECALRIRowDeletingEvent) Is Nothing) Then
  885. RaiseEvent ECALRIRowDeleting(Me, New ECALRIRowChangeEvent(CType(e.Row,ECALRIRow), e.Action))
  886. End If
  887. End Sub
  888. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  889. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  890. Public Sub RemoveECALRIRow(ByVal row As ECALRIRow)
  891. Me.Rows.Remove(row)
  892. End Sub
  893. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  894. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  895. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  896. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  897. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  898. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  899. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  900. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  901. any1.MinOccurs = New Decimal(0)
  902. any1.MaxOccurs = Decimal.MaxValue
  903. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  904. sequence.Items.Add(any1)
  905. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  906. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  907. any2.MinOccurs = New Decimal(1)
  908. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  909. sequence.Items.Add(any2)
  910. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  911. attribute1.Name = "namespace"
  912. attribute1.FixedValue = ds.Namespace
  913. type.Attributes.Add(attribute1)
  914. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  915. attribute2.Name = "tableTypeName"
  916. attribute2.FixedValue = "ECALRIDataTable"
  917. type.Attributes.Add(attribute2)
  918. type.Particle = sequence
  919. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  920. If xs.Contains(dsSchema.TargetNamespace) Then
  921. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  922. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  923. Try
  924. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  925. dsSchema.Write(s1)
  926. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  927. Do While schemas.MoveNext
  928. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  929. s2.SetLength(0)
  930. schema.Write(s2)
  931. If (s1.Length = s2.Length) Then
  932. s1.Position = 0
  933. s2.Position = 0
  934. Do While ((s1.Position <> s1.Length) _
  935. AndAlso (s1.ReadByte = s2.ReadByte))
  936. Loop
  937. If (s1.Position = s1.Length) Then
  938. Return type
  939. End If
  940. End If
  941. Loop
  942. Finally
  943. If (Not (s1) Is Nothing) Then
  944. s1.Close
  945. End If
  946. If (Not (s2) Is Nothing) Then
  947. s2.Close
  948. End If
  949. End Try
  950. End If
  951. xs.Add(dsSchema)
  952. Return type
  953. End Function
  954. End Class
  955. '''<summary>
  956. '''Represents the strongly named DataTable class.
  957. '''</summary>
  958. <Global.System.Serializable(), _
  959. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  960. Partial Public Class EMISDataTable
  961. Inherits Global.System.Data.TypedTableBase(Of EMISRow)
  962. Private columnCodEmis As Global.System.Data.DataColumn
  963. Private columnDescrip As Global.System.Data.DataColumn
  964. Private columnEstado As Global.System.Data.DataColumn
  965. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  966. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  967. Public Sub New()
  968. MyBase.New
  969. Me.TableName = "EMIS"
  970. Me.BeginInit
  971. Me.InitClass
  972. Me.EndInit
  973. End Sub
  974. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  975. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  976. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  977. MyBase.New
  978. Me.TableName = table.TableName
  979. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  980. Me.CaseSensitive = table.CaseSensitive
  981. End If
  982. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  983. Me.Locale = table.Locale
  984. End If
  985. If (table.Namespace <> table.DataSet.Namespace) Then
  986. Me.Namespace = table.Namespace
  987. End If
  988. Me.Prefix = table.Prefix
  989. Me.MinimumCapacity = table.MinimumCapacity
  990. End Sub
  991. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  992. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  993. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  994. MyBase.New(info, context)
  995. Me.InitVars
  996. End Sub
  997. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  998. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  999. Public ReadOnly Property CodEmisColumn() As Global.System.Data.DataColumn
  1000. Get
  1001. Return Me.columnCodEmis
  1002. End Get
  1003. End Property
  1004. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1005. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1006. Public ReadOnly Property DescripColumn() As Global.System.Data.DataColumn
  1007. Get
  1008. Return Me.columnDescrip
  1009. End Get
  1010. End Property
  1011. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1012. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1013. Public ReadOnly Property EstadoColumn() As Global.System.Data.DataColumn
  1014. Get
  1015. Return Me.columnEstado
  1016. End Get
  1017. End Property
  1018. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1019. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  1020. Global.System.ComponentModel.Browsable(false)> _
  1021. Public ReadOnly Property Count() As Integer
  1022. Get
  1023. Return Me.Rows.Count
  1024. End Get
  1025. End Property
  1026. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1027. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1028. Public Default ReadOnly Property Item(ByVal index As Integer) As EMISRow
  1029. Get
  1030. Return CType(Me.Rows(index),EMISRow)
  1031. End Get
  1032. End Property
  1033. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1034. Public Event EMISRowChanging As EMISRowChangeEventHandler
  1035. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1036. Public Event EMISRowChanged As EMISRowChangeEventHandler
  1037. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1038. Public Event EMISRowDeleting As EMISRowChangeEventHandler
  1039. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1040. Public Event EMISRowDeleted As EMISRowChangeEventHandler
  1041. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1042. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1043. Public Overloads Sub AddEMISRow(ByVal row As EMISRow)
  1044. Me.Rows.Add(row)
  1045. End Sub
  1046. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1047. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1048. Public Overloads Function AddEMISRow(ByVal Descrip As String, ByVal Estado As String) As EMISRow
  1049. Dim rowEMISRow As EMISRow = CType(Me.NewRow,EMISRow)
  1050. Dim columnValuesArray() As Object = New Object() {Nothing, Descrip, Estado}
  1051. rowEMISRow.ItemArray = columnValuesArray
  1052. Me.Rows.Add(rowEMISRow)
  1053. Return rowEMISRow
  1054. End Function
  1055. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1056. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1057. Public Function FindByCodEmis(ByVal CodEmis As Integer) As EMISRow
  1058. Return CType(Me.Rows.Find(New Object() {CodEmis}),EMISRow)
  1059. End Function
  1060. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1061. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1062. Public Overrides Function Clone() As Global.System.Data.DataTable
  1063. Dim cln As EMISDataTable = CType(MyBase.Clone,EMISDataTable)
  1064. cln.InitVars
  1065. Return cln
  1066. End Function
  1067. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1068. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1069. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  1070. Return New EMISDataTable()
  1071. End Function
  1072. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1073. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1074. Friend Sub InitVars()
  1075. Me.columnCodEmis = MyBase.Columns("CodEmis")
  1076. Me.columnDescrip = MyBase.Columns("Descrip")
  1077. Me.columnEstado = MyBase.Columns("Estado")
  1078. End Sub
  1079. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1080. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1081. Private Sub InitClass()
  1082. Me.columnCodEmis = New Global.System.Data.DataColumn("CodEmis", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  1083. MyBase.Columns.Add(Me.columnCodEmis)
  1084. Me.columnDescrip = New Global.System.Data.DataColumn("Descrip", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1085. MyBase.Columns.Add(Me.columnDescrip)
  1086. Me.columnEstado = New Global.System.Data.DataColumn("Estado", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1087. MyBase.Columns.Add(Me.columnEstado)
  1088. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodEmis}, true))
  1089. Me.columnCodEmis.AutoIncrement = true
  1090. Me.columnCodEmis.AutoIncrementSeed = -1
  1091. Me.columnCodEmis.AutoIncrementStep = -1
  1092. Me.columnCodEmis.AllowDBNull = false
  1093. Me.columnCodEmis.ReadOnly = true
  1094. Me.columnCodEmis.Unique = true
  1095. Me.columnDescrip.MaxLength = 100
  1096. Me.columnEstado.MaxLength = 1
  1097. End Sub
  1098. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1099. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1100. Public Function NewEMISRow() As EMISRow
  1101. Return CType(Me.NewRow,EMISRow)
  1102. End Function
  1103. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1104. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1105. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  1106. Return New EMISRow(builder)
  1107. End Function
  1108. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1109. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1110. Protected Overrides Function GetRowType() As Global.System.Type
  1111. Return GetType(EMISRow)
  1112. End Function
  1113. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1114. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1115. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1116. MyBase.OnRowChanged(e)
  1117. If (Not (Me.EMISRowChangedEvent) Is Nothing) Then
  1118. RaiseEvent EMISRowChanged(Me, New EMISRowChangeEvent(CType(e.Row,EMISRow), e.Action))
  1119. End If
  1120. End Sub
  1121. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1122. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1123. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1124. MyBase.OnRowChanging(e)
  1125. If (Not (Me.EMISRowChangingEvent) Is Nothing) Then
  1126. RaiseEvent EMISRowChanging(Me, New EMISRowChangeEvent(CType(e.Row,EMISRow), e.Action))
  1127. End If
  1128. End Sub
  1129. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1130. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1131. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1132. MyBase.OnRowDeleted(e)
  1133. If (Not (Me.EMISRowDeletedEvent) Is Nothing) Then
  1134. RaiseEvent EMISRowDeleted(Me, New EMISRowChangeEvent(CType(e.Row,EMISRow), e.Action))
  1135. End If
  1136. End Sub
  1137. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1138. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1139. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1140. MyBase.OnRowDeleting(e)
  1141. If (Not (Me.EMISRowDeletingEvent) Is Nothing) Then
  1142. RaiseEvent EMISRowDeleting(Me, New EMISRowChangeEvent(CType(e.Row,EMISRow), e.Action))
  1143. End If
  1144. End Sub
  1145. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1146. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1147. Public Sub RemoveEMISRow(ByVal row As EMISRow)
  1148. Me.Rows.Remove(row)
  1149. End Sub
  1150. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1151. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1152. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  1153. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  1154. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  1155. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  1156. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1157. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  1158. any1.MinOccurs = New Decimal(0)
  1159. any1.MaxOccurs = Decimal.MaxValue
  1160. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1161. sequence.Items.Add(any1)
  1162. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1163. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  1164. any2.MinOccurs = New Decimal(1)
  1165. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1166. sequence.Items.Add(any2)
  1167. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1168. attribute1.Name = "namespace"
  1169. attribute1.FixedValue = ds.Namespace
  1170. type.Attributes.Add(attribute1)
  1171. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1172. attribute2.Name = "tableTypeName"
  1173. attribute2.FixedValue = "EMISDataTable"
  1174. type.Attributes.Add(attribute2)
  1175. type.Particle = sequence
  1176. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  1177. If xs.Contains(dsSchema.TargetNamespace) Then
  1178. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1179. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1180. Try
  1181. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  1182. dsSchema.Write(s1)
  1183. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  1184. Do While schemas.MoveNext
  1185. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  1186. s2.SetLength(0)
  1187. schema.Write(s2)
  1188. If (s1.Length = s2.Length) Then
  1189. s1.Position = 0
  1190. s2.Position = 0
  1191. Do While ((s1.Position <> s1.Length) _
  1192. AndAlso (s1.ReadByte = s2.ReadByte))
  1193. Loop
  1194. If (s1.Position = s1.Length) Then
  1195. Return type
  1196. End If
  1197. End If
  1198. Loop
  1199. Finally
  1200. If (Not (s1) Is Nothing) Then
  1201. s1.Close
  1202. End If
  1203. If (Not (s2) Is Nothing) Then
  1204. s2.Close
  1205. End If
  1206. End Try
  1207. End If
  1208. xs.Add(dsSchema)
  1209. Return type
  1210. End Function
  1211. End Class
  1212. '''<summary>
  1213. '''Represents the strongly named DataTable class.
  1214. '''</summary>
  1215. <Global.System.Serializable(), _
  1216. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  1217. Partial Public Class EMPRDataTable
  1218. Inherits Global.System.Data.TypedTableBase(Of EMPRRow)
  1219. Private columnCodEmpr As Global.System.Data.DataColumn
  1220. Private columnDescrip As Global.System.Data.DataColumn
  1221. Private columnSAP_BD As Global.System.Data.DataColumn
  1222. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1223. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1224. Public Sub New()
  1225. MyBase.New
  1226. Me.TableName = "EMPR"
  1227. Me.BeginInit
  1228. Me.InitClass
  1229. Me.EndInit
  1230. End Sub
  1231. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1232. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1233. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  1234. MyBase.New
  1235. Me.TableName = table.TableName
  1236. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  1237. Me.CaseSensitive = table.CaseSensitive
  1238. End If
  1239. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  1240. Me.Locale = table.Locale
  1241. End If
  1242. If (table.Namespace <> table.DataSet.Namespace) Then
  1243. Me.Namespace = table.Namespace
  1244. End If
  1245. Me.Prefix = table.Prefix
  1246. Me.MinimumCapacity = table.MinimumCapacity
  1247. End Sub
  1248. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1249. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1250. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  1251. MyBase.New(info, context)
  1252. Me.InitVars
  1253. End Sub
  1254. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1255. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1256. Public ReadOnly Property CodEmprColumn() As Global.System.Data.DataColumn
  1257. Get
  1258. Return Me.columnCodEmpr
  1259. End Get
  1260. End Property
  1261. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1262. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1263. Public ReadOnly Property DescripColumn() As Global.System.Data.DataColumn
  1264. Get
  1265. Return Me.columnDescrip
  1266. End Get
  1267. End Property
  1268. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1269. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1270. Public ReadOnly Property SAP_BDColumn() As Global.System.Data.DataColumn
  1271. Get
  1272. Return Me.columnSAP_BD
  1273. End Get
  1274. End Property
  1275. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1276. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  1277. Global.System.ComponentModel.Browsable(false)> _
  1278. Public ReadOnly Property Count() As Integer
  1279. Get
  1280. Return Me.Rows.Count
  1281. End Get
  1282. End Property
  1283. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1284. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1285. Public Default ReadOnly Property Item(ByVal index As Integer) As EMPRRow
  1286. Get
  1287. Return CType(Me.Rows(index),EMPRRow)
  1288. End Get
  1289. End Property
  1290. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1291. Public Event EMPRRowChanging As EMPRRowChangeEventHandler
  1292. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1293. Public Event EMPRRowChanged As EMPRRowChangeEventHandler
  1294. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1295. Public Event EMPRRowDeleting As EMPRRowChangeEventHandler
  1296. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1297. Public Event EMPRRowDeleted As EMPRRowChangeEventHandler
  1298. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1299. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1300. Public Overloads Sub AddEMPRRow(ByVal row As EMPRRow)
  1301. Me.Rows.Add(row)
  1302. End Sub
  1303. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1304. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1305. Public Overloads Function AddEMPRRow(ByVal CodEmpr As String, ByVal Descrip As String, ByVal SAP_BD As String) As EMPRRow
  1306. Dim rowEMPRRow As EMPRRow = CType(Me.NewRow,EMPRRow)
  1307. Dim columnValuesArray() As Object = New Object() {CodEmpr, Descrip, SAP_BD}
  1308. rowEMPRRow.ItemArray = columnValuesArray
  1309. Me.Rows.Add(rowEMPRRow)
  1310. Return rowEMPRRow
  1311. End Function
  1312. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1313. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1314. Public Function FindByCodEmpr(ByVal CodEmpr As String) As EMPRRow
  1315. Return CType(Me.Rows.Find(New Object() {CodEmpr}),EMPRRow)
  1316. End Function
  1317. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1318. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1319. Public Overrides Function Clone() As Global.System.Data.DataTable
  1320. Dim cln As EMPRDataTable = CType(MyBase.Clone,EMPRDataTable)
  1321. cln.InitVars
  1322. Return cln
  1323. End Function
  1324. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1325. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1326. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  1327. Return New EMPRDataTable()
  1328. End Function
  1329. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1330. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1331. Friend Sub InitVars()
  1332. Me.columnCodEmpr = MyBase.Columns("CodEmpr")
  1333. Me.columnDescrip = MyBase.Columns("Descrip")
  1334. Me.columnSAP_BD = MyBase.Columns("SAP_BD")
  1335. End Sub
  1336. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1337. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1338. Private Sub InitClass()
  1339. Me.columnCodEmpr = New Global.System.Data.DataColumn("CodEmpr", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1340. MyBase.Columns.Add(Me.columnCodEmpr)
  1341. Me.columnDescrip = New Global.System.Data.DataColumn("Descrip", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1342. MyBase.Columns.Add(Me.columnDescrip)
  1343. Me.columnSAP_BD = New Global.System.Data.DataColumn("SAP_BD", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1344. MyBase.Columns.Add(Me.columnSAP_BD)
  1345. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodEmpr}, true))
  1346. Me.columnCodEmpr.AllowDBNull = false
  1347. Me.columnCodEmpr.Unique = true
  1348. Me.columnCodEmpr.MaxLength = 10
  1349. Me.columnDescrip.MaxLength = 100
  1350. Me.columnSAP_BD.MaxLength = 50
  1351. End Sub
  1352. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1353. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1354. Public Function NewEMPRRow() As EMPRRow
  1355. Return CType(Me.NewRow,EMPRRow)
  1356. End Function
  1357. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1358. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1359. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  1360. Return New EMPRRow(builder)
  1361. End Function
  1362. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1363. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1364. Protected Overrides Function GetRowType() As Global.System.Type
  1365. Return GetType(EMPRRow)
  1366. End Function
  1367. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1368. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1369. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1370. MyBase.OnRowChanged(e)
  1371. If (Not (Me.EMPRRowChangedEvent) Is Nothing) Then
  1372. RaiseEvent EMPRRowChanged(Me, New EMPRRowChangeEvent(CType(e.Row,EMPRRow), e.Action))
  1373. End If
  1374. End Sub
  1375. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1376. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1377. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1378. MyBase.OnRowChanging(e)
  1379. If (Not (Me.EMPRRowChangingEvent) Is Nothing) Then
  1380. RaiseEvent EMPRRowChanging(Me, New EMPRRowChangeEvent(CType(e.Row,EMPRRow), e.Action))
  1381. End If
  1382. End Sub
  1383. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1384. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1385. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1386. MyBase.OnRowDeleted(e)
  1387. If (Not (Me.EMPRRowDeletedEvent) Is Nothing) Then
  1388. RaiseEvent EMPRRowDeleted(Me, New EMPRRowChangeEvent(CType(e.Row,EMPRRow), e.Action))
  1389. End If
  1390. End Sub
  1391. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1392. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1393. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1394. MyBase.OnRowDeleting(e)
  1395. If (Not (Me.EMPRRowDeletingEvent) Is Nothing) Then
  1396. RaiseEvent EMPRRowDeleting(Me, New EMPRRowChangeEvent(CType(e.Row,EMPRRow), e.Action))
  1397. End If
  1398. End Sub
  1399. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1400. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1401. Public Sub RemoveEMPRRow(ByVal row As EMPRRow)
  1402. Me.Rows.Remove(row)
  1403. End Sub
  1404. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1405. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1406. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  1407. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  1408. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  1409. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  1410. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1411. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  1412. any1.MinOccurs = New Decimal(0)
  1413. any1.MaxOccurs = Decimal.MaxValue
  1414. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1415. sequence.Items.Add(any1)
  1416. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1417. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  1418. any2.MinOccurs = New Decimal(1)
  1419. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1420. sequence.Items.Add(any2)
  1421. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1422. attribute1.Name = "namespace"
  1423. attribute1.FixedValue = ds.Namespace
  1424. type.Attributes.Add(attribute1)
  1425. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1426. attribute2.Name = "tableTypeName"
  1427. attribute2.FixedValue = "EMPRDataTable"
  1428. type.Attributes.Add(attribute2)
  1429. type.Particle = sequence
  1430. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  1431. If xs.Contains(dsSchema.TargetNamespace) Then
  1432. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1433. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1434. Try
  1435. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  1436. dsSchema.Write(s1)
  1437. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  1438. Do While schemas.MoveNext
  1439. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  1440. s2.SetLength(0)
  1441. schema.Write(s2)
  1442. If (s1.Length = s2.Length) Then
  1443. s1.Position = 0
  1444. s2.Position = 0
  1445. Do While ((s1.Position <> s1.Length) _
  1446. AndAlso (s1.ReadByte = s2.ReadByte))
  1447. Loop
  1448. If (s1.Position = s1.Length) Then
  1449. Return type
  1450. End If
  1451. End If
  1452. Loop
  1453. Finally
  1454. If (Not (s1) Is Nothing) Then
  1455. s1.Close
  1456. End If
  1457. If (Not (s2) Is Nothing) Then
  1458. s2.Close
  1459. End If
  1460. End Try
  1461. End If
  1462. xs.Add(dsSchema)
  1463. Return type
  1464. End Function
  1465. End Class
  1466. '''<summary>
  1467. '''Represents the strongly named DataTable class.
  1468. '''</summary>
  1469. <Global.System.Serializable(), _
  1470. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  1471. Partial Public Class INFIDataTable
  1472. Inherits Global.System.Data.TypedTableBase(Of INFIRow)
  1473. Private columnCodIF As Global.System.Data.DataColumn
  1474. Private columnDescrip As Global.System.Data.DataColumn
  1475. Private columnTipo As Global.System.Data.DataColumn
  1476. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1477. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1478. Public Sub New()
  1479. MyBase.New
  1480. Me.TableName = "INFI"
  1481. Me.BeginInit
  1482. Me.InitClass
  1483. Me.EndInit
  1484. End Sub
  1485. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1486. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1487. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  1488. MyBase.New
  1489. Me.TableName = table.TableName
  1490. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  1491. Me.CaseSensitive = table.CaseSensitive
  1492. End If
  1493. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  1494. Me.Locale = table.Locale
  1495. End If
  1496. If (table.Namespace <> table.DataSet.Namespace) Then
  1497. Me.Namespace = table.Namespace
  1498. End If
  1499. Me.Prefix = table.Prefix
  1500. Me.MinimumCapacity = table.MinimumCapacity
  1501. End Sub
  1502. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1503. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1504. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  1505. MyBase.New(info, context)
  1506. Me.InitVars
  1507. End Sub
  1508. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1509. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1510. Public ReadOnly Property CodIFColumn() As Global.System.Data.DataColumn
  1511. Get
  1512. Return Me.columnCodIF
  1513. End Get
  1514. End Property
  1515. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1516. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1517. Public ReadOnly Property DescripColumn() As Global.System.Data.DataColumn
  1518. Get
  1519. Return Me.columnDescrip
  1520. End Get
  1521. End Property
  1522. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1523. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1524. Public ReadOnly Property TipoColumn() As Global.System.Data.DataColumn
  1525. Get
  1526. Return Me.columnTipo
  1527. End Get
  1528. End Property
  1529. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1530. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  1531. Global.System.ComponentModel.Browsable(false)> _
  1532. Public ReadOnly Property Count() As Integer
  1533. Get
  1534. Return Me.Rows.Count
  1535. End Get
  1536. End Property
  1537. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1538. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1539. Public Default ReadOnly Property Item(ByVal index As Integer) As INFIRow
  1540. Get
  1541. Return CType(Me.Rows(index),INFIRow)
  1542. End Get
  1543. End Property
  1544. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1545. Public Event INFIRowChanging As INFIRowChangeEventHandler
  1546. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1547. Public Event INFIRowChanged As INFIRowChangeEventHandler
  1548. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1549. Public Event INFIRowDeleting As INFIRowChangeEventHandler
  1550. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1551. Public Event INFIRowDeleted As INFIRowChangeEventHandler
  1552. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1553. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1554. Public Overloads Sub AddINFIRow(ByVal row As INFIRow)
  1555. Me.Rows.Add(row)
  1556. End Sub
  1557. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1558. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1559. Public Overloads Function AddINFIRow(ByVal CodIF As String, ByVal Descrip As String, ByVal Tipo As String) As INFIRow
  1560. Dim rowINFIRow As INFIRow = CType(Me.NewRow,INFIRow)
  1561. Dim columnValuesArray() As Object = New Object() {CodIF, Descrip, Tipo}
  1562. rowINFIRow.ItemArray = columnValuesArray
  1563. Me.Rows.Add(rowINFIRow)
  1564. Return rowINFIRow
  1565. End Function
  1566. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1567. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1568. Public Function FindByCodIF(ByVal CodIF As String) As INFIRow
  1569. Return CType(Me.Rows.Find(New Object() {CodIF}),INFIRow)
  1570. End Function
  1571. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1572. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1573. Public Overrides Function Clone() As Global.System.Data.DataTable
  1574. Dim cln As INFIDataTable = CType(MyBase.Clone,INFIDataTable)
  1575. cln.InitVars
  1576. Return cln
  1577. End Function
  1578. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1579. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1580. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  1581. Return New INFIDataTable()
  1582. End Function
  1583. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1584. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1585. Friend Sub InitVars()
  1586. Me.columnCodIF = MyBase.Columns("CodIF")
  1587. Me.columnDescrip = MyBase.Columns("Descrip")
  1588. Me.columnTipo = MyBase.Columns("Tipo")
  1589. End Sub
  1590. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1591. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1592. Private Sub InitClass()
  1593. Me.columnCodIF = New Global.System.Data.DataColumn("CodIF", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1594. MyBase.Columns.Add(Me.columnCodIF)
  1595. Me.columnDescrip = New Global.System.Data.DataColumn("Descrip", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1596. MyBase.Columns.Add(Me.columnDescrip)
  1597. Me.columnTipo = New Global.System.Data.DataColumn("Tipo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1598. MyBase.Columns.Add(Me.columnTipo)
  1599. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodIF}, true))
  1600. Me.columnCodIF.AllowDBNull = false
  1601. Me.columnCodIF.Unique = true
  1602. Me.columnCodIF.MaxLength = 10
  1603. Me.columnDescrip.MaxLength = 50
  1604. Me.columnTipo.MaxLength = 10
  1605. End Sub
  1606. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1607. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1608. Public Function NewINFIRow() As INFIRow
  1609. Return CType(Me.NewRow,INFIRow)
  1610. End Function
  1611. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1612. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1613. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  1614. Return New INFIRow(builder)
  1615. End Function
  1616. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1617. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1618. Protected Overrides Function GetRowType() As Global.System.Type
  1619. Return GetType(INFIRow)
  1620. End Function
  1621. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1622. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1623. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1624. MyBase.OnRowChanged(e)
  1625. If (Not (Me.INFIRowChangedEvent) Is Nothing) Then
  1626. RaiseEvent INFIRowChanged(Me, New INFIRowChangeEvent(CType(e.Row,INFIRow), e.Action))
  1627. End If
  1628. End Sub
  1629. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1630. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1631. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1632. MyBase.OnRowChanging(e)
  1633. If (Not (Me.INFIRowChangingEvent) Is Nothing) Then
  1634. RaiseEvent INFIRowChanging(Me, New INFIRowChangeEvent(CType(e.Row,INFIRow), e.Action))
  1635. End If
  1636. End Sub
  1637. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1638. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1639. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1640. MyBase.OnRowDeleted(e)
  1641. If (Not (Me.INFIRowDeletedEvent) Is Nothing) Then
  1642. RaiseEvent INFIRowDeleted(Me, New INFIRowChangeEvent(CType(e.Row,INFIRow), e.Action))
  1643. End If
  1644. End Sub
  1645. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1646. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1647. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1648. MyBase.OnRowDeleting(e)
  1649. If (Not (Me.INFIRowDeletingEvent) Is Nothing) Then
  1650. RaiseEvent INFIRowDeleting(Me, New INFIRowChangeEvent(CType(e.Row,INFIRow), e.Action))
  1651. End If
  1652. End Sub
  1653. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1654. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1655. Public Sub RemoveINFIRow(ByVal row As INFIRow)
  1656. Me.Rows.Remove(row)
  1657. End Sub
  1658. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1659. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1660. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  1661. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  1662. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  1663. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  1664. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1665. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  1666. any1.MinOccurs = New Decimal(0)
  1667. any1.MaxOccurs = Decimal.MaxValue
  1668. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1669. sequence.Items.Add(any1)
  1670. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1671. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  1672. any2.MinOccurs = New Decimal(1)
  1673. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1674. sequence.Items.Add(any2)
  1675. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1676. attribute1.Name = "namespace"
  1677. attribute1.FixedValue = ds.Namespace
  1678. type.Attributes.Add(attribute1)
  1679. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1680. attribute2.Name = "tableTypeName"
  1681. attribute2.FixedValue = "INFIDataTable"
  1682. type.Attributes.Add(attribute2)
  1683. type.Particle = sequence
  1684. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  1685. If xs.Contains(dsSchema.TargetNamespace) Then
  1686. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1687. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1688. Try
  1689. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  1690. dsSchema.Write(s1)
  1691. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  1692. Do While schemas.MoveNext
  1693. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  1694. s2.SetLength(0)
  1695. schema.Write(s2)
  1696. If (s1.Length = s2.Length) Then
  1697. s1.Position = 0
  1698. s2.Position = 0
  1699. Do While ((s1.Position <> s1.Length) _
  1700. AndAlso (s1.ReadByte = s2.ReadByte))
  1701. Loop
  1702. If (s1.Position = s1.Length) Then
  1703. Return type
  1704. End If
  1705. End If
  1706. Loop
  1707. Finally
  1708. If (Not (s1) Is Nothing) Then
  1709. s1.Close
  1710. End If
  1711. If (Not (s2) Is Nothing) Then
  1712. s2.Close
  1713. End If
  1714. End Try
  1715. End If
  1716. xs.Add(dsSchema)
  1717. Return type
  1718. End Function
  1719. End Class
  1720. '''<summary>
  1721. '''Represents the strongly named DataTable class.
  1722. '''</summary>
  1723. <Global.System.Serializable(), _
  1724. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  1725. Partial Public Class PAISDataTable
  1726. Inherits Global.System.Data.TypedTableBase(Of PAISRow)
  1727. Private columnCodPais As Global.System.Data.DataColumn
  1728. Private columnDescrip As Global.System.Data.DataColumn
  1729. Private columnRelInv As Global.System.Data.DataColumn
  1730. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1731. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1732. Public Sub New()
  1733. MyBase.New
  1734. Me.TableName = "PAIS"
  1735. Me.BeginInit
  1736. Me.InitClass
  1737. Me.EndInit
  1738. End Sub
  1739. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1740. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1741. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  1742. MyBase.New
  1743. Me.TableName = table.TableName
  1744. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  1745. Me.CaseSensitive = table.CaseSensitive
  1746. End If
  1747. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  1748. Me.Locale = table.Locale
  1749. End If
  1750. If (table.Namespace <> table.DataSet.Namespace) Then
  1751. Me.Namespace = table.Namespace
  1752. End If
  1753. Me.Prefix = table.Prefix
  1754. Me.MinimumCapacity = table.MinimumCapacity
  1755. End Sub
  1756. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1757. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1758. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  1759. MyBase.New(info, context)
  1760. Me.InitVars
  1761. End Sub
  1762. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1763. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1764. Public ReadOnly Property CodPaisColumn() As Global.System.Data.DataColumn
  1765. Get
  1766. Return Me.columnCodPais
  1767. End Get
  1768. End Property
  1769. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1770. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1771. Public ReadOnly Property DescripColumn() As Global.System.Data.DataColumn
  1772. Get
  1773. Return Me.columnDescrip
  1774. End Get
  1775. End Property
  1776. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1777. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1778. Public ReadOnly Property RelInvColumn() As Global.System.Data.DataColumn
  1779. Get
  1780. Return Me.columnRelInv
  1781. End Get
  1782. End Property
  1783. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1784. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  1785. Global.System.ComponentModel.Browsable(false)> _
  1786. Public ReadOnly Property Count() As Integer
  1787. Get
  1788. Return Me.Rows.Count
  1789. End Get
  1790. End Property
  1791. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1792. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1793. Public Default ReadOnly Property Item(ByVal index As Integer) As PAISRow
  1794. Get
  1795. Return CType(Me.Rows(index),PAISRow)
  1796. End Get
  1797. End Property
  1798. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1799. Public Event PAISRowChanging As PAISRowChangeEventHandler
  1800. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1801. Public Event PAISRowChanged As PAISRowChangeEventHandler
  1802. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1803. Public Event PAISRowDeleting As PAISRowChangeEventHandler
  1804. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1805. Public Event PAISRowDeleted As PAISRowChangeEventHandler
  1806. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1807. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1808. Public Overloads Sub AddPAISRow(ByVal row As PAISRow)
  1809. Me.Rows.Add(row)
  1810. End Sub
  1811. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1812. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1813. Public Overloads Function AddPAISRow(ByVal CodPais As String, ByVal Descrip As String, ByVal RelInv As String) As PAISRow
  1814. Dim rowPAISRow As PAISRow = CType(Me.NewRow,PAISRow)
  1815. Dim columnValuesArray() As Object = New Object() {CodPais, Descrip, RelInv}
  1816. rowPAISRow.ItemArray = columnValuesArray
  1817. Me.Rows.Add(rowPAISRow)
  1818. Return rowPAISRow
  1819. End Function
  1820. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1821. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1822. Public Function FindByCodPais(ByVal CodPais As String) As PAISRow
  1823. Return CType(Me.Rows.Find(New Object() {CodPais}),PAISRow)
  1824. End Function
  1825. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1826. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1827. Public Overrides Function Clone() As Global.System.Data.DataTable
  1828. Dim cln As PAISDataTable = CType(MyBase.Clone,PAISDataTable)
  1829. cln.InitVars
  1830. Return cln
  1831. End Function
  1832. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1833. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1834. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  1835. Return New PAISDataTable()
  1836. End Function
  1837. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1838. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1839. Friend Sub InitVars()
  1840. Me.columnCodPais = MyBase.Columns("CodPais")
  1841. Me.columnDescrip = MyBase.Columns("Descrip")
  1842. Me.columnRelInv = MyBase.Columns("RelInv")
  1843. End Sub
  1844. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1845. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1846. Private Sub InitClass()
  1847. Me.columnCodPais = New Global.System.Data.DataColumn("CodPais", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1848. MyBase.Columns.Add(Me.columnCodPais)
  1849. Me.columnDescrip = New Global.System.Data.DataColumn("Descrip", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1850. MyBase.Columns.Add(Me.columnDescrip)
  1851. Me.columnRelInv = New Global.System.Data.DataColumn("RelInv", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1852. MyBase.Columns.Add(Me.columnRelInv)
  1853. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodPais}, true))
  1854. Me.columnCodPais.AllowDBNull = false
  1855. Me.columnCodPais.Unique = true
  1856. Me.columnCodPais.MaxLength = 3
  1857. Me.columnDescrip.MaxLength = 50
  1858. Me.columnRelInv.MaxLength = 1
  1859. End Sub
  1860. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1861. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1862. Public Function NewPAISRow() As PAISRow
  1863. Return CType(Me.NewRow,PAISRow)
  1864. End Function
  1865. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1866. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1867. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  1868. Return New PAISRow(builder)
  1869. End Function
  1870. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1871. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1872. Protected Overrides Function GetRowType() As Global.System.Type
  1873. Return GetType(PAISRow)
  1874. End Function
  1875. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1876. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1877. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1878. MyBase.OnRowChanged(e)
  1879. If (Not (Me.PAISRowChangedEvent) Is Nothing) Then
  1880. RaiseEvent PAISRowChanged(Me, New PAISRowChangeEvent(CType(e.Row,PAISRow), e.Action))
  1881. End If
  1882. End Sub
  1883. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1884. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1885. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1886. MyBase.OnRowChanging(e)
  1887. If (Not (Me.PAISRowChangingEvent) Is Nothing) Then
  1888. RaiseEvent PAISRowChanging(Me, New PAISRowChangeEvent(CType(e.Row,PAISRow), e.Action))
  1889. End If
  1890. End Sub
  1891. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1892. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1893. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1894. MyBase.OnRowDeleted(e)
  1895. If (Not (Me.PAISRowDeletedEvent) Is Nothing) Then
  1896. RaiseEvent PAISRowDeleted(Me, New PAISRowChangeEvent(CType(e.Row,PAISRow), e.Action))
  1897. End If
  1898. End Sub
  1899. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1900. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1901. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1902. MyBase.OnRowDeleting(e)
  1903. If (Not (Me.PAISRowDeletingEvent) Is Nothing) Then
  1904. RaiseEvent PAISRowDeleting(Me, New PAISRowChangeEvent(CType(e.Row,PAISRow), e.Action))
  1905. End If
  1906. End Sub
  1907. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1908. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1909. Public Sub RemovePAISRow(ByVal row As PAISRow)
  1910. Me.Rows.Remove(row)
  1911. End Sub
  1912. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1913. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1914. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  1915. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  1916. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  1917. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  1918. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1919. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  1920. any1.MinOccurs = New Decimal(0)
  1921. any1.MaxOccurs = Decimal.MaxValue
  1922. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1923. sequence.Items.Add(any1)
  1924. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1925. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  1926. any2.MinOccurs = New Decimal(1)
  1927. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1928. sequence.Items.Add(any2)
  1929. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1930. attribute1.Name = "namespace"
  1931. attribute1.FixedValue = ds.Namespace
  1932. type.Attributes.Add(attribute1)
  1933. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1934. attribute2.Name = "tableTypeName"
  1935. attribute2.FixedValue = "PAISDataTable"
  1936. type.Attributes.Add(attribute2)
  1937. type.Particle = sequence
  1938. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  1939. If xs.Contains(dsSchema.TargetNamespace) Then
  1940. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1941. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1942. Try
  1943. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  1944. dsSchema.Write(s1)
  1945. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  1946. Do While schemas.MoveNext
  1947. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  1948. s2.SetLength(0)
  1949. schema.Write(s2)
  1950. If (s1.Length = s2.Length) Then
  1951. s1.Position = 0
  1952. s2.Position = 0
  1953. Do While ((s1.Position <> s1.Length) _
  1954. AndAlso (s1.ReadByte = s2.ReadByte))
  1955. Loop
  1956. If (s1.Position = s1.Length) Then
  1957. Return type
  1958. End If
  1959. End If
  1960. Loop
  1961. Finally
  1962. If (Not (s1) Is Nothing) Then
  1963. s1.Close
  1964. End If
  1965. If (Not (s2) Is Nothing) Then
  1966. s2.Close
  1967. End If
  1968. End Try
  1969. End If
  1970. xs.Add(dsSchema)
  1971. Return type
  1972. End Function
  1973. End Class
  1974. '''<summary>
  1975. '''Represents the strongly named DataTable class.
  1976. '''</summary>
  1977. <Global.System.Serializable(), _
  1978. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  1979. Partial Public Class SP_InventarioMasterDataTable
  1980. Inherits Global.System.Data.TypedTableBase(Of SP_InventarioMasterRow)
  1981. Private columnCodInv As Global.System.Data.DataColumn
  1982. Private columnCodIF As Global.System.Data.DataColumn
  1983. Private columnEstado As Global.System.Data.DataColumn
  1984. Private columnCodEmpr As Global.System.Data.DataColumn
  1985. Private columnNombreManIF As Global.System.Data.DataColumn
  1986. Private columnCodManIF As Global.System.Data.DataColumn
  1987. Private columnCodEmis As Global.System.Data.DataColumn
  1988. Private columniCasaBanco As Global.System.Data.DataColumn
  1989. Private columnvCasaBanco As Global.System.Data.DataColumn
  1990. Private columnTipoMerc As Global.System.Data.DataColumn
  1991. Private columnCodCalRi As Global.System.Data.DataColumn
  1992. Private columnCodECalRi As Global.System.Data.DataColumn
  1993. Private columnValorNominal As Global.System.Data.DataColumn
  1994. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1995. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  1996. Public Sub New()
  1997. MyBase.New
  1998. Me.TableName = "SP_InventarioMaster"
  1999. Me.BeginInit
  2000. Me.InitClass
  2001. Me.EndInit
  2002. End Sub
  2003. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2004. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2005. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  2006. MyBase.New
  2007. Me.TableName = table.TableName
  2008. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  2009. Me.CaseSensitive = table.CaseSensitive
  2010. End If
  2011. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  2012. Me.Locale = table.Locale
  2013. End If
  2014. If (table.Namespace <> table.DataSet.Namespace) Then
  2015. Me.Namespace = table.Namespace
  2016. End If
  2017. Me.Prefix = table.Prefix
  2018. Me.MinimumCapacity = table.MinimumCapacity
  2019. End Sub
  2020. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2021. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2022. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  2023. MyBase.New(info, context)
  2024. Me.InitVars
  2025. End Sub
  2026. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2027. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2028. Public ReadOnly Property CodInvColumn() As Global.System.Data.DataColumn
  2029. Get
  2030. Return Me.columnCodInv
  2031. End Get
  2032. End Property
  2033. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2034. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2035. Public ReadOnly Property CodIFColumn() As Global.System.Data.DataColumn
  2036. Get
  2037. Return Me.columnCodIF
  2038. End Get
  2039. End Property
  2040. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2041. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2042. Public ReadOnly Property EstadoColumn() As Global.System.Data.DataColumn
  2043. Get
  2044. Return Me.columnEstado
  2045. End Get
  2046. End Property
  2047. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2048. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2049. Public ReadOnly Property CodEmprColumn() As Global.System.Data.DataColumn
  2050. Get
  2051. Return Me.columnCodEmpr
  2052. End Get
  2053. End Property
  2054. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2055. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2056. Public ReadOnly Property NombreManIFColumn() As Global.System.Data.DataColumn
  2057. Get
  2058. Return Me.columnNombreManIF
  2059. End Get
  2060. End Property
  2061. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2062. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2063. Public ReadOnly Property CodManIFColumn() As Global.System.Data.DataColumn
  2064. Get
  2065. Return Me.columnCodManIF
  2066. End Get
  2067. End Property
  2068. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2069. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2070. Public ReadOnly Property CodEmisColumn() As Global.System.Data.DataColumn
  2071. Get
  2072. Return Me.columnCodEmis
  2073. End Get
  2074. End Property
  2075. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2076. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2077. Public ReadOnly Property iCasaBancoColumn() As Global.System.Data.DataColumn
  2078. Get
  2079. Return Me.columniCasaBanco
  2080. End Get
  2081. End Property
  2082. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2083. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2084. Public ReadOnly Property vCasaBancoColumn() As Global.System.Data.DataColumn
  2085. Get
  2086. Return Me.columnvCasaBanco
  2087. End Get
  2088. End Property
  2089. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2090. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2091. Public ReadOnly Property TipoMercColumn() As Global.System.Data.DataColumn
  2092. Get
  2093. Return Me.columnTipoMerc
  2094. End Get
  2095. End Property
  2096. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2097. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2098. Public ReadOnly Property CodCalRiColumn() As Global.System.Data.DataColumn
  2099. Get
  2100. Return Me.columnCodCalRi
  2101. End Get
  2102. End Property
  2103. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2104. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2105. Public ReadOnly Property CodECalRiColumn() As Global.System.Data.DataColumn
  2106. Get
  2107. Return Me.columnCodECalRi
  2108. End Get
  2109. End Property
  2110. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2111. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2112. Public ReadOnly Property ValorNominalColumn() As Global.System.Data.DataColumn
  2113. Get
  2114. Return Me.columnValorNominal
  2115. End Get
  2116. End Property
  2117. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2118. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  2119. Global.System.ComponentModel.Browsable(false)> _
  2120. Public ReadOnly Property Count() As Integer
  2121. Get
  2122. Return Me.Rows.Count
  2123. End Get
  2124. End Property
  2125. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2126. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2127. Public Default ReadOnly Property Item(ByVal index As Integer) As SP_InventarioMasterRow
  2128. Get
  2129. Return CType(Me.Rows(index),SP_InventarioMasterRow)
  2130. End Get
  2131. End Property
  2132. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2133. Public Event SP_InventarioMasterRowChanging As SP_InventarioMasterRowChangeEventHandler
  2134. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2135. Public Event SP_InventarioMasterRowChanged As SP_InventarioMasterRowChangeEventHandler
  2136. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2137. Public Event SP_InventarioMasterRowDeleting As SP_InventarioMasterRowChangeEventHandler
  2138. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2139. Public Event SP_InventarioMasterRowDeleted As SP_InventarioMasterRowChangeEventHandler
  2140. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2141. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2142. Public Overloads Sub AddSP_InventarioMasterRow(ByVal row As SP_InventarioMasterRow)
  2143. Me.Rows.Add(row)
  2144. End Sub
  2145. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2146. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2147. Public Overloads Function AddSP_InventarioMasterRow(ByVal CodInv As String, ByVal CodIF As String, ByVal Estado As String, ByVal CodEmpr As String, ByVal NombreManIF As String, ByVal CodManIF As String, ByVal CodEmis As Integer, ByVal iCasaBanco As String, ByVal vCasaBanco As String, ByVal TipoMerc As String, ByVal CodCalRi As String, ByVal CodECalRi As String, ByVal ValorNominal As Decimal) As SP_InventarioMasterRow
  2148. Dim rowSP_InventarioMasterRow As SP_InventarioMasterRow = CType(Me.NewRow,SP_InventarioMasterRow)
  2149. Dim columnValuesArray() As Object = New Object() {CodInv, CodIF, Estado, CodEmpr, NombreManIF, CodManIF, CodEmis, iCasaBanco, vCasaBanco, TipoMerc, CodCalRi, CodECalRi, ValorNominal}
  2150. rowSP_InventarioMasterRow.ItemArray = columnValuesArray
  2151. Me.Rows.Add(rowSP_InventarioMasterRow)
  2152. Return rowSP_InventarioMasterRow
  2153. End Function
  2154. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2155. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2156. Public Overrides Function Clone() As Global.System.Data.DataTable
  2157. Dim cln As SP_InventarioMasterDataTable = CType(MyBase.Clone,SP_InventarioMasterDataTable)
  2158. cln.InitVars
  2159. Return cln
  2160. End Function
  2161. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2162. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2163. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  2164. Return New SP_InventarioMasterDataTable()
  2165. End Function
  2166. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2167. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2168. Friend Sub InitVars()
  2169. Me.columnCodInv = MyBase.Columns("CodInv")
  2170. Me.columnCodIF = MyBase.Columns("CodIF")
  2171. Me.columnEstado = MyBase.Columns("Estado")
  2172. Me.columnCodEmpr = MyBase.Columns("CodEmpr")
  2173. Me.columnNombreManIF = MyBase.Columns("NombreManIF")
  2174. Me.columnCodManIF = MyBase.Columns("CodManIF")
  2175. Me.columnCodEmis = MyBase.Columns("CodEmis")
  2176. Me.columniCasaBanco = MyBase.Columns("iCasaBanco")
  2177. Me.columnvCasaBanco = MyBase.Columns("vCasaBanco")
  2178. Me.columnTipoMerc = MyBase.Columns("TipoMerc")
  2179. Me.columnCodCalRi = MyBase.Columns("CodCalRi")
  2180. Me.columnCodECalRi = MyBase.Columns("CodECalRi")
  2181. Me.columnValorNominal = MyBase.Columns("ValorNominal")
  2182. End Sub
  2183. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2184. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2185. Private Sub InitClass()
  2186. Me.columnCodInv = New Global.System.Data.DataColumn("CodInv", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2187. MyBase.Columns.Add(Me.columnCodInv)
  2188. Me.columnCodIF = New Global.System.Data.DataColumn("CodIF", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2189. MyBase.Columns.Add(Me.columnCodIF)
  2190. Me.columnEstado = New Global.System.Data.DataColumn("Estado", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2191. MyBase.Columns.Add(Me.columnEstado)
  2192. Me.columnCodEmpr = New Global.System.Data.DataColumn("CodEmpr", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2193. MyBase.Columns.Add(Me.columnCodEmpr)
  2194. Me.columnNombreManIF = New Global.System.Data.DataColumn("NombreManIF", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2195. MyBase.Columns.Add(Me.columnNombreManIF)
  2196. Me.columnCodManIF = New Global.System.Data.DataColumn("CodManIF", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2197. MyBase.Columns.Add(Me.columnCodManIF)
  2198. Me.columnCodEmis = New Global.System.Data.DataColumn("CodEmis", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  2199. MyBase.Columns.Add(Me.columnCodEmis)
  2200. Me.columniCasaBanco = New Global.System.Data.DataColumn("iCasaBanco", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2201. MyBase.Columns.Add(Me.columniCasaBanco)
  2202. Me.columnvCasaBanco = New Global.System.Data.DataColumn("vCasaBanco", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2203. MyBase.Columns.Add(Me.columnvCasaBanco)
  2204. Me.columnTipoMerc = New Global.System.Data.DataColumn("TipoMerc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2205. MyBase.Columns.Add(Me.columnTipoMerc)
  2206. Me.columnCodCalRi = New Global.System.Data.DataColumn("CodCalRi", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2207. MyBase.Columns.Add(Me.columnCodCalRi)
  2208. Me.columnCodECalRi = New Global.System.Data.DataColumn("CodECalRi", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2209. MyBase.Columns.Add(Me.columnCodECalRi)
  2210. Me.columnValorNominal = New Global.System.Data.DataColumn("ValorNominal", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
  2211. MyBase.Columns.Add(Me.columnValorNominal)
  2212. Me.columnCodInv.MaxLength = 20
  2213. Me.columnCodIF.MaxLength = 10
  2214. Me.columnEstado.MaxLength = 4
  2215. Me.columnCodEmpr.MaxLength = 10
  2216. Me.columnNombreManIF.MaxLength = 50
  2217. Me.columnCodManIF.MaxLength = 50
  2218. Me.columniCasaBanco.MaxLength = 1
  2219. Me.columnvCasaBanco.MaxLength = 10
  2220. Me.columnTipoMerc.MaxLength = 4
  2221. Me.columnCodCalRi.MaxLength = 8
  2222. Me.columnCodECalRi.MaxLength = 8
  2223. End Sub
  2224. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2225. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2226. Public Function NewSP_InventarioMasterRow() As SP_InventarioMasterRow
  2227. Return CType(Me.NewRow,SP_InventarioMasterRow)
  2228. End Function
  2229. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2230. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2231. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  2232. Return New SP_InventarioMasterRow(builder)
  2233. End Function
  2234. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2235. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2236. Protected Overrides Function GetRowType() As Global.System.Type
  2237. Return GetType(SP_InventarioMasterRow)
  2238. End Function
  2239. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2240. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2241. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  2242. MyBase.OnRowChanged(e)
  2243. If (Not (Me.SP_InventarioMasterRowChangedEvent) Is Nothing) Then
  2244. RaiseEvent SP_InventarioMasterRowChanged(Me, New SP_InventarioMasterRowChangeEvent(CType(e.Row,SP_InventarioMasterRow), e.Action))
  2245. End If
  2246. End Sub
  2247. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2248. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2249. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  2250. MyBase.OnRowChanging(e)
  2251. If (Not (Me.SP_InventarioMasterRowChangingEvent) Is Nothing) Then
  2252. RaiseEvent SP_InventarioMasterRowChanging(Me, New SP_InventarioMasterRowChangeEvent(CType(e.Row,SP_InventarioMasterRow), e.Action))
  2253. End If
  2254. End Sub
  2255. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2256. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2257. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  2258. MyBase.OnRowDeleted(e)
  2259. If (Not (Me.SP_InventarioMasterRowDeletedEvent) Is Nothing) Then
  2260. RaiseEvent SP_InventarioMasterRowDeleted(Me, New SP_InventarioMasterRowChangeEvent(CType(e.Row,SP_InventarioMasterRow), e.Action))
  2261. End If
  2262. End Sub
  2263. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2264. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2265. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  2266. MyBase.OnRowDeleting(e)
  2267. If (Not (Me.SP_InventarioMasterRowDeletingEvent) Is Nothing) Then
  2268. RaiseEvent SP_InventarioMasterRowDeleting(Me, New SP_InventarioMasterRowChangeEvent(CType(e.Row,SP_InventarioMasterRow), e.Action))
  2269. End If
  2270. End Sub
  2271. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2272. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2273. Public Sub RemoveSP_InventarioMasterRow(ByVal row As SP_InventarioMasterRow)
  2274. Me.Rows.Remove(row)
  2275. End Sub
  2276. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2277. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2278. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  2279. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  2280. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  2281. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  2282. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  2283. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  2284. any1.MinOccurs = New Decimal(0)
  2285. any1.MaxOccurs = Decimal.MaxValue
  2286. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  2287. sequence.Items.Add(any1)
  2288. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  2289. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  2290. any2.MinOccurs = New Decimal(1)
  2291. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  2292. sequence.Items.Add(any2)
  2293. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  2294. attribute1.Name = "namespace"
  2295. attribute1.FixedValue = ds.Namespace
  2296. type.Attributes.Add(attribute1)
  2297. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  2298. attribute2.Name = "tableTypeName"
  2299. attribute2.FixedValue = "SP_InventarioMasterDataTable"
  2300. type.Attributes.Add(attribute2)
  2301. type.Particle = sequence
  2302. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  2303. If xs.Contains(dsSchema.TargetNamespace) Then
  2304. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  2305. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  2306. Try
  2307. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  2308. dsSchema.Write(s1)
  2309. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  2310. Do While schemas.MoveNext
  2311. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  2312. s2.SetLength(0)
  2313. schema.Write(s2)
  2314. If (s1.Length = s2.Length) Then
  2315. s1.Position = 0
  2316. s2.Position = 0
  2317. Do While ((s1.Position <> s1.Length) _
  2318. AndAlso (s1.ReadByte = s2.ReadByte))
  2319. Loop
  2320. If (s1.Position = s1.Length) Then
  2321. Return type
  2322. End If
  2323. End If
  2324. Loop
  2325. Finally
  2326. If (Not (s1) Is Nothing) Then
  2327. s1.Close
  2328. End If
  2329. If (Not (s2) Is Nothing) Then
  2330. s2.Close
  2331. End If
  2332. End Try
  2333. End If
  2334. xs.Add(dsSchema)
  2335. Return type
  2336. End Function
  2337. End Class
  2338. '''<summary>
  2339. '''Represents the strongly named DataTable class.
  2340. '''</summary>
  2341. <Global.System.Serializable(), _
  2342. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  2343. Partial Public Class BAN0DataTable
  2344. Inherits Global.System.Data.TypedTableBase(Of BAN0Row)
  2345. Private columnCodBanco As Global.System.Data.DataColumn
  2346. Private columnCodPais As Global.System.Data.DataColumn
  2347. Private columnNombreBanco As Global.System.Data.DataColumn
  2348. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2349. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2350. Public Sub New()
  2351. MyBase.New
  2352. Me.TableName = "BAN0"
  2353. Me.BeginInit
  2354. Me.InitClass
  2355. Me.EndInit
  2356. End Sub
  2357. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2358. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2359. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  2360. MyBase.New
  2361. Me.TableName = table.TableName
  2362. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  2363. Me.CaseSensitive = table.CaseSensitive
  2364. End If
  2365. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  2366. Me.Locale = table.Locale
  2367. End If
  2368. If (table.Namespace <> table.DataSet.Namespace) Then
  2369. Me.Namespace = table.Namespace
  2370. End If
  2371. Me.Prefix = table.Prefix
  2372. Me.MinimumCapacity = table.MinimumCapacity
  2373. End Sub
  2374. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2375. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2376. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  2377. MyBase.New(info, context)
  2378. Me.InitVars
  2379. End Sub
  2380. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2381. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2382. Public ReadOnly Property CodBancoColumn() As Global.System.Data.DataColumn
  2383. Get
  2384. Return Me.columnCodBanco
  2385. End Get
  2386. End Property
  2387. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2388. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2389. Public ReadOnly Property CodPaisColumn() As Global.System.Data.DataColumn
  2390. Get
  2391. Return Me.columnCodPais
  2392. End Get
  2393. End Property
  2394. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2395. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2396. Public ReadOnly Property NombreBancoColumn() As Global.System.Data.DataColumn
  2397. Get
  2398. Return Me.columnNombreBanco
  2399. End Get
  2400. End Property
  2401. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2402. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  2403. Global.System.ComponentModel.Browsable(false)> _
  2404. Public ReadOnly Property Count() As Integer
  2405. Get
  2406. Return Me.Rows.Count
  2407. End Get
  2408. End Property
  2409. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2410. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2411. Public Default ReadOnly Property Item(ByVal index As Integer) As BAN0Row
  2412. Get
  2413. Return CType(Me.Rows(index),BAN0Row)
  2414. End Get
  2415. End Property
  2416. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2417. Public Event BAN0RowChanging As BAN0RowChangeEventHandler
  2418. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2419. Public Event BAN0RowChanged As BAN0RowChangeEventHandler
  2420. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2421. Public Event BAN0RowDeleting As BAN0RowChangeEventHandler
  2422. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2423. Public Event BAN0RowDeleted As BAN0RowChangeEventHandler
  2424. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2425. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2426. Public Overloads Sub AddBAN0Row(ByVal row As BAN0Row)
  2427. Me.Rows.Add(row)
  2428. End Sub
  2429. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2430. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2431. Public Overloads Function AddBAN0Row(ByVal CodBanco As String, ByVal CodPais As String, ByVal NombreBanco As String) As BAN0Row
  2432. Dim rowBAN0Row As BAN0Row = CType(Me.NewRow,BAN0Row)
  2433. Dim columnValuesArray() As Object = New Object() {CodBanco, CodPais, NombreBanco}
  2434. rowBAN0Row.ItemArray = columnValuesArray
  2435. Me.Rows.Add(rowBAN0Row)
  2436. Return rowBAN0Row
  2437. End Function
  2438. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2439. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2440. Public Function FindByCodBanco(ByVal CodBanco As String) As BAN0Row
  2441. Return CType(Me.Rows.Find(New Object() {CodBanco}),BAN0Row)
  2442. End Function
  2443. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2444. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2445. Public Overrides Function Clone() As Global.System.Data.DataTable
  2446. Dim cln As BAN0DataTable = CType(MyBase.Clone,BAN0DataTable)
  2447. cln.InitVars
  2448. Return cln
  2449. End Function
  2450. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2451. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2452. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  2453. Return New BAN0DataTable()
  2454. End Function
  2455. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2456. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2457. Friend Sub InitVars()
  2458. Me.columnCodBanco = MyBase.Columns("CodBanco")
  2459. Me.columnCodPais = MyBase.Columns("CodPais")
  2460. Me.columnNombreBanco = MyBase.Columns("NombreBanco")
  2461. End Sub
  2462. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2463. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2464. Private Sub InitClass()
  2465. Me.columnCodBanco = New Global.System.Data.DataColumn("CodBanco", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2466. MyBase.Columns.Add(Me.columnCodBanco)
  2467. Me.columnCodPais = New Global.System.Data.DataColumn("CodPais", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2468. MyBase.Columns.Add(Me.columnCodPais)
  2469. Me.columnNombreBanco = New Global.System.Data.DataColumn("NombreBanco", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2470. MyBase.Columns.Add(Me.columnNombreBanco)
  2471. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodBanco}, true))
  2472. Me.columnCodBanco.AllowDBNull = false
  2473. Me.columnCodBanco.Unique = true
  2474. Me.columnCodBanco.MaxLength = 30
  2475. Me.columnCodPais.MaxLength = 3
  2476. Me.columnNombreBanco.MaxLength = 100
  2477. End Sub
  2478. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2479. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2480. Public Function NewBAN0Row() As BAN0Row
  2481. Return CType(Me.NewRow,BAN0Row)
  2482. End Function
  2483. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2484. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2485. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  2486. Return New BAN0Row(builder)
  2487. End Function
  2488. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2489. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2490. Protected Overrides Function GetRowType() As Global.System.Type
  2491. Return GetType(BAN0Row)
  2492. End Function
  2493. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2494. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2495. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  2496. MyBase.OnRowChanged(e)
  2497. If (Not (Me.BAN0RowChangedEvent) Is Nothing) Then
  2498. RaiseEvent BAN0RowChanged(Me, New BAN0RowChangeEvent(CType(e.Row,BAN0Row), e.Action))
  2499. End If
  2500. End Sub
  2501. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2502. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2503. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  2504. MyBase.OnRowChanging(e)
  2505. If (Not (Me.BAN0RowChangingEvent) Is Nothing) Then
  2506. RaiseEvent BAN0RowChanging(Me, New BAN0RowChangeEvent(CType(e.Row,BAN0Row), e.Action))
  2507. End If
  2508. End Sub
  2509. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2510. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2511. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  2512. MyBase.OnRowDeleted(e)
  2513. If (Not (Me.BAN0RowDeletedEvent) Is Nothing) Then
  2514. RaiseEvent BAN0RowDeleted(Me, New BAN0RowChangeEvent(CType(e.Row,BAN0Row), e.Action))
  2515. End If
  2516. End Sub
  2517. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2518. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2519. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  2520. MyBase.OnRowDeleting(e)
  2521. If (Not (Me.BAN0RowDeletingEvent) Is Nothing) Then
  2522. RaiseEvent BAN0RowDeleting(Me, New BAN0RowChangeEvent(CType(e.Row,BAN0Row), e.Action))
  2523. End If
  2524. End Sub
  2525. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2526. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2527. Public Sub RemoveBAN0Row(ByVal row As BAN0Row)
  2528. Me.Rows.Remove(row)
  2529. End Sub
  2530. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2531. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2532. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  2533. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  2534. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  2535. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  2536. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  2537. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  2538. any1.MinOccurs = New Decimal(0)
  2539. any1.MaxOccurs = Decimal.MaxValue
  2540. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  2541. sequence.Items.Add(any1)
  2542. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  2543. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  2544. any2.MinOccurs = New Decimal(1)
  2545. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  2546. sequence.Items.Add(any2)
  2547. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  2548. attribute1.Name = "namespace"
  2549. attribute1.FixedValue = ds.Namespace
  2550. type.Attributes.Add(attribute1)
  2551. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  2552. attribute2.Name = "tableTypeName"
  2553. attribute2.FixedValue = "BAN0DataTable"
  2554. type.Attributes.Add(attribute2)
  2555. type.Particle = sequence
  2556. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  2557. If xs.Contains(dsSchema.TargetNamespace) Then
  2558. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  2559. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  2560. Try
  2561. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  2562. dsSchema.Write(s1)
  2563. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  2564. Do While schemas.MoveNext
  2565. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  2566. s2.SetLength(0)
  2567. schema.Write(s2)
  2568. If (s1.Length = s2.Length) Then
  2569. s1.Position = 0
  2570. s2.Position = 0
  2571. Do While ((s1.Position <> s1.Length) _
  2572. AndAlso (s1.ReadByte = s2.ReadByte))
  2573. Loop
  2574. If (s1.Position = s1.Length) Then
  2575. Return type
  2576. End If
  2577. End If
  2578. Loop
  2579. Finally
  2580. If (Not (s1) Is Nothing) Then
  2581. s1.Close
  2582. End If
  2583. If (Not (s2) Is Nothing) Then
  2584. s2.Close
  2585. End If
  2586. End Try
  2587. End If
  2588. xs.Add(dsSchema)
  2589. Return type
  2590. End Function
  2591. End Class
  2592. '''<summary>
  2593. '''Represents the strongly named DataTable class.
  2594. '''</summary>
  2595. <Global.System.Serializable(), _
  2596. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  2597. Partial Public Class BAN1DataTable
  2598. Inherits Global.System.Data.TypedTableBase(Of BAN1Row)
  2599. Private columnCodBanco As Global.System.Data.DataColumn
  2600. Private columnCodEmpr As Global.System.Data.DataColumn
  2601. Private columnNumCuenta As Global.System.Data.DataColumn
  2602. Private columnActivo As Global.System.Data.DataColumn
  2603. Private columnId As Global.System.Data.DataColumn
  2604. Private columnNombreCuenta As Global.System.Data.DataColumn
  2605. Private columnTipoCuenta As Global.System.Data.DataColumn
  2606. Private columnCuentaContable As Global.System.Data.DataColumn
  2607. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2608. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2609. Public Sub New()
  2610. MyBase.New
  2611. Me.TableName = "BAN1"
  2612. Me.BeginInit
  2613. Me.InitClass
  2614. Me.EndInit
  2615. End Sub
  2616. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2617. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2618. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  2619. MyBase.New
  2620. Me.TableName = table.TableName
  2621. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  2622. Me.CaseSensitive = table.CaseSensitive
  2623. End If
  2624. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  2625. Me.Locale = table.Locale
  2626. End If
  2627. If (table.Namespace <> table.DataSet.Namespace) Then
  2628. Me.Namespace = table.Namespace
  2629. End If
  2630. Me.Prefix = table.Prefix
  2631. Me.MinimumCapacity = table.MinimumCapacity
  2632. End Sub
  2633. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2634. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2635. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  2636. MyBase.New(info, context)
  2637. Me.InitVars
  2638. End Sub
  2639. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2640. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2641. Public ReadOnly Property CodBancoColumn() As Global.System.Data.DataColumn
  2642. Get
  2643. Return Me.columnCodBanco
  2644. End Get
  2645. End Property
  2646. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2647. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2648. Public ReadOnly Property CodEmprColumn() As Global.System.Data.DataColumn
  2649. Get
  2650. Return Me.columnCodEmpr
  2651. End Get
  2652. End Property
  2653. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2654. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2655. Public ReadOnly Property NumCuentaColumn() As Global.System.Data.DataColumn
  2656. Get
  2657. Return Me.columnNumCuenta
  2658. End Get
  2659. End Property
  2660. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2661. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2662. Public ReadOnly Property ActivoColumn() As Global.System.Data.DataColumn
  2663. Get
  2664. Return Me.columnActivo
  2665. End Get
  2666. End Property
  2667. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2668. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2669. Public ReadOnly Property IdColumn() As Global.System.Data.DataColumn
  2670. Get
  2671. Return Me.columnId
  2672. End Get
  2673. End Property
  2674. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2675. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2676. Public ReadOnly Property NombreCuentaColumn() As Global.System.Data.DataColumn
  2677. Get
  2678. Return Me.columnNombreCuenta
  2679. End Get
  2680. End Property
  2681. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2682. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2683. Public ReadOnly Property TipoCuentaColumn() As Global.System.Data.DataColumn
  2684. Get
  2685. Return Me.columnTipoCuenta
  2686. End Get
  2687. End Property
  2688. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2689. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2690. Public ReadOnly Property CuentaContableColumn() As Global.System.Data.DataColumn
  2691. Get
  2692. Return Me.columnCuentaContable
  2693. End Get
  2694. End Property
  2695. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2696. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  2697. Global.System.ComponentModel.Browsable(false)> _
  2698. Public ReadOnly Property Count() As Integer
  2699. Get
  2700. Return Me.Rows.Count
  2701. End Get
  2702. End Property
  2703. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2704. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2705. Public Default ReadOnly Property Item(ByVal index As Integer) As BAN1Row
  2706. Get
  2707. Return CType(Me.Rows(index),BAN1Row)
  2708. End Get
  2709. End Property
  2710. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2711. Public Event BAN1RowChanging As BAN1RowChangeEventHandler
  2712. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2713. Public Event BAN1RowChanged As BAN1RowChangeEventHandler
  2714. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2715. Public Event BAN1RowDeleting As BAN1RowChangeEventHandler
  2716. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2717. Public Event BAN1RowDeleted As BAN1RowChangeEventHandler
  2718. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2719. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2720. Public Overloads Sub AddBAN1Row(ByVal row As BAN1Row)
  2721. Me.Rows.Add(row)
  2722. End Sub
  2723. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2724. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2725. Public Overloads Function AddBAN1Row(ByVal CodBanco As String, ByVal CodEmpr As String, ByVal NumCuenta As String, ByVal Activo As Boolean, ByVal NombreCuenta As String, ByVal TipoCuenta As String, ByVal CuentaContable As String) As BAN1Row
  2726. Dim rowBAN1Row As BAN1Row = CType(Me.NewRow,BAN1Row)
  2727. Dim columnValuesArray() As Object = New Object() {CodBanco, CodEmpr, NumCuenta, Activo, Nothing, NombreCuenta, TipoCuenta, CuentaContable}
  2728. rowBAN1Row.ItemArray = columnValuesArray
  2729. Me.Rows.Add(rowBAN1Row)
  2730. Return rowBAN1Row
  2731. End Function
  2732. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2733. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2734. Public Function FindById(ByVal Id As Integer) As BAN1Row
  2735. Return CType(Me.Rows.Find(New Object() {Id}),BAN1Row)
  2736. End Function
  2737. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2738. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2739. Public Overrides Function Clone() As Global.System.Data.DataTable
  2740. Dim cln As BAN1DataTable = CType(MyBase.Clone,BAN1DataTable)
  2741. cln.InitVars
  2742. Return cln
  2743. End Function
  2744. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2745. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2746. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  2747. Return New BAN1DataTable()
  2748. End Function
  2749. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2750. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2751. Friend Sub InitVars()
  2752. Me.columnCodBanco = MyBase.Columns("CodBanco")
  2753. Me.columnCodEmpr = MyBase.Columns("CodEmpr")
  2754. Me.columnNumCuenta = MyBase.Columns("NumCuenta")
  2755. Me.columnActivo = MyBase.Columns("Activo")
  2756. Me.columnId = MyBase.Columns("Id")
  2757. Me.columnNombreCuenta = MyBase.Columns("NombreCuenta")
  2758. Me.columnTipoCuenta = MyBase.Columns("TipoCuenta")
  2759. Me.columnCuentaContable = MyBase.Columns("CuentaContable")
  2760. End Sub
  2761. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2762. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2763. Private Sub InitClass()
  2764. Me.columnCodBanco = New Global.System.Data.DataColumn("CodBanco", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2765. MyBase.Columns.Add(Me.columnCodBanco)
  2766. Me.columnCodEmpr = New Global.System.Data.DataColumn("CodEmpr", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2767. MyBase.Columns.Add(Me.columnCodEmpr)
  2768. Me.columnNumCuenta = New Global.System.Data.DataColumn("NumCuenta", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2769. MyBase.Columns.Add(Me.columnNumCuenta)
  2770. Me.columnActivo = New Global.System.Data.DataColumn("Activo", GetType(Boolean), Nothing, Global.System.Data.MappingType.Element)
  2771. MyBase.Columns.Add(Me.columnActivo)
  2772. Me.columnId = New Global.System.Data.DataColumn("Id", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  2773. MyBase.Columns.Add(Me.columnId)
  2774. Me.columnNombreCuenta = New Global.System.Data.DataColumn("NombreCuenta", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2775. MyBase.Columns.Add(Me.columnNombreCuenta)
  2776. Me.columnTipoCuenta = New Global.System.Data.DataColumn("TipoCuenta", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2777. MyBase.Columns.Add(Me.columnTipoCuenta)
  2778. Me.columnCuentaContable = New Global.System.Data.DataColumn("CuentaContable", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  2779. MyBase.Columns.Add(Me.columnCuentaContable)
  2780. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnId}, true))
  2781. Me.columnCodBanco.MaxLength = 30
  2782. Me.columnCodEmpr.MaxLength = 10
  2783. Me.columnNumCuenta.MaxLength = 50
  2784. Me.columnId.AutoIncrement = true
  2785. Me.columnId.AutoIncrementSeed = -1
  2786. Me.columnId.AutoIncrementStep = -1
  2787. Me.columnId.AllowDBNull = false
  2788. Me.columnId.ReadOnly = true
  2789. Me.columnId.Unique = true
  2790. Me.columnNombreCuenta.MaxLength = 100
  2791. Me.columnTipoCuenta.MaxLength = 10
  2792. Me.columnCuentaContable.MaxLength = 30
  2793. End Sub
  2794. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2795. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2796. Public Function NewBAN1Row() As BAN1Row
  2797. Return CType(Me.NewRow,BAN1Row)
  2798. End Function
  2799. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2800. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2801. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  2802. Return New BAN1Row(builder)
  2803. End Function
  2804. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2805. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2806. Protected Overrides Function GetRowType() As Global.System.Type
  2807. Return GetType(BAN1Row)
  2808. End Function
  2809. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2810. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2811. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  2812. MyBase.OnRowChanged(e)
  2813. If (Not (Me.BAN1RowChangedEvent) Is Nothing) Then
  2814. RaiseEvent BAN1RowChanged(Me, New BAN1RowChangeEvent(CType(e.Row,BAN1Row), e.Action))
  2815. End If
  2816. End Sub
  2817. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2818. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2819. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  2820. MyBase.OnRowChanging(e)
  2821. If (Not (Me.BAN1RowChangingEvent) Is Nothing) Then
  2822. RaiseEvent BAN1RowChanging(Me, New BAN1RowChangeEvent(CType(e.Row,BAN1Row), e.Action))
  2823. End If
  2824. End Sub
  2825. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2826. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2827. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  2828. MyBase.OnRowDeleted(e)
  2829. If (Not (Me.BAN1RowDeletedEvent) Is Nothing) Then
  2830. RaiseEvent BAN1RowDeleted(Me, New BAN1RowChangeEvent(CType(e.Row,BAN1Row), e.Action))
  2831. End If
  2832. End Sub
  2833. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2834. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2835. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  2836. MyBase.OnRowDeleting(e)
  2837. If (Not (Me.BAN1RowDeletingEvent) Is Nothing) Then
  2838. RaiseEvent BAN1RowDeleting(Me, New BAN1RowChangeEvent(CType(e.Row,BAN1Row), e.Action))
  2839. End If
  2840. End Sub
  2841. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2842. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2843. Public Sub RemoveBAN1Row(ByVal row As BAN1Row)
  2844. Me.Rows.Remove(row)
  2845. End Sub
  2846. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2847. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2848. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  2849. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  2850. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  2851. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  2852. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  2853. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  2854. any1.MinOccurs = New Decimal(0)
  2855. any1.MaxOccurs = Decimal.MaxValue
  2856. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  2857. sequence.Items.Add(any1)
  2858. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  2859. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  2860. any2.MinOccurs = New Decimal(1)
  2861. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  2862. sequence.Items.Add(any2)
  2863. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  2864. attribute1.Name = "namespace"
  2865. attribute1.FixedValue = ds.Namespace
  2866. type.Attributes.Add(attribute1)
  2867. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  2868. attribute2.Name = "tableTypeName"
  2869. attribute2.FixedValue = "BAN1DataTable"
  2870. type.Attributes.Add(attribute2)
  2871. type.Particle = sequence
  2872. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  2873. If xs.Contains(dsSchema.TargetNamespace) Then
  2874. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  2875. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  2876. Try
  2877. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  2878. dsSchema.Write(s1)
  2879. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  2880. Do While schemas.MoveNext
  2881. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  2882. s2.SetLength(0)
  2883. schema.Write(s2)
  2884. If (s1.Length = s2.Length) Then
  2885. s1.Position = 0
  2886. s2.Position = 0
  2887. Do While ((s1.Position <> s1.Length) _
  2888. AndAlso (s1.ReadByte = s2.ReadByte))
  2889. Loop
  2890. If (s1.Position = s1.Length) Then
  2891. Return type
  2892. End If
  2893. End If
  2894. Loop
  2895. Finally
  2896. If (Not (s1) Is Nothing) Then
  2897. s1.Close
  2898. End If
  2899. If (Not (s2) Is Nothing) Then
  2900. s2.Close
  2901. End If
  2902. End Try
  2903. End If
  2904. xs.Add(dsSchema)
  2905. Return type
  2906. End Function
  2907. End Class
  2908. '''<summary>
  2909. '''Represents the strongly named DataTable class.
  2910. '''</summary>
  2911. <Global.System.Serializable(), _
  2912. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  2913. Partial Public Class FPAGDataTable
  2914. Inherits Global.System.Data.TypedTableBase(Of FPAGRow)
  2915. Private columnCodigo As Global.System.Data.DataColumn
  2916. Private columnNombre As Global.System.Data.DataColumn
  2917. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2918. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2919. Public Sub New()
  2920. MyBase.New
  2921. Me.TableName = "FPAG"
  2922. Me.BeginInit
  2923. Me.InitClass
  2924. Me.EndInit
  2925. End Sub
  2926. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2927. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2928. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  2929. MyBase.New
  2930. Me.TableName = table.TableName
  2931. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  2932. Me.CaseSensitive = table.CaseSensitive
  2933. End If
  2934. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  2935. Me.Locale = table.Locale
  2936. End If
  2937. If (table.Namespace <> table.DataSet.Namespace) Then
  2938. Me.Namespace = table.Namespace
  2939. End If
  2940. Me.Prefix = table.Prefix
  2941. Me.MinimumCapacity = table.MinimumCapacity
  2942. End Sub
  2943. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2944. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2945. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  2946. MyBase.New(info, context)
  2947. Me.InitVars
  2948. End Sub
  2949. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2950. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2951. Public ReadOnly Property CodigoColumn() As Global.System.Data.DataColumn
  2952. Get
  2953. Return Me.columnCodigo
  2954. End Get
  2955. End Property
  2956. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2957. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2958. Public ReadOnly Property NombreColumn() As Global.System.Data.DataColumn
  2959. Get
  2960. Return Me.columnNombre
  2961. End Get
  2962. End Property
  2963. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2964. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  2965. Global.System.ComponentModel.Browsable(false)> _
  2966. Public ReadOnly Property Count() As Integer
  2967. Get
  2968. Return Me.Rows.Count
  2969. End Get
  2970. End Property
  2971. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2972. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2973. Public Default ReadOnly Property Item(ByVal index As Integer) As FPAGRow
  2974. Get
  2975. Return CType(Me.Rows(index),FPAGRow)
  2976. End Get
  2977. End Property
  2978. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2979. Public Event FPAGRowChanging As FPAGRowChangeEventHandler
  2980. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2981. Public Event FPAGRowChanged As FPAGRowChangeEventHandler
  2982. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2983. Public Event FPAGRowDeleting As FPAGRowChangeEventHandler
  2984. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2985. Public Event FPAGRowDeleted As FPAGRowChangeEventHandler
  2986. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2987. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2988. Public Overloads Sub AddFPAGRow(ByVal row As FPAGRow)
  2989. Me.Rows.Add(row)
  2990. End Sub
  2991. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2992. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  2993. Public Overloads Function AddFPAGRow(ByVal Codigo As String, ByVal Nombre As String) As FPAGRow
  2994. Dim rowFPAGRow As FPAGRow = CType(Me.NewRow,FPAGRow)
  2995. Dim columnValuesArray() As Object = New Object() {Codigo, Nombre}
  2996. rowFPAGRow.ItemArray = columnValuesArray
  2997. Me.Rows.Add(rowFPAGRow)
  2998. Return rowFPAGRow
  2999. End Function
  3000. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3001. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3002. Public Function FindByCodigo(ByVal Codigo As String) As FPAGRow
  3003. Return CType(Me.Rows.Find(New Object() {Codigo}),FPAGRow)
  3004. End Function
  3005. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3006. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3007. Public Overrides Function Clone() As Global.System.Data.DataTable
  3008. Dim cln As FPAGDataTable = CType(MyBase.Clone,FPAGDataTable)
  3009. cln.InitVars
  3010. Return cln
  3011. End Function
  3012. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3013. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3014. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  3015. Return New FPAGDataTable()
  3016. End Function
  3017. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3018. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3019. Friend Sub InitVars()
  3020. Me.columnCodigo = MyBase.Columns("Codigo")
  3021. Me.columnNombre = MyBase.Columns("Nombre")
  3022. End Sub
  3023. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3024. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3025. Private Sub InitClass()
  3026. Me.columnCodigo = New Global.System.Data.DataColumn("Codigo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3027. MyBase.Columns.Add(Me.columnCodigo)
  3028. Me.columnNombre = New Global.System.Data.DataColumn("Nombre", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3029. MyBase.Columns.Add(Me.columnNombre)
  3030. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodigo}, true))
  3031. Me.columnCodigo.AllowDBNull = false
  3032. Me.columnCodigo.Unique = true
  3033. Me.columnCodigo.MaxLength = 30
  3034. Me.columnNombre.MaxLength = 100
  3035. End Sub
  3036. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3037. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3038. Public Function NewFPAGRow() As FPAGRow
  3039. Return CType(Me.NewRow,FPAGRow)
  3040. End Function
  3041. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3042. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3043. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  3044. Return New FPAGRow(builder)
  3045. End Function
  3046. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3047. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3048. Protected Overrides Function GetRowType() As Global.System.Type
  3049. Return GetType(FPAGRow)
  3050. End Function
  3051. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3052. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3053. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  3054. MyBase.OnRowChanged(e)
  3055. If (Not (Me.FPAGRowChangedEvent) Is Nothing) Then
  3056. RaiseEvent FPAGRowChanged(Me, New FPAGRowChangeEvent(CType(e.Row,FPAGRow), e.Action))
  3057. End If
  3058. End Sub
  3059. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3060. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3061. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  3062. MyBase.OnRowChanging(e)
  3063. If (Not (Me.FPAGRowChangingEvent) Is Nothing) Then
  3064. RaiseEvent FPAGRowChanging(Me, New FPAGRowChangeEvent(CType(e.Row,FPAGRow), e.Action))
  3065. End If
  3066. End Sub
  3067. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3068. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3069. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  3070. MyBase.OnRowDeleted(e)
  3071. If (Not (Me.FPAGRowDeletedEvent) Is Nothing) Then
  3072. RaiseEvent FPAGRowDeleted(Me, New FPAGRowChangeEvent(CType(e.Row,FPAGRow), e.Action))
  3073. End If
  3074. End Sub
  3075. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3076. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3077. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  3078. MyBase.OnRowDeleting(e)
  3079. If (Not (Me.FPAGRowDeletingEvent) Is Nothing) Then
  3080. RaiseEvent FPAGRowDeleting(Me, New FPAGRowChangeEvent(CType(e.Row,FPAGRow), e.Action))
  3081. End If
  3082. End Sub
  3083. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3084. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3085. Public Sub RemoveFPAGRow(ByVal row As FPAGRow)
  3086. Me.Rows.Remove(row)
  3087. End Sub
  3088. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3089. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3090. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  3091. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  3092. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  3093. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  3094. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  3095. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  3096. any1.MinOccurs = New Decimal(0)
  3097. any1.MaxOccurs = Decimal.MaxValue
  3098. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  3099. sequence.Items.Add(any1)
  3100. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  3101. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  3102. any2.MinOccurs = New Decimal(1)
  3103. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  3104. sequence.Items.Add(any2)
  3105. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  3106. attribute1.Name = "namespace"
  3107. attribute1.FixedValue = ds.Namespace
  3108. type.Attributes.Add(attribute1)
  3109. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  3110. attribute2.Name = "tableTypeName"
  3111. attribute2.FixedValue = "FPAGDataTable"
  3112. type.Attributes.Add(attribute2)
  3113. type.Particle = sequence
  3114. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  3115. If xs.Contains(dsSchema.TargetNamespace) Then
  3116. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  3117. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  3118. Try
  3119. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  3120. dsSchema.Write(s1)
  3121. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  3122. Do While schemas.MoveNext
  3123. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  3124. s2.SetLength(0)
  3125. schema.Write(s2)
  3126. If (s1.Length = s2.Length) Then
  3127. s1.Position = 0
  3128. s2.Position = 0
  3129. Do While ((s1.Position <> s1.Length) _
  3130. AndAlso (s1.ReadByte = s2.ReadByte))
  3131. Loop
  3132. If (s1.Position = s1.Length) Then
  3133. Return type
  3134. End If
  3135. End If
  3136. Loop
  3137. Finally
  3138. If (Not (s1) Is Nothing) Then
  3139. s1.Close
  3140. End If
  3141. If (Not (s2) Is Nothing) Then
  3142. s2.Close
  3143. End If
  3144. End Try
  3145. End If
  3146. xs.Add(dsSchema)
  3147. Return type
  3148. End Function
  3149. End Class
  3150. '''<summary>
  3151. '''Represents the strongly named DataTable class.
  3152. '''</summary>
  3153. <Global.System.Serializable(), _
  3154. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  3155. Partial Public Class PIN0DataTable
  3156. Inherits Global.System.Data.TypedTableBase(Of PIN0Row)
  3157. Private columnDocId As Global.System.Data.DataColumn
  3158. Private columnCodInv As Global.System.Data.DataColumn
  3159. Private columnDocEst As Global.System.Data.DataColumn
  3160. Private columnAsunto As Global.System.Data.DataColumn
  3161. Private columnCodEmpr As Global.System.Data.DataColumn
  3162. Private columnCodIF As Global.System.Data.DataColumn
  3163. Private columnCodEmis As Global.System.Data.DataColumn
  3164. Private columnCodCalRi As Global.System.Data.DataColumn
  3165. Private columnCodECalRi As Global.System.Data.DataColumn
  3166. Private columnOFon As Global.System.Data.DataColumn
  3167. Private columnComent As Global.System.Data.DataColumn
  3168. Private columnJust As Global.System.Data.DataColumn
  3169. Private columnTipoOper As Global.System.Data.DataColumn
  3170. Private columnDocBase As Global.System.Data.DataColumn
  3171. Private columnMontoInv As Global.System.Data.DataColumn
  3172. Private columnPrecio As Global.System.Data.DataColumn
  3173. Private columnRendimiento As Global.System.Data.DataColumn
  3174. Private columnPlazo As Global.System.Data.DataColumn
  3175. Private columnPlazoFact As Global.System.Data.DataColumn
  3176. Private columnIngresos As Global.System.Data.DataColumn
  3177. Private columnFechaDoc As Global.System.Data.DataColumn
  3178. Private columnAutEstado As Global.System.Data.DataColumn
  3179. Private columnTipoMerc As Global.System.Data.DataColumn
  3180. Private columnCodPais As Global.System.Data.DataColumn
  3181. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3182. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3183. Public Sub New()
  3184. MyBase.New
  3185. Me.TableName = "PIN0"
  3186. Me.BeginInit
  3187. Me.InitClass
  3188. Me.EndInit
  3189. End Sub
  3190. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3191. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3192. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  3193. MyBase.New
  3194. Me.TableName = table.TableName
  3195. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  3196. Me.CaseSensitive = table.CaseSensitive
  3197. End If
  3198. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  3199. Me.Locale = table.Locale
  3200. End If
  3201. If (table.Namespace <> table.DataSet.Namespace) Then
  3202. Me.Namespace = table.Namespace
  3203. End If
  3204. Me.Prefix = table.Prefix
  3205. Me.MinimumCapacity = table.MinimumCapacity
  3206. End Sub
  3207. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3208. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3209. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  3210. MyBase.New(info, context)
  3211. Me.InitVars
  3212. End Sub
  3213. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3214. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3215. Public ReadOnly Property DocIdColumn() As Global.System.Data.DataColumn
  3216. Get
  3217. Return Me.columnDocId
  3218. End Get
  3219. End Property
  3220. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3221. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3222. Public ReadOnly Property CodInvColumn() As Global.System.Data.DataColumn
  3223. Get
  3224. Return Me.columnCodInv
  3225. End Get
  3226. End Property
  3227. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3228. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3229. Public ReadOnly Property DocEstColumn() As Global.System.Data.DataColumn
  3230. Get
  3231. Return Me.columnDocEst
  3232. End Get
  3233. End Property
  3234. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3235. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3236. Public ReadOnly Property AsuntoColumn() As Global.System.Data.DataColumn
  3237. Get
  3238. Return Me.columnAsunto
  3239. End Get
  3240. End Property
  3241. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3242. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3243. Public ReadOnly Property CodEmprColumn() As Global.System.Data.DataColumn
  3244. Get
  3245. Return Me.columnCodEmpr
  3246. End Get
  3247. End Property
  3248. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3249. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3250. Public ReadOnly Property CodIFColumn() As Global.System.Data.DataColumn
  3251. Get
  3252. Return Me.columnCodIF
  3253. End Get
  3254. End Property
  3255. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3256. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3257. Public ReadOnly Property CodEmisColumn() As Global.System.Data.DataColumn
  3258. Get
  3259. Return Me.columnCodEmis
  3260. End Get
  3261. End Property
  3262. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3263. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3264. Public ReadOnly Property CodCalRiColumn() As Global.System.Data.DataColumn
  3265. Get
  3266. Return Me.columnCodCalRi
  3267. End Get
  3268. End Property
  3269. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3270. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3271. Public ReadOnly Property CodECalRiColumn() As Global.System.Data.DataColumn
  3272. Get
  3273. Return Me.columnCodECalRi
  3274. End Get
  3275. End Property
  3276. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3277. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3278. Public ReadOnly Property OFonColumn() As Global.System.Data.DataColumn
  3279. Get
  3280. Return Me.columnOFon
  3281. End Get
  3282. End Property
  3283. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3284. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3285. Public ReadOnly Property ComentColumn() As Global.System.Data.DataColumn
  3286. Get
  3287. Return Me.columnComent
  3288. End Get
  3289. End Property
  3290. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3291. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3292. Public ReadOnly Property JustColumn() As Global.System.Data.DataColumn
  3293. Get
  3294. Return Me.columnJust
  3295. End Get
  3296. End Property
  3297. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3298. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3299. Public ReadOnly Property TipoOperColumn() As Global.System.Data.DataColumn
  3300. Get
  3301. Return Me.columnTipoOper
  3302. End Get
  3303. End Property
  3304. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3305. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3306. Public ReadOnly Property DocBaseColumn() As Global.System.Data.DataColumn
  3307. Get
  3308. Return Me.columnDocBase
  3309. End Get
  3310. End Property
  3311. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3312. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3313. Public ReadOnly Property MontoInvColumn() As Global.System.Data.DataColumn
  3314. Get
  3315. Return Me.columnMontoInv
  3316. End Get
  3317. End Property
  3318. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3319. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3320. Public ReadOnly Property PrecioColumn() As Global.System.Data.DataColumn
  3321. Get
  3322. Return Me.columnPrecio
  3323. End Get
  3324. End Property
  3325. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3326. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3327. Public ReadOnly Property RendimientoColumn() As Global.System.Data.DataColumn
  3328. Get
  3329. Return Me.columnRendimiento
  3330. End Get
  3331. End Property
  3332. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3333. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3334. Public ReadOnly Property PlazoColumn() As Global.System.Data.DataColumn
  3335. Get
  3336. Return Me.columnPlazo
  3337. End Get
  3338. End Property
  3339. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3340. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3341. Public ReadOnly Property PlazoFactColumn() As Global.System.Data.DataColumn
  3342. Get
  3343. Return Me.columnPlazoFact
  3344. End Get
  3345. End Property
  3346. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3347. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3348. Public ReadOnly Property IngresosColumn() As Global.System.Data.DataColumn
  3349. Get
  3350. Return Me.columnIngresos
  3351. End Get
  3352. End Property
  3353. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3354. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3355. Public ReadOnly Property FechaDocColumn() As Global.System.Data.DataColumn
  3356. Get
  3357. Return Me.columnFechaDoc
  3358. End Get
  3359. End Property
  3360. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3361. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3362. Public ReadOnly Property AutEstadoColumn() As Global.System.Data.DataColumn
  3363. Get
  3364. Return Me.columnAutEstado
  3365. End Get
  3366. End Property
  3367. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3368. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3369. Public ReadOnly Property TipoMercColumn() As Global.System.Data.DataColumn
  3370. Get
  3371. Return Me.columnTipoMerc
  3372. End Get
  3373. End Property
  3374. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3375. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3376. Public ReadOnly Property CodPaisColumn() As Global.System.Data.DataColumn
  3377. Get
  3378. Return Me.columnCodPais
  3379. End Get
  3380. End Property
  3381. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3382. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  3383. Global.System.ComponentModel.Browsable(false)> _
  3384. Public ReadOnly Property Count() As Integer
  3385. Get
  3386. Return Me.Rows.Count
  3387. End Get
  3388. End Property
  3389. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3390. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3391. Public Default ReadOnly Property Item(ByVal index As Integer) As PIN0Row
  3392. Get
  3393. Return CType(Me.Rows(index),PIN0Row)
  3394. End Get
  3395. End Property
  3396. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3397. Public Event PIN0RowChanging As PIN0RowChangeEventHandler
  3398. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3399. Public Event PIN0RowChanged As PIN0RowChangeEventHandler
  3400. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3401. Public Event PIN0RowDeleting As PIN0RowChangeEventHandler
  3402. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3403. Public Event PIN0RowDeleted As PIN0RowChangeEventHandler
  3404. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3405. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3406. Public Overloads Sub AddPIN0Row(ByVal row As PIN0Row)
  3407. Me.Rows.Add(row)
  3408. End Sub
  3409. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3410. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3411. Public Overloads Function AddPIN0Row( _
  3412. ByVal CodInv As String, _
  3413. ByVal DocEst As String, _
  3414. ByVal Asunto As String, _
  3415. ByVal CodEmpr As String, _
  3416. ByVal CodIF As String, _
  3417. ByVal CodEmis As Integer, _
  3418. ByVal CodCalRi As String, _
  3419. ByVal CodECalRi As String, _
  3420. ByVal OFon As String, _
  3421. ByVal Coment As String, _
  3422. ByVal Just As String, _
  3423. ByVal TipoOper As String, _
  3424. ByVal DocBase As Integer, _
  3425. ByVal MontoInv As Decimal, _
  3426. ByVal Precio As Decimal, _
  3427. ByVal Rendimiento As Decimal, _
  3428. ByVal Plazo As Integer, _
  3429. ByVal PlazoFact As String, _
  3430. ByVal Ingresos As Decimal, _
  3431. ByVal FechaDoc As Date, _
  3432. ByVal AutEstado As String, _
  3433. ByVal TipoMerc As String, _
  3434. ByVal CodPais As String) As PIN0Row
  3435. Dim rowPIN0Row As PIN0Row = CType(Me.NewRow,PIN0Row)
  3436. 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}
  3437. rowPIN0Row.ItemArray = columnValuesArray
  3438. Me.Rows.Add(rowPIN0Row)
  3439. Return rowPIN0Row
  3440. End Function
  3441. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3442. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3443. Public Function FindByDocId(ByVal DocId As Integer) As PIN0Row
  3444. Return CType(Me.Rows.Find(New Object() {DocId}),PIN0Row)
  3445. End Function
  3446. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3447. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3448. Public Overrides Function Clone() As Global.System.Data.DataTable
  3449. Dim cln As PIN0DataTable = CType(MyBase.Clone,PIN0DataTable)
  3450. cln.InitVars
  3451. Return cln
  3452. End Function
  3453. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3454. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3455. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  3456. Return New PIN0DataTable()
  3457. End Function
  3458. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3459. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3460. Friend Sub InitVars()
  3461. Me.columnDocId = MyBase.Columns("DocId")
  3462. Me.columnCodInv = MyBase.Columns("CodInv")
  3463. Me.columnDocEst = MyBase.Columns("DocEst")
  3464. Me.columnAsunto = MyBase.Columns("Asunto")
  3465. Me.columnCodEmpr = MyBase.Columns("CodEmpr")
  3466. Me.columnCodIF = MyBase.Columns("CodIF")
  3467. Me.columnCodEmis = MyBase.Columns("CodEmis")
  3468. Me.columnCodCalRi = MyBase.Columns("CodCalRi")
  3469. Me.columnCodECalRi = MyBase.Columns("CodECalRi")
  3470. Me.columnOFon = MyBase.Columns("OFon")
  3471. Me.columnComent = MyBase.Columns("Coment")
  3472. Me.columnJust = MyBase.Columns("Just")
  3473. Me.columnTipoOper = MyBase.Columns("TipoOper")
  3474. Me.columnDocBase = MyBase.Columns("DocBase")
  3475. Me.columnMontoInv = MyBase.Columns("MontoInv")
  3476. Me.columnPrecio = MyBase.Columns("Precio")
  3477. Me.columnRendimiento = MyBase.Columns("Rendimiento")
  3478. Me.columnPlazo = MyBase.Columns("Plazo")
  3479. Me.columnPlazoFact = MyBase.Columns("PlazoFact")
  3480. Me.columnIngresos = MyBase.Columns("Ingresos")
  3481. Me.columnFechaDoc = MyBase.Columns("FechaDoc")
  3482. Me.columnAutEstado = MyBase.Columns("AutEstado")
  3483. Me.columnTipoMerc = MyBase.Columns("TipoMerc")
  3484. Me.columnCodPais = MyBase.Columns("CodPais")
  3485. End Sub
  3486. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3487. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3488. Private Sub InitClass()
  3489. Me.columnDocId = New Global.System.Data.DataColumn("DocId", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  3490. MyBase.Columns.Add(Me.columnDocId)
  3491. Me.columnCodInv = New Global.System.Data.DataColumn("CodInv", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3492. MyBase.Columns.Add(Me.columnCodInv)
  3493. Me.columnDocEst = New Global.System.Data.DataColumn("DocEst", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3494. MyBase.Columns.Add(Me.columnDocEst)
  3495. Me.columnAsunto = New Global.System.Data.DataColumn("Asunto", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3496. MyBase.Columns.Add(Me.columnAsunto)
  3497. Me.columnCodEmpr = New Global.System.Data.DataColumn("CodEmpr", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3498. MyBase.Columns.Add(Me.columnCodEmpr)
  3499. Me.columnCodIF = New Global.System.Data.DataColumn("CodIF", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3500. MyBase.Columns.Add(Me.columnCodIF)
  3501. Me.columnCodEmis = New Global.System.Data.DataColumn("CodEmis", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  3502. MyBase.Columns.Add(Me.columnCodEmis)
  3503. Me.columnCodCalRi = New Global.System.Data.DataColumn("CodCalRi", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3504. MyBase.Columns.Add(Me.columnCodCalRi)
  3505. Me.columnCodECalRi = New Global.System.Data.DataColumn("CodECalRi", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3506. MyBase.Columns.Add(Me.columnCodECalRi)
  3507. Me.columnOFon = New Global.System.Data.DataColumn("OFon", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3508. MyBase.Columns.Add(Me.columnOFon)
  3509. Me.columnComent = New Global.System.Data.DataColumn("Coment", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3510. MyBase.Columns.Add(Me.columnComent)
  3511. Me.columnJust = New Global.System.Data.DataColumn("Just", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3512. MyBase.Columns.Add(Me.columnJust)
  3513. Me.columnTipoOper = New Global.System.Data.DataColumn("TipoOper", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3514. MyBase.Columns.Add(Me.columnTipoOper)
  3515. Me.columnDocBase = New Global.System.Data.DataColumn("DocBase", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  3516. MyBase.Columns.Add(Me.columnDocBase)
  3517. Me.columnMontoInv = New Global.System.Data.DataColumn("MontoInv", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
  3518. MyBase.Columns.Add(Me.columnMontoInv)
  3519. Me.columnPrecio = New Global.System.Data.DataColumn("Precio", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
  3520. MyBase.Columns.Add(Me.columnPrecio)
  3521. Me.columnRendimiento = New Global.System.Data.DataColumn("Rendimiento", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
  3522. MyBase.Columns.Add(Me.columnRendimiento)
  3523. Me.columnPlazo = New Global.System.Data.DataColumn("Plazo", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  3524. MyBase.Columns.Add(Me.columnPlazo)
  3525. Me.columnPlazoFact = New Global.System.Data.DataColumn("PlazoFact", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3526. MyBase.Columns.Add(Me.columnPlazoFact)
  3527. Me.columnIngresos = New Global.System.Data.DataColumn("Ingresos", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
  3528. MyBase.Columns.Add(Me.columnIngresos)
  3529. Me.columnFechaDoc = New Global.System.Data.DataColumn("FechaDoc", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
  3530. MyBase.Columns.Add(Me.columnFechaDoc)
  3531. Me.columnAutEstado = New Global.System.Data.DataColumn("AutEstado", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3532. MyBase.Columns.Add(Me.columnAutEstado)
  3533. Me.columnTipoMerc = New Global.System.Data.DataColumn("TipoMerc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3534. MyBase.Columns.Add(Me.columnTipoMerc)
  3535. Me.columnCodPais = New Global.System.Data.DataColumn("CodPais", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3536. MyBase.Columns.Add(Me.columnCodPais)
  3537. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnDocId}, true))
  3538. Me.columnDocId.AutoIncrement = true
  3539. Me.columnDocId.AutoIncrementSeed = -1
  3540. Me.columnDocId.AutoIncrementStep = -1
  3541. Me.columnDocId.AllowDBNull = false
  3542. Me.columnDocId.ReadOnly = true
  3543. Me.columnDocId.Unique = true
  3544. Me.columnCodInv.MaxLength = 20
  3545. Me.columnDocEst.MaxLength = 1
  3546. Me.columnAsunto.MaxLength = 100
  3547. Me.columnCodEmpr.MaxLength = 10
  3548. Me.columnCodIF.MaxLength = 10
  3549. Me.columnCodCalRi.MaxLength = 8
  3550. Me.columnCodECalRi.MaxLength = 8
  3551. Me.columnOFon.MaxLength = 10
  3552. Me.columnComent.MaxLength = 100
  3553. Me.columnJust.MaxLength = 100
  3554. Me.columnTipoOper.MaxLength = 1
  3555. Me.columnPlazoFact.MaxLength = 1
  3556. Me.columnAutEstado.MaxLength = 1
  3557. Me.columnTipoMerc.MaxLength = 1
  3558. Me.columnCodPais.MaxLength = 3
  3559. End Sub
  3560. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3561. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3562. Public Function NewPIN0Row() As PIN0Row
  3563. Return CType(Me.NewRow,PIN0Row)
  3564. End Function
  3565. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3566. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3567. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  3568. Return New PIN0Row(builder)
  3569. End Function
  3570. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3571. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3572. Protected Overrides Function GetRowType() As Global.System.Type
  3573. Return GetType(PIN0Row)
  3574. End Function
  3575. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3576. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3577. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  3578. MyBase.OnRowChanged(e)
  3579. If (Not (Me.PIN0RowChangedEvent) Is Nothing) Then
  3580. RaiseEvent PIN0RowChanged(Me, New PIN0RowChangeEvent(CType(e.Row,PIN0Row), e.Action))
  3581. End If
  3582. End Sub
  3583. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3584. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3585. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  3586. MyBase.OnRowChanging(e)
  3587. If (Not (Me.PIN0RowChangingEvent) Is Nothing) Then
  3588. RaiseEvent PIN0RowChanging(Me, New PIN0RowChangeEvent(CType(e.Row,PIN0Row), e.Action))
  3589. End If
  3590. End Sub
  3591. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3592. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3593. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  3594. MyBase.OnRowDeleted(e)
  3595. If (Not (Me.PIN0RowDeletedEvent) Is Nothing) Then
  3596. RaiseEvent PIN0RowDeleted(Me, New PIN0RowChangeEvent(CType(e.Row,PIN0Row), e.Action))
  3597. End If
  3598. End Sub
  3599. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3600. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3601. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  3602. MyBase.OnRowDeleting(e)
  3603. If (Not (Me.PIN0RowDeletingEvent) Is Nothing) Then
  3604. RaiseEvent PIN0RowDeleting(Me, New PIN0RowChangeEvent(CType(e.Row,PIN0Row), e.Action))
  3605. End If
  3606. End Sub
  3607. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3608. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3609. Public Sub RemovePIN0Row(ByVal row As PIN0Row)
  3610. Me.Rows.Remove(row)
  3611. End Sub
  3612. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3613. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3614. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  3615. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  3616. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  3617. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  3618. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  3619. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  3620. any1.MinOccurs = New Decimal(0)
  3621. any1.MaxOccurs = Decimal.MaxValue
  3622. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  3623. sequence.Items.Add(any1)
  3624. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  3625. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  3626. any2.MinOccurs = New Decimal(1)
  3627. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  3628. sequence.Items.Add(any2)
  3629. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  3630. attribute1.Name = "namespace"
  3631. attribute1.FixedValue = ds.Namespace
  3632. type.Attributes.Add(attribute1)
  3633. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  3634. attribute2.Name = "tableTypeName"
  3635. attribute2.FixedValue = "PIN0DataTable"
  3636. type.Attributes.Add(attribute2)
  3637. type.Particle = sequence
  3638. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  3639. If xs.Contains(dsSchema.TargetNamespace) Then
  3640. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  3641. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  3642. Try
  3643. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  3644. dsSchema.Write(s1)
  3645. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  3646. Do While schemas.MoveNext
  3647. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  3648. s2.SetLength(0)
  3649. schema.Write(s2)
  3650. If (s1.Length = s2.Length) Then
  3651. s1.Position = 0
  3652. s2.Position = 0
  3653. Do While ((s1.Position <> s1.Length) _
  3654. AndAlso (s1.ReadByte = s2.ReadByte))
  3655. Loop
  3656. If (s1.Position = s1.Length) Then
  3657. Return type
  3658. End If
  3659. End If
  3660. Loop
  3661. Finally
  3662. If (Not (s1) Is Nothing) Then
  3663. s1.Close
  3664. End If
  3665. If (Not (s2) Is Nothing) Then
  3666. s2.Close
  3667. End If
  3668. End Try
  3669. End If
  3670. xs.Add(dsSchema)
  3671. Return type
  3672. End Function
  3673. End Class
  3674. '''<summary>
  3675. '''Represents the strongly named DataTable class.
  3676. '''</summary>
  3677. <Global.System.Serializable(), _
  3678. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  3679. Partial Public Class CALRIDataTable
  3680. Inherits Global.System.Data.TypedTableBase(Of CALRIRow)
  3681. Private columnCodCalRi As Global.System.Data.DataColumn
  3682. Private columnDescrip As Global.System.Data.DataColumn
  3683. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3684. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3685. Public Sub New()
  3686. MyBase.New
  3687. Me.TableName = "CALRI"
  3688. Me.BeginInit
  3689. Me.InitClass
  3690. Me.EndInit
  3691. End Sub
  3692. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3693. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3694. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  3695. MyBase.New
  3696. Me.TableName = table.TableName
  3697. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  3698. Me.CaseSensitive = table.CaseSensitive
  3699. End If
  3700. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  3701. Me.Locale = table.Locale
  3702. End If
  3703. If (table.Namespace <> table.DataSet.Namespace) Then
  3704. Me.Namespace = table.Namespace
  3705. End If
  3706. Me.Prefix = table.Prefix
  3707. Me.MinimumCapacity = table.MinimumCapacity
  3708. End Sub
  3709. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3710. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3711. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  3712. MyBase.New(info, context)
  3713. Me.InitVars
  3714. End Sub
  3715. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3716. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3717. Public ReadOnly Property CodCalRiColumn() As Global.System.Data.DataColumn
  3718. Get
  3719. Return Me.columnCodCalRi
  3720. End Get
  3721. End Property
  3722. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3723. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3724. Public ReadOnly Property DescripColumn() As Global.System.Data.DataColumn
  3725. Get
  3726. Return Me.columnDescrip
  3727. End Get
  3728. End Property
  3729. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3730. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  3731. Global.System.ComponentModel.Browsable(false)> _
  3732. Public ReadOnly Property Count() As Integer
  3733. Get
  3734. Return Me.Rows.Count
  3735. End Get
  3736. End Property
  3737. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3738. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3739. Public Default ReadOnly Property Item(ByVal index As Integer) As CALRIRow
  3740. Get
  3741. Return CType(Me.Rows(index),CALRIRow)
  3742. End Get
  3743. End Property
  3744. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3745. Public Event CALRIRowChanging As CALRIRowChangeEventHandler
  3746. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3747. Public Event CALRIRowChanged As CALRIRowChangeEventHandler
  3748. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3749. Public Event CALRIRowDeleting As CALRIRowChangeEventHandler
  3750. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3751. Public Event CALRIRowDeleted As CALRIRowChangeEventHandler
  3752. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3753. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3754. Public Overloads Sub AddCALRIRow(ByVal row As CALRIRow)
  3755. Me.Rows.Add(row)
  3756. End Sub
  3757. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3758. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3759. Public Overloads Function AddCALRIRow(ByVal CodCalRi As String, ByVal Descrip As String) As CALRIRow
  3760. Dim rowCALRIRow As CALRIRow = CType(Me.NewRow,CALRIRow)
  3761. Dim columnValuesArray() As Object = New Object() {CodCalRi, Descrip}
  3762. rowCALRIRow.ItemArray = columnValuesArray
  3763. Me.Rows.Add(rowCALRIRow)
  3764. Return rowCALRIRow
  3765. End Function
  3766. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3767. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3768. Public Function FindByCodCalRi(ByVal CodCalRi As String) As CALRIRow
  3769. Return CType(Me.Rows.Find(New Object() {CodCalRi}),CALRIRow)
  3770. End Function
  3771. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3772. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3773. Public Overrides Function Clone() As Global.System.Data.DataTable
  3774. Dim cln As CALRIDataTable = CType(MyBase.Clone,CALRIDataTable)
  3775. cln.InitVars
  3776. Return cln
  3777. End Function
  3778. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3779. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3780. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  3781. Return New CALRIDataTable()
  3782. End Function
  3783. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3784. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3785. Friend Sub InitVars()
  3786. Me.columnCodCalRi = MyBase.Columns("CodCalRi")
  3787. Me.columnDescrip = MyBase.Columns("Descrip")
  3788. End Sub
  3789. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3790. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3791. Private Sub InitClass()
  3792. Me.columnCodCalRi = New Global.System.Data.DataColumn("CodCalRi", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3793. MyBase.Columns.Add(Me.columnCodCalRi)
  3794. Me.columnDescrip = New Global.System.Data.DataColumn("Descrip", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  3795. MyBase.Columns.Add(Me.columnDescrip)
  3796. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodCalRi}, true))
  3797. Me.columnCodCalRi.AllowDBNull = false
  3798. Me.columnCodCalRi.Unique = true
  3799. Me.columnCodCalRi.MaxLength = 8
  3800. Me.columnDescrip.MaxLength = 50
  3801. End Sub
  3802. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3803. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3804. Public Function NewCALRIRow() As CALRIRow
  3805. Return CType(Me.NewRow,CALRIRow)
  3806. End Function
  3807. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3808. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3809. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  3810. Return New CALRIRow(builder)
  3811. End Function
  3812. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3813. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3814. Protected Overrides Function GetRowType() As Global.System.Type
  3815. Return GetType(CALRIRow)
  3816. End Function
  3817. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3818. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3819. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  3820. MyBase.OnRowChanged(e)
  3821. If (Not (Me.CALRIRowChangedEvent) Is Nothing) Then
  3822. RaiseEvent CALRIRowChanged(Me, New CALRIRowChangeEvent(CType(e.Row,CALRIRow), e.Action))
  3823. End If
  3824. End Sub
  3825. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3826. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3827. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  3828. MyBase.OnRowChanging(e)
  3829. If (Not (Me.CALRIRowChangingEvent) Is Nothing) Then
  3830. RaiseEvent CALRIRowChanging(Me, New CALRIRowChangeEvent(CType(e.Row,CALRIRow), e.Action))
  3831. End If
  3832. End Sub
  3833. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3834. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3835. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  3836. MyBase.OnRowDeleted(e)
  3837. If (Not (Me.CALRIRowDeletedEvent) Is Nothing) Then
  3838. RaiseEvent CALRIRowDeleted(Me, New CALRIRowChangeEvent(CType(e.Row,CALRIRow), e.Action))
  3839. End If
  3840. End Sub
  3841. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3842. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3843. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  3844. MyBase.OnRowDeleting(e)
  3845. If (Not (Me.CALRIRowDeletingEvent) Is Nothing) Then
  3846. RaiseEvent CALRIRowDeleting(Me, New CALRIRowChangeEvent(CType(e.Row,CALRIRow), e.Action))
  3847. End If
  3848. End Sub
  3849. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3850. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3851. Public Sub RemoveCALRIRow(ByVal row As CALRIRow)
  3852. Me.Rows.Remove(row)
  3853. End Sub
  3854. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3855. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3856. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  3857. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  3858. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  3859. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  3860. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  3861. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  3862. any1.MinOccurs = New Decimal(0)
  3863. any1.MaxOccurs = Decimal.MaxValue
  3864. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  3865. sequence.Items.Add(any1)
  3866. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  3867. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  3868. any2.MinOccurs = New Decimal(1)
  3869. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  3870. sequence.Items.Add(any2)
  3871. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  3872. attribute1.Name = "namespace"
  3873. attribute1.FixedValue = ds.Namespace
  3874. type.Attributes.Add(attribute1)
  3875. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  3876. attribute2.Name = "tableTypeName"
  3877. attribute2.FixedValue = "CALRIDataTable"
  3878. type.Attributes.Add(attribute2)
  3879. type.Particle = sequence
  3880. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  3881. If xs.Contains(dsSchema.TargetNamespace) Then
  3882. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  3883. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  3884. Try
  3885. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  3886. dsSchema.Write(s1)
  3887. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  3888. Do While schemas.MoveNext
  3889. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  3890. s2.SetLength(0)
  3891. schema.Write(s2)
  3892. If (s1.Length = s2.Length) Then
  3893. s1.Position = 0
  3894. s2.Position = 0
  3895. Do While ((s1.Position <> s1.Length) _
  3896. AndAlso (s1.ReadByte = s2.ReadByte))
  3897. Loop
  3898. If (s1.Position = s1.Length) Then
  3899. Return type
  3900. End If
  3901. End If
  3902. Loop
  3903. Finally
  3904. If (Not (s1) Is Nothing) Then
  3905. s1.Close
  3906. End If
  3907. If (Not (s2) Is Nothing) Then
  3908. s2.Close
  3909. End If
  3910. End Try
  3911. End If
  3912. xs.Add(dsSchema)
  3913. Return type
  3914. End Function
  3915. End Class
  3916. '''<summary>
  3917. '''Represents the strongly named DataTable class.
  3918. '''</summary>
  3919. <Global.System.Serializable(), _
  3920. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  3921. Partial Public Class RPAGDataTable
  3922. Inherits Global.System.Data.TypedTableBase(Of RPAGRow)
  3923. Private columnRPID As Global.System.Data.DataColumn
  3924. Private columnCodInv As Global.System.Data.DataColumn
  3925. Private columnAFavorDe As Global.System.Data.DataColumn
  3926. Private columnFormaPagID As Global.System.Data.DataColumn
  3927. Private columnMontoPago As Global.System.Data.DataColumn
  3928. Private columnFechaPago As Global.System.Data.DataColumn
  3929. Private columnCodBanco As Global.System.Data.DataColumn
  3930. Private columnNumCuenta As Global.System.Data.DataColumn
  3931. Private columnSaldoContable As Global.System.Data.DataColumn
  3932. Private columnConcepto As Global.System.Data.DataColumn
  3933. Private columnUCodigo As Global.System.Data.DataColumn
  3934. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3935. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3936. Public Sub New()
  3937. MyBase.New
  3938. Me.TableName = "RPAG"
  3939. Me.BeginInit
  3940. Me.InitClass
  3941. Me.EndInit
  3942. End Sub
  3943. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3944. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3945. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  3946. MyBase.New
  3947. Me.TableName = table.TableName
  3948. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  3949. Me.CaseSensitive = table.CaseSensitive
  3950. End If
  3951. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  3952. Me.Locale = table.Locale
  3953. End If
  3954. If (table.Namespace <> table.DataSet.Namespace) Then
  3955. Me.Namespace = table.Namespace
  3956. End If
  3957. Me.Prefix = table.Prefix
  3958. Me.MinimumCapacity = table.MinimumCapacity
  3959. End Sub
  3960. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3961. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3962. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  3963. MyBase.New(info, context)
  3964. Me.InitVars
  3965. End Sub
  3966. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3967. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3968. Public ReadOnly Property RPIDColumn() As Global.System.Data.DataColumn
  3969. Get
  3970. Return Me.columnRPID
  3971. End Get
  3972. End Property
  3973. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3974. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3975. Public ReadOnly Property CodInvColumn() As Global.System.Data.DataColumn
  3976. Get
  3977. Return Me.columnCodInv
  3978. End Get
  3979. End Property
  3980. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3981. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3982. Public ReadOnly Property AFavorDeColumn() As Global.System.Data.DataColumn
  3983. Get
  3984. Return Me.columnAFavorDe
  3985. End Get
  3986. End Property
  3987. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3988. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3989. Public ReadOnly Property FormaPagIDColumn() As Global.System.Data.DataColumn
  3990. Get
  3991. Return Me.columnFormaPagID
  3992. End Get
  3993. End Property
  3994. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3995. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  3996. Public ReadOnly Property MontoPagoColumn() As Global.System.Data.DataColumn
  3997. Get
  3998. Return Me.columnMontoPago
  3999. End Get
  4000. End Property
  4001. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4002. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4003. Public ReadOnly Property FechaPagoColumn() As Global.System.Data.DataColumn
  4004. Get
  4005. Return Me.columnFechaPago
  4006. End Get
  4007. End Property
  4008. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4009. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4010. Public ReadOnly Property CodBancoColumn() As Global.System.Data.DataColumn
  4011. Get
  4012. Return Me.columnCodBanco
  4013. End Get
  4014. End Property
  4015. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4016. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4017. Public ReadOnly Property NumCuentaColumn() As Global.System.Data.DataColumn
  4018. Get
  4019. Return Me.columnNumCuenta
  4020. End Get
  4021. End Property
  4022. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4023. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4024. Public ReadOnly Property SaldoContableColumn() As Global.System.Data.DataColumn
  4025. Get
  4026. Return Me.columnSaldoContable
  4027. End Get
  4028. End Property
  4029. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4030. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4031. Public ReadOnly Property ConceptoColumn() As Global.System.Data.DataColumn
  4032. Get
  4033. Return Me.columnConcepto
  4034. End Get
  4035. End Property
  4036. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4037. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4038. Public ReadOnly Property UCodigoColumn() As Global.System.Data.DataColumn
  4039. Get
  4040. Return Me.columnUCodigo
  4041. End Get
  4042. End Property
  4043. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4044. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  4045. Global.System.ComponentModel.Browsable(false)> _
  4046. Public ReadOnly Property Count() As Integer
  4047. Get
  4048. Return Me.Rows.Count
  4049. End Get
  4050. End Property
  4051. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4052. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4053. Public Default ReadOnly Property Item(ByVal index As Integer) As RPAGRow
  4054. Get
  4055. Return CType(Me.Rows(index),RPAGRow)
  4056. End Get
  4057. End Property
  4058. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4059. Public Event RPAGRowChanging As RPAGRowChangeEventHandler
  4060. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4061. Public Event RPAGRowChanged As RPAGRowChangeEventHandler
  4062. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4063. Public Event RPAGRowDeleting As RPAGRowChangeEventHandler
  4064. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4065. Public Event RPAGRowDeleted As RPAGRowChangeEventHandler
  4066. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4067. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4068. Public Overloads Sub AddRPAGRow(ByVal row As RPAGRow)
  4069. Me.Rows.Add(row)
  4070. End Sub
  4071. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4072. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4073. Public Overloads Function AddRPAGRow(ByVal RPID As Integer, ByVal CodInv As String, ByVal AFavorDe As String, ByVal FormaPagID As String, ByVal MontoPago As Decimal, ByVal FechaPago As Date, ByVal CodBanco As String, ByVal NumCuenta As String, ByVal SaldoContable As Decimal, ByVal Concepto As String, ByVal UCodigo As String) As RPAGRow
  4074. Dim rowRPAGRow As RPAGRow = CType(Me.NewRow,RPAGRow)
  4075. Dim columnValuesArray() As Object = New Object() {RPID, CodInv, AFavorDe, FormaPagID, MontoPago, FechaPago, CodBanco, NumCuenta, SaldoContable, Concepto, UCodigo}
  4076. rowRPAGRow.ItemArray = columnValuesArray
  4077. Me.Rows.Add(rowRPAGRow)
  4078. Return rowRPAGRow
  4079. End Function
  4080. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4081. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4082. Public Function FindByRPID(ByVal RPID As Integer) As RPAGRow
  4083. Return CType(Me.Rows.Find(New Object() {RPID}),RPAGRow)
  4084. End Function
  4085. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4086. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4087. Public Overrides Function Clone() As Global.System.Data.DataTable
  4088. Dim cln As RPAGDataTable = CType(MyBase.Clone,RPAGDataTable)
  4089. cln.InitVars
  4090. Return cln
  4091. End Function
  4092. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4093. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4094. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  4095. Return New RPAGDataTable()
  4096. End Function
  4097. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4098. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4099. Friend Sub InitVars()
  4100. Me.columnRPID = MyBase.Columns("RPID")
  4101. Me.columnCodInv = MyBase.Columns("CodInv")
  4102. Me.columnAFavorDe = MyBase.Columns("AFavorDe")
  4103. Me.columnFormaPagID = MyBase.Columns("FormaPagID")
  4104. Me.columnMontoPago = MyBase.Columns("MontoPago")
  4105. Me.columnFechaPago = MyBase.Columns("FechaPago")
  4106. Me.columnCodBanco = MyBase.Columns("CodBanco")
  4107. Me.columnNumCuenta = MyBase.Columns("NumCuenta")
  4108. Me.columnSaldoContable = MyBase.Columns("SaldoContable")
  4109. Me.columnConcepto = MyBase.Columns("Concepto")
  4110. Me.columnUCodigo = MyBase.Columns("UCodigo")
  4111. End Sub
  4112. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4113. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4114. Private Sub InitClass()
  4115. Me.columnRPID = New Global.System.Data.DataColumn("RPID", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  4116. MyBase.Columns.Add(Me.columnRPID)
  4117. Me.columnCodInv = New Global.System.Data.DataColumn("CodInv", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  4118. MyBase.Columns.Add(Me.columnCodInv)
  4119. Me.columnAFavorDe = New Global.System.Data.DataColumn("AFavorDe", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  4120. MyBase.Columns.Add(Me.columnAFavorDe)
  4121. Me.columnFormaPagID = New Global.System.Data.DataColumn("FormaPagID", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  4122. MyBase.Columns.Add(Me.columnFormaPagID)
  4123. Me.columnMontoPago = New Global.System.Data.DataColumn("MontoPago", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
  4124. MyBase.Columns.Add(Me.columnMontoPago)
  4125. Me.columnFechaPago = New Global.System.Data.DataColumn("FechaPago", GetType(Date), Nothing, Global.System.Data.MappingType.Element)
  4126. MyBase.Columns.Add(Me.columnFechaPago)
  4127. Me.columnCodBanco = New Global.System.Data.DataColumn("CodBanco", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  4128. MyBase.Columns.Add(Me.columnCodBanco)
  4129. Me.columnNumCuenta = New Global.System.Data.DataColumn("NumCuenta", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  4130. MyBase.Columns.Add(Me.columnNumCuenta)
  4131. Me.columnSaldoContable = New Global.System.Data.DataColumn("SaldoContable", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
  4132. MyBase.Columns.Add(Me.columnSaldoContable)
  4133. Me.columnConcepto = New Global.System.Data.DataColumn("Concepto", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  4134. MyBase.Columns.Add(Me.columnConcepto)
  4135. Me.columnUCodigo = New Global.System.Data.DataColumn("UCodigo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  4136. MyBase.Columns.Add(Me.columnUCodigo)
  4137. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnRPID}, true))
  4138. Me.columnRPID.AllowDBNull = false
  4139. Me.columnRPID.Unique = true
  4140. Me.columnCodInv.MaxLength = 20
  4141. Me.columnAFavorDe.MaxLength = 100
  4142. Me.columnFormaPagID.MaxLength = 30
  4143. Me.columnCodBanco.MaxLength = 30
  4144. Me.columnNumCuenta.MaxLength = 50
  4145. Me.columnConcepto.MaxLength = 254
  4146. Me.columnUCodigo.MaxLength = 10
  4147. End Sub
  4148. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4149. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4150. Public Function NewRPAGRow() As RPAGRow
  4151. Return CType(Me.NewRow,RPAGRow)
  4152. End Function
  4153. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4154. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4155. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  4156. Return New RPAGRow(builder)
  4157. End Function
  4158. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4159. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4160. Protected Overrides Function GetRowType() As Global.System.Type
  4161. Return GetType(RPAGRow)
  4162. End Function
  4163. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4164. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4165. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4166. MyBase.OnRowChanged(e)
  4167. If (Not (Me.RPAGRowChangedEvent) Is Nothing) Then
  4168. RaiseEvent RPAGRowChanged(Me, New RPAGRowChangeEvent(CType(e.Row,RPAGRow), e.Action))
  4169. End If
  4170. End Sub
  4171. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4172. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4173. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4174. MyBase.OnRowChanging(e)
  4175. If (Not (Me.RPAGRowChangingEvent) Is Nothing) Then
  4176. RaiseEvent RPAGRowChanging(Me, New RPAGRowChangeEvent(CType(e.Row,RPAGRow), e.Action))
  4177. End If
  4178. End Sub
  4179. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4180. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4181. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4182. MyBase.OnRowDeleted(e)
  4183. If (Not (Me.RPAGRowDeletedEvent) Is Nothing) Then
  4184. RaiseEvent RPAGRowDeleted(Me, New RPAGRowChangeEvent(CType(e.Row,RPAGRow), e.Action))
  4185. End If
  4186. End Sub
  4187. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4188. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4189. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4190. MyBase.OnRowDeleting(e)
  4191. If (Not (Me.RPAGRowDeletingEvent) Is Nothing) Then
  4192. RaiseEvent RPAGRowDeleting(Me, New RPAGRowChangeEvent(CType(e.Row,RPAGRow), e.Action))
  4193. End If
  4194. End Sub
  4195. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4196. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4197. Public Sub RemoveRPAGRow(ByVal row As RPAGRow)
  4198. Me.Rows.Remove(row)
  4199. End Sub
  4200. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4201. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4202. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  4203. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  4204. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  4205. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  4206. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  4207. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  4208. any1.MinOccurs = New Decimal(0)
  4209. any1.MaxOccurs = Decimal.MaxValue
  4210. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  4211. sequence.Items.Add(any1)
  4212. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  4213. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  4214. any2.MinOccurs = New Decimal(1)
  4215. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  4216. sequence.Items.Add(any2)
  4217. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  4218. attribute1.Name = "namespace"
  4219. attribute1.FixedValue = ds.Namespace
  4220. type.Attributes.Add(attribute1)
  4221. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  4222. attribute2.Name = "tableTypeName"
  4223. attribute2.FixedValue = "RPAGDataTable"
  4224. type.Attributes.Add(attribute2)
  4225. type.Particle = sequence
  4226. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  4227. If xs.Contains(dsSchema.TargetNamespace) Then
  4228. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  4229. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  4230. Try
  4231. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  4232. dsSchema.Write(s1)
  4233. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  4234. Do While schemas.MoveNext
  4235. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  4236. s2.SetLength(0)
  4237. schema.Write(s2)
  4238. If (s1.Length = s2.Length) Then
  4239. s1.Position = 0
  4240. s2.Position = 0
  4241. Do While ((s1.Position <> s1.Length) _
  4242. AndAlso (s1.ReadByte = s2.ReadByte))
  4243. Loop
  4244. If (s1.Position = s1.Length) Then
  4245. Return type
  4246. End If
  4247. End If
  4248. Loop
  4249. Finally
  4250. If (Not (s1) Is Nothing) Then
  4251. s1.Close
  4252. End If
  4253. If (Not (s2) Is Nothing) Then
  4254. s2.Close
  4255. End If
  4256. End Try
  4257. End If
  4258. xs.Add(dsSchema)
  4259. Return type
  4260. End Function
  4261. End Class
  4262. '''<summary>
  4263. '''Represents the strongly named DataTable class.
  4264. '''</summary>
  4265. <Global.System.Serializable(), _
  4266. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  4267. Partial Public Class BAN2DataTable
  4268. Inherits Global.System.Data.TypedTableBase(Of BAN2Row)
  4269. Private columnCodigo As Global.System.Data.DataColumn
  4270. Private columnNombre As Global.System.Data.DataColumn
  4271. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4272. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4273. Public Sub New()
  4274. MyBase.New
  4275. Me.TableName = "BAN2"
  4276. Me.BeginInit
  4277. Me.InitClass
  4278. Me.EndInit
  4279. End Sub
  4280. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4281. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4282. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  4283. MyBase.New
  4284. Me.TableName = table.TableName
  4285. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  4286. Me.CaseSensitive = table.CaseSensitive
  4287. End If
  4288. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  4289. Me.Locale = table.Locale
  4290. End If
  4291. If (table.Namespace <> table.DataSet.Namespace) Then
  4292. Me.Namespace = table.Namespace
  4293. End If
  4294. Me.Prefix = table.Prefix
  4295. Me.MinimumCapacity = table.MinimumCapacity
  4296. End Sub
  4297. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4298. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4299. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  4300. MyBase.New(info, context)
  4301. Me.InitVars
  4302. End Sub
  4303. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4304. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4305. Public ReadOnly Property CodigoColumn() As Global.System.Data.DataColumn
  4306. Get
  4307. Return Me.columnCodigo
  4308. End Get
  4309. End Property
  4310. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4311. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4312. Public ReadOnly Property NombreColumn() As Global.System.Data.DataColumn
  4313. Get
  4314. Return Me.columnNombre
  4315. End Get
  4316. End Property
  4317. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4318. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  4319. Global.System.ComponentModel.Browsable(false)> _
  4320. Public ReadOnly Property Count() As Integer
  4321. Get
  4322. Return Me.Rows.Count
  4323. End Get
  4324. End Property
  4325. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4326. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4327. Public Default ReadOnly Property Item(ByVal index As Integer) As BAN2Row
  4328. Get
  4329. Return CType(Me.Rows(index),BAN2Row)
  4330. End Get
  4331. End Property
  4332. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4333. Public Event BAN2RowChanging As BAN2RowChangeEventHandler
  4334. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4335. Public Event BAN2RowChanged As BAN2RowChangeEventHandler
  4336. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4337. Public Event BAN2RowDeleting As BAN2RowChangeEventHandler
  4338. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4339. Public Event BAN2RowDeleted As BAN2RowChangeEventHandler
  4340. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4341. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4342. Public Overloads Sub AddBAN2Row(ByVal row As BAN2Row)
  4343. Me.Rows.Add(row)
  4344. End Sub
  4345. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4346. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4347. Public Overloads Function AddBAN2Row(ByVal Codigo As String, ByVal Nombre As String) As BAN2Row
  4348. Dim rowBAN2Row As BAN2Row = CType(Me.NewRow,BAN2Row)
  4349. Dim columnValuesArray() As Object = New Object() {Codigo, Nombre}
  4350. rowBAN2Row.ItemArray = columnValuesArray
  4351. Me.Rows.Add(rowBAN2Row)
  4352. Return rowBAN2Row
  4353. End Function
  4354. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4355. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4356. Public Function FindByCodigo(ByVal Codigo As String) As BAN2Row
  4357. Return CType(Me.Rows.Find(New Object() {Codigo}),BAN2Row)
  4358. End Function
  4359. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4360. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4361. Public Overrides Function Clone() As Global.System.Data.DataTable
  4362. Dim cln As BAN2DataTable = CType(MyBase.Clone,BAN2DataTable)
  4363. cln.InitVars
  4364. Return cln
  4365. End Function
  4366. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4367. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4368. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  4369. Return New BAN2DataTable()
  4370. End Function
  4371. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4372. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4373. Friend Sub InitVars()
  4374. Me.columnCodigo = MyBase.Columns("Codigo")
  4375. Me.columnNombre = MyBase.Columns("Nombre")
  4376. End Sub
  4377. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4378. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4379. Private Sub InitClass()
  4380. Me.columnCodigo = New Global.System.Data.DataColumn("Codigo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  4381. MyBase.Columns.Add(Me.columnCodigo)
  4382. Me.columnNombre = New Global.System.Data.DataColumn("Nombre", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  4383. MyBase.Columns.Add(Me.columnNombre)
  4384. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodigo}, true))
  4385. Me.columnCodigo.AllowDBNull = false
  4386. Me.columnCodigo.Unique = true
  4387. Me.columnCodigo.MaxLength = 10
  4388. Me.columnNombre.MaxLength = 50
  4389. End Sub
  4390. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4391. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4392. Public Function NewBAN2Row() As BAN2Row
  4393. Return CType(Me.NewRow,BAN2Row)
  4394. End Function
  4395. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4396. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4397. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  4398. Return New BAN2Row(builder)
  4399. End Function
  4400. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4401. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4402. Protected Overrides Function GetRowType() As Global.System.Type
  4403. Return GetType(BAN2Row)
  4404. End Function
  4405. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4406. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4407. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4408. MyBase.OnRowChanged(e)
  4409. If (Not (Me.BAN2RowChangedEvent) Is Nothing) Then
  4410. RaiseEvent BAN2RowChanged(Me, New BAN2RowChangeEvent(CType(e.Row,BAN2Row), e.Action))
  4411. End If
  4412. End Sub
  4413. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4414. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4415. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4416. MyBase.OnRowChanging(e)
  4417. If (Not (Me.BAN2RowChangingEvent) Is Nothing) Then
  4418. RaiseEvent BAN2RowChanging(Me, New BAN2RowChangeEvent(CType(e.Row,BAN2Row), e.Action))
  4419. End If
  4420. End Sub
  4421. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4422. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4423. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4424. MyBase.OnRowDeleted(e)
  4425. If (Not (Me.BAN2RowDeletedEvent) Is Nothing) Then
  4426. RaiseEvent BAN2RowDeleted(Me, New BAN2RowChangeEvent(CType(e.Row,BAN2Row), e.Action))
  4427. End If
  4428. End Sub
  4429. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4430. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4431. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4432. MyBase.OnRowDeleting(e)
  4433. If (Not (Me.BAN2RowDeletingEvent) Is Nothing) Then
  4434. RaiseEvent BAN2RowDeleting(Me, New BAN2RowChangeEvent(CType(e.Row,BAN2Row), e.Action))
  4435. End If
  4436. End Sub
  4437. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4438. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4439. Public Sub RemoveBAN2Row(ByVal row As BAN2Row)
  4440. Me.Rows.Remove(row)
  4441. End Sub
  4442. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4443. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4444. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  4445. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  4446. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  4447. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  4448. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  4449. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  4450. any1.MinOccurs = New Decimal(0)
  4451. any1.MaxOccurs = Decimal.MaxValue
  4452. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  4453. sequence.Items.Add(any1)
  4454. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  4455. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  4456. any2.MinOccurs = New Decimal(1)
  4457. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  4458. sequence.Items.Add(any2)
  4459. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  4460. attribute1.Name = "namespace"
  4461. attribute1.FixedValue = ds.Namespace
  4462. type.Attributes.Add(attribute1)
  4463. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  4464. attribute2.Name = "tableTypeName"
  4465. attribute2.FixedValue = "BAN2DataTable"
  4466. type.Attributes.Add(attribute2)
  4467. type.Particle = sequence
  4468. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  4469. If xs.Contains(dsSchema.TargetNamespace) Then
  4470. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  4471. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  4472. Try
  4473. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  4474. dsSchema.Write(s1)
  4475. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  4476. Do While schemas.MoveNext
  4477. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  4478. s2.SetLength(0)
  4479. schema.Write(s2)
  4480. If (s1.Length = s2.Length) Then
  4481. s1.Position = 0
  4482. s2.Position = 0
  4483. Do While ((s1.Position <> s1.Length) _
  4484. AndAlso (s1.ReadByte = s2.ReadByte))
  4485. Loop
  4486. If (s1.Position = s1.Length) Then
  4487. Return type
  4488. End If
  4489. End If
  4490. Loop
  4491. Finally
  4492. If (Not (s1) Is Nothing) Then
  4493. s1.Close
  4494. End If
  4495. If (Not (s2) Is Nothing) Then
  4496. s2.Close
  4497. End If
  4498. End Try
  4499. End If
  4500. xs.Add(dsSchema)
  4501. Return type
  4502. End Function
  4503. End Class
  4504. '''<summary>
  4505. '''Represents the strongly named DataTable class.
  4506. '''</summary>
  4507. <Global.System.Serializable(), _
  4508. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  4509. Partial Public Class OFONDataTable
  4510. Inherits Global.System.Data.TypedTableBase(Of OFONRow)
  4511. Private columnCodigo As Global.System.Data.DataColumn
  4512. Private columnDescrip As Global.System.Data.DataColumn
  4513. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4514. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4515. Public Sub New()
  4516. MyBase.New
  4517. Me.TableName = "OFON"
  4518. Me.BeginInit
  4519. Me.InitClass
  4520. Me.EndInit
  4521. End Sub
  4522. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4523. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4524. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  4525. MyBase.New
  4526. Me.TableName = table.TableName
  4527. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  4528. Me.CaseSensitive = table.CaseSensitive
  4529. End If
  4530. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  4531. Me.Locale = table.Locale
  4532. End If
  4533. If (table.Namespace <> table.DataSet.Namespace) Then
  4534. Me.Namespace = table.Namespace
  4535. End If
  4536. Me.Prefix = table.Prefix
  4537. Me.MinimumCapacity = table.MinimumCapacity
  4538. End Sub
  4539. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4540. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4541. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  4542. MyBase.New(info, context)
  4543. Me.InitVars
  4544. End Sub
  4545. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4546. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4547. Public ReadOnly Property CodigoColumn() As Global.System.Data.DataColumn
  4548. Get
  4549. Return Me.columnCodigo
  4550. End Get
  4551. End Property
  4552. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4553. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4554. Public ReadOnly Property DescripColumn() As Global.System.Data.DataColumn
  4555. Get
  4556. Return Me.columnDescrip
  4557. End Get
  4558. End Property
  4559. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4560. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  4561. Global.System.ComponentModel.Browsable(false)> _
  4562. Public ReadOnly Property Count() As Integer
  4563. Get
  4564. Return Me.Rows.Count
  4565. End Get
  4566. End Property
  4567. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4568. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4569. Public Default ReadOnly Property Item(ByVal index As Integer) As OFONRow
  4570. Get
  4571. Return CType(Me.Rows(index),OFONRow)
  4572. End Get
  4573. End Property
  4574. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4575. Public Event OFONRowChanging As OFONRowChangeEventHandler
  4576. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4577. Public Event OFONRowChanged As OFONRowChangeEventHandler
  4578. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4579. Public Event OFONRowDeleting As OFONRowChangeEventHandler
  4580. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4581. Public Event OFONRowDeleted As OFONRowChangeEventHandler
  4582. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4583. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4584. Public Overloads Sub AddOFONRow(ByVal row As OFONRow)
  4585. Me.Rows.Add(row)
  4586. End Sub
  4587. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4588. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4589. Public Overloads Function AddOFONRow(ByVal Codigo As String, ByVal Descrip As String) As OFONRow
  4590. Dim rowOFONRow As OFONRow = CType(Me.NewRow,OFONRow)
  4591. Dim columnValuesArray() As Object = New Object() {Codigo, Descrip}
  4592. rowOFONRow.ItemArray = columnValuesArray
  4593. Me.Rows.Add(rowOFONRow)
  4594. Return rowOFONRow
  4595. End Function
  4596. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4597. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4598. Public Function FindByCodigo(ByVal Codigo As String) As OFONRow
  4599. Return CType(Me.Rows.Find(New Object() {Codigo}),OFONRow)
  4600. End Function
  4601. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4602. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4603. Public Overrides Function Clone() As Global.System.Data.DataTable
  4604. Dim cln As OFONDataTable = CType(MyBase.Clone,OFONDataTable)
  4605. cln.InitVars
  4606. Return cln
  4607. End Function
  4608. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4609. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4610. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  4611. Return New OFONDataTable()
  4612. End Function
  4613. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4614. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4615. Friend Sub InitVars()
  4616. Me.columnCodigo = MyBase.Columns("Codigo")
  4617. Me.columnDescrip = MyBase.Columns("Descrip")
  4618. End Sub
  4619. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4620. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4621. Private Sub InitClass()
  4622. Me.columnCodigo = New Global.System.Data.DataColumn("Codigo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  4623. MyBase.Columns.Add(Me.columnCodigo)
  4624. Me.columnDescrip = New Global.System.Data.DataColumn("Descrip", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  4625. MyBase.Columns.Add(Me.columnDescrip)
  4626. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodigo}, true))
  4627. Me.columnCodigo.AllowDBNull = false
  4628. Me.columnCodigo.Unique = true
  4629. Me.columnCodigo.MaxLength = 4
  4630. Me.columnDescrip.MaxLength = 50
  4631. End Sub
  4632. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4633. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4634. Public Function NewOFONRow() As OFONRow
  4635. Return CType(Me.NewRow,OFONRow)
  4636. End Function
  4637. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4638. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4639. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  4640. Return New OFONRow(builder)
  4641. End Function
  4642. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4643. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4644. Protected Overrides Function GetRowType() As Global.System.Type
  4645. Return GetType(OFONRow)
  4646. End Function
  4647. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4648. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4649. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4650. MyBase.OnRowChanged(e)
  4651. If (Not (Me.OFONRowChangedEvent) Is Nothing) Then
  4652. RaiseEvent OFONRowChanged(Me, New OFONRowChangeEvent(CType(e.Row,OFONRow), e.Action))
  4653. End If
  4654. End Sub
  4655. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4656. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4657. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4658. MyBase.OnRowChanging(e)
  4659. If (Not (Me.OFONRowChangingEvent) Is Nothing) Then
  4660. RaiseEvent OFONRowChanging(Me, New OFONRowChangeEvent(CType(e.Row,OFONRow), e.Action))
  4661. End If
  4662. End Sub
  4663. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4664. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4665. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4666. MyBase.OnRowDeleted(e)
  4667. If (Not (Me.OFONRowDeletedEvent) Is Nothing) Then
  4668. RaiseEvent OFONRowDeleted(Me, New OFONRowChangeEvent(CType(e.Row,OFONRow), e.Action))
  4669. End If
  4670. End Sub
  4671. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4672. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4673. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4674. MyBase.OnRowDeleting(e)
  4675. If (Not (Me.OFONRowDeletingEvent) Is Nothing) Then
  4676. RaiseEvent OFONRowDeleting(Me, New OFONRowChangeEvent(CType(e.Row,OFONRow), e.Action))
  4677. End If
  4678. End Sub
  4679. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4680. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4681. Public Sub RemoveOFONRow(ByVal row As OFONRow)
  4682. Me.Rows.Remove(row)
  4683. End Sub
  4684. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4685. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4686. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  4687. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  4688. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  4689. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  4690. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  4691. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  4692. any1.MinOccurs = New Decimal(0)
  4693. any1.MaxOccurs = Decimal.MaxValue
  4694. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  4695. sequence.Items.Add(any1)
  4696. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  4697. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  4698. any2.MinOccurs = New Decimal(1)
  4699. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  4700. sequence.Items.Add(any2)
  4701. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  4702. attribute1.Name = "namespace"
  4703. attribute1.FixedValue = ds.Namespace
  4704. type.Attributes.Add(attribute1)
  4705. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  4706. attribute2.Name = "tableTypeName"
  4707. attribute2.FixedValue = "OFONDataTable"
  4708. type.Attributes.Add(attribute2)
  4709. type.Particle = sequence
  4710. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  4711. If xs.Contains(dsSchema.TargetNamespace) Then
  4712. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  4713. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  4714. Try
  4715. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  4716. dsSchema.Write(s1)
  4717. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  4718. Do While schemas.MoveNext
  4719. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  4720. s2.SetLength(0)
  4721. schema.Write(s2)
  4722. If (s1.Length = s2.Length) Then
  4723. s1.Position = 0
  4724. s2.Position = 0
  4725. Do While ((s1.Position <> s1.Length) _
  4726. AndAlso (s1.ReadByte = s2.ReadByte))
  4727. Loop
  4728. If (s1.Position = s1.Length) Then
  4729. Return type
  4730. End If
  4731. End If
  4732. Loop
  4733. Finally
  4734. If (Not (s1) Is Nothing) Then
  4735. s1.Close
  4736. End If
  4737. If (Not (s2) Is Nothing) Then
  4738. s2.Close
  4739. End If
  4740. End Try
  4741. End If
  4742. xs.Add(dsSchema)
  4743. Return type
  4744. End Function
  4745. End Class
  4746. '''<summary>
  4747. '''Represents the strongly named DataTable class.
  4748. '''</summary>
  4749. <Global.System.Serializable(), _
  4750. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  4751. Partial Public Class DEP0DataTable
  4752. Inherits Global.System.Data.TypedTableBase(Of DEP0Row)
  4753. Private columnDEPID As Global.System.Data.DataColumn
  4754. Private columnDEPNombre As Global.System.Data.DataColumn
  4755. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4756. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4757. Public Sub New()
  4758. MyBase.New
  4759. Me.TableName = "DEP0"
  4760. Me.BeginInit
  4761. Me.InitClass
  4762. Me.EndInit
  4763. End Sub
  4764. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4765. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4766. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  4767. MyBase.New
  4768. Me.TableName = table.TableName
  4769. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  4770. Me.CaseSensitive = table.CaseSensitive
  4771. End If
  4772. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  4773. Me.Locale = table.Locale
  4774. End If
  4775. If (table.Namespace <> table.DataSet.Namespace) Then
  4776. Me.Namespace = table.Namespace
  4777. End If
  4778. Me.Prefix = table.Prefix
  4779. Me.MinimumCapacity = table.MinimumCapacity
  4780. End Sub
  4781. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4782. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4783. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  4784. MyBase.New(info, context)
  4785. Me.InitVars
  4786. End Sub
  4787. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4788. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4789. Public ReadOnly Property DEPIDColumn() As Global.System.Data.DataColumn
  4790. Get
  4791. Return Me.columnDEPID
  4792. End Get
  4793. End Property
  4794. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4795. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4796. Public ReadOnly Property DEPNombreColumn() As Global.System.Data.DataColumn
  4797. Get
  4798. Return Me.columnDEPNombre
  4799. End Get
  4800. End Property
  4801. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4802. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  4803. Global.System.ComponentModel.Browsable(false)> _
  4804. Public ReadOnly Property Count() As Integer
  4805. Get
  4806. Return Me.Rows.Count
  4807. End Get
  4808. End Property
  4809. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4810. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4811. Public Default ReadOnly Property Item(ByVal index As Integer) As DEP0Row
  4812. Get
  4813. Return CType(Me.Rows(index),DEP0Row)
  4814. End Get
  4815. End Property
  4816. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4817. Public Event DEP0RowChanging As DEP0RowChangeEventHandler
  4818. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4819. Public Event DEP0RowChanged As DEP0RowChangeEventHandler
  4820. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4821. Public Event DEP0RowDeleting As DEP0RowChangeEventHandler
  4822. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4823. Public Event DEP0RowDeleted As DEP0RowChangeEventHandler
  4824. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4825. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4826. Public Overloads Sub AddDEP0Row(ByVal row As DEP0Row)
  4827. Me.Rows.Add(row)
  4828. End Sub
  4829. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4830. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4831. Public Overloads Function AddDEP0Row(ByVal DEPID As String, ByVal DEPNombre As String) As DEP0Row
  4832. Dim rowDEP0Row As DEP0Row = CType(Me.NewRow,DEP0Row)
  4833. Dim columnValuesArray() As Object = New Object() {DEPID, DEPNombre}
  4834. rowDEP0Row.ItemArray = columnValuesArray
  4835. Me.Rows.Add(rowDEP0Row)
  4836. Return rowDEP0Row
  4837. End Function
  4838. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4839. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4840. Public Function FindByDEPID(ByVal DEPID As String) As DEP0Row
  4841. Return CType(Me.Rows.Find(New Object() {DEPID}),DEP0Row)
  4842. End Function
  4843. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4844. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4845. Public Overrides Function Clone() As Global.System.Data.DataTable
  4846. Dim cln As DEP0DataTable = CType(MyBase.Clone,DEP0DataTable)
  4847. cln.InitVars
  4848. Return cln
  4849. End Function
  4850. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4851. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4852. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  4853. Return New DEP0DataTable()
  4854. End Function
  4855. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4856. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4857. Friend Sub InitVars()
  4858. Me.columnDEPID = MyBase.Columns("DEPID")
  4859. Me.columnDEPNombre = MyBase.Columns("DEPNombre")
  4860. End Sub
  4861. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4862. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4863. Private Sub InitClass()
  4864. Me.columnDEPID = New Global.System.Data.DataColumn("DEPID", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  4865. MyBase.Columns.Add(Me.columnDEPID)
  4866. Me.columnDEPNombre = New Global.System.Data.DataColumn("DEPNombre", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  4867. MyBase.Columns.Add(Me.columnDEPNombre)
  4868. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnDEPID}, true))
  4869. Me.columnDEPID.AllowDBNull = false
  4870. Me.columnDEPID.Unique = true
  4871. Me.columnDEPID.MaxLength = 30
  4872. Me.columnDEPNombre.AllowDBNull = false
  4873. Me.columnDEPNombre.MaxLength = 100
  4874. End Sub
  4875. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4876. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4877. Public Function NewDEP0Row() As DEP0Row
  4878. Return CType(Me.NewRow,DEP0Row)
  4879. End Function
  4880. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4881. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4882. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  4883. Return New DEP0Row(builder)
  4884. End Function
  4885. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4886. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4887. Protected Overrides Function GetRowType() As Global.System.Type
  4888. Return GetType(DEP0Row)
  4889. End Function
  4890. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4891. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4892. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4893. MyBase.OnRowChanged(e)
  4894. If (Not (Me.DEP0RowChangedEvent) Is Nothing) Then
  4895. RaiseEvent DEP0RowChanged(Me, New DEP0RowChangeEvent(CType(e.Row,DEP0Row), e.Action))
  4896. End If
  4897. End Sub
  4898. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4899. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4900. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4901. MyBase.OnRowChanging(e)
  4902. If (Not (Me.DEP0RowChangingEvent) Is Nothing) Then
  4903. RaiseEvent DEP0RowChanging(Me, New DEP0RowChangeEvent(CType(e.Row,DEP0Row), e.Action))
  4904. End If
  4905. End Sub
  4906. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4907. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4908. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4909. MyBase.OnRowDeleted(e)
  4910. If (Not (Me.DEP0RowDeletedEvent) Is Nothing) Then
  4911. RaiseEvent DEP0RowDeleted(Me, New DEP0RowChangeEvent(CType(e.Row,DEP0Row), e.Action))
  4912. End If
  4913. End Sub
  4914. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4915. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4916. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  4917. MyBase.OnRowDeleting(e)
  4918. If (Not (Me.DEP0RowDeletingEvent) Is Nothing) Then
  4919. RaiseEvent DEP0RowDeleting(Me, New DEP0RowChangeEvent(CType(e.Row,DEP0Row), e.Action))
  4920. End If
  4921. End Sub
  4922. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4923. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4924. Public Sub RemoveDEP0Row(ByVal row As DEP0Row)
  4925. Me.Rows.Remove(row)
  4926. End Sub
  4927. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4928. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  4929. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  4930. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  4931. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  4932. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  4933. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  4934. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  4935. any1.MinOccurs = New Decimal(0)
  4936. any1.MaxOccurs = Decimal.MaxValue
  4937. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  4938. sequence.Items.Add(any1)
  4939. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  4940. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  4941. any2.MinOccurs = New Decimal(1)
  4942. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  4943. sequence.Items.Add(any2)
  4944. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  4945. attribute1.Name = "namespace"
  4946. attribute1.FixedValue = ds.Namespace
  4947. type.Attributes.Add(attribute1)
  4948. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  4949. attribute2.Name = "tableTypeName"
  4950. attribute2.FixedValue = "DEP0DataTable"
  4951. type.Attributes.Add(attribute2)
  4952. type.Particle = sequence
  4953. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  4954. If xs.Contains(dsSchema.TargetNamespace) Then
  4955. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  4956. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  4957. Try
  4958. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  4959. dsSchema.Write(s1)
  4960. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  4961. Do While schemas.MoveNext
  4962. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  4963. s2.SetLength(0)
  4964. schema.Write(s2)
  4965. If (s1.Length = s2.Length) Then
  4966. s1.Position = 0
  4967. s2.Position = 0
  4968. Do While ((s1.Position <> s1.Length) _
  4969. AndAlso (s1.ReadByte = s2.ReadByte))
  4970. Loop
  4971. If (s1.Position = s1.Length) Then
  4972. Return type
  4973. End If
  4974. End If
  4975. Loop
  4976. Finally
  4977. If (Not (s1) Is Nothing) Then
  4978. s1.Close
  4979. End If
  4980. If (Not (s2) Is Nothing) Then
  4981. s2.Close
  4982. End If
  4983. End Try
  4984. End If
  4985. xs.Add(dsSchema)
  4986. Return type
  4987. End Function
  4988. End Class
  4989. '''<summary>
  4990. '''Represents the strongly named DataTable class.
  4991. '''</summary>
  4992. <Global.System.Serializable(), _
  4993. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  4994. Partial Public Class USR0DataTable
  4995. Inherits Global.System.Data.TypedTableBase(Of USR0Row)
  4996. Private columnUCodigo As Global.System.Data.DataColumn
  4997. Private columnUNombre As Global.System.Data.DataColumn
  4998. Private columnDEPID As Global.System.Data.DataColumn
  4999. Private columnSUser As Global.System.Data.DataColumn
  5000. Private columnBloqueado As Global.System.Data.DataColumn
  5001. Private columnClave1 As Global.System.Data.DataColumn
  5002. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5003. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5004. Public Sub New()
  5005. MyBase.New
  5006. Me.TableName = "USR0"
  5007. Me.BeginInit
  5008. Me.InitClass
  5009. Me.EndInit
  5010. End Sub
  5011. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5012. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5013. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  5014. MyBase.New
  5015. Me.TableName = table.TableName
  5016. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  5017. Me.CaseSensitive = table.CaseSensitive
  5018. End If
  5019. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  5020. Me.Locale = table.Locale
  5021. End If
  5022. If (table.Namespace <> table.DataSet.Namespace) Then
  5023. Me.Namespace = table.Namespace
  5024. End If
  5025. Me.Prefix = table.Prefix
  5026. Me.MinimumCapacity = table.MinimumCapacity
  5027. End Sub
  5028. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5029. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5030. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  5031. MyBase.New(info, context)
  5032. Me.InitVars
  5033. End Sub
  5034. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5035. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5036. Public ReadOnly Property UCodigoColumn() As Global.System.Data.DataColumn
  5037. Get
  5038. Return Me.columnUCodigo
  5039. End Get
  5040. End Property
  5041. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5042. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5043. Public ReadOnly Property UNombreColumn() As Global.System.Data.DataColumn
  5044. Get
  5045. Return Me.columnUNombre
  5046. End Get
  5047. End Property
  5048. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5049. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5050. Public ReadOnly Property DEPIDColumn() As Global.System.Data.DataColumn
  5051. Get
  5052. Return Me.columnDEPID
  5053. End Get
  5054. End Property
  5055. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5056. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5057. Public ReadOnly Property SUserColumn() As Global.System.Data.DataColumn
  5058. Get
  5059. Return Me.columnSUser
  5060. End Get
  5061. End Property
  5062. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5063. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5064. Public ReadOnly Property BloqueadoColumn() As Global.System.Data.DataColumn
  5065. Get
  5066. Return Me.columnBloqueado
  5067. End Get
  5068. End Property
  5069. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5070. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5071. Public ReadOnly Property Clave1Column() As Global.System.Data.DataColumn
  5072. Get
  5073. Return Me.columnClave1
  5074. End Get
  5075. End Property
  5076. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5077. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  5078. Global.System.ComponentModel.Browsable(false)> _
  5079. Public ReadOnly Property Count() As Integer
  5080. Get
  5081. Return Me.Rows.Count
  5082. End Get
  5083. End Property
  5084. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5085. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5086. Public Default ReadOnly Property Item(ByVal index As Integer) As USR0Row
  5087. Get
  5088. Return CType(Me.Rows(index),USR0Row)
  5089. End Get
  5090. End Property
  5091. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5092. Public Event USR0RowChanging As USR0RowChangeEventHandler
  5093. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5094. Public Event USR0RowChanged As USR0RowChangeEventHandler
  5095. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5096. Public Event USR0RowDeleting As USR0RowChangeEventHandler
  5097. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5098. Public Event USR0RowDeleted As USR0RowChangeEventHandler
  5099. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5100. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5101. Public Overloads Sub AddUSR0Row(ByVal row As USR0Row)
  5102. Me.Rows.Add(row)
  5103. End Sub
  5104. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5105. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5106. Public Overloads Function AddUSR0Row(ByVal UCodigo As String, ByVal UNombre As String, ByVal DEPID As String, ByVal SUser As Byte, ByVal Bloqueado As Byte, ByVal Clave1 As String) As USR0Row
  5107. Dim rowUSR0Row As USR0Row = CType(Me.NewRow,USR0Row)
  5108. Dim columnValuesArray() As Object = New Object() {UCodigo, UNombre, DEPID, SUser, Bloqueado, Clave1}
  5109. rowUSR0Row.ItemArray = columnValuesArray
  5110. Me.Rows.Add(rowUSR0Row)
  5111. Return rowUSR0Row
  5112. End Function
  5113. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5114. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5115. Public Function FindByUCodigo(ByVal UCodigo As String) As USR0Row
  5116. Return CType(Me.Rows.Find(New Object() {UCodigo}),USR0Row)
  5117. End Function
  5118. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5119. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5120. Public Overrides Function Clone() As Global.System.Data.DataTable
  5121. Dim cln As USR0DataTable = CType(MyBase.Clone,USR0DataTable)
  5122. cln.InitVars
  5123. Return cln
  5124. End Function
  5125. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5126. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5127. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  5128. Return New USR0DataTable()
  5129. End Function
  5130. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5131. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5132. Friend Sub InitVars()
  5133. Me.columnUCodigo = MyBase.Columns("UCodigo")
  5134. Me.columnUNombre = MyBase.Columns("UNombre")
  5135. Me.columnDEPID = MyBase.Columns("DEPID")
  5136. Me.columnSUser = MyBase.Columns("SUser")
  5137. Me.columnBloqueado = MyBase.Columns("Bloqueado")
  5138. Me.columnClave1 = MyBase.Columns("Clave1")
  5139. End Sub
  5140. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5141. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5142. Private Sub InitClass()
  5143. Me.columnUCodigo = New Global.System.Data.DataColumn("UCodigo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  5144. MyBase.Columns.Add(Me.columnUCodigo)
  5145. Me.columnUNombre = New Global.System.Data.DataColumn("UNombre", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  5146. MyBase.Columns.Add(Me.columnUNombre)
  5147. Me.columnDEPID = New Global.System.Data.DataColumn("DEPID", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  5148. MyBase.Columns.Add(Me.columnDEPID)
  5149. Me.columnSUser = New Global.System.Data.DataColumn("SUser", GetType(Byte), Nothing, Global.System.Data.MappingType.Element)
  5150. MyBase.Columns.Add(Me.columnSUser)
  5151. Me.columnBloqueado = New Global.System.Data.DataColumn("Bloqueado", GetType(Byte), Nothing, Global.System.Data.MappingType.Element)
  5152. MyBase.Columns.Add(Me.columnBloqueado)
  5153. Me.columnClave1 = New Global.System.Data.DataColumn("Clave1", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  5154. MyBase.Columns.Add(Me.columnClave1)
  5155. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnUCodigo}, true))
  5156. Me.columnUCodigo.AllowDBNull = false
  5157. Me.columnUCodigo.Unique = true
  5158. Me.columnUCodigo.MaxLength = 10
  5159. Me.columnUNombre.MaxLength = 50
  5160. Me.columnDEPID.MaxLength = 30
  5161. Me.columnClave1.MaxLength = 30
  5162. End Sub
  5163. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5164. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5165. Public Function NewUSR0Row() As USR0Row
  5166. Return CType(Me.NewRow,USR0Row)
  5167. End Function
  5168. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5169. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5170. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  5171. Return New USR0Row(builder)
  5172. End Function
  5173. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5174. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5175. Protected Overrides Function GetRowType() As Global.System.Type
  5176. Return GetType(USR0Row)
  5177. End Function
  5178. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5179. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5180. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  5181. MyBase.OnRowChanged(e)
  5182. If (Not (Me.USR0RowChangedEvent) Is Nothing) Then
  5183. RaiseEvent USR0RowChanged(Me, New USR0RowChangeEvent(CType(e.Row,USR0Row), e.Action))
  5184. End If
  5185. End Sub
  5186. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5187. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5188. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  5189. MyBase.OnRowChanging(e)
  5190. If (Not (Me.USR0RowChangingEvent) Is Nothing) Then
  5191. RaiseEvent USR0RowChanging(Me, New USR0RowChangeEvent(CType(e.Row,USR0Row), e.Action))
  5192. End If
  5193. End Sub
  5194. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5195. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5196. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  5197. MyBase.OnRowDeleted(e)
  5198. If (Not (Me.USR0RowDeletedEvent) Is Nothing) Then
  5199. RaiseEvent USR0RowDeleted(Me, New USR0RowChangeEvent(CType(e.Row,USR0Row), e.Action))
  5200. End If
  5201. End Sub
  5202. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5203. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5204. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  5205. MyBase.OnRowDeleting(e)
  5206. If (Not (Me.USR0RowDeletingEvent) Is Nothing) Then
  5207. RaiseEvent USR0RowDeleting(Me, New USR0RowChangeEvent(CType(e.Row,USR0Row), e.Action))
  5208. End If
  5209. End Sub
  5210. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5211. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5212. Public Sub RemoveUSR0Row(ByVal row As USR0Row)
  5213. Me.Rows.Remove(row)
  5214. End Sub
  5215. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5216. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5217. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  5218. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  5219. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  5220. Dim ds As InversionesDataSet1 = New InversionesDataSet1()
  5221. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  5222. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  5223. any1.MinOccurs = New Decimal(0)
  5224. any1.MaxOccurs = Decimal.MaxValue
  5225. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  5226. sequence.Items.Add(any1)
  5227. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  5228. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  5229. any2.MinOccurs = New Decimal(1)
  5230. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  5231. sequence.Items.Add(any2)
  5232. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  5233. attribute1.Name = "namespace"
  5234. attribute1.FixedValue = ds.Namespace
  5235. type.Attributes.Add(attribute1)
  5236. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  5237. attribute2.Name = "tableTypeName"
  5238. attribute2.FixedValue = "USR0DataTable"
  5239. type.Attributes.Add(attribute2)
  5240. type.Particle = sequence
  5241. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  5242. If xs.Contains(dsSchema.TargetNamespace) Then
  5243. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  5244. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  5245. Try
  5246. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  5247. dsSchema.Write(s1)
  5248. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  5249. Do While schemas.MoveNext
  5250. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  5251. s2.SetLength(0)
  5252. schema.Write(s2)
  5253. If (s1.Length = s2.Length) Then
  5254. s1.Position = 0
  5255. s2.Position = 0
  5256. Do While ((s1.Position <> s1.Length) _
  5257. AndAlso (s1.ReadByte = s2.ReadByte))
  5258. Loop
  5259. If (s1.Position = s1.Length) Then
  5260. Return type
  5261. End If
  5262. End If
  5263. Loop
  5264. Finally
  5265. If (Not (s1) Is Nothing) Then
  5266. s1.Close
  5267. End If
  5268. If (Not (s2) Is Nothing) Then
  5269. s2.Close
  5270. End If
  5271. End Try
  5272. End If
  5273. xs.Add(dsSchema)
  5274. Return type
  5275. End Function
  5276. End Class
  5277. '''<summary>
  5278. '''Represents strongly named DataRow class.
  5279. '''</summary>
  5280. Partial Public Class ECALRIRow
  5281. Inherits Global.System.Data.DataRow
  5282. Private tableECALRI As ECALRIDataTable
  5283. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5284. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5285. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  5286. MyBase.New(rb)
  5287. Me.tableECALRI = CType(Me.Table,ECALRIDataTable)
  5288. End Sub
  5289. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5290. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5291. Public Property CodECalRi() As String
  5292. Get
  5293. Return CType(Me(Me.tableECALRI.CodECalRiColumn),String)
  5294. End Get
  5295. Set
  5296. Me(Me.tableECALRI.CodECalRiColumn) = value
  5297. End Set
  5298. End Property
  5299. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5300. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5301. Public Property Descrip() As String
  5302. Get
  5303. Try
  5304. Return CType(Me(Me.tableECALRI.DescripColumn),String)
  5305. Catch e As Global.System.InvalidCastException
  5306. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Descrip' de la tabla 'ECALRI' es DBNull.", e)
  5307. End Try
  5308. End Get
  5309. Set
  5310. Me(Me.tableECALRI.DescripColumn) = value
  5311. End Set
  5312. End Property
  5313. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5314. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5315. Public Function IsDescripNull() As Boolean
  5316. Return Me.IsNull(Me.tableECALRI.DescripColumn)
  5317. End Function
  5318. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5319. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5320. Public Sub SetDescripNull()
  5321. Me(Me.tableECALRI.DescripColumn) = Global.System.Convert.DBNull
  5322. End Sub
  5323. End Class
  5324. '''<summary>
  5325. '''Represents strongly named DataRow class.
  5326. '''</summary>
  5327. Partial Public Class EMISRow
  5328. Inherits Global.System.Data.DataRow
  5329. Private tableEMIS As EMISDataTable
  5330. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5331. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5332. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  5333. MyBase.New(rb)
  5334. Me.tableEMIS = CType(Me.Table,EMISDataTable)
  5335. End Sub
  5336. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5337. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5338. Public Property CodEmis() As Integer
  5339. Get
  5340. Return CType(Me(Me.tableEMIS.CodEmisColumn),Integer)
  5341. End Get
  5342. Set
  5343. Me(Me.tableEMIS.CodEmisColumn) = value
  5344. End Set
  5345. End Property
  5346. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5347. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5348. Public Property Descrip() As String
  5349. Get
  5350. Try
  5351. Return CType(Me(Me.tableEMIS.DescripColumn),String)
  5352. Catch e As Global.System.InvalidCastException
  5353. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Descrip' de la tabla 'EMIS' es DBNull.", e)
  5354. End Try
  5355. End Get
  5356. Set
  5357. Me(Me.tableEMIS.DescripColumn) = value
  5358. End Set
  5359. End Property
  5360. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5361. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5362. Public Property Estado() As String
  5363. Get
  5364. Try
  5365. Return CType(Me(Me.tableEMIS.EstadoColumn),String)
  5366. Catch e As Global.System.InvalidCastException
  5367. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Estado' de la tabla 'EMIS' es DBNull.", e)
  5368. End Try
  5369. End Get
  5370. Set
  5371. Me(Me.tableEMIS.EstadoColumn) = value
  5372. End Set
  5373. End Property
  5374. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5375. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5376. Public Function IsDescripNull() As Boolean
  5377. Return Me.IsNull(Me.tableEMIS.DescripColumn)
  5378. End Function
  5379. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5380. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5381. Public Sub SetDescripNull()
  5382. Me(Me.tableEMIS.DescripColumn) = Global.System.Convert.DBNull
  5383. End Sub
  5384. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5385. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5386. Public Function IsEstadoNull() As Boolean
  5387. Return Me.IsNull(Me.tableEMIS.EstadoColumn)
  5388. End Function
  5389. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5390. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5391. Public Sub SetEstadoNull()
  5392. Me(Me.tableEMIS.EstadoColumn) = Global.System.Convert.DBNull
  5393. End Sub
  5394. End Class
  5395. '''<summary>
  5396. '''Represents strongly named DataRow class.
  5397. '''</summary>
  5398. Partial Public Class EMPRRow
  5399. Inherits Global.System.Data.DataRow
  5400. Private tableEMPR As EMPRDataTable
  5401. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5402. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5403. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  5404. MyBase.New(rb)
  5405. Me.tableEMPR = CType(Me.Table,EMPRDataTable)
  5406. End Sub
  5407. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5408. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5409. Public Property CodEmpr() As String
  5410. Get
  5411. Return CType(Me(Me.tableEMPR.CodEmprColumn),String)
  5412. End Get
  5413. Set
  5414. Me(Me.tableEMPR.CodEmprColumn) = value
  5415. End Set
  5416. End Property
  5417. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5418. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5419. Public Property Descrip() As String
  5420. Get
  5421. Try
  5422. Return CType(Me(Me.tableEMPR.DescripColumn),String)
  5423. Catch e As Global.System.InvalidCastException
  5424. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Descrip' de la tabla 'EMPR' es DBNull.", e)
  5425. End Try
  5426. End Get
  5427. Set
  5428. Me(Me.tableEMPR.DescripColumn) = value
  5429. End Set
  5430. End Property
  5431. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5432. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5433. Public Property SAP_BD() As String
  5434. Get
  5435. Try
  5436. Return CType(Me(Me.tableEMPR.SAP_BDColumn),String)
  5437. Catch e As Global.System.InvalidCastException
  5438. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'SAP_BD' de la tabla 'EMPR' es DBNull.", e)
  5439. End Try
  5440. End Get
  5441. Set
  5442. Me(Me.tableEMPR.SAP_BDColumn) = value
  5443. End Set
  5444. End Property
  5445. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5446. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5447. Public Function IsDescripNull() As Boolean
  5448. Return Me.IsNull(Me.tableEMPR.DescripColumn)
  5449. End Function
  5450. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5451. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5452. Public Sub SetDescripNull()
  5453. Me(Me.tableEMPR.DescripColumn) = Global.System.Convert.DBNull
  5454. End Sub
  5455. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5456. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5457. Public Function IsSAP_BDNull() As Boolean
  5458. Return Me.IsNull(Me.tableEMPR.SAP_BDColumn)
  5459. End Function
  5460. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5461. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5462. Public Sub SetSAP_BDNull()
  5463. Me(Me.tableEMPR.SAP_BDColumn) = Global.System.Convert.DBNull
  5464. End Sub
  5465. End Class
  5466. '''<summary>
  5467. '''Represents strongly named DataRow class.
  5468. '''</summary>
  5469. Partial Public Class INFIRow
  5470. Inherits Global.System.Data.DataRow
  5471. Private tableINFI As INFIDataTable
  5472. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5473. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5474. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  5475. MyBase.New(rb)
  5476. Me.tableINFI = CType(Me.Table,INFIDataTable)
  5477. End Sub
  5478. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5479. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5480. Public Property CodIF() As String
  5481. Get
  5482. Return CType(Me(Me.tableINFI.CodIFColumn),String)
  5483. End Get
  5484. Set
  5485. Me(Me.tableINFI.CodIFColumn) = value
  5486. End Set
  5487. End Property
  5488. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5489. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5490. Public Property Descrip() As String
  5491. Get
  5492. Try
  5493. Return CType(Me(Me.tableINFI.DescripColumn),String)
  5494. Catch e As Global.System.InvalidCastException
  5495. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Descrip' de la tabla 'INFI' es DBNull.", e)
  5496. End Try
  5497. End Get
  5498. Set
  5499. Me(Me.tableINFI.DescripColumn) = value
  5500. End Set
  5501. End Property
  5502. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5503. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5504. Public Property Tipo() As String
  5505. Get
  5506. Try
  5507. Return CType(Me(Me.tableINFI.TipoColumn),String)
  5508. Catch e As Global.System.InvalidCastException
  5509. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Tipo' de la tabla 'INFI' es DBNull.", e)
  5510. End Try
  5511. End Get
  5512. Set
  5513. Me(Me.tableINFI.TipoColumn) = value
  5514. End Set
  5515. End Property
  5516. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5517. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5518. Public Function IsDescripNull() As Boolean
  5519. Return Me.IsNull(Me.tableINFI.DescripColumn)
  5520. End Function
  5521. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5522. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5523. Public Sub SetDescripNull()
  5524. Me(Me.tableINFI.DescripColumn) = Global.System.Convert.DBNull
  5525. End Sub
  5526. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5527. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5528. Public Function IsTipoNull() As Boolean
  5529. Return Me.IsNull(Me.tableINFI.TipoColumn)
  5530. End Function
  5531. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5532. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5533. Public Sub SetTipoNull()
  5534. Me(Me.tableINFI.TipoColumn) = Global.System.Convert.DBNull
  5535. End Sub
  5536. End Class
  5537. '''<summary>
  5538. '''Represents strongly named DataRow class.
  5539. '''</summary>
  5540. Partial Public Class PAISRow
  5541. Inherits Global.System.Data.DataRow
  5542. Private tablePAIS As PAISDataTable
  5543. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5544. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5545. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  5546. MyBase.New(rb)
  5547. Me.tablePAIS = CType(Me.Table,PAISDataTable)
  5548. End Sub
  5549. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5550. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5551. Public Property CodPais() As String
  5552. Get
  5553. Return CType(Me(Me.tablePAIS.CodPaisColumn),String)
  5554. End Get
  5555. Set
  5556. Me(Me.tablePAIS.CodPaisColumn) = value
  5557. End Set
  5558. End Property
  5559. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5560. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5561. Public Property Descrip() As String
  5562. Get
  5563. Try
  5564. Return CType(Me(Me.tablePAIS.DescripColumn),String)
  5565. Catch e As Global.System.InvalidCastException
  5566. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Descrip' de la tabla 'PAIS' es DBNull.", e)
  5567. End Try
  5568. End Get
  5569. Set
  5570. Me(Me.tablePAIS.DescripColumn) = value
  5571. End Set
  5572. End Property
  5573. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5574. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5575. Public Property RelInv() As String
  5576. Get
  5577. Try
  5578. Return CType(Me(Me.tablePAIS.RelInvColumn),String)
  5579. Catch e As Global.System.InvalidCastException
  5580. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'RelInv' de la tabla 'PAIS' es DBNull.", e)
  5581. End Try
  5582. End Get
  5583. Set
  5584. Me(Me.tablePAIS.RelInvColumn) = value
  5585. End Set
  5586. End Property
  5587. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5588. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5589. Public Function IsDescripNull() As Boolean
  5590. Return Me.IsNull(Me.tablePAIS.DescripColumn)
  5591. End Function
  5592. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5593. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5594. Public Sub SetDescripNull()
  5595. Me(Me.tablePAIS.DescripColumn) = Global.System.Convert.DBNull
  5596. End Sub
  5597. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5598. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5599. Public Function IsRelInvNull() As Boolean
  5600. Return Me.IsNull(Me.tablePAIS.RelInvColumn)
  5601. End Function
  5602. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5603. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5604. Public Sub SetRelInvNull()
  5605. Me(Me.tablePAIS.RelInvColumn) = Global.System.Convert.DBNull
  5606. End Sub
  5607. End Class
  5608. '''<summary>
  5609. '''Represents strongly named DataRow class.
  5610. '''</summary>
  5611. Partial Public Class SP_InventarioMasterRow
  5612. Inherits Global.System.Data.DataRow
  5613. Private tableSP_InventarioMaster As SP_InventarioMasterDataTable
  5614. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5615. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5616. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  5617. MyBase.New(rb)
  5618. Me.tableSP_InventarioMaster = CType(Me.Table,SP_InventarioMasterDataTable)
  5619. End Sub
  5620. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5621. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5622. Public Property CodInv() As String
  5623. Get
  5624. Try
  5625. Return CType(Me(Me.tableSP_InventarioMaster.CodInvColumn),String)
  5626. Catch e As Global.System.InvalidCastException
  5627. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodInv' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  5628. End Try
  5629. End Get
  5630. Set
  5631. Me(Me.tableSP_InventarioMaster.CodInvColumn) = value
  5632. End Set
  5633. End Property
  5634. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5635. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5636. Public Property CodIF() As String
  5637. Get
  5638. Try
  5639. Return CType(Me(Me.tableSP_InventarioMaster.CodIFColumn),String)
  5640. Catch e As Global.System.InvalidCastException
  5641. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodIF' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  5642. End Try
  5643. End Get
  5644. Set
  5645. Me(Me.tableSP_InventarioMaster.CodIFColumn) = value
  5646. End Set
  5647. End Property
  5648. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5649. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5650. Public Property Estado() As String
  5651. Get
  5652. Try
  5653. Return CType(Me(Me.tableSP_InventarioMaster.EstadoColumn),String)
  5654. Catch e As Global.System.InvalidCastException
  5655. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Estado' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  5656. End Try
  5657. End Get
  5658. Set
  5659. Me(Me.tableSP_InventarioMaster.EstadoColumn) = value
  5660. End Set
  5661. End Property
  5662. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5663. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5664. Public Property CodEmpr() As String
  5665. Get
  5666. Try
  5667. Return CType(Me(Me.tableSP_InventarioMaster.CodEmprColumn),String)
  5668. Catch e As Global.System.InvalidCastException
  5669. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodEmpr' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  5670. End Try
  5671. End Get
  5672. Set
  5673. Me(Me.tableSP_InventarioMaster.CodEmprColumn) = value
  5674. End Set
  5675. End Property
  5676. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5677. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5678. Public Property NombreManIF() As String
  5679. Get
  5680. Try
  5681. Return CType(Me(Me.tableSP_InventarioMaster.NombreManIFColumn),String)
  5682. Catch e As Global.System.InvalidCastException
  5683. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'NombreManIF' de la tabla 'SP_InventarioMaster' es DBNull."& _
  5684. "", e)
  5685. End Try
  5686. End Get
  5687. Set
  5688. Me(Me.tableSP_InventarioMaster.NombreManIFColumn) = value
  5689. End Set
  5690. End Property
  5691. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5692. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5693. Public Property CodManIF() As String
  5694. Get
  5695. Try
  5696. Return CType(Me(Me.tableSP_InventarioMaster.CodManIFColumn),String)
  5697. Catch e As Global.System.InvalidCastException
  5698. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodManIF' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  5699. End Try
  5700. End Get
  5701. Set
  5702. Me(Me.tableSP_InventarioMaster.CodManIFColumn) = value
  5703. End Set
  5704. End Property
  5705. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5706. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5707. Public Property CodEmis() As Integer
  5708. Get
  5709. Try
  5710. Return CType(Me(Me.tableSP_InventarioMaster.CodEmisColumn),Integer)
  5711. Catch e As Global.System.InvalidCastException
  5712. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodEmis' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  5713. End Try
  5714. End Get
  5715. Set
  5716. Me(Me.tableSP_InventarioMaster.CodEmisColumn) = value
  5717. End Set
  5718. End Property
  5719. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5720. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5721. Public Property iCasaBanco() As String
  5722. Get
  5723. Try
  5724. Return CType(Me(Me.tableSP_InventarioMaster.iCasaBancoColumn),String)
  5725. Catch e As Global.System.InvalidCastException
  5726. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'iCasaBanco' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  5727. End Try
  5728. End Get
  5729. Set
  5730. Me(Me.tableSP_InventarioMaster.iCasaBancoColumn) = value
  5731. End Set
  5732. End Property
  5733. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5734. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5735. Public Property vCasaBanco() As String
  5736. Get
  5737. Try
  5738. Return CType(Me(Me.tableSP_InventarioMaster.vCasaBancoColumn),String)
  5739. Catch e As Global.System.InvalidCastException
  5740. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'vCasaBanco' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  5741. End Try
  5742. End Get
  5743. Set
  5744. Me(Me.tableSP_InventarioMaster.vCasaBancoColumn) = value
  5745. End Set
  5746. End Property
  5747. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5748. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5749. Public Property TipoMerc() As String
  5750. Get
  5751. Try
  5752. Return CType(Me(Me.tableSP_InventarioMaster.TipoMercColumn),String)
  5753. Catch e As Global.System.InvalidCastException
  5754. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'TipoMerc' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  5755. End Try
  5756. End Get
  5757. Set
  5758. Me(Me.tableSP_InventarioMaster.TipoMercColumn) = value
  5759. End Set
  5760. End Property
  5761. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5762. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5763. Public Property CodCalRi() As String
  5764. Get
  5765. Try
  5766. Return CType(Me(Me.tableSP_InventarioMaster.CodCalRiColumn),String)
  5767. Catch e As Global.System.InvalidCastException
  5768. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodCalRi' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  5769. End Try
  5770. End Get
  5771. Set
  5772. Me(Me.tableSP_InventarioMaster.CodCalRiColumn) = value
  5773. End Set
  5774. End Property
  5775. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5776. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5777. Public Property CodECalRi() As String
  5778. Get
  5779. Try
  5780. Return CType(Me(Me.tableSP_InventarioMaster.CodECalRiColumn),String)
  5781. Catch e As Global.System.InvalidCastException
  5782. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodECalRi' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  5783. End Try
  5784. End Get
  5785. Set
  5786. Me(Me.tableSP_InventarioMaster.CodECalRiColumn) = value
  5787. End Set
  5788. End Property
  5789. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5790. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5791. Public Property ValorNominal() As Decimal
  5792. Get
  5793. Try
  5794. Return CType(Me(Me.tableSP_InventarioMaster.ValorNominalColumn),Decimal)
  5795. Catch e As Global.System.InvalidCastException
  5796. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'ValorNominal' de la tabla 'SP_InventarioMaster' es DBNull"& _
  5797. ".", e)
  5798. End Try
  5799. End Get
  5800. Set
  5801. Me(Me.tableSP_InventarioMaster.ValorNominalColumn) = value
  5802. End Set
  5803. End Property
  5804. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5805. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5806. Public Function IsCodInvNull() As Boolean
  5807. Return Me.IsNull(Me.tableSP_InventarioMaster.CodInvColumn)
  5808. End Function
  5809. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5810. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5811. Public Sub SetCodInvNull()
  5812. Me(Me.tableSP_InventarioMaster.CodInvColumn) = Global.System.Convert.DBNull
  5813. End Sub
  5814. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5815. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5816. Public Function IsCodIFNull() As Boolean
  5817. Return Me.IsNull(Me.tableSP_InventarioMaster.CodIFColumn)
  5818. End Function
  5819. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5820. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5821. Public Sub SetCodIFNull()
  5822. Me(Me.tableSP_InventarioMaster.CodIFColumn) = Global.System.Convert.DBNull
  5823. End Sub
  5824. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5825. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5826. Public Function IsEstadoNull() As Boolean
  5827. Return Me.IsNull(Me.tableSP_InventarioMaster.EstadoColumn)
  5828. End Function
  5829. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5830. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5831. Public Sub SetEstadoNull()
  5832. Me(Me.tableSP_InventarioMaster.EstadoColumn) = Global.System.Convert.DBNull
  5833. End Sub
  5834. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5835. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5836. Public Function IsCodEmprNull() As Boolean
  5837. Return Me.IsNull(Me.tableSP_InventarioMaster.CodEmprColumn)
  5838. End Function
  5839. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5840. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5841. Public Sub SetCodEmprNull()
  5842. Me(Me.tableSP_InventarioMaster.CodEmprColumn) = Global.System.Convert.DBNull
  5843. End Sub
  5844. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5845. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5846. Public Function IsNombreManIFNull() As Boolean
  5847. Return Me.IsNull(Me.tableSP_InventarioMaster.NombreManIFColumn)
  5848. End Function
  5849. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5850. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5851. Public Sub SetNombreManIFNull()
  5852. Me(Me.tableSP_InventarioMaster.NombreManIFColumn) = Global.System.Convert.DBNull
  5853. End Sub
  5854. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5855. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5856. Public Function IsCodManIFNull() As Boolean
  5857. Return Me.IsNull(Me.tableSP_InventarioMaster.CodManIFColumn)
  5858. End Function
  5859. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5860. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5861. Public Sub SetCodManIFNull()
  5862. Me(Me.tableSP_InventarioMaster.CodManIFColumn) = Global.System.Convert.DBNull
  5863. End Sub
  5864. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5865. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5866. Public Function IsCodEmisNull() As Boolean
  5867. Return Me.IsNull(Me.tableSP_InventarioMaster.CodEmisColumn)
  5868. End Function
  5869. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5870. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5871. Public Sub SetCodEmisNull()
  5872. Me(Me.tableSP_InventarioMaster.CodEmisColumn) = Global.System.Convert.DBNull
  5873. End Sub
  5874. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5875. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5876. Public Function IsiCasaBancoNull() As Boolean
  5877. Return Me.IsNull(Me.tableSP_InventarioMaster.iCasaBancoColumn)
  5878. End Function
  5879. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5880. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5881. Public Sub SetiCasaBancoNull()
  5882. Me(Me.tableSP_InventarioMaster.iCasaBancoColumn) = Global.System.Convert.DBNull
  5883. End Sub
  5884. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5885. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5886. Public Function IsvCasaBancoNull() As Boolean
  5887. Return Me.IsNull(Me.tableSP_InventarioMaster.vCasaBancoColumn)
  5888. End Function
  5889. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5890. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5891. Public Sub SetvCasaBancoNull()
  5892. Me(Me.tableSP_InventarioMaster.vCasaBancoColumn) = Global.System.Convert.DBNull
  5893. End Sub
  5894. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5895. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5896. Public Function IsTipoMercNull() As Boolean
  5897. Return Me.IsNull(Me.tableSP_InventarioMaster.TipoMercColumn)
  5898. End Function
  5899. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5900. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5901. Public Sub SetTipoMercNull()
  5902. Me(Me.tableSP_InventarioMaster.TipoMercColumn) = Global.System.Convert.DBNull
  5903. End Sub
  5904. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5905. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5906. Public Function IsCodCalRiNull() As Boolean
  5907. Return Me.IsNull(Me.tableSP_InventarioMaster.CodCalRiColumn)
  5908. End Function
  5909. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5910. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5911. Public Sub SetCodCalRiNull()
  5912. Me(Me.tableSP_InventarioMaster.CodCalRiColumn) = Global.System.Convert.DBNull
  5913. End Sub
  5914. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5915. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5916. Public Function IsCodECalRiNull() As Boolean
  5917. Return Me.IsNull(Me.tableSP_InventarioMaster.CodECalRiColumn)
  5918. End Function
  5919. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5920. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5921. Public Sub SetCodECalRiNull()
  5922. Me(Me.tableSP_InventarioMaster.CodECalRiColumn) = Global.System.Convert.DBNull
  5923. End Sub
  5924. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5925. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5926. Public Function IsValorNominalNull() As Boolean
  5927. Return Me.IsNull(Me.tableSP_InventarioMaster.ValorNominalColumn)
  5928. End Function
  5929. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5930. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5931. Public Sub SetValorNominalNull()
  5932. Me(Me.tableSP_InventarioMaster.ValorNominalColumn) = Global.System.Convert.DBNull
  5933. End Sub
  5934. End Class
  5935. '''<summary>
  5936. '''Represents strongly named DataRow class.
  5937. '''</summary>
  5938. Partial Public Class BAN0Row
  5939. Inherits Global.System.Data.DataRow
  5940. Private tableBAN0 As BAN0DataTable
  5941. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5942. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5943. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  5944. MyBase.New(rb)
  5945. Me.tableBAN0 = CType(Me.Table,BAN0DataTable)
  5946. End Sub
  5947. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5948. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5949. Public Property CodBanco() As String
  5950. Get
  5951. Return CType(Me(Me.tableBAN0.CodBancoColumn),String)
  5952. End Get
  5953. Set
  5954. Me(Me.tableBAN0.CodBancoColumn) = value
  5955. End Set
  5956. End Property
  5957. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5958. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5959. Public Property CodPais() As String
  5960. Get
  5961. Try
  5962. Return CType(Me(Me.tableBAN0.CodPaisColumn),String)
  5963. Catch e As Global.System.InvalidCastException
  5964. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodPais' de la tabla 'BAN0' es DBNull.", e)
  5965. End Try
  5966. End Get
  5967. Set
  5968. Me(Me.tableBAN0.CodPaisColumn) = value
  5969. End Set
  5970. End Property
  5971. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5972. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5973. Public Property NombreBanco() As String
  5974. Get
  5975. Try
  5976. Return CType(Me(Me.tableBAN0.NombreBancoColumn),String)
  5977. Catch e As Global.System.InvalidCastException
  5978. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'NombreBanco' de la tabla 'BAN0' es DBNull.", e)
  5979. End Try
  5980. End Get
  5981. Set
  5982. Me(Me.tableBAN0.NombreBancoColumn) = value
  5983. End Set
  5984. End Property
  5985. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5986. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5987. Public Function IsCodPaisNull() As Boolean
  5988. Return Me.IsNull(Me.tableBAN0.CodPaisColumn)
  5989. End Function
  5990. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5991. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5992. Public Sub SetCodPaisNull()
  5993. Me(Me.tableBAN0.CodPaisColumn) = Global.System.Convert.DBNull
  5994. End Sub
  5995. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5996. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  5997. Public Function IsNombreBancoNull() As Boolean
  5998. Return Me.IsNull(Me.tableBAN0.NombreBancoColumn)
  5999. End Function
  6000. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6001. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6002. Public Sub SetNombreBancoNull()
  6003. Me(Me.tableBAN0.NombreBancoColumn) = Global.System.Convert.DBNull
  6004. End Sub
  6005. End Class
  6006. '''<summary>
  6007. '''Represents strongly named DataRow class.
  6008. '''</summary>
  6009. Partial Public Class BAN1Row
  6010. Inherits Global.System.Data.DataRow
  6011. Private tableBAN1 As BAN1DataTable
  6012. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6013. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6014. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  6015. MyBase.New(rb)
  6016. Me.tableBAN1 = CType(Me.Table,BAN1DataTable)
  6017. End Sub
  6018. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6019. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6020. Public Property CodBanco() As String
  6021. Get
  6022. Try
  6023. Return CType(Me(Me.tableBAN1.CodBancoColumn),String)
  6024. Catch e As Global.System.InvalidCastException
  6025. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodBanco' de la tabla 'BAN1' es DBNull.", e)
  6026. End Try
  6027. End Get
  6028. Set
  6029. Me(Me.tableBAN1.CodBancoColumn) = value
  6030. End Set
  6031. End Property
  6032. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6033. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6034. Public Property CodEmpr() As String
  6035. Get
  6036. Try
  6037. Return CType(Me(Me.tableBAN1.CodEmprColumn),String)
  6038. Catch e As Global.System.InvalidCastException
  6039. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodEmpr' de la tabla 'BAN1' es DBNull.", e)
  6040. End Try
  6041. End Get
  6042. Set
  6043. Me(Me.tableBAN1.CodEmprColumn) = value
  6044. End Set
  6045. End Property
  6046. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6047. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6048. Public Property NumCuenta() As String
  6049. Get
  6050. Try
  6051. Return CType(Me(Me.tableBAN1.NumCuentaColumn),String)
  6052. Catch e As Global.System.InvalidCastException
  6053. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'NumCuenta' de la tabla 'BAN1' es DBNull.", e)
  6054. End Try
  6055. End Get
  6056. Set
  6057. Me(Me.tableBAN1.NumCuentaColumn) = value
  6058. End Set
  6059. End Property
  6060. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6061. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6062. Public Property Activo() As Boolean
  6063. Get
  6064. Try
  6065. Return CType(Me(Me.tableBAN1.ActivoColumn),Boolean)
  6066. Catch e As Global.System.InvalidCastException
  6067. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Activo' de la tabla 'BAN1' es DBNull.", e)
  6068. End Try
  6069. End Get
  6070. Set
  6071. Me(Me.tableBAN1.ActivoColumn) = value
  6072. End Set
  6073. End Property
  6074. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6075. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6076. Public Property Id() As Integer
  6077. Get
  6078. Return CType(Me(Me.tableBAN1.IdColumn),Integer)
  6079. End Get
  6080. Set
  6081. Me(Me.tableBAN1.IdColumn) = value
  6082. End Set
  6083. End Property
  6084. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6085. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6086. Public Property NombreCuenta() As String
  6087. Get
  6088. Try
  6089. Return CType(Me(Me.tableBAN1.NombreCuentaColumn),String)
  6090. Catch e As Global.System.InvalidCastException
  6091. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'NombreCuenta' de la tabla 'BAN1' es DBNull.", e)
  6092. End Try
  6093. End Get
  6094. Set
  6095. Me(Me.tableBAN1.NombreCuentaColumn) = value
  6096. End Set
  6097. End Property
  6098. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6099. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6100. Public Property TipoCuenta() As String
  6101. Get
  6102. Try
  6103. Return CType(Me(Me.tableBAN1.TipoCuentaColumn),String)
  6104. Catch e As Global.System.InvalidCastException
  6105. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'TipoCuenta' de la tabla 'BAN1' es DBNull.", e)
  6106. End Try
  6107. End Get
  6108. Set
  6109. Me(Me.tableBAN1.TipoCuentaColumn) = value
  6110. End Set
  6111. End Property
  6112. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6113. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6114. Public Property CuentaContable() As String
  6115. Get
  6116. Try
  6117. Return CType(Me(Me.tableBAN1.CuentaContableColumn),String)
  6118. Catch e As Global.System.InvalidCastException
  6119. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CuentaContable' de la tabla 'BAN1' es DBNull.", e)
  6120. End Try
  6121. End Get
  6122. Set
  6123. Me(Me.tableBAN1.CuentaContableColumn) = value
  6124. End Set
  6125. End Property
  6126. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6127. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6128. Public Function IsCodBancoNull() As Boolean
  6129. Return Me.IsNull(Me.tableBAN1.CodBancoColumn)
  6130. End Function
  6131. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6132. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6133. Public Sub SetCodBancoNull()
  6134. Me(Me.tableBAN1.CodBancoColumn) = Global.System.Convert.DBNull
  6135. End Sub
  6136. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6137. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6138. Public Function IsCodEmprNull() As Boolean
  6139. Return Me.IsNull(Me.tableBAN1.CodEmprColumn)
  6140. End Function
  6141. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6142. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6143. Public Sub SetCodEmprNull()
  6144. Me(Me.tableBAN1.CodEmprColumn) = Global.System.Convert.DBNull
  6145. End Sub
  6146. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6147. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6148. Public Function IsNumCuentaNull() As Boolean
  6149. Return Me.IsNull(Me.tableBAN1.NumCuentaColumn)
  6150. End Function
  6151. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6152. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6153. Public Sub SetNumCuentaNull()
  6154. Me(Me.tableBAN1.NumCuentaColumn) = Global.System.Convert.DBNull
  6155. End Sub
  6156. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6157. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6158. Public Function IsActivoNull() As Boolean
  6159. Return Me.IsNull(Me.tableBAN1.ActivoColumn)
  6160. End Function
  6161. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6162. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6163. Public Sub SetActivoNull()
  6164. Me(Me.tableBAN1.ActivoColumn) = Global.System.Convert.DBNull
  6165. End Sub
  6166. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6167. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6168. Public Function IsNombreCuentaNull() As Boolean
  6169. Return Me.IsNull(Me.tableBAN1.NombreCuentaColumn)
  6170. End Function
  6171. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6172. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6173. Public Sub SetNombreCuentaNull()
  6174. Me(Me.tableBAN1.NombreCuentaColumn) = Global.System.Convert.DBNull
  6175. End Sub
  6176. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6177. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6178. Public Function IsTipoCuentaNull() As Boolean
  6179. Return Me.IsNull(Me.tableBAN1.TipoCuentaColumn)
  6180. End Function
  6181. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6182. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6183. Public Sub SetTipoCuentaNull()
  6184. Me(Me.tableBAN1.TipoCuentaColumn) = Global.System.Convert.DBNull
  6185. End Sub
  6186. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6187. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6188. Public Function IsCuentaContableNull() As Boolean
  6189. Return Me.IsNull(Me.tableBAN1.CuentaContableColumn)
  6190. End Function
  6191. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6192. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6193. Public Sub SetCuentaContableNull()
  6194. Me(Me.tableBAN1.CuentaContableColumn) = Global.System.Convert.DBNull
  6195. End Sub
  6196. End Class
  6197. '''<summary>
  6198. '''Represents strongly named DataRow class.
  6199. '''</summary>
  6200. Partial Public Class FPAGRow
  6201. Inherits Global.System.Data.DataRow
  6202. Private tableFPAG As FPAGDataTable
  6203. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6204. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6205. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  6206. MyBase.New(rb)
  6207. Me.tableFPAG = CType(Me.Table,FPAGDataTable)
  6208. End Sub
  6209. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6210. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6211. Public Property Codigo() As String
  6212. Get
  6213. Return CType(Me(Me.tableFPAG.CodigoColumn),String)
  6214. End Get
  6215. Set
  6216. Me(Me.tableFPAG.CodigoColumn) = value
  6217. End Set
  6218. End Property
  6219. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6220. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6221. Public Property Nombre() As String
  6222. Get
  6223. Try
  6224. Return CType(Me(Me.tableFPAG.NombreColumn),String)
  6225. Catch e As Global.System.InvalidCastException
  6226. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Nombre' de la tabla 'FPAG' es DBNull.", e)
  6227. End Try
  6228. End Get
  6229. Set
  6230. Me(Me.tableFPAG.NombreColumn) = value
  6231. End Set
  6232. End Property
  6233. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6234. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6235. Public Function IsNombreNull() As Boolean
  6236. Return Me.IsNull(Me.tableFPAG.NombreColumn)
  6237. End Function
  6238. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6239. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6240. Public Sub SetNombreNull()
  6241. Me(Me.tableFPAG.NombreColumn) = Global.System.Convert.DBNull
  6242. End Sub
  6243. End Class
  6244. '''<summary>
  6245. '''Represents strongly named DataRow class.
  6246. '''</summary>
  6247. Partial Public Class PIN0Row
  6248. Inherits Global.System.Data.DataRow
  6249. Private tablePIN0 As PIN0DataTable
  6250. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6251. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6252. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  6253. MyBase.New(rb)
  6254. Me.tablePIN0 = CType(Me.Table,PIN0DataTable)
  6255. End Sub
  6256. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6257. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6258. Public Property DocId() As Integer
  6259. Get
  6260. Return CType(Me(Me.tablePIN0.DocIdColumn),Integer)
  6261. End Get
  6262. Set
  6263. Me(Me.tablePIN0.DocIdColumn) = value
  6264. End Set
  6265. End Property
  6266. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6267. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6268. Public Property CodInv() As String
  6269. Get
  6270. Try
  6271. Return CType(Me(Me.tablePIN0.CodInvColumn),String)
  6272. Catch e As Global.System.InvalidCastException
  6273. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodInv' de la tabla 'PIN0' es DBNull.", e)
  6274. End Try
  6275. End Get
  6276. Set
  6277. Me(Me.tablePIN0.CodInvColumn) = value
  6278. End Set
  6279. End Property
  6280. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6281. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6282. Public Property DocEst() As String
  6283. Get
  6284. Try
  6285. Return CType(Me(Me.tablePIN0.DocEstColumn),String)
  6286. Catch e As Global.System.InvalidCastException
  6287. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'DocEst' de la tabla 'PIN0' es DBNull.", e)
  6288. End Try
  6289. End Get
  6290. Set
  6291. Me(Me.tablePIN0.DocEstColumn) = value
  6292. End Set
  6293. End Property
  6294. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6295. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6296. Public Property Asunto() As String
  6297. Get
  6298. Try
  6299. Return CType(Me(Me.tablePIN0.AsuntoColumn),String)
  6300. Catch e As Global.System.InvalidCastException
  6301. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Asunto' de la tabla 'PIN0' es DBNull.", e)
  6302. End Try
  6303. End Get
  6304. Set
  6305. Me(Me.tablePIN0.AsuntoColumn) = value
  6306. End Set
  6307. End Property
  6308. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6309. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6310. Public Property CodEmpr() As String
  6311. Get
  6312. Try
  6313. Return CType(Me(Me.tablePIN0.CodEmprColumn),String)
  6314. Catch e As Global.System.InvalidCastException
  6315. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodEmpr' de la tabla 'PIN0' es DBNull.", e)
  6316. End Try
  6317. End Get
  6318. Set
  6319. Me(Me.tablePIN0.CodEmprColumn) = value
  6320. End Set
  6321. End Property
  6322. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6323. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6324. Public Property CodIF() As String
  6325. Get
  6326. Try
  6327. Return CType(Me(Me.tablePIN0.CodIFColumn),String)
  6328. Catch e As Global.System.InvalidCastException
  6329. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodIF' de la tabla 'PIN0' es DBNull.", e)
  6330. End Try
  6331. End Get
  6332. Set
  6333. Me(Me.tablePIN0.CodIFColumn) = value
  6334. End Set
  6335. End Property
  6336. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6337. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6338. Public Property CodEmis() As Integer
  6339. Get
  6340. Try
  6341. Return CType(Me(Me.tablePIN0.CodEmisColumn),Integer)
  6342. Catch e As Global.System.InvalidCastException
  6343. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodEmis' de la tabla 'PIN0' es DBNull.", e)
  6344. End Try
  6345. End Get
  6346. Set
  6347. Me(Me.tablePIN0.CodEmisColumn) = value
  6348. End Set
  6349. End Property
  6350. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6351. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6352. Public Property CodCalRi() As String
  6353. Get
  6354. Try
  6355. Return CType(Me(Me.tablePIN0.CodCalRiColumn),String)
  6356. Catch e As Global.System.InvalidCastException
  6357. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodCalRi' de la tabla 'PIN0' es DBNull.", e)
  6358. End Try
  6359. End Get
  6360. Set
  6361. Me(Me.tablePIN0.CodCalRiColumn) = value
  6362. End Set
  6363. End Property
  6364. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6365. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6366. Public Property CodECalRi() As String
  6367. Get
  6368. Try
  6369. Return CType(Me(Me.tablePIN0.CodECalRiColumn),String)
  6370. Catch e As Global.System.InvalidCastException
  6371. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodECalRi' de la tabla 'PIN0' es DBNull.", e)
  6372. End Try
  6373. End Get
  6374. Set
  6375. Me(Me.tablePIN0.CodECalRiColumn) = value
  6376. End Set
  6377. End Property
  6378. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6379. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6380. Public Property OFon() As String
  6381. Get
  6382. Try
  6383. Return CType(Me(Me.tablePIN0.OFonColumn),String)
  6384. Catch e As Global.System.InvalidCastException
  6385. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'OFon' de la tabla 'PIN0' es DBNull.", e)
  6386. End Try
  6387. End Get
  6388. Set
  6389. Me(Me.tablePIN0.OFonColumn) = value
  6390. End Set
  6391. End Property
  6392. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6393. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6394. Public Property Coment() As String
  6395. Get
  6396. Try
  6397. Return CType(Me(Me.tablePIN0.ComentColumn),String)
  6398. Catch e As Global.System.InvalidCastException
  6399. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Coment' de la tabla 'PIN0' es DBNull.", e)
  6400. End Try
  6401. End Get
  6402. Set
  6403. Me(Me.tablePIN0.ComentColumn) = value
  6404. End Set
  6405. End Property
  6406. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6407. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6408. Public Property Just() As String
  6409. Get
  6410. Try
  6411. Return CType(Me(Me.tablePIN0.JustColumn),String)
  6412. Catch e As Global.System.InvalidCastException
  6413. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Just' de la tabla 'PIN0' es DBNull.", e)
  6414. End Try
  6415. End Get
  6416. Set
  6417. Me(Me.tablePIN0.JustColumn) = value
  6418. End Set
  6419. End Property
  6420. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6421. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6422. Public Property TipoOper() As String
  6423. Get
  6424. Try
  6425. Return CType(Me(Me.tablePIN0.TipoOperColumn),String)
  6426. Catch e As Global.System.InvalidCastException
  6427. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'TipoOper' de la tabla 'PIN0' es DBNull.", e)
  6428. End Try
  6429. End Get
  6430. Set
  6431. Me(Me.tablePIN0.TipoOperColumn) = value
  6432. End Set
  6433. End Property
  6434. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6435. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6436. Public Property DocBase() As Integer
  6437. Get
  6438. Try
  6439. Return CType(Me(Me.tablePIN0.DocBaseColumn),Integer)
  6440. Catch e As Global.System.InvalidCastException
  6441. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'DocBase' de la tabla 'PIN0' es DBNull.", e)
  6442. End Try
  6443. End Get
  6444. Set
  6445. Me(Me.tablePIN0.DocBaseColumn) = value
  6446. End Set
  6447. End Property
  6448. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6449. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6450. Public Property MontoInv() As Decimal
  6451. Get
  6452. Try
  6453. Return CType(Me(Me.tablePIN0.MontoInvColumn),Decimal)
  6454. Catch e As Global.System.InvalidCastException
  6455. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'MontoInv' de la tabla 'PIN0' es DBNull.", e)
  6456. End Try
  6457. End Get
  6458. Set
  6459. Me(Me.tablePIN0.MontoInvColumn) = value
  6460. End Set
  6461. End Property
  6462. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6463. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6464. Public Property Precio() As Decimal
  6465. Get
  6466. Try
  6467. Return CType(Me(Me.tablePIN0.PrecioColumn),Decimal)
  6468. Catch e As Global.System.InvalidCastException
  6469. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Precio' de la tabla 'PIN0' es DBNull.", e)
  6470. End Try
  6471. End Get
  6472. Set
  6473. Me(Me.tablePIN0.PrecioColumn) = value
  6474. End Set
  6475. End Property
  6476. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6477. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6478. Public Property Rendimiento() As Decimal
  6479. Get
  6480. Try
  6481. Return CType(Me(Me.tablePIN0.RendimientoColumn),Decimal)
  6482. Catch e As Global.System.InvalidCastException
  6483. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Rendimiento' de la tabla 'PIN0' es DBNull.", e)
  6484. End Try
  6485. End Get
  6486. Set
  6487. Me(Me.tablePIN0.RendimientoColumn) = value
  6488. End Set
  6489. End Property
  6490. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6491. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6492. Public Property Plazo() As Integer
  6493. Get
  6494. Try
  6495. Return CType(Me(Me.tablePIN0.PlazoColumn),Integer)
  6496. Catch e As Global.System.InvalidCastException
  6497. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Plazo' de la tabla 'PIN0' es DBNull.", e)
  6498. End Try
  6499. End Get
  6500. Set
  6501. Me(Me.tablePIN0.PlazoColumn) = value
  6502. End Set
  6503. End Property
  6504. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6505. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6506. Public Property PlazoFact() As String
  6507. Get
  6508. Try
  6509. Return CType(Me(Me.tablePIN0.PlazoFactColumn),String)
  6510. Catch e As Global.System.InvalidCastException
  6511. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'PlazoFact' de la tabla 'PIN0' es DBNull.", e)
  6512. End Try
  6513. End Get
  6514. Set
  6515. Me(Me.tablePIN0.PlazoFactColumn) = value
  6516. End Set
  6517. End Property
  6518. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6519. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6520. Public Property Ingresos() As Decimal
  6521. Get
  6522. Try
  6523. Return CType(Me(Me.tablePIN0.IngresosColumn),Decimal)
  6524. Catch e As Global.System.InvalidCastException
  6525. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Ingresos' de la tabla 'PIN0' es DBNull.", e)
  6526. End Try
  6527. End Get
  6528. Set
  6529. Me(Me.tablePIN0.IngresosColumn) = value
  6530. End Set
  6531. End Property
  6532. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6533. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6534. Public Property FechaDoc() As Date
  6535. Get
  6536. Try
  6537. Return CType(Me(Me.tablePIN0.FechaDocColumn),Date)
  6538. Catch e As Global.System.InvalidCastException
  6539. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'FechaDoc' de la tabla 'PIN0' es DBNull.", e)
  6540. End Try
  6541. End Get
  6542. Set
  6543. Me(Me.tablePIN0.FechaDocColumn) = value
  6544. End Set
  6545. End Property
  6546. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6547. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6548. Public Property AutEstado() As String
  6549. Get
  6550. Try
  6551. Return CType(Me(Me.tablePIN0.AutEstadoColumn),String)
  6552. Catch e As Global.System.InvalidCastException
  6553. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'AutEstado' de la tabla 'PIN0' es DBNull.", e)
  6554. End Try
  6555. End Get
  6556. Set
  6557. Me(Me.tablePIN0.AutEstadoColumn) = value
  6558. End Set
  6559. End Property
  6560. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6561. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6562. Public Property TipoMerc() As String
  6563. Get
  6564. Try
  6565. Return CType(Me(Me.tablePIN0.TipoMercColumn),String)
  6566. Catch e As Global.System.InvalidCastException
  6567. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'TipoMerc' de la tabla 'PIN0' es DBNull.", e)
  6568. End Try
  6569. End Get
  6570. Set
  6571. Me(Me.tablePIN0.TipoMercColumn) = value
  6572. End Set
  6573. End Property
  6574. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6575. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6576. Public Property CodPais() As String
  6577. Get
  6578. Try
  6579. Return CType(Me(Me.tablePIN0.CodPaisColumn),String)
  6580. Catch e As Global.System.InvalidCastException
  6581. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodPais' de la tabla 'PIN0' es DBNull.", e)
  6582. End Try
  6583. End Get
  6584. Set
  6585. Me(Me.tablePIN0.CodPaisColumn) = value
  6586. End Set
  6587. End Property
  6588. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6589. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6590. Public Function IsCodInvNull() As Boolean
  6591. Return Me.IsNull(Me.tablePIN0.CodInvColumn)
  6592. End Function
  6593. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6594. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6595. Public Sub SetCodInvNull()
  6596. Me(Me.tablePIN0.CodInvColumn) = Global.System.Convert.DBNull
  6597. End Sub
  6598. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6599. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6600. Public Function IsDocEstNull() As Boolean
  6601. Return Me.IsNull(Me.tablePIN0.DocEstColumn)
  6602. End Function
  6603. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6604. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6605. Public Sub SetDocEstNull()
  6606. Me(Me.tablePIN0.DocEstColumn) = Global.System.Convert.DBNull
  6607. End Sub
  6608. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6609. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6610. Public Function IsAsuntoNull() As Boolean
  6611. Return Me.IsNull(Me.tablePIN0.AsuntoColumn)
  6612. End Function
  6613. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6614. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6615. Public Sub SetAsuntoNull()
  6616. Me(Me.tablePIN0.AsuntoColumn) = Global.System.Convert.DBNull
  6617. End Sub
  6618. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6619. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6620. Public Function IsCodEmprNull() As Boolean
  6621. Return Me.IsNull(Me.tablePIN0.CodEmprColumn)
  6622. End Function
  6623. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6624. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6625. Public Sub SetCodEmprNull()
  6626. Me(Me.tablePIN0.CodEmprColumn) = Global.System.Convert.DBNull
  6627. End Sub
  6628. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6629. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6630. Public Function IsCodIFNull() As Boolean
  6631. Return Me.IsNull(Me.tablePIN0.CodIFColumn)
  6632. End Function
  6633. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6634. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6635. Public Sub SetCodIFNull()
  6636. Me(Me.tablePIN0.CodIFColumn) = Global.System.Convert.DBNull
  6637. End Sub
  6638. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6639. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6640. Public Function IsCodEmisNull() As Boolean
  6641. Return Me.IsNull(Me.tablePIN0.CodEmisColumn)
  6642. End Function
  6643. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6644. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6645. Public Sub SetCodEmisNull()
  6646. Me(Me.tablePIN0.CodEmisColumn) = Global.System.Convert.DBNull
  6647. End Sub
  6648. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6649. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6650. Public Function IsCodCalRiNull() As Boolean
  6651. Return Me.IsNull(Me.tablePIN0.CodCalRiColumn)
  6652. End Function
  6653. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6654. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6655. Public Sub SetCodCalRiNull()
  6656. Me(Me.tablePIN0.CodCalRiColumn) = Global.System.Convert.DBNull
  6657. End Sub
  6658. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6659. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6660. Public Function IsCodECalRiNull() As Boolean
  6661. Return Me.IsNull(Me.tablePIN0.CodECalRiColumn)
  6662. End Function
  6663. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6664. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6665. Public Sub SetCodECalRiNull()
  6666. Me(Me.tablePIN0.CodECalRiColumn) = Global.System.Convert.DBNull
  6667. End Sub
  6668. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6669. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6670. Public Function IsOFonNull() As Boolean
  6671. Return Me.IsNull(Me.tablePIN0.OFonColumn)
  6672. End Function
  6673. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6674. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6675. Public Sub SetOFonNull()
  6676. Me(Me.tablePIN0.OFonColumn) = Global.System.Convert.DBNull
  6677. End Sub
  6678. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6679. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6680. Public Function IsComentNull() As Boolean
  6681. Return Me.IsNull(Me.tablePIN0.ComentColumn)
  6682. End Function
  6683. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6684. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6685. Public Sub SetComentNull()
  6686. Me(Me.tablePIN0.ComentColumn) = Global.System.Convert.DBNull
  6687. End Sub
  6688. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6689. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6690. Public Function IsJustNull() As Boolean
  6691. Return Me.IsNull(Me.tablePIN0.JustColumn)
  6692. End Function
  6693. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6694. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6695. Public Sub SetJustNull()
  6696. Me(Me.tablePIN0.JustColumn) = Global.System.Convert.DBNull
  6697. End Sub
  6698. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6699. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6700. Public Function IsTipoOperNull() As Boolean
  6701. Return Me.IsNull(Me.tablePIN0.TipoOperColumn)
  6702. End Function
  6703. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6704. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6705. Public Sub SetTipoOperNull()
  6706. Me(Me.tablePIN0.TipoOperColumn) = Global.System.Convert.DBNull
  6707. End Sub
  6708. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6709. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6710. Public Function IsDocBaseNull() As Boolean
  6711. Return Me.IsNull(Me.tablePIN0.DocBaseColumn)
  6712. End Function
  6713. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6714. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6715. Public Sub SetDocBaseNull()
  6716. Me(Me.tablePIN0.DocBaseColumn) = Global.System.Convert.DBNull
  6717. End Sub
  6718. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6719. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6720. Public Function IsMontoInvNull() As Boolean
  6721. Return Me.IsNull(Me.tablePIN0.MontoInvColumn)
  6722. End Function
  6723. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6724. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6725. Public Sub SetMontoInvNull()
  6726. Me(Me.tablePIN0.MontoInvColumn) = Global.System.Convert.DBNull
  6727. End Sub
  6728. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6729. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6730. Public Function IsPrecioNull() As Boolean
  6731. Return Me.IsNull(Me.tablePIN0.PrecioColumn)
  6732. End Function
  6733. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6734. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6735. Public Sub SetPrecioNull()
  6736. Me(Me.tablePIN0.PrecioColumn) = Global.System.Convert.DBNull
  6737. End Sub
  6738. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6739. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6740. Public Function IsRendimientoNull() As Boolean
  6741. Return Me.IsNull(Me.tablePIN0.RendimientoColumn)
  6742. End Function
  6743. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6744. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6745. Public Sub SetRendimientoNull()
  6746. Me(Me.tablePIN0.RendimientoColumn) = Global.System.Convert.DBNull
  6747. End Sub
  6748. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6749. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6750. Public Function IsPlazoNull() As Boolean
  6751. Return Me.IsNull(Me.tablePIN0.PlazoColumn)
  6752. End Function
  6753. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6754. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6755. Public Sub SetPlazoNull()
  6756. Me(Me.tablePIN0.PlazoColumn) = Global.System.Convert.DBNull
  6757. End Sub
  6758. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6759. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6760. Public Function IsPlazoFactNull() As Boolean
  6761. Return Me.IsNull(Me.tablePIN0.PlazoFactColumn)
  6762. End Function
  6763. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6764. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6765. Public Sub SetPlazoFactNull()
  6766. Me(Me.tablePIN0.PlazoFactColumn) = Global.System.Convert.DBNull
  6767. End Sub
  6768. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6769. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6770. Public Function IsIngresosNull() As Boolean
  6771. Return Me.IsNull(Me.tablePIN0.IngresosColumn)
  6772. End Function
  6773. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6774. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6775. Public Sub SetIngresosNull()
  6776. Me(Me.tablePIN0.IngresosColumn) = Global.System.Convert.DBNull
  6777. End Sub
  6778. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6779. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6780. Public Function IsFechaDocNull() As Boolean
  6781. Return Me.IsNull(Me.tablePIN0.FechaDocColumn)
  6782. End Function
  6783. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6784. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6785. Public Sub SetFechaDocNull()
  6786. Me(Me.tablePIN0.FechaDocColumn) = Global.System.Convert.DBNull
  6787. End Sub
  6788. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6789. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6790. Public Function IsAutEstadoNull() As Boolean
  6791. Return Me.IsNull(Me.tablePIN0.AutEstadoColumn)
  6792. End Function
  6793. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6794. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6795. Public Sub SetAutEstadoNull()
  6796. Me(Me.tablePIN0.AutEstadoColumn) = Global.System.Convert.DBNull
  6797. End Sub
  6798. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6799. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6800. Public Function IsTipoMercNull() As Boolean
  6801. Return Me.IsNull(Me.tablePIN0.TipoMercColumn)
  6802. End Function
  6803. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6804. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6805. Public Sub SetTipoMercNull()
  6806. Me(Me.tablePIN0.TipoMercColumn) = Global.System.Convert.DBNull
  6807. End Sub
  6808. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6809. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6810. Public Function IsCodPaisNull() As Boolean
  6811. Return Me.IsNull(Me.tablePIN0.CodPaisColumn)
  6812. End Function
  6813. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6814. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6815. Public Sub SetCodPaisNull()
  6816. Me(Me.tablePIN0.CodPaisColumn) = Global.System.Convert.DBNull
  6817. End Sub
  6818. End Class
  6819. '''<summary>
  6820. '''Represents strongly named DataRow class.
  6821. '''</summary>
  6822. Partial Public Class CALRIRow
  6823. Inherits Global.System.Data.DataRow
  6824. Private tableCALRI As CALRIDataTable
  6825. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6826. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6827. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  6828. MyBase.New(rb)
  6829. Me.tableCALRI = CType(Me.Table,CALRIDataTable)
  6830. End Sub
  6831. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6832. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6833. Public Property CodCalRi() As String
  6834. Get
  6835. Return CType(Me(Me.tableCALRI.CodCalRiColumn),String)
  6836. End Get
  6837. Set
  6838. Me(Me.tableCALRI.CodCalRiColumn) = value
  6839. End Set
  6840. End Property
  6841. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6842. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6843. Public Property Descrip() As String
  6844. Get
  6845. Try
  6846. Return CType(Me(Me.tableCALRI.DescripColumn),String)
  6847. Catch e As Global.System.InvalidCastException
  6848. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Descrip' de la tabla 'CALRI' es DBNull.", e)
  6849. End Try
  6850. End Get
  6851. Set
  6852. Me(Me.tableCALRI.DescripColumn) = value
  6853. End Set
  6854. End Property
  6855. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6856. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6857. Public Function IsDescripNull() As Boolean
  6858. Return Me.IsNull(Me.tableCALRI.DescripColumn)
  6859. End Function
  6860. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6861. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6862. Public Sub SetDescripNull()
  6863. Me(Me.tableCALRI.DescripColumn) = Global.System.Convert.DBNull
  6864. End Sub
  6865. End Class
  6866. '''<summary>
  6867. '''Represents strongly named DataRow class.
  6868. '''</summary>
  6869. Partial Public Class RPAGRow
  6870. Inherits Global.System.Data.DataRow
  6871. Private tableRPAG As RPAGDataTable
  6872. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6873. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6874. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  6875. MyBase.New(rb)
  6876. Me.tableRPAG = CType(Me.Table,RPAGDataTable)
  6877. End Sub
  6878. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6879. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6880. Public Property RPID() As Integer
  6881. Get
  6882. Return CType(Me(Me.tableRPAG.RPIDColumn),Integer)
  6883. End Get
  6884. Set
  6885. Me(Me.tableRPAG.RPIDColumn) = value
  6886. End Set
  6887. End Property
  6888. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6889. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6890. Public Property CodInv() As String
  6891. Get
  6892. Try
  6893. Return CType(Me(Me.tableRPAG.CodInvColumn),String)
  6894. Catch e As Global.System.InvalidCastException
  6895. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodInv' de la tabla 'RPAG' es DBNull.", e)
  6896. End Try
  6897. End Get
  6898. Set
  6899. Me(Me.tableRPAG.CodInvColumn) = value
  6900. End Set
  6901. End Property
  6902. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6903. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6904. Public Property AFavorDe() As String
  6905. Get
  6906. Try
  6907. Return CType(Me(Me.tableRPAG.AFavorDeColumn),String)
  6908. Catch e As Global.System.InvalidCastException
  6909. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'AFavorDe' de la tabla 'RPAG' es DBNull.", e)
  6910. End Try
  6911. End Get
  6912. Set
  6913. Me(Me.tableRPAG.AFavorDeColumn) = value
  6914. End Set
  6915. End Property
  6916. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6917. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6918. Public Property FormaPagID() As String
  6919. Get
  6920. Try
  6921. Return CType(Me(Me.tableRPAG.FormaPagIDColumn),String)
  6922. Catch e As Global.System.InvalidCastException
  6923. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'FormaPagID' de la tabla 'RPAG' es DBNull.", e)
  6924. End Try
  6925. End Get
  6926. Set
  6927. Me(Me.tableRPAG.FormaPagIDColumn) = value
  6928. End Set
  6929. End Property
  6930. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6931. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6932. Public Property MontoPago() As Decimal
  6933. Get
  6934. Try
  6935. Return CType(Me(Me.tableRPAG.MontoPagoColumn),Decimal)
  6936. Catch e As Global.System.InvalidCastException
  6937. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'MontoPago' de la tabla 'RPAG' es DBNull.", e)
  6938. End Try
  6939. End Get
  6940. Set
  6941. Me(Me.tableRPAG.MontoPagoColumn) = value
  6942. End Set
  6943. End Property
  6944. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6945. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6946. Public Property FechaPago() As Date
  6947. Get
  6948. Try
  6949. Return CType(Me(Me.tableRPAG.FechaPagoColumn),Date)
  6950. Catch e As Global.System.InvalidCastException
  6951. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'FechaPago' de la tabla 'RPAG' es DBNull.", e)
  6952. End Try
  6953. End Get
  6954. Set
  6955. Me(Me.tableRPAG.FechaPagoColumn) = value
  6956. End Set
  6957. End Property
  6958. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6959. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6960. Public Property CodBanco() As String
  6961. Get
  6962. Try
  6963. Return CType(Me(Me.tableRPAG.CodBancoColumn),String)
  6964. Catch e As Global.System.InvalidCastException
  6965. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodBanco' de la tabla 'RPAG' es DBNull.", e)
  6966. End Try
  6967. End Get
  6968. Set
  6969. Me(Me.tableRPAG.CodBancoColumn) = value
  6970. End Set
  6971. End Property
  6972. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6973. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6974. Public Property NumCuenta() As String
  6975. Get
  6976. Try
  6977. Return CType(Me(Me.tableRPAG.NumCuentaColumn),String)
  6978. Catch e As Global.System.InvalidCastException
  6979. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'NumCuenta' de la tabla 'RPAG' es DBNull.", e)
  6980. End Try
  6981. End Get
  6982. Set
  6983. Me(Me.tableRPAG.NumCuentaColumn) = value
  6984. End Set
  6985. End Property
  6986. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  6987. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  6988. Public Property SaldoContable() As Decimal
  6989. Get
  6990. Try
  6991. Return CType(Me(Me.tableRPAG.SaldoContableColumn),Decimal)
  6992. Catch e As Global.System.InvalidCastException
  6993. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'SaldoContable' de la tabla 'RPAG' es DBNull.", e)
  6994. End Try
  6995. End Get
  6996. Set
  6997. Me(Me.tableRPAG.SaldoContableColumn) = value
  6998. End Set
  6999. End Property
  7000. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7001. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7002. Public Property Concepto() As String
  7003. Get
  7004. Try
  7005. Return CType(Me(Me.tableRPAG.ConceptoColumn),String)
  7006. Catch e As Global.System.InvalidCastException
  7007. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Concepto' de la tabla 'RPAG' es DBNull.", e)
  7008. End Try
  7009. End Get
  7010. Set
  7011. Me(Me.tableRPAG.ConceptoColumn) = value
  7012. End Set
  7013. End Property
  7014. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7015. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7016. Public Property UCodigo() As String
  7017. Get
  7018. Try
  7019. Return CType(Me(Me.tableRPAG.UCodigoColumn),String)
  7020. Catch e As Global.System.InvalidCastException
  7021. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'UCodigo' de la tabla 'RPAG' es DBNull.", e)
  7022. End Try
  7023. End Get
  7024. Set
  7025. Me(Me.tableRPAG.UCodigoColumn) = value
  7026. End Set
  7027. End Property
  7028. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7029. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7030. Public Function IsCodInvNull() As Boolean
  7031. Return Me.IsNull(Me.tableRPAG.CodInvColumn)
  7032. End Function
  7033. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7034. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7035. Public Sub SetCodInvNull()
  7036. Me(Me.tableRPAG.CodInvColumn) = Global.System.Convert.DBNull
  7037. End Sub
  7038. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7039. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7040. Public Function IsAFavorDeNull() As Boolean
  7041. Return Me.IsNull(Me.tableRPAG.AFavorDeColumn)
  7042. End Function
  7043. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7044. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7045. Public Sub SetAFavorDeNull()
  7046. Me(Me.tableRPAG.AFavorDeColumn) = Global.System.Convert.DBNull
  7047. End Sub
  7048. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7049. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7050. Public Function IsFormaPagIDNull() As Boolean
  7051. Return Me.IsNull(Me.tableRPAG.FormaPagIDColumn)
  7052. End Function
  7053. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7054. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7055. Public Sub SetFormaPagIDNull()
  7056. Me(Me.tableRPAG.FormaPagIDColumn) = Global.System.Convert.DBNull
  7057. End Sub
  7058. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7059. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7060. Public Function IsMontoPagoNull() As Boolean
  7061. Return Me.IsNull(Me.tableRPAG.MontoPagoColumn)
  7062. End Function
  7063. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7064. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7065. Public Sub SetMontoPagoNull()
  7066. Me(Me.tableRPAG.MontoPagoColumn) = Global.System.Convert.DBNull
  7067. End Sub
  7068. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7069. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7070. Public Function IsFechaPagoNull() As Boolean
  7071. Return Me.IsNull(Me.tableRPAG.FechaPagoColumn)
  7072. End Function
  7073. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7074. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7075. Public Sub SetFechaPagoNull()
  7076. Me(Me.tableRPAG.FechaPagoColumn) = Global.System.Convert.DBNull
  7077. End Sub
  7078. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7079. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7080. Public Function IsCodBancoNull() As Boolean
  7081. Return Me.IsNull(Me.tableRPAG.CodBancoColumn)
  7082. End Function
  7083. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7084. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7085. Public Sub SetCodBancoNull()
  7086. Me(Me.tableRPAG.CodBancoColumn) = Global.System.Convert.DBNull
  7087. End Sub
  7088. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7089. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7090. Public Function IsNumCuentaNull() As Boolean
  7091. Return Me.IsNull(Me.tableRPAG.NumCuentaColumn)
  7092. End Function
  7093. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7094. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7095. Public Sub SetNumCuentaNull()
  7096. Me(Me.tableRPAG.NumCuentaColumn) = Global.System.Convert.DBNull
  7097. End Sub
  7098. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7099. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7100. Public Function IsSaldoContableNull() As Boolean
  7101. Return Me.IsNull(Me.tableRPAG.SaldoContableColumn)
  7102. End Function
  7103. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7104. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7105. Public Sub SetSaldoContableNull()
  7106. Me(Me.tableRPAG.SaldoContableColumn) = Global.System.Convert.DBNull
  7107. End Sub
  7108. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7109. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7110. Public Function IsConceptoNull() As Boolean
  7111. Return Me.IsNull(Me.tableRPAG.ConceptoColumn)
  7112. End Function
  7113. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7114. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7115. Public Sub SetConceptoNull()
  7116. Me(Me.tableRPAG.ConceptoColumn) = Global.System.Convert.DBNull
  7117. End Sub
  7118. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7119. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7120. Public Function IsUCodigoNull() As Boolean
  7121. Return Me.IsNull(Me.tableRPAG.UCodigoColumn)
  7122. End Function
  7123. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7124. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7125. Public Sub SetUCodigoNull()
  7126. Me(Me.tableRPAG.UCodigoColumn) = Global.System.Convert.DBNull
  7127. End Sub
  7128. End Class
  7129. '''<summary>
  7130. '''Represents strongly named DataRow class.
  7131. '''</summary>
  7132. Partial Public Class BAN2Row
  7133. Inherits Global.System.Data.DataRow
  7134. Private tableBAN2 As BAN2DataTable
  7135. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7136. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7137. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  7138. MyBase.New(rb)
  7139. Me.tableBAN2 = CType(Me.Table,BAN2DataTable)
  7140. End Sub
  7141. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7142. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7143. Public Property Codigo() As String
  7144. Get
  7145. Return CType(Me(Me.tableBAN2.CodigoColumn),String)
  7146. End Get
  7147. Set
  7148. Me(Me.tableBAN2.CodigoColumn) = value
  7149. End Set
  7150. End Property
  7151. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7152. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7153. Public Property Nombre() As String
  7154. Get
  7155. Try
  7156. Return CType(Me(Me.tableBAN2.NombreColumn),String)
  7157. Catch e As Global.System.InvalidCastException
  7158. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Nombre' de la tabla 'BAN2' es DBNull.", e)
  7159. End Try
  7160. End Get
  7161. Set
  7162. Me(Me.tableBAN2.NombreColumn) = value
  7163. End Set
  7164. End Property
  7165. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7166. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7167. Public Function IsNombreNull() As Boolean
  7168. Return Me.IsNull(Me.tableBAN2.NombreColumn)
  7169. End Function
  7170. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7171. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7172. Public Sub SetNombreNull()
  7173. Me(Me.tableBAN2.NombreColumn) = Global.System.Convert.DBNull
  7174. End Sub
  7175. End Class
  7176. '''<summary>
  7177. '''Represents strongly named DataRow class.
  7178. '''</summary>
  7179. Partial Public Class OFONRow
  7180. Inherits Global.System.Data.DataRow
  7181. Private tableOFON As OFONDataTable
  7182. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7183. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7184. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  7185. MyBase.New(rb)
  7186. Me.tableOFON = CType(Me.Table,OFONDataTable)
  7187. End Sub
  7188. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7189. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7190. Public Property Codigo() As String
  7191. Get
  7192. Return CType(Me(Me.tableOFON.CodigoColumn),String)
  7193. End Get
  7194. Set
  7195. Me(Me.tableOFON.CodigoColumn) = value
  7196. End Set
  7197. End Property
  7198. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7199. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7200. Public Property Descrip() As String
  7201. Get
  7202. Try
  7203. Return CType(Me(Me.tableOFON.DescripColumn),String)
  7204. Catch e As Global.System.InvalidCastException
  7205. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Descrip' de la tabla 'OFON' es DBNull.", e)
  7206. End Try
  7207. End Get
  7208. Set
  7209. Me(Me.tableOFON.DescripColumn) = value
  7210. End Set
  7211. End Property
  7212. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7213. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7214. Public Function IsDescripNull() As Boolean
  7215. Return Me.IsNull(Me.tableOFON.DescripColumn)
  7216. End Function
  7217. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7218. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7219. Public Sub SetDescripNull()
  7220. Me(Me.tableOFON.DescripColumn) = Global.System.Convert.DBNull
  7221. End Sub
  7222. End Class
  7223. '''<summary>
  7224. '''Represents strongly named DataRow class.
  7225. '''</summary>
  7226. Partial Public Class DEP0Row
  7227. Inherits Global.System.Data.DataRow
  7228. Private tableDEP0 As DEP0DataTable
  7229. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7230. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7231. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  7232. MyBase.New(rb)
  7233. Me.tableDEP0 = CType(Me.Table,DEP0DataTable)
  7234. End Sub
  7235. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7236. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7237. Public Property DEPID() As String
  7238. Get
  7239. Return CType(Me(Me.tableDEP0.DEPIDColumn),String)
  7240. End Get
  7241. Set
  7242. Me(Me.tableDEP0.DEPIDColumn) = value
  7243. End Set
  7244. End Property
  7245. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7246. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7247. Public Property DEPNombre() As String
  7248. Get
  7249. Return CType(Me(Me.tableDEP0.DEPNombreColumn),String)
  7250. End Get
  7251. Set
  7252. Me(Me.tableDEP0.DEPNombreColumn) = value
  7253. End Set
  7254. End Property
  7255. End Class
  7256. '''<summary>
  7257. '''Represents strongly named DataRow class.
  7258. '''</summary>
  7259. Partial Public Class USR0Row
  7260. Inherits Global.System.Data.DataRow
  7261. Private tableUSR0 As USR0DataTable
  7262. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7263. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7264. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  7265. MyBase.New(rb)
  7266. Me.tableUSR0 = CType(Me.Table,USR0DataTable)
  7267. End Sub
  7268. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7269. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7270. Public Property UCodigo() As String
  7271. Get
  7272. Return CType(Me(Me.tableUSR0.UCodigoColumn),String)
  7273. End Get
  7274. Set
  7275. Me(Me.tableUSR0.UCodigoColumn) = value
  7276. End Set
  7277. End Property
  7278. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7279. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7280. Public Property UNombre() As String
  7281. Get
  7282. Try
  7283. Return CType(Me(Me.tableUSR0.UNombreColumn),String)
  7284. Catch e As Global.System.InvalidCastException
  7285. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'UNombre' de la tabla 'USR0' es DBNull.", e)
  7286. End Try
  7287. End Get
  7288. Set
  7289. Me(Me.tableUSR0.UNombreColumn) = value
  7290. End Set
  7291. End Property
  7292. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7293. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7294. Public Property DEPID() As String
  7295. Get
  7296. Try
  7297. Return CType(Me(Me.tableUSR0.DEPIDColumn),String)
  7298. Catch e As Global.System.InvalidCastException
  7299. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'DEPID' de la tabla 'USR0' es DBNull.", e)
  7300. End Try
  7301. End Get
  7302. Set
  7303. Me(Me.tableUSR0.DEPIDColumn) = value
  7304. End Set
  7305. End Property
  7306. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7307. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7308. Public Property SUser() As Byte
  7309. Get
  7310. Try
  7311. Return CType(Me(Me.tableUSR0.SUserColumn),Byte)
  7312. Catch e As Global.System.InvalidCastException
  7313. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'SUser' de la tabla 'USR0' es DBNull.", e)
  7314. End Try
  7315. End Get
  7316. Set
  7317. Me(Me.tableUSR0.SUserColumn) = value
  7318. End Set
  7319. End Property
  7320. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7321. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7322. Public Property Bloqueado() As Byte
  7323. Get
  7324. Try
  7325. Return CType(Me(Me.tableUSR0.BloqueadoColumn),Byte)
  7326. Catch e As Global.System.InvalidCastException
  7327. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Bloqueado' de la tabla 'USR0' es DBNull.", e)
  7328. End Try
  7329. End Get
  7330. Set
  7331. Me(Me.tableUSR0.BloqueadoColumn) = value
  7332. End Set
  7333. End Property
  7334. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7335. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7336. Public Property Clave1() As String
  7337. Get
  7338. Try
  7339. Return CType(Me(Me.tableUSR0.Clave1Column),String)
  7340. Catch e As Global.System.InvalidCastException
  7341. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Clave1' de la tabla 'USR0' es DBNull.", e)
  7342. End Try
  7343. End Get
  7344. Set
  7345. Me(Me.tableUSR0.Clave1Column) = value
  7346. End Set
  7347. End Property
  7348. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7349. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7350. Public Function IsUNombreNull() As Boolean
  7351. Return Me.IsNull(Me.tableUSR0.UNombreColumn)
  7352. End Function
  7353. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7354. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7355. Public Sub SetUNombreNull()
  7356. Me(Me.tableUSR0.UNombreColumn) = Global.System.Convert.DBNull
  7357. End Sub
  7358. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7359. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7360. Public Function IsDEPIDNull() As Boolean
  7361. Return Me.IsNull(Me.tableUSR0.DEPIDColumn)
  7362. End Function
  7363. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7364. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7365. Public Sub SetDEPIDNull()
  7366. Me(Me.tableUSR0.DEPIDColumn) = Global.System.Convert.DBNull
  7367. End Sub
  7368. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7369. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7370. Public Function IsSUserNull() As Boolean
  7371. Return Me.IsNull(Me.tableUSR0.SUserColumn)
  7372. End Function
  7373. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7374. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7375. Public Sub SetSUserNull()
  7376. Me(Me.tableUSR0.SUserColumn) = Global.System.Convert.DBNull
  7377. End Sub
  7378. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7379. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7380. Public Function IsBloqueadoNull() As Boolean
  7381. Return Me.IsNull(Me.tableUSR0.BloqueadoColumn)
  7382. End Function
  7383. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7384. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7385. Public Sub SetBloqueadoNull()
  7386. Me(Me.tableUSR0.BloqueadoColumn) = Global.System.Convert.DBNull
  7387. End Sub
  7388. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7389. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7390. Public Function IsClave1Null() As Boolean
  7391. Return Me.IsNull(Me.tableUSR0.Clave1Column)
  7392. End Function
  7393. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7394. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7395. Public Sub SetClave1Null()
  7396. Me(Me.tableUSR0.Clave1Column) = Global.System.Convert.DBNull
  7397. End Sub
  7398. End Class
  7399. '''<summary>
  7400. '''Row event argument class
  7401. '''</summary>
  7402. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7403. Public Class ECALRIRowChangeEvent
  7404. Inherits Global.System.EventArgs
  7405. Private eventRow As ECALRIRow
  7406. Private eventAction As Global.System.Data.DataRowAction
  7407. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7408. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7409. Public Sub New(ByVal row As ECALRIRow, ByVal action As Global.System.Data.DataRowAction)
  7410. MyBase.New
  7411. Me.eventRow = row
  7412. Me.eventAction = action
  7413. End Sub
  7414. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7415. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7416. Public ReadOnly Property Row() As ECALRIRow
  7417. Get
  7418. Return Me.eventRow
  7419. End Get
  7420. End Property
  7421. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7422. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7423. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7424. Get
  7425. Return Me.eventAction
  7426. End Get
  7427. End Property
  7428. End Class
  7429. '''<summary>
  7430. '''Row event argument class
  7431. '''</summary>
  7432. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7433. Public Class EMISRowChangeEvent
  7434. Inherits Global.System.EventArgs
  7435. Private eventRow As EMISRow
  7436. Private eventAction As Global.System.Data.DataRowAction
  7437. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7438. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7439. Public Sub New(ByVal row As EMISRow, ByVal action As Global.System.Data.DataRowAction)
  7440. MyBase.New
  7441. Me.eventRow = row
  7442. Me.eventAction = action
  7443. End Sub
  7444. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7445. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7446. Public ReadOnly Property Row() As EMISRow
  7447. Get
  7448. Return Me.eventRow
  7449. End Get
  7450. End Property
  7451. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7452. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7453. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7454. Get
  7455. Return Me.eventAction
  7456. End Get
  7457. End Property
  7458. End Class
  7459. '''<summary>
  7460. '''Row event argument class
  7461. '''</summary>
  7462. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7463. Public Class EMPRRowChangeEvent
  7464. Inherits Global.System.EventArgs
  7465. Private eventRow As EMPRRow
  7466. Private eventAction As Global.System.Data.DataRowAction
  7467. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7468. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7469. Public Sub New(ByVal row As EMPRRow, ByVal action As Global.System.Data.DataRowAction)
  7470. MyBase.New
  7471. Me.eventRow = row
  7472. Me.eventAction = action
  7473. End Sub
  7474. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7475. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7476. Public ReadOnly Property Row() As EMPRRow
  7477. Get
  7478. Return Me.eventRow
  7479. End Get
  7480. End Property
  7481. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7482. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7483. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7484. Get
  7485. Return Me.eventAction
  7486. End Get
  7487. End Property
  7488. End Class
  7489. '''<summary>
  7490. '''Row event argument class
  7491. '''</summary>
  7492. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7493. Public Class INFIRowChangeEvent
  7494. Inherits Global.System.EventArgs
  7495. Private eventRow As INFIRow
  7496. Private eventAction As Global.System.Data.DataRowAction
  7497. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7498. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7499. Public Sub New(ByVal row As INFIRow, ByVal action As Global.System.Data.DataRowAction)
  7500. MyBase.New
  7501. Me.eventRow = row
  7502. Me.eventAction = action
  7503. End Sub
  7504. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7505. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7506. Public ReadOnly Property Row() As INFIRow
  7507. Get
  7508. Return Me.eventRow
  7509. End Get
  7510. End Property
  7511. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7512. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7513. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7514. Get
  7515. Return Me.eventAction
  7516. End Get
  7517. End Property
  7518. End Class
  7519. '''<summary>
  7520. '''Row event argument class
  7521. '''</summary>
  7522. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7523. Public Class PAISRowChangeEvent
  7524. Inherits Global.System.EventArgs
  7525. Private eventRow As PAISRow
  7526. Private eventAction As Global.System.Data.DataRowAction
  7527. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7528. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7529. Public Sub New(ByVal row As PAISRow, ByVal action As Global.System.Data.DataRowAction)
  7530. MyBase.New
  7531. Me.eventRow = row
  7532. Me.eventAction = action
  7533. End Sub
  7534. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7535. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7536. Public ReadOnly Property Row() As PAISRow
  7537. Get
  7538. Return Me.eventRow
  7539. End Get
  7540. End Property
  7541. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7542. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7543. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7544. Get
  7545. Return Me.eventAction
  7546. End Get
  7547. End Property
  7548. End Class
  7549. '''<summary>
  7550. '''Row event argument class
  7551. '''</summary>
  7552. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7553. Public Class SP_InventarioMasterRowChangeEvent
  7554. Inherits Global.System.EventArgs
  7555. Private eventRow As SP_InventarioMasterRow
  7556. Private eventAction As Global.System.Data.DataRowAction
  7557. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7558. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7559. Public Sub New(ByVal row As SP_InventarioMasterRow, ByVal action As Global.System.Data.DataRowAction)
  7560. MyBase.New
  7561. Me.eventRow = row
  7562. Me.eventAction = action
  7563. End Sub
  7564. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7565. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7566. Public ReadOnly Property Row() As SP_InventarioMasterRow
  7567. Get
  7568. Return Me.eventRow
  7569. End Get
  7570. End Property
  7571. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7572. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7573. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7574. Get
  7575. Return Me.eventAction
  7576. End Get
  7577. End Property
  7578. End Class
  7579. '''<summary>
  7580. '''Row event argument class
  7581. '''</summary>
  7582. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7583. Public Class BAN0RowChangeEvent
  7584. Inherits Global.System.EventArgs
  7585. Private eventRow As BAN0Row
  7586. Private eventAction As Global.System.Data.DataRowAction
  7587. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7588. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7589. Public Sub New(ByVal row As BAN0Row, ByVal action As Global.System.Data.DataRowAction)
  7590. MyBase.New
  7591. Me.eventRow = row
  7592. Me.eventAction = action
  7593. End Sub
  7594. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7595. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7596. Public ReadOnly Property Row() As BAN0Row
  7597. Get
  7598. Return Me.eventRow
  7599. End Get
  7600. End Property
  7601. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7602. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7603. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7604. Get
  7605. Return Me.eventAction
  7606. End Get
  7607. End Property
  7608. End Class
  7609. '''<summary>
  7610. '''Row event argument class
  7611. '''</summary>
  7612. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7613. Public Class BAN1RowChangeEvent
  7614. Inherits Global.System.EventArgs
  7615. Private eventRow As BAN1Row
  7616. Private eventAction As Global.System.Data.DataRowAction
  7617. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7618. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7619. Public Sub New(ByVal row As BAN1Row, ByVal action As Global.System.Data.DataRowAction)
  7620. MyBase.New
  7621. Me.eventRow = row
  7622. Me.eventAction = action
  7623. End Sub
  7624. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7625. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7626. Public ReadOnly Property Row() As BAN1Row
  7627. Get
  7628. Return Me.eventRow
  7629. End Get
  7630. End Property
  7631. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7632. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7633. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7634. Get
  7635. Return Me.eventAction
  7636. End Get
  7637. End Property
  7638. End Class
  7639. '''<summary>
  7640. '''Row event argument class
  7641. '''</summary>
  7642. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7643. Public Class FPAGRowChangeEvent
  7644. Inherits Global.System.EventArgs
  7645. Private eventRow As FPAGRow
  7646. Private eventAction As Global.System.Data.DataRowAction
  7647. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7648. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7649. Public Sub New(ByVal row As FPAGRow, ByVal action As Global.System.Data.DataRowAction)
  7650. MyBase.New
  7651. Me.eventRow = row
  7652. Me.eventAction = action
  7653. End Sub
  7654. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7655. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7656. Public ReadOnly Property Row() As FPAGRow
  7657. Get
  7658. Return Me.eventRow
  7659. End Get
  7660. End Property
  7661. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7662. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7663. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7664. Get
  7665. Return Me.eventAction
  7666. End Get
  7667. End Property
  7668. End Class
  7669. '''<summary>
  7670. '''Row event argument class
  7671. '''</summary>
  7672. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7673. Public Class PIN0RowChangeEvent
  7674. Inherits Global.System.EventArgs
  7675. Private eventRow As PIN0Row
  7676. Private eventAction As Global.System.Data.DataRowAction
  7677. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7678. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7679. Public Sub New(ByVal row As PIN0Row, ByVal action As Global.System.Data.DataRowAction)
  7680. MyBase.New
  7681. Me.eventRow = row
  7682. Me.eventAction = action
  7683. End Sub
  7684. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7685. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7686. Public ReadOnly Property Row() As PIN0Row
  7687. Get
  7688. Return Me.eventRow
  7689. End Get
  7690. End Property
  7691. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7692. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7693. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7694. Get
  7695. Return Me.eventAction
  7696. End Get
  7697. End Property
  7698. End Class
  7699. '''<summary>
  7700. '''Row event argument class
  7701. '''</summary>
  7702. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7703. Public Class CALRIRowChangeEvent
  7704. Inherits Global.System.EventArgs
  7705. Private eventRow As CALRIRow
  7706. Private eventAction As Global.System.Data.DataRowAction
  7707. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7708. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7709. Public Sub New(ByVal row As CALRIRow, ByVal action As Global.System.Data.DataRowAction)
  7710. MyBase.New
  7711. Me.eventRow = row
  7712. Me.eventAction = action
  7713. End Sub
  7714. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7715. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7716. Public ReadOnly Property Row() As CALRIRow
  7717. Get
  7718. Return Me.eventRow
  7719. End Get
  7720. End Property
  7721. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7722. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7723. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7724. Get
  7725. Return Me.eventAction
  7726. End Get
  7727. End Property
  7728. End Class
  7729. '''<summary>
  7730. '''Row event argument class
  7731. '''</summary>
  7732. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7733. Public Class RPAGRowChangeEvent
  7734. Inherits Global.System.EventArgs
  7735. Private eventRow As RPAGRow
  7736. Private eventAction As Global.System.Data.DataRowAction
  7737. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7738. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7739. Public Sub New(ByVal row As RPAGRow, ByVal action As Global.System.Data.DataRowAction)
  7740. MyBase.New
  7741. Me.eventRow = row
  7742. Me.eventAction = action
  7743. End Sub
  7744. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7745. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7746. Public ReadOnly Property Row() As RPAGRow
  7747. Get
  7748. Return Me.eventRow
  7749. End Get
  7750. End Property
  7751. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7752. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7753. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7754. Get
  7755. Return Me.eventAction
  7756. End Get
  7757. End Property
  7758. End Class
  7759. '''<summary>
  7760. '''Row event argument class
  7761. '''</summary>
  7762. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7763. Public Class BAN2RowChangeEvent
  7764. Inherits Global.System.EventArgs
  7765. Private eventRow As BAN2Row
  7766. Private eventAction As Global.System.Data.DataRowAction
  7767. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7768. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7769. Public Sub New(ByVal row As BAN2Row, ByVal action As Global.System.Data.DataRowAction)
  7770. MyBase.New
  7771. Me.eventRow = row
  7772. Me.eventAction = action
  7773. End Sub
  7774. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7775. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7776. Public ReadOnly Property Row() As BAN2Row
  7777. Get
  7778. Return Me.eventRow
  7779. End Get
  7780. End Property
  7781. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7782. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7783. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7784. Get
  7785. Return Me.eventAction
  7786. End Get
  7787. End Property
  7788. End Class
  7789. '''<summary>
  7790. '''Row event argument class
  7791. '''</summary>
  7792. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7793. Public Class OFONRowChangeEvent
  7794. Inherits Global.System.EventArgs
  7795. Private eventRow As OFONRow
  7796. Private eventAction As Global.System.Data.DataRowAction
  7797. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7798. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7799. Public Sub New(ByVal row As OFONRow, ByVal action As Global.System.Data.DataRowAction)
  7800. MyBase.New
  7801. Me.eventRow = row
  7802. Me.eventAction = action
  7803. End Sub
  7804. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7805. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7806. Public ReadOnly Property Row() As OFONRow
  7807. Get
  7808. Return Me.eventRow
  7809. End Get
  7810. End Property
  7811. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7812. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7813. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7814. Get
  7815. Return Me.eventAction
  7816. End Get
  7817. End Property
  7818. End Class
  7819. '''<summary>
  7820. '''Row event argument class
  7821. '''</summary>
  7822. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7823. Public Class DEP0RowChangeEvent
  7824. Inherits Global.System.EventArgs
  7825. Private eventRow As DEP0Row
  7826. Private eventAction As Global.System.Data.DataRowAction
  7827. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7828. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7829. Public Sub New(ByVal row As DEP0Row, ByVal action As Global.System.Data.DataRowAction)
  7830. MyBase.New
  7831. Me.eventRow = row
  7832. Me.eventAction = action
  7833. End Sub
  7834. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7835. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7836. Public ReadOnly Property Row() As DEP0Row
  7837. Get
  7838. Return Me.eventRow
  7839. End Get
  7840. End Property
  7841. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7842. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7843. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7844. Get
  7845. Return Me.eventAction
  7846. End Get
  7847. End Property
  7848. End Class
  7849. '''<summary>
  7850. '''Row event argument class
  7851. '''</summary>
  7852. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7853. Public Class USR0RowChangeEvent
  7854. Inherits Global.System.EventArgs
  7855. Private eventRow As USR0Row
  7856. Private eventAction As Global.System.Data.DataRowAction
  7857. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7858. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7859. Public Sub New(ByVal row As USR0Row, ByVal action As Global.System.Data.DataRowAction)
  7860. MyBase.New
  7861. Me.eventRow = row
  7862. Me.eventAction = action
  7863. End Sub
  7864. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7865. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7866. Public ReadOnly Property Row() As USR0Row
  7867. Get
  7868. Return Me.eventRow
  7869. End Get
  7870. End Property
  7871. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7872. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7873. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  7874. Get
  7875. Return Me.eventAction
  7876. End Get
  7877. End Property
  7878. End Class
  7879. End Class
  7880. Namespace InversionesDataSet1TableAdapters
  7881. '''<summary>
  7882. '''Represents the connection and commands used to retrieve and save data.
  7883. '''</summary>
  7884. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  7885. Global.System.ComponentModel.ToolboxItem(true), _
  7886. Global.System.ComponentModel.DataObjectAttribute(true), _
  7887. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  7888. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  7889. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  7890. Partial Public Class ECALRITableAdapter
  7891. Inherits Global.System.ComponentModel.Component
  7892. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  7893. Private _connection As Global.System.Data.SqlClient.SqlConnection
  7894. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  7895. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  7896. Private _clearBeforeFill As Boolean
  7897. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7898. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7899. Public Sub New()
  7900. MyBase.New
  7901. Me.ClearBeforeFill = true
  7902. End Sub
  7903. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7904. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7905. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  7906. Get
  7907. If (Me._adapter Is Nothing) Then
  7908. Me.InitAdapter
  7909. End If
  7910. Return Me._adapter
  7911. End Get
  7912. End Property
  7913. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7914. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7915. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  7916. Get
  7917. If (Me._connection Is Nothing) Then
  7918. Me.InitConnection
  7919. End If
  7920. Return Me._connection
  7921. End Get
  7922. Set
  7923. Me._connection = value
  7924. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  7925. Me.Adapter.InsertCommand.Connection = value
  7926. End If
  7927. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  7928. Me.Adapter.DeleteCommand.Connection = value
  7929. End If
  7930. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  7931. Me.Adapter.UpdateCommand.Connection = value
  7932. End If
  7933. Dim i As Integer = 0
  7934. Do While (i < Me.CommandCollection.Length)
  7935. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  7936. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  7937. End If
  7938. i = (i + 1)
  7939. Loop
  7940. End Set
  7941. End Property
  7942. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7943. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7944. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  7945. Get
  7946. Return Me._transaction
  7947. End Get
  7948. Set
  7949. Me._transaction = value
  7950. Dim i As Integer = 0
  7951. Do While (i < Me.CommandCollection.Length)
  7952. Me.CommandCollection(i).Transaction = Me._transaction
  7953. i = (i + 1)
  7954. Loop
  7955. If ((Not (Me.Adapter) Is Nothing) _
  7956. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  7957. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  7958. End If
  7959. If ((Not (Me.Adapter) Is Nothing) _
  7960. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  7961. Me.Adapter.InsertCommand.Transaction = Me._transaction
  7962. End If
  7963. If ((Not (Me.Adapter) Is Nothing) _
  7964. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  7965. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  7966. End If
  7967. End Set
  7968. End Property
  7969. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7970. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7971. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  7972. Get
  7973. If (Me._commandCollection Is Nothing) Then
  7974. Me.InitCommandCollection
  7975. End If
  7976. Return Me._commandCollection
  7977. End Get
  7978. End Property
  7979. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7980. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7981. Public Property ClearBeforeFill() As Boolean
  7982. Get
  7983. Return Me._clearBeforeFill
  7984. End Get
  7985. Set
  7986. Me._clearBeforeFill = value
  7987. End Set
  7988. End Property
  7989. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  7990. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  7991. Private Sub InitAdapter()
  7992. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  7993. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  7994. tableMapping.SourceTable = "Table"
  7995. tableMapping.DataSetTable = "ECALRI"
  7996. tableMapping.ColumnMappings.Add("CodECalRi", "CodECalRi")
  7997. tableMapping.ColumnMappings.Add("Descrip", "Descrip")
  7998. Me._adapter.TableMappings.Add(tableMapping)
  7999. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  8000. Me._adapter.DeleteCommand.Connection = Me.Connection
  8001. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ECALRI] WHERE (([CodECalRi] = @Original_CodECalRi) AND ((@IsNu"& _
  8002. "ll_Descrip = 1 AND [Descrip] IS NULL) OR ([Descrip] = @Original_Descrip)))"
  8003. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  8004. 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, "", "", ""))
  8005. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Descrip", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  8006. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  8007. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  8008. Me._adapter.InsertCommand.Connection = Me.Connection
  8009. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ECALRI] ([CodECalRi], [Descrip]) VALUES (@CodECalRi, @Descrip)"& _
  8010. ";"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodECalRi, Descrip FROM ECALRI WHERE (CodECalRi = @CodECalRi)"
  8011. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  8012. 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, "", "", ""))
  8013. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8014. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  8015. Me._adapter.UpdateCommand.Connection = Me.Connection
  8016. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[ECALRI] SET [CodECalRi] = @CodECalRi, [Descrip] = @Descrip WHERE (("& _
  8017. "[CodECalRi] = @Original_CodECalRi) AND ((@IsNull_Descrip = 1 AND [Descrip] IS NU"& _
  8018. "LL) OR ([Descrip] = @Original_Descrip)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodECalRi, Descrip FROM ECALRI"& _
  8019. " WHERE (CodECalRi = @CodECalRi)"
  8020. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  8021. 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, "", "", ""))
  8022. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8023. 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, "", "", ""))
  8024. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Descrip", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  8025. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  8026. End Sub
  8027. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8028. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8029. Private Sub InitConnection()
  8030. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  8031. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  8032. End Sub
  8033. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8034. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8035. Private Sub InitCommandCollection()
  8036. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  8037. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  8038. Me._commandCollection(0).Connection = Me.Connection
  8039. Me._commandCollection(0).CommandText = "SELECT CodECalRi, Descrip FROM dbo.ECALRI"
  8040. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  8041. End Sub
  8042. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8043. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8044. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8045. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  8046. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.ECALRIDataTable) As Integer
  8047. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  8048. If (Me.ClearBeforeFill = true) Then
  8049. dataTable.Clear
  8050. End If
  8051. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  8052. Return returnValue
  8053. End Function
  8054. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8055. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8056. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8057. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  8058. Public Overloads Overridable Function GetData() As InversionesDataSet1.ECALRIDataTable
  8059. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  8060. Dim dataTable As InversionesDataSet1.ECALRIDataTable = New InversionesDataSet1.ECALRIDataTable()
  8061. Me.Adapter.Fill(dataTable)
  8062. Return dataTable
  8063. End Function
  8064. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8065. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8066. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8067. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.ECALRIDataTable) As Integer
  8068. Return Me.Adapter.Update(dataTable)
  8069. End Function
  8070. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8071. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8072. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8073. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  8074. Return Me.Adapter.Update(dataSet, "ECALRI")
  8075. End Function
  8076. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8077. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8078. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8079. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  8080. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  8081. End Function
  8082. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8083. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8084. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8085. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  8086. Return Me.Adapter.Update(dataRows)
  8087. End Function
  8088. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8089. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8090. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8091. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  8092. Public Overloads Overridable Function Delete(ByVal Original_CodECalRi As String, ByVal Original_Descrip As String) As Integer
  8093. If (Original_CodECalRi Is Nothing) Then
  8094. Throw New Global.System.ArgumentNullException("Original_CodECalRi")
  8095. Else
  8096. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodECalRi,String)
  8097. End If
  8098. If (Original_Descrip Is Nothing) Then
  8099. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  8100. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  8101. Else
  8102. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  8103. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Descrip,String)
  8104. End If
  8105. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  8106. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  8107. <> Global.System.Data.ConnectionState.Open) Then
  8108. Me.Adapter.DeleteCommand.Connection.Open
  8109. End If
  8110. Try
  8111. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  8112. Return returnValue
  8113. Finally
  8114. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  8115. Me.Adapter.DeleteCommand.Connection.Close
  8116. End If
  8117. End Try
  8118. End Function
  8119. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8120. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8121. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8122. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  8123. Public Overloads Overridable Function Insert(ByVal CodECalRi As String, ByVal Descrip As String) As Integer
  8124. If (CodECalRi Is Nothing) Then
  8125. Throw New Global.System.ArgumentNullException("CodECalRi")
  8126. Else
  8127. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodECalRi,String)
  8128. End If
  8129. If (Descrip Is Nothing) Then
  8130. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  8131. Else
  8132. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Descrip,String)
  8133. End If
  8134. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  8135. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  8136. <> Global.System.Data.ConnectionState.Open) Then
  8137. Me.Adapter.InsertCommand.Connection.Open
  8138. End If
  8139. Try
  8140. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  8141. Return returnValue
  8142. Finally
  8143. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  8144. Me.Adapter.InsertCommand.Connection.Close
  8145. End If
  8146. End Try
  8147. End Function
  8148. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8149. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8150. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8151. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  8152. Public Overloads Overridable Function Update(ByVal CodECalRi As String, ByVal Descrip As String, ByVal Original_CodECalRi As String, ByVal Original_Descrip As String) As Integer
  8153. If (CodECalRi Is Nothing) Then
  8154. Throw New Global.System.ArgumentNullException("CodECalRi")
  8155. Else
  8156. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodECalRi,String)
  8157. End If
  8158. If (Descrip Is Nothing) Then
  8159. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  8160. Else
  8161. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Descrip,String)
  8162. End If
  8163. If (Original_CodECalRi Is Nothing) Then
  8164. Throw New Global.System.ArgumentNullException("Original_CodECalRi")
  8165. Else
  8166. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Original_CodECalRi,String)
  8167. End If
  8168. If (Original_Descrip Is Nothing) Then
  8169. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(1,Object)
  8170. Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
  8171. Else
  8172. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(0,Object)
  8173. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(Original_Descrip,String)
  8174. End If
  8175. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  8176. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  8177. <> Global.System.Data.ConnectionState.Open) Then
  8178. Me.Adapter.UpdateCommand.Connection.Open
  8179. End If
  8180. Try
  8181. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  8182. Return returnValue
  8183. Finally
  8184. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  8185. Me.Adapter.UpdateCommand.Connection.Close
  8186. End If
  8187. End Try
  8188. End Function
  8189. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8190. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8191. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8192. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  8193. Public Overloads Overridable Function Update(ByVal Descrip As String, ByVal Original_CodECalRi As String, ByVal Original_Descrip As String) As Integer
  8194. Return Me.Update(Original_CodECalRi, Descrip, Original_CodECalRi, Original_Descrip)
  8195. End Function
  8196. End Class
  8197. '''<summary>
  8198. '''Represents the connection and commands used to retrieve and save data.
  8199. '''</summary>
  8200. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  8201. Global.System.ComponentModel.ToolboxItem(true), _
  8202. Global.System.ComponentModel.DataObjectAttribute(true), _
  8203. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  8204. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  8205. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8206. Partial Public Class EMISTableAdapter
  8207. Inherits Global.System.ComponentModel.Component
  8208. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  8209. Private _connection As Global.System.Data.SqlClient.SqlConnection
  8210. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  8211. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  8212. Private _clearBeforeFill As Boolean
  8213. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8214. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8215. Public Sub New()
  8216. MyBase.New
  8217. Me.ClearBeforeFill = true
  8218. End Sub
  8219. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8220. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8221. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  8222. Get
  8223. If (Me._adapter Is Nothing) Then
  8224. Me.InitAdapter
  8225. End If
  8226. Return Me._adapter
  8227. End Get
  8228. End Property
  8229. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8230. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8231. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  8232. Get
  8233. If (Me._connection Is Nothing) Then
  8234. Me.InitConnection
  8235. End If
  8236. Return Me._connection
  8237. End Get
  8238. Set
  8239. Me._connection = value
  8240. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  8241. Me.Adapter.InsertCommand.Connection = value
  8242. End If
  8243. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  8244. Me.Adapter.DeleteCommand.Connection = value
  8245. End If
  8246. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  8247. Me.Adapter.UpdateCommand.Connection = value
  8248. End If
  8249. Dim i As Integer = 0
  8250. Do While (i < Me.CommandCollection.Length)
  8251. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  8252. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  8253. End If
  8254. i = (i + 1)
  8255. Loop
  8256. End Set
  8257. End Property
  8258. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8259. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8260. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  8261. Get
  8262. Return Me._transaction
  8263. End Get
  8264. Set
  8265. Me._transaction = value
  8266. Dim i As Integer = 0
  8267. Do While (i < Me.CommandCollection.Length)
  8268. Me.CommandCollection(i).Transaction = Me._transaction
  8269. i = (i + 1)
  8270. Loop
  8271. If ((Not (Me.Adapter) Is Nothing) _
  8272. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  8273. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  8274. End If
  8275. If ((Not (Me.Adapter) Is Nothing) _
  8276. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  8277. Me.Adapter.InsertCommand.Transaction = Me._transaction
  8278. End If
  8279. If ((Not (Me.Adapter) Is Nothing) _
  8280. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  8281. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  8282. End If
  8283. End Set
  8284. End Property
  8285. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8286. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8287. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  8288. Get
  8289. If (Me._commandCollection Is Nothing) Then
  8290. Me.InitCommandCollection
  8291. End If
  8292. Return Me._commandCollection
  8293. End Get
  8294. End Property
  8295. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8296. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8297. Public Property ClearBeforeFill() As Boolean
  8298. Get
  8299. Return Me._clearBeforeFill
  8300. End Get
  8301. Set
  8302. Me._clearBeforeFill = value
  8303. End Set
  8304. End Property
  8305. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8306. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8307. Private Sub InitAdapter()
  8308. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  8309. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  8310. tableMapping.SourceTable = "Table"
  8311. tableMapping.DataSetTable = "EMIS"
  8312. tableMapping.ColumnMappings.Add("CodEmis", "CodEmis")
  8313. tableMapping.ColumnMappings.Add("Descrip", "Descrip")
  8314. tableMapping.ColumnMappings.Add("Estado", "Estado")
  8315. Me._adapter.TableMappings.Add(tableMapping)
  8316. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  8317. Me._adapter.DeleteCommand.Connection = Me.Connection
  8318. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[EMIS] WHERE (([CodEmis] = @Original_CodEmis) AND ((@IsNull_Des"& _
  8319. "crip = 1 AND [Descrip] IS NULL) OR ([Descrip] = @Original_Descrip)) AND ((@IsNul"& _
  8320. "l_Estado = 1 AND [Estado] IS NULL) OR ([Estado] = @Original_Estado)))"
  8321. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  8322. 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, "", "", ""))
  8323. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Descrip", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  8324. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  8325. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Estado", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Estado", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  8326. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Estado", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Estado", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  8327. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  8328. Me._adapter.InsertCommand.Connection = Me.Connection
  8329. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[EMIS] ([Descrip], [Estado]) VALUES (@Descrip, @Estado);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELEC"& _
  8330. "T CodEmis, Descrip, Estado FROM EMIS WHERE (CodEmis = SCOPE_IDENTITY())"
  8331. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  8332. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8333. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Estado", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Estado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8334. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  8335. Me._adapter.UpdateCommand.Connection = Me.Connection
  8336. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[EMIS] SET [Descrip] = @Descrip, [Estado] = @Estado WHERE (([CodEmis"& _
  8337. "] = @Original_CodEmis) AND ((@IsNull_Descrip = 1 AND [Descrip] IS NULL) OR ([Des"& _
  8338. "crip] = @Original_Descrip)) AND ((@IsNull_Estado = 1 AND [Estado] IS NULL) OR (["& _
  8339. "Estado] = @Original_Estado)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodEmis, Descrip, Estado FROM EMIS WHERE "& _
  8340. "(CodEmis = @CodEmis)"
  8341. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  8342. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8343. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Estado", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Estado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8344. 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, "", "", ""))
  8345. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Descrip", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  8346. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  8347. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Estado", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Estado", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  8348. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Estado", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Estado", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  8349. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodEmis", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmis", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8350. End Sub
  8351. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8352. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8353. Private Sub InitConnection()
  8354. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  8355. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  8356. End Sub
  8357. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8358. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8359. Private Sub InitCommandCollection()
  8360. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  8361. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  8362. Me._commandCollection(0).Connection = Me.Connection
  8363. Me._commandCollection(0).CommandText = "SELECT CodEmis, Descrip, Estado FROM dbo.EMIS"
  8364. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  8365. End Sub
  8366. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8367. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8368. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8369. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  8370. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.EMISDataTable) As Integer
  8371. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  8372. If (Me.ClearBeforeFill = true) Then
  8373. dataTable.Clear
  8374. End If
  8375. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  8376. Return returnValue
  8377. End Function
  8378. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8379. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8380. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8381. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  8382. Public Overloads Overridable Function GetData() As InversionesDataSet1.EMISDataTable
  8383. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  8384. Dim dataTable As InversionesDataSet1.EMISDataTable = New InversionesDataSet1.EMISDataTable()
  8385. Me.Adapter.Fill(dataTable)
  8386. Return dataTable
  8387. End Function
  8388. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8389. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8390. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8391. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.EMISDataTable) As Integer
  8392. Return Me.Adapter.Update(dataTable)
  8393. End Function
  8394. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8395. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8396. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8397. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  8398. Return Me.Adapter.Update(dataSet, "EMIS")
  8399. End Function
  8400. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8401. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8402. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8403. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  8404. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  8405. End Function
  8406. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8407. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8408. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8409. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  8410. Return Me.Adapter.Update(dataRows)
  8411. End Function
  8412. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8413. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8414. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8415. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  8416. Public Overloads Overridable Function Delete(ByVal Original_CodEmis As Integer, ByVal Original_Descrip As String, ByVal Original_Estado As String) As Integer
  8417. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodEmis,Integer)
  8418. If (Original_Descrip Is Nothing) Then
  8419. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  8420. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  8421. Else
  8422. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  8423. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Descrip,String)
  8424. End If
  8425. If (Original_Estado Is Nothing) Then
  8426. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
  8427. Me.Adapter.DeleteCommand.Parameters(4).Value = Global.System.DBNull.Value
  8428. Else
  8429. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
  8430. Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_Estado,String)
  8431. End If
  8432. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  8433. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  8434. <> Global.System.Data.ConnectionState.Open) Then
  8435. Me.Adapter.DeleteCommand.Connection.Open
  8436. End If
  8437. Try
  8438. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  8439. Return returnValue
  8440. Finally
  8441. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  8442. Me.Adapter.DeleteCommand.Connection.Close
  8443. End If
  8444. End Try
  8445. End Function
  8446. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8447. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8448. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8449. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  8450. Public Overloads Overridable Function Insert(ByVal Descrip As String, ByVal Estado As String) As Integer
  8451. If (Descrip Is Nothing) Then
  8452. Me.Adapter.InsertCommand.Parameters(0).Value = Global.System.DBNull.Value
  8453. Else
  8454. Me.Adapter.InsertCommand.Parameters(0).Value = CType(Descrip,String)
  8455. End If
  8456. If (Estado Is Nothing) Then
  8457. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  8458. Else
  8459. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Estado,String)
  8460. End If
  8461. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  8462. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  8463. <> Global.System.Data.ConnectionState.Open) Then
  8464. Me.Adapter.InsertCommand.Connection.Open
  8465. End If
  8466. Try
  8467. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  8468. Return returnValue
  8469. Finally
  8470. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  8471. Me.Adapter.InsertCommand.Connection.Close
  8472. End If
  8473. End Try
  8474. End Function
  8475. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8476. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8477. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8478. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  8479. Public Overloads Overridable Function Update(ByVal Descrip As String, ByVal Estado As String, ByVal Original_CodEmis As Integer, ByVal Original_Descrip As String, ByVal Original_Estado As String, ByVal CodEmis As Integer) As Integer
  8480. If (Descrip Is Nothing) Then
  8481. Me.Adapter.UpdateCommand.Parameters(0).Value = Global.System.DBNull.Value
  8482. Else
  8483. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(Descrip,String)
  8484. End If
  8485. If (Estado Is Nothing) Then
  8486. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  8487. Else
  8488. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Estado,String)
  8489. End If
  8490. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Original_CodEmis,Integer)
  8491. If (Original_Descrip Is Nothing) Then
  8492. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(1,Object)
  8493. Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
  8494. Else
  8495. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(0,Object)
  8496. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(Original_Descrip,String)
  8497. End If
  8498. If (Original_Estado Is Nothing) Then
  8499. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(1,Object)
  8500. Me.Adapter.UpdateCommand.Parameters(6).Value = Global.System.DBNull.Value
  8501. Else
  8502. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(0,Object)
  8503. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(Original_Estado,String)
  8504. End If
  8505. Me.Adapter.UpdateCommand.Parameters(7).Value = CType(CodEmis,Integer)
  8506. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  8507. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  8508. <> Global.System.Data.ConnectionState.Open) Then
  8509. Me.Adapter.UpdateCommand.Connection.Open
  8510. End If
  8511. Try
  8512. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  8513. Return returnValue
  8514. Finally
  8515. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  8516. Me.Adapter.UpdateCommand.Connection.Close
  8517. End If
  8518. End Try
  8519. End Function
  8520. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8521. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8522. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8523. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  8524. Public Overloads Overridable Function Update(ByVal Descrip As String, ByVal Estado As String, ByVal Original_CodEmis As Integer, ByVal Original_Descrip As String, ByVal Original_Estado As String) As Integer
  8525. Return Me.Update(Descrip, Estado, Original_CodEmis, Original_Descrip, Original_Estado, Original_CodEmis)
  8526. End Function
  8527. End Class
  8528. '''<summary>
  8529. '''Represents the connection and commands used to retrieve and save data.
  8530. '''</summary>
  8531. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  8532. Global.System.ComponentModel.ToolboxItem(true), _
  8533. Global.System.ComponentModel.DataObjectAttribute(true), _
  8534. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  8535. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  8536. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8537. Partial Public Class EMPRTableAdapter
  8538. Inherits Global.System.ComponentModel.Component
  8539. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  8540. Private _connection As Global.System.Data.SqlClient.SqlConnection
  8541. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  8542. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  8543. Private _clearBeforeFill As Boolean
  8544. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8545. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8546. Public Sub New()
  8547. MyBase.New
  8548. Me.ClearBeforeFill = true
  8549. End Sub
  8550. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8551. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8552. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  8553. Get
  8554. If (Me._adapter Is Nothing) Then
  8555. Me.InitAdapter
  8556. End If
  8557. Return Me._adapter
  8558. End Get
  8559. End Property
  8560. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8561. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8562. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  8563. Get
  8564. If (Me._connection Is Nothing) Then
  8565. Me.InitConnection
  8566. End If
  8567. Return Me._connection
  8568. End Get
  8569. Set
  8570. Me._connection = value
  8571. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  8572. Me.Adapter.InsertCommand.Connection = value
  8573. End If
  8574. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  8575. Me.Adapter.DeleteCommand.Connection = value
  8576. End If
  8577. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  8578. Me.Adapter.UpdateCommand.Connection = value
  8579. End If
  8580. Dim i As Integer = 0
  8581. Do While (i < Me.CommandCollection.Length)
  8582. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  8583. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  8584. End If
  8585. i = (i + 1)
  8586. Loop
  8587. End Set
  8588. End Property
  8589. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8590. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8591. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  8592. Get
  8593. Return Me._transaction
  8594. End Get
  8595. Set
  8596. Me._transaction = value
  8597. Dim i As Integer = 0
  8598. Do While (i < Me.CommandCollection.Length)
  8599. Me.CommandCollection(i).Transaction = Me._transaction
  8600. i = (i + 1)
  8601. Loop
  8602. If ((Not (Me.Adapter) Is Nothing) _
  8603. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  8604. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  8605. End If
  8606. If ((Not (Me.Adapter) Is Nothing) _
  8607. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  8608. Me.Adapter.InsertCommand.Transaction = Me._transaction
  8609. End If
  8610. If ((Not (Me.Adapter) Is Nothing) _
  8611. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  8612. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  8613. End If
  8614. End Set
  8615. End Property
  8616. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8617. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8618. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  8619. Get
  8620. If (Me._commandCollection Is Nothing) Then
  8621. Me.InitCommandCollection
  8622. End If
  8623. Return Me._commandCollection
  8624. End Get
  8625. End Property
  8626. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8627. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8628. Public Property ClearBeforeFill() As Boolean
  8629. Get
  8630. Return Me._clearBeforeFill
  8631. End Get
  8632. Set
  8633. Me._clearBeforeFill = value
  8634. End Set
  8635. End Property
  8636. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8637. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8638. Private Sub InitAdapter()
  8639. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  8640. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  8641. tableMapping.SourceTable = "Table"
  8642. tableMapping.DataSetTable = "EMPR"
  8643. tableMapping.ColumnMappings.Add("CodEmpr", "CodEmpr")
  8644. tableMapping.ColumnMappings.Add("Descrip", "Descrip")
  8645. tableMapping.ColumnMappings.Add("SAP_BD", "SAP_BD")
  8646. Me._adapter.TableMappings.Add(tableMapping)
  8647. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  8648. Me._adapter.DeleteCommand.Connection = Me.Connection
  8649. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [EMPR] WHERE (([CodEmpr] = @Original_CodEmpr) AND ((@IsNull_Descrip ="& _
  8650. " 1 AND [Descrip] IS NULL) OR ([Descrip] = @Original_Descrip)) AND ((@IsNull_SAP_"& _
  8651. "BD = 1 AND [SAP_BD] IS NULL) OR ([SAP_BD] = @Original_SAP_BD)))"
  8652. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  8653. 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, "", "", ""))
  8654. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Descrip", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  8655. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  8656. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_SAP_BD", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "SAP_BD", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  8657. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_SAP_BD", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "SAP_BD", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  8658. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  8659. Me._adapter.InsertCommand.Connection = Me.Connection
  8660. Me._adapter.InsertCommand.CommandText = "INSERT INTO EMPR"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" (CodEmpr, Descrip, SAP_BD)"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"VALUES "& _
  8661. " (@CodEmpr,@Descrip,@SAP_BD); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodEmpr, Descrip, SAP_BD FROM EMPR WH"& _
  8662. "ERE (CodEmpr = @CodEmpr)"
  8663. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  8664. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodEmpr", Global.System.Data.SqlDbType.VarChar, 10, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmpr", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8665. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8666. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SAP_BD", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "SAP_BD", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8667. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  8668. Me._adapter.UpdateCommand.Connection = Me.Connection
  8669. Me._adapter.UpdateCommand.CommandText = "UPDATE EMPR"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SET Descrip = @Descrip, SAP_BD = @SAP_BD"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE"& _
  8670. " (CodEmpr = @Original_CodEmpr); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodEmpr, Descrip, SAP_BD FRO"& _
  8671. "M EMPR WHERE (CodEmpr = @CodEmpr)"
  8672. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  8673. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8674. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SAP_BD", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "SAP_BD", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8675. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodEmpr", Global.System.Data.SqlDbType.VarChar, 10, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmpr", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  8676. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodEmpr", Global.System.Data.SqlDbType.VarChar, 10, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmpr", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  8677. End Sub
  8678. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8679. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8680. Private Sub InitConnection()
  8681. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  8682. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  8683. End Sub
  8684. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8685. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8686. Private Sub InitCommandCollection()
  8687. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  8688. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  8689. Me._commandCollection(0).Connection = Me.Connection
  8690. Me._commandCollection(0).CommandText = "SELECT CodEmpr, Descrip, SAP_BD"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM EMPR"
  8691. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  8692. End Sub
  8693. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8694. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8695. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8696. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  8697. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.EMPRDataTable) As Integer
  8698. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  8699. If (Me.ClearBeforeFill = true) Then
  8700. dataTable.Clear
  8701. End If
  8702. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  8703. Return returnValue
  8704. End Function
  8705. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8706. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8707. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8708. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  8709. Public Overloads Overridable Function GetData() As InversionesDataSet1.EMPRDataTable
  8710. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  8711. Dim dataTable As InversionesDataSet1.EMPRDataTable = New InversionesDataSet1.EMPRDataTable()
  8712. Me.Adapter.Fill(dataTable)
  8713. Return dataTable
  8714. End Function
  8715. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8716. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8717. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8718. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.EMPRDataTable) As Integer
  8719. Return Me.Adapter.Update(dataTable)
  8720. End Function
  8721. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8722. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8723. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8724. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  8725. Return Me.Adapter.Update(dataSet, "EMPR")
  8726. End Function
  8727. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8728. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8729. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8730. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  8731. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  8732. End Function
  8733. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8734. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8735. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8736. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  8737. Return Me.Adapter.Update(dataRows)
  8738. End Function
  8739. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8740. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8741. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8742. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  8743. Public Overloads Overridable Function Delete(ByVal Original_CodEmpr As String, ByVal Original_Descrip As String, ByVal Original_SAP_BD As String) As Integer
  8744. If (Original_CodEmpr Is Nothing) Then
  8745. Throw New Global.System.ArgumentNullException("Original_CodEmpr")
  8746. Else
  8747. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodEmpr,String)
  8748. End If
  8749. If (Original_Descrip Is Nothing) Then
  8750. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  8751. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  8752. Else
  8753. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  8754. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Descrip,String)
  8755. End If
  8756. If (Original_SAP_BD Is Nothing) Then
  8757. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
  8758. Me.Adapter.DeleteCommand.Parameters(4).Value = Global.System.DBNull.Value
  8759. Else
  8760. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
  8761. Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_SAP_BD,String)
  8762. End If
  8763. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  8764. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  8765. <> Global.System.Data.ConnectionState.Open) Then
  8766. Me.Adapter.DeleteCommand.Connection.Open
  8767. End If
  8768. Try
  8769. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  8770. Return returnValue
  8771. Finally
  8772. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  8773. Me.Adapter.DeleteCommand.Connection.Close
  8774. End If
  8775. End Try
  8776. End Function
  8777. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8778. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8779. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8780. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  8781. Public Overloads Overridable Function Insert(ByVal CodEmpr As String, ByVal Descrip As String, ByVal SAP_BD As String) As Integer
  8782. If (CodEmpr Is Nothing) Then
  8783. Throw New Global.System.ArgumentNullException("CodEmpr")
  8784. Else
  8785. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodEmpr,String)
  8786. End If
  8787. If (Descrip Is Nothing) Then
  8788. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  8789. Else
  8790. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Descrip,String)
  8791. End If
  8792. If (SAP_BD Is Nothing) Then
  8793. Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
  8794. Else
  8795. Me.Adapter.InsertCommand.Parameters(2).Value = CType(SAP_BD,String)
  8796. End If
  8797. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  8798. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  8799. <> Global.System.Data.ConnectionState.Open) Then
  8800. Me.Adapter.InsertCommand.Connection.Open
  8801. End If
  8802. Try
  8803. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  8804. Return returnValue
  8805. Finally
  8806. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  8807. Me.Adapter.InsertCommand.Connection.Close
  8808. End If
  8809. End Try
  8810. End Function
  8811. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8812. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  8813. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  8814. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  8815. Public Overloads Overridable Function Update(ByVal Descrip As String, ByVal SAP_BD As String, ByVal Original_CodEmpr As String, ByVal CodEmpr As String) As Integer
  8816. If (Descrip Is Nothing) Then
  8817. Me.Adapter.UpdateCommand.Parameters(0).Value = Global.System.DBNull.Value
  8818. Else
  8819. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(Descrip,String)
  8820. End If
  8821. If (SAP_BD Is Nothing) Then
  8822. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  8823. Else
  8824. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(SAP_BD,String)
  8825. End If
  8826. If (Original_CodEmpr Is Nothing) Then
  8827. Throw New Global.System.ArgumentNullException("Original_CodEmpr")
  8828. Else
  8829. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Original_CodEmpr,String)
  8830. End If
  8831. If (CodEmpr Is Nothing) Then
  8832. Throw New Global.System.ArgumentNullException("CodEmpr")
  8833. Else
  8834. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(CodEmpr,String)
  8835. End If
  8836. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  8837. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  8838. <> Global.System.Data.ConnectionState.Open) Then
  8839. Me.Adapter.UpdateCommand.Connection.Open
  8840. End If
  8841. Try
  8842. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  8843. Return returnValue
  8844. Finally
  8845. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  8846. Me.Adapter.UpdateCommand.Connection.Close
  8847. End If
  8848. End Try
  8849. End Function
  8850. End Class
  8851. '''<summary>
  8852. '''Represents the connection and commands used to retrieve and save data.
  8853. '''</summary>
  8854. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  8855. Global.System.ComponentModel.ToolboxItem(true), _
  8856. Global.System.ComponentModel.DataObjectAttribute(true), _
  8857. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  8858. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  8859. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  8860. Partial Public Class INFITableAdapter
  8861. Inherits Global.System.ComponentModel.Component
  8862. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  8863. Private _connection As Global.System.Data.SqlClient.SqlConnection
  8864. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  8865. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  8866. Private _clearBeforeFill As Boolean
  8867. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8868. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8869. Public Sub New()
  8870. MyBase.New
  8871. Me.ClearBeforeFill = true
  8872. End Sub
  8873. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8874. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8875. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  8876. Get
  8877. If (Me._adapter Is Nothing) Then
  8878. Me.InitAdapter
  8879. End If
  8880. Return Me._adapter
  8881. End Get
  8882. End Property
  8883. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8884. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8885. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  8886. Get
  8887. If (Me._connection Is Nothing) Then
  8888. Me.InitConnection
  8889. End If
  8890. Return Me._connection
  8891. End Get
  8892. Set
  8893. Me._connection = value
  8894. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  8895. Me.Adapter.InsertCommand.Connection = value
  8896. End If
  8897. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  8898. Me.Adapter.DeleteCommand.Connection = value
  8899. End If
  8900. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  8901. Me.Adapter.UpdateCommand.Connection = value
  8902. End If
  8903. Dim i As Integer = 0
  8904. Do While (i < Me.CommandCollection.Length)
  8905. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  8906. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  8907. End If
  8908. i = (i + 1)
  8909. Loop
  8910. End Set
  8911. End Property
  8912. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8913. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8914. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  8915. Get
  8916. Return Me._transaction
  8917. End Get
  8918. Set
  8919. Me._transaction = value
  8920. Dim i As Integer = 0
  8921. Do While (i < Me.CommandCollection.Length)
  8922. Me.CommandCollection(i).Transaction = Me._transaction
  8923. i = (i + 1)
  8924. Loop
  8925. If ((Not (Me.Adapter) Is Nothing) _
  8926. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  8927. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  8928. End If
  8929. If ((Not (Me.Adapter) Is Nothing) _
  8930. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  8931. Me.Adapter.InsertCommand.Transaction = Me._transaction
  8932. End If
  8933. If ((Not (Me.Adapter) Is Nothing) _
  8934. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  8935. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  8936. End If
  8937. End Set
  8938. End Property
  8939. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8940. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8941. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  8942. Get
  8943. If (Me._commandCollection Is Nothing) Then
  8944. Me.InitCommandCollection
  8945. End If
  8946. Return Me._commandCollection
  8947. End Get
  8948. End Property
  8949. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8950. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8951. Public Property ClearBeforeFill() As Boolean
  8952. Get
  8953. Return Me._clearBeforeFill
  8954. End Get
  8955. Set
  8956. Me._clearBeforeFill = value
  8957. End Set
  8958. End Property
  8959. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  8960. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  8961. Private Sub InitAdapter()
  8962. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  8963. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  8964. tableMapping.SourceTable = "Table"
  8965. tableMapping.DataSetTable = "INFI"
  8966. tableMapping.ColumnMappings.Add("CodIF", "CodIF")
  8967. tableMapping.ColumnMappings.Add("Descrip", "Descrip")
  8968. tableMapping.ColumnMappings.Add("Tipo", "Tipo")
  8969. Me._adapter.TableMappings.Add(tableMapping)
  8970. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  8971. Me._adapter.DeleteCommand.Connection = Me.Connection
  8972. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[INFI] WHERE (([CodIF] = @Original_CodIF) AND ((@IsNull_Descrip"& _
  8973. " = 1 AND [Descrip] IS NULL) OR ([Descrip] = @Original_Descrip)) AND ((@IsNull_Ti"& _
  8974. "po = 1 AND [Tipo] IS NULL) OR ([Tipo] = @Original_Tipo)))"
  8975. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  8976. 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, "", "", ""))
  8977. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Descrip", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  8978. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  8979. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Tipo", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Tipo", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  8980. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Tipo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Tipo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  8981. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  8982. Me._adapter.InsertCommand.Connection = Me.Connection
  8983. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[INFI] ([CodIF], [Descrip], [Tipo]) VALUES (@CodIF, @Descrip, @"& _
  8984. "Tipo);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodIF, Descrip, Tipo FROM INFI WHERE (CodIF = @CodIF)"
  8985. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  8986. 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, "", "", ""))
  8987. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8988. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Tipo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Tipo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8989. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  8990. Me._adapter.UpdateCommand.Connection = Me.Connection
  8991. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[INFI] SET [CodIF] = @CodIF, [Descrip] = @Descrip, [Tipo] = @Tipo WH"& _
  8992. "ERE (([CodIF] = @Original_CodIF) AND ((@IsNull_Descrip = 1 AND [Descrip] IS NULL"& _
  8993. ") OR ([Descrip] = @Original_Descrip)) AND ((@IsNull_Tipo = 1 AND [Tipo] IS NULL)"& _
  8994. " OR ([Tipo] = @Original_Tipo)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodIF, Descrip, Tipo FROM INFI WHERE (C"& _
  8995. "odIF = @CodIF)"
  8996. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  8997. 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, "", "", ""))
  8998. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  8999. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Tipo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Tipo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  9000. 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, "", "", ""))
  9001. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Descrip", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  9002. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  9003. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Tipo", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Tipo", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  9004. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Tipo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Tipo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  9005. End Sub
  9006. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9007. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9008. Private Sub InitConnection()
  9009. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  9010. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  9011. End Sub
  9012. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9013. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9014. Private Sub InitCommandCollection()
  9015. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  9016. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  9017. Me._commandCollection(0).Connection = Me.Connection
  9018. Me._commandCollection(0).CommandText = "SELECT CodIF, Descrip, Tipo FROM dbo.INFI"
  9019. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  9020. End Sub
  9021. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9022. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9023. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9024. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  9025. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.INFIDataTable) As Integer
  9026. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  9027. If (Me.ClearBeforeFill = true) Then
  9028. dataTable.Clear
  9029. End If
  9030. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  9031. Return returnValue
  9032. End Function
  9033. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9034. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9035. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9036. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  9037. Public Overloads Overridable Function GetData() As InversionesDataSet1.INFIDataTable
  9038. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  9039. Dim dataTable As InversionesDataSet1.INFIDataTable = New InversionesDataSet1.INFIDataTable()
  9040. Me.Adapter.Fill(dataTable)
  9041. Return dataTable
  9042. End Function
  9043. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9044. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9045. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9046. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.INFIDataTable) As Integer
  9047. Return Me.Adapter.Update(dataTable)
  9048. End Function
  9049. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9050. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9051. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9052. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  9053. Return Me.Adapter.Update(dataSet, "INFI")
  9054. End Function
  9055. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9056. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9057. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9058. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  9059. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  9060. End Function
  9061. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9062. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9063. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9064. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  9065. Return Me.Adapter.Update(dataRows)
  9066. End Function
  9067. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9068. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9069. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9070. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  9071. Public Overloads Overridable Function Delete(ByVal Original_CodIF As String, ByVal Original_Descrip As String, ByVal Original_Tipo As String) As Integer
  9072. If (Original_CodIF Is Nothing) Then
  9073. Throw New Global.System.ArgumentNullException("Original_CodIF")
  9074. Else
  9075. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodIF,String)
  9076. End If
  9077. If (Original_Descrip Is Nothing) Then
  9078. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  9079. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  9080. Else
  9081. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  9082. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Descrip,String)
  9083. End If
  9084. If (Original_Tipo Is Nothing) Then
  9085. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
  9086. Me.Adapter.DeleteCommand.Parameters(4).Value = Global.System.DBNull.Value
  9087. Else
  9088. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
  9089. Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_Tipo,String)
  9090. End If
  9091. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  9092. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  9093. <> Global.System.Data.ConnectionState.Open) Then
  9094. Me.Adapter.DeleteCommand.Connection.Open
  9095. End If
  9096. Try
  9097. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  9098. Return returnValue
  9099. Finally
  9100. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  9101. Me.Adapter.DeleteCommand.Connection.Close
  9102. End If
  9103. End Try
  9104. End Function
  9105. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9106. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9107. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9108. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  9109. Public Overloads Overridable Function Insert(ByVal CodIF As String, ByVal Descrip As String, ByVal Tipo As String) As Integer
  9110. If (CodIF Is Nothing) Then
  9111. Throw New Global.System.ArgumentNullException("CodIF")
  9112. Else
  9113. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodIF,String)
  9114. End If
  9115. If (Descrip Is Nothing) Then
  9116. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  9117. Else
  9118. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Descrip,String)
  9119. End If
  9120. If (Tipo Is Nothing) Then
  9121. Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
  9122. Else
  9123. Me.Adapter.InsertCommand.Parameters(2).Value = CType(Tipo,String)
  9124. End If
  9125. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  9126. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  9127. <> Global.System.Data.ConnectionState.Open) Then
  9128. Me.Adapter.InsertCommand.Connection.Open
  9129. End If
  9130. Try
  9131. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  9132. Return returnValue
  9133. Finally
  9134. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  9135. Me.Adapter.InsertCommand.Connection.Close
  9136. End If
  9137. End Try
  9138. End Function
  9139. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9140. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9141. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9142. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  9143. Public Overloads Overridable Function Update(ByVal CodIF As String, ByVal Descrip As String, ByVal Tipo As String, ByVal Original_CodIF As String, ByVal Original_Descrip As String, ByVal Original_Tipo As String) As Integer
  9144. If (CodIF Is Nothing) Then
  9145. Throw New Global.System.ArgumentNullException("CodIF")
  9146. Else
  9147. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodIF,String)
  9148. End If
  9149. If (Descrip Is Nothing) Then
  9150. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  9151. Else
  9152. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Descrip,String)
  9153. End If
  9154. If (Tipo Is Nothing) Then
  9155. Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
  9156. Else
  9157. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Tipo,String)
  9158. End If
  9159. If (Original_CodIF Is Nothing) Then
  9160. Throw New Global.System.ArgumentNullException("Original_CodIF")
  9161. Else
  9162. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(Original_CodIF,String)
  9163. End If
  9164. If (Original_Descrip Is Nothing) Then
  9165. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(1,Object)
  9166. Me.Adapter.UpdateCommand.Parameters(5).Value = Global.System.DBNull.Value
  9167. Else
  9168. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(0,Object)
  9169. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(Original_Descrip,String)
  9170. End If
  9171. If (Original_Tipo Is Nothing) Then
  9172. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(1,Object)
  9173. Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
  9174. Else
  9175. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(0,Object)
  9176. Me.Adapter.UpdateCommand.Parameters(7).Value = CType(Original_Tipo,String)
  9177. End If
  9178. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  9179. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  9180. <> Global.System.Data.ConnectionState.Open) Then
  9181. Me.Adapter.UpdateCommand.Connection.Open
  9182. End If
  9183. Try
  9184. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  9185. Return returnValue
  9186. Finally
  9187. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  9188. Me.Adapter.UpdateCommand.Connection.Close
  9189. End If
  9190. End Try
  9191. End Function
  9192. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9193. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9194. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9195. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  9196. Public Overloads Overridable Function Update(ByVal Descrip As String, ByVal Tipo As String, ByVal Original_CodIF As String, ByVal Original_Descrip As String, ByVal Original_Tipo As String) As Integer
  9197. Return Me.Update(Original_CodIF, Descrip, Tipo, Original_CodIF, Original_Descrip, Original_Tipo)
  9198. End Function
  9199. End Class
  9200. '''<summary>
  9201. '''Represents the connection and commands used to retrieve and save data.
  9202. '''</summary>
  9203. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  9204. Global.System.ComponentModel.ToolboxItem(true), _
  9205. Global.System.ComponentModel.DataObjectAttribute(true), _
  9206. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  9207. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  9208. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9209. Partial Public Class PAISTableAdapter
  9210. Inherits Global.System.ComponentModel.Component
  9211. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  9212. Private _connection As Global.System.Data.SqlClient.SqlConnection
  9213. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  9214. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  9215. Private _clearBeforeFill As Boolean
  9216. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9217. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9218. Public Sub New()
  9219. MyBase.New
  9220. Me.ClearBeforeFill = true
  9221. End Sub
  9222. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9223. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9224. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  9225. Get
  9226. If (Me._adapter Is Nothing) Then
  9227. Me.InitAdapter
  9228. End If
  9229. Return Me._adapter
  9230. End Get
  9231. End Property
  9232. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9233. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9234. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  9235. Get
  9236. If (Me._connection Is Nothing) Then
  9237. Me.InitConnection
  9238. End If
  9239. Return Me._connection
  9240. End Get
  9241. Set
  9242. Me._connection = value
  9243. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  9244. Me.Adapter.InsertCommand.Connection = value
  9245. End If
  9246. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  9247. Me.Adapter.DeleteCommand.Connection = value
  9248. End If
  9249. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  9250. Me.Adapter.UpdateCommand.Connection = value
  9251. End If
  9252. Dim i As Integer = 0
  9253. Do While (i < Me.CommandCollection.Length)
  9254. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  9255. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  9256. End If
  9257. i = (i + 1)
  9258. Loop
  9259. End Set
  9260. End Property
  9261. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9262. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9263. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  9264. Get
  9265. Return Me._transaction
  9266. End Get
  9267. Set
  9268. Me._transaction = value
  9269. Dim i As Integer = 0
  9270. Do While (i < Me.CommandCollection.Length)
  9271. Me.CommandCollection(i).Transaction = Me._transaction
  9272. i = (i + 1)
  9273. Loop
  9274. If ((Not (Me.Adapter) Is Nothing) _
  9275. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  9276. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  9277. End If
  9278. If ((Not (Me.Adapter) Is Nothing) _
  9279. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  9280. Me.Adapter.InsertCommand.Transaction = Me._transaction
  9281. End If
  9282. If ((Not (Me.Adapter) Is Nothing) _
  9283. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  9284. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  9285. End If
  9286. End Set
  9287. End Property
  9288. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9289. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9290. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  9291. Get
  9292. If (Me._commandCollection Is Nothing) Then
  9293. Me.InitCommandCollection
  9294. End If
  9295. Return Me._commandCollection
  9296. End Get
  9297. End Property
  9298. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9299. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9300. Public Property ClearBeforeFill() As Boolean
  9301. Get
  9302. Return Me._clearBeforeFill
  9303. End Get
  9304. Set
  9305. Me._clearBeforeFill = value
  9306. End Set
  9307. End Property
  9308. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9309. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9310. Private Sub InitAdapter()
  9311. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  9312. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  9313. tableMapping.SourceTable = "Table"
  9314. tableMapping.DataSetTable = "PAIS"
  9315. tableMapping.ColumnMappings.Add("CodPais", "CodPais")
  9316. tableMapping.ColumnMappings.Add("Descrip", "Descrip")
  9317. tableMapping.ColumnMappings.Add("RelInv", "RelInv")
  9318. Me._adapter.TableMappings.Add(tableMapping)
  9319. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  9320. Me._adapter.DeleteCommand.Connection = Me.Connection
  9321. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[PAIS] WHERE (([CodPais] = @Original_CodPais) AND ((@IsNull_Des"& _
  9322. "crip = 1 AND [Descrip] IS NULL) OR ([Descrip] = @Original_Descrip)) AND ((@IsNul"& _
  9323. "l_RelInv = 1 AND [RelInv] IS NULL) OR ([RelInv] = @Original_RelInv)))"
  9324. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  9325. 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, "", "", ""))
  9326. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Descrip", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  9327. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  9328. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_RelInv", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "RelInv", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  9329. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_RelInv", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "RelInv", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  9330. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  9331. Me._adapter.InsertCommand.Connection = Me.Connection
  9332. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[PAIS] ([CodPais], [Descrip], [RelInv]) VALUES (@CodPais, @Desc"& _
  9333. "rip, @RelInv);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodPais, Descrip, RelInv FROM PAIS WHERE (CodPais = @CodP"& _
  9334. "ais)"
  9335. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  9336. 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, "", "", ""))
  9337. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  9338. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@RelInv", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "RelInv", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  9339. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  9340. Me._adapter.UpdateCommand.Connection = Me.Connection
  9341. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[PAIS] SET [CodPais] = @CodPais, [Descrip] = @Descrip, [RelInv] = @R"& _
  9342. "elInv WHERE (([CodPais] = @Original_CodPais) AND ((@IsNull_Descrip = 1 AND [Desc"& _
  9343. "rip] IS NULL) OR ([Descrip] = @Original_Descrip)) AND ((@IsNull_RelInv = 1 AND ["& _
  9344. "RelInv] IS NULL) OR ([RelInv] = @Original_RelInv)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodPais, Descrip, R"& _
  9345. "elInv FROM PAIS WHERE (CodPais = @CodPais)"
  9346. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  9347. 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, "", "", ""))
  9348. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  9349. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@RelInv", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "RelInv", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  9350. 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, "", "", ""))
  9351. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Descrip", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  9352. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  9353. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_RelInv", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "RelInv", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  9354. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_RelInv", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "RelInv", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  9355. End Sub
  9356. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9357. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9358. Private Sub InitConnection()
  9359. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  9360. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  9361. End Sub
  9362. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9363. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9364. Private Sub InitCommandCollection()
  9365. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  9366. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  9367. Me._commandCollection(0).Connection = Me.Connection
  9368. Me._commandCollection(0).CommandText = "SELECT CodPais, Descrip, RelInv FROM dbo.PAIS"
  9369. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  9370. End Sub
  9371. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9372. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9373. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9374. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  9375. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.PAISDataTable) As Integer
  9376. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  9377. If (Me.ClearBeforeFill = true) Then
  9378. dataTable.Clear
  9379. End If
  9380. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  9381. Return returnValue
  9382. End Function
  9383. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9384. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9385. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9386. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  9387. Public Overloads Overridable Function GetData() As InversionesDataSet1.PAISDataTable
  9388. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  9389. Dim dataTable As InversionesDataSet1.PAISDataTable = New InversionesDataSet1.PAISDataTable()
  9390. Me.Adapter.Fill(dataTable)
  9391. Return dataTable
  9392. End Function
  9393. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9394. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9395. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9396. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.PAISDataTable) As Integer
  9397. Return Me.Adapter.Update(dataTable)
  9398. End Function
  9399. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9400. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9401. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9402. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  9403. Return Me.Adapter.Update(dataSet, "PAIS")
  9404. End Function
  9405. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9406. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9407. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9408. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  9409. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  9410. End Function
  9411. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9412. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9413. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9414. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  9415. Return Me.Adapter.Update(dataRows)
  9416. End Function
  9417. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9418. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9419. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9420. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  9421. Public Overloads Overridable Function Delete(ByVal Original_CodPais As String, ByVal Original_Descrip As String, ByVal Original_RelInv As String) As Integer
  9422. If (Original_CodPais Is Nothing) Then
  9423. Throw New Global.System.ArgumentNullException("Original_CodPais")
  9424. Else
  9425. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodPais,String)
  9426. End If
  9427. If (Original_Descrip Is Nothing) Then
  9428. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  9429. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  9430. Else
  9431. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  9432. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Descrip,String)
  9433. End If
  9434. If (Original_RelInv Is Nothing) Then
  9435. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
  9436. Me.Adapter.DeleteCommand.Parameters(4).Value = Global.System.DBNull.Value
  9437. Else
  9438. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
  9439. Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_RelInv,String)
  9440. End If
  9441. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  9442. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  9443. <> Global.System.Data.ConnectionState.Open) Then
  9444. Me.Adapter.DeleteCommand.Connection.Open
  9445. End If
  9446. Try
  9447. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  9448. Return returnValue
  9449. Finally
  9450. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  9451. Me.Adapter.DeleteCommand.Connection.Close
  9452. End If
  9453. End Try
  9454. End Function
  9455. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9456. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9457. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9458. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  9459. Public Overloads Overridable Function Insert(ByVal CodPais As String, ByVal Descrip As String, ByVal RelInv As String) As Integer
  9460. If (CodPais Is Nothing) Then
  9461. Throw New Global.System.ArgumentNullException("CodPais")
  9462. Else
  9463. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodPais,String)
  9464. End If
  9465. If (Descrip Is Nothing) Then
  9466. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  9467. Else
  9468. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Descrip,String)
  9469. End If
  9470. If (RelInv Is Nothing) Then
  9471. Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
  9472. Else
  9473. Me.Adapter.InsertCommand.Parameters(2).Value = CType(RelInv,String)
  9474. End If
  9475. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  9476. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  9477. <> Global.System.Data.ConnectionState.Open) Then
  9478. Me.Adapter.InsertCommand.Connection.Open
  9479. End If
  9480. Try
  9481. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  9482. Return returnValue
  9483. Finally
  9484. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  9485. Me.Adapter.InsertCommand.Connection.Close
  9486. End If
  9487. End Try
  9488. End Function
  9489. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9490. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9491. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9492. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  9493. Public Overloads Overridable Function Update(ByVal CodPais As String, ByVal Descrip As String, ByVal RelInv As String, ByVal Original_CodPais As String, ByVal Original_Descrip As String, ByVal Original_RelInv As String) As Integer
  9494. If (CodPais Is Nothing) Then
  9495. Throw New Global.System.ArgumentNullException("CodPais")
  9496. Else
  9497. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodPais,String)
  9498. End If
  9499. If (Descrip Is Nothing) Then
  9500. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  9501. Else
  9502. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Descrip,String)
  9503. End If
  9504. If (RelInv Is Nothing) Then
  9505. Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
  9506. Else
  9507. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(RelInv,String)
  9508. End If
  9509. If (Original_CodPais Is Nothing) Then
  9510. Throw New Global.System.ArgumentNullException("Original_CodPais")
  9511. Else
  9512. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(Original_CodPais,String)
  9513. End If
  9514. If (Original_Descrip Is Nothing) Then
  9515. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(1,Object)
  9516. Me.Adapter.UpdateCommand.Parameters(5).Value = Global.System.DBNull.Value
  9517. Else
  9518. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(0,Object)
  9519. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(Original_Descrip,String)
  9520. End If
  9521. If (Original_RelInv Is Nothing) Then
  9522. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(1,Object)
  9523. Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
  9524. Else
  9525. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(0,Object)
  9526. Me.Adapter.UpdateCommand.Parameters(7).Value = CType(Original_RelInv,String)
  9527. End If
  9528. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  9529. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  9530. <> Global.System.Data.ConnectionState.Open) Then
  9531. Me.Adapter.UpdateCommand.Connection.Open
  9532. End If
  9533. Try
  9534. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  9535. Return returnValue
  9536. Finally
  9537. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  9538. Me.Adapter.UpdateCommand.Connection.Close
  9539. End If
  9540. End Try
  9541. End Function
  9542. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9543. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9544. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9545. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  9546. Public Overloads Overridable Function Update(ByVal Descrip As String, ByVal RelInv As String, ByVal Original_CodPais As String, ByVal Original_Descrip As String, ByVal Original_RelInv As String) As Integer
  9547. Return Me.Update(Original_CodPais, Descrip, RelInv, Original_CodPais, Original_Descrip, Original_RelInv)
  9548. End Function
  9549. End Class
  9550. '''<summary>
  9551. '''Represents the connection and commands used to retrieve and save data.
  9552. '''</summary>
  9553. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  9554. Global.System.ComponentModel.ToolboxItem(true), _
  9555. Global.System.ComponentModel.DataObjectAttribute(true), _
  9556. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  9557. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  9558. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9559. Partial Public Class SP_InventarioMasterTableAdapter
  9560. Inherits Global.System.ComponentModel.Component
  9561. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  9562. Private _connection As Global.System.Data.SqlClient.SqlConnection
  9563. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  9564. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  9565. Private _clearBeforeFill As Boolean
  9566. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9567. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9568. Public Sub New()
  9569. MyBase.New
  9570. Me.ClearBeforeFill = true
  9571. End Sub
  9572. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9573. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9574. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  9575. Get
  9576. If (Me._adapter Is Nothing) Then
  9577. Me.InitAdapter
  9578. End If
  9579. Return Me._adapter
  9580. End Get
  9581. End Property
  9582. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9583. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9584. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  9585. Get
  9586. If (Me._connection Is Nothing) Then
  9587. Me.InitConnection
  9588. End If
  9589. Return Me._connection
  9590. End Get
  9591. Set
  9592. Me._connection = value
  9593. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  9594. Me.Adapter.InsertCommand.Connection = value
  9595. End If
  9596. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  9597. Me.Adapter.DeleteCommand.Connection = value
  9598. End If
  9599. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  9600. Me.Adapter.UpdateCommand.Connection = value
  9601. End If
  9602. Dim i As Integer = 0
  9603. Do While (i < Me.CommandCollection.Length)
  9604. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  9605. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  9606. End If
  9607. i = (i + 1)
  9608. Loop
  9609. End Set
  9610. End Property
  9611. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9612. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9613. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  9614. Get
  9615. Return Me._transaction
  9616. End Get
  9617. Set
  9618. Me._transaction = value
  9619. Dim i As Integer = 0
  9620. Do While (i < Me.CommandCollection.Length)
  9621. Me.CommandCollection(i).Transaction = Me._transaction
  9622. i = (i + 1)
  9623. Loop
  9624. If ((Not (Me.Adapter) Is Nothing) _
  9625. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  9626. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  9627. End If
  9628. If ((Not (Me.Adapter) Is Nothing) _
  9629. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  9630. Me.Adapter.InsertCommand.Transaction = Me._transaction
  9631. End If
  9632. If ((Not (Me.Adapter) Is Nothing) _
  9633. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  9634. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  9635. End If
  9636. End Set
  9637. End Property
  9638. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9639. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9640. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  9641. Get
  9642. If (Me._commandCollection Is Nothing) Then
  9643. Me.InitCommandCollection
  9644. End If
  9645. Return Me._commandCollection
  9646. End Get
  9647. End Property
  9648. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9649. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9650. Public Property ClearBeforeFill() As Boolean
  9651. Get
  9652. Return Me._clearBeforeFill
  9653. End Get
  9654. Set
  9655. Me._clearBeforeFill = value
  9656. End Set
  9657. End Property
  9658. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9659. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9660. Private Sub InitAdapter()
  9661. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  9662. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  9663. tableMapping.SourceTable = "Table"
  9664. tableMapping.DataSetTable = "SP_InventarioMaster"
  9665. tableMapping.ColumnMappings.Add("CodInv", "CodInv")
  9666. tableMapping.ColumnMappings.Add("CodIF", "CodIF")
  9667. tableMapping.ColumnMappings.Add("Estado", "Estado")
  9668. tableMapping.ColumnMappings.Add("CodEmpr", "CodEmpr")
  9669. tableMapping.ColumnMappings.Add("NombreManIF", "NombreManIF")
  9670. tableMapping.ColumnMappings.Add("CodManIF", "CodManIF")
  9671. tableMapping.ColumnMappings.Add("CodEmis", "CodEmis")
  9672. tableMapping.ColumnMappings.Add("iCasaBanco", "iCasaBanco")
  9673. tableMapping.ColumnMappings.Add("vCasaBanco", "vCasaBanco")
  9674. tableMapping.ColumnMappings.Add("TipoMerc", "TipoMerc")
  9675. tableMapping.ColumnMappings.Add("CodCalRi", "CodCalRi")
  9676. tableMapping.ColumnMappings.Add("CodECalRi", "CodECalRi")
  9677. tableMapping.ColumnMappings.Add("ValorNominal", "ValorNominal")
  9678. Me._adapter.TableMappings.Add(tableMapping)
  9679. End Sub
  9680. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9681. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9682. Private Sub InitConnection()
  9683. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  9684. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  9685. End Sub
  9686. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9687. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9688. Private Sub InitCommandCollection()
  9689. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  9690. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  9691. Me._commandCollection(0).Connection = Me.Connection
  9692. Me._commandCollection(0).CommandText = "dbo.SP_InventarioMaster"
  9693. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.StoredProcedure
  9694. Me._commandCollection(0).Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@RETURN_VALUE", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.ReturnValue, 10, 0, Nothing, Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  9695. End Sub
  9696. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9697. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9698. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9699. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  9700. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.SP_InventarioMasterDataTable) As Integer
  9701. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  9702. If (Me.ClearBeforeFill = true) Then
  9703. dataTable.Clear
  9704. End If
  9705. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  9706. Return returnValue
  9707. End Function
  9708. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9709. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9710. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9711. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  9712. Public Overloads Overridable Function GetData() As InversionesDataSet1.SP_InventarioMasterDataTable
  9713. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  9714. Dim dataTable As InversionesDataSet1.SP_InventarioMasterDataTable = New InversionesDataSet1.SP_InventarioMasterDataTable()
  9715. Me.Adapter.Fill(dataTable)
  9716. Return dataTable
  9717. End Function
  9718. End Class
  9719. '''<summary>
  9720. '''Represents the connection and commands used to retrieve and save data.
  9721. '''</summary>
  9722. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  9723. Global.System.ComponentModel.ToolboxItem(true), _
  9724. Global.System.ComponentModel.DataObjectAttribute(true), _
  9725. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  9726. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  9727. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9728. Partial Public Class BAN0TableAdapter
  9729. Inherits Global.System.ComponentModel.Component
  9730. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  9731. Private _connection As Global.System.Data.SqlClient.SqlConnection
  9732. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  9733. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  9734. Private _clearBeforeFill As Boolean
  9735. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9736. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9737. Public Sub New()
  9738. MyBase.New
  9739. Me.ClearBeforeFill = true
  9740. End Sub
  9741. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9742. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9743. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  9744. Get
  9745. If (Me._adapter Is Nothing) Then
  9746. Me.InitAdapter
  9747. End If
  9748. Return Me._adapter
  9749. End Get
  9750. End Property
  9751. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9752. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9753. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  9754. Get
  9755. If (Me._connection Is Nothing) Then
  9756. Me.InitConnection
  9757. End If
  9758. Return Me._connection
  9759. End Get
  9760. Set
  9761. Me._connection = value
  9762. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  9763. Me.Adapter.InsertCommand.Connection = value
  9764. End If
  9765. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  9766. Me.Adapter.DeleteCommand.Connection = value
  9767. End If
  9768. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  9769. Me.Adapter.UpdateCommand.Connection = value
  9770. End If
  9771. Dim i As Integer = 0
  9772. Do While (i < Me.CommandCollection.Length)
  9773. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  9774. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  9775. End If
  9776. i = (i + 1)
  9777. Loop
  9778. End Set
  9779. End Property
  9780. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9781. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9782. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  9783. Get
  9784. Return Me._transaction
  9785. End Get
  9786. Set
  9787. Me._transaction = value
  9788. Dim i As Integer = 0
  9789. Do While (i < Me.CommandCollection.Length)
  9790. Me.CommandCollection(i).Transaction = Me._transaction
  9791. i = (i + 1)
  9792. Loop
  9793. If ((Not (Me.Adapter) Is Nothing) _
  9794. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  9795. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  9796. End If
  9797. If ((Not (Me.Adapter) Is Nothing) _
  9798. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  9799. Me.Adapter.InsertCommand.Transaction = Me._transaction
  9800. End If
  9801. If ((Not (Me.Adapter) Is Nothing) _
  9802. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  9803. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  9804. End If
  9805. End Set
  9806. End Property
  9807. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9808. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9809. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  9810. Get
  9811. If (Me._commandCollection Is Nothing) Then
  9812. Me.InitCommandCollection
  9813. End If
  9814. Return Me._commandCollection
  9815. End Get
  9816. End Property
  9817. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9818. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9819. Public Property ClearBeforeFill() As Boolean
  9820. Get
  9821. Return Me._clearBeforeFill
  9822. End Get
  9823. Set
  9824. Me._clearBeforeFill = value
  9825. End Set
  9826. End Property
  9827. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9828. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9829. Private Sub InitAdapter()
  9830. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  9831. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  9832. tableMapping.SourceTable = "Table"
  9833. tableMapping.DataSetTable = "BAN0"
  9834. tableMapping.ColumnMappings.Add("CodBanco", "CodBanco")
  9835. tableMapping.ColumnMappings.Add("CodPais", "CodPais")
  9836. tableMapping.ColumnMappings.Add("NombreBanco", "NombreBanco")
  9837. Me._adapter.TableMappings.Add(tableMapping)
  9838. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  9839. Me._adapter.DeleteCommand.Connection = Me.Connection
  9840. Me._adapter.DeleteCommand.CommandText = "DELETE FROM BAN0"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (CodBanco = @Original_CodBanco)"
  9841. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  9842. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodBanco", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  9843. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  9844. Me._adapter.InsertCommand.Connection = Me.Connection
  9845. Me._adapter.InsertCommand.CommandText = "INSERT INTO BAN0"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" (CodBanco, CodPais, NombreBanco)"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"VALU"& _
  9846. "ES (@CodBanco,@CodPais,@NombreBanco); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodBanco, CodPais, NombreB"& _
  9847. "anco FROM BAN0 WHERE (CodBanco = @CodBanco)"
  9848. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  9849. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodBanco", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  9850. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodPais", Global.System.Data.SqlDbType.VarChar, 3, Global.System.Data.ParameterDirection.Input, 0, 0, "CodPais", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  9851. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@NombreBanco", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "NombreBanco", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  9852. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  9853. Me._adapter.UpdateCommand.Connection = Me.Connection
  9854. Me._adapter.UpdateCommand.CommandText = "UPDATE BAN0"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SET CodBanco = @CodBanco, CodPais = @CodPais, N"& _
  9855. "ombreBanco = @NombreBanco"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (CodBanco = @Original_CodBanco); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELEC"& _
  9856. "T CodBanco, CodPais, NombreBanco FROM BAN0 WHERE (CodBanco = @CodBanco)"
  9857. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  9858. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodBanco", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  9859. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodPais", Global.System.Data.SqlDbType.VarChar, 3, Global.System.Data.ParameterDirection.Input, 0, 0, "CodPais", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  9860. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@NombreBanco", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "NombreBanco", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  9861. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodBanco", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  9862. End Sub
  9863. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9864. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9865. Private Sub InitConnection()
  9866. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  9867. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  9868. End Sub
  9869. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9870. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  9871. Private Sub InitCommandCollection()
  9872. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  9873. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  9874. Me._commandCollection(0).Connection = Me.Connection
  9875. Me._commandCollection(0).CommandText = "SELECT CodBanco, CodPais, NombreBanco"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM BAN0"
  9876. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  9877. End Sub
  9878. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9879. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9880. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9881. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  9882. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.BAN0DataTable) As Integer
  9883. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  9884. If (Me.ClearBeforeFill = true) Then
  9885. dataTable.Clear
  9886. End If
  9887. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  9888. Return returnValue
  9889. End Function
  9890. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9891. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9892. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9893. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  9894. Public Overloads Overridable Function GetData() As InversionesDataSet1.BAN0DataTable
  9895. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  9896. Dim dataTable As InversionesDataSet1.BAN0DataTable = New InversionesDataSet1.BAN0DataTable()
  9897. Me.Adapter.Fill(dataTable)
  9898. Return dataTable
  9899. End Function
  9900. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9901. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9902. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9903. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.BAN0DataTable) As Integer
  9904. Return Me.Adapter.Update(dataTable)
  9905. End Function
  9906. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9907. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9908. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9909. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  9910. Return Me.Adapter.Update(dataSet, "BAN0")
  9911. End Function
  9912. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9913. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9914. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9915. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  9916. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  9917. End Function
  9918. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9919. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9920. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  9921. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  9922. Return Me.Adapter.Update(dataRows)
  9923. End Function
  9924. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9925. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9926. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9927. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  9928. Public Overloads Overridable Function Delete(ByVal Original_CodBanco As String) As Integer
  9929. If (Original_CodBanco Is Nothing) Then
  9930. Throw New Global.System.ArgumentNullException("Original_CodBanco")
  9931. Else
  9932. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodBanco,String)
  9933. End If
  9934. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  9935. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  9936. <> Global.System.Data.ConnectionState.Open) Then
  9937. Me.Adapter.DeleteCommand.Connection.Open
  9938. End If
  9939. Try
  9940. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  9941. Return returnValue
  9942. Finally
  9943. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  9944. Me.Adapter.DeleteCommand.Connection.Close
  9945. End If
  9946. End Try
  9947. End Function
  9948. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9949. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9950. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9951. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  9952. Public Overloads Overridable Function Insert(ByVal CodBanco As String, ByVal CodPais As String, ByVal NombreBanco As String) As Integer
  9953. If (CodBanco Is Nothing) Then
  9954. Throw New Global.System.ArgumentNullException("CodBanco")
  9955. Else
  9956. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodBanco,String)
  9957. End If
  9958. If (CodPais Is Nothing) Then
  9959. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  9960. Else
  9961. Me.Adapter.InsertCommand.Parameters(1).Value = CType(CodPais,String)
  9962. End If
  9963. If (NombreBanco Is Nothing) Then
  9964. Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
  9965. Else
  9966. Me.Adapter.InsertCommand.Parameters(2).Value = CType(NombreBanco,String)
  9967. End If
  9968. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  9969. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  9970. <> Global.System.Data.ConnectionState.Open) Then
  9971. Me.Adapter.InsertCommand.Connection.Open
  9972. End If
  9973. Try
  9974. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  9975. Return returnValue
  9976. Finally
  9977. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  9978. Me.Adapter.InsertCommand.Connection.Close
  9979. End If
  9980. End Try
  9981. End Function
  9982. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  9983. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  9984. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  9985. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  9986. Public Overloads Overridable Function Update(ByVal CodBanco As String, ByVal CodPais As String, ByVal NombreBanco As String, ByVal Original_CodBanco As String) As Integer
  9987. If (CodBanco Is Nothing) Then
  9988. Throw New Global.System.ArgumentNullException("CodBanco")
  9989. Else
  9990. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodBanco,String)
  9991. End If
  9992. If (CodPais Is Nothing) Then
  9993. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  9994. Else
  9995. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(CodPais,String)
  9996. End If
  9997. If (NombreBanco Is Nothing) Then
  9998. Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
  9999. Else
  10000. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(NombreBanco,String)
  10001. End If
  10002. If (Original_CodBanco Is Nothing) Then
  10003. Throw New Global.System.ArgumentNullException("Original_CodBanco")
  10004. Else
  10005. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(Original_CodBanco,String)
  10006. End If
  10007. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  10008. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  10009. <> Global.System.Data.ConnectionState.Open) Then
  10010. Me.Adapter.UpdateCommand.Connection.Open
  10011. End If
  10012. Try
  10013. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  10014. Return returnValue
  10015. Finally
  10016. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  10017. Me.Adapter.UpdateCommand.Connection.Close
  10018. End If
  10019. End Try
  10020. End Function
  10021. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10022. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10023. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  10024. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  10025. Public Overloads Overridable Function Update(ByVal CodPais As String, ByVal NombreBanco As String, ByVal Original_CodBanco As String) As Integer
  10026. Return Me.Update(Original_CodBanco, CodPais, NombreBanco, Original_CodBanco)
  10027. End Function
  10028. End Class
  10029. '''<summary>
  10030. '''Represents the connection and commands used to retrieve and save data.
  10031. '''</summary>
  10032. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  10033. Global.System.ComponentModel.ToolboxItem(true), _
  10034. Global.System.ComponentModel.DataObjectAttribute(true), _
  10035. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  10036. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  10037. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  10038. Partial Public Class BAN1TableAdapter
  10039. Inherits Global.System.ComponentModel.Component
  10040. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  10041. Private _connection As Global.System.Data.SqlClient.SqlConnection
  10042. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  10043. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  10044. Private _clearBeforeFill As Boolean
  10045. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10046. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10047. Public Sub New()
  10048. MyBase.New
  10049. Me.ClearBeforeFill = true
  10050. End Sub
  10051. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10052. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10053. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  10054. Get
  10055. If (Me._adapter Is Nothing) Then
  10056. Me.InitAdapter
  10057. End If
  10058. Return Me._adapter
  10059. End Get
  10060. End Property
  10061. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10062. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10063. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  10064. Get
  10065. If (Me._connection Is Nothing) Then
  10066. Me.InitConnection
  10067. End If
  10068. Return Me._connection
  10069. End Get
  10070. Set
  10071. Me._connection = value
  10072. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  10073. Me.Adapter.InsertCommand.Connection = value
  10074. End If
  10075. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  10076. Me.Adapter.DeleteCommand.Connection = value
  10077. End If
  10078. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  10079. Me.Adapter.UpdateCommand.Connection = value
  10080. End If
  10081. Dim i As Integer = 0
  10082. Do While (i < Me.CommandCollection.Length)
  10083. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  10084. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  10085. End If
  10086. i = (i + 1)
  10087. Loop
  10088. End Set
  10089. End Property
  10090. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10091. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10092. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  10093. Get
  10094. Return Me._transaction
  10095. End Get
  10096. Set
  10097. Me._transaction = value
  10098. Dim i As Integer = 0
  10099. Do While (i < Me.CommandCollection.Length)
  10100. Me.CommandCollection(i).Transaction = Me._transaction
  10101. i = (i + 1)
  10102. Loop
  10103. If ((Not (Me.Adapter) Is Nothing) _
  10104. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  10105. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  10106. End If
  10107. If ((Not (Me.Adapter) Is Nothing) _
  10108. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  10109. Me.Adapter.InsertCommand.Transaction = Me._transaction
  10110. End If
  10111. If ((Not (Me.Adapter) Is Nothing) _
  10112. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  10113. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  10114. End If
  10115. End Set
  10116. End Property
  10117. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10118. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10119. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  10120. Get
  10121. If (Me._commandCollection Is Nothing) Then
  10122. Me.InitCommandCollection
  10123. End If
  10124. Return Me._commandCollection
  10125. End Get
  10126. End Property
  10127. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10128. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10129. Public Property ClearBeforeFill() As Boolean
  10130. Get
  10131. Return Me._clearBeforeFill
  10132. End Get
  10133. Set
  10134. Me._clearBeforeFill = value
  10135. End Set
  10136. End Property
  10137. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10138. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10139. Private Sub InitAdapter()
  10140. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  10141. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  10142. tableMapping.SourceTable = "Table"
  10143. tableMapping.DataSetTable = "BAN1"
  10144. tableMapping.ColumnMappings.Add("CodBanco", "CodBanco")
  10145. tableMapping.ColumnMappings.Add("CodEmpr", "CodEmpr")
  10146. tableMapping.ColumnMappings.Add("NumCuenta", "NumCuenta")
  10147. tableMapping.ColumnMappings.Add("Activo", "Activo")
  10148. tableMapping.ColumnMappings.Add("Id", "Id")
  10149. tableMapping.ColumnMappings.Add("NombreCuenta", "NombreCuenta")
  10150. tableMapping.ColumnMappings.Add("TipoCuenta", "TipoCuenta")
  10151. tableMapping.ColumnMappings.Add("CuentaContable", "CuentaContable")
  10152. Me._adapter.TableMappings.Add(tableMapping)
  10153. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  10154. Me._adapter.DeleteCommand.Connection = Me.Connection
  10155. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [BAN1] WHERE (([Id] = @Original_Id) AND ((@IsNull_CodBanco = 1 AND [C"& _
  10156. "odBanco] IS NULL) OR ([CodBanco] = @Original_CodBanco)) AND ((@IsNull_CodEmpr = "& _
  10157. "1 AND [CodEmpr] IS NULL) OR ([CodEmpr] = @Original_CodEmpr)) AND ((@IsNull_NumCu"& _
  10158. "enta = 1 AND [NumCuenta] IS NULL) OR ([NumCuenta] = @Original_NumCuenta)) AND (("& _
  10159. "@IsNull_Activo = 1 AND [Activo] IS NULL) OR ([Activo] = @Original_Activo)) AND ("& _
  10160. "(@IsNull_NombreCuenta = 1 AND [NombreCuenta] IS NULL) OR ([NombreCuenta] = @Orig"& _
  10161. "inal_NombreCuenta)) AND ((@IsNull_TipoCuenta = 1 AND [TipoCuenta] IS NULL) OR (["& _
  10162. "TipoCuenta] = @Original_TipoCuenta)) AND ((@IsNull_CuentaContable = 1 AND [Cuent"& _
  10163. "aContable] IS NULL) OR ([CuentaContable] = @Original_CuentaContable)))"
  10164. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  10165. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Id", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Id", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10166. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodBanco", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10167. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodBanco", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10168. 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, "", "", ""))
  10169. 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, "", "", ""))
  10170. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_NumCuenta", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "NumCuenta", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10171. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_NumCuenta", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "NumCuenta", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10172. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Activo", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Activo", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10173. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Activo", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Activo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10174. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_NombreCuenta", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "NombreCuenta", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10175. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_NombreCuenta", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "NombreCuenta", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10176. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_TipoCuenta", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoCuenta", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10177. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_TipoCuenta", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoCuenta", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10178. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CuentaContable", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CuentaContable", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10179. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CuentaContable", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CuentaContable", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10180. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  10181. Me._adapter.InsertCommand.Connection = Me.Connection
  10182. Me._adapter.InsertCommand.CommandText = "INSERT INTO [BAN1] ([CodBanco], [CodEmpr], [NumCuenta], [Activo], [NombreCuenta],"& _
  10183. " [TipoCuenta], [CuentaContable]) VALUES (@CodBanco, @CodEmpr, @NumCuenta, @Activ"& _
  10184. "o, @NombreCuenta, @TipoCuenta, @CuentaContable);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT Id, CodBanco, CodEmpr, "& _
  10185. "NumCuenta, Activo, NombreCuenta, TipoCuenta, CuentaContable FROM BAN1 WHERE (Id "& _
  10186. "= SCOPE_IDENTITY())"
  10187. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  10188. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodBanco", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10189. 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, "", "", ""))
  10190. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@NumCuenta", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "NumCuenta", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10191. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Activo", Global.System.Data.SqlDbType.Bit, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Activo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10192. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@NombreCuenta", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "NombreCuenta", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10193. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@TipoCuenta", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoCuenta", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10194. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CuentaContable", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CuentaContable", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10195. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  10196. Me._adapter.UpdateCommand.Connection = Me.Connection
  10197. Me._adapter.UpdateCommand.CommandText = "UPDATE BAN1"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SET CodBanco = @CodBanco, CodEmpr = @CodEmpr, N"& _
  10198. "umCuenta = @NumCuenta, Activo = @Activo, NombreCuenta = @NombreCuenta, TipoCuent"& _
  10199. "a = @TipoCuenta, CuentaContable = @CuentaContable"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (Id = @Original_"& _
  10200. "Id) AND (@IsNull_CodBanco = 1 AND CodBanco IS NULL OR"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" "& _
  10201. "CodBanco = @Original_CodBanco) AND (@IsNull_CodEmpr = 1 AND CodEmpr IS NULL OR"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)& _
  10202. " CodEmpr = @Original_CodEmpr) AND (@IsNull_NumCuenta = 1"& _
  10203. " AND NumCuenta IS NULL OR"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" NumCuenta = @Original_NumCue"& _
  10204. "nta) AND (@IsNull_Activo = 1 AND Activo IS NULL OR"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" Act"& _
  10205. "ivo = @Original_Activo) AND (@IsNull_NombreCuenta = 1 AND NombreCuenta IS NULL O"& _
  10206. "R"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" NombreCuenta = @Original_NombreCuenta) AND (@IsNull_"& _
  10207. "TipoCuenta = 1 AND TipoCuenta IS NULL OR"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" TipoCuenta = "& _
  10208. "@Original_TipoCuenta) AND (@IsNull_CuentaContable = 1 AND CuentaContable IS NULL"& _
  10209. " OR"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" CuentaContable = @Original_CuentaContable); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELE"& _
  10210. "CT Id, CodBanco, CodEmpr, NumCuenta, Activo, NombreCuenta, TipoCuenta, CuentaCon"& _
  10211. "table FROM BAN1 WHERE (Id = @Id)"
  10212. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  10213. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodBanco", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10214. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodEmpr", Global.System.Data.SqlDbType.VarChar, 10, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmpr", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10215. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@NumCuenta", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "NumCuenta", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10216. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Activo", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "Activo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10217. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@NombreCuenta", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "NombreCuenta", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10218. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@TipoCuenta", Global.System.Data.SqlDbType.VarChar, 10, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoCuenta", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10219. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CuentaContable", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "CuentaContable", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10220. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Id", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "Id", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10221. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodBanco", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10222. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodBanco", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10223. 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, "", "", ""))
  10224. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodEmpr", Global.System.Data.SqlDbType.VarChar, 10, Global.System.Data.ParameterDirection.Input, 0, 0, "CodEmpr", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10225. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_NumCuenta", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "NumCuenta", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10226. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_NumCuenta", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "NumCuenta", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10227. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Activo", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Activo", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10228. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Activo", Global.System.Data.SqlDbType.Bit, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "Activo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10229. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_NombreCuenta", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "NombreCuenta", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10230. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_NombreCuenta", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "NombreCuenta", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10231. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_TipoCuenta", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoCuenta", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10232. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_TipoCuenta", Global.System.Data.SqlDbType.VarChar, 10, Global.System.Data.ParameterDirection.Input, 0, 0, "TipoCuenta", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10233. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CuentaContable", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CuentaContable", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10234. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CuentaContable", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "CuentaContable", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10235. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Id", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "Id", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10236. End Sub
  10237. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10238. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10239. Private Sub InitConnection()
  10240. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  10241. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  10242. End Sub
  10243. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10244. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10245. Private Sub InitCommandCollection()
  10246. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(1) {}
  10247. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  10248. Me._commandCollection(0).Connection = Me.Connection
  10249. Me._commandCollection(0).CommandText = "SELECT Id, CodBanco, CodEmpr, NumCuenta, Activo, NombreCuenta, TipoCuenta,"& _
  10250. " CuentaContable"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM BAN1"
  10251. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  10252. Me._commandCollection(1) = New Global.System.Data.SqlClient.SqlCommand()
  10253. Me._commandCollection(1).Connection = Me.Connection
  10254. Me._commandCollection(1).CommandText = "SELECT Id, CodBanco, CodEmpr, NumCuenta, Activo, NombreCuenta FROM BAN1"
  10255. Me._commandCollection(1).CommandType = Global.System.Data.CommandType.Text
  10256. End Sub
  10257. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10258. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10259. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  10260. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  10261. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.BAN1DataTable) As Integer
  10262. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  10263. If (Me.ClearBeforeFill = true) Then
  10264. dataTable.Clear
  10265. End If
  10266. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  10267. Return returnValue
  10268. End Function
  10269. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10270. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10271. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  10272. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  10273. Public Overloads Overridable Function GetData() As InversionesDataSet1.BAN1DataTable
  10274. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  10275. Dim dataTable As InversionesDataSet1.BAN1DataTable = New InversionesDataSet1.BAN1DataTable()
  10276. Me.Adapter.Fill(dataTable)
  10277. Return dataTable
  10278. End Function
  10279. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10280. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10281. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  10282. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, false)> _
  10283. Public Overloads Overridable Function FillBy(ByVal dataTable As InversionesDataSet1.BAN1DataTable) As Integer
  10284. Me.Adapter.SelectCommand = Me.CommandCollection(1)
  10285. If (Me.ClearBeforeFill = true) Then
  10286. dataTable.Clear
  10287. End If
  10288. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  10289. Return returnValue
  10290. End Function
  10291. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10292. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10293. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  10294. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.BAN1DataTable) As Integer
  10295. Return Me.Adapter.Update(dataTable)
  10296. End Function
  10297. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10298. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10299. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  10300. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  10301. Return Me.Adapter.Update(dataSet, "BAN1")
  10302. End Function
  10303. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10304. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10305. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  10306. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  10307. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  10308. End Function
  10309. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10310. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10311. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  10312. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  10313. Return Me.Adapter.Update(dataRows)
  10314. End Function
  10315. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10316. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10317. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  10318. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  10319. Public Overloads Overridable Function Delete(ByVal Original_Id As Integer, ByVal Original_CodBanco As String, ByVal Original_CodEmpr As String, ByVal Original_NumCuenta As String, ByVal Original_Activo As Global.System.Nullable(Of Boolean), ByVal Original_NombreCuenta As String, ByVal Original_TipoCuenta As String, ByVal Original_CuentaContable As String) As Integer
  10320. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_Id,Integer)
  10321. If (Original_CodBanco Is Nothing) Then
  10322. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  10323. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  10324. Else
  10325. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  10326. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_CodBanco,String)
  10327. End If
  10328. If (Original_CodEmpr Is Nothing) Then
  10329. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
  10330. Me.Adapter.DeleteCommand.Parameters(4).Value = Global.System.DBNull.Value
  10331. Else
  10332. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
  10333. Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_CodEmpr,String)
  10334. End If
  10335. If (Original_NumCuenta Is Nothing) Then
  10336. Me.Adapter.DeleteCommand.Parameters(5).Value = CType(1,Object)
  10337. Me.Adapter.DeleteCommand.Parameters(6).Value = Global.System.DBNull.Value
  10338. Else
  10339. Me.Adapter.DeleteCommand.Parameters(5).Value = CType(0,Object)
  10340. Me.Adapter.DeleteCommand.Parameters(6).Value = CType(Original_NumCuenta,String)
  10341. End If
  10342. If (Original_Activo.HasValue = true) Then
  10343. Me.Adapter.DeleteCommand.Parameters(7).Value = CType(0,Object)
  10344. Me.Adapter.DeleteCommand.Parameters(8).Value = CType(Original_Activo.Value,Boolean)
  10345. Else
  10346. Me.Adapter.DeleteCommand.Parameters(7).Value = CType(1,Object)
  10347. Me.Adapter.DeleteCommand.Parameters(8).Value = Global.System.DBNull.Value
  10348. End If
  10349. If (Original_NombreCuenta Is Nothing) Then
  10350. Me.Adapter.DeleteCommand.Parameters(9).Value = CType(1,Object)
  10351. Me.Adapter.DeleteCommand.Parameters(10).Value = Global.System.DBNull.Value
  10352. Else
  10353. Me.Adapter.DeleteCommand.Parameters(9).Value = CType(0,Object)
  10354. Me.Adapter.DeleteCommand.Parameters(10).Value = CType(Original_NombreCuenta,String)
  10355. End If
  10356. If (Original_TipoCuenta Is Nothing) Then
  10357. Throw New Global.System.ArgumentNullException("Original_TipoCuenta")
  10358. Else
  10359. Me.Adapter.DeleteCommand.Parameters(11).Value = CType(0,Object)
  10360. Me.Adapter.DeleteCommand.Parameters(12).Value = CType(Original_TipoCuenta,String)
  10361. End If
  10362. If (Original_CuentaContable Is Nothing) Then
  10363. Me.Adapter.DeleteCommand.Parameters(13).Value = CType(1,Object)
  10364. Me.Adapter.DeleteCommand.Parameters(14).Value = Global.System.DBNull.Value
  10365. Else
  10366. Me.Adapter.DeleteCommand.Parameters(13).Value = CType(0,Object)
  10367. Me.Adapter.DeleteCommand.Parameters(14).Value = CType(Original_CuentaContable,String)
  10368. End If
  10369. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  10370. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  10371. <> Global.System.Data.ConnectionState.Open) Then
  10372. Me.Adapter.DeleteCommand.Connection.Open
  10373. End If
  10374. Try
  10375. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  10376. Return returnValue
  10377. Finally
  10378. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  10379. Me.Adapter.DeleteCommand.Connection.Close
  10380. End If
  10381. End Try
  10382. End Function
  10383. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10384. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10385. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  10386. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  10387. Public Overloads Overridable Function Insert(ByVal CodBanco As String, ByVal CodEmpr As String, ByVal NumCuenta As String, ByVal Activo As Global.System.Nullable(Of Boolean), ByVal NombreCuenta As String, ByVal TipoCuenta As String, ByVal CuentaContable As String) As Integer
  10388. If (CodBanco Is Nothing) Then
  10389. Me.Adapter.InsertCommand.Parameters(0).Value = Global.System.DBNull.Value
  10390. Else
  10391. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodBanco,String)
  10392. End If
  10393. If (CodEmpr Is Nothing) Then
  10394. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  10395. Else
  10396. Me.Adapter.InsertCommand.Parameters(1).Value = CType(CodEmpr,String)
  10397. End If
  10398. If (NumCuenta Is Nothing) Then
  10399. Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
  10400. Else
  10401. Me.Adapter.InsertCommand.Parameters(2).Value = CType(NumCuenta,String)
  10402. End If
  10403. If (Activo.HasValue = true) Then
  10404. Me.Adapter.InsertCommand.Parameters(3).Value = CType(Activo.Value,Boolean)
  10405. Else
  10406. Me.Adapter.InsertCommand.Parameters(3).Value = Global.System.DBNull.Value
  10407. End If
  10408. If (NombreCuenta Is Nothing) Then
  10409. Me.Adapter.InsertCommand.Parameters(4).Value = Global.System.DBNull.Value
  10410. Else
  10411. Me.Adapter.InsertCommand.Parameters(4).Value = CType(NombreCuenta,String)
  10412. End If
  10413. If (TipoCuenta Is Nothing) Then
  10414. Throw New Global.System.ArgumentNullException("TipoCuenta")
  10415. Else
  10416. Me.Adapter.InsertCommand.Parameters(5).Value = CType(TipoCuenta,String)
  10417. End If
  10418. If (CuentaContable Is Nothing) Then
  10419. Me.Adapter.InsertCommand.Parameters(6).Value = Global.System.DBNull.Value
  10420. Else
  10421. Me.Adapter.InsertCommand.Parameters(6).Value = CType(CuentaContable,String)
  10422. End If
  10423. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  10424. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  10425. <> Global.System.Data.ConnectionState.Open) Then
  10426. Me.Adapter.InsertCommand.Connection.Open
  10427. End If
  10428. Try
  10429. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  10430. Return returnValue
  10431. Finally
  10432. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  10433. Me.Adapter.InsertCommand.Connection.Close
  10434. End If
  10435. End Try
  10436. End Function
  10437. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10438. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10439. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  10440. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  10441. Public Overloads Overridable Function Update( _
  10442. ByVal CodBanco As String, _
  10443. ByVal CodEmpr As String, _
  10444. ByVal NumCuenta As String, _
  10445. ByVal Activo As Global.System.Nullable(Of Boolean), _
  10446. ByVal NombreCuenta As String, _
  10447. ByVal TipoCuenta As String, _
  10448. ByVal CuentaContable As String, _
  10449. ByVal Original_Id As Integer, _
  10450. ByVal Original_CodBanco As String, _
  10451. ByVal Original_CodEmpr As String, _
  10452. ByVal Original_NumCuenta As String, _
  10453. ByVal Original_Activo As Global.System.Nullable(Of Boolean), _
  10454. ByVal Original_NombreCuenta As String, _
  10455. ByVal Original_TipoCuenta As String, _
  10456. ByVal Original_CuentaContable As String, _
  10457. ByVal Id As Integer) As Integer
  10458. If (CodBanco Is Nothing) Then
  10459. Me.Adapter.UpdateCommand.Parameters(0).Value = Global.System.DBNull.Value
  10460. Else
  10461. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodBanco,String)
  10462. End If
  10463. If (CodEmpr Is Nothing) Then
  10464. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  10465. Else
  10466. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(CodEmpr,String)
  10467. End If
  10468. If (NumCuenta Is Nothing) Then
  10469. Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
  10470. Else
  10471. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(NumCuenta,String)
  10472. End If
  10473. If (Activo.HasValue = true) Then
  10474. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(Activo.Value,Boolean)
  10475. Else
  10476. Me.Adapter.UpdateCommand.Parameters(3).Value = Global.System.DBNull.Value
  10477. End If
  10478. If (NombreCuenta Is Nothing) Then
  10479. Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
  10480. Else
  10481. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(NombreCuenta,String)
  10482. End If
  10483. If (TipoCuenta Is Nothing) Then
  10484. Me.Adapter.UpdateCommand.Parameters(5).Value = Global.System.DBNull.Value
  10485. Else
  10486. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(TipoCuenta,String)
  10487. End If
  10488. If (CuentaContable Is Nothing) Then
  10489. Me.Adapter.UpdateCommand.Parameters(6).Value = Global.System.DBNull.Value
  10490. Else
  10491. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(CuentaContable,String)
  10492. End If
  10493. Me.Adapter.UpdateCommand.Parameters(7).Value = CType(Original_Id,Integer)
  10494. If (Original_CodBanco Is Nothing) Then
  10495. Me.Adapter.UpdateCommand.Parameters(8).Value = CType(1,Object)
  10496. Me.Adapter.UpdateCommand.Parameters(9).Value = Global.System.DBNull.Value
  10497. Else
  10498. Me.Adapter.UpdateCommand.Parameters(8).Value = CType(0,Object)
  10499. Me.Adapter.UpdateCommand.Parameters(9).Value = CType(Original_CodBanco,String)
  10500. End If
  10501. If (Original_CodEmpr Is Nothing) Then
  10502. Me.Adapter.UpdateCommand.Parameters(10).Value = CType(1,Object)
  10503. Me.Adapter.UpdateCommand.Parameters(11).Value = Global.System.DBNull.Value
  10504. Else
  10505. Me.Adapter.UpdateCommand.Parameters(10).Value = CType(0,Object)
  10506. Me.Adapter.UpdateCommand.Parameters(11).Value = CType(Original_CodEmpr,String)
  10507. End If
  10508. If (Original_NumCuenta Is Nothing) Then
  10509. Me.Adapter.UpdateCommand.Parameters(12).Value = CType(1,Object)
  10510. Me.Adapter.UpdateCommand.Parameters(13).Value = Global.System.DBNull.Value
  10511. Else
  10512. Me.Adapter.UpdateCommand.Parameters(12).Value = CType(0,Object)
  10513. Me.Adapter.UpdateCommand.Parameters(13).Value = CType(Original_NumCuenta,String)
  10514. End If
  10515. If (Original_Activo.HasValue = true) Then
  10516. Me.Adapter.UpdateCommand.Parameters(14).Value = CType(0,Object)
  10517. Me.Adapter.UpdateCommand.Parameters(15).Value = CType(Original_Activo.Value,Boolean)
  10518. Else
  10519. Me.Adapter.UpdateCommand.Parameters(14).Value = CType(1,Object)
  10520. Me.Adapter.UpdateCommand.Parameters(15).Value = Global.System.DBNull.Value
  10521. End If
  10522. If (Original_NombreCuenta Is Nothing) Then
  10523. Me.Adapter.UpdateCommand.Parameters(16).Value = CType(1,Object)
  10524. Me.Adapter.UpdateCommand.Parameters(17).Value = Global.System.DBNull.Value
  10525. Else
  10526. Me.Adapter.UpdateCommand.Parameters(16).Value = CType(0,Object)
  10527. Me.Adapter.UpdateCommand.Parameters(17).Value = CType(Original_NombreCuenta,String)
  10528. End If
  10529. If (Original_TipoCuenta Is Nothing) Then
  10530. Me.Adapter.UpdateCommand.Parameters(18).Value = CType(1,Object)
  10531. Me.Adapter.UpdateCommand.Parameters(19).Value = Global.System.DBNull.Value
  10532. Else
  10533. Me.Adapter.UpdateCommand.Parameters(18).Value = CType(0,Object)
  10534. Me.Adapter.UpdateCommand.Parameters(19).Value = CType(Original_TipoCuenta,String)
  10535. End If
  10536. If (Original_CuentaContable Is Nothing) Then
  10537. Me.Adapter.UpdateCommand.Parameters(20).Value = CType(1,Object)
  10538. Me.Adapter.UpdateCommand.Parameters(21).Value = Global.System.DBNull.Value
  10539. Else
  10540. Me.Adapter.UpdateCommand.Parameters(20).Value = CType(0,Object)
  10541. Me.Adapter.UpdateCommand.Parameters(21).Value = CType(Original_CuentaContable,String)
  10542. End If
  10543. Me.Adapter.UpdateCommand.Parameters(22).Value = CType(Id,Integer)
  10544. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  10545. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  10546. <> Global.System.Data.ConnectionState.Open) Then
  10547. Me.Adapter.UpdateCommand.Connection.Open
  10548. End If
  10549. Try
  10550. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  10551. Return returnValue
  10552. Finally
  10553. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  10554. Me.Adapter.UpdateCommand.Connection.Close
  10555. End If
  10556. End Try
  10557. End Function
  10558. End Class
  10559. '''<summary>
  10560. '''Represents the connection and commands used to retrieve and save data.
  10561. '''</summary>
  10562. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  10563. Global.System.ComponentModel.ToolboxItem(true), _
  10564. Global.System.ComponentModel.DataObjectAttribute(true), _
  10565. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  10566. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  10567. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  10568. Partial Public Class FPAGTableAdapter
  10569. Inherits Global.System.ComponentModel.Component
  10570. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  10571. Private _connection As Global.System.Data.SqlClient.SqlConnection
  10572. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  10573. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  10574. Private _clearBeforeFill As Boolean
  10575. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10576. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10577. Public Sub New()
  10578. MyBase.New
  10579. Me.ClearBeforeFill = true
  10580. End Sub
  10581. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10582. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10583. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  10584. Get
  10585. If (Me._adapter Is Nothing) Then
  10586. Me.InitAdapter
  10587. End If
  10588. Return Me._adapter
  10589. End Get
  10590. End Property
  10591. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10592. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10593. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  10594. Get
  10595. If (Me._connection Is Nothing) Then
  10596. Me.InitConnection
  10597. End If
  10598. Return Me._connection
  10599. End Get
  10600. Set
  10601. Me._connection = value
  10602. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  10603. Me.Adapter.InsertCommand.Connection = value
  10604. End If
  10605. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  10606. Me.Adapter.DeleteCommand.Connection = value
  10607. End If
  10608. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  10609. Me.Adapter.UpdateCommand.Connection = value
  10610. End If
  10611. Dim i As Integer = 0
  10612. Do While (i < Me.CommandCollection.Length)
  10613. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  10614. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  10615. End If
  10616. i = (i + 1)
  10617. Loop
  10618. End Set
  10619. End Property
  10620. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10621. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10622. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  10623. Get
  10624. Return Me._transaction
  10625. End Get
  10626. Set
  10627. Me._transaction = value
  10628. Dim i As Integer = 0
  10629. Do While (i < Me.CommandCollection.Length)
  10630. Me.CommandCollection(i).Transaction = Me._transaction
  10631. i = (i + 1)
  10632. Loop
  10633. If ((Not (Me.Adapter) Is Nothing) _
  10634. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  10635. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  10636. End If
  10637. If ((Not (Me.Adapter) Is Nothing) _
  10638. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  10639. Me.Adapter.InsertCommand.Transaction = Me._transaction
  10640. End If
  10641. If ((Not (Me.Adapter) Is Nothing) _
  10642. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  10643. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  10644. End If
  10645. End Set
  10646. End Property
  10647. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10648. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10649. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  10650. Get
  10651. If (Me._commandCollection Is Nothing) Then
  10652. Me.InitCommandCollection
  10653. End If
  10654. Return Me._commandCollection
  10655. End Get
  10656. End Property
  10657. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10658. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10659. Public Property ClearBeforeFill() As Boolean
  10660. Get
  10661. Return Me._clearBeforeFill
  10662. End Get
  10663. Set
  10664. Me._clearBeforeFill = value
  10665. End Set
  10666. End Property
  10667. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10668. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10669. Private Sub InitAdapter()
  10670. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  10671. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  10672. tableMapping.SourceTable = "Table"
  10673. tableMapping.DataSetTable = "FPAG"
  10674. tableMapping.ColumnMappings.Add("Codigo", "Codigo")
  10675. tableMapping.ColumnMappings.Add("Nombre", "Nombre")
  10676. Me._adapter.TableMappings.Add(tableMapping)
  10677. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  10678. Me._adapter.DeleteCommand.Connection = Me.Connection
  10679. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[FPAG] WHERE (([Codigo] = @Original_Codigo) AND ((@IsNull_Nombr"& _
  10680. "e = 1 AND [Nombre] IS NULL) OR ([Nombre] = @Original_Nombre)))"
  10681. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  10682. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Codigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Codigo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10683. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Nombre", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Nombre", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10684. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Nombre", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Nombre", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10685. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  10686. Me._adapter.InsertCommand.Connection = Me.Connection
  10687. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[FPAG] ([Codigo], [Nombre]) VALUES (@Codigo, @Nombre);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT "& _
  10688. "Codigo, Nombre FROM FPAG WHERE (Codigo = @Codigo)"
  10689. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  10690. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Codigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Codigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10691. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Nombre", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Nombre", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10692. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  10693. Me._adapter.UpdateCommand.Connection = Me.Connection
  10694. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[FPAG] SET [Codigo] = @Codigo, [Nombre] = @Nombre WHERE (([Codigo] ="& _
  10695. " @Original_Codigo) AND ((@IsNull_Nombre = 1 AND [Nombre] IS NULL) OR ([Nombre] ="& _
  10696. " @Original_Nombre)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT Codigo, Nombre FROM FPAG WHERE (Codigo = @Codigo)"
  10697. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  10698. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Codigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Codigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10699. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Nombre", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Nombre", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  10700. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Codigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Codigo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10701. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Nombre", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Nombre", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  10702. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Nombre", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Nombre", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  10703. End Sub
  10704. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10705. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10706. Private Sub InitConnection()
  10707. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  10708. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  10709. End Sub
  10710. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10711. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10712. Private Sub InitCommandCollection()
  10713. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  10714. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  10715. Me._commandCollection(0).Connection = Me.Connection
  10716. Me._commandCollection(0).CommandText = "SELECT Codigo, Nombre FROM dbo.FPAG"
  10717. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  10718. End Sub
  10719. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10720. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10721. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  10722. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  10723. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.FPAGDataTable) As Integer
  10724. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  10725. If (Me.ClearBeforeFill = true) Then
  10726. dataTable.Clear
  10727. End If
  10728. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  10729. Return returnValue
  10730. End Function
  10731. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10732. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10733. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  10734. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  10735. Public Overloads Overridable Function GetData() As InversionesDataSet1.FPAGDataTable
  10736. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  10737. Dim dataTable As InversionesDataSet1.FPAGDataTable = New InversionesDataSet1.FPAGDataTable()
  10738. Me.Adapter.Fill(dataTable)
  10739. Return dataTable
  10740. End Function
  10741. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10742. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10743. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  10744. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.FPAGDataTable) As Integer
  10745. Return Me.Adapter.Update(dataTable)
  10746. End Function
  10747. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10748. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10749. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  10750. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  10751. Return Me.Adapter.Update(dataSet, "FPAG")
  10752. End Function
  10753. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10754. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10755. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  10756. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  10757. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  10758. End Function
  10759. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10760. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10761. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  10762. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  10763. Return Me.Adapter.Update(dataRows)
  10764. End Function
  10765. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10766. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10767. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  10768. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  10769. Public Overloads Overridable Function Delete(ByVal Original_Codigo As String, ByVal Original_Nombre As String) As Integer
  10770. If (Original_Codigo Is Nothing) Then
  10771. Throw New Global.System.ArgumentNullException("Original_Codigo")
  10772. Else
  10773. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_Codigo,String)
  10774. End If
  10775. If (Original_Nombre Is Nothing) Then
  10776. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  10777. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  10778. Else
  10779. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  10780. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Nombre,String)
  10781. End If
  10782. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  10783. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  10784. <> Global.System.Data.ConnectionState.Open) Then
  10785. Me.Adapter.DeleteCommand.Connection.Open
  10786. End If
  10787. Try
  10788. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  10789. Return returnValue
  10790. Finally
  10791. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  10792. Me.Adapter.DeleteCommand.Connection.Close
  10793. End If
  10794. End Try
  10795. End Function
  10796. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10797. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10798. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  10799. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  10800. Public Overloads Overridable Function Insert(ByVal Codigo As String, ByVal Nombre As String) As Integer
  10801. If (Codigo Is Nothing) Then
  10802. Throw New Global.System.ArgumentNullException("Codigo")
  10803. Else
  10804. Me.Adapter.InsertCommand.Parameters(0).Value = CType(Codigo,String)
  10805. End If
  10806. If (Nombre Is Nothing) Then
  10807. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  10808. Else
  10809. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Nombre,String)
  10810. End If
  10811. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  10812. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  10813. <> Global.System.Data.ConnectionState.Open) Then
  10814. Me.Adapter.InsertCommand.Connection.Open
  10815. End If
  10816. Try
  10817. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  10818. Return returnValue
  10819. Finally
  10820. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  10821. Me.Adapter.InsertCommand.Connection.Close
  10822. End If
  10823. End Try
  10824. End Function
  10825. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10826. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10827. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  10828. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  10829. Public Overloads Overridable Function Update(ByVal Codigo As String, ByVal Nombre As String, ByVal Original_Codigo As String, ByVal Original_Nombre As String) As Integer
  10830. If (Codigo Is Nothing) Then
  10831. Throw New Global.System.ArgumentNullException("Codigo")
  10832. Else
  10833. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(Codigo,String)
  10834. End If
  10835. If (Nombre Is Nothing) Then
  10836. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  10837. Else
  10838. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Nombre,String)
  10839. End If
  10840. If (Original_Codigo Is Nothing) Then
  10841. Throw New Global.System.ArgumentNullException("Original_Codigo")
  10842. Else
  10843. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Original_Codigo,String)
  10844. End If
  10845. If (Original_Nombre Is Nothing) Then
  10846. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(1,Object)
  10847. Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
  10848. Else
  10849. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(0,Object)
  10850. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(Original_Nombre,String)
  10851. End If
  10852. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  10853. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  10854. <> Global.System.Data.ConnectionState.Open) Then
  10855. Me.Adapter.UpdateCommand.Connection.Open
  10856. End If
  10857. Try
  10858. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  10859. Return returnValue
  10860. Finally
  10861. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  10862. Me.Adapter.UpdateCommand.Connection.Close
  10863. End If
  10864. End Try
  10865. End Function
  10866. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10867. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  10868. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  10869. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  10870. Public Overloads Overridable Function Update(ByVal Nombre As String, ByVal Original_Codigo As String, ByVal Original_Nombre As String) As Integer
  10871. Return Me.Update(Original_Codigo, Nombre, Original_Codigo, Original_Nombre)
  10872. End Function
  10873. End Class
  10874. '''<summary>
  10875. '''Represents the connection and commands used to retrieve and save data.
  10876. '''</summary>
  10877. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  10878. Global.System.ComponentModel.ToolboxItem(true), _
  10879. Global.System.ComponentModel.DataObjectAttribute(true), _
  10880. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  10881. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  10882. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  10883. Partial Public Class PIN0TableAdapter
  10884. Inherits Global.System.ComponentModel.Component
  10885. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  10886. Private _connection As Global.System.Data.SqlClient.SqlConnection
  10887. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  10888. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  10889. Private _clearBeforeFill As Boolean
  10890. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10891. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10892. Public Sub New()
  10893. MyBase.New
  10894. Me.ClearBeforeFill = true
  10895. End Sub
  10896. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10897. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10898. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  10899. Get
  10900. If (Me._adapter Is Nothing) Then
  10901. Me.InitAdapter
  10902. End If
  10903. Return Me._adapter
  10904. End Get
  10905. End Property
  10906. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10907. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10908. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  10909. Get
  10910. If (Me._connection Is Nothing) Then
  10911. Me.InitConnection
  10912. End If
  10913. Return Me._connection
  10914. End Get
  10915. Set
  10916. Me._connection = value
  10917. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  10918. Me.Adapter.InsertCommand.Connection = value
  10919. End If
  10920. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  10921. Me.Adapter.DeleteCommand.Connection = value
  10922. End If
  10923. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  10924. Me.Adapter.UpdateCommand.Connection = value
  10925. End If
  10926. Dim i As Integer = 0
  10927. Do While (i < Me.CommandCollection.Length)
  10928. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  10929. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  10930. End If
  10931. i = (i + 1)
  10932. Loop
  10933. End Set
  10934. End Property
  10935. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10936. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10937. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  10938. Get
  10939. Return Me._transaction
  10940. End Get
  10941. Set
  10942. Me._transaction = value
  10943. Dim i As Integer = 0
  10944. Do While (i < Me.CommandCollection.Length)
  10945. Me.CommandCollection(i).Transaction = Me._transaction
  10946. i = (i + 1)
  10947. Loop
  10948. If ((Not (Me.Adapter) Is Nothing) _
  10949. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  10950. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  10951. End If
  10952. If ((Not (Me.Adapter) Is Nothing) _
  10953. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  10954. Me.Adapter.InsertCommand.Transaction = Me._transaction
  10955. End If
  10956. If ((Not (Me.Adapter) Is Nothing) _
  10957. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  10958. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  10959. End If
  10960. End Set
  10961. End Property
  10962. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10963. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10964. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  10965. Get
  10966. If (Me._commandCollection Is Nothing) Then
  10967. Me.InitCommandCollection
  10968. End If
  10969. Return Me._commandCollection
  10970. End Get
  10971. End Property
  10972. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10973. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10974. Public Property ClearBeforeFill() As Boolean
  10975. Get
  10976. Return Me._clearBeforeFill
  10977. End Get
  10978. Set
  10979. Me._clearBeforeFill = value
  10980. End Set
  10981. End Property
  10982. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  10983. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  10984. Private Sub InitAdapter()
  10985. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  10986. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  10987. tableMapping.SourceTable = "Table"
  10988. tableMapping.DataSetTable = "PIN0"
  10989. tableMapping.ColumnMappings.Add("DocId", "DocId")
  10990. tableMapping.ColumnMappings.Add("CodInv", "CodInv")
  10991. tableMapping.ColumnMappings.Add("DocEst", "DocEst")
  10992. tableMapping.ColumnMappings.Add("Asunto", "Asunto")
  10993. tableMapping.ColumnMappings.Add("CodEmpr", "CodEmpr")
  10994. tableMapping.ColumnMappings.Add("CodIF", "CodIF")
  10995. tableMapping.ColumnMappings.Add("CodEmis", "CodEmis")
  10996. tableMapping.ColumnMappings.Add("CodCalRi", "CodCalRi")
  10997. tableMapping.ColumnMappings.Add("CodECalRi", "CodECalRi")
  10998. tableMapping.ColumnMappings.Add("OFon", "OFon")
  10999. tableMapping.ColumnMappings.Add("Coment", "Coment")
  11000. tableMapping.ColumnMappings.Add("Just", "Just")
  11001. tableMapping.ColumnMappings.Add("TipoOper", "TipoOper")
  11002. tableMapping.ColumnMappings.Add("DocBase", "DocBase")
  11003. tableMapping.ColumnMappings.Add("MontoInv", "MontoInv")
  11004. tableMapping.ColumnMappings.Add("Precio", "Precio")
  11005. tableMapping.ColumnMappings.Add("Rendimiento", "Rendimiento")
  11006. tableMapping.ColumnMappings.Add("Plazo", "Plazo")
  11007. tableMapping.ColumnMappings.Add("PlazoFact", "PlazoFact")
  11008. tableMapping.ColumnMappings.Add("Ingresos", "Ingresos")
  11009. tableMapping.ColumnMappings.Add("FechaDoc", "FechaDoc")
  11010. tableMapping.ColumnMappings.Add("AutEstado", "AutEstado")
  11011. tableMapping.ColumnMappings.Add("TipoMerc", "TipoMerc")
  11012. tableMapping.ColumnMappings.Add("CodPais", "CodPais")
  11013. Me._adapter.TableMappings.Add(tableMapping)
  11014. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  11015. Me._adapter.DeleteCommand.Connection = Me.Connection
  11016. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[PIN0] WHERE (([DocId] = @Original_DocId) AND ((@IsNull_CodInv "& _
  11017. "= 1 AND [CodInv] IS NULL) OR ([CodInv] = @Original_CodInv)) AND ((@IsNull_DocEst"& _
  11018. " = 1 AND [DocEst] IS NULL) OR ([DocEst] = @Original_DocEst)) AND ((@IsNull_Asunt"& _
  11019. "o = 1 AND [Asunto] IS NULL) OR ([Asunto] = @Original_Asunto)) AND ((@IsNull_CodE"& _
  11020. "mpr = 1 AND [CodEmpr] IS NULL) OR ([CodEmpr] = @Original_CodEmpr)) AND ((@IsNull"& _
  11021. "_CodIF = 1 AND [CodIF] IS NULL) OR ([CodIF] = @Original_CodIF)) AND ((@IsNull_Co"& _
  11022. "dEmis = 1 AND [CodEmis] IS NULL) OR ([CodEmis] = @Original_CodEmis)) AND ((@IsNu"& _
  11023. "ll_CodCalRi = 1 AND [CodCalRi] IS NULL) OR ([CodCalRi] = @Original_CodCalRi)) AN"& _
  11024. "D ((@IsNull_CodECalRi = 1 AND [CodECalRi] IS NULL) OR ([CodECalRi] = @Original_C"& _
  11025. "odECalRi)) AND ((@IsNull_OFon = 1 AND [OFon] IS NULL) OR ([OFon] = @Original_OFo"& _
  11026. "n)) AND ((@IsNull_Coment = 1 AND [Coment] IS NULL) OR ([Coment] = @Original_Come"& _
  11027. "nt)) AND ((@IsNull_Just = 1 AND [Just] IS NULL) OR ([Just] = @Original_Just)) AN"& _
  11028. "D ((@IsNull_TipoOper = 1 AND [TipoOper] IS NULL) OR ([TipoOper] = @Original_Tipo"& _
  11029. "Oper)) AND ((@IsNull_DocBase = 1 AND [DocBase] IS NULL) OR ([DocBase] = @Origina"& _
  11030. "l_DocBase)) AND ((@IsNull_MontoInv = 1 AND [MontoInv] IS NULL) OR ([MontoInv] = "& _
  11031. "@Original_MontoInv)) AND ((@IsNull_Precio = 1 AND [Precio] IS NULL) OR ([Precio]"& _
  11032. " = @Original_Precio)) AND ((@IsNull_Rendimiento = 1 AND [Rendimiento] IS NULL) O"& _
  11033. "R ([Rendimiento] = @Original_Rendimiento)) AND ((@IsNull_Plazo = 1 AND [Plazo] I"& _
  11034. "S NULL) OR ([Plazo] = @Original_Plazo)) AND ((@IsNull_PlazoFact = 1 AND [PlazoFa"& _
  11035. "ct] IS NULL) OR ([PlazoFact] = @Original_PlazoFact)) AND ((@IsNull_Ingresos = 1 "& _
  11036. "AND [Ingresos] IS NULL) OR ([Ingresos] = @Original_Ingresos)) AND ((@IsNull_Fech"& _
  11037. "aDoc = 1 AND [FechaDoc] IS NULL) OR ([FechaDoc] = @Original_FechaDoc)) AND ((@Is"& _
  11038. "Null_AutEstado = 1 AND [AutEstado] IS NULL) OR ([AutEstado] = @Original_AutEstad"& _
  11039. "o)) AND ((@IsNull_TipoMerc = 1 AND [TipoMerc] IS NULL) OR ([TipoMerc] = @Origina"& _
  11040. "l_TipoMerc)) AND ((@IsNull_CodPais = 1 AND [CodPais] IS NULL) OR ([CodPais] = @O"& _
  11041. "riginal_CodPais)))"
  11042. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  11043. 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, "", "", ""))
  11044. 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, "", "", ""))
  11045. 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, "", "", ""))
  11046. 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, "", "", ""))
  11047. 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, "", "", ""))
  11048. 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, "", "", ""))
  11049. 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, "", "", ""))
  11050. 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, "", "", ""))
  11051. 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, "", "", ""))
  11052. 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, "", "", ""))
  11053. 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, "", "", ""))
  11054. 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, "", "", ""))
  11055. 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, "", "", ""))
  11056. 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, "", "", ""))
  11057. 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, "", "", ""))
  11058. 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, "", "", ""))
  11059. 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, "", "", ""))
  11060. 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, "", "", ""))
  11061. 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, "", "", ""))
  11062. 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, "", "", ""))
  11063. 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, "", "", ""))
  11064. 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, "", "", ""))
  11065. 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, "", "", ""))
  11066. 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, "", "", ""))
  11067. 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, "", "", ""))
  11068. 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, "", "", ""))
  11069. 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, "", "", ""))
  11070. 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, "", "", ""))
  11071. 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, "", "", ""))
  11072. 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, "", "", ""))
  11073. 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, "", "", ""))
  11074. 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, "", "", ""))
  11075. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Rendimiento", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "Rendimiento", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  11076. 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, "", "", ""))
  11077. 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, "", "", ""))
  11078. 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, "", "", ""))
  11079. 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, "", "", ""))
  11080. 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, "", "", ""))
  11081. 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, "", "", ""))
  11082. 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, "", "", ""))
  11083. 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, "", "", ""))
  11084. 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, "", "", ""))
  11085. 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, "", "", ""))
  11086. 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, "", "", ""))
  11087. 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, "", "", ""))
  11088. 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, "", "", ""))
  11089. 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, "", "", ""))
  11090. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  11091. Me._adapter.InsertCommand.Connection = Me.Connection
  11092. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[PIN0] ([CodInv], [DocEst], [Asunto], [CodEmpr], [CodIF], [CodE"& _
  11093. "mis], [CodCalRi], [CodECalRi], [OFon], [Coment], [Just], [TipoOper], [DocBase], "& _
  11094. "[MontoInv], [Precio], [Rendimiento], [Plazo], [PlazoFact], [Ingresos], [FechaDoc"& _
  11095. "], [AutEstado], [TipoMerc], [CodPais]) VALUES (@CodInv, @DocEst, @Asunto, @CodEm"& _
  11096. "pr, @CodIF, @CodEmis, @CodCalRi, @CodECalRi, @OFon, @Coment, @Just, @TipoOper, @"& _
  11097. "DocBase, @MontoInv, @Precio, @Rendimiento, @Plazo, @PlazoFact, @Ingresos, @Fecha"& _
  11098. "Doc, @AutEstado, @TipoMerc, @CodPais);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT DocId, CodInv, DocEst, Asunto, Co"& _
  11099. "dEmpr, CodIF, CodEmis, CodCalRi, CodECalRi, OFon, Coment, Just, TipoOper, DocBas"& _
  11100. "e, MontoInv, Precio, Rendimiento, Plazo, PlazoFact, Ingresos, FechaDoc, AutEstad"& _
  11101. "o, TipoMerc, CodPais FROM PIN0 WHERE (DocId = SCOPE_IDENTITY())"
  11102. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  11103. 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, "", "", ""))
  11104. 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, "", "", ""))
  11105. 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, "", "", ""))
  11106. 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, "", "", ""))
  11107. 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, "", "", ""))
  11108. 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, "", "", ""))
  11109. 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, "", "", ""))
  11110. 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, "", "", ""))
  11111. 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, "", "", ""))
  11112. 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, "", "", ""))
  11113. 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, "", "", ""))
  11114. 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, "", "", ""))
  11115. 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, "", "", ""))
  11116. 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, "", "", ""))
  11117. 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, "", "", ""))
  11118. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Rendimiento", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "Rendimiento", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  11119. 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, "", "", ""))
  11120. 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, "", "", ""))
  11121. 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, "", "", ""))
  11122. 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, "", "", ""))
  11123. 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, "", "", ""))
  11124. 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, "", "", ""))
  11125. 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, "", "", ""))
  11126. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  11127. Me._adapter.UpdateCommand.Connection = Me.Connection
  11128. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[PIN0] SET [CodInv] = @CodInv, [DocEst] = @DocEst, [Asunto] = @Asunt"& _
  11129. "o, [CodEmpr] = @CodEmpr, [CodIF] = @CodIF, [CodEmis] = @CodEmis, [CodCalRi] = @C"& _
  11130. "odCalRi, [CodECalRi] = @CodECalRi, [OFon] = @OFon, [Coment] = @Coment, [Just] = "& _
  11131. "@Just, [TipoOper] = @TipoOper, [DocBase] = @DocBase, [MontoInv] = @MontoInv, [Pr"& _
  11132. "ecio] = @Precio, [Rendimiento] = @Rendimiento, [Plazo] = @Plazo, [PlazoFact] = @"& _
  11133. "PlazoFact, [Ingresos] = @Ingresos, [FechaDoc] = @FechaDoc, [AutEstado] = @AutEst"& _
  11134. "ado, [TipoMerc] = @TipoMerc, [CodPais] = @CodPais WHERE (([DocId] = @Original_Do"& _
  11135. "cId) AND ((@IsNull_CodInv = 1 AND [CodInv] IS NULL) OR ([CodInv] = @Original_Cod"& _
  11136. "Inv)) AND ((@IsNull_DocEst = 1 AND [DocEst] IS NULL) OR ([DocEst] = @Original_Do"& _
  11137. "cEst)) AND ((@IsNull_Asunto = 1 AND [Asunto] IS NULL) OR ([Asunto] = @Original_A"& _
  11138. "sunto)) AND ((@IsNull_CodEmpr = 1 AND [CodEmpr] IS NULL) OR ([CodEmpr] = @Origin"& _
  11139. "al_CodEmpr)) AND ((@IsNull_CodIF = 1 AND [CodIF] IS NULL) OR ([CodIF] = @Origina"& _
  11140. "l_CodIF)) AND ((@IsNull_CodEmis = 1 AND [CodEmis] IS NULL) OR ([CodEmis] = @Orig"& _
  11141. "inal_CodEmis)) AND ((@IsNull_CodCalRi = 1 AND [CodCalRi] IS NULL) OR ([CodCalRi]"& _
  11142. " = @Original_CodCalRi)) AND ((@IsNull_CodECalRi = 1 AND [CodECalRi] IS NULL) OR "& _
  11143. "([CodECalRi] = @Original_CodECalRi)) AND ((@IsNull_OFon = 1 AND [OFon] IS NULL) "& _
  11144. "OR ([OFon] = @Original_OFon)) AND ((@IsNull_Coment = 1 AND [Coment] IS NULL) OR "& _
  11145. "([Coment] = @Original_Coment)) AND ((@IsNull_Just = 1 AND [Just] IS NULL) OR ([J"& _
  11146. "ust] = @Original_Just)) AND ((@IsNull_TipoOper = 1 AND [TipoOper] IS NULL) OR (["& _
  11147. "TipoOper] = @Original_TipoOper)) AND ((@IsNull_DocBase = 1 AND [DocBase] IS NULL"& _
  11148. ") OR ([DocBase] = @Original_DocBase)) AND ((@IsNull_MontoInv = 1 AND [MontoInv] "& _
  11149. "IS NULL) OR ([MontoInv] = @Original_MontoInv)) AND ((@IsNull_Precio = 1 AND [Pre"& _
  11150. "cio] IS NULL) OR ([Precio] = @Original_Precio)) AND ((@IsNull_Rendimiento = 1 AN"& _
  11151. "D [Rendimiento] IS NULL) OR ([Rendimiento] = @Original_Rendimiento)) AND ((@IsNu"& _
  11152. "ll_Plazo = 1 AND [Plazo] IS NULL) OR ([Plazo] = @Original_Plazo)) AND ((@IsNull_"& _
  11153. "PlazoFact = 1 AND [PlazoFact] IS NULL) OR ([PlazoFact] = @Original_PlazoFact)) A"& _
  11154. "ND ((@IsNull_Ingresos = 1 AND [Ingresos] IS NULL) OR ([Ingresos] = @Original_Ing"& _
  11155. "resos)) AND ((@IsNull_FechaDoc = 1 AND [FechaDoc] IS NULL) OR ([FechaDoc] = @Ori"& _
  11156. "ginal_FechaDoc)) AND ((@IsNull_AutEstado = 1 AND [AutEstado] IS NULL) OR ([AutEs"& _
  11157. "tado] = @Original_AutEstado)) AND ((@IsNull_TipoMerc = 1 AND [TipoMerc] IS NULL)"& _
  11158. " OR ([TipoMerc] = @Original_TipoMerc)) AND ((@IsNull_CodPais = 1 AND [CodPais] I"& _
  11159. "S NULL) OR ([CodPais] = @Original_CodPais)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT DocId, CodInv, DocEst, Asu"& _
  11160. "nto, CodEmpr, CodIF, CodEmis, CodCalRi, CodECalRi, OFon, Coment, Just, TipoOper,"& _
  11161. " DocBase, MontoInv, Precio, Rendimiento, Plazo, PlazoFact, Ingresos, FechaDoc, A"& _
  11162. "utEstado, TipoMerc, CodPais FROM PIN0 WHERE (DocId = @DocId)"
  11163. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  11164. 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, "", "", ""))
  11165. 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, "", "", ""))
  11166. 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, "", "", ""))
  11167. 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, "", "", ""))
  11168. 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, "", "", ""))
  11169. 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, "", "", ""))
  11170. 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, "", "", ""))
  11171. 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, "", "", ""))
  11172. 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, "", "", ""))
  11173. 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, "", "", ""))
  11174. 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, "", "", ""))
  11175. 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, "", "", ""))
  11176. 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, "", "", ""))
  11177. 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, "", "", ""))
  11178. 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, "", "", ""))
  11179. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Rendimiento", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "Rendimiento", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  11180. 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, "", "", ""))
  11181. 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, "", "", ""))
  11182. 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, "", "", ""))
  11183. 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, "", "", ""))
  11184. 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, "", "", ""))
  11185. 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, "", "", ""))
  11186. 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, "", "", ""))
  11187. 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, "", "", ""))
  11188. 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, "", "", ""))
  11189. 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, "", "", ""))
  11190. 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, "", "", ""))
  11191. 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, "", "", ""))
  11192. 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, "", "", ""))
  11193. 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, "", "", ""))
  11194. 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, "", "", ""))
  11195. 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, "", "", ""))
  11196. 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, "", "", ""))
  11197. 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, "", "", ""))
  11198. 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, "", "", ""))
  11199. 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, "", "", ""))
  11200. 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, "", "", ""))
  11201. 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, "", "", ""))
  11202. 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, "", "", ""))
  11203. 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, "", "", ""))
  11204. 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, "", "", ""))
  11205. 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, "", "", ""))
  11206. 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, "", "", ""))
  11207. 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, "", "", ""))
  11208. 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, "", "", ""))
  11209. 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, "", "", ""))
  11210. 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, "", "", ""))
  11211. 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, "", "", ""))
  11212. 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, "", "", ""))
  11213. 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, "", "", ""))
  11214. 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, "", "", ""))
  11215. 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, "", "", ""))
  11216. 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, "", "", ""))
  11217. 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, "", "", ""))
  11218. 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, "", "", ""))
  11219. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Rendimiento", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "Rendimiento", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  11220. 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, "", "", ""))
  11221. 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, "", "", ""))
  11222. 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, "", "", ""))
  11223. 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, "", "", ""))
  11224. 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, "", "", ""))
  11225. 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, "", "", ""))
  11226. 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, "", "", ""))
  11227. 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, "", "", ""))
  11228. 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, "", "", ""))
  11229. 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, "", "", ""))
  11230. 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, "", "", ""))
  11231. 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, "", "", ""))
  11232. 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, "", "", ""))
  11233. 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, "", "", ""))
  11234. 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, "", "", ""))
  11235. End Sub
  11236. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  11237. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  11238. Private Sub InitConnection()
  11239. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  11240. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  11241. End Sub
  11242. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  11243. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  11244. Private Sub InitCommandCollection()
  11245. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  11246. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  11247. Me._commandCollection(0).Connection = Me.Connection
  11248. Me._commandCollection(0).CommandText = "SELECT DocId, CodInv, DocEst, Asunto, CodEmpr, CodIF, CodEmis, CodCalRi, CodECalR"& _
  11249. "i, OFon, Coment, Just, TipoOper, DocBase, MontoInv, Precio, Rendimiento, Plazo, "& _
  11250. "PlazoFact, Ingresos, FechaDoc, AutEstado, TipoMerc, CodPais FROM dbo.PIN0"
  11251. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  11252. End Sub
  11253. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  11254. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  11255. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  11256. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  11257. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.PIN0DataTable) As Integer
  11258. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  11259. If (Me.ClearBeforeFill = true) Then
  11260. dataTable.Clear
  11261. End If
  11262. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  11263. Return returnValue
  11264. End Function
  11265. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  11266. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  11267. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  11268. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  11269. Public Overloads Overridable Function GetData() As InversionesDataSet1.PIN0DataTable
  11270. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  11271. Dim dataTable As InversionesDataSet1.PIN0DataTable = New InversionesDataSet1.PIN0DataTable()
  11272. Me.Adapter.Fill(dataTable)
  11273. Return dataTable
  11274. End Function
  11275. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  11276. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  11277. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  11278. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.PIN0DataTable) As Integer
  11279. Return Me.Adapter.Update(dataTable)
  11280. End Function
  11281. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  11282. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  11283. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  11284. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  11285. Return Me.Adapter.Update(dataSet, "PIN0")
  11286. End Function
  11287. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  11288. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  11289. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  11290. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  11291. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  11292. End Function
  11293. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  11294. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  11295. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  11296. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  11297. Return Me.Adapter.Update(dataRows)
  11298. End Function
  11299. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  11300. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  11301. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  11302. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  11303. Public Overloads Overridable Function Delete( _
  11304. ByVal Original_DocId As Integer, _
  11305. ByVal Original_CodInv As String, _
  11306. ByVal Original_DocEst As String, _
  11307. ByVal Original_Asunto As String, _
  11308. ByVal Original_CodEmpr As String, _
  11309. ByVal Original_CodIF As String, _
  11310. ByVal Original_CodEmis As Global.System.Nullable(Of Integer), _
  11311. ByVal Original_CodCalRi As String, _
  11312. ByVal Original_CodECalRi As String, _
  11313. ByVal Original_OFon As String, _
  11314. ByVal Original_Coment As String, _
  11315. ByVal Original_Just As String, _
  11316. ByVal Original_TipoOper As String, _
  11317. ByVal Original_DocBase As Global.System.Nullable(Of Integer), _
  11318. ByVal Original_MontoInv As Global.System.Nullable(Of Decimal), _
  11319. ByVal Original_Precio As Global.System.Nullable(Of Decimal), _
  11320. ByVal Original_Rendimiento As Global.System.Nullable(Of Decimal), _
  11321. ByVal Original_Plazo As Global.System.Nullable(Of Integer), _
  11322. ByVal Original_PlazoFact As String, _
  11323. ByVal Original_Ingresos As Global.System.Nullable(Of Decimal), _
  11324. ByVal Original_FechaDoc As Global.System.Nullable(Of Date), _
  11325. ByVal Original_AutEstado As String, _
  11326. ByVal Original_TipoMerc As String, _
  11327. ByVal Original_CodPais As String) As Integer
  11328. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_DocId,Integer)
  11329. If (Original_CodInv Is Nothing) Then
  11330. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  11331. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  11332. Else
  11333. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  11334. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_CodInv,String)
  11335. End If
  11336. If (Original_DocEst Is Nothing) Then
  11337. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
  11338. Me.Adapter.DeleteCommand.Parameters(4).Value = Global.System.DBNull.Value
  11339. Else
  11340. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
  11341. Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_DocEst,String)
  11342. End If
  11343. If (Original_Asunto Is Nothing) Then
  11344. Me.Adapter.DeleteCommand.Parameters(5).Value = CType(1,Object)
  11345. Me.Adapter.DeleteCommand.Parameters(6).Value = Global.System.DBNull.Value
  11346. Else
  11347. Me.Adapter.DeleteCommand.Parameters(5).Value = CType(0,Object)
  11348. Me.Adapter.DeleteCommand.Parameters(6).Value = CType(Original_Asunto,String)
  11349. End If
  11350. If (Original_CodEmpr Is Nothing) Then
  11351. Me.Adapter.DeleteCommand.Parameters(7).Value = CType(1,Object)
  11352. Me.Adapter.DeleteCommand.Parameters(8).Value = Global.System.DBNull.Value
  11353. Else
  11354. Me.Adapter.DeleteCommand.Parameters(7).Value = CType(0,Object)
  11355. Me.Adapter.DeleteCommand.Parameters(8).Value = CType(Original_CodEmpr,String)
  11356. End If
  11357. If (Original_CodIF Is Nothing) Then
  11358. Me.Adapter.DeleteCommand.Parameters(9).Value = CType(1,Object)
  11359. Me.Adapter.DeleteCommand.Parameters(10).Value = Global.System.DBNull.Value
  11360. Else
  11361. Me.Adapter.DeleteCommand.Parameters(9).Value = CType(0,Object)
  11362. Me.Adapter.DeleteCommand.Parameters(10).Value = CType(Original_CodIF,String)
  11363. End If
  11364. If (Original_CodEmis.HasValue = true) Then
  11365. Me.Adapter.DeleteCommand.Parameters(11).Value = CType(0,Object)
  11366. Me.Adapter.DeleteCommand.Parameters(12).Value = CType(Original_CodEmis.Value,Integer)
  11367. Else
  11368. Me.Adapter.DeleteCommand.Parameters(11).Value = CType(1,Object)
  11369. Me.Adapter.DeleteCommand.Parameters(12).Value = Global.System.DBNull.Value
  11370. End If
  11371. If (Original_CodCalRi Is Nothing) Then
  11372. Me.Adapter.DeleteCommand.Parameters(13).Value = CType(1,Object)
  11373. Me.Adapter.DeleteCommand.Parameters(14).Value = Global.System.DBNull.Value
  11374. Else
  11375. Me.Adapter.DeleteCommand.Parameters(13).Value = CType(0,Object)
  11376. Me.Adapter.DeleteCommand.Parameters(14).Value = CType(Original_CodCalRi,String)
  11377. End If
  11378. If (Original_CodECalRi Is Nothing) Then
  11379. Me.Adapter.DeleteCommand.Parameters(15).Value = CType(1,Object)
  11380. Me.Adapter.DeleteCommand.Parameters(16).Value = Global.System.DBNull.Value
  11381. Else
  11382. Me.Adapter.DeleteCommand.Parameters(15).Value = CType(0,Object)
  11383. Me.Adapter.DeleteCommand.Parameters(16).Value = CType(Original_CodECalRi,String)
  11384. End If
  11385. If (Original_OFon Is Nothing) Then
  11386. Me.Adapter.DeleteCommand.Parameters(17).Value = CType(1,Object)
  11387. Me.Adapter.DeleteCommand.Parameters(18).Value = Global.System.DBNull.Value
  11388. Else
  11389. Me.Adapter.DeleteCommand.Parameters(17).Value = CType(0,Object)
  11390. Me.Adapter.DeleteCommand.Parameters(18).Value = CType(Original_OFon,String)
  11391. End If
  11392. If (Original_Coment Is Nothing) Then
  11393. Me.Adapter.DeleteCommand.Parameters(19).Value = CType(1,Object)
  11394. Me.Adapter.DeleteCommand.Parameters(20).Value = Global.System.DBNull.Value
  11395. Else
  11396. Me.Adapter.DeleteCommand.Parameters(19).Value = CType(0,Object)
  11397. Me.Adapter.DeleteCommand.Parameters(20).Value = CType(Original_Coment,String)
  11398. End If
  11399. If (Original_Just Is Nothing) Then
  11400. Me.Adapter.DeleteCommand.Parameters(21).Value = CType(1,Object)
  11401. Me.Adapter.DeleteCommand.Parameters(22).Value = Global.System.DBNull.Value
  11402. Else
  11403. Me.Adapter.DeleteCommand.Parameters(21).Value = CType(0,Object)
  11404. Me.Adapter.DeleteCommand.Parameters(22).Value = CType(Original_Just,String)
  11405. End If
  11406. If (Original_TipoOper Is Nothing) Then
  11407. Me.Adapter.DeleteCommand.Parameters(23).Value = CType(1,Object)
  11408. Me.Adapter.DeleteCommand.Parameters(24).Value = Global.System.DBNull.Value
  11409. Else
  11410. Me.Adapter.DeleteCommand.Parameters(23).Value = CType(0,Object)
  11411. Me.Adapter.DeleteCommand.Parameters(24).Value = CType(Original_TipoOper,String)
  11412. End If
  11413. If (Original_DocBase.HasValue = true) Then
  11414. Me.Adapter.DeleteCommand.Parameters(25).Value = CType(0,Object)
  11415. Me.Adapter.DeleteCommand.Parameters(26).Value = CType(Original_DocBase.Value,Integer)
  11416. Else
  11417. Me.Adapter.DeleteCommand.Parameters(25).Value = CType(1,Object)
  11418. Me.Adapter.DeleteCommand.Parameters(26).Value = Global.System.DBNull.Value
  11419. End If
  11420. If (Original_MontoInv.HasValue = true) Then
  11421. Me.Adapter.DeleteCommand.Parameters(27).Value = CType(0,Object)
  11422. Me.Adapter.DeleteCommand.Parameters(28).Value = CType(Original_MontoInv.Value,Decimal)
  11423. Else
  11424. Me.Adapter.DeleteCommand.Parameters(27).Value = CType(1,Object)
  11425. Me.Adapter.DeleteCommand.Parameters(28).Value = Global.System.DBNull.Value
  11426. End If
  11427. If (Original_Precio.HasValue = true) Then
  11428. Me.Adapter.DeleteCommand.Parameters(29).Value = CType(0,Object)
  11429. Me.Adapter.DeleteCommand.Parameters(30).Value = CType(Original_Precio.Value,Decimal)
  11430. Else
  11431. Me.Adapter.DeleteCommand.Parameters(29).Value = CType(1,Object)
  11432. Me.Adapter.DeleteCommand.Parameters(30).Value = Global.System.DBNull.Value
  11433. End If
  11434. If (Original_Rendimiento.HasValue = true) Then
  11435. Me.Adapter.DeleteCommand.Parameters(31).Value = CType(0,Object)
  11436. Me.Adapter.DeleteCommand.Parameters(32).Value = CType(Original_Rendimiento.Value,Decimal)
  11437. Else
  11438. Me.Adapter.DeleteCommand.Parameters(31).Value = CType(1,Object)
  11439. Me.Adapter.DeleteCommand.Parameters(32).Value = Global.System.DBNull.Value
  11440. End If
  11441. If (Original_Plazo.HasValue = true) Then
  11442. Me.Adapter.DeleteCommand.Parameters(33).Value = CType(0,Object)
  11443. Me.Adapter.DeleteCommand.Parameters(34).Value = CType(Original_Plazo.Value,Integer)
  11444. Else
  11445. Me.Adapter.DeleteCommand.Parameters(33).Value = CType(1,Object)
  11446. Me.Adapter.DeleteCommand.Parameters(34).Value = Global.System.DBNull.Value
  11447. End If
  11448. If (Original_PlazoFact Is Nothing) Then
  11449. Me.Adapter.DeleteCommand.Parameters(35).Value = CType(1,Object)
  11450. Me.Adapter.DeleteCommand.Parameters(36).Value = Global.System.DBNull.Value
  11451. Else
  11452. Me.Adapter.DeleteCommand.Parameters(35).Value = CType(0,Object)
  11453. Me.Adapter.DeleteCommand.Parameters(36).Value = CType(Original_PlazoFact,String)
  11454. End If
  11455. If (Original_Ingresos.HasValue = true) Then
  11456. Me.Adapter.DeleteCommand.Parameters(37).Value = CType(0,Object)
  11457. Me.Adapter.DeleteCommand.Parameters(38).Value = CType(Original_Ingresos.Value,Decimal)
  11458. Else
  11459. Me.Adapter.DeleteCommand.Parameters(37).Value = CType(1,Object)
  11460. Me.Adapter.DeleteCommand.Parameters(38).Value = Global.System.DBNull.Value
  11461. End If
  11462. If (Original_FechaDoc.HasValue = true) Then
  11463. Me.Adapter.DeleteCommand.Parameters(39).Value = CType(0,Object)
  11464. Me.Adapter.DeleteCommand.Parameters(40).Value = CType(Original_FechaDoc.Value,Date)
  11465. Else
  11466. Me.Adapter.DeleteCommand.Parameters(39).Value = CType(1,Object)
  11467. Me.Adapter.DeleteCommand.Parameters(40).Value = Global.System.DBNull.Value
  11468. End If
  11469. If (Original_AutEstado Is Nothing) Then
  11470. Me.Adapter.DeleteCommand.Parameters(41).Value = CType(1,Object)
  11471. Me.Adapter.DeleteCommand.Parameters(42).Value = Global.System.DBNull.Value
  11472. Else
  11473. Me.Adapter.DeleteCommand.Parameters(41).Value = CType(0,Object)
  11474. Me.Adapter.DeleteCommand.Parameters(42).Value = CType(Original_AutEstado,String)
  11475. End If
  11476. If (Original_TipoMerc Is Nothing) Then
  11477. Me.Adapter.DeleteCommand.Parameters(43).Value = CType(1,Object)
  11478. Me.Adapter.DeleteCommand.Parameters(44).Value = Global.System.DBNull.Value
  11479. Else
  11480. Me.Adapter.DeleteCommand.Parameters(43).Value = CType(0,Object)
  11481. Me.Adapter.DeleteCommand.Parameters(44).Value = CType(Original_TipoMerc,String)
  11482. End If
  11483. If (Original_CodPais Is Nothing) Then
  11484. Me.Adapter.DeleteCommand.Parameters(45).Value = CType(1,Object)
  11485. Me.Adapter.DeleteCommand.Parameters(46).Value = Global.System.DBNull.Value
  11486. Else
  11487. Me.Adapter.DeleteCommand.Parameters(45).Value = CType(0,Object)
  11488. Me.Adapter.DeleteCommand.Parameters(46).Value = CType(Original_CodPais,String)
  11489. End If
  11490. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  11491. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  11492. <> Global.System.Data.ConnectionState.Open) Then
  11493. Me.Adapter.DeleteCommand.Connection.Open
  11494. End If
  11495. Try
  11496. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  11497. Return returnValue
  11498. Finally
  11499. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  11500. Me.Adapter.DeleteCommand.Connection.Close
  11501. End If
  11502. End Try
  11503. End Function
  11504. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  11505. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  11506. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  11507. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  11508. Public Overloads Overridable Function Insert( _
  11509. ByVal CodInv As String, _
  11510. ByVal DocEst As String, _
  11511. ByVal Asunto As String, _
  11512. ByVal CodEmpr As String, _
  11513. ByVal CodIF As String, _
  11514. ByVal CodEmis As Global.System.Nullable(Of Integer), _
  11515. ByVal CodCalRi As String, _
  11516. ByVal CodECalRi As String, _
  11517. ByVal OFon As String, _
  11518. ByVal Coment As String, _
  11519. ByVal Just As String, _
  11520. ByVal TipoOper As String, _
  11521. ByVal DocBase As Global.System.Nullable(Of Integer), _
  11522. ByVal MontoInv As Global.System.Nullable(Of Decimal), _
  11523. ByVal Precio As Global.System.Nullable(Of Decimal), _
  11524. ByVal Rendimiento As Global.System.Nullable(Of Decimal), _
  11525. ByVal Plazo As Global.System.Nullable(Of Integer), _
  11526. ByVal PlazoFact As String, _
  11527. ByVal Ingresos As Global.System.Nullable(Of Decimal), _
  11528. ByVal FechaDoc As Global.System.Nullable(Of Date), _
  11529. ByVal AutEstado As String, _
  11530. ByVal TipoMerc As String, _
  11531. ByVal CodPais As String) As Integer
  11532. If (CodInv Is Nothing) Then
  11533. Me.Adapter.InsertCommand.Parameters(0).Value = Global.System.DBNull.Value
  11534. Else
  11535. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodInv,String)
  11536. End If
  11537. If (DocEst Is Nothing) Then
  11538. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  11539. Else
  11540. Me.Adapter.InsertCommand.Parameters(1).Value = CType(DocEst,String)
  11541. End If
  11542. If (Asunto Is Nothing) Then
  11543. Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
  11544. Else
  11545. Me.Adapter.InsertCommand.Parameters(2).Value = CType(Asunto,String)
  11546. End If
  11547. If (CodEmpr Is Nothing) Then
  11548. Me.Adapter.InsertCommand.Parameters(3).Value = Global.System.DBNull.Value
  11549. Else
  11550. Me.Adapter.InsertCommand.Parameters(3).Value = CType(CodEmpr,String)
  11551. End If
  11552. If (CodIF Is Nothing) Then
  11553. Me.Adapter.InsertCommand.Parameters(4).Value = Global.System.DBNull.Value
  11554. Else
  11555. Me.Adapter.InsertCommand.Parameters(4).Value = CType(CodIF,String)
  11556. End If
  11557. If (CodEmis.HasValue = true) Then
  11558. Me.Adapter.InsertCommand.Parameters(5).Value = CType(CodEmis.Value,Integer)
  11559. Else
  11560. Me.Adapter.InsertCommand.Parameters(5).Value = Global.System.DBNull.Value
  11561. End If
  11562. If (CodCalRi Is Nothing) Then
  11563. Me.Adapter.InsertCommand.Parameters(6).Value = Global.System.DBNull.Value
  11564. Else
  11565. Me.Adapter.InsertCommand.Parameters(6).Value = CType(CodCalRi,String)
  11566. End If
  11567. If (CodECalRi Is Nothing) Then
  11568. Me.Adapter.InsertCommand.Parameters(7).Value = Global.System.DBNull.Value
  11569. Else
  11570. Me.Adapter.InsertCommand.Parameters(7).Value = CType(CodECalRi,String)
  11571. End If
  11572. If (OFon Is Nothing) Then
  11573. Me.Adapter.InsertCommand.Parameters(8).Value = Global.System.DBNull.Value
  11574. Else
  11575. Me.Adapter.InsertCommand.Parameters(8).Value = CType(OFon,String)
  11576. End If
  11577. If (Coment Is Nothing) Then
  11578. Me.Adapter.InsertCommand.Parameters(9).Value = Global.System.DBNull.Value
  11579. Else
  11580. Me.Adapter.InsertCommand.Parameters(9).Value = CType(Coment,String)
  11581. End If
  11582. If (Just Is Nothing) Then
  11583. Me.Adapter.InsertCommand.Parameters(10).Value = Global.System.DBNull.Value
  11584. Else
  11585. Me.Adapter.InsertCommand.Parameters(10).Value = CType(Just,String)
  11586. End If
  11587. If (TipoOper Is Nothing) Then
  11588. Me.Adapter.InsertCommand.Parameters(11).Value = Global.System.DBNull.Value
  11589. Else
  11590. Me.Adapter.InsertCommand.Parameters(11).Value = CType(TipoOper,String)
  11591. End If
  11592. If (DocBase.HasValue = true) Then
  11593. Me.Adapter.InsertCommand.Parameters(12).Value = CType(DocBase.Value,Integer)
  11594. Else
  11595. Me.Adapter.InsertCommand.Parameters(12).Value = Global.System.DBNull.Value
  11596. End If
  11597. If (MontoInv.HasValue = true) Then
  11598. Me.Adapter.InsertCommand.Parameters(13).Value = CType(MontoInv.Value,Decimal)
  11599. Else
  11600. Me.Adapter.InsertCommand.Parameters(13).Value = Global.System.DBNull.Value
  11601. End If
  11602. If (Precio.HasValue = true) Then
  11603. Me.Adapter.InsertCommand.Parameters(14).Value = CType(Precio.Value,Decimal)
  11604. Else
  11605. Me.Adapter.InsertCommand.Parameters(14).Value = Global.System.DBNull.Value
  11606. End If
  11607. If (Rendimiento.HasValue = true) Then
  11608. Me.Adapter.InsertCommand.Parameters(15).Value = CType(Rendimiento.Value,Decimal)
  11609. Else
  11610. Me.Adapter.InsertCommand.Parameters(15).Value = Global.System.DBNull.Value
  11611. End If
  11612. If (Plazo.HasValue = true) Then
  11613. Me.Adapter.InsertCommand.Parameters(16).Value = CType(Plazo.Value,Integer)
  11614. Else
  11615. Me.Adapter.InsertCommand.Parameters(16).Value = Global.System.DBNull.Value
  11616. End If
  11617. If (PlazoFact Is Nothing) Then
  11618. Me.Adapter.InsertCommand.Parameters(17).Value = Global.System.DBNull.Value
  11619. Else
  11620. Me.Adapter.InsertCommand.Parameters(17).Value = CType(PlazoFact,String)
  11621. End If
  11622. If (Ingresos.HasValue = true) Then
  11623. Me.Adapter.InsertCommand.Parameters(18).Value = CType(Ingresos.Value,Decimal)
  11624. Else
  11625. Me.Adapter.InsertCommand.Parameters(18).Value = Global.System.DBNull.Value
  11626. End If
  11627. If (FechaDoc.HasValue = true) Then
  11628. Me.Adapter.InsertCommand.Parameters(19).Value = CType(FechaDoc.Value,Date)
  11629. Else
  11630. Me.Adapter.InsertCommand.Parameters(19).Value = Global.System.DBNull.Value
  11631. End If
  11632. If (AutEstado Is Nothing) Then
  11633. Me.Adapter.InsertCommand.Parameters(20).Value = Global.System.DBNull.Value
  11634. Else
  11635. Me.Adapter.InsertCommand.Parameters(20).Value = CType(AutEstado,String)
  11636. End If
  11637. If (TipoMerc Is Nothing) Then
  11638. Me.Adapter.InsertCommand.Parameters(21).Value = Global.System.DBNull.Value
  11639. Else
  11640. Me.Adapter.InsertCommand.Parameters(21).Value = CType(TipoMerc,String)
  11641. End If
  11642. If (CodPais Is Nothing) Then
  11643. Me.Adapter.InsertCommand.Parameters(22).Value = Global.System.DBNull.Value
  11644. Else
  11645. Me.Adapter.InsertCommand.Parameters(22).Value = CType(CodPais,String)
  11646. End If
  11647. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  11648. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  11649. <> Global.System.Data.ConnectionState.Open) Then
  11650. Me.Adapter.InsertCommand.Connection.Open
  11651. End If
  11652. Try
  11653. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  11654. Return returnValue
  11655. Finally
  11656. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  11657. Me.Adapter.InsertCommand.Connection.Close
  11658. End If
  11659. End Try
  11660. End Function
  11661. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  11662. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  11663. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  11664. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  11665. Public Overloads Overridable Function Update( _
  11666. ByVal CodInv As String, _
  11667. ByVal DocEst As String, _
  11668. ByVal Asunto As String, _
  11669. ByVal CodEmpr As String, _
  11670. ByVal CodIF As String, _
  11671. ByVal CodEmis As Global.System.Nullable(Of Integer), _
  11672. ByVal CodCalRi As String, _
  11673. ByVal CodECalRi As String, _
  11674. ByVal OFon As String, _
  11675. ByVal Coment As String, _
  11676. ByVal Just As String, _
  11677. ByVal TipoOper As String, _
  11678. ByVal DocBase As Global.System.Nullable(Of Integer), _
  11679. ByVal MontoInv As Global.System.Nullable(Of Decimal), _
  11680. ByVal Precio As Global.System.Nullable(Of Decimal), _
  11681. ByVal Rendimiento As Global.System.Nullable(Of Decimal), _
  11682. ByVal Plazo As Global.System.Nullable(Of Integer), _
  11683. ByVal PlazoFact As String, _
  11684. ByVal Ingresos As Global.System.Nullable(Of Decimal), _
  11685. ByVal FechaDoc As Global.System.Nullable(Of Date), _
  11686. ByVal AutEstado As String, _
  11687. ByVal TipoMerc As String, _
  11688. ByVal CodPais As String, _
  11689. ByVal Original_DocId As Integer, _
  11690. ByVal Original_CodInv As String, _
  11691. ByVal Original_DocEst As String, _
  11692. ByVal Original_Asunto As String, _
  11693. ByVal Original_CodEmpr As String, _
  11694. ByVal Original_CodIF As String, _
  11695. ByVal Original_CodEmis As Global.System.Nullable(Of Integer), _
  11696. ByVal Original_CodCalRi As String, _
  11697. ByVal Original_CodECalRi As String, _
  11698. ByVal Original_OFon As String, _
  11699. ByVal Original_Coment As String, _
  11700. ByVal Original_Just As String, _
  11701. ByVal Original_TipoOper As String, _
  11702. ByVal Original_DocBase As Global.System.Nullable(Of Integer), _
  11703. ByVal Original_MontoInv As Global.System.Nullable(Of Decimal), _
  11704. ByVal Original_Precio As Global.System.Nullable(Of Decimal), _
  11705. ByVal Original_Rendimiento As Global.System.Nullable(Of Decimal), _
  11706. ByVal Original_Plazo As Global.System.Nullable(Of Integer), _
  11707. ByVal Original_PlazoFact As String, _
  11708. ByVal Original_Ingresos As Global.System.Nullable(Of Decimal), _
  11709. ByVal Original_FechaDoc As Global.System.Nullable(Of Date), _
  11710. ByVal Original_AutEstado As String, _
  11711. ByVal Original_TipoMerc As String, _
  11712. ByVal Original_CodPais As String, _
  11713. ByVal DocId As Integer) As Integer
  11714. If (CodInv Is Nothing) Then
  11715. Me.Adapter.UpdateCommand.Parameters(0).Value = Global.System.DBNull.Value
  11716. Else
  11717. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodInv,String)
  11718. End If
  11719. If (DocEst Is Nothing) Then
  11720. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  11721. Else
  11722. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(DocEst,String)
  11723. End If
  11724. If (Asunto Is Nothing) Then
  11725. Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
  11726. Else
  11727. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Asunto,String)
  11728. End If
  11729. If (CodEmpr Is Nothing) Then
  11730. Me.Adapter.UpdateCommand.Parameters(3).Value = Global.System.DBNull.Value
  11731. Else
  11732. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(CodEmpr,String)
  11733. End If
  11734. If (CodIF Is Nothing) Then
  11735. Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
  11736. Else
  11737. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(CodIF,String)
  11738. End If
  11739. If (CodEmis.HasValue = true) Then
  11740. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(CodEmis.Value,Integer)
  11741. Else
  11742. Me.Adapter.UpdateCommand.Parameters(5).Value = Global.System.DBNull.Value
  11743. End If
  11744. If (CodCalRi Is Nothing) Then
  11745. Me.Adapter.UpdateCommand.Parameters(6).Value = Global.System.DBNull.Value
  11746. Else
  11747. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(CodCalRi,String)
  11748. End If
  11749. If (CodECalRi Is Nothing) Then
  11750. Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
  11751. Else
  11752. Me.Adapter.UpdateCommand.Parameters(7).Value = CType(CodECalRi,String)
  11753. End If
  11754. If (OFon Is Nothing) Then
  11755. Me.Adapter.UpdateCommand.Parameters(8).Value = Global.System.DBNull.Value
  11756. Else
  11757. Me.Adapter.UpdateCommand.Parameters(8).Value = CType(OFon,String)
  11758. End If
  11759. If (Coment Is Nothing) Then
  11760. Me.Adapter.UpdateCommand.Parameters(9).Value = Global.System.DBNull.Value
  11761. Else
  11762. Me.Adapter.UpdateCommand.Parameters(9).Value = CType(Coment,String)
  11763. End If
  11764. If (Just Is Nothing) Then
  11765. Me.Adapter.UpdateCommand.Parameters(10).Value = Global.System.DBNull.Value
  11766. Else
  11767. Me.Adapter.UpdateCommand.Parameters(10).Value = CType(Just,String)
  11768. End If
  11769. If (TipoOper Is Nothing) Then
  11770. Me.Adapter.UpdateCommand.Parameters(11).Value = Global.System.DBNull.Value
  11771. Else
  11772. Me.Adapter.UpdateCommand.Parameters(11).Value = CType(TipoOper,String)
  11773. End If
  11774. If (DocBase.HasValue = true) Then
  11775. Me.Adapter.UpdateCommand.Parameters(12).Value = CType(DocBase.Value,Integer)
  11776. Else
  11777. Me.Adapter.UpdateCommand.Parameters(12).Value = Global.System.DBNull.Value
  11778. End If
  11779. If (MontoInv.HasValue = true) Then
  11780. Me.Adapter.UpdateCommand.Parameters(13).Value = CType(MontoInv.Value,Decimal)
  11781. Else
  11782. Me.Adapter.UpdateCommand.Parameters(13).Value = Global.System.DBNull.Value
  11783. End If
  11784. If (Precio.HasValue = true) Then
  11785. Me.Adapter.UpdateCommand.Parameters(14).Value = CType(Precio.Value,Decimal)
  11786. Else
  11787. Me.Adapter.UpdateCommand.Parameters(14).Value = Global.System.DBNull.Value
  11788. End If
  11789. If (Rendimiento.HasValue = true) Then
  11790. Me.Adapter.UpdateCommand.Parameters(15).Value = CType(Rendimiento.Value,Decimal)
  11791. Else
  11792. Me.Adapter.UpdateCommand.Parameters(15).Value = Global.System.DBNull.Value
  11793. End If
  11794. If (Plazo.HasValue = true) Then
  11795. Me.Adapter.UpdateCommand.Parameters(16).Value = CType(Plazo.Value,Integer)
  11796. Else
  11797. Me.Adapter.UpdateCommand.Parameters(16).Value = Global.System.DBNull.Value
  11798. End If
  11799. If (PlazoFact Is Nothing) Then
  11800. Me.Adapter.UpdateCommand.Parameters(17).Value = Global.System.DBNull.Value
  11801. Else
  11802. Me.Adapter.UpdateCommand.Parameters(17).Value = CType(PlazoFact,String)
  11803. End If
  11804. If (Ingresos.HasValue = true) Then
  11805. Me.Adapter.UpdateCommand.Parameters(18).Value = CType(Ingresos.Value,Decimal)
  11806. Else
  11807. Me.Adapter.UpdateCommand.Parameters(18).Value = Global.System.DBNull.Value
  11808. End If
  11809. If (FechaDoc.HasValue = true) Then
  11810. Me.Adapter.UpdateCommand.Parameters(19).Value = CType(FechaDoc.Value,Date)
  11811. Else
  11812. Me.Adapter.UpdateCommand.Parameters(19).Value = Global.System.DBNull.Value
  11813. End If
  11814. If (AutEstado Is Nothing) Then
  11815. Me.Adapter.UpdateCommand.Parameters(20).Value = Global.System.DBNull.Value
  11816. Else
  11817. Me.Adapter.UpdateCommand.Parameters(20).Value = CType(AutEstado,String)
  11818. End If
  11819. If (TipoMerc Is Nothing) Then
  11820. Me.Adapter.UpdateCommand.Parameters(21).Value = Global.System.DBNull.Value
  11821. Else
  11822. Me.Adapter.UpdateCommand.Parameters(21).Value = CType(TipoMerc,String)
  11823. End If
  11824. If (CodPais Is Nothing) Then
  11825. Me.Adapter.UpdateCommand.Parameters(22).Value = Global.System.DBNull.Value
  11826. Else
  11827. Me.Adapter.UpdateCommand.Parameters(22).Value = CType(CodPais,String)
  11828. End If
  11829. Me.Adapter.UpdateCommand.Parameters(23).Value = CType(Original_DocId,Integer)
  11830. If (Original_CodInv Is Nothing) Then
  11831. Me.Adapter.UpdateCommand.Parameters(24).Value = CType(1,Object)
  11832. Me.Adapter.UpdateCommand.Parameters(25).Value = Global.System.DBNull.Value
  11833. Else
  11834. Me.Adapter.UpdateCommand.Parameters(24).Value = CType(0,Object)
  11835. Me.Adapter.UpdateCommand.Parameters(25).Value = CType(Original_CodInv,String)
  11836. End If
  11837. If (Original_DocEst Is Nothing) Then
  11838. Me.Adapter.UpdateCommand.Parameters(26).Value = CType(1,Object)
  11839. Me.Adapter.UpdateCommand.Parameters(27).Value = Global.System.DBNull.Value
  11840. Else
  11841. Me.Adapter.UpdateCommand.Parameters(26).Value = CType(0,Object)
  11842. Me.Adapter.UpdateCommand.Parameters(27).Value = CType(Original_DocEst,String)
  11843. End If
  11844. If (Original_Asunto Is Nothing) Then
  11845. Me.Adapter.UpdateCommand.Parameters(28).Value = CType(1,Object)
  11846. Me.Adapter.UpdateCommand.Parameters(29).Value = Global.System.DBNull.Value
  11847. Else
  11848. Me.Adapter.UpdateCommand.Parameters(28).Value = CType(0,Object)
  11849. Me.Adapter.UpdateCommand.Parameters(29).Value = CType(Original_Asunto,String)
  11850. End If
  11851. If (Original_CodEmpr Is Nothing) Then
  11852. Me.Adapter.UpdateCommand.Parameters(30).Value = CType(1,Object)
  11853. Me.Adapter.UpdateCommand.Parameters(31).Value = Global.System.DBNull.Value
  11854. Else
  11855. Me.Adapter.UpdateCommand.Parameters(30).Value = CType(0,Object)
  11856. Me.Adapter.UpdateCommand.Parameters(31).Value = CType(Original_CodEmpr,String)
  11857. End If
  11858. If (Original_CodIF Is Nothing) Then
  11859. Me.Adapter.UpdateCommand.Parameters(32).Value = CType(1,Object)
  11860. Me.Adapter.UpdateCommand.Parameters(33).Value = Global.System.DBNull.Value
  11861. Else
  11862. Me.Adapter.UpdateCommand.Parameters(32).Value = CType(0,Object)
  11863. Me.Adapter.UpdateCommand.Parameters(33).Value = CType(Original_CodIF,String)
  11864. End If
  11865. If (Original_CodEmis.HasValue = true) Then
  11866. Me.Adapter.UpdateCommand.Parameters(34).Value = CType(0,Object)
  11867. Me.Adapter.UpdateCommand.Parameters(35).Value = CType(Original_CodEmis.Value,Integer)
  11868. Else
  11869. Me.Adapter.UpdateCommand.Parameters(34).Value = CType(1,Object)
  11870. Me.Adapter.UpdateCommand.Parameters(35).Value = Global.System.DBNull.Value
  11871. End If
  11872. If (Original_CodCalRi Is Nothing) Then
  11873. Me.Adapter.UpdateCommand.Parameters(36).Value = CType(1,Object)
  11874. Me.Adapter.UpdateCommand.Parameters(37).Value = Global.System.DBNull.Value
  11875. Else
  11876. Me.Adapter.UpdateCommand.Parameters(36).Value = CType(0,Object)
  11877. Me.Adapter.UpdateCommand.Parameters(37).Value = CType(Original_CodCalRi,String)
  11878. End If
  11879. If (Original_CodECalRi Is Nothing) Then
  11880. Me.Adapter.UpdateCommand.Parameters(38).Value = CType(1,Object)
  11881. Me.Adapter.UpdateCommand.Parameters(39).Value = Global.System.DBNull.Value
  11882. Else
  11883. Me.Adapter.UpdateCommand.Parameters(38).Value = CType(0,Object)
  11884. Me.Adapter.UpdateCommand.Parameters(39).Value = CType(Original_CodECalRi,String)
  11885. End If
  11886. If (Original_OFon Is Nothing) Then
  11887. Me.Adapter.UpdateCommand.Parameters(40).Value = CType(1,Object)
  11888. Me.Adapter.UpdateCommand.Parameters(41).Value = Global.System.DBNull.Value
  11889. Else
  11890. Me.Adapter.UpdateCommand.Parameters(40).Value = CType(0,Object)
  11891. Me.Adapter.UpdateCommand.Parameters(41).Value = CType(Original_OFon,String)
  11892. End If
  11893. If (Original_Coment Is Nothing) Then
  11894. Me.Adapter.UpdateCommand.Parameters(42).Value = CType(1,Object)
  11895. Me.Adapter.UpdateCommand.Parameters(43).Value = Global.System.DBNull.Value
  11896. Else
  11897. Me.Adapter.UpdateCommand.Parameters(42).Value = CType(0,Object)
  11898. Me.Adapter.UpdateCommand.Parameters(43).Value = CType(Original_Coment,String)
  11899. End If
  11900. If (Original_Just Is Nothing) Then
  11901. Me.Adapter.UpdateCommand.Parameters(44).Value = CType(1,Object)
  11902. Me.Adapter.UpdateCommand.Parameters(45).Value = Global.System.DBNull.Value
  11903. Else
  11904. Me.Adapter.UpdateCommand.Parameters(44).Value = CType(0,Object)
  11905. Me.Adapter.UpdateCommand.Parameters(45).Value = CType(Original_Just,String)
  11906. End If
  11907. If (Original_TipoOper Is Nothing) Then
  11908. Me.Adapter.UpdateCommand.Parameters(46).Value = CType(1,Object)
  11909. Me.Adapter.UpdateCommand.Parameters(47).Value = Global.System.DBNull.Value
  11910. Else
  11911. Me.Adapter.UpdateCommand.Parameters(46).Value = CType(0,Object)
  11912. Me.Adapter.UpdateCommand.Parameters(47).Value = CType(Original_TipoOper,String)
  11913. End If
  11914. If (Original_DocBase.HasValue = true) Then
  11915. Me.Adapter.UpdateCommand.Parameters(48).Value = CType(0,Object)
  11916. Me.Adapter.UpdateCommand.Parameters(49).Value = CType(Original_DocBase.Value,Integer)
  11917. Else
  11918. Me.Adapter.UpdateCommand.Parameters(48).Value = CType(1,Object)
  11919. Me.Adapter.UpdateCommand.Parameters(49).Value = Global.System.DBNull.Value
  11920. End If
  11921. If (Original_MontoInv.HasValue = true) Then
  11922. Me.Adapter.UpdateCommand.Parameters(50).Value = CType(0,Object)
  11923. Me.Adapter.UpdateCommand.Parameters(51).Value = CType(Original_MontoInv.Value,Decimal)
  11924. Else
  11925. Me.Adapter.UpdateCommand.Parameters(50).Value = CType(1,Object)
  11926. Me.Adapter.UpdateCommand.Parameters(51).Value = Global.System.DBNull.Value
  11927. End If
  11928. If (Original_Precio.HasValue = true) Then
  11929. Me.Adapter.UpdateCommand.Parameters(52).Value = CType(0,Object)
  11930. Me.Adapter.UpdateCommand.Parameters(53).Value = CType(Original_Precio.Value,Decimal)
  11931. Else
  11932. Me.Adapter.UpdateCommand.Parameters(52).Value = CType(1,Object)
  11933. Me.Adapter.UpdateCommand.Parameters(53).Value = Global.System.DBNull.Value
  11934. End If
  11935. If (Original_Rendimiento.HasValue = true) Then
  11936. Me.Adapter.UpdateCommand.Parameters(54).Value = CType(0,Object)
  11937. Me.Adapter.UpdateCommand.Parameters(55).Value = CType(Original_Rendimiento.Value,Decimal)
  11938. Else
  11939. Me.Adapter.UpdateCommand.Parameters(54).Value = CType(1,Object)
  11940. Me.Adapter.UpdateCommand.Parameters(55).Value = Global.System.DBNull.Value
  11941. End If
  11942. If (Original_Plazo.HasValue = true) Then
  11943. Me.Adapter.UpdateCommand.Parameters(56).Value = CType(0,Object)
  11944. Me.Adapter.UpdateCommand.Parameters(57).Value = CType(Original_Plazo.Value,Integer)
  11945. Else
  11946. Me.Adapter.UpdateCommand.Parameters(56).Value = CType(1,Object)
  11947. Me.Adapter.UpdateCommand.Parameters(57).Value = Global.System.DBNull.Value
  11948. End If
  11949. If (Original_PlazoFact Is Nothing) Then
  11950. Me.Adapter.UpdateCommand.Parameters(58).Value = CType(1,Object)
  11951. Me.Adapter.UpdateCommand.Parameters(59).Value = Global.System.DBNull.Value
  11952. Else
  11953. Me.Adapter.UpdateCommand.Parameters(58).Value = CType(0,Object)
  11954. Me.Adapter.UpdateCommand.Parameters(59).Value = CType(Original_PlazoFact,String)
  11955. End If
  11956. If (Original_Ingresos.HasValue = true) Then
  11957. Me.Adapter.UpdateCommand.Parameters(60).Value = CType(0,Object)
  11958. Me.Adapter.UpdateCommand.Parameters(61).Value = CType(Original_Ingresos.Value,Decimal)
  11959. Else
  11960. Me.Adapter.UpdateCommand.Parameters(60).Value = CType(1,Object)
  11961. Me.Adapter.UpdateCommand.Parameters(61).Value = Global.System.DBNull.Value
  11962. End If
  11963. If (Original_FechaDoc.HasValue = true) Then
  11964. Me.Adapter.UpdateCommand.Parameters(62).Value = CType(0,Object)
  11965. Me.Adapter.UpdateCommand.Parameters(63).Value = CType(Original_FechaDoc.Value,Date)
  11966. Else
  11967. Me.Adapter.UpdateCommand.Parameters(62).Value = CType(1,Object)
  11968. Me.Adapter.UpdateCommand.Parameters(63).Value = Global.System.DBNull.Value
  11969. End If
  11970. If (Original_AutEstado Is Nothing) Then
  11971. Me.Adapter.UpdateCommand.Parameters(64).Value = CType(1,Object)
  11972. Me.Adapter.UpdateCommand.Parameters(65).Value = Global.System.DBNull.Value
  11973. Else
  11974. Me.Adapter.UpdateCommand.Parameters(64).Value = CType(0,Object)
  11975. Me.Adapter.UpdateCommand.Parameters(65).Value = CType(Original_AutEstado,String)
  11976. End If
  11977. If (Original_TipoMerc Is Nothing) Then
  11978. Me.Adapter.UpdateCommand.Parameters(66).Value = CType(1,Object)
  11979. Me.Adapter.UpdateCommand.Parameters(67).Value = Global.System.DBNull.Value
  11980. Else
  11981. Me.Adapter.UpdateCommand.Parameters(66).Value = CType(0,Object)
  11982. Me.Adapter.UpdateCommand.Parameters(67).Value = CType(Original_TipoMerc,String)
  11983. End If
  11984. If (Original_CodPais Is Nothing) Then
  11985. Me.Adapter.UpdateCommand.Parameters(68).Value = CType(1,Object)
  11986. Me.Adapter.UpdateCommand.Parameters(69).Value = Global.System.DBNull.Value
  11987. Else
  11988. Me.Adapter.UpdateCommand.Parameters(68).Value = CType(0,Object)
  11989. Me.Adapter.UpdateCommand.Parameters(69).Value = CType(Original_CodPais,String)
  11990. End If
  11991. Me.Adapter.UpdateCommand.Parameters(70).Value = CType(DocId,Integer)
  11992. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  11993. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  11994. <> Global.System.Data.ConnectionState.Open) Then
  11995. Me.Adapter.UpdateCommand.Connection.Open
  11996. End If
  11997. Try
  11998. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  11999. Return returnValue
  12000. Finally
  12001. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  12002. Me.Adapter.UpdateCommand.Connection.Close
  12003. End If
  12004. End Try
  12005. End Function
  12006. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12007. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12008. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  12009. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  12010. Public Overloads Overridable Function Update( _
  12011. ByVal CodInv As String, _
  12012. ByVal DocEst As String, _
  12013. ByVal Asunto As String, _
  12014. ByVal CodEmpr As String, _
  12015. ByVal CodIF As String, _
  12016. ByVal CodEmis As Global.System.Nullable(Of Integer), _
  12017. ByVal CodCalRi As String, _
  12018. ByVal CodECalRi As String, _
  12019. ByVal OFon As String, _
  12020. ByVal Coment As String, _
  12021. ByVal Just As String, _
  12022. ByVal TipoOper As String, _
  12023. ByVal DocBase As Global.System.Nullable(Of Integer), _
  12024. ByVal MontoInv As Global.System.Nullable(Of Decimal), _
  12025. ByVal Precio As Global.System.Nullable(Of Decimal), _
  12026. ByVal Rendimiento As Global.System.Nullable(Of Decimal), _
  12027. ByVal Plazo As Global.System.Nullable(Of Integer), _
  12028. ByVal PlazoFact As String, _
  12029. ByVal Ingresos As Global.System.Nullable(Of Decimal), _
  12030. ByVal FechaDoc As Global.System.Nullable(Of Date), _
  12031. ByVal AutEstado As String, _
  12032. ByVal TipoMerc As String, _
  12033. ByVal CodPais As String, _
  12034. ByVal Original_DocId As Integer, _
  12035. ByVal Original_CodInv As String, _
  12036. ByVal Original_DocEst As String, _
  12037. ByVal Original_Asunto As String, _
  12038. ByVal Original_CodEmpr As String, _
  12039. ByVal Original_CodIF As String, _
  12040. ByVal Original_CodEmis As Global.System.Nullable(Of Integer), _
  12041. ByVal Original_CodCalRi As String, _
  12042. ByVal Original_CodECalRi As String, _
  12043. ByVal Original_OFon As String, _
  12044. ByVal Original_Coment As String, _
  12045. ByVal Original_Just As String, _
  12046. ByVal Original_TipoOper As String, _
  12047. ByVal Original_DocBase As Global.System.Nullable(Of Integer), _
  12048. ByVal Original_MontoInv As Global.System.Nullable(Of Decimal), _
  12049. ByVal Original_Precio As Global.System.Nullable(Of Decimal), _
  12050. ByVal Original_Rendimiento As Global.System.Nullable(Of Decimal), _
  12051. ByVal Original_Plazo As Global.System.Nullable(Of Integer), _
  12052. ByVal Original_PlazoFact As String, _
  12053. ByVal Original_Ingresos As Global.System.Nullable(Of Decimal), _
  12054. ByVal Original_FechaDoc As Global.System.Nullable(Of Date), _
  12055. ByVal Original_AutEstado As String, _
  12056. ByVal Original_TipoMerc As String, _
  12057. ByVal Original_CodPais As String) As Integer
  12058. 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)
  12059. End Function
  12060. End Class
  12061. '''<summary>
  12062. '''Represents the connection and commands used to retrieve and save data.
  12063. '''</summary>
  12064. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  12065. Global.System.ComponentModel.ToolboxItem(true), _
  12066. Global.System.ComponentModel.DataObjectAttribute(true), _
  12067. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  12068. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  12069. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  12070. Partial Public Class CALRITableAdapter
  12071. Inherits Global.System.ComponentModel.Component
  12072. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  12073. Private _connection As Global.System.Data.SqlClient.SqlConnection
  12074. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  12075. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  12076. Private _clearBeforeFill As Boolean
  12077. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12078. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12079. Public Sub New()
  12080. MyBase.New
  12081. Me.ClearBeforeFill = true
  12082. End Sub
  12083. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12084. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12085. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  12086. Get
  12087. If (Me._adapter Is Nothing) Then
  12088. Me.InitAdapter
  12089. End If
  12090. Return Me._adapter
  12091. End Get
  12092. End Property
  12093. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12094. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12095. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  12096. Get
  12097. If (Me._connection Is Nothing) Then
  12098. Me.InitConnection
  12099. End If
  12100. Return Me._connection
  12101. End Get
  12102. Set
  12103. Me._connection = value
  12104. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  12105. Me.Adapter.InsertCommand.Connection = value
  12106. End If
  12107. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  12108. Me.Adapter.DeleteCommand.Connection = value
  12109. End If
  12110. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  12111. Me.Adapter.UpdateCommand.Connection = value
  12112. End If
  12113. Dim i As Integer = 0
  12114. Do While (i < Me.CommandCollection.Length)
  12115. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  12116. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  12117. End If
  12118. i = (i + 1)
  12119. Loop
  12120. End Set
  12121. End Property
  12122. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12123. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12124. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  12125. Get
  12126. Return Me._transaction
  12127. End Get
  12128. Set
  12129. Me._transaction = value
  12130. Dim i As Integer = 0
  12131. Do While (i < Me.CommandCollection.Length)
  12132. Me.CommandCollection(i).Transaction = Me._transaction
  12133. i = (i + 1)
  12134. Loop
  12135. If ((Not (Me.Adapter) Is Nothing) _
  12136. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  12137. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  12138. End If
  12139. If ((Not (Me.Adapter) Is Nothing) _
  12140. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  12141. Me.Adapter.InsertCommand.Transaction = Me._transaction
  12142. End If
  12143. If ((Not (Me.Adapter) Is Nothing) _
  12144. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  12145. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  12146. End If
  12147. End Set
  12148. End Property
  12149. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12150. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12151. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  12152. Get
  12153. If (Me._commandCollection Is Nothing) Then
  12154. Me.InitCommandCollection
  12155. End If
  12156. Return Me._commandCollection
  12157. End Get
  12158. End Property
  12159. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12160. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12161. Public Property ClearBeforeFill() As Boolean
  12162. Get
  12163. Return Me._clearBeforeFill
  12164. End Get
  12165. Set
  12166. Me._clearBeforeFill = value
  12167. End Set
  12168. End Property
  12169. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12170. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12171. Private Sub InitAdapter()
  12172. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  12173. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  12174. tableMapping.SourceTable = "Table"
  12175. tableMapping.DataSetTable = "CALRI"
  12176. tableMapping.ColumnMappings.Add("CodCalRi", "CodCalRi")
  12177. tableMapping.ColumnMappings.Add("Descrip", "Descrip")
  12178. Me._adapter.TableMappings.Add(tableMapping)
  12179. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  12180. Me._adapter.DeleteCommand.Connection = Me.Connection
  12181. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[CALRI] WHERE (([CodCalRi] = @Original_CodCalRi) AND ((@IsNull_"& _
  12182. "Descrip = 1 AND [Descrip] IS NULL) OR ([Descrip] = @Original_Descrip)))"
  12183. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  12184. 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, "", "", ""))
  12185. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Descrip", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12186. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12187. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  12188. Me._adapter.InsertCommand.Connection = Me.Connection
  12189. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[CALRI] ([CodCalRi], [Descrip]) VALUES (@CodCalRi, @Descrip);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)& _
  12190. "SELECT CodCalRi, Descrip FROM CALRI WHERE (CodCalRi = @CodCalRi)"
  12191. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  12192. 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, "", "", ""))
  12193. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12194. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  12195. Me._adapter.UpdateCommand.Connection = Me.Connection
  12196. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[CALRI] SET [CodCalRi] = @CodCalRi, [Descrip] = @Descrip WHERE (([Co"& _
  12197. "dCalRi] = @Original_CodCalRi) AND ((@IsNull_Descrip = 1 AND [Descrip] IS NULL) O"& _
  12198. "R ([Descrip] = @Original_Descrip)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodCalRi, Descrip FROM CALRI WHERE "& _
  12199. "(CodCalRi = @CodCalRi)"
  12200. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  12201. 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, "", "", ""))
  12202. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12203. 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, "", "", ""))
  12204. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Descrip", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12205. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12206. End Sub
  12207. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12208. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12209. Private Sub InitConnection()
  12210. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  12211. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  12212. End Sub
  12213. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12214. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12215. Private Sub InitCommandCollection()
  12216. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  12217. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  12218. Me._commandCollection(0).Connection = Me.Connection
  12219. Me._commandCollection(0).CommandText = "SELECT CodCalRi, Descrip FROM dbo.CALRI"
  12220. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  12221. End Sub
  12222. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12223. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12224. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  12225. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  12226. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.CALRIDataTable) As Integer
  12227. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  12228. If (Me.ClearBeforeFill = true) Then
  12229. dataTable.Clear
  12230. End If
  12231. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  12232. Return returnValue
  12233. End Function
  12234. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12235. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12236. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  12237. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  12238. Public Overloads Overridable Function GetData() As InversionesDataSet1.CALRIDataTable
  12239. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  12240. Dim dataTable As InversionesDataSet1.CALRIDataTable = New InversionesDataSet1.CALRIDataTable()
  12241. Me.Adapter.Fill(dataTable)
  12242. Return dataTable
  12243. End Function
  12244. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12245. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12246. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  12247. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.CALRIDataTable) As Integer
  12248. Return Me.Adapter.Update(dataTable)
  12249. End Function
  12250. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12251. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12252. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  12253. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  12254. Return Me.Adapter.Update(dataSet, "CALRI")
  12255. End Function
  12256. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12257. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12258. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  12259. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  12260. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  12261. End Function
  12262. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12263. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12264. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  12265. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  12266. Return Me.Adapter.Update(dataRows)
  12267. End Function
  12268. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12269. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12270. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  12271. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  12272. Public Overloads Overridable Function Delete(ByVal Original_CodCalRi As String, ByVal Original_Descrip As String) As Integer
  12273. If (Original_CodCalRi Is Nothing) Then
  12274. Throw New Global.System.ArgumentNullException("Original_CodCalRi")
  12275. Else
  12276. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodCalRi,String)
  12277. End If
  12278. If (Original_Descrip Is Nothing) Then
  12279. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  12280. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  12281. Else
  12282. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  12283. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Descrip,String)
  12284. End If
  12285. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  12286. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  12287. <> Global.System.Data.ConnectionState.Open) Then
  12288. Me.Adapter.DeleteCommand.Connection.Open
  12289. End If
  12290. Try
  12291. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  12292. Return returnValue
  12293. Finally
  12294. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  12295. Me.Adapter.DeleteCommand.Connection.Close
  12296. End If
  12297. End Try
  12298. End Function
  12299. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12300. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12301. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  12302. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  12303. Public Overloads Overridable Function Insert(ByVal CodCalRi As String, ByVal Descrip As String) As Integer
  12304. If (CodCalRi Is Nothing) Then
  12305. Throw New Global.System.ArgumentNullException("CodCalRi")
  12306. Else
  12307. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodCalRi,String)
  12308. End If
  12309. If (Descrip Is Nothing) Then
  12310. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  12311. Else
  12312. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Descrip,String)
  12313. End If
  12314. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  12315. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  12316. <> Global.System.Data.ConnectionState.Open) Then
  12317. Me.Adapter.InsertCommand.Connection.Open
  12318. End If
  12319. Try
  12320. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  12321. Return returnValue
  12322. Finally
  12323. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  12324. Me.Adapter.InsertCommand.Connection.Close
  12325. End If
  12326. End Try
  12327. End Function
  12328. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12329. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12330. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  12331. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  12332. Public Overloads Overridable Function Update(ByVal CodCalRi As String, ByVal Descrip As String, ByVal Original_CodCalRi As String, ByVal Original_Descrip As String) As Integer
  12333. If (CodCalRi Is Nothing) Then
  12334. Throw New Global.System.ArgumentNullException("CodCalRi")
  12335. Else
  12336. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodCalRi,String)
  12337. End If
  12338. If (Descrip Is Nothing) Then
  12339. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  12340. Else
  12341. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Descrip,String)
  12342. End If
  12343. If (Original_CodCalRi Is Nothing) Then
  12344. Throw New Global.System.ArgumentNullException("Original_CodCalRi")
  12345. Else
  12346. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Original_CodCalRi,String)
  12347. End If
  12348. If (Original_Descrip Is Nothing) Then
  12349. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(1,Object)
  12350. Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
  12351. Else
  12352. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(0,Object)
  12353. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(Original_Descrip,String)
  12354. End If
  12355. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  12356. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  12357. <> Global.System.Data.ConnectionState.Open) Then
  12358. Me.Adapter.UpdateCommand.Connection.Open
  12359. End If
  12360. Try
  12361. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  12362. Return returnValue
  12363. Finally
  12364. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  12365. Me.Adapter.UpdateCommand.Connection.Close
  12366. End If
  12367. End Try
  12368. End Function
  12369. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12370. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12371. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  12372. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  12373. Public Overloads Overridable Function Update(ByVal Descrip As String, ByVal Original_CodCalRi As String, ByVal Original_Descrip As String) As Integer
  12374. Return Me.Update(Original_CodCalRi, Descrip, Original_CodCalRi, Original_Descrip)
  12375. End Function
  12376. End Class
  12377. '''<summary>
  12378. '''Represents the connection and commands used to retrieve and save data.
  12379. '''</summary>
  12380. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  12381. Global.System.ComponentModel.ToolboxItem(true), _
  12382. Global.System.ComponentModel.DataObjectAttribute(true), _
  12383. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  12384. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  12385. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  12386. Partial Public Class RPAGTableAdapter
  12387. Inherits Global.System.ComponentModel.Component
  12388. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  12389. Private _connection As Global.System.Data.SqlClient.SqlConnection
  12390. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  12391. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  12392. Private _clearBeforeFill As Boolean
  12393. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12394. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12395. Public Sub New()
  12396. MyBase.New
  12397. Me.ClearBeforeFill = true
  12398. End Sub
  12399. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12400. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12401. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  12402. Get
  12403. If (Me._adapter Is Nothing) Then
  12404. Me.InitAdapter
  12405. End If
  12406. Return Me._adapter
  12407. End Get
  12408. End Property
  12409. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12410. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12411. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  12412. Get
  12413. If (Me._connection Is Nothing) Then
  12414. Me.InitConnection
  12415. End If
  12416. Return Me._connection
  12417. End Get
  12418. Set
  12419. Me._connection = value
  12420. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  12421. Me.Adapter.InsertCommand.Connection = value
  12422. End If
  12423. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  12424. Me.Adapter.DeleteCommand.Connection = value
  12425. End If
  12426. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  12427. Me.Adapter.UpdateCommand.Connection = value
  12428. End If
  12429. Dim i As Integer = 0
  12430. Do While (i < Me.CommandCollection.Length)
  12431. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  12432. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  12433. End If
  12434. i = (i + 1)
  12435. Loop
  12436. End Set
  12437. End Property
  12438. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12439. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12440. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  12441. Get
  12442. Return Me._transaction
  12443. End Get
  12444. Set
  12445. Me._transaction = value
  12446. Dim i As Integer = 0
  12447. Do While (i < Me.CommandCollection.Length)
  12448. Me.CommandCollection(i).Transaction = Me._transaction
  12449. i = (i + 1)
  12450. Loop
  12451. If ((Not (Me.Adapter) Is Nothing) _
  12452. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  12453. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  12454. End If
  12455. If ((Not (Me.Adapter) Is Nothing) _
  12456. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  12457. Me.Adapter.InsertCommand.Transaction = Me._transaction
  12458. End If
  12459. If ((Not (Me.Adapter) Is Nothing) _
  12460. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  12461. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  12462. End If
  12463. End Set
  12464. End Property
  12465. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12466. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12467. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  12468. Get
  12469. If (Me._commandCollection Is Nothing) Then
  12470. Me.InitCommandCollection
  12471. End If
  12472. Return Me._commandCollection
  12473. End Get
  12474. End Property
  12475. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12476. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12477. Public Property ClearBeforeFill() As Boolean
  12478. Get
  12479. Return Me._clearBeforeFill
  12480. End Get
  12481. Set
  12482. Me._clearBeforeFill = value
  12483. End Set
  12484. End Property
  12485. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12486. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12487. Private Sub InitAdapter()
  12488. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  12489. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  12490. tableMapping.SourceTable = "Table"
  12491. tableMapping.DataSetTable = "RPAG"
  12492. tableMapping.ColumnMappings.Add("RPID", "RPID")
  12493. tableMapping.ColumnMappings.Add("CodInv", "CodInv")
  12494. tableMapping.ColumnMappings.Add("AFavorDe", "AFavorDe")
  12495. tableMapping.ColumnMappings.Add("FormaPagID", "FormaPagID")
  12496. tableMapping.ColumnMappings.Add("MontoPago", "MontoPago")
  12497. tableMapping.ColumnMappings.Add("FechaPago", "FechaPago")
  12498. tableMapping.ColumnMappings.Add("CodBanco", "CodBanco")
  12499. tableMapping.ColumnMappings.Add("NumCuenta", "NumCuenta")
  12500. tableMapping.ColumnMappings.Add("SaldoContable", "SaldoContable")
  12501. tableMapping.ColumnMappings.Add("Concepto", "Concepto")
  12502. tableMapping.ColumnMappings.Add("UCodigo", "UCodigo")
  12503. Me._adapter.TableMappings.Add(tableMapping)
  12504. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  12505. Me._adapter.DeleteCommand.Connection = Me.Connection
  12506. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [RPAG] WHERE (([RPID] = @Original_RPID) AND ((@IsNull_CodInv = 1 AND "& _
  12507. "[CodInv] IS NULL) OR ([CodInv] = @Original_CodInv)) AND ((@IsNull_AFavorDe = 1 A"& _
  12508. "ND [AFavorDe] IS NULL) OR ([AFavorDe] = @Original_AFavorDe)) AND ((@IsNull_Forma"& _
  12509. "PagID = 1 AND [FormaPagID] IS NULL) OR ([FormaPagID] = @Original_FormaPagID)) AN"& _
  12510. "D ((@IsNull_MontoPago = 1 AND [MontoPago] IS NULL) OR ([MontoPago] = @Original_M"& _
  12511. "ontoPago)) AND ((@IsNull_FechaPago = 1 AND [FechaPago] IS NULL) OR ([FechaPago] "& _
  12512. "= @Original_FechaPago)) AND ((@IsNull_CodBanco = 1 AND [CodBanco] IS NULL) OR (["& _
  12513. "CodBanco] = @Original_CodBanco)) AND ((@IsNull_NumCuenta = 1 AND [NumCuenta] IS "& _
  12514. "NULL) OR ([NumCuenta] = @Original_NumCuenta)) AND ((@IsNull_SaldoContable = 1 AN"& _
  12515. "D [SaldoContable] IS NULL) OR ([SaldoContable] = @Original_SaldoContable)) AND ("& _
  12516. "(@IsNull_Concepto = 1 AND [Concepto] IS NULL) OR ([Concepto] = @Original_Concept"& _
  12517. "o)) AND ((@IsNull_UCodigo = 1 AND [UCodigo] IS NULL) OR ([UCodigo] = @Original_U"& _
  12518. "Codigo)))"
  12519. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  12520. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_RPID", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "RPID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12521. 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, "", "", ""))
  12522. 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, "", "", ""))
  12523. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_AFavorDe", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "AFavorDe", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12524. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_AFavorDe", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "AFavorDe", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12525. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_FormaPagID", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FormaPagID", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12526. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_FormaPagID", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FormaPagID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12527. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_MontoPago", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "MontoPago", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12528. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_MontoPago", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 2, "MontoPago", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12529. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_FechaPago", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FechaPago", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12530. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_FechaPago", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FechaPago", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12531. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodBanco", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12532. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodBanco", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12533. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_NumCuenta", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "NumCuenta", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12534. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_NumCuenta", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "NumCuenta", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12535. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_SaldoContable", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "SaldoContable", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12536. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_SaldoContable", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "SaldoContable", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12537. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Concepto", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Concepto", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12538. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Concepto", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Concepto", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12539. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_UCodigo", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "UCodigo", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12540. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_UCodigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "UCodigo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12541. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  12542. Me._adapter.InsertCommand.Connection = Me.Connection
  12543. Me._adapter.InsertCommand.CommandText = "INSERT INTO RPAG"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" (CodInv, AFavorDe, FormaPagID, MontoPa"& _
  12544. "go, FechaPago, CodBanco, NumCuenta, SaldoContable, Concepto, UCodigo)"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"VALUES "& _
  12545. " (@CodInv,@AFavorDe,@FormaPagID,@MontoPago,@FechaPago,@CodBanco,@NumCuenta,@"& _
  12546. "SaldoContable,@Concepto,@UCodigo); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT RPID, CodInv, AFavorDe, FormaPagID, "& _
  12547. "MontoPago, FechaPago, CodBanco, NumCuenta, SaldoContable, Concepto, UCodigo FROM"& _
  12548. " RPAG WHERE (RPID = SCOPE_IDENTITY())"
  12549. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  12550. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodInv", Global.System.Data.SqlDbType.VarChar, 20, Global.System.Data.ParameterDirection.Input, 0, 0, "CodInv", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12551. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@AFavorDe", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "AFavorDe", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12552. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@FormaPagID", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "FormaPagID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12553. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@MontoPago", Global.System.Data.SqlDbType.[Decimal], 9, Global.System.Data.ParameterDirection.Input, 18, 2, "MontoPago", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12554. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@FechaPago", Global.System.Data.SqlDbType.DateTime, 8, Global.System.Data.ParameterDirection.Input, 0, 0, "FechaPago", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12555. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodBanco", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12556. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@NumCuenta", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "NumCuenta", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12557. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SaldoContable", Global.System.Data.SqlDbType.[Decimal], 9, Global.System.Data.ParameterDirection.Input, 18, 6, "SaldoContable", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12558. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Concepto", Global.System.Data.SqlDbType.VarChar, 254, Global.System.Data.ParameterDirection.Input, 0, 0, "Concepto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12559. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@UCodigo", Global.System.Data.SqlDbType.VarChar, 10, Global.System.Data.ParameterDirection.Input, 0, 0, "UCodigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12560. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  12561. Me._adapter.UpdateCommand.Connection = Me.Connection
  12562. Me._adapter.UpdateCommand.CommandText = "UPDATE [RPAG] SET [CodInv] = @CodInv, [AFavorDe] = @AFavorDe, [FormaPagID] = @For"& _
  12563. "maPagID, [MontoPago] = @MontoPago, [FechaPago] = @FechaPago, [CodBanco] = @CodBa"& _
  12564. "nco, [NumCuenta] = @NumCuenta, [SaldoContable] = @SaldoContable, [Concepto] = @C"& _
  12565. "oncepto, [UCodigo] = @UCodigo WHERE (([RPID] = @Original_RPID) AND ((@IsNull_Cod"& _
  12566. "Inv = 1 AND [CodInv] IS NULL) OR ([CodInv] = @Original_CodInv)) AND ((@IsNull_AF"& _
  12567. "avorDe = 1 AND [AFavorDe] IS NULL) OR ([AFavorDe] = @Original_AFavorDe)) AND ((@"& _
  12568. "IsNull_FormaPagID = 1 AND [FormaPagID] IS NULL) OR ([FormaPagID] = @Original_For"& _
  12569. "maPagID)) AND ((@IsNull_MontoPago = 1 AND [MontoPago] IS NULL) OR ([MontoPago] ="& _
  12570. " @Original_MontoPago)) AND ((@IsNull_FechaPago = 1 AND [FechaPago] IS NULL) OR ("& _
  12571. "[FechaPago] = @Original_FechaPago)) AND ((@IsNull_CodBanco = 1 AND [CodBanco] IS"& _
  12572. " NULL) OR ([CodBanco] = @Original_CodBanco)) AND ((@IsNull_NumCuenta = 1 AND [Nu"& _
  12573. "mCuenta] IS NULL) OR ([NumCuenta] = @Original_NumCuenta)) AND ((@IsNull_SaldoCon"& _
  12574. "table = 1 AND [SaldoContable] IS NULL) OR ([SaldoContable] = @Original_SaldoCont"& _
  12575. "able)) AND ((@IsNull_Concepto = 1 AND [Concepto] IS NULL) OR ([Concepto] = @Orig"& _
  12576. "inal_Concepto)) AND ((@IsNull_UCodigo = 1 AND [UCodigo] IS NULL) OR ([UCodigo] ="& _
  12577. " @Original_UCodigo)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT RPID, CodInv, AFavorDe, FormaPagID, MontoPago, Fe"& _
  12578. "chaPago, CodBanco, NumCuenta, SaldoContable, Concepto, UCodigo FROM RPAG WHERE ("& _
  12579. "RPID = @RPID)"
  12580. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  12581. 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, "", "", ""))
  12582. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@AFavorDe", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "AFavorDe", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12583. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@FormaPagID", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FormaPagID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12584. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@MontoPago", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 2, "MontoPago", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12585. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@FechaPago", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FechaPago", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12586. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@CodBanco", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12587. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@NumCuenta", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "NumCuenta", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12588. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SaldoContable", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "SaldoContable", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12589. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Concepto", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Concepto", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12590. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@UCodigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "UCodigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12591. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_RPID", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "RPID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12592. 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, "", "", ""))
  12593. 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, "", "", ""))
  12594. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_AFavorDe", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "AFavorDe", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12595. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_AFavorDe", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "AFavorDe", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12596. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_FormaPagID", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FormaPagID", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12597. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_FormaPagID", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FormaPagID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12598. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_MontoPago", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "MontoPago", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12599. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_MontoPago", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 2, "MontoPago", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12600. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_FechaPago", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FechaPago", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12601. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_FechaPago", Global.System.Data.SqlDbType.DateTime, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "FechaPago", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12602. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_CodBanco", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12603. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_CodBanco", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "CodBanco", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12604. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_NumCuenta", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "NumCuenta", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12605. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_NumCuenta", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "NumCuenta", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12606. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_SaldoContable", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "SaldoContable", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12607. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_SaldoContable", Global.System.Data.SqlDbType.[Decimal], 0, Global.System.Data.ParameterDirection.Input, 18, 6, "SaldoContable", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12608. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Concepto", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Concepto", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12609. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Concepto", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Concepto", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12610. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_UCodigo", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "UCodigo", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  12611. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_UCodigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "UCodigo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  12612. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@RPID", Global.System.Data.SqlDbType.Int, 4, Global.System.Data.ParameterDirection.Input, 0, 0, "RPID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  12613. End Sub
  12614. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12615. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12616. Private Sub InitConnection()
  12617. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  12618. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  12619. End Sub
  12620. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12621. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  12622. Private Sub InitCommandCollection()
  12623. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  12624. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  12625. Me._commandCollection(0).Connection = Me.Connection
  12626. Me._commandCollection(0).CommandText = "SELECT RPID, CodInv, AFavorDe, FormaPagID, MontoPago, FechaPago, CodBanco,"& _
  12627. " NumCuenta, SaldoContable, Concepto, UCodigo"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM RPAG"
  12628. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  12629. End Sub
  12630. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12631. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12632. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  12633. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  12634. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.RPAGDataTable) As Integer
  12635. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  12636. If (Me.ClearBeforeFill = true) Then
  12637. dataTable.Clear
  12638. End If
  12639. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  12640. Return returnValue
  12641. End Function
  12642. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12643. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12644. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  12645. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  12646. Public Overloads Overridable Function GetData() As InversionesDataSet1.RPAGDataTable
  12647. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  12648. Dim dataTable As InversionesDataSet1.RPAGDataTable = New InversionesDataSet1.RPAGDataTable()
  12649. Me.Adapter.Fill(dataTable)
  12650. Return dataTable
  12651. End Function
  12652. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12653. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12654. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  12655. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.RPAGDataTable) As Integer
  12656. Return Me.Adapter.Update(dataTable)
  12657. End Function
  12658. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12659. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12660. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  12661. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  12662. Return Me.Adapter.Update(dataSet, "RPAG")
  12663. End Function
  12664. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12665. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12666. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  12667. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  12668. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  12669. End Function
  12670. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12671. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12672. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  12673. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  12674. Return Me.Adapter.Update(dataRows)
  12675. End Function
  12676. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12677. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12678. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  12679. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  12680. Public Overloads Overridable Function Delete(ByVal Original_RPID As Integer, ByVal Original_CodInv As String, ByVal Original_AFavorDe As String, ByVal Original_FormaPagID As String, ByVal Original_MontoPago As Global.System.Nullable(Of Decimal), ByVal Original_FechaPago As Global.System.Nullable(Of Date), ByVal Original_CodBanco As String, ByVal Original_NumCuenta As String, ByVal Original_SaldoContable As Global.System.Nullable(Of Decimal), ByVal Original_Concepto As String, ByVal Original_UCodigo As String) As Integer
  12681. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_RPID,Integer)
  12682. If (Original_CodInv Is Nothing) Then
  12683. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  12684. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  12685. Else
  12686. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  12687. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_CodInv,String)
  12688. End If
  12689. If (Original_AFavorDe Is Nothing) Then
  12690. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
  12691. Me.Adapter.DeleteCommand.Parameters(4).Value = Global.System.DBNull.Value
  12692. Else
  12693. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
  12694. Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_AFavorDe,String)
  12695. End If
  12696. If (Original_FormaPagID Is Nothing) Then
  12697. Me.Adapter.DeleteCommand.Parameters(5).Value = CType(1,Object)
  12698. Me.Adapter.DeleteCommand.Parameters(6).Value = Global.System.DBNull.Value
  12699. Else
  12700. Me.Adapter.DeleteCommand.Parameters(5).Value = CType(0,Object)
  12701. Me.Adapter.DeleteCommand.Parameters(6).Value = CType(Original_FormaPagID,String)
  12702. End If
  12703. If (Original_MontoPago.HasValue = true) Then
  12704. Me.Adapter.DeleteCommand.Parameters(7).Value = CType(0,Object)
  12705. Me.Adapter.DeleteCommand.Parameters(8).Value = CType(Original_MontoPago.Value,Decimal)
  12706. Else
  12707. Me.Adapter.DeleteCommand.Parameters(7).Value = CType(1,Object)
  12708. Me.Adapter.DeleteCommand.Parameters(8).Value = Global.System.DBNull.Value
  12709. End If
  12710. If (Original_FechaPago.HasValue = true) Then
  12711. Me.Adapter.DeleteCommand.Parameters(9).Value = CType(0,Object)
  12712. Me.Adapter.DeleteCommand.Parameters(10).Value = CType(Original_FechaPago.Value,Date)
  12713. Else
  12714. Me.Adapter.DeleteCommand.Parameters(9).Value = CType(1,Object)
  12715. Me.Adapter.DeleteCommand.Parameters(10).Value = Global.System.DBNull.Value
  12716. End If
  12717. If (Original_CodBanco Is Nothing) Then
  12718. Me.Adapter.DeleteCommand.Parameters(11).Value = CType(1,Object)
  12719. Me.Adapter.DeleteCommand.Parameters(12).Value = Global.System.DBNull.Value
  12720. Else
  12721. Me.Adapter.DeleteCommand.Parameters(11).Value = CType(0,Object)
  12722. Me.Adapter.DeleteCommand.Parameters(12).Value = CType(Original_CodBanco,String)
  12723. End If
  12724. If (Original_NumCuenta Is Nothing) Then
  12725. Me.Adapter.DeleteCommand.Parameters(13).Value = CType(1,Object)
  12726. Me.Adapter.DeleteCommand.Parameters(14).Value = Global.System.DBNull.Value
  12727. Else
  12728. Me.Adapter.DeleteCommand.Parameters(13).Value = CType(0,Object)
  12729. Me.Adapter.DeleteCommand.Parameters(14).Value = CType(Original_NumCuenta,String)
  12730. End If
  12731. If (Original_SaldoContable.HasValue = true) Then
  12732. Me.Adapter.DeleteCommand.Parameters(15).Value = CType(0,Object)
  12733. Me.Adapter.DeleteCommand.Parameters(16).Value = CType(Original_SaldoContable.Value,Decimal)
  12734. Else
  12735. Me.Adapter.DeleteCommand.Parameters(15).Value = CType(1,Object)
  12736. Me.Adapter.DeleteCommand.Parameters(16).Value = Global.System.DBNull.Value
  12737. End If
  12738. If (Original_Concepto Is Nothing) Then
  12739. Me.Adapter.DeleteCommand.Parameters(17).Value = CType(1,Object)
  12740. Me.Adapter.DeleteCommand.Parameters(18).Value = Global.System.DBNull.Value
  12741. Else
  12742. Me.Adapter.DeleteCommand.Parameters(17).Value = CType(0,Object)
  12743. Me.Adapter.DeleteCommand.Parameters(18).Value = CType(Original_Concepto,String)
  12744. End If
  12745. If (Original_UCodigo Is Nothing) Then
  12746. Me.Adapter.DeleteCommand.Parameters(19).Value = CType(1,Object)
  12747. Me.Adapter.DeleteCommand.Parameters(20).Value = Global.System.DBNull.Value
  12748. Else
  12749. Me.Adapter.DeleteCommand.Parameters(19).Value = CType(0,Object)
  12750. Me.Adapter.DeleteCommand.Parameters(20).Value = CType(Original_UCodigo,String)
  12751. End If
  12752. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  12753. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  12754. <> Global.System.Data.ConnectionState.Open) Then
  12755. Me.Adapter.DeleteCommand.Connection.Open
  12756. End If
  12757. Try
  12758. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  12759. Return returnValue
  12760. Finally
  12761. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  12762. Me.Adapter.DeleteCommand.Connection.Close
  12763. End If
  12764. End Try
  12765. End Function
  12766. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12767. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12768. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  12769. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  12770. Public Overloads Overridable Function Insert(ByVal CodInv As String, ByVal AFavorDe As String, ByVal FormaPagID As String, ByVal MontoPago As Global.System.Nullable(Of Decimal), ByVal FechaPago As Global.System.Nullable(Of Date), ByVal CodBanco As String, ByVal NumCuenta As String, ByVal SaldoContable As Global.System.Nullable(Of Decimal), ByVal Concepto As String, ByVal UCodigo As String) As Integer
  12771. If (CodInv Is Nothing) Then
  12772. Me.Adapter.InsertCommand.Parameters(0).Value = Global.System.DBNull.Value
  12773. Else
  12774. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodInv,String)
  12775. End If
  12776. If (AFavorDe Is Nothing) Then
  12777. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  12778. Else
  12779. Me.Adapter.InsertCommand.Parameters(1).Value = CType(AFavorDe,String)
  12780. End If
  12781. If (FormaPagID Is Nothing) Then
  12782. Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
  12783. Else
  12784. Me.Adapter.InsertCommand.Parameters(2).Value = CType(FormaPagID,String)
  12785. End If
  12786. If (MontoPago.HasValue = true) Then
  12787. Me.Adapter.InsertCommand.Parameters(3).Value = CType(MontoPago.Value,Decimal)
  12788. Else
  12789. Me.Adapter.InsertCommand.Parameters(3).Value = Global.System.DBNull.Value
  12790. End If
  12791. If (FechaPago.HasValue = true) Then
  12792. Me.Adapter.InsertCommand.Parameters(4).Value = CType(FechaPago.Value,Date)
  12793. Else
  12794. Me.Adapter.InsertCommand.Parameters(4).Value = Global.System.DBNull.Value
  12795. End If
  12796. If (CodBanco Is Nothing) Then
  12797. Me.Adapter.InsertCommand.Parameters(5).Value = Global.System.DBNull.Value
  12798. Else
  12799. Me.Adapter.InsertCommand.Parameters(5).Value = CType(CodBanco,String)
  12800. End If
  12801. If (NumCuenta Is Nothing) Then
  12802. Me.Adapter.InsertCommand.Parameters(6).Value = Global.System.DBNull.Value
  12803. Else
  12804. Me.Adapter.InsertCommand.Parameters(6).Value = CType(NumCuenta,String)
  12805. End If
  12806. If (SaldoContable.HasValue = true) Then
  12807. Me.Adapter.InsertCommand.Parameters(7).Value = CType(SaldoContable.Value,Decimal)
  12808. Else
  12809. Me.Adapter.InsertCommand.Parameters(7).Value = Global.System.DBNull.Value
  12810. End If
  12811. If (Concepto Is Nothing) Then
  12812. Me.Adapter.InsertCommand.Parameters(8).Value = Global.System.DBNull.Value
  12813. Else
  12814. Me.Adapter.InsertCommand.Parameters(8).Value = CType(Concepto,String)
  12815. End If
  12816. If (UCodigo Is Nothing) Then
  12817. Me.Adapter.InsertCommand.Parameters(9).Value = Global.System.DBNull.Value
  12818. Else
  12819. Me.Adapter.InsertCommand.Parameters(9).Value = CType(UCodigo,String)
  12820. End If
  12821. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  12822. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  12823. <> Global.System.Data.ConnectionState.Open) Then
  12824. Me.Adapter.InsertCommand.Connection.Open
  12825. End If
  12826. Try
  12827. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  12828. Return returnValue
  12829. Finally
  12830. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  12831. Me.Adapter.InsertCommand.Connection.Close
  12832. End If
  12833. End Try
  12834. End Function
  12835. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12836. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  12837. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  12838. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  12839. Public Overloads Overridable Function Update( _
  12840. ByVal CodInv As String, _
  12841. ByVal AFavorDe As String, _
  12842. ByVal FormaPagID As String, _
  12843. ByVal MontoPago As Global.System.Nullable(Of Decimal), _
  12844. ByVal FechaPago As Global.System.Nullable(Of Date), _
  12845. ByVal CodBanco As String, _
  12846. ByVal NumCuenta As String, _
  12847. ByVal SaldoContable As Global.System.Nullable(Of Decimal), _
  12848. ByVal Concepto As String, _
  12849. ByVal UCodigo As String, _
  12850. ByVal Original_RPID As Integer, _
  12851. ByVal Original_CodInv As String, _
  12852. ByVal Original_AFavorDe As String, _
  12853. ByVal Original_FormaPagID As String, _
  12854. ByVal Original_MontoPago As Global.System.Nullable(Of Decimal), _
  12855. ByVal Original_FechaPago As Global.System.Nullable(Of Date), _
  12856. ByVal Original_CodBanco As String, _
  12857. ByVal Original_NumCuenta As String, _
  12858. ByVal Original_SaldoContable As Global.System.Nullable(Of Decimal), _
  12859. ByVal Original_Concepto As String, _
  12860. ByVal Original_UCodigo As String, _
  12861. ByVal RPID As Integer) As Integer
  12862. If (CodInv Is Nothing) Then
  12863. Me.Adapter.UpdateCommand.Parameters(0).Value = Global.System.DBNull.Value
  12864. Else
  12865. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodInv,String)
  12866. End If
  12867. If (AFavorDe Is Nothing) Then
  12868. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  12869. Else
  12870. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(AFavorDe,String)
  12871. End If
  12872. If (FormaPagID Is Nothing) Then
  12873. Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
  12874. Else
  12875. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(FormaPagID,String)
  12876. End If
  12877. If (MontoPago.HasValue = true) Then
  12878. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(MontoPago.Value,Decimal)
  12879. Else
  12880. Me.Adapter.UpdateCommand.Parameters(3).Value = Global.System.DBNull.Value
  12881. End If
  12882. If (FechaPago.HasValue = true) Then
  12883. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(FechaPago.Value,Date)
  12884. Else
  12885. Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
  12886. End If
  12887. If (CodBanco Is Nothing) Then
  12888. Me.Adapter.UpdateCommand.Parameters(5).Value = Global.System.DBNull.Value
  12889. Else
  12890. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(CodBanco,String)
  12891. End If
  12892. If (NumCuenta Is Nothing) Then
  12893. Me.Adapter.UpdateCommand.Parameters(6).Value = Global.System.DBNull.Value
  12894. Else
  12895. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(NumCuenta,String)
  12896. End If
  12897. If (SaldoContable.HasValue = true) Then
  12898. Me.Adapter.UpdateCommand.Parameters(7).Value = CType(SaldoContable.Value,Decimal)
  12899. Else
  12900. Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
  12901. End If
  12902. If (Concepto Is Nothing) Then
  12903. Me.Adapter.UpdateCommand.Parameters(8).Value = Global.System.DBNull.Value
  12904. Else
  12905. Me.Adapter.UpdateCommand.Parameters(8).Value = CType(Concepto,String)
  12906. End If
  12907. If (UCodigo Is Nothing) Then
  12908. Me.Adapter.UpdateCommand.Parameters(9).Value = Global.System.DBNull.Value
  12909. Else
  12910. Me.Adapter.UpdateCommand.Parameters(9).Value = CType(UCodigo,String)
  12911. End If
  12912. Me.Adapter.UpdateCommand.Parameters(10).Value = CType(Original_RPID,Integer)
  12913. If (Original_CodInv Is Nothing) Then
  12914. Me.Adapter.UpdateCommand.Parameters(11).Value = CType(1,Object)
  12915. Me.Adapter.UpdateCommand.Parameters(12).Value = Global.System.DBNull.Value
  12916. Else
  12917. Me.Adapter.UpdateCommand.Parameters(11).Value = CType(0,Object)
  12918. Me.Adapter.UpdateCommand.Parameters(12).Value = CType(Original_CodInv,String)
  12919. End If
  12920. If (Original_AFavorDe Is Nothing) Then
  12921. Me.Adapter.UpdateCommand.Parameters(13).Value = CType(1,Object)
  12922. Me.Adapter.UpdateCommand.Parameters(14).Value = Global.System.DBNull.Value
  12923. Else
  12924. Me.Adapter.UpdateCommand.Parameters(13).Value = CType(0,Object)
  12925. Me.Adapter.UpdateCommand.Parameters(14).Value = CType(Original_AFavorDe,String)
  12926. End If
  12927. If (Original_FormaPagID Is Nothing) Then
  12928. Me.Adapter.UpdateCommand.Parameters(15).Value = CType(1,Object)
  12929. Me.Adapter.UpdateCommand.Parameters(16).Value = Global.System.DBNull.Value
  12930. Else
  12931. Me.Adapter.UpdateCommand.Parameters(15).Value = CType(0,Object)
  12932. Me.Adapter.UpdateCommand.Parameters(16).Value = CType(Original_FormaPagID,String)
  12933. End If
  12934. If (Original_MontoPago.HasValue = true) Then
  12935. Me.Adapter.UpdateCommand.Parameters(17).Value = CType(0,Object)
  12936. Me.Adapter.UpdateCommand.Parameters(18).Value = CType(Original_MontoPago.Value,Decimal)
  12937. Else
  12938. Me.Adapter.UpdateCommand.Parameters(17).Value = CType(1,Object)
  12939. Me.Adapter.UpdateCommand.Parameters(18).Value = Global.System.DBNull.Value
  12940. End If
  12941. If (Original_FechaPago.HasValue = true) Then
  12942. Me.Adapter.UpdateCommand.Parameters(19).Value = CType(0,Object)
  12943. Me.Adapter.UpdateCommand.Parameters(20).Value = CType(Original_FechaPago.Value,Date)
  12944. Else
  12945. Me.Adapter.UpdateCommand.Parameters(19).Value = CType(1,Object)
  12946. Me.Adapter.UpdateCommand.Parameters(20).Value = Global.System.DBNull.Value
  12947. End If
  12948. If (Original_CodBanco Is Nothing) Then
  12949. Me.Adapter.UpdateCommand.Parameters(21).Value = CType(1,Object)
  12950. Me.Adapter.UpdateCommand.Parameters(22).Value = Global.System.DBNull.Value
  12951. Else
  12952. Me.Adapter.UpdateCommand.Parameters(21).Value = CType(0,Object)
  12953. Me.Adapter.UpdateCommand.Parameters(22).Value = CType(Original_CodBanco,String)
  12954. End If
  12955. If (Original_NumCuenta Is Nothing) Then
  12956. Me.Adapter.UpdateCommand.Parameters(23).Value = CType(1,Object)
  12957. Me.Adapter.UpdateCommand.Parameters(24).Value = Global.System.DBNull.Value
  12958. Else
  12959. Me.Adapter.UpdateCommand.Parameters(23).Value = CType(0,Object)
  12960. Me.Adapter.UpdateCommand.Parameters(24).Value = CType(Original_NumCuenta,String)
  12961. End If
  12962. If (Original_SaldoContable.HasValue = true) Then
  12963. Me.Adapter.UpdateCommand.Parameters(25).Value = CType(0,Object)
  12964. Me.Adapter.UpdateCommand.Parameters(26).Value = CType(Original_SaldoContable.Value,Decimal)
  12965. Else
  12966. Me.Adapter.UpdateCommand.Parameters(25).Value = CType(1,Object)
  12967. Me.Adapter.UpdateCommand.Parameters(26).Value = Global.System.DBNull.Value
  12968. End If
  12969. If (Original_Concepto Is Nothing) Then
  12970. Me.Adapter.UpdateCommand.Parameters(27).Value = CType(1,Object)
  12971. Me.Adapter.UpdateCommand.Parameters(28).Value = Global.System.DBNull.Value
  12972. Else
  12973. Me.Adapter.UpdateCommand.Parameters(27).Value = CType(0,Object)
  12974. Me.Adapter.UpdateCommand.Parameters(28).Value = CType(Original_Concepto,String)
  12975. End If
  12976. If (Original_UCodigo Is Nothing) Then
  12977. Me.Adapter.UpdateCommand.Parameters(29).Value = CType(1,Object)
  12978. Me.Adapter.UpdateCommand.Parameters(30).Value = Global.System.DBNull.Value
  12979. Else
  12980. Me.Adapter.UpdateCommand.Parameters(29).Value = CType(0,Object)
  12981. Me.Adapter.UpdateCommand.Parameters(30).Value = CType(Original_UCodigo,String)
  12982. End If
  12983. Me.Adapter.UpdateCommand.Parameters(31).Value = CType(RPID,Integer)
  12984. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  12985. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  12986. <> Global.System.Data.ConnectionState.Open) Then
  12987. Me.Adapter.UpdateCommand.Connection.Open
  12988. End If
  12989. Try
  12990. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  12991. Return returnValue
  12992. Finally
  12993. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  12994. Me.Adapter.UpdateCommand.Connection.Close
  12995. End If
  12996. End Try
  12997. End Function
  12998. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  12999. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13000. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13001. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  13002. Public Overloads Overridable Function Update( _
  13003. ByVal CodInv As String, _
  13004. ByVal AFavorDe As String, _
  13005. ByVal FormaPagID As String, _
  13006. ByVal MontoPago As Global.System.Nullable(Of Decimal), _
  13007. ByVal FechaPago As Global.System.Nullable(Of Date), _
  13008. ByVal CodBanco As String, _
  13009. ByVal NumCuenta As String, _
  13010. ByVal SaldoContable As Global.System.Nullable(Of Decimal), _
  13011. ByVal Concepto As String, _
  13012. ByVal UCodigo As String, _
  13013. ByVal Original_RPID As Integer, _
  13014. ByVal Original_CodInv As String, _
  13015. ByVal Original_AFavorDe As String, _
  13016. ByVal Original_FormaPagID As String, _
  13017. ByVal Original_MontoPago As Global.System.Nullable(Of Decimal), _
  13018. ByVal Original_FechaPago As Global.System.Nullable(Of Date), _
  13019. ByVal Original_CodBanco As String, _
  13020. ByVal Original_NumCuenta As String, _
  13021. ByVal Original_SaldoContable As Global.System.Nullable(Of Decimal), _
  13022. ByVal Original_Concepto As String, _
  13023. ByVal Original_UCodigo As String) As Integer
  13024. Return Me.Update(CodInv, AFavorDe, FormaPagID, MontoPago, FechaPago, CodBanco, NumCuenta, SaldoContable, Concepto, UCodigo, Original_RPID, Original_CodInv, Original_AFavorDe, Original_FormaPagID, Original_MontoPago, Original_FechaPago, Original_CodBanco, Original_NumCuenta, Original_SaldoContable, Original_Concepto, Original_UCodigo, Original_RPID)
  13025. End Function
  13026. End Class
  13027. '''<summary>
  13028. '''Represents the connection and commands used to retrieve and save data.
  13029. '''</summary>
  13030. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  13031. Global.System.ComponentModel.ToolboxItem(true), _
  13032. Global.System.ComponentModel.DataObjectAttribute(true), _
  13033. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  13034. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  13035. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13036. Partial Public Class BAN2TableAdapter
  13037. Inherits Global.System.ComponentModel.Component
  13038. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  13039. Private _connection As Global.System.Data.SqlClient.SqlConnection
  13040. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  13041. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  13042. Private _clearBeforeFill As Boolean
  13043. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13044. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13045. Public Sub New()
  13046. MyBase.New
  13047. Me.ClearBeforeFill = true
  13048. End Sub
  13049. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13050. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13051. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  13052. Get
  13053. If (Me._adapter Is Nothing) Then
  13054. Me.InitAdapter
  13055. End If
  13056. Return Me._adapter
  13057. End Get
  13058. End Property
  13059. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13060. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13061. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  13062. Get
  13063. If (Me._connection Is Nothing) Then
  13064. Me.InitConnection
  13065. End If
  13066. Return Me._connection
  13067. End Get
  13068. Set
  13069. Me._connection = value
  13070. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  13071. Me.Adapter.InsertCommand.Connection = value
  13072. End If
  13073. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  13074. Me.Adapter.DeleteCommand.Connection = value
  13075. End If
  13076. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  13077. Me.Adapter.UpdateCommand.Connection = value
  13078. End If
  13079. Dim i As Integer = 0
  13080. Do While (i < Me.CommandCollection.Length)
  13081. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  13082. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  13083. End If
  13084. i = (i + 1)
  13085. Loop
  13086. End Set
  13087. End Property
  13088. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13089. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13090. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  13091. Get
  13092. Return Me._transaction
  13093. End Get
  13094. Set
  13095. Me._transaction = value
  13096. Dim i As Integer = 0
  13097. Do While (i < Me.CommandCollection.Length)
  13098. Me.CommandCollection(i).Transaction = Me._transaction
  13099. i = (i + 1)
  13100. Loop
  13101. If ((Not (Me.Adapter) Is Nothing) _
  13102. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  13103. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  13104. End If
  13105. If ((Not (Me.Adapter) Is Nothing) _
  13106. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  13107. Me.Adapter.InsertCommand.Transaction = Me._transaction
  13108. End If
  13109. If ((Not (Me.Adapter) Is Nothing) _
  13110. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  13111. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  13112. End If
  13113. End Set
  13114. End Property
  13115. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13116. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13117. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  13118. Get
  13119. If (Me._commandCollection Is Nothing) Then
  13120. Me.InitCommandCollection
  13121. End If
  13122. Return Me._commandCollection
  13123. End Get
  13124. End Property
  13125. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13126. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13127. Public Property ClearBeforeFill() As Boolean
  13128. Get
  13129. Return Me._clearBeforeFill
  13130. End Get
  13131. Set
  13132. Me._clearBeforeFill = value
  13133. End Set
  13134. End Property
  13135. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13136. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13137. Private Sub InitAdapter()
  13138. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  13139. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  13140. tableMapping.SourceTable = "Table"
  13141. tableMapping.DataSetTable = "BAN2"
  13142. tableMapping.ColumnMappings.Add("Codigo", "Codigo")
  13143. tableMapping.ColumnMappings.Add("Nombre", "Nombre")
  13144. Me._adapter.TableMappings.Add(tableMapping)
  13145. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  13146. Me._adapter.DeleteCommand.Connection = Me.Connection
  13147. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[BAN2] WHERE (([Codigo] = @Original_Codigo) AND ((@IsNull_Nombr"& _
  13148. "e = 1 AND [Nombre] IS NULL) OR ([Nombre] = @Original_Nombre)))"
  13149. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  13150. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Codigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Codigo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  13151. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Nombre", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Nombre", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  13152. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Nombre", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Nombre", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  13153. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  13154. Me._adapter.InsertCommand.Connection = Me.Connection
  13155. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[BAN2] ([Codigo], [Nombre]) VALUES (@Codigo, @Nombre);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT "& _
  13156. "Codigo, Nombre FROM BAN2 WHERE (Codigo = @Codigo)"
  13157. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  13158. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Codigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Codigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  13159. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Nombre", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Nombre", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  13160. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  13161. Me._adapter.UpdateCommand.Connection = Me.Connection
  13162. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[BAN2] SET [Codigo] = @Codigo, [Nombre] = @Nombre WHERE (([Codigo] ="& _
  13163. " @Original_Codigo) AND ((@IsNull_Nombre = 1 AND [Nombre] IS NULL) OR ([Nombre] ="& _
  13164. " @Original_Nombre)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT Codigo, Nombre FROM BAN2 WHERE (Codigo = @Codigo)"
  13165. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  13166. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Codigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Codigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  13167. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Nombre", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Nombre", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  13168. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Codigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Codigo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  13169. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Nombre", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Nombre", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  13170. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Nombre", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Nombre", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  13171. End Sub
  13172. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13173. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13174. Private Sub InitConnection()
  13175. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  13176. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  13177. End Sub
  13178. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13179. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13180. Private Sub InitCommandCollection()
  13181. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  13182. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  13183. Me._commandCollection(0).Connection = Me.Connection
  13184. Me._commandCollection(0).CommandText = "SELECT Codigo, Nombre FROM dbo.BAN2"
  13185. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  13186. End Sub
  13187. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13188. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13189. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13190. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  13191. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.BAN2DataTable) As Integer
  13192. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  13193. If (Me.ClearBeforeFill = true) Then
  13194. dataTable.Clear
  13195. End If
  13196. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  13197. Return returnValue
  13198. End Function
  13199. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13200. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13201. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13202. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  13203. Public Overloads Overridable Function GetData() As InversionesDataSet1.BAN2DataTable
  13204. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  13205. Dim dataTable As InversionesDataSet1.BAN2DataTable = New InversionesDataSet1.BAN2DataTable()
  13206. Me.Adapter.Fill(dataTable)
  13207. Return dataTable
  13208. End Function
  13209. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13210. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13211. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13212. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.BAN2DataTable) As Integer
  13213. Return Me.Adapter.Update(dataTable)
  13214. End Function
  13215. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13216. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13217. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13218. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  13219. Return Me.Adapter.Update(dataSet, "BAN2")
  13220. End Function
  13221. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13222. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13223. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13224. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  13225. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  13226. End Function
  13227. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13228. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13229. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13230. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  13231. Return Me.Adapter.Update(dataRows)
  13232. End Function
  13233. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13234. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13235. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13236. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  13237. Public Overloads Overridable Function Delete(ByVal Original_Codigo As String, ByVal Original_Nombre As String) As Integer
  13238. If (Original_Codigo Is Nothing) Then
  13239. Throw New Global.System.ArgumentNullException("Original_Codigo")
  13240. Else
  13241. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_Codigo,String)
  13242. End If
  13243. If (Original_Nombre Is Nothing) Then
  13244. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  13245. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  13246. Else
  13247. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  13248. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Nombre,String)
  13249. End If
  13250. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  13251. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  13252. <> Global.System.Data.ConnectionState.Open) Then
  13253. Me.Adapter.DeleteCommand.Connection.Open
  13254. End If
  13255. Try
  13256. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  13257. Return returnValue
  13258. Finally
  13259. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  13260. Me.Adapter.DeleteCommand.Connection.Close
  13261. End If
  13262. End Try
  13263. End Function
  13264. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13265. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13266. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13267. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  13268. Public Overloads Overridable Function Insert(ByVal Codigo As String, ByVal Nombre As String) As Integer
  13269. If (Codigo Is Nothing) Then
  13270. Throw New Global.System.ArgumentNullException("Codigo")
  13271. Else
  13272. Me.Adapter.InsertCommand.Parameters(0).Value = CType(Codigo,String)
  13273. End If
  13274. If (Nombre Is Nothing) Then
  13275. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  13276. Else
  13277. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Nombre,String)
  13278. End If
  13279. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  13280. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  13281. <> Global.System.Data.ConnectionState.Open) Then
  13282. Me.Adapter.InsertCommand.Connection.Open
  13283. End If
  13284. Try
  13285. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  13286. Return returnValue
  13287. Finally
  13288. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  13289. Me.Adapter.InsertCommand.Connection.Close
  13290. End If
  13291. End Try
  13292. End Function
  13293. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13294. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13295. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13296. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  13297. Public Overloads Overridable Function Update(ByVal Codigo As String, ByVal Nombre As String, ByVal Original_Codigo As String, ByVal Original_Nombre As String) As Integer
  13298. If (Codigo Is Nothing) Then
  13299. Throw New Global.System.ArgumentNullException("Codigo")
  13300. Else
  13301. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(Codigo,String)
  13302. End If
  13303. If (Nombre Is Nothing) Then
  13304. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  13305. Else
  13306. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Nombre,String)
  13307. End If
  13308. If (Original_Codigo Is Nothing) Then
  13309. Throw New Global.System.ArgumentNullException("Original_Codigo")
  13310. Else
  13311. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Original_Codigo,String)
  13312. End If
  13313. If (Original_Nombre Is Nothing) Then
  13314. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(1,Object)
  13315. Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
  13316. Else
  13317. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(0,Object)
  13318. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(Original_Nombre,String)
  13319. End If
  13320. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  13321. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  13322. <> Global.System.Data.ConnectionState.Open) Then
  13323. Me.Adapter.UpdateCommand.Connection.Open
  13324. End If
  13325. Try
  13326. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  13327. Return returnValue
  13328. Finally
  13329. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  13330. Me.Adapter.UpdateCommand.Connection.Close
  13331. End If
  13332. End Try
  13333. End Function
  13334. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13335. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13336. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13337. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  13338. Public Overloads Overridable Function Update(ByVal Nombre As String, ByVal Original_Codigo As String, ByVal Original_Nombre As String) As Integer
  13339. Return Me.Update(Original_Codigo, Nombre, Original_Codigo, Original_Nombre)
  13340. End Function
  13341. End Class
  13342. '''<summary>
  13343. '''Represents the connection and commands used to retrieve and save data.
  13344. '''</summary>
  13345. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  13346. Global.System.ComponentModel.ToolboxItem(true), _
  13347. Global.System.ComponentModel.DataObjectAttribute(true), _
  13348. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  13349. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  13350. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13351. Partial Public Class OFONTableAdapter
  13352. Inherits Global.System.ComponentModel.Component
  13353. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  13354. Private _connection As Global.System.Data.SqlClient.SqlConnection
  13355. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  13356. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  13357. Private _clearBeforeFill As Boolean
  13358. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13359. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13360. Public Sub New()
  13361. MyBase.New
  13362. Me.ClearBeforeFill = true
  13363. End Sub
  13364. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13365. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13366. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  13367. Get
  13368. If (Me._adapter Is Nothing) Then
  13369. Me.InitAdapter
  13370. End If
  13371. Return Me._adapter
  13372. End Get
  13373. End Property
  13374. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13375. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13376. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  13377. Get
  13378. If (Me._connection Is Nothing) Then
  13379. Me.InitConnection
  13380. End If
  13381. Return Me._connection
  13382. End Get
  13383. Set
  13384. Me._connection = value
  13385. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  13386. Me.Adapter.InsertCommand.Connection = value
  13387. End If
  13388. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  13389. Me.Adapter.DeleteCommand.Connection = value
  13390. End If
  13391. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  13392. Me.Adapter.UpdateCommand.Connection = value
  13393. End If
  13394. Dim i As Integer = 0
  13395. Do While (i < Me.CommandCollection.Length)
  13396. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  13397. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  13398. End If
  13399. i = (i + 1)
  13400. Loop
  13401. End Set
  13402. End Property
  13403. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13404. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13405. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  13406. Get
  13407. Return Me._transaction
  13408. End Get
  13409. Set
  13410. Me._transaction = value
  13411. Dim i As Integer = 0
  13412. Do While (i < Me.CommandCollection.Length)
  13413. Me.CommandCollection(i).Transaction = Me._transaction
  13414. i = (i + 1)
  13415. Loop
  13416. If ((Not (Me.Adapter) Is Nothing) _
  13417. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  13418. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  13419. End If
  13420. If ((Not (Me.Adapter) Is Nothing) _
  13421. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  13422. Me.Adapter.InsertCommand.Transaction = Me._transaction
  13423. End If
  13424. If ((Not (Me.Adapter) Is Nothing) _
  13425. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  13426. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  13427. End If
  13428. End Set
  13429. End Property
  13430. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13431. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13432. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  13433. Get
  13434. If (Me._commandCollection Is Nothing) Then
  13435. Me.InitCommandCollection
  13436. End If
  13437. Return Me._commandCollection
  13438. End Get
  13439. End Property
  13440. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13441. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13442. Public Property ClearBeforeFill() As Boolean
  13443. Get
  13444. Return Me._clearBeforeFill
  13445. End Get
  13446. Set
  13447. Me._clearBeforeFill = value
  13448. End Set
  13449. End Property
  13450. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13451. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13452. Private Sub InitAdapter()
  13453. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  13454. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  13455. tableMapping.SourceTable = "Table"
  13456. tableMapping.DataSetTable = "OFON"
  13457. tableMapping.ColumnMappings.Add("Codigo", "Codigo")
  13458. tableMapping.ColumnMappings.Add("Descrip", "Descrip")
  13459. Me._adapter.TableMappings.Add(tableMapping)
  13460. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  13461. Me._adapter.DeleteCommand.Connection = Me.Connection
  13462. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[OFON] WHERE (([Codigo] = @Original_Codigo) AND ((@IsNull_Descr"& _
  13463. "ip = 1 AND [Descrip] IS NULL) OR ([Descrip] = @Original_Descrip)))"
  13464. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  13465. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Codigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Codigo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  13466. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Descrip", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  13467. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  13468. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  13469. Me._adapter.InsertCommand.Connection = Me.Connection
  13470. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[OFON] ([Codigo], [Descrip]) VALUES (@Codigo, @Descrip);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELEC"& _
  13471. "T Codigo, Descrip FROM OFON WHERE (Codigo = @Codigo)"
  13472. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  13473. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Codigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Codigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  13474. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  13475. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  13476. Me._adapter.UpdateCommand.Connection = Me.Connection
  13477. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[OFON] SET [Codigo] = @Codigo, [Descrip] = @Descrip WHERE (([Codigo]"& _
  13478. " = @Original_Codigo) AND ((@IsNull_Descrip = 1 AND [Descrip] IS NULL) OR ([Descr"& _
  13479. "ip] = @Original_Descrip)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT Codigo, Descrip FROM OFON WHERE (Codigo = @C"& _
  13480. "odigo)"
  13481. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  13482. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Codigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Codigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  13483. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  13484. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Codigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Codigo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  13485. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Descrip", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  13486. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Descrip", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Descrip", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  13487. End Sub
  13488. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13489. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13490. Private Sub InitConnection()
  13491. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  13492. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  13493. End Sub
  13494. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13495. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13496. Private Sub InitCommandCollection()
  13497. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  13498. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  13499. Me._commandCollection(0).Connection = Me.Connection
  13500. Me._commandCollection(0).CommandText = "SELECT Codigo, Descrip FROM dbo.OFON"
  13501. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  13502. End Sub
  13503. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13504. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13505. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13506. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  13507. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.OFONDataTable) As Integer
  13508. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  13509. If (Me.ClearBeforeFill = true) Then
  13510. dataTable.Clear
  13511. End If
  13512. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  13513. Return returnValue
  13514. End Function
  13515. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13516. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13517. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13518. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  13519. Public Overloads Overridable Function GetData() As InversionesDataSet1.OFONDataTable
  13520. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  13521. Dim dataTable As InversionesDataSet1.OFONDataTable = New InversionesDataSet1.OFONDataTable()
  13522. Me.Adapter.Fill(dataTable)
  13523. Return dataTable
  13524. End Function
  13525. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13526. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13527. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13528. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.OFONDataTable) As Integer
  13529. Return Me.Adapter.Update(dataTable)
  13530. End Function
  13531. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13532. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13533. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13534. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  13535. Return Me.Adapter.Update(dataSet, "OFON")
  13536. End Function
  13537. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13538. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13539. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13540. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  13541. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  13542. End Function
  13543. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13544. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13545. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13546. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  13547. Return Me.Adapter.Update(dataRows)
  13548. End Function
  13549. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13550. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13551. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13552. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  13553. Public Overloads Overridable Function Delete(ByVal Original_Codigo As String, ByVal Original_Descrip As String) As Integer
  13554. If (Original_Codigo Is Nothing) Then
  13555. Throw New Global.System.ArgumentNullException("Original_Codigo")
  13556. Else
  13557. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_Codigo,String)
  13558. End If
  13559. If (Original_Descrip Is Nothing) Then
  13560. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  13561. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  13562. Else
  13563. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  13564. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Descrip,String)
  13565. End If
  13566. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  13567. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  13568. <> Global.System.Data.ConnectionState.Open) Then
  13569. Me.Adapter.DeleteCommand.Connection.Open
  13570. End If
  13571. Try
  13572. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  13573. Return returnValue
  13574. Finally
  13575. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  13576. Me.Adapter.DeleteCommand.Connection.Close
  13577. End If
  13578. End Try
  13579. End Function
  13580. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13581. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13582. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13583. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  13584. Public Overloads Overridable Function Insert(ByVal Codigo As String, ByVal Descrip As String) As Integer
  13585. If (Codigo Is Nothing) Then
  13586. Throw New Global.System.ArgumentNullException("Codigo")
  13587. Else
  13588. Me.Adapter.InsertCommand.Parameters(0).Value = CType(Codigo,String)
  13589. End If
  13590. If (Descrip Is Nothing) Then
  13591. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  13592. Else
  13593. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Descrip,String)
  13594. End If
  13595. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  13596. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  13597. <> Global.System.Data.ConnectionState.Open) Then
  13598. Me.Adapter.InsertCommand.Connection.Open
  13599. End If
  13600. Try
  13601. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  13602. Return returnValue
  13603. Finally
  13604. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  13605. Me.Adapter.InsertCommand.Connection.Close
  13606. End If
  13607. End Try
  13608. End Function
  13609. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13610. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13611. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13612. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  13613. Public Overloads Overridable Function Update(ByVal Codigo As String, ByVal Descrip As String, ByVal Original_Codigo As String, ByVal Original_Descrip As String) As Integer
  13614. If (Codigo Is Nothing) Then
  13615. Throw New Global.System.ArgumentNullException("Codigo")
  13616. Else
  13617. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(Codigo,String)
  13618. End If
  13619. If (Descrip Is Nothing) Then
  13620. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  13621. Else
  13622. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Descrip,String)
  13623. End If
  13624. If (Original_Codigo Is Nothing) Then
  13625. Throw New Global.System.ArgumentNullException("Original_Codigo")
  13626. Else
  13627. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Original_Codigo,String)
  13628. End If
  13629. If (Original_Descrip Is Nothing) Then
  13630. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(1,Object)
  13631. Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
  13632. Else
  13633. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(0,Object)
  13634. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(Original_Descrip,String)
  13635. End If
  13636. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  13637. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  13638. <> Global.System.Data.ConnectionState.Open) Then
  13639. Me.Adapter.UpdateCommand.Connection.Open
  13640. End If
  13641. Try
  13642. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  13643. Return returnValue
  13644. Finally
  13645. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  13646. Me.Adapter.UpdateCommand.Connection.Close
  13647. End If
  13648. End Try
  13649. End Function
  13650. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13651. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13652. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13653. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  13654. Public Overloads Overridable Function Update(ByVal Descrip As String, ByVal Original_Codigo As String, ByVal Original_Descrip As String) As Integer
  13655. Return Me.Update(Original_Codigo, Descrip, Original_Codigo, Original_Descrip)
  13656. End Function
  13657. End Class
  13658. '''<summary>
  13659. '''Represents the connection and commands used to retrieve and save data.
  13660. '''</summary>
  13661. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  13662. Global.System.ComponentModel.ToolboxItem(true), _
  13663. Global.System.ComponentModel.DataObjectAttribute(true), _
  13664. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  13665. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  13666. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13667. Partial Public Class DEP0TableAdapter
  13668. Inherits Global.System.ComponentModel.Component
  13669. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  13670. Private _connection As Global.System.Data.SqlClient.SqlConnection
  13671. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  13672. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  13673. Private _clearBeforeFill As Boolean
  13674. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13675. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13676. Public Sub New()
  13677. MyBase.New
  13678. Me.ClearBeforeFill = true
  13679. End Sub
  13680. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13681. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13682. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  13683. Get
  13684. If (Me._adapter Is Nothing) Then
  13685. Me.InitAdapter
  13686. End If
  13687. Return Me._adapter
  13688. End Get
  13689. End Property
  13690. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13691. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13692. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  13693. Get
  13694. If (Me._connection Is Nothing) Then
  13695. Me.InitConnection
  13696. End If
  13697. Return Me._connection
  13698. End Get
  13699. Set
  13700. Me._connection = value
  13701. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  13702. Me.Adapter.InsertCommand.Connection = value
  13703. End If
  13704. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  13705. Me.Adapter.DeleteCommand.Connection = value
  13706. End If
  13707. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  13708. Me.Adapter.UpdateCommand.Connection = value
  13709. End If
  13710. Dim i As Integer = 0
  13711. Do While (i < Me.CommandCollection.Length)
  13712. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  13713. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  13714. End If
  13715. i = (i + 1)
  13716. Loop
  13717. End Set
  13718. End Property
  13719. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13720. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13721. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  13722. Get
  13723. Return Me._transaction
  13724. End Get
  13725. Set
  13726. Me._transaction = value
  13727. Dim i As Integer = 0
  13728. Do While (i < Me.CommandCollection.Length)
  13729. Me.CommandCollection(i).Transaction = Me._transaction
  13730. i = (i + 1)
  13731. Loop
  13732. If ((Not (Me.Adapter) Is Nothing) _
  13733. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  13734. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  13735. End If
  13736. If ((Not (Me.Adapter) Is Nothing) _
  13737. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  13738. Me.Adapter.InsertCommand.Transaction = Me._transaction
  13739. End If
  13740. If ((Not (Me.Adapter) Is Nothing) _
  13741. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  13742. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  13743. End If
  13744. End Set
  13745. End Property
  13746. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13747. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13748. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  13749. Get
  13750. If (Me._commandCollection Is Nothing) Then
  13751. Me.InitCommandCollection
  13752. End If
  13753. Return Me._commandCollection
  13754. End Get
  13755. End Property
  13756. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13757. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13758. Public Property ClearBeforeFill() As Boolean
  13759. Get
  13760. Return Me._clearBeforeFill
  13761. End Get
  13762. Set
  13763. Me._clearBeforeFill = value
  13764. End Set
  13765. End Property
  13766. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13767. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13768. Private Sub InitAdapter()
  13769. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  13770. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  13771. tableMapping.SourceTable = "Table"
  13772. tableMapping.DataSetTable = "DEP0"
  13773. tableMapping.ColumnMappings.Add("DEPID", "DEPID")
  13774. tableMapping.ColumnMappings.Add("DEPNombre", "DEPNombre")
  13775. Me._adapter.TableMappings.Add(tableMapping)
  13776. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  13777. Me._adapter.DeleteCommand.Connection = Me.Connection
  13778. Me._adapter.DeleteCommand.CommandText = "DELETE FROM DEP0"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (DEPID = @Original_DEPID)"
  13779. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  13780. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_DEPID", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "DEPID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  13781. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  13782. Me._adapter.InsertCommand.Connection = Me.Connection
  13783. Me._adapter.InsertCommand.CommandText = "INSERT INTO DEP0"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" (DEPID, DEPNombre)"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"VALUES (@DE"& _
  13784. "PID,@DEPNombre); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT DEPID, DEPNombre FROM DEP0 WHERE (DEPID = @DEPID)"
  13785. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  13786. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DEPID", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "DEPID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  13787. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DEPNombre", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "DEPNombre", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  13788. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  13789. Me._adapter.UpdateCommand.Connection = Me.Connection
  13790. Me._adapter.UpdateCommand.CommandText = "UPDATE DEP0"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SET DEPNombre = @DEPNombre"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (DEPID"& _
  13791. " = @Original_DEPID); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT DEPID, DEPNombre FROM DEP0 WHERE (DEPID = @DEPID)"
  13792. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  13793. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DEPNombre", Global.System.Data.SqlDbType.VarChar, 100, Global.System.Data.ParameterDirection.Input, 0, 0, "DEPNombre", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  13794. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_DEPID", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "DEPID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  13795. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DEPID", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "DEPID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  13796. End Sub
  13797. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13798. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13799. Private Sub InitConnection()
  13800. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  13801. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  13802. End Sub
  13803. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13804. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13805. Private Sub InitCommandCollection()
  13806. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  13807. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  13808. Me._commandCollection(0).Connection = Me.Connection
  13809. Me._commandCollection(0).CommandText = "SELECT DEPID, DEPNombre"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM DEP0"
  13810. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  13811. End Sub
  13812. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13813. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13814. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13815. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  13816. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.DEP0DataTable) As Integer
  13817. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  13818. If (Me.ClearBeforeFill = true) Then
  13819. dataTable.Clear
  13820. End If
  13821. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  13822. Return returnValue
  13823. End Function
  13824. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13825. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13826. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13827. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  13828. Public Overloads Overridable Function GetData() As InversionesDataSet1.DEP0DataTable
  13829. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  13830. Dim dataTable As InversionesDataSet1.DEP0DataTable = New InversionesDataSet1.DEP0DataTable()
  13831. Me.Adapter.Fill(dataTable)
  13832. Return dataTable
  13833. End Function
  13834. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13835. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13836. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13837. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.DEP0DataTable) As Integer
  13838. Return Me.Adapter.Update(dataTable)
  13839. End Function
  13840. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13841. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13842. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13843. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  13844. Return Me.Adapter.Update(dataSet, "DEP0")
  13845. End Function
  13846. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13847. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13848. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13849. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  13850. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  13851. End Function
  13852. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13853. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13854. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13855. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  13856. Return Me.Adapter.Update(dataRows)
  13857. End Function
  13858. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13859. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13860. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13861. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  13862. Public Overloads Overridable Function Delete(ByVal Original_DEPID As String) As Integer
  13863. If (Original_DEPID Is Nothing) Then
  13864. Throw New Global.System.ArgumentNullException("Original_DEPID")
  13865. Else
  13866. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_DEPID,String)
  13867. End If
  13868. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  13869. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  13870. <> Global.System.Data.ConnectionState.Open) Then
  13871. Me.Adapter.DeleteCommand.Connection.Open
  13872. End If
  13873. Try
  13874. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  13875. Return returnValue
  13876. Finally
  13877. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  13878. Me.Adapter.DeleteCommand.Connection.Close
  13879. End If
  13880. End Try
  13881. End Function
  13882. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13883. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13884. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13885. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  13886. Public Overloads Overridable Function Insert(ByVal DEPID As String, ByVal DEPNombre As String) As Integer
  13887. If (DEPID Is Nothing) Then
  13888. Throw New Global.System.ArgumentNullException("DEPID")
  13889. Else
  13890. Me.Adapter.InsertCommand.Parameters(0).Value = CType(DEPID,String)
  13891. End If
  13892. If (DEPNombre Is Nothing) Then
  13893. Throw New Global.System.ArgumentNullException("DEPNombre")
  13894. Else
  13895. Me.Adapter.InsertCommand.Parameters(1).Value = CType(DEPNombre,String)
  13896. End If
  13897. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  13898. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  13899. <> Global.System.Data.ConnectionState.Open) Then
  13900. Me.Adapter.InsertCommand.Connection.Open
  13901. End If
  13902. Try
  13903. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  13904. Return returnValue
  13905. Finally
  13906. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  13907. Me.Adapter.InsertCommand.Connection.Close
  13908. End If
  13909. End Try
  13910. End Function
  13911. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13912. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  13913. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  13914. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  13915. Public Overloads Overridable Function Update(ByVal DEPNombre As String, ByVal Original_DEPID As String, ByVal DEPID As String) As Integer
  13916. If (DEPNombre Is Nothing) Then
  13917. Throw New Global.System.ArgumentNullException("DEPNombre")
  13918. Else
  13919. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(DEPNombre,String)
  13920. End If
  13921. If (Original_DEPID Is Nothing) Then
  13922. Throw New Global.System.ArgumentNullException("Original_DEPID")
  13923. Else
  13924. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Original_DEPID,String)
  13925. End If
  13926. If (DEPID Is Nothing) Then
  13927. Throw New Global.System.ArgumentNullException("DEPID")
  13928. Else
  13929. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(DEPID,String)
  13930. End If
  13931. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  13932. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  13933. <> Global.System.Data.ConnectionState.Open) Then
  13934. Me.Adapter.UpdateCommand.Connection.Open
  13935. End If
  13936. Try
  13937. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  13938. Return returnValue
  13939. Finally
  13940. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  13941. Me.Adapter.UpdateCommand.Connection.Close
  13942. End If
  13943. End Try
  13944. End Function
  13945. End Class
  13946. '''<summary>
  13947. '''Represents the connection and commands used to retrieve and save data.
  13948. '''</summary>
  13949. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  13950. Global.System.ComponentModel.ToolboxItem(true), _
  13951. Global.System.ComponentModel.DataObjectAttribute(true), _
  13952. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  13953. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  13954. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  13955. Partial Public Class USR0TableAdapter
  13956. Inherits Global.System.ComponentModel.Component
  13957. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  13958. Private _connection As Global.System.Data.SqlClient.SqlConnection
  13959. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  13960. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  13961. Private _clearBeforeFill As Boolean
  13962. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13963. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13964. Public Sub New()
  13965. MyBase.New
  13966. Me.ClearBeforeFill = true
  13967. End Sub
  13968. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13969. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13970. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  13971. Get
  13972. If (Me._adapter Is Nothing) Then
  13973. Me.InitAdapter
  13974. End If
  13975. Return Me._adapter
  13976. End Get
  13977. End Property
  13978. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  13979. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  13980. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  13981. Get
  13982. If (Me._connection Is Nothing) Then
  13983. Me.InitConnection
  13984. End If
  13985. Return Me._connection
  13986. End Get
  13987. Set
  13988. Me._connection = value
  13989. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  13990. Me.Adapter.InsertCommand.Connection = value
  13991. End If
  13992. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  13993. Me.Adapter.DeleteCommand.Connection = value
  13994. End If
  13995. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  13996. Me.Adapter.UpdateCommand.Connection = value
  13997. End If
  13998. Dim i As Integer = 0
  13999. Do While (i < Me.CommandCollection.Length)
  14000. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  14001. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  14002. End If
  14003. i = (i + 1)
  14004. Loop
  14005. End Set
  14006. End Property
  14007. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14008. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  14009. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  14010. Get
  14011. Return Me._transaction
  14012. End Get
  14013. Set
  14014. Me._transaction = value
  14015. Dim i As Integer = 0
  14016. Do While (i < Me.CommandCollection.Length)
  14017. Me.CommandCollection(i).Transaction = Me._transaction
  14018. i = (i + 1)
  14019. Loop
  14020. If ((Not (Me.Adapter) Is Nothing) _
  14021. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  14022. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  14023. End If
  14024. If ((Not (Me.Adapter) Is Nothing) _
  14025. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  14026. Me.Adapter.InsertCommand.Transaction = Me._transaction
  14027. End If
  14028. If ((Not (Me.Adapter) Is Nothing) _
  14029. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  14030. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  14031. End If
  14032. End Set
  14033. End Property
  14034. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14035. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  14036. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  14037. Get
  14038. If (Me._commandCollection Is Nothing) Then
  14039. Me.InitCommandCollection
  14040. End If
  14041. Return Me._commandCollection
  14042. End Get
  14043. End Property
  14044. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14045. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  14046. Public Property ClearBeforeFill() As Boolean
  14047. Get
  14048. Return Me._clearBeforeFill
  14049. End Get
  14050. Set
  14051. Me._clearBeforeFill = value
  14052. End Set
  14053. End Property
  14054. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14055. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  14056. Private Sub InitAdapter()
  14057. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  14058. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  14059. tableMapping.SourceTable = "Table"
  14060. tableMapping.DataSetTable = "USR0"
  14061. tableMapping.ColumnMappings.Add("UCodigo", "UCodigo")
  14062. tableMapping.ColumnMappings.Add("UNombre", "UNombre")
  14063. tableMapping.ColumnMappings.Add("DEPID", "DEPID")
  14064. tableMapping.ColumnMappings.Add("SUser", "SUser")
  14065. tableMapping.ColumnMappings.Add("Bloqueado", "Bloqueado")
  14066. tableMapping.ColumnMappings.Add("Clave1", "Clave1")
  14067. Me._adapter.TableMappings.Add(tableMapping)
  14068. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  14069. Me._adapter.DeleteCommand.Connection = Me.Connection
  14070. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [USR0] WHERE (([UCodigo] = @Original_UCodigo) AND ((@IsNull_UNombre ="& _
  14071. " 1 AND [UNombre] IS NULL) OR ([UNombre] = @Original_UNombre)) AND ((@IsNull_DEPI"& _
  14072. "D = 1 AND [DEPID] IS NULL) OR ([DEPID] = @Original_DEPID)) AND ((@IsNull_SUser ="& _
  14073. " 1 AND [SUser] IS NULL) OR ([SUser] = @Original_SUser)) AND ((@IsNull_Bloqueado "& _
  14074. "= 1 AND [Bloqueado] IS NULL) OR ([Bloqueado] = @Original_Bloqueado)) AND ((@IsNu"& _
  14075. "ll_Clave1 = 1 AND [Clave1] IS NULL) OR ([Clave1] = @Original_Clave1)))"
  14076. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  14077. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_UCodigo", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "UCodigo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  14078. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_UNombre", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "UNombre", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  14079. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_UNombre", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "UNombre", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  14080. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_DEPID", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DEPID", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  14081. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_DEPID", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "DEPID", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  14082. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_SUser", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "SUser", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  14083. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_SUser", Global.System.Data.SqlDbType.TinyInt, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "SUser", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  14084. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Bloqueado", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Bloqueado", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  14085. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Bloqueado", Global.System.Data.SqlDbType.TinyInt, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Bloqueado", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  14086. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@IsNull_Clave1", Global.System.Data.SqlDbType.Int, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Clave1", Global.System.Data.DataRowVersion.Original, true, Nothing, "", "", ""))
  14087. Me._adapter.DeleteCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_Clave1", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "Clave1", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  14088. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  14089. Me._adapter.InsertCommand.Connection = Me.Connection
  14090. Me._adapter.InsertCommand.CommandText = "INSERT INTO USR0"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&" (UCodigo, UNombre, DEPID, SUser, Bloqu"& _
  14091. "eado, Clave1)"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"VALUES (@UCodigo,@UNombre,@DEPID,@SUser,@Bloqueado,@Clave1"& _
  14092. "); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT UCodigo, UNombre, DEPID, SUser, Bloqueado, Clave1 FROM USR0 WHERE (U"& _
  14093. "Codigo = @UCodigo)"
  14094. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  14095. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@UCodigo", Global.System.Data.SqlDbType.VarChar, 10, Global.System.Data.ParameterDirection.Input, 0, 0, "UCodigo", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  14096. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@UNombre", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "UNombre", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  14097. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DEPID", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "DEPID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  14098. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SUser", Global.System.Data.SqlDbType.TinyInt, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "SUser", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  14099. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Bloqueado", Global.System.Data.SqlDbType.TinyInt, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "Bloqueado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  14100. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Clave1", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "Clave1", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  14101. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  14102. Me._adapter.UpdateCommand.Connection = Me.Connection
  14103. Me._adapter.UpdateCommand.CommandText = "UPDATE USR0"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SET UNombre = @UNombre, DEPID = @DEPID, SUser ="& _
  14104. " @SUser, Bloqueado = @Bloqueado, Clave1 = @Clave1"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"WHERE (UCodigo = @Orig"& _
  14105. "inal_UCodigo); "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT UCodigo, UNombre, DEPID, SUser, Bloqueado, Clave1 FROM U"& _
  14106. "SR0 WHERE (UCodigo = @UCodigo)"
  14107. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  14108. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@UNombre", Global.System.Data.SqlDbType.VarChar, 50, Global.System.Data.ParameterDirection.Input, 0, 0, "UNombre", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  14109. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@DEPID", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "DEPID", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  14110. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SUser", Global.System.Data.SqlDbType.TinyInt, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "SUser", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  14111. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Bloqueado", Global.System.Data.SqlDbType.TinyInt, 1, Global.System.Data.ParameterDirection.Input, 0, 0, "Bloqueado", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  14112. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Clave1", Global.System.Data.SqlDbType.VarChar, 30, Global.System.Data.ParameterDirection.Input, 0, 0, "Clave1", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  14113. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@Original_UCodigo", Global.System.Data.SqlDbType.VarChar, 10, Global.System.Data.ParameterDirection.Input, 0, 0, "UCodigo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  14114. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@UCodigo", Global.System.Data.SqlDbType.VarChar, 10, Global.System.Data.ParameterDirection.Input, 0, 0, "UCodigo", Global.System.Data.DataRowVersion.Original, false, Nothing, "", "", ""))
  14115. End Sub
  14116. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14117. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  14118. Private Sub InitConnection()
  14119. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  14120. Me._connection.ConnectionString = Global.Inversiones.My.MySettings.Default.cnInversiones
  14121. End Sub
  14122. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14123. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  14124. Private Sub InitCommandCollection()
  14125. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  14126. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  14127. Me._commandCollection(0).Connection = Me.Connection
  14128. Me._commandCollection(0).CommandText = "SELECT UCodigo, UNombre, DEPID, SUser, Bloqueado, Clave1"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"FROM "& _
  14129. "USR0"
  14130. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  14131. End Sub
  14132. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14133. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14134. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  14135. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  14136. Public Overloads Overridable Function Fill(ByVal dataTable As InversionesDataSet1.USR0DataTable) As Integer
  14137. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  14138. If (Me.ClearBeforeFill = true) Then
  14139. dataTable.Clear
  14140. End If
  14141. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  14142. Return returnValue
  14143. End Function
  14144. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14145. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14146. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  14147. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  14148. Public Overloads Overridable Function GetData() As InversionesDataSet1.USR0DataTable
  14149. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  14150. Dim dataTable As InversionesDataSet1.USR0DataTable = New InversionesDataSet1.USR0DataTable()
  14151. Me.Adapter.Fill(dataTable)
  14152. Return dataTable
  14153. End Function
  14154. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14155. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14156. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  14157. Public Overloads Overridable Function Update(ByVal dataTable As InversionesDataSet1.USR0DataTable) As Integer
  14158. Return Me.Adapter.Update(dataTable)
  14159. End Function
  14160. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14161. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14162. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  14163. Public Overloads Overridable Function Update(ByVal dataSet As InversionesDataSet1) As Integer
  14164. Return Me.Adapter.Update(dataSet, "USR0")
  14165. End Function
  14166. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14167. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14168. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  14169. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  14170. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  14171. End Function
  14172. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14173. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14174. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  14175. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  14176. Return Me.Adapter.Update(dataRows)
  14177. End Function
  14178. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14179. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14180. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  14181. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  14182. Public Overloads Overridable Function Delete(ByVal Original_UCodigo As String, ByVal Original_UNombre As String, ByVal Original_DEPID As String, ByVal Original_SUser As Global.System.Nullable(Of Byte), ByVal Original_Bloqueado As Global.System.Nullable(Of Byte), ByVal Original_Clave1 As String) As Integer
  14183. If (Original_UCodigo Is Nothing) Then
  14184. Throw New Global.System.ArgumentNullException("Original_UCodigo")
  14185. Else
  14186. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_UCodigo,String)
  14187. End If
  14188. If (Original_UNombre Is Nothing) Then
  14189. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  14190. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  14191. Else
  14192. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  14193. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_UNombre,String)
  14194. End If
  14195. If (Original_DEPID Is Nothing) Then
  14196. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
  14197. Me.Adapter.DeleteCommand.Parameters(4).Value = Global.System.DBNull.Value
  14198. Else
  14199. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
  14200. Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_DEPID,String)
  14201. End If
  14202. If (Original_SUser.HasValue = true) Then
  14203. Me.Adapter.DeleteCommand.Parameters(5).Value = CType(0,Object)
  14204. Me.Adapter.DeleteCommand.Parameters(6).Value = CType(Original_SUser.Value,Byte)
  14205. Else
  14206. Me.Adapter.DeleteCommand.Parameters(5).Value = CType(1,Object)
  14207. Me.Adapter.DeleteCommand.Parameters(6).Value = Global.System.DBNull.Value
  14208. End If
  14209. If (Original_Bloqueado.HasValue = true) Then
  14210. Me.Adapter.DeleteCommand.Parameters(7).Value = CType(0,Object)
  14211. Me.Adapter.DeleteCommand.Parameters(8).Value = CType(Original_Bloqueado.Value,Byte)
  14212. Else
  14213. Me.Adapter.DeleteCommand.Parameters(7).Value = CType(1,Object)
  14214. Me.Adapter.DeleteCommand.Parameters(8).Value = Global.System.DBNull.Value
  14215. End If
  14216. If (Original_Clave1 Is Nothing) Then
  14217. Me.Adapter.DeleteCommand.Parameters(9).Value = CType(1,Object)
  14218. Me.Adapter.DeleteCommand.Parameters(10).Value = Global.System.DBNull.Value
  14219. Else
  14220. Me.Adapter.DeleteCommand.Parameters(9).Value = CType(0,Object)
  14221. Me.Adapter.DeleteCommand.Parameters(10).Value = CType(Original_Clave1,String)
  14222. End If
  14223. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  14224. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  14225. <> Global.System.Data.ConnectionState.Open) Then
  14226. Me.Adapter.DeleteCommand.Connection.Open
  14227. End If
  14228. Try
  14229. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  14230. Return returnValue
  14231. Finally
  14232. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  14233. Me.Adapter.DeleteCommand.Connection.Close
  14234. End If
  14235. End Try
  14236. End Function
  14237. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14238. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14239. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  14240. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  14241. Public Overloads Overridable Function Insert(ByVal UCodigo As String, ByVal UNombre As String, ByVal DEPID As String, ByVal SUser As Global.System.Nullable(Of Byte), ByVal Bloqueado As Global.System.Nullable(Of Byte), ByVal Clave1 As String) As Integer
  14242. If (UCodigo Is Nothing) Then
  14243. Throw New Global.System.ArgumentNullException("UCodigo")
  14244. Else
  14245. Me.Adapter.InsertCommand.Parameters(0).Value = CType(UCodigo,String)
  14246. End If
  14247. If (UNombre Is Nothing) Then
  14248. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  14249. Else
  14250. Me.Adapter.InsertCommand.Parameters(1).Value = CType(UNombre,String)
  14251. End If
  14252. If (DEPID Is Nothing) Then
  14253. Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
  14254. Else
  14255. Me.Adapter.InsertCommand.Parameters(2).Value = CType(DEPID,String)
  14256. End If
  14257. If (SUser.HasValue = true) Then
  14258. Me.Adapter.InsertCommand.Parameters(3).Value = CType(SUser.Value,Byte)
  14259. Else
  14260. Me.Adapter.InsertCommand.Parameters(3).Value = Global.System.DBNull.Value
  14261. End If
  14262. If (Bloqueado.HasValue = true) Then
  14263. Me.Adapter.InsertCommand.Parameters(4).Value = CType(Bloqueado.Value,Byte)
  14264. Else
  14265. Me.Adapter.InsertCommand.Parameters(4).Value = Global.System.DBNull.Value
  14266. End If
  14267. If (Clave1 Is Nothing) Then
  14268. Me.Adapter.InsertCommand.Parameters(5).Value = Global.System.DBNull.Value
  14269. Else
  14270. Me.Adapter.InsertCommand.Parameters(5).Value = CType(Clave1,String)
  14271. End If
  14272. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  14273. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  14274. <> Global.System.Data.ConnectionState.Open) Then
  14275. Me.Adapter.InsertCommand.Connection.Open
  14276. End If
  14277. Try
  14278. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  14279. Return returnValue
  14280. Finally
  14281. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  14282. Me.Adapter.InsertCommand.Connection.Close
  14283. End If
  14284. End Try
  14285. End Function
  14286. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14287. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14288. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  14289. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  14290. Public Overloads Overridable Function Update(ByVal UNombre As String, ByVal DEPID As String, ByVal SUser As Global.System.Nullable(Of Byte), ByVal Bloqueado As Global.System.Nullable(Of Byte), ByVal Clave1 As String, ByVal Original_UCodigo As String, ByVal UCodigo As String) As Integer
  14291. If (UNombre Is Nothing) Then
  14292. Me.Adapter.UpdateCommand.Parameters(0).Value = Global.System.DBNull.Value
  14293. Else
  14294. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(UNombre,String)
  14295. End If
  14296. If (DEPID Is Nothing) Then
  14297. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  14298. Else
  14299. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(DEPID,String)
  14300. End If
  14301. If (SUser.HasValue = true) Then
  14302. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(SUser.Value,Byte)
  14303. Else
  14304. Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
  14305. End If
  14306. If (Bloqueado.HasValue = true) Then
  14307. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(Bloqueado.Value,Byte)
  14308. Else
  14309. Me.Adapter.UpdateCommand.Parameters(3).Value = Global.System.DBNull.Value
  14310. End If
  14311. If (Clave1 Is Nothing) Then
  14312. Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
  14313. Else
  14314. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(Clave1,String)
  14315. End If
  14316. If (Original_UCodigo Is Nothing) Then
  14317. Throw New Global.System.ArgumentNullException("Original_UCodigo")
  14318. Else
  14319. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(Original_UCodigo,String)
  14320. End If
  14321. If (UCodigo Is Nothing) Then
  14322. Throw New Global.System.ArgumentNullException("UCodigo")
  14323. Else
  14324. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(UCodigo,String)
  14325. End If
  14326. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  14327. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  14328. <> Global.System.Data.ConnectionState.Open) Then
  14329. Me.Adapter.UpdateCommand.Connection.Open
  14330. End If
  14331. Try
  14332. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  14333. Return returnValue
  14334. Finally
  14335. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  14336. Me.Adapter.UpdateCommand.Connection.Close
  14337. End If
  14338. End Try
  14339. End Function
  14340. End Class
  14341. '''<summary>
  14342. '''TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  14343. '''</summary>
  14344. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  14345. Global.System.ComponentModel.ToolboxItem(true), _
  14346. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD"& _
  14347. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  14348. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")> _
  14349. Partial Public Class TableAdapterManager
  14350. Inherits Global.System.ComponentModel.Component
  14351. Private _updateOrder As UpdateOrderOption
  14352. Private _eCALRITableAdapter As ECALRITableAdapter
  14353. Private _eMISTableAdapter As EMISTableAdapter
  14354. Private _eMPRTableAdapter As EMPRTableAdapter
  14355. Private _iNFITableAdapter As INFITableAdapter
  14356. Private _pAISTableAdapter As PAISTableAdapter
  14357. Private _bAN0TableAdapter As BAN0TableAdapter
  14358. Private _bAN1TableAdapter As BAN1TableAdapter
  14359. Private _fPAGTableAdapter As FPAGTableAdapter
  14360. Private _pIN0TableAdapter As PIN0TableAdapter
  14361. Private _cALRITableAdapter As CALRITableAdapter
  14362. Private _rPAGTableAdapter As RPAGTableAdapter
  14363. Private _bAN2TableAdapter As BAN2TableAdapter
  14364. Private _oFONTableAdapter As OFONTableAdapter
  14365. Private _dEP0TableAdapter As DEP0TableAdapter
  14366. Private _uSR0TableAdapter As USR0TableAdapter
  14367. Private _backupDataSetBeforeUpdate As Boolean
  14368. Private _connection As Global.System.Data.IDbConnection
  14369. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14370. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  14371. Public Property UpdateOrder() As UpdateOrderOption
  14372. Get
  14373. Return Me._updateOrder
  14374. End Get
  14375. Set
  14376. Me._updateOrder = value
  14377. End Set
  14378. End Property
  14379. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14380. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14381. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14382. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14383. "a", "System.Drawing.Design.UITypeEditor")> _
  14384. Public Property ECALRITableAdapter() As ECALRITableAdapter
  14385. Get
  14386. Return Me._eCALRITableAdapter
  14387. End Get
  14388. Set
  14389. Me._eCALRITableAdapter = value
  14390. End Set
  14391. End Property
  14392. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14393. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14394. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14395. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14396. "a", "System.Drawing.Design.UITypeEditor")> _
  14397. Public Property EMISTableAdapter() As EMISTableAdapter
  14398. Get
  14399. Return Me._eMISTableAdapter
  14400. End Get
  14401. Set
  14402. Me._eMISTableAdapter = value
  14403. End Set
  14404. End Property
  14405. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14406. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14407. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14408. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14409. "a", "System.Drawing.Design.UITypeEditor")> _
  14410. Public Property EMPRTableAdapter() As EMPRTableAdapter
  14411. Get
  14412. Return Me._eMPRTableAdapter
  14413. End Get
  14414. Set
  14415. Me._eMPRTableAdapter = value
  14416. End Set
  14417. End Property
  14418. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14419. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14420. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14421. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14422. "a", "System.Drawing.Design.UITypeEditor")> _
  14423. Public Property INFITableAdapter() As INFITableAdapter
  14424. Get
  14425. Return Me._iNFITableAdapter
  14426. End Get
  14427. Set
  14428. Me._iNFITableAdapter = value
  14429. End Set
  14430. End Property
  14431. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14432. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14433. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14434. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14435. "a", "System.Drawing.Design.UITypeEditor")> _
  14436. Public Property PAISTableAdapter() As PAISTableAdapter
  14437. Get
  14438. Return Me._pAISTableAdapter
  14439. End Get
  14440. Set
  14441. Me._pAISTableAdapter = value
  14442. End Set
  14443. End Property
  14444. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14445. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14446. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14447. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14448. "a", "System.Drawing.Design.UITypeEditor")> _
  14449. Public Property BAN0TableAdapter() As BAN0TableAdapter
  14450. Get
  14451. Return Me._bAN0TableAdapter
  14452. End Get
  14453. Set
  14454. Me._bAN0TableAdapter = value
  14455. End Set
  14456. End Property
  14457. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14458. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14459. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14460. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14461. "a", "System.Drawing.Design.UITypeEditor")> _
  14462. Public Property BAN1TableAdapter() As BAN1TableAdapter
  14463. Get
  14464. Return Me._bAN1TableAdapter
  14465. End Get
  14466. Set
  14467. Me._bAN1TableAdapter = value
  14468. End Set
  14469. End Property
  14470. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14471. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14472. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14473. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14474. "a", "System.Drawing.Design.UITypeEditor")> _
  14475. Public Property FPAGTableAdapter() As FPAGTableAdapter
  14476. Get
  14477. Return Me._fPAGTableAdapter
  14478. End Get
  14479. Set
  14480. Me._fPAGTableAdapter = value
  14481. End Set
  14482. End Property
  14483. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14484. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14485. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14486. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14487. "a", "System.Drawing.Design.UITypeEditor")> _
  14488. Public Property PIN0TableAdapter() As PIN0TableAdapter
  14489. Get
  14490. Return Me._pIN0TableAdapter
  14491. End Get
  14492. Set
  14493. Me._pIN0TableAdapter = value
  14494. End Set
  14495. End Property
  14496. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14497. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14498. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14499. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14500. "a", "System.Drawing.Design.UITypeEditor")> _
  14501. Public Property CALRITableAdapter() As CALRITableAdapter
  14502. Get
  14503. Return Me._cALRITableAdapter
  14504. End Get
  14505. Set
  14506. Me._cALRITableAdapter = value
  14507. End Set
  14508. End Property
  14509. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14510. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14511. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14512. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14513. "a", "System.Drawing.Design.UITypeEditor")> _
  14514. Public Property RPAGTableAdapter() As RPAGTableAdapter
  14515. Get
  14516. Return Me._rPAGTableAdapter
  14517. End Get
  14518. Set
  14519. Me._rPAGTableAdapter = value
  14520. End Set
  14521. End Property
  14522. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14523. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14524. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14525. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14526. "a", "System.Drawing.Design.UITypeEditor")> _
  14527. Public Property BAN2TableAdapter() As BAN2TableAdapter
  14528. Get
  14529. Return Me._bAN2TableAdapter
  14530. End Get
  14531. Set
  14532. Me._bAN2TableAdapter = value
  14533. End Set
  14534. End Property
  14535. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14536. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14537. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14538. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14539. "a", "System.Drawing.Design.UITypeEditor")> _
  14540. Public Property OFONTableAdapter() As OFONTableAdapter
  14541. Get
  14542. Return Me._oFONTableAdapter
  14543. End Get
  14544. Set
  14545. Me._oFONTableAdapter = value
  14546. End Set
  14547. End Property
  14548. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14549. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14550. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14551. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14552. "a", "System.Drawing.Design.UITypeEditor")> _
  14553. Public Property DEP0TableAdapter() As DEP0TableAdapter
  14554. Get
  14555. Return Me._dEP0TableAdapter
  14556. End Get
  14557. Set
  14558. Me._dEP0TableAdapter = value
  14559. End Set
  14560. End Property
  14561. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14562. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14563. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  14564. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  14565. "a", "System.Drawing.Design.UITypeEditor")> _
  14566. Public Property USR0TableAdapter() As USR0TableAdapter
  14567. Get
  14568. Return Me._uSR0TableAdapter
  14569. End Get
  14570. Set
  14571. Me._uSR0TableAdapter = value
  14572. End Set
  14573. End Property
  14574. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14575. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  14576. Public Property BackupDataSetBeforeUpdate() As Boolean
  14577. Get
  14578. Return Me._backupDataSetBeforeUpdate
  14579. End Get
  14580. Set
  14581. Me._backupDataSetBeforeUpdate = value
  14582. End Set
  14583. End Property
  14584. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14585. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14586. Global.System.ComponentModel.Browsable(false)> _
  14587. Public Property Connection() As Global.System.Data.IDbConnection
  14588. Get
  14589. If (Not (Me._connection) Is Nothing) Then
  14590. Return Me._connection
  14591. End If
  14592. If ((Not (Me._eCALRITableAdapter) Is Nothing) _
  14593. AndAlso (Not (Me._eCALRITableAdapter.Connection) Is Nothing)) Then
  14594. Return Me._eCALRITableAdapter.Connection
  14595. End If
  14596. If ((Not (Me._eMISTableAdapter) Is Nothing) _
  14597. AndAlso (Not (Me._eMISTableAdapter.Connection) Is Nothing)) Then
  14598. Return Me._eMISTableAdapter.Connection
  14599. End If
  14600. If ((Not (Me._eMPRTableAdapter) Is Nothing) _
  14601. AndAlso (Not (Me._eMPRTableAdapter.Connection) Is Nothing)) Then
  14602. Return Me._eMPRTableAdapter.Connection
  14603. End If
  14604. If ((Not (Me._iNFITableAdapter) Is Nothing) _
  14605. AndAlso (Not (Me._iNFITableAdapter.Connection) Is Nothing)) Then
  14606. Return Me._iNFITableAdapter.Connection
  14607. End If
  14608. If ((Not (Me._pAISTableAdapter) Is Nothing) _
  14609. AndAlso (Not (Me._pAISTableAdapter.Connection) Is Nothing)) Then
  14610. Return Me._pAISTableAdapter.Connection
  14611. End If
  14612. If ((Not (Me._bAN0TableAdapter) Is Nothing) _
  14613. AndAlso (Not (Me._bAN0TableAdapter.Connection) Is Nothing)) Then
  14614. Return Me._bAN0TableAdapter.Connection
  14615. End If
  14616. If ((Not (Me._bAN1TableAdapter) Is Nothing) _
  14617. AndAlso (Not (Me._bAN1TableAdapter.Connection) Is Nothing)) Then
  14618. Return Me._bAN1TableAdapter.Connection
  14619. End If
  14620. If ((Not (Me._fPAGTableAdapter) Is Nothing) _
  14621. AndAlso (Not (Me._fPAGTableAdapter.Connection) Is Nothing)) Then
  14622. Return Me._fPAGTableAdapter.Connection
  14623. End If
  14624. If ((Not (Me._pIN0TableAdapter) Is Nothing) _
  14625. AndAlso (Not (Me._pIN0TableAdapter.Connection) Is Nothing)) Then
  14626. Return Me._pIN0TableAdapter.Connection
  14627. End If
  14628. If ((Not (Me._cALRITableAdapter) Is Nothing) _
  14629. AndAlso (Not (Me._cALRITableAdapter.Connection) Is Nothing)) Then
  14630. Return Me._cALRITableAdapter.Connection
  14631. End If
  14632. If ((Not (Me._rPAGTableAdapter) Is Nothing) _
  14633. AndAlso (Not (Me._rPAGTableAdapter.Connection) Is Nothing)) Then
  14634. Return Me._rPAGTableAdapter.Connection
  14635. End If
  14636. If ((Not (Me._bAN2TableAdapter) Is Nothing) _
  14637. AndAlso (Not (Me._bAN2TableAdapter.Connection) Is Nothing)) Then
  14638. Return Me._bAN2TableAdapter.Connection
  14639. End If
  14640. If ((Not (Me._oFONTableAdapter) Is Nothing) _
  14641. AndAlso (Not (Me._oFONTableAdapter.Connection) Is Nothing)) Then
  14642. Return Me._oFONTableAdapter.Connection
  14643. End If
  14644. If ((Not (Me._dEP0TableAdapter) Is Nothing) _
  14645. AndAlso (Not (Me._dEP0TableAdapter.Connection) Is Nothing)) Then
  14646. Return Me._dEP0TableAdapter.Connection
  14647. End If
  14648. If ((Not (Me._uSR0TableAdapter) Is Nothing) _
  14649. AndAlso (Not (Me._uSR0TableAdapter.Connection) Is Nothing)) Then
  14650. Return Me._uSR0TableAdapter.Connection
  14651. End If
  14652. Return Nothing
  14653. End Get
  14654. Set
  14655. Me._connection = value
  14656. End Set
  14657. End Property
  14658. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14659. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
  14660. Global.System.ComponentModel.Browsable(false)> _
  14661. Public ReadOnly Property TableAdapterInstanceCount() As Integer
  14662. Get
  14663. Dim count As Integer = 0
  14664. If (Not (Me._eCALRITableAdapter) Is Nothing) Then
  14665. count = (count + 1)
  14666. End If
  14667. If (Not (Me._eMISTableAdapter) Is Nothing) Then
  14668. count = (count + 1)
  14669. End If
  14670. If (Not (Me._eMPRTableAdapter) Is Nothing) Then
  14671. count = (count + 1)
  14672. End If
  14673. If (Not (Me._iNFITableAdapter) Is Nothing) Then
  14674. count = (count + 1)
  14675. End If
  14676. If (Not (Me._pAISTableAdapter) Is Nothing) Then
  14677. count = (count + 1)
  14678. End If
  14679. If (Not (Me._bAN0TableAdapter) Is Nothing) Then
  14680. count = (count + 1)
  14681. End If
  14682. If (Not (Me._bAN1TableAdapter) Is Nothing) Then
  14683. count = (count + 1)
  14684. End If
  14685. If (Not (Me._fPAGTableAdapter) Is Nothing) Then
  14686. count = (count + 1)
  14687. End If
  14688. If (Not (Me._pIN0TableAdapter) Is Nothing) Then
  14689. count = (count + 1)
  14690. End If
  14691. If (Not (Me._cALRITableAdapter) Is Nothing) Then
  14692. count = (count + 1)
  14693. End If
  14694. If (Not (Me._rPAGTableAdapter) Is Nothing) Then
  14695. count = (count + 1)
  14696. End If
  14697. If (Not (Me._bAN2TableAdapter) Is Nothing) Then
  14698. count = (count + 1)
  14699. End If
  14700. If (Not (Me._oFONTableAdapter) Is Nothing) Then
  14701. count = (count + 1)
  14702. End If
  14703. If (Not (Me._dEP0TableAdapter) Is Nothing) Then
  14704. count = (count + 1)
  14705. End If
  14706. If (Not (Me._uSR0TableAdapter) Is Nothing) Then
  14707. count = (count + 1)
  14708. End If
  14709. Return count
  14710. End Get
  14711. End Property
  14712. '''<summary>
  14713. '''Update rows in top-down order.
  14714. '''</summary>
  14715. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14716. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  14717. Private Function UpdateUpdatedRows(ByVal dataSet As InversionesDataSet1, 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
  14718. Dim result As Integer = 0
  14719. If (Not (Me._eCALRITableAdapter) Is Nothing) Then
  14720. Dim updatedRows() As Global.System.Data.DataRow = dataSet.ECALRI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14721. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14722. If ((Not (updatedRows) Is Nothing) _
  14723. AndAlso (0 < updatedRows.Length)) Then
  14724. result = (result + Me._eCALRITableAdapter.Update(updatedRows))
  14725. allChangedRows.AddRange(updatedRows)
  14726. End If
  14727. End If
  14728. If (Not (Me._eMISTableAdapter) Is Nothing) Then
  14729. Dim updatedRows() As Global.System.Data.DataRow = dataSet.EMIS.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14730. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14731. If ((Not (updatedRows) Is Nothing) _
  14732. AndAlso (0 < updatedRows.Length)) Then
  14733. result = (result + Me._eMISTableAdapter.Update(updatedRows))
  14734. allChangedRows.AddRange(updatedRows)
  14735. End If
  14736. End If
  14737. If (Not (Me._eMPRTableAdapter) Is Nothing) Then
  14738. Dim updatedRows() As Global.System.Data.DataRow = dataSet.EMPR.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14739. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14740. If ((Not (updatedRows) Is Nothing) _
  14741. AndAlso (0 < updatedRows.Length)) Then
  14742. result = (result + Me._eMPRTableAdapter.Update(updatedRows))
  14743. allChangedRows.AddRange(updatedRows)
  14744. End If
  14745. End If
  14746. If (Not (Me._iNFITableAdapter) Is Nothing) Then
  14747. Dim updatedRows() As Global.System.Data.DataRow = dataSet.INFI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14748. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14749. If ((Not (updatedRows) Is Nothing) _
  14750. AndAlso (0 < updatedRows.Length)) Then
  14751. result = (result + Me._iNFITableAdapter.Update(updatedRows))
  14752. allChangedRows.AddRange(updatedRows)
  14753. End If
  14754. End If
  14755. If (Not (Me._pAISTableAdapter) Is Nothing) Then
  14756. Dim updatedRows() As Global.System.Data.DataRow = dataSet.PAIS.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14757. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14758. If ((Not (updatedRows) Is Nothing) _
  14759. AndAlso (0 < updatedRows.Length)) Then
  14760. result = (result + Me._pAISTableAdapter.Update(updatedRows))
  14761. allChangedRows.AddRange(updatedRows)
  14762. End If
  14763. End If
  14764. If (Not (Me._bAN0TableAdapter) Is Nothing) Then
  14765. Dim updatedRows() As Global.System.Data.DataRow = dataSet.BAN0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14766. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14767. If ((Not (updatedRows) Is Nothing) _
  14768. AndAlso (0 < updatedRows.Length)) Then
  14769. result = (result + Me._bAN0TableAdapter.Update(updatedRows))
  14770. allChangedRows.AddRange(updatedRows)
  14771. End If
  14772. End If
  14773. If (Not (Me._bAN1TableAdapter) Is Nothing) Then
  14774. Dim updatedRows() As Global.System.Data.DataRow = dataSet.BAN1.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14775. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14776. If ((Not (updatedRows) Is Nothing) _
  14777. AndAlso (0 < updatedRows.Length)) Then
  14778. result = (result + Me._bAN1TableAdapter.Update(updatedRows))
  14779. allChangedRows.AddRange(updatedRows)
  14780. End If
  14781. End If
  14782. If (Not (Me._fPAGTableAdapter) Is Nothing) Then
  14783. Dim updatedRows() As Global.System.Data.DataRow = dataSet.FPAG.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14784. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14785. If ((Not (updatedRows) Is Nothing) _
  14786. AndAlso (0 < updatedRows.Length)) Then
  14787. result = (result + Me._fPAGTableAdapter.Update(updatedRows))
  14788. allChangedRows.AddRange(updatedRows)
  14789. End If
  14790. End If
  14791. If (Not (Me._pIN0TableAdapter) Is Nothing) Then
  14792. Dim updatedRows() As Global.System.Data.DataRow = dataSet.PIN0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14793. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14794. If ((Not (updatedRows) Is Nothing) _
  14795. AndAlso (0 < updatedRows.Length)) Then
  14796. result = (result + Me._pIN0TableAdapter.Update(updatedRows))
  14797. allChangedRows.AddRange(updatedRows)
  14798. End If
  14799. End If
  14800. If (Not (Me._cALRITableAdapter) Is Nothing) Then
  14801. Dim updatedRows() As Global.System.Data.DataRow = dataSet.CALRI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14802. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14803. If ((Not (updatedRows) Is Nothing) _
  14804. AndAlso (0 < updatedRows.Length)) Then
  14805. result = (result + Me._cALRITableAdapter.Update(updatedRows))
  14806. allChangedRows.AddRange(updatedRows)
  14807. End If
  14808. End If
  14809. If (Not (Me._rPAGTableAdapter) Is Nothing) Then
  14810. Dim updatedRows() As Global.System.Data.DataRow = dataSet.RPAG.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14811. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14812. If ((Not (updatedRows) Is Nothing) _
  14813. AndAlso (0 < updatedRows.Length)) Then
  14814. result = (result + Me._rPAGTableAdapter.Update(updatedRows))
  14815. allChangedRows.AddRange(updatedRows)
  14816. End If
  14817. End If
  14818. If (Not (Me._bAN2TableAdapter) Is Nothing) Then
  14819. Dim updatedRows() As Global.System.Data.DataRow = dataSet.BAN2.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14820. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14821. If ((Not (updatedRows) Is Nothing) _
  14822. AndAlso (0 < updatedRows.Length)) Then
  14823. result = (result + Me._bAN2TableAdapter.Update(updatedRows))
  14824. allChangedRows.AddRange(updatedRows)
  14825. End If
  14826. End If
  14827. If (Not (Me._oFONTableAdapter) Is Nothing) Then
  14828. Dim updatedRows() As Global.System.Data.DataRow = dataSet.OFON.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14829. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14830. If ((Not (updatedRows) Is Nothing) _
  14831. AndAlso (0 < updatedRows.Length)) Then
  14832. result = (result + Me._oFONTableAdapter.Update(updatedRows))
  14833. allChangedRows.AddRange(updatedRows)
  14834. End If
  14835. End If
  14836. If (Not (Me._dEP0TableAdapter) Is Nothing) Then
  14837. Dim updatedRows() As Global.System.Data.DataRow = dataSet.DEP0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14838. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14839. If ((Not (updatedRows) Is Nothing) _
  14840. AndAlso (0 < updatedRows.Length)) Then
  14841. result = (result + Me._dEP0TableAdapter.Update(updatedRows))
  14842. allChangedRows.AddRange(updatedRows)
  14843. End If
  14844. End If
  14845. If (Not (Me._uSR0TableAdapter) Is Nothing) Then
  14846. Dim updatedRows() As Global.System.Data.DataRow = dataSet.USR0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  14847. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  14848. If ((Not (updatedRows) Is Nothing) _
  14849. AndAlso (0 < updatedRows.Length)) Then
  14850. result = (result + Me._uSR0TableAdapter.Update(updatedRows))
  14851. allChangedRows.AddRange(updatedRows)
  14852. End If
  14853. End If
  14854. Return result
  14855. End Function
  14856. '''<summary>
  14857. '''Insert rows in top-down order.
  14858. '''</summary>
  14859. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14860. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  14861. Private Function UpdateInsertedRows(ByVal dataSet As InversionesDataSet1, ByVal allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Integer
  14862. Dim result As Integer = 0
  14863. If (Not (Me._eCALRITableAdapter) Is Nothing) Then
  14864. Dim addedRows() As Global.System.Data.DataRow = dataSet.ECALRI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14865. If ((Not (addedRows) Is Nothing) _
  14866. AndAlso (0 < addedRows.Length)) Then
  14867. result = (result + Me._eCALRITableAdapter.Update(addedRows))
  14868. allAddedRows.AddRange(addedRows)
  14869. End If
  14870. End If
  14871. If (Not (Me._eMISTableAdapter) Is Nothing) Then
  14872. Dim addedRows() As Global.System.Data.DataRow = dataSet.EMIS.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14873. If ((Not (addedRows) Is Nothing) _
  14874. AndAlso (0 < addedRows.Length)) Then
  14875. result = (result + Me._eMISTableAdapter.Update(addedRows))
  14876. allAddedRows.AddRange(addedRows)
  14877. End If
  14878. End If
  14879. If (Not (Me._eMPRTableAdapter) Is Nothing) Then
  14880. Dim addedRows() As Global.System.Data.DataRow = dataSet.EMPR.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14881. If ((Not (addedRows) Is Nothing) _
  14882. AndAlso (0 < addedRows.Length)) Then
  14883. result = (result + Me._eMPRTableAdapter.Update(addedRows))
  14884. allAddedRows.AddRange(addedRows)
  14885. End If
  14886. End If
  14887. If (Not (Me._iNFITableAdapter) Is Nothing) Then
  14888. Dim addedRows() As Global.System.Data.DataRow = dataSet.INFI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14889. If ((Not (addedRows) Is Nothing) _
  14890. AndAlso (0 < addedRows.Length)) Then
  14891. result = (result + Me._iNFITableAdapter.Update(addedRows))
  14892. allAddedRows.AddRange(addedRows)
  14893. End If
  14894. End If
  14895. If (Not (Me._pAISTableAdapter) Is Nothing) Then
  14896. Dim addedRows() As Global.System.Data.DataRow = dataSet.PAIS.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14897. If ((Not (addedRows) Is Nothing) _
  14898. AndAlso (0 < addedRows.Length)) Then
  14899. result = (result + Me._pAISTableAdapter.Update(addedRows))
  14900. allAddedRows.AddRange(addedRows)
  14901. End If
  14902. End If
  14903. If (Not (Me._bAN0TableAdapter) Is Nothing) Then
  14904. Dim addedRows() As Global.System.Data.DataRow = dataSet.BAN0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14905. If ((Not (addedRows) Is Nothing) _
  14906. AndAlso (0 < addedRows.Length)) Then
  14907. result = (result + Me._bAN0TableAdapter.Update(addedRows))
  14908. allAddedRows.AddRange(addedRows)
  14909. End If
  14910. End If
  14911. If (Not (Me._bAN1TableAdapter) Is Nothing) Then
  14912. Dim addedRows() As Global.System.Data.DataRow = dataSet.BAN1.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14913. If ((Not (addedRows) Is Nothing) _
  14914. AndAlso (0 < addedRows.Length)) Then
  14915. result = (result + Me._bAN1TableAdapter.Update(addedRows))
  14916. allAddedRows.AddRange(addedRows)
  14917. End If
  14918. End If
  14919. If (Not (Me._fPAGTableAdapter) Is Nothing) Then
  14920. Dim addedRows() As Global.System.Data.DataRow = dataSet.FPAG.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14921. If ((Not (addedRows) Is Nothing) _
  14922. AndAlso (0 < addedRows.Length)) Then
  14923. result = (result + Me._fPAGTableAdapter.Update(addedRows))
  14924. allAddedRows.AddRange(addedRows)
  14925. End If
  14926. End If
  14927. If (Not (Me._pIN0TableAdapter) Is Nothing) Then
  14928. Dim addedRows() As Global.System.Data.DataRow = dataSet.PIN0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14929. If ((Not (addedRows) Is Nothing) _
  14930. AndAlso (0 < addedRows.Length)) Then
  14931. result = (result + Me._pIN0TableAdapter.Update(addedRows))
  14932. allAddedRows.AddRange(addedRows)
  14933. End If
  14934. End If
  14935. If (Not (Me._cALRITableAdapter) Is Nothing) Then
  14936. Dim addedRows() As Global.System.Data.DataRow = dataSet.CALRI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14937. If ((Not (addedRows) Is Nothing) _
  14938. AndAlso (0 < addedRows.Length)) Then
  14939. result = (result + Me._cALRITableAdapter.Update(addedRows))
  14940. allAddedRows.AddRange(addedRows)
  14941. End If
  14942. End If
  14943. If (Not (Me._rPAGTableAdapter) Is Nothing) Then
  14944. Dim addedRows() As Global.System.Data.DataRow = dataSet.RPAG.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14945. If ((Not (addedRows) Is Nothing) _
  14946. AndAlso (0 < addedRows.Length)) Then
  14947. result = (result + Me._rPAGTableAdapter.Update(addedRows))
  14948. allAddedRows.AddRange(addedRows)
  14949. End If
  14950. End If
  14951. If (Not (Me._bAN2TableAdapter) Is Nothing) Then
  14952. Dim addedRows() As Global.System.Data.DataRow = dataSet.BAN2.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14953. If ((Not (addedRows) Is Nothing) _
  14954. AndAlso (0 < addedRows.Length)) Then
  14955. result = (result + Me._bAN2TableAdapter.Update(addedRows))
  14956. allAddedRows.AddRange(addedRows)
  14957. End If
  14958. End If
  14959. If (Not (Me._oFONTableAdapter) Is Nothing) Then
  14960. Dim addedRows() As Global.System.Data.DataRow = dataSet.OFON.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14961. If ((Not (addedRows) Is Nothing) _
  14962. AndAlso (0 < addedRows.Length)) Then
  14963. result = (result + Me._oFONTableAdapter.Update(addedRows))
  14964. allAddedRows.AddRange(addedRows)
  14965. End If
  14966. End If
  14967. If (Not (Me._dEP0TableAdapter) Is Nothing) Then
  14968. Dim addedRows() As Global.System.Data.DataRow = dataSet.DEP0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14969. If ((Not (addedRows) Is Nothing) _
  14970. AndAlso (0 < addedRows.Length)) Then
  14971. result = (result + Me._dEP0TableAdapter.Update(addedRows))
  14972. allAddedRows.AddRange(addedRows)
  14973. End If
  14974. End If
  14975. If (Not (Me._uSR0TableAdapter) Is Nothing) Then
  14976. Dim addedRows() As Global.System.Data.DataRow = dataSet.USR0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  14977. If ((Not (addedRows) Is Nothing) _
  14978. AndAlso (0 < addedRows.Length)) Then
  14979. result = (result + Me._uSR0TableAdapter.Update(addedRows))
  14980. allAddedRows.AddRange(addedRows)
  14981. End If
  14982. End If
  14983. Return result
  14984. End Function
  14985. '''<summary>
  14986. '''Delete rows in bottom-up order.
  14987. '''</summary>
  14988. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  14989. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  14990. Private Function UpdateDeletedRows(ByVal dataSet As InversionesDataSet1, ByVal allChangedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Integer
  14991. Dim result As Integer = 0
  14992. If (Not (Me._uSR0TableAdapter) Is Nothing) Then
  14993. Dim deletedRows() As Global.System.Data.DataRow = dataSet.USR0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  14994. If ((Not (deletedRows) Is Nothing) _
  14995. AndAlso (0 < deletedRows.Length)) Then
  14996. result = (result + Me._uSR0TableAdapter.Update(deletedRows))
  14997. allChangedRows.AddRange(deletedRows)
  14998. End If
  14999. End If
  15000. If (Not (Me._dEP0TableAdapter) Is Nothing) Then
  15001. Dim deletedRows() As Global.System.Data.DataRow = dataSet.DEP0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15002. If ((Not (deletedRows) Is Nothing) _
  15003. AndAlso (0 < deletedRows.Length)) Then
  15004. result = (result + Me._dEP0TableAdapter.Update(deletedRows))
  15005. allChangedRows.AddRange(deletedRows)
  15006. End If
  15007. End If
  15008. If (Not (Me._oFONTableAdapter) Is Nothing) Then
  15009. Dim deletedRows() As Global.System.Data.DataRow = dataSet.OFON.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15010. If ((Not (deletedRows) Is Nothing) _
  15011. AndAlso (0 < deletedRows.Length)) Then
  15012. result = (result + Me._oFONTableAdapter.Update(deletedRows))
  15013. allChangedRows.AddRange(deletedRows)
  15014. End If
  15015. End If
  15016. If (Not (Me._bAN2TableAdapter) Is Nothing) Then
  15017. Dim deletedRows() As Global.System.Data.DataRow = dataSet.BAN2.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15018. If ((Not (deletedRows) Is Nothing) _
  15019. AndAlso (0 < deletedRows.Length)) Then
  15020. result = (result + Me._bAN2TableAdapter.Update(deletedRows))
  15021. allChangedRows.AddRange(deletedRows)
  15022. End If
  15023. End If
  15024. If (Not (Me._rPAGTableAdapter) Is Nothing) Then
  15025. Dim deletedRows() As Global.System.Data.DataRow = dataSet.RPAG.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15026. If ((Not (deletedRows) Is Nothing) _
  15027. AndAlso (0 < deletedRows.Length)) Then
  15028. result = (result + Me._rPAGTableAdapter.Update(deletedRows))
  15029. allChangedRows.AddRange(deletedRows)
  15030. End If
  15031. End If
  15032. If (Not (Me._cALRITableAdapter) Is Nothing) Then
  15033. Dim deletedRows() As Global.System.Data.DataRow = dataSet.CALRI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15034. If ((Not (deletedRows) Is Nothing) _
  15035. AndAlso (0 < deletedRows.Length)) Then
  15036. result = (result + Me._cALRITableAdapter.Update(deletedRows))
  15037. allChangedRows.AddRange(deletedRows)
  15038. End If
  15039. End If
  15040. If (Not (Me._pIN0TableAdapter) Is Nothing) Then
  15041. Dim deletedRows() As Global.System.Data.DataRow = dataSet.PIN0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15042. If ((Not (deletedRows) Is Nothing) _
  15043. AndAlso (0 < deletedRows.Length)) Then
  15044. result = (result + Me._pIN0TableAdapter.Update(deletedRows))
  15045. allChangedRows.AddRange(deletedRows)
  15046. End If
  15047. End If
  15048. If (Not (Me._fPAGTableAdapter) Is Nothing) Then
  15049. Dim deletedRows() As Global.System.Data.DataRow = dataSet.FPAG.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15050. If ((Not (deletedRows) Is Nothing) _
  15051. AndAlso (0 < deletedRows.Length)) Then
  15052. result = (result + Me._fPAGTableAdapter.Update(deletedRows))
  15053. allChangedRows.AddRange(deletedRows)
  15054. End If
  15055. End If
  15056. If (Not (Me._bAN1TableAdapter) Is Nothing) Then
  15057. Dim deletedRows() As Global.System.Data.DataRow = dataSet.BAN1.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15058. If ((Not (deletedRows) Is Nothing) _
  15059. AndAlso (0 < deletedRows.Length)) Then
  15060. result = (result + Me._bAN1TableAdapter.Update(deletedRows))
  15061. allChangedRows.AddRange(deletedRows)
  15062. End If
  15063. End If
  15064. If (Not (Me._bAN0TableAdapter) Is Nothing) Then
  15065. Dim deletedRows() As Global.System.Data.DataRow = dataSet.BAN0.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15066. If ((Not (deletedRows) Is Nothing) _
  15067. AndAlso (0 < deletedRows.Length)) Then
  15068. result = (result + Me._bAN0TableAdapter.Update(deletedRows))
  15069. allChangedRows.AddRange(deletedRows)
  15070. End If
  15071. End If
  15072. If (Not (Me._pAISTableAdapter) Is Nothing) Then
  15073. Dim deletedRows() As Global.System.Data.DataRow = dataSet.PAIS.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15074. If ((Not (deletedRows) Is Nothing) _
  15075. AndAlso (0 < deletedRows.Length)) Then
  15076. result = (result + Me._pAISTableAdapter.Update(deletedRows))
  15077. allChangedRows.AddRange(deletedRows)
  15078. End If
  15079. End If
  15080. If (Not (Me._iNFITableAdapter) Is Nothing) Then
  15081. Dim deletedRows() As Global.System.Data.DataRow = dataSet.INFI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15082. If ((Not (deletedRows) Is Nothing) _
  15083. AndAlso (0 < deletedRows.Length)) Then
  15084. result = (result + Me._iNFITableAdapter.Update(deletedRows))
  15085. allChangedRows.AddRange(deletedRows)
  15086. End If
  15087. End If
  15088. If (Not (Me._eMPRTableAdapter) Is Nothing) Then
  15089. Dim deletedRows() As Global.System.Data.DataRow = dataSet.EMPR.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15090. If ((Not (deletedRows) Is Nothing) _
  15091. AndAlso (0 < deletedRows.Length)) Then
  15092. result = (result + Me._eMPRTableAdapter.Update(deletedRows))
  15093. allChangedRows.AddRange(deletedRows)
  15094. End If
  15095. End If
  15096. If (Not (Me._eMISTableAdapter) Is Nothing) Then
  15097. Dim deletedRows() As Global.System.Data.DataRow = dataSet.EMIS.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15098. If ((Not (deletedRows) Is Nothing) _
  15099. AndAlso (0 < deletedRows.Length)) Then
  15100. result = (result + Me._eMISTableAdapter.Update(deletedRows))
  15101. allChangedRows.AddRange(deletedRows)
  15102. End If
  15103. End If
  15104. If (Not (Me._eCALRITableAdapter) Is Nothing) Then
  15105. Dim deletedRows() As Global.System.Data.DataRow = dataSet.ECALRI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  15106. If ((Not (deletedRows) Is Nothing) _
  15107. AndAlso (0 < deletedRows.Length)) Then
  15108. result = (result + Me._eCALRITableAdapter.Update(deletedRows))
  15109. allChangedRows.AddRange(deletedRows)
  15110. End If
  15111. End If
  15112. Return result
  15113. End Function
  15114. '''<summary>
  15115. '''Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  15116. '''</summary>
  15117. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  15118. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  15119. 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()
  15120. If ((updatedRows Is Nothing) _
  15121. OrElse (updatedRows.Length < 1)) Then
  15122. Return updatedRows
  15123. End If
  15124. If ((allAddedRows Is Nothing) _
  15125. OrElse (allAddedRows.Count < 1)) Then
  15126. Return updatedRows
  15127. End If
  15128. Dim realUpdatedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
  15129. Dim i As Integer = 0
  15130. Do While (i < updatedRows.Length)
  15131. Dim row As Global.System.Data.DataRow = updatedRows(i)
  15132. If (allAddedRows.Contains(row) = false) Then
  15133. realUpdatedRows.Add(row)
  15134. End If
  15135. i = (i + 1)
  15136. Loop
  15137. Return realUpdatedRows.ToArray
  15138. End Function
  15139. '''<summary>
  15140. '''Update all changes to the dataset.
  15141. '''</summary>
  15142. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  15143. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  15144. Public Overridable Function UpdateAll(ByVal dataSet As InversionesDataSet1) As Integer
  15145. If (dataSet Is Nothing) Then
  15146. Throw New Global.System.ArgumentNullException("dataSet")
  15147. End If
  15148. If (dataSet.HasChanges = false) Then
  15149. Return 0
  15150. End If
  15151. If ((Not (Me._eCALRITableAdapter) Is Nothing) _
  15152. AndAlso (Me.MatchTableAdapterConnection(Me._eCALRITableAdapter.Connection) = false)) Then
  15153. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15154. "sma cadena de conexión.")
  15155. End If
  15156. If ((Not (Me._eMISTableAdapter) Is Nothing) _
  15157. AndAlso (Me.MatchTableAdapterConnection(Me._eMISTableAdapter.Connection) = false)) Then
  15158. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15159. "sma cadena de conexión.")
  15160. End If
  15161. If ((Not (Me._eMPRTableAdapter) Is Nothing) _
  15162. AndAlso (Me.MatchTableAdapterConnection(Me._eMPRTableAdapter.Connection) = false)) Then
  15163. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15164. "sma cadena de conexión.")
  15165. End If
  15166. If ((Not (Me._iNFITableAdapter) Is Nothing) _
  15167. AndAlso (Me.MatchTableAdapterConnection(Me._iNFITableAdapter.Connection) = false)) Then
  15168. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15169. "sma cadena de conexión.")
  15170. End If
  15171. If ((Not (Me._pAISTableAdapter) Is Nothing) _
  15172. AndAlso (Me.MatchTableAdapterConnection(Me._pAISTableAdapter.Connection) = false)) Then
  15173. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15174. "sma cadena de conexión.")
  15175. End If
  15176. If ((Not (Me._bAN0TableAdapter) Is Nothing) _
  15177. AndAlso (Me.MatchTableAdapterConnection(Me._bAN0TableAdapter.Connection) = false)) Then
  15178. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15179. "sma cadena de conexión.")
  15180. End If
  15181. If ((Not (Me._bAN1TableAdapter) Is Nothing) _
  15182. AndAlso (Me.MatchTableAdapterConnection(Me._bAN1TableAdapter.Connection) = false)) Then
  15183. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15184. "sma cadena de conexión.")
  15185. End If
  15186. If ((Not (Me._fPAGTableAdapter) Is Nothing) _
  15187. AndAlso (Me.MatchTableAdapterConnection(Me._fPAGTableAdapter.Connection) = false)) Then
  15188. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15189. "sma cadena de conexión.")
  15190. End If
  15191. If ((Not (Me._pIN0TableAdapter) Is Nothing) _
  15192. AndAlso (Me.MatchTableAdapterConnection(Me._pIN0TableAdapter.Connection) = false)) Then
  15193. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15194. "sma cadena de conexión.")
  15195. End If
  15196. If ((Not (Me._cALRITableAdapter) Is Nothing) _
  15197. AndAlso (Me.MatchTableAdapterConnection(Me._cALRITableAdapter.Connection) = false)) Then
  15198. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15199. "sma cadena de conexión.")
  15200. End If
  15201. If ((Not (Me._rPAGTableAdapter) Is Nothing) _
  15202. AndAlso (Me.MatchTableAdapterConnection(Me._rPAGTableAdapter.Connection) = false)) Then
  15203. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15204. "sma cadena de conexión.")
  15205. End If
  15206. If ((Not (Me._bAN2TableAdapter) Is Nothing) _
  15207. AndAlso (Me.MatchTableAdapterConnection(Me._bAN2TableAdapter.Connection) = false)) Then
  15208. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15209. "sma cadena de conexión.")
  15210. End If
  15211. If ((Not (Me._oFONTableAdapter) Is Nothing) _
  15212. AndAlso (Me.MatchTableAdapterConnection(Me._oFONTableAdapter.Connection) = false)) Then
  15213. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15214. "sma cadena de conexión.")
  15215. End If
  15216. If ((Not (Me._dEP0TableAdapter) Is Nothing) _
  15217. AndAlso (Me.MatchTableAdapterConnection(Me._dEP0TableAdapter.Connection) = false)) Then
  15218. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15219. "sma cadena de conexión.")
  15220. End If
  15221. If ((Not (Me._uSR0TableAdapter) Is Nothing) _
  15222. AndAlso (Me.MatchTableAdapterConnection(Me._uSR0TableAdapter.Connection) = false)) Then
  15223. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  15224. "sma cadena de conexión.")
  15225. End If
  15226. Dim workConnection As Global.System.Data.IDbConnection = Me.Connection
  15227. If (workConnection Is Nothing) Then
  15228. Throw New Global.System.ApplicationException("TableAdapterManager no contiene información de conexión. Establezca cada propieda"& _
  15229. "d TableAdapterManager TableAdapter en una instancia TableAdapter válida.")
  15230. End If
  15231. Dim workConnOpened As Boolean = false
  15232. If ((workConnection.State And Global.System.Data.ConnectionState.Broken) _
  15233. = Global.System.Data.ConnectionState.Broken) Then
  15234. workConnection.Close
  15235. End If
  15236. If (workConnection.State = Global.System.Data.ConnectionState.Closed) Then
  15237. workConnection.Open
  15238. workConnOpened = true
  15239. End If
  15240. Dim workTransaction As Global.System.Data.IDbTransaction = workConnection.BeginTransaction
  15241. If (workTransaction Is Nothing) Then
  15242. Throw New Global.System.ApplicationException("La transacción no puede comenzar. La conexión de datos actual no es compatible co"& _
  15243. "n las transacciones o el estado actual no permite que comience la transacción.")
  15244. End If
  15245. Dim allChangedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
  15246. Dim allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
  15247. 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)()
  15248. 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)()
  15249. Dim result As Integer = 0
  15250. Dim backupDataSet As Global.System.Data.DataSet = Nothing
  15251. If Me.BackupDataSetBeforeUpdate Then
  15252. backupDataSet = New Global.System.Data.DataSet()
  15253. backupDataSet.Merge(dataSet)
  15254. End If
  15255. Try
  15256. '---- Prepare for update -----------
  15257. '
  15258. If (Not (Me._eCALRITableAdapter) Is Nothing) Then
  15259. revertConnections.Add(Me._eCALRITableAdapter, Me._eCALRITableAdapter.Connection)
  15260. Me._eCALRITableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15261. Me._eCALRITableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15262. If Me._eCALRITableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15263. Me._eCALRITableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15264. adaptersWithAcceptChangesDuringUpdate.Add(Me._eCALRITableAdapter.Adapter)
  15265. End If
  15266. End If
  15267. If (Not (Me._eMISTableAdapter) Is Nothing) Then
  15268. revertConnections.Add(Me._eMISTableAdapter, Me._eMISTableAdapter.Connection)
  15269. Me._eMISTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15270. Me._eMISTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15271. If Me._eMISTableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15272. Me._eMISTableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15273. adaptersWithAcceptChangesDuringUpdate.Add(Me._eMISTableAdapter.Adapter)
  15274. End If
  15275. End If
  15276. If (Not (Me._eMPRTableAdapter) Is Nothing) Then
  15277. revertConnections.Add(Me._eMPRTableAdapter, Me._eMPRTableAdapter.Connection)
  15278. Me._eMPRTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15279. Me._eMPRTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15280. If Me._eMPRTableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15281. Me._eMPRTableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15282. adaptersWithAcceptChangesDuringUpdate.Add(Me._eMPRTableAdapter.Adapter)
  15283. End If
  15284. End If
  15285. If (Not (Me._iNFITableAdapter) Is Nothing) Then
  15286. revertConnections.Add(Me._iNFITableAdapter, Me._iNFITableAdapter.Connection)
  15287. Me._iNFITableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15288. Me._iNFITableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15289. If Me._iNFITableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15290. Me._iNFITableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15291. adaptersWithAcceptChangesDuringUpdate.Add(Me._iNFITableAdapter.Adapter)
  15292. End If
  15293. End If
  15294. If (Not (Me._pAISTableAdapter) Is Nothing) Then
  15295. revertConnections.Add(Me._pAISTableAdapter, Me._pAISTableAdapter.Connection)
  15296. Me._pAISTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15297. Me._pAISTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15298. If Me._pAISTableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15299. Me._pAISTableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15300. adaptersWithAcceptChangesDuringUpdate.Add(Me._pAISTableAdapter.Adapter)
  15301. End If
  15302. End If
  15303. If (Not (Me._bAN0TableAdapter) Is Nothing) Then
  15304. revertConnections.Add(Me._bAN0TableAdapter, Me._bAN0TableAdapter.Connection)
  15305. Me._bAN0TableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15306. Me._bAN0TableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15307. If Me._bAN0TableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15308. Me._bAN0TableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15309. adaptersWithAcceptChangesDuringUpdate.Add(Me._bAN0TableAdapter.Adapter)
  15310. End If
  15311. End If
  15312. If (Not (Me._bAN1TableAdapter) Is Nothing) Then
  15313. revertConnections.Add(Me._bAN1TableAdapter, Me._bAN1TableAdapter.Connection)
  15314. Me._bAN1TableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15315. Me._bAN1TableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15316. If Me._bAN1TableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15317. Me._bAN1TableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15318. adaptersWithAcceptChangesDuringUpdate.Add(Me._bAN1TableAdapter.Adapter)
  15319. End If
  15320. End If
  15321. If (Not (Me._fPAGTableAdapter) Is Nothing) Then
  15322. revertConnections.Add(Me._fPAGTableAdapter, Me._fPAGTableAdapter.Connection)
  15323. Me._fPAGTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15324. Me._fPAGTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15325. If Me._fPAGTableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15326. Me._fPAGTableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15327. adaptersWithAcceptChangesDuringUpdate.Add(Me._fPAGTableAdapter.Adapter)
  15328. End If
  15329. End If
  15330. If (Not (Me._pIN0TableAdapter) Is Nothing) Then
  15331. revertConnections.Add(Me._pIN0TableAdapter, Me._pIN0TableAdapter.Connection)
  15332. Me._pIN0TableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15333. Me._pIN0TableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15334. If Me._pIN0TableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15335. Me._pIN0TableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15336. adaptersWithAcceptChangesDuringUpdate.Add(Me._pIN0TableAdapter.Adapter)
  15337. End If
  15338. End If
  15339. If (Not (Me._cALRITableAdapter) Is Nothing) Then
  15340. revertConnections.Add(Me._cALRITableAdapter, Me._cALRITableAdapter.Connection)
  15341. Me._cALRITableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15342. Me._cALRITableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15343. If Me._cALRITableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15344. Me._cALRITableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15345. adaptersWithAcceptChangesDuringUpdate.Add(Me._cALRITableAdapter.Adapter)
  15346. End If
  15347. End If
  15348. If (Not (Me._rPAGTableAdapter) Is Nothing) Then
  15349. revertConnections.Add(Me._rPAGTableAdapter, Me._rPAGTableAdapter.Connection)
  15350. Me._rPAGTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15351. Me._rPAGTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15352. If Me._rPAGTableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15353. Me._rPAGTableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15354. adaptersWithAcceptChangesDuringUpdate.Add(Me._rPAGTableAdapter.Adapter)
  15355. End If
  15356. End If
  15357. If (Not (Me._bAN2TableAdapter) Is Nothing) Then
  15358. revertConnections.Add(Me._bAN2TableAdapter, Me._bAN2TableAdapter.Connection)
  15359. Me._bAN2TableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15360. Me._bAN2TableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15361. If Me._bAN2TableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15362. Me._bAN2TableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15363. adaptersWithAcceptChangesDuringUpdate.Add(Me._bAN2TableAdapter.Adapter)
  15364. End If
  15365. End If
  15366. If (Not (Me._oFONTableAdapter) Is Nothing) Then
  15367. revertConnections.Add(Me._oFONTableAdapter, Me._oFONTableAdapter.Connection)
  15368. Me._oFONTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15369. Me._oFONTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15370. If Me._oFONTableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15371. Me._oFONTableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15372. adaptersWithAcceptChangesDuringUpdate.Add(Me._oFONTableAdapter.Adapter)
  15373. End If
  15374. End If
  15375. If (Not (Me._dEP0TableAdapter) Is Nothing) Then
  15376. revertConnections.Add(Me._dEP0TableAdapter, Me._dEP0TableAdapter.Connection)
  15377. Me._dEP0TableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15378. Me._dEP0TableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15379. If Me._dEP0TableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15380. Me._dEP0TableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15381. adaptersWithAcceptChangesDuringUpdate.Add(Me._dEP0TableAdapter.Adapter)
  15382. End If
  15383. End If
  15384. If (Not (Me._uSR0TableAdapter) Is Nothing) Then
  15385. revertConnections.Add(Me._uSR0TableAdapter, Me._uSR0TableAdapter.Connection)
  15386. Me._uSR0TableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  15387. Me._uSR0TableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  15388. If Me._uSR0TableAdapter.Adapter.AcceptChangesDuringUpdate Then
  15389. Me._uSR0TableAdapter.Adapter.AcceptChangesDuringUpdate = false
  15390. adaptersWithAcceptChangesDuringUpdate.Add(Me._uSR0TableAdapter.Adapter)
  15391. End If
  15392. End If
  15393. '
  15394. '---- Perform updates -----------
  15395. '
  15396. If (Me.UpdateOrder = UpdateOrderOption.UpdateInsertDelete) Then
  15397. result = (result + Me.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows))
  15398. result = (result + Me.UpdateInsertedRows(dataSet, allAddedRows))
  15399. Else
  15400. result = (result + Me.UpdateInsertedRows(dataSet, allAddedRows))
  15401. result = (result + Me.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows))
  15402. End If
  15403. result = (result + Me.UpdateDeletedRows(dataSet, allChangedRows))
  15404. '
  15405. '---- Commit updates -----------
  15406. '
  15407. workTransaction.Commit
  15408. If (0 < allAddedRows.Count) Then
  15409. Dim rows((allAddedRows.Count) - 1) As Global.System.Data.DataRow
  15410. allAddedRows.CopyTo(rows)
  15411. Dim i As Integer = 0
  15412. Do While (i < rows.Length)
  15413. Dim row As Global.System.Data.DataRow = rows(i)
  15414. row.AcceptChanges
  15415. i = (i + 1)
  15416. Loop
  15417. End If
  15418. If (0 < allChangedRows.Count) Then
  15419. Dim rows((allChangedRows.Count) - 1) As Global.System.Data.DataRow
  15420. allChangedRows.CopyTo(rows)
  15421. Dim i As Integer = 0
  15422. Do While (i < rows.Length)
  15423. Dim row As Global.System.Data.DataRow = rows(i)
  15424. row.AcceptChanges
  15425. i = (i + 1)
  15426. Loop
  15427. End If
  15428. Catch ex As Global.System.Exception
  15429. workTransaction.Rollback
  15430. '---- Restore the dataset -----------
  15431. If Me.BackupDataSetBeforeUpdate Then
  15432. Global.System.Diagnostics.Debug.Assert((Not (backupDataSet) Is Nothing))
  15433. dataSet.Clear
  15434. dataSet.Merge(backupDataSet)
  15435. Else
  15436. If (0 < allAddedRows.Count) Then
  15437. Dim rows((allAddedRows.Count) - 1) As Global.System.Data.DataRow
  15438. allAddedRows.CopyTo(rows)
  15439. Dim i As Integer = 0
  15440. Do While (i < rows.Length)
  15441. Dim row As Global.System.Data.DataRow = rows(i)
  15442. row.AcceptChanges
  15443. row.SetAdded
  15444. i = (i + 1)
  15445. Loop
  15446. End If
  15447. End If
  15448. Throw ex
  15449. Finally
  15450. If workConnOpened Then
  15451. workConnection.Close
  15452. End If
  15453. If (Not (Me._eCALRITableAdapter) Is Nothing) Then
  15454. Me._eCALRITableAdapter.Connection = CType(revertConnections(Me._eCALRITableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15455. Me._eCALRITableAdapter.Transaction = Nothing
  15456. End If
  15457. If (Not (Me._eMISTableAdapter) Is Nothing) Then
  15458. Me._eMISTableAdapter.Connection = CType(revertConnections(Me._eMISTableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15459. Me._eMISTableAdapter.Transaction = Nothing
  15460. End If
  15461. If (Not (Me._eMPRTableAdapter) Is Nothing) Then
  15462. Me._eMPRTableAdapter.Connection = CType(revertConnections(Me._eMPRTableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15463. Me._eMPRTableAdapter.Transaction = Nothing
  15464. End If
  15465. If (Not (Me._iNFITableAdapter) Is Nothing) Then
  15466. Me._iNFITableAdapter.Connection = CType(revertConnections(Me._iNFITableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15467. Me._iNFITableAdapter.Transaction = Nothing
  15468. End If
  15469. If (Not (Me._pAISTableAdapter) Is Nothing) Then
  15470. Me._pAISTableAdapter.Connection = CType(revertConnections(Me._pAISTableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15471. Me._pAISTableAdapter.Transaction = Nothing
  15472. End If
  15473. If (Not (Me._bAN0TableAdapter) Is Nothing) Then
  15474. Me._bAN0TableAdapter.Connection = CType(revertConnections(Me._bAN0TableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15475. Me._bAN0TableAdapter.Transaction = Nothing
  15476. End If
  15477. If (Not (Me._bAN1TableAdapter) Is Nothing) Then
  15478. Me._bAN1TableAdapter.Connection = CType(revertConnections(Me._bAN1TableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15479. Me._bAN1TableAdapter.Transaction = Nothing
  15480. End If
  15481. If (Not (Me._fPAGTableAdapter) Is Nothing) Then
  15482. Me._fPAGTableAdapter.Connection = CType(revertConnections(Me._fPAGTableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15483. Me._fPAGTableAdapter.Transaction = Nothing
  15484. End If
  15485. If (Not (Me._pIN0TableAdapter) Is Nothing) Then
  15486. Me._pIN0TableAdapter.Connection = CType(revertConnections(Me._pIN0TableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15487. Me._pIN0TableAdapter.Transaction = Nothing
  15488. End If
  15489. If (Not (Me._cALRITableAdapter) Is Nothing) Then
  15490. Me._cALRITableAdapter.Connection = CType(revertConnections(Me._cALRITableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15491. Me._cALRITableAdapter.Transaction = Nothing
  15492. End If
  15493. If (Not (Me._rPAGTableAdapter) Is Nothing) Then
  15494. Me._rPAGTableAdapter.Connection = CType(revertConnections(Me._rPAGTableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15495. Me._rPAGTableAdapter.Transaction = Nothing
  15496. End If
  15497. If (Not (Me._bAN2TableAdapter) Is Nothing) Then
  15498. Me._bAN2TableAdapter.Connection = CType(revertConnections(Me._bAN2TableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15499. Me._bAN2TableAdapter.Transaction = Nothing
  15500. End If
  15501. If (Not (Me._oFONTableAdapter) Is Nothing) Then
  15502. Me._oFONTableAdapter.Connection = CType(revertConnections(Me._oFONTableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15503. Me._oFONTableAdapter.Transaction = Nothing
  15504. End If
  15505. If (Not (Me._dEP0TableAdapter) Is Nothing) Then
  15506. Me._dEP0TableAdapter.Connection = CType(revertConnections(Me._dEP0TableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15507. Me._dEP0TableAdapter.Transaction = Nothing
  15508. End If
  15509. If (Not (Me._uSR0TableAdapter) Is Nothing) Then
  15510. Me._uSR0TableAdapter.Connection = CType(revertConnections(Me._uSR0TableAdapter),Global.System.Data.SqlClient.SqlConnection)
  15511. Me._uSR0TableAdapter.Transaction = Nothing
  15512. End If
  15513. If (0 < adaptersWithAcceptChangesDuringUpdate.Count) Then
  15514. Dim adapters((adaptersWithAcceptChangesDuringUpdate.Count) - 1) As Global.System.Data.Common.DataAdapter
  15515. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters)
  15516. Dim i As Integer = 0
  15517. Do While (i < adapters.Length)
  15518. Dim adapter As Global.System.Data.Common.DataAdapter = adapters(i)
  15519. adapter.AcceptChangesDuringUpdate = true
  15520. i = (i + 1)
  15521. Loop
  15522. End If
  15523. End Try
  15524. Return result
  15525. End Function
  15526. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  15527. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  15528. Protected Overridable Sub SortSelfReferenceRows(ByVal rows() As Global.System.Data.DataRow, ByVal relation As Global.System.Data.DataRelation, ByVal childFirst As Boolean)
  15529. Global.System.Array.Sort(Of Global.System.Data.DataRow)(rows, New SelfReferenceComparer(relation, childFirst))
  15530. End Sub
  15531. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  15532. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  15533. Protected Overridable Function MatchTableAdapterConnection(ByVal inputConnection As Global.System.Data.IDbConnection) As Boolean
  15534. If (Not (Me._connection) Is Nothing) Then
  15535. Return true
  15536. End If
  15537. If ((Me.Connection Is Nothing) _
  15538. OrElse (inputConnection Is Nothing)) Then
  15539. Return true
  15540. End If
  15541. If String.Equals(Me.Connection.ConnectionString, inputConnection.ConnectionString, Global.System.StringComparison.Ordinal) Then
  15542. Return true
  15543. End If
  15544. Return false
  15545. End Function
  15546. '''<summary>
  15547. '''Update Order Option
  15548. '''</summary>
  15549. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  15550. Public Enum UpdateOrderOption
  15551. InsertUpdateDelete = 0
  15552. UpdateInsertDelete = 1
  15553. End Enum
  15554. '''<summary>
  15555. '''Used to sort self-referenced table's rows
  15556. '''</summary>
  15557. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  15558. Private Class SelfReferenceComparer
  15559. Inherits Object
  15560. Implements Global.System.Collections.Generic.IComparer(Of Global.System.Data.DataRow)
  15561. Private _relation As Global.System.Data.DataRelation
  15562. Private _childFirst As Integer
  15563. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  15564. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  15565. Friend Sub New(ByVal relation As Global.System.Data.DataRelation, ByVal childFirst As Boolean)
  15566. MyBase.New
  15567. Me._relation = relation
  15568. If childFirst Then
  15569. Me._childFirst = -1
  15570. Else
  15571. Me._childFirst = 1
  15572. End If
  15573. End Sub
  15574. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  15575. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  15576. Private Function GetRoot(ByVal row As Global.System.Data.DataRow, ByRef distance As Integer) As Global.System.Data.DataRow
  15577. Global.System.Diagnostics.Debug.Assert((Not (row) Is Nothing))
  15578. Dim root As Global.System.Data.DataRow = row
  15579. distance = 0
  15580. 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)()
  15581. traversedRows(row) = row
  15582. Dim parent As Global.System.Data.DataRow = row.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.[Default])
  15583. Do While ((Not (parent) Is Nothing) _
  15584. AndAlso (traversedRows.ContainsKey(parent) = false))
  15585. distance = (distance + 1)
  15586. root = parent
  15587. traversedRows(parent) = parent
  15588. parent = parent.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.[Default])
  15589. Loop
  15590. If (distance = 0) Then
  15591. traversedRows.Clear
  15592. traversedRows(row) = row
  15593. parent = row.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.Original)
  15594. Do While ((Not (parent) Is Nothing) _
  15595. AndAlso (traversedRows.ContainsKey(parent) = false))
  15596. distance = (distance + 1)
  15597. root = parent
  15598. traversedRows(parent) = parent
  15599. parent = parent.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.Original)
  15600. Loop
  15601. End If
  15602. Return root
  15603. End Function
  15604. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  15605. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")> _
  15606. 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
  15607. If Object.ReferenceEquals(row1, row2) Then
  15608. Return 0
  15609. End If
  15610. If (row1 Is Nothing) Then
  15611. Return -1
  15612. End If
  15613. If (row2 Is Nothing) Then
  15614. Return 1
  15615. End If
  15616. Dim distance1 As Integer = 0
  15617. Dim root1 As Global.System.Data.DataRow = Me.GetRoot(row1, distance1)
  15618. Dim distance2 As Integer = 0
  15619. Dim root2 As Global.System.Data.DataRow = Me.GetRoot(row2, distance2)
  15620. If Object.ReferenceEquals(root1, root2) Then
  15621. Return (Me._childFirst * distance1.CompareTo(distance2))
  15622. Else
  15623. Global.System.Diagnostics.Debug.Assert(((Not (root1.Table) Is Nothing) _
  15624. AndAlso (Not (root2.Table) Is Nothing)))
  15625. If (root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2)) Then
  15626. Return -1
  15627. Else
  15628. Return 1
  15629. End If
  15630. End If
  15631. End Function
  15632. End Class
  15633. End Class
  15634. End Namespace