dsInversiones.Designer.vb 342 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987
  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("dsInversiones"), _
  20. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")> _
  21. Partial Public Class dsInversiones
  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 _schemaSerializationMode As Global.System.Data.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
  30. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  31. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  32. Public Sub New()
  33. MyBase.New
  34. Me.BeginInit
  35. Me.InitClass
  36. Dim schemaChangedHandler As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
  37. AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
  38. AddHandler MyBase.Relations.CollectionChanged, schemaChangedHandler
  39. Me.EndInit
  40. End Sub
  41. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  42. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  43. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  44. MyBase.New(info, context, false)
  45. If (Me.IsBinarySerialized(info, context) = true) Then
  46. Me.InitVars(false)
  47. Dim schemaChangedHandler1 As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
  48. AddHandler Me.Tables.CollectionChanged, schemaChangedHandler1
  49. AddHandler Me.Relations.CollectionChanged, schemaChangedHandler1
  50. Return
  51. End If
  52. Dim strSchema As String = CType(info.GetValue("XmlSchema", GetType(String)),String)
  53. If (Me.DetermineSchemaSerializationMode(info, context) = Global.System.Data.SchemaSerializationMode.IncludeSchema) Then
  54. Dim ds As Global.System.Data.DataSet = New Global.System.Data.DataSet()
  55. ds.ReadXmlSchema(New Global.System.Xml.XmlTextReader(New Global.System.IO.StringReader(strSchema)))
  56. If (Not (ds.Tables("ECALRI")) Is Nothing) Then
  57. MyBase.Tables.Add(New ECALRIDataTable(ds.Tables("ECALRI")))
  58. End If
  59. If (Not (ds.Tables("EMIS")) Is Nothing) Then
  60. MyBase.Tables.Add(New EMISDataTable(ds.Tables("EMIS")))
  61. End If
  62. If (Not (ds.Tables("EMPR")) Is Nothing) Then
  63. MyBase.Tables.Add(New EMPRDataTable(ds.Tables("EMPR")))
  64. End If
  65. If (Not (ds.Tables("INFI")) Is Nothing) Then
  66. MyBase.Tables.Add(New INFIDataTable(ds.Tables("INFI")))
  67. End If
  68. If (Not (ds.Tables("PAIS")) Is Nothing) Then
  69. MyBase.Tables.Add(New PAISDataTable(ds.Tables("PAIS")))
  70. End If
  71. If (Not (ds.Tables("SP_InventarioMaster")) Is Nothing) Then
  72. MyBase.Tables.Add(New SP_InventarioMasterDataTable(ds.Tables("SP_InventarioMaster")))
  73. End If
  74. Me.DataSetName = ds.DataSetName
  75. Me.Prefix = ds.Prefix
  76. Me.Namespace = ds.Namespace
  77. Me.Locale = ds.Locale
  78. Me.CaseSensitive = ds.CaseSensitive
  79. Me.EnforceConstraints = ds.EnforceConstraints
  80. Me.Merge(ds, false, Global.System.Data.MissingSchemaAction.Add)
  81. Me.InitVars
  82. Else
  83. Me.ReadXmlSchema(New Global.System.Xml.XmlTextReader(New Global.System.IO.StringReader(strSchema)))
  84. End If
  85. Me.GetSerializationData(info, context)
  86. Dim schemaChangedHandler As Global.System.ComponentModel.CollectionChangeEventHandler = AddressOf Me.SchemaChanged
  87. AddHandler MyBase.Tables.CollectionChanged, schemaChangedHandler
  88. AddHandler Me.Relations.CollectionChanged, schemaChangedHandler
  89. End Sub
  90. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  91. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  92. Global.System.ComponentModel.Browsable(false), _
  93. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  94. Public ReadOnly Property ECALRI() As ECALRIDataTable
  95. Get
  96. Return Me.tableECALRI
  97. End Get
  98. End Property
  99. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  100. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  101. Global.System.ComponentModel.Browsable(false), _
  102. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  103. Public ReadOnly Property EMIS() As EMISDataTable
  104. Get
  105. Return Me.tableEMIS
  106. End Get
  107. End Property
  108. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  109. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  110. Global.System.ComponentModel.Browsable(false), _
  111. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  112. Public ReadOnly Property EMPR() As EMPRDataTable
  113. Get
  114. Return Me.tableEMPR
  115. End Get
  116. End Property
  117. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  118. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  119. Global.System.ComponentModel.Browsable(false), _
  120. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  121. Public ReadOnly Property INFI() As INFIDataTable
  122. Get
  123. Return Me.tableINFI
  124. End Get
  125. End Property
  126. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  127. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  128. Global.System.ComponentModel.Browsable(false), _
  129. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  130. Public ReadOnly Property PAIS() As PAISDataTable
  131. Get
  132. Return Me.tablePAIS
  133. End Get
  134. End Property
  135. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  136. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  137. Global.System.ComponentModel.Browsable(false), _
  138. Global.System.ComponentModel.DesignerSerializationVisibility(Global.System.ComponentModel.DesignerSerializationVisibility.Content)> _
  139. Public ReadOnly Property SP_InventarioMaster() As SP_InventarioMasterDataTable
  140. Get
  141. Return Me.tableSP_InventarioMaster
  142. End Get
  143. End Property
  144. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  145. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  146. Global.System.ComponentModel.BrowsableAttribute(true), _
  147. Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Visible)> _
  148. Public Overrides Property SchemaSerializationMode() As Global.System.Data.SchemaSerializationMode
  149. Get
  150. Return Me._schemaSerializationMode
  151. End Get
  152. Set
  153. Me._schemaSerializationMode = value
  154. End Set
  155. End Property
  156. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  157. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  158. Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  159. Public Shadows ReadOnly Property Tables() As Global.System.Data.DataTableCollection
  160. Get
  161. Return MyBase.Tables
  162. End Get
  163. End Property
  164. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  165. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  166. Global.System.ComponentModel.DesignerSerializationVisibilityAttribute(Global.System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  167. Public Shadows ReadOnly Property Relations() As Global.System.Data.DataRelationCollection
  168. Get
  169. Return MyBase.Relations
  170. End Get
  171. End Property
  172. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  173. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  174. Protected Overrides Sub InitializeDerivedDataSet()
  175. Me.BeginInit
  176. Me.InitClass
  177. Me.EndInit
  178. End Sub
  179. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  180. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  181. Public Overrides Function Clone() As Global.System.Data.DataSet
  182. Dim cln As dsInversiones = CType(MyBase.Clone,dsInversiones)
  183. cln.InitVars
  184. cln.SchemaSerializationMode = Me.SchemaSerializationMode
  185. Return cln
  186. End Function
  187. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  188. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  189. Protected Overrides Function ShouldSerializeTables() As Boolean
  190. Return false
  191. End Function
  192. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  193. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  194. Protected Overrides Function ShouldSerializeRelations() As Boolean
  195. Return false
  196. End Function
  197. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  198. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  199. Protected Overrides Sub ReadXmlSerializable(ByVal reader As Global.System.Xml.XmlReader)
  200. If (Me.DetermineSchemaSerializationMode(reader) = Global.System.Data.SchemaSerializationMode.IncludeSchema) Then
  201. Me.Reset
  202. Dim ds As Global.System.Data.DataSet = New Global.System.Data.DataSet()
  203. ds.ReadXml(reader)
  204. If (Not (ds.Tables("ECALRI")) Is Nothing) Then
  205. MyBase.Tables.Add(New ECALRIDataTable(ds.Tables("ECALRI")))
  206. End If
  207. If (Not (ds.Tables("EMIS")) Is Nothing) Then
  208. MyBase.Tables.Add(New EMISDataTable(ds.Tables("EMIS")))
  209. End If
  210. If (Not (ds.Tables("EMPR")) Is Nothing) Then
  211. MyBase.Tables.Add(New EMPRDataTable(ds.Tables("EMPR")))
  212. End If
  213. If (Not (ds.Tables("INFI")) Is Nothing) Then
  214. MyBase.Tables.Add(New INFIDataTable(ds.Tables("INFI")))
  215. End If
  216. If (Not (ds.Tables("PAIS")) Is Nothing) Then
  217. MyBase.Tables.Add(New PAISDataTable(ds.Tables("PAIS")))
  218. End If
  219. If (Not (ds.Tables("SP_InventarioMaster")) Is Nothing) Then
  220. MyBase.Tables.Add(New SP_InventarioMasterDataTable(ds.Tables("SP_InventarioMaster")))
  221. End If
  222. Me.DataSetName = ds.DataSetName
  223. Me.Prefix = ds.Prefix
  224. Me.Namespace = ds.Namespace
  225. Me.Locale = ds.Locale
  226. Me.CaseSensitive = ds.CaseSensitive
  227. Me.EnforceConstraints = ds.EnforceConstraints
  228. Me.Merge(ds, false, Global.System.Data.MissingSchemaAction.Add)
  229. Me.InitVars
  230. Else
  231. Me.ReadXml(reader)
  232. Me.InitVars
  233. End If
  234. End Sub
  235. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  236. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  237. Protected Overrides Function GetSchemaSerializable() As Global.System.Xml.Schema.XmlSchema
  238. Dim stream As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  239. Me.WriteXmlSchema(New Global.System.Xml.XmlTextWriter(stream, Nothing))
  240. stream.Position = 0
  241. Return Global.System.Xml.Schema.XmlSchema.Read(New Global.System.Xml.XmlTextReader(stream), Nothing)
  242. End Function
  243. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  244. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  245. Friend Overloads Sub InitVars()
  246. Me.InitVars(true)
  247. End Sub
  248. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  249. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  250. Friend Overloads Sub InitVars(ByVal initTable As Boolean)
  251. Me.tableECALRI = CType(MyBase.Tables("ECALRI"),ECALRIDataTable)
  252. If (initTable = true) Then
  253. If (Not (Me.tableECALRI) Is Nothing) Then
  254. Me.tableECALRI.InitVars
  255. End If
  256. End If
  257. Me.tableEMIS = CType(MyBase.Tables("EMIS"),EMISDataTable)
  258. If (initTable = true) Then
  259. If (Not (Me.tableEMIS) Is Nothing) Then
  260. Me.tableEMIS.InitVars
  261. End If
  262. End If
  263. Me.tableEMPR = CType(MyBase.Tables("EMPR"),EMPRDataTable)
  264. If (initTable = true) Then
  265. If (Not (Me.tableEMPR) Is Nothing) Then
  266. Me.tableEMPR.InitVars
  267. End If
  268. End If
  269. Me.tableINFI = CType(MyBase.Tables("INFI"),INFIDataTable)
  270. If (initTable = true) Then
  271. If (Not (Me.tableINFI) Is Nothing) Then
  272. Me.tableINFI.InitVars
  273. End If
  274. End If
  275. Me.tablePAIS = CType(MyBase.Tables("PAIS"),PAISDataTable)
  276. If (initTable = true) Then
  277. If (Not (Me.tablePAIS) Is Nothing) Then
  278. Me.tablePAIS.InitVars
  279. End If
  280. End If
  281. Me.tableSP_InventarioMaster = CType(MyBase.Tables("SP_InventarioMaster"),SP_InventarioMasterDataTable)
  282. If (initTable = true) Then
  283. If (Not (Me.tableSP_InventarioMaster) Is Nothing) Then
  284. Me.tableSP_InventarioMaster.InitVars
  285. End If
  286. End If
  287. End Sub
  288. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  289. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  290. Private Sub InitClass()
  291. Me.DataSetName = "dsInversiones"
  292. Me.Prefix = ""
  293. Me.Namespace = "http://tempuri.org/dsInversiones.xsd"
  294. Me.EnforceConstraints = true
  295. Me.SchemaSerializationMode = Global.System.Data.SchemaSerializationMode.IncludeSchema
  296. Me.tableECALRI = New ECALRIDataTable()
  297. MyBase.Tables.Add(Me.tableECALRI)
  298. Me.tableEMIS = New EMISDataTable()
  299. MyBase.Tables.Add(Me.tableEMIS)
  300. Me.tableEMPR = New EMPRDataTable()
  301. MyBase.Tables.Add(Me.tableEMPR)
  302. Me.tableINFI = New INFIDataTable()
  303. MyBase.Tables.Add(Me.tableINFI)
  304. Me.tablePAIS = New PAISDataTable()
  305. MyBase.Tables.Add(Me.tablePAIS)
  306. Me.tableSP_InventarioMaster = New SP_InventarioMasterDataTable()
  307. MyBase.Tables.Add(Me.tableSP_InventarioMaster)
  308. End Sub
  309. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  310. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  311. Private Function ShouldSerializeECALRI() As Boolean
  312. Return false
  313. End Function
  314. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  315. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  316. Private Function ShouldSerializeEMIS() As Boolean
  317. Return false
  318. End Function
  319. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  320. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  321. Private Function ShouldSerializeEMPR() As Boolean
  322. Return false
  323. End Function
  324. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  325. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  326. Private Function ShouldSerializeINFI() As Boolean
  327. Return false
  328. End Function
  329. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  330. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  331. Private Function ShouldSerializePAIS() As Boolean
  332. Return false
  333. End Function
  334. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  335. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  336. Private Function ShouldSerializeSP_InventarioMaster() As Boolean
  337. Return false
  338. End Function
  339. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  340. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  341. Private Sub SchemaChanged(ByVal sender As Object, ByVal e As Global.System.ComponentModel.CollectionChangeEventArgs)
  342. If (e.Action = Global.System.ComponentModel.CollectionChangeAction.Remove) Then
  343. Me.InitVars
  344. End If
  345. End Sub
  346. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  347. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  348. Public Shared Function GetTypedDataSetSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  349. Dim ds As dsInversiones = New dsInversiones()
  350. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  351. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  352. Dim any As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  353. any.Namespace = ds.Namespace
  354. sequence.Items.Add(any)
  355. type.Particle = sequence
  356. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  357. If xs.Contains(dsSchema.TargetNamespace) Then
  358. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  359. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  360. Try
  361. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  362. dsSchema.Write(s1)
  363. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  364. Do While schemas.MoveNext
  365. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  366. s2.SetLength(0)
  367. schema.Write(s2)
  368. If (s1.Length = s2.Length) Then
  369. s1.Position = 0
  370. s2.Position = 0
  371. Do While ((s1.Position <> s1.Length) _
  372. AndAlso (s1.ReadByte = s2.ReadByte))
  373. Loop
  374. If (s1.Position = s1.Length) Then
  375. Return type
  376. End If
  377. End If
  378. Loop
  379. Finally
  380. If (Not (s1) Is Nothing) Then
  381. s1.Close
  382. End If
  383. If (Not (s2) Is Nothing) Then
  384. s2.Close
  385. End If
  386. End Try
  387. End If
  388. xs.Add(dsSchema)
  389. Return type
  390. End Function
  391. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  392. Public Delegate Sub ECALRIRowChangeEventHandler(ByVal sender As Object, ByVal e As ECALRIRowChangeEvent)
  393. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  394. Public Delegate Sub EMISRowChangeEventHandler(ByVal sender As Object, ByVal e As EMISRowChangeEvent)
  395. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  396. Public Delegate Sub EMPRRowChangeEventHandler(ByVal sender As Object, ByVal e As EMPRRowChangeEvent)
  397. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  398. Public Delegate Sub INFIRowChangeEventHandler(ByVal sender As Object, ByVal e As INFIRowChangeEvent)
  399. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  400. Public Delegate Sub PAISRowChangeEventHandler(ByVal sender As Object, ByVal e As PAISRowChangeEvent)
  401. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  402. Public Delegate Sub SP_InventarioMasterRowChangeEventHandler(ByVal sender As Object, ByVal e As SP_InventarioMasterRowChangeEvent)
  403. '''<summary>
  404. '''Represents the strongly named DataTable class.
  405. '''</summary>
  406. <Global.System.Serializable(), _
  407. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  408. Partial Public Class ECALRIDataTable
  409. Inherits Global.System.Data.TypedTableBase(Of ECALRIRow)
  410. Private columnCodECalRi As Global.System.Data.DataColumn
  411. Private columnDescrip As Global.System.Data.DataColumn
  412. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  413. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  414. Public Sub New()
  415. MyBase.New
  416. Me.TableName = "ECALRI"
  417. Me.BeginInit
  418. Me.InitClass
  419. Me.EndInit
  420. End Sub
  421. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  422. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  423. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  424. MyBase.New
  425. Me.TableName = table.TableName
  426. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  427. Me.CaseSensitive = table.CaseSensitive
  428. End If
  429. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  430. Me.Locale = table.Locale
  431. End If
  432. If (table.Namespace <> table.DataSet.Namespace) Then
  433. Me.Namespace = table.Namespace
  434. End If
  435. Me.Prefix = table.Prefix
  436. Me.MinimumCapacity = table.MinimumCapacity
  437. End Sub
  438. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  439. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  440. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  441. MyBase.New(info, context)
  442. Me.InitVars
  443. End Sub
  444. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  445. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  446. Public ReadOnly Property CodECalRiColumn() As Global.System.Data.DataColumn
  447. Get
  448. Return Me.columnCodECalRi
  449. End Get
  450. End Property
  451. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  452. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  453. Public ReadOnly Property DescripColumn() As Global.System.Data.DataColumn
  454. Get
  455. Return Me.columnDescrip
  456. End Get
  457. End Property
  458. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  459. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  460. Global.System.ComponentModel.Browsable(false)> _
  461. Public ReadOnly Property Count() As Integer
  462. Get
  463. Return Me.Rows.Count
  464. End Get
  465. End Property
  466. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  467. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  468. Public Default ReadOnly Property Item(ByVal index As Integer) As ECALRIRow
  469. Get
  470. Return CType(Me.Rows(index),ECALRIRow)
  471. End Get
  472. End Property
  473. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  474. Public Event ECALRIRowChanging As ECALRIRowChangeEventHandler
  475. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  476. Public Event ECALRIRowChanged As ECALRIRowChangeEventHandler
  477. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  478. Public Event ECALRIRowDeleting As ECALRIRowChangeEventHandler
  479. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  480. Public Event ECALRIRowDeleted As ECALRIRowChangeEventHandler
  481. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  482. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  483. Public Overloads Sub AddECALRIRow(ByVal row As ECALRIRow)
  484. Me.Rows.Add(row)
  485. End Sub
  486. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  487. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  488. Public Overloads Function AddECALRIRow(ByVal CodECalRi As String, ByVal Descrip As String) As ECALRIRow
  489. Dim rowECALRIRow As ECALRIRow = CType(Me.NewRow,ECALRIRow)
  490. Dim columnValuesArray() As Object = New Object() {CodECalRi, Descrip}
  491. rowECALRIRow.ItemArray = columnValuesArray
  492. Me.Rows.Add(rowECALRIRow)
  493. Return rowECALRIRow
  494. End Function
  495. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  496. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  497. Public Function FindByCodECalRi(ByVal CodECalRi As String) As ECALRIRow
  498. Return CType(Me.Rows.Find(New Object() {CodECalRi}),ECALRIRow)
  499. End Function
  500. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  501. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  502. Public Overrides Function Clone() As Global.System.Data.DataTable
  503. Dim cln As ECALRIDataTable = CType(MyBase.Clone,ECALRIDataTable)
  504. cln.InitVars
  505. Return cln
  506. End Function
  507. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  508. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  509. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  510. Return New ECALRIDataTable()
  511. End Function
  512. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  513. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  514. Friend Sub InitVars()
  515. Me.columnCodECalRi = MyBase.Columns("CodECalRi")
  516. Me.columnDescrip = MyBase.Columns("Descrip")
  517. End Sub
  518. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  519. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  520. Private Sub InitClass()
  521. Me.columnCodECalRi = New Global.System.Data.DataColumn("CodECalRi", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  522. MyBase.Columns.Add(Me.columnCodECalRi)
  523. Me.columnDescrip = New Global.System.Data.DataColumn("Descrip", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  524. MyBase.Columns.Add(Me.columnDescrip)
  525. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodECalRi}, true))
  526. Me.columnCodECalRi.AllowDBNull = false
  527. Me.columnCodECalRi.Unique = true
  528. Me.columnCodECalRi.MaxLength = 8
  529. Me.columnDescrip.MaxLength = 100
  530. End Sub
  531. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  532. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  533. Public Function NewECALRIRow() As ECALRIRow
  534. Return CType(Me.NewRow,ECALRIRow)
  535. End Function
  536. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  537. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  538. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  539. Return New ECALRIRow(builder)
  540. End Function
  541. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  542. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  543. Protected Overrides Function GetRowType() As Global.System.Type
  544. Return GetType(ECALRIRow)
  545. End Function
  546. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  547. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  548. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  549. MyBase.OnRowChanged(e)
  550. If (Not (Me.ECALRIRowChangedEvent) Is Nothing) Then
  551. RaiseEvent ECALRIRowChanged(Me, New ECALRIRowChangeEvent(CType(e.Row,ECALRIRow), e.Action))
  552. End If
  553. End Sub
  554. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  555. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  556. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  557. MyBase.OnRowChanging(e)
  558. If (Not (Me.ECALRIRowChangingEvent) Is Nothing) Then
  559. RaiseEvent ECALRIRowChanging(Me, New ECALRIRowChangeEvent(CType(e.Row,ECALRIRow), e.Action))
  560. End If
  561. End Sub
  562. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  563. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  564. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  565. MyBase.OnRowDeleted(e)
  566. If (Not (Me.ECALRIRowDeletedEvent) Is Nothing) Then
  567. RaiseEvent ECALRIRowDeleted(Me, New ECALRIRowChangeEvent(CType(e.Row,ECALRIRow), e.Action))
  568. End If
  569. End Sub
  570. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  571. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  572. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  573. MyBase.OnRowDeleting(e)
  574. If (Not (Me.ECALRIRowDeletingEvent) Is Nothing) Then
  575. RaiseEvent ECALRIRowDeleting(Me, New ECALRIRowChangeEvent(CType(e.Row,ECALRIRow), e.Action))
  576. End If
  577. End Sub
  578. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  579. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  580. Public Sub RemoveECALRIRow(ByVal row As ECALRIRow)
  581. Me.Rows.Remove(row)
  582. End Sub
  583. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  584. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  585. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  586. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  587. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  588. Dim ds As dsInversiones = New dsInversiones()
  589. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  590. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  591. any1.MinOccurs = New Decimal(0)
  592. any1.MaxOccurs = Decimal.MaxValue
  593. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  594. sequence.Items.Add(any1)
  595. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  596. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  597. any2.MinOccurs = New Decimal(1)
  598. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  599. sequence.Items.Add(any2)
  600. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  601. attribute1.Name = "namespace"
  602. attribute1.FixedValue = ds.Namespace
  603. type.Attributes.Add(attribute1)
  604. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  605. attribute2.Name = "tableTypeName"
  606. attribute2.FixedValue = "ECALRIDataTable"
  607. type.Attributes.Add(attribute2)
  608. type.Particle = sequence
  609. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  610. If xs.Contains(dsSchema.TargetNamespace) Then
  611. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  612. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  613. Try
  614. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  615. dsSchema.Write(s1)
  616. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  617. Do While schemas.MoveNext
  618. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  619. s2.SetLength(0)
  620. schema.Write(s2)
  621. If (s1.Length = s2.Length) Then
  622. s1.Position = 0
  623. s2.Position = 0
  624. Do While ((s1.Position <> s1.Length) _
  625. AndAlso (s1.ReadByte = s2.ReadByte))
  626. Loop
  627. If (s1.Position = s1.Length) Then
  628. Return type
  629. End If
  630. End If
  631. Loop
  632. Finally
  633. If (Not (s1) Is Nothing) Then
  634. s1.Close
  635. End If
  636. If (Not (s2) Is Nothing) Then
  637. s2.Close
  638. End If
  639. End Try
  640. End If
  641. xs.Add(dsSchema)
  642. Return type
  643. End Function
  644. End Class
  645. '''<summary>
  646. '''Represents the strongly named DataTable class.
  647. '''</summary>
  648. <Global.System.Serializable(), _
  649. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  650. Partial Public Class EMISDataTable
  651. Inherits Global.System.Data.TypedTableBase(Of EMISRow)
  652. Private columnCodEmis As Global.System.Data.DataColumn
  653. Private columnDescrip As Global.System.Data.DataColumn
  654. Private columnEstado As Global.System.Data.DataColumn
  655. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  656. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  657. Public Sub New()
  658. MyBase.New
  659. Me.TableName = "EMIS"
  660. Me.BeginInit
  661. Me.InitClass
  662. Me.EndInit
  663. End Sub
  664. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  665. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  666. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  667. MyBase.New
  668. Me.TableName = table.TableName
  669. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  670. Me.CaseSensitive = table.CaseSensitive
  671. End If
  672. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  673. Me.Locale = table.Locale
  674. End If
  675. If (table.Namespace <> table.DataSet.Namespace) Then
  676. Me.Namespace = table.Namespace
  677. End If
  678. Me.Prefix = table.Prefix
  679. Me.MinimumCapacity = table.MinimumCapacity
  680. End Sub
  681. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  682. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  683. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  684. MyBase.New(info, context)
  685. Me.InitVars
  686. End Sub
  687. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  688. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  689. Public ReadOnly Property CodEmisColumn() As Global.System.Data.DataColumn
  690. Get
  691. Return Me.columnCodEmis
  692. End Get
  693. End Property
  694. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  695. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  696. Public ReadOnly Property DescripColumn() As Global.System.Data.DataColumn
  697. Get
  698. Return Me.columnDescrip
  699. End Get
  700. End Property
  701. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  702. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  703. Public ReadOnly Property EstadoColumn() As Global.System.Data.DataColumn
  704. Get
  705. Return Me.columnEstado
  706. End Get
  707. End Property
  708. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  709. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  710. Global.System.ComponentModel.Browsable(false)> _
  711. Public ReadOnly Property Count() As Integer
  712. Get
  713. Return Me.Rows.Count
  714. End Get
  715. End Property
  716. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  717. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  718. Public Default ReadOnly Property Item(ByVal index As Integer) As EMISRow
  719. Get
  720. Return CType(Me.Rows(index),EMISRow)
  721. End Get
  722. End Property
  723. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  724. Public Event EMISRowChanging As EMISRowChangeEventHandler
  725. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  726. Public Event EMISRowChanged As EMISRowChangeEventHandler
  727. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  728. Public Event EMISRowDeleting As EMISRowChangeEventHandler
  729. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  730. Public Event EMISRowDeleted As EMISRowChangeEventHandler
  731. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  732. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  733. Public Overloads Sub AddEMISRow(ByVal row As EMISRow)
  734. Me.Rows.Add(row)
  735. End Sub
  736. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  737. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  738. Public Overloads Function AddEMISRow(ByVal Descrip As String, ByVal Estado As String) As EMISRow
  739. Dim rowEMISRow As EMISRow = CType(Me.NewRow,EMISRow)
  740. Dim columnValuesArray() As Object = New Object() {Nothing, Descrip, Estado}
  741. rowEMISRow.ItemArray = columnValuesArray
  742. Me.Rows.Add(rowEMISRow)
  743. Return rowEMISRow
  744. End Function
  745. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  746. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  747. Public Function FindByCodEmis(ByVal CodEmis As Integer) As EMISRow
  748. Return CType(Me.Rows.Find(New Object() {CodEmis}),EMISRow)
  749. End Function
  750. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  751. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  752. Public Overrides Function Clone() As Global.System.Data.DataTable
  753. Dim cln As EMISDataTable = CType(MyBase.Clone,EMISDataTable)
  754. cln.InitVars
  755. Return cln
  756. End Function
  757. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  758. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  759. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  760. Return New EMISDataTable()
  761. End Function
  762. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  763. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  764. Friend Sub InitVars()
  765. Me.columnCodEmis = MyBase.Columns("CodEmis")
  766. Me.columnDescrip = MyBase.Columns("Descrip")
  767. Me.columnEstado = MyBase.Columns("Estado")
  768. End Sub
  769. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  770. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  771. Private Sub InitClass()
  772. Me.columnCodEmis = New Global.System.Data.DataColumn("CodEmis", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  773. MyBase.Columns.Add(Me.columnCodEmis)
  774. Me.columnDescrip = New Global.System.Data.DataColumn("Descrip", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  775. MyBase.Columns.Add(Me.columnDescrip)
  776. Me.columnEstado = New Global.System.Data.DataColumn("Estado", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  777. MyBase.Columns.Add(Me.columnEstado)
  778. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodEmis}, true))
  779. Me.columnCodEmis.AutoIncrement = true
  780. Me.columnCodEmis.AutoIncrementSeed = -1
  781. Me.columnCodEmis.AutoIncrementStep = -1
  782. Me.columnCodEmis.AllowDBNull = false
  783. Me.columnCodEmis.ReadOnly = true
  784. Me.columnCodEmis.Unique = true
  785. Me.columnDescrip.MaxLength = 100
  786. Me.columnEstado.MaxLength = 1
  787. End Sub
  788. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  789. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  790. Public Function NewEMISRow() As EMISRow
  791. Return CType(Me.NewRow,EMISRow)
  792. End Function
  793. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  794. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  795. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  796. Return New EMISRow(builder)
  797. End Function
  798. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  799. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  800. Protected Overrides Function GetRowType() As Global.System.Type
  801. Return GetType(EMISRow)
  802. End Function
  803. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  804. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  805. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  806. MyBase.OnRowChanged(e)
  807. If (Not (Me.EMISRowChangedEvent) Is Nothing) Then
  808. RaiseEvent EMISRowChanged(Me, New EMISRowChangeEvent(CType(e.Row,EMISRow), e.Action))
  809. End If
  810. End Sub
  811. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  812. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  813. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  814. MyBase.OnRowChanging(e)
  815. If (Not (Me.EMISRowChangingEvent) Is Nothing) Then
  816. RaiseEvent EMISRowChanging(Me, New EMISRowChangeEvent(CType(e.Row,EMISRow), e.Action))
  817. End If
  818. End Sub
  819. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  820. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  821. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  822. MyBase.OnRowDeleted(e)
  823. If (Not (Me.EMISRowDeletedEvent) Is Nothing) Then
  824. RaiseEvent EMISRowDeleted(Me, New EMISRowChangeEvent(CType(e.Row,EMISRow), e.Action))
  825. End If
  826. End Sub
  827. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  828. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  829. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  830. MyBase.OnRowDeleting(e)
  831. If (Not (Me.EMISRowDeletingEvent) Is Nothing) Then
  832. RaiseEvent EMISRowDeleting(Me, New EMISRowChangeEvent(CType(e.Row,EMISRow), e.Action))
  833. End If
  834. End Sub
  835. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  836. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  837. Public Sub RemoveEMISRow(ByVal row As EMISRow)
  838. Me.Rows.Remove(row)
  839. End Sub
  840. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  841. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  842. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  843. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  844. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  845. Dim ds As dsInversiones = New dsInversiones()
  846. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  847. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  848. any1.MinOccurs = New Decimal(0)
  849. any1.MaxOccurs = Decimal.MaxValue
  850. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  851. sequence.Items.Add(any1)
  852. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  853. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  854. any2.MinOccurs = New Decimal(1)
  855. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  856. sequence.Items.Add(any2)
  857. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  858. attribute1.Name = "namespace"
  859. attribute1.FixedValue = ds.Namespace
  860. type.Attributes.Add(attribute1)
  861. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  862. attribute2.Name = "tableTypeName"
  863. attribute2.FixedValue = "EMISDataTable"
  864. type.Attributes.Add(attribute2)
  865. type.Particle = sequence
  866. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  867. If xs.Contains(dsSchema.TargetNamespace) Then
  868. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  869. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  870. Try
  871. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  872. dsSchema.Write(s1)
  873. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  874. Do While schemas.MoveNext
  875. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  876. s2.SetLength(0)
  877. schema.Write(s2)
  878. If (s1.Length = s2.Length) Then
  879. s1.Position = 0
  880. s2.Position = 0
  881. Do While ((s1.Position <> s1.Length) _
  882. AndAlso (s1.ReadByte = s2.ReadByte))
  883. Loop
  884. If (s1.Position = s1.Length) Then
  885. Return type
  886. End If
  887. End If
  888. Loop
  889. Finally
  890. If (Not (s1) Is Nothing) Then
  891. s1.Close
  892. End If
  893. If (Not (s2) Is Nothing) Then
  894. s2.Close
  895. End If
  896. End Try
  897. End If
  898. xs.Add(dsSchema)
  899. Return type
  900. End Function
  901. End Class
  902. '''<summary>
  903. '''Represents the strongly named DataTable class.
  904. '''</summary>
  905. <Global.System.Serializable(), _
  906. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  907. Partial Public Class EMPRDataTable
  908. Inherits Global.System.Data.TypedTableBase(Of EMPRRow)
  909. Private columnCodEmpr As Global.System.Data.DataColumn
  910. Private columnDescrip As Global.System.Data.DataColumn
  911. Private columnSAP_BD As Global.System.Data.DataColumn
  912. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  913. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  914. Public Sub New()
  915. MyBase.New
  916. Me.TableName = "EMPR"
  917. Me.BeginInit
  918. Me.InitClass
  919. Me.EndInit
  920. End Sub
  921. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  922. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  923. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  924. MyBase.New
  925. Me.TableName = table.TableName
  926. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  927. Me.CaseSensitive = table.CaseSensitive
  928. End If
  929. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  930. Me.Locale = table.Locale
  931. End If
  932. If (table.Namespace <> table.DataSet.Namespace) Then
  933. Me.Namespace = table.Namespace
  934. End If
  935. Me.Prefix = table.Prefix
  936. Me.MinimumCapacity = table.MinimumCapacity
  937. End Sub
  938. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  939. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  940. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  941. MyBase.New(info, context)
  942. Me.InitVars
  943. End Sub
  944. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  945. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  946. Public ReadOnly Property CodEmprColumn() As Global.System.Data.DataColumn
  947. Get
  948. Return Me.columnCodEmpr
  949. End Get
  950. End Property
  951. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  952. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  953. Public ReadOnly Property DescripColumn() As Global.System.Data.DataColumn
  954. Get
  955. Return Me.columnDescrip
  956. End Get
  957. End Property
  958. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  959. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  960. Public ReadOnly Property SAP_BDColumn() As Global.System.Data.DataColumn
  961. Get
  962. Return Me.columnSAP_BD
  963. End Get
  964. End Property
  965. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  966. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  967. Global.System.ComponentModel.Browsable(false)> _
  968. Public ReadOnly Property Count() As Integer
  969. Get
  970. Return Me.Rows.Count
  971. End Get
  972. End Property
  973. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  974. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  975. Public Default ReadOnly Property Item(ByVal index As Integer) As EMPRRow
  976. Get
  977. Return CType(Me.Rows(index),EMPRRow)
  978. End Get
  979. End Property
  980. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  981. Public Event EMPRRowChanging As EMPRRowChangeEventHandler
  982. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  983. Public Event EMPRRowChanged As EMPRRowChangeEventHandler
  984. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  985. Public Event EMPRRowDeleting As EMPRRowChangeEventHandler
  986. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  987. Public Event EMPRRowDeleted As EMPRRowChangeEventHandler
  988. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  989. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  990. Public Overloads Sub AddEMPRRow(ByVal row As EMPRRow)
  991. Me.Rows.Add(row)
  992. End Sub
  993. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  994. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  995. Public Overloads Function AddEMPRRow(ByVal CodEmpr As String, ByVal Descrip As String, ByVal SAP_BD As String) As EMPRRow
  996. Dim rowEMPRRow As EMPRRow = CType(Me.NewRow,EMPRRow)
  997. Dim columnValuesArray() As Object = New Object() {CodEmpr, Descrip, SAP_BD}
  998. rowEMPRRow.ItemArray = columnValuesArray
  999. Me.Rows.Add(rowEMPRRow)
  1000. Return rowEMPRRow
  1001. End Function
  1002. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1003. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1004. Public Function FindByCodEmpr(ByVal CodEmpr As String) As EMPRRow
  1005. Return CType(Me.Rows.Find(New Object() {CodEmpr}),EMPRRow)
  1006. End Function
  1007. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1008. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1009. Public Overrides Function Clone() As Global.System.Data.DataTable
  1010. Dim cln As EMPRDataTable = CType(MyBase.Clone,EMPRDataTable)
  1011. cln.InitVars
  1012. Return cln
  1013. End Function
  1014. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1015. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1016. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  1017. Return New EMPRDataTable()
  1018. End Function
  1019. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1020. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1021. Friend Sub InitVars()
  1022. Me.columnCodEmpr = MyBase.Columns("CodEmpr")
  1023. Me.columnDescrip = MyBase.Columns("Descrip")
  1024. Me.columnSAP_BD = MyBase.Columns("SAP_BD")
  1025. End Sub
  1026. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1027. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1028. Private Sub InitClass()
  1029. Me.columnCodEmpr = New Global.System.Data.DataColumn("CodEmpr", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1030. MyBase.Columns.Add(Me.columnCodEmpr)
  1031. Me.columnDescrip = New Global.System.Data.DataColumn("Descrip", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1032. MyBase.Columns.Add(Me.columnDescrip)
  1033. Me.columnSAP_BD = New Global.System.Data.DataColumn("SAP_BD", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1034. MyBase.Columns.Add(Me.columnSAP_BD)
  1035. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodEmpr}, true))
  1036. Me.columnCodEmpr.AllowDBNull = false
  1037. Me.columnCodEmpr.Unique = true
  1038. Me.columnCodEmpr.MaxLength = 10
  1039. Me.columnDescrip.MaxLength = 100
  1040. Me.columnSAP_BD.MaxLength = 50
  1041. End Sub
  1042. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1043. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1044. Public Function NewEMPRRow() As EMPRRow
  1045. Return CType(Me.NewRow,EMPRRow)
  1046. End Function
  1047. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1048. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1049. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  1050. Return New EMPRRow(builder)
  1051. End Function
  1052. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1053. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1054. Protected Overrides Function GetRowType() As Global.System.Type
  1055. Return GetType(EMPRRow)
  1056. End Function
  1057. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1058. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1059. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1060. MyBase.OnRowChanged(e)
  1061. If (Not (Me.EMPRRowChangedEvent) Is Nothing) Then
  1062. RaiseEvent EMPRRowChanged(Me, New EMPRRowChangeEvent(CType(e.Row,EMPRRow), e.Action))
  1063. End If
  1064. End Sub
  1065. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1066. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1067. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1068. MyBase.OnRowChanging(e)
  1069. If (Not (Me.EMPRRowChangingEvent) Is Nothing) Then
  1070. RaiseEvent EMPRRowChanging(Me, New EMPRRowChangeEvent(CType(e.Row,EMPRRow), e.Action))
  1071. End If
  1072. End Sub
  1073. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1074. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1075. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1076. MyBase.OnRowDeleted(e)
  1077. If (Not (Me.EMPRRowDeletedEvent) Is Nothing) Then
  1078. RaiseEvent EMPRRowDeleted(Me, New EMPRRowChangeEvent(CType(e.Row,EMPRRow), e.Action))
  1079. End If
  1080. End Sub
  1081. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1082. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1083. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1084. MyBase.OnRowDeleting(e)
  1085. If (Not (Me.EMPRRowDeletingEvent) Is Nothing) Then
  1086. RaiseEvent EMPRRowDeleting(Me, New EMPRRowChangeEvent(CType(e.Row,EMPRRow), e.Action))
  1087. End If
  1088. End Sub
  1089. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1090. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1091. Public Sub RemoveEMPRRow(ByVal row As EMPRRow)
  1092. Me.Rows.Remove(row)
  1093. End Sub
  1094. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1095. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1096. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  1097. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  1098. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  1099. Dim ds As dsInversiones = New dsInversiones()
  1100. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1101. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  1102. any1.MinOccurs = New Decimal(0)
  1103. any1.MaxOccurs = Decimal.MaxValue
  1104. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1105. sequence.Items.Add(any1)
  1106. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1107. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  1108. any2.MinOccurs = New Decimal(1)
  1109. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1110. sequence.Items.Add(any2)
  1111. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1112. attribute1.Name = "namespace"
  1113. attribute1.FixedValue = ds.Namespace
  1114. type.Attributes.Add(attribute1)
  1115. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1116. attribute2.Name = "tableTypeName"
  1117. attribute2.FixedValue = "EMPRDataTable"
  1118. type.Attributes.Add(attribute2)
  1119. type.Particle = sequence
  1120. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  1121. If xs.Contains(dsSchema.TargetNamespace) Then
  1122. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1123. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1124. Try
  1125. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  1126. dsSchema.Write(s1)
  1127. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  1128. Do While schemas.MoveNext
  1129. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  1130. s2.SetLength(0)
  1131. schema.Write(s2)
  1132. If (s1.Length = s2.Length) Then
  1133. s1.Position = 0
  1134. s2.Position = 0
  1135. Do While ((s1.Position <> s1.Length) _
  1136. AndAlso (s1.ReadByte = s2.ReadByte))
  1137. Loop
  1138. If (s1.Position = s1.Length) Then
  1139. Return type
  1140. End If
  1141. End If
  1142. Loop
  1143. Finally
  1144. If (Not (s1) Is Nothing) Then
  1145. s1.Close
  1146. End If
  1147. If (Not (s2) Is Nothing) Then
  1148. s2.Close
  1149. End If
  1150. End Try
  1151. End If
  1152. xs.Add(dsSchema)
  1153. Return type
  1154. End Function
  1155. End Class
  1156. '''<summary>
  1157. '''Represents the strongly named DataTable class.
  1158. '''</summary>
  1159. <Global.System.Serializable(), _
  1160. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  1161. Partial Public Class INFIDataTable
  1162. Inherits Global.System.Data.TypedTableBase(Of INFIRow)
  1163. Private columnCodIF As Global.System.Data.DataColumn
  1164. Private columnDescrip As Global.System.Data.DataColumn
  1165. Private columnTipo As Global.System.Data.DataColumn
  1166. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1167. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1168. Public Sub New()
  1169. MyBase.New
  1170. Me.TableName = "INFI"
  1171. Me.BeginInit
  1172. Me.InitClass
  1173. Me.EndInit
  1174. End Sub
  1175. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1176. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1177. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  1178. MyBase.New
  1179. Me.TableName = table.TableName
  1180. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  1181. Me.CaseSensitive = table.CaseSensitive
  1182. End If
  1183. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  1184. Me.Locale = table.Locale
  1185. End If
  1186. If (table.Namespace <> table.DataSet.Namespace) Then
  1187. Me.Namespace = table.Namespace
  1188. End If
  1189. Me.Prefix = table.Prefix
  1190. Me.MinimumCapacity = table.MinimumCapacity
  1191. End Sub
  1192. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1193. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1194. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  1195. MyBase.New(info, context)
  1196. Me.InitVars
  1197. End Sub
  1198. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1199. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1200. Public ReadOnly Property CodIFColumn() As Global.System.Data.DataColumn
  1201. Get
  1202. Return Me.columnCodIF
  1203. End Get
  1204. End Property
  1205. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1206. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1207. Public ReadOnly Property DescripColumn() As Global.System.Data.DataColumn
  1208. Get
  1209. Return Me.columnDescrip
  1210. End Get
  1211. End Property
  1212. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1213. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1214. Public ReadOnly Property TipoColumn() As Global.System.Data.DataColumn
  1215. Get
  1216. Return Me.columnTipo
  1217. End Get
  1218. End Property
  1219. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1220. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  1221. Global.System.ComponentModel.Browsable(false)> _
  1222. Public ReadOnly Property Count() As Integer
  1223. Get
  1224. Return Me.Rows.Count
  1225. End Get
  1226. End Property
  1227. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1228. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1229. Public Default ReadOnly Property Item(ByVal index As Integer) As INFIRow
  1230. Get
  1231. Return CType(Me.Rows(index),INFIRow)
  1232. End Get
  1233. End Property
  1234. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1235. Public Event INFIRowChanging As INFIRowChangeEventHandler
  1236. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1237. Public Event INFIRowChanged As INFIRowChangeEventHandler
  1238. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1239. Public Event INFIRowDeleting As INFIRowChangeEventHandler
  1240. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1241. Public Event INFIRowDeleted As INFIRowChangeEventHandler
  1242. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1243. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1244. Public Overloads Sub AddINFIRow(ByVal row As INFIRow)
  1245. Me.Rows.Add(row)
  1246. End Sub
  1247. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1248. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1249. Public Overloads Function AddINFIRow(ByVal CodIF As String, ByVal Descrip As String, ByVal Tipo As String) As INFIRow
  1250. Dim rowINFIRow As INFIRow = CType(Me.NewRow,INFIRow)
  1251. Dim columnValuesArray() As Object = New Object() {CodIF, Descrip, Tipo}
  1252. rowINFIRow.ItemArray = columnValuesArray
  1253. Me.Rows.Add(rowINFIRow)
  1254. Return rowINFIRow
  1255. End Function
  1256. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1257. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1258. Public Function FindByCodIF(ByVal CodIF As String) As INFIRow
  1259. Return CType(Me.Rows.Find(New Object() {CodIF}),INFIRow)
  1260. End Function
  1261. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1262. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1263. Public Overrides Function Clone() As Global.System.Data.DataTable
  1264. Dim cln As INFIDataTable = CType(MyBase.Clone,INFIDataTable)
  1265. cln.InitVars
  1266. Return cln
  1267. End Function
  1268. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1269. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1270. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  1271. Return New INFIDataTable()
  1272. End Function
  1273. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1274. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1275. Friend Sub InitVars()
  1276. Me.columnCodIF = MyBase.Columns("CodIF")
  1277. Me.columnDescrip = MyBase.Columns("Descrip")
  1278. Me.columnTipo = MyBase.Columns("Tipo")
  1279. End Sub
  1280. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1281. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1282. Private Sub InitClass()
  1283. Me.columnCodIF = New Global.System.Data.DataColumn("CodIF", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1284. MyBase.Columns.Add(Me.columnCodIF)
  1285. Me.columnDescrip = New Global.System.Data.DataColumn("Descrip", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1286. MyBase.Columns.Add(Me.columnDescrip)
  1287. Me.columnTipo = New Global.System.Data.DataColumn("Tipo", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1288. MyBase.Columns.Add(Me.columnTipo)
  1289. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodIF}, true))
  1290. Me.columnCodIF.AllowDBNull = false
  1291. Me.columnCodIF.Unique = true
  1292. Me.columnCodIF.MaxLength = 10
  1293. Me.columnDescrip.MaxLength = 50
  1294. Me.columnTipo.MaxLength = 10
  1295. End Sub
  1296. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1297. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1298. Public Function NewINFIRow() As INFIRow
  1299. Return CType(Me.NewRow,INFIRow)
  1300. End Function
  1301. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1302. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1303. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  1304. Return New INFIRow(builder)
  1305. End Function
  1306. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1307. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1308. Protected Overrides Function GetRowType() As Global.System.Type
  1309. Return GetType(INFIRow)
  1310. End Function
  1311. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1312. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1313. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1314. MyBase.OnRowChanged(e)
  1315. If (Not (Me.INFIRowChangedEvent) Is Nothing) Then
  1316. RaiseEvent INFIRowChanged(Me, New INFIRowChangeEvent(CType(e.Row,INFIRow), e.Action))
  1317. End If
  1318. End Sub
  1319. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1320. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1321. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1322. MyBase.OnRowChanging(e)
  1323. If (Not (Me.INFIRowChangingEvent) Is Nothing) Then
  1324. RaiseEvent INFIRowChanging(Me, New INFIRowChangeEvent(CType(e.Row,INFIRow), e.Action))
  1325. End If
  1326. End Sub
  1327. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1328. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1329. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1330. MyBase.OnRowDeleted(e)
  1331. If (Not (Me.INFIRowDeletedEvent) Is Nothing) Then
  1332. RaiseEvent INFIRowDeleted(Me, New INFIRowChangeEvent(CType(e.Row,INFIRow), e.Action))
  1333. End If
  1334. End Sub
  1335. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1336. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1337. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1338. MyBase.OnRowDeleting(e)
  1339. If (Not (Me.INFIRowDeletingEvent) Is Nothing) Then
  1340. RaiseEvent INFIRowDeleting(Me, New INFIRowChangeEvent(CType(e.Row,INFIRow), e.Action))
  1341. End If
  1342. End Sub
  1343. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1344. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1345. Public Sub RemoveINFIRow(ByVal row As INFIRow)
  1346. Me.Rows.Remove(row)
  1347. End Sub
  1348. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1349. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1350. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  1351. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  1352. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  1353. Dim ds As dsInversiones = New dsInversiones()
  1354. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1355. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  1356. any1.MinOccurs = New Decimal(0)
  1357. any1.MaxOccurs = Decimal.MaxValue
  1358. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1359. sequence.Items.Add(any1)
  1360. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1361. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  1362. any2.MinOccurs = New Decimal(1)
  1363. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1364. sequence.Items.Add(any2)
  1365. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1366. attribute1.Name = "namespace"
  1367. attribute1.FixedValue = ds.Namespace
  1368. type.Attributes.Add(attribute1)
  1369. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1370. attribute2.Name = "tableTypeName"
  1371. attribute2.FixedValue = "INFIDataTable"
  1372. type.Attributes.Add(attribute2)
  1373. type.Particle = sequence
  1374. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  1375. If xs.Contains(dsSchema.TargetNamespace) Then
  1376. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1377. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1378. Try
  1379. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  1380. dsSchema.Write(s1)
  1381. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  1382. Do While schemas.MoveNext
  1383. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  1384. s2.SetLength(0)
  1385. schema.Write(s2)
  1386. If (s1.Length = s2.Length) Then
  1387. s1.Position = 0
  1388. s2.Position = 0
  1389. Do While ((s1.Position <> s1.Length) _
  1390. AndAlso (s1.ReadByte = s2.ReadByte))
  1391. Loop
  1392. If (s1.Position = s1.Length) Then
  1393. Return type
  1394. End If
  1395. End If
  1396. Loop
  1397. Finally
  1398. If (Not (s1) Is Nothing) Then
  1399. s1.Close
  1400. End If
  1401. If (Not (s2) Is Nothing) Then
  1402. s2.Close
  1403. End If
  1404. End Try
  1405. End If
  1406. xs.Add(dsSchema)
  1407. Return type
  1408. End Function
  1409. End Class
  1410. '''<summary>
  1411. '''Represents the strongly named DataTable class.
  1412. '''</summary>
  1413. <Global.System.Serializable(), _
  1414. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  1415. Partial Public Class PAISDataTable
  1416. Inherits Global.System.Data.TypedTableBase(Of PAISRow)
  1417. Private columnCodPais As Global.System.Data.DataColumn
  1418. Private columnDescrip As Global.System.Data.DataColumn
  1419. Private columnRelInv As Global.System.Data.DataColumn
  1420. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1421. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1422. Public Sub New()
  1423. MyBase.New
  1424. Me.TableName = "PAIS"
  1425. Me.BeginInit
  1426. Me.InitClass
  1427. Me.EndInit
  1428. End Sub
  1429. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1430. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1431. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  1432. MyBase.New
  1433. Me.TableName = table.TableName
  1434. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  1435. Me.CaseSensitive = table.CaseSensitive
  1436. End If
  1437. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  1438. Me.Locale = table.Locale
  1439. End If
  1440. If (table.Namespace <> table.DataSet.Namespace) Then
  1441. Me.Namespace = table.Namespace
  1442. End If
  1443. Me.Prefix = table.Prefix
  1444. Me.MinimumCapacity = table.MinimumCapacity
  1445. End Sub
  1446. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1447. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1448. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  1449. MyBase.New(info, context)
  1450. Me.InitVars
  1451. End Sub
  1452. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1453. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1454. Public ReadOnly Property CodPaisColumn() As Global.System.Data.DataColumn
  1455. Get
  1456. Return Me.columnCodPais
  1457. End Get
  1458. End Property
  1459. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1460. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1461. Public ReadOnly Property DescripColumn() As Global.System.Data.DataColumn
  1462. Get
  1463. Return Me.columnDescrip
  1464. End Get
  1465. End Property
  1466. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1467. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1468. Public ReadOnly Property RelInvColumn() As Global.System.Data.DataColumn
  1469. Get
  1470. Return Me.columnRelInv
  1471. End Get
  1472. End Property
  1473. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1474. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  1475. Global.System.ComponentModel.Browsable(false)> _
  1476. Public ReadOnly Property Count() As Integer
  1477. Get
  1478. Return Me.Rows.Count
  1479. End Get
  1480. End Property
  1481. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1482. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1483. Public Default ReadOnly Property Item(ByVal index As Integer) As PAISRow
  1484. Get
  1485. Return CType(Me.Rows(index),PAISRow)
  1486. End Get
  1487. End Property
  1488. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1489. Public Event PAISRowChanging As PAISRowChangeEventHandler
  1490. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1491. Public Event PAISRowChanged As PAISRowChangeEventHandler
  1492. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1493. Public Event PAISRowDeleting As PAISRowChangeEventHandler
  1494. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1495. Public Event PAISRowDeleted As PAISRowChangeEventHandler
  1496. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1497. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1498. Public Overloads Sub AddPAISRow(ByVal row As PAISRow)
  1499. Me.Rows.Add(row)
  1500. End Sub
  1501. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1502. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1503. Public Overloads Function AddPAISRow(ByVal CodPais As String, ByVal Descrip As String, ByVal RelInv As String) As PAISRow
  1504. Dim rowPAISRow As PAISRow = CType(Me.NewRow,PAISRow)
  1505. Dim columnValuesArray() As Object = New Object() {CodPais, Descrip, RelInv}
  1506. rowPAISRow.ItemArray = columnValuesArray
  1507. Me.Rows.Add(rowPAISRow)
  1508. Return rowPAISRow
  1509. End Function
  1510. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1511. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1512. Public Function FindByCodPais(ByVal CodPais As String) As PAISRow
  1513. Return CType(Me.Rows.Find(New Object() {CodPais}),PAISRow)
  1514. End Function
  1515. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1516. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1517. Public Overrides Function Clone() As Global.System.Data.DataTable
  1518. Dim cln As PAISDataTable = CType(MyBase.Clone,PAISDataTable)
  1519. cln.InitVars
  1520. Return cln
  1521. End Function
  1522. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1523. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1524. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  1525. Return New PAISDataTable()
  1526. End Function
  1527. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1528. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1529. Friend Sub InitVars()
  1530. Me.columnCodPais = MyBase.Columns("CodPais")
  1531. Me.columnDescrip = MyBase.Columns("Descrip")
  1532. Me.columnRelInv = MyBase.Columns("RelInv")
  1533. End Sub
  1534. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1535. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1536. Private Sub InitClass()
  1537. Me.columnCodPais = New Global.System.Data.DataColumn("CodPais", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1538. MyBase.Columns.Add(Me.columnCodPais)
  1539. Me.columnDescrip = New Global.System.Data.DataColumn("Descrip", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1540. MyBase.Columns.Add(Me.columnDescrip)
  1541. Me.columnRelInv = New Global.System.Data.DataColumn("RelInv", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1542. MyBase.Columns.Add(Me.columnRelInv)
  1543. Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCodPais}, true))
  1544. Me.columnCodPais.AllowDBNull = false
  1545. Me.columnCodPais.Unique = true
  1546. Me.columnCodPais.MaxLength = 3
  1547. Me.columnDescrip.MaxLength = 50
  1548. Me.columnRelInv.MaxLength = 1
  1549. End Sub
  1550. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1551. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1552. Public Function NewPAISRow() As PAISRow
  1553. Return CType(Me.NewRow,PAISRow)
  1554. End Function
  1555. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1556. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1557. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  1558. Return New PAISRow(builder)
  1559. End Function
  1560. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1561. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1562. Protected Overrides Function GetRowType() As Global.System.Type
  1563. Return GetType(PAISRow)
  1564. End Function
  1565. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1566. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1567. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1568. MyBase.OnRowChanged(e)
  1569. If (Not (Me.PAISRowChangedEvent) Is Nothing) Then
  1570. RaiseEvent PAISRowChanged(Me, New PAISRowChangeEvent(CType(e.Row,PAISRow), e.Action))
  1571. End If
  1572. End Sub
  1573. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1574. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1575. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1576. MyBase.OnRowChanging(e)
  1577. If (Not (Me.PAISRowChangingEvent) Is Nothing) Then
  1578. RaiseEvent PAISRowChanging(Me, New PAISRowChangeEvent(CType(e.Row,PAISRow), e.Action))
  1579. End If
  1580. End Sub
  1581. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1582. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1583. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1584. MyBase.OnRowDeleted(e)
  1585. If (Not (Me.PAISRowDeletedEvent) Is Nothing) Then
  1586. RaiseEvent PAISRowDeleted(Me, New PAISRowChangeEvent(CType(e.Row,PAISRow), e.Action))
  1587. End If
  1588. End Sub
  1589. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1590. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1591. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1592. MyBase.OnRowDeleting(e)
  1593. If (Not (Me.PAISRowDeletingEvent) Is Nothing) Then
  1594. RaiseEvent PAISRowDeleting(Me, New PAISRowChangeEvent(CType(e.Row,PAISRow), e.Action))
  1595. End If
  1596. End Sub
  1597. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1598. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1599. Public Sub RemovePAISRow(ByVal row As PAISRow)
  1600. Me.Rows.Remove(row)
  1601. End Sub
  1602. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1603. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1604. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  1605. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  1606. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  1607. Dim ds As dsInversiones = New dsInversiones()
  1608. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1609. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  1610. any1.MinOccurs = New Decimal(0)
  1611. any1.MaxOccurs = Decimal.MaxValue
  1612. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1613. sequence.Items.Add(any1)
  1614. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1615. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  1616. any2.MinOccurs = New Decimal(1)
  1617. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1618. sequence.Items.Add(any2)
  1619. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1620. attribute1.Name = "namespace"
  1621. attribute1.FixedValue = ds.Namespace
  1622. type.Attributes.Add(attribute1)
  1623. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1624. attribute2.Name = "tableTypeName"
  1625. attribute2.FixedValue = "PAISDataTable"
  1626. type.Attributes.Add(attribute2)
  1627. type.Particle = sequence
  1628. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  1629. If xs.Contains(dsSchema.TargetNamespace) Then
  1630. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1631. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1632. Try
  1633. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  1634. dsSchema.Write(s1)
  1635. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  1636. Do While schemas.MoveNext
  1637. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  1638. s2.SetLength(0)
  1639. schema.Write(s2)
  1640. If (s1.Length = s2.Length) Then
  1641. s1.Position = 0
  1642. s2.Position = 0
  1643. Do While ((s1.Position <> s1.Length) _
  1644. AndAlso (s1.ReadByte = s2.ReadByte))
  1645. Loop
  1646. If (s1.Position = s1.Length) Then
  1647. Return type
  1648. End If
  1649. End If
  1650. Loop
  1651. Finally
  1652. If (Not (s1) Is Nothing) Then
  1653. s1.Close
  1654. End If
  1655. If (Not (s2) Is Nothing) Then
  1656. s2.Close
  1657. End If
  1658. End Try
  1659. End If
  1660. xs.Add(dsSchema)
  1661. Return type
  1662. End Function
  1663. End Class
  1664. '''<summary>
  1665. '''Represents the strongly named DataTable class.
  1666. '''</summary>
  1667. <Global.System.Serializable(), _
  1668. Global.System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")> _
  1669. Partial Public Class SP_InventarioMasterDataTable
  1670. Inherits Global.System.Data.TypedTableBase(Of SP_InventarioMasterRow)
  1671. Private columnCodInv As Global.System.Data.DataColumn
  1672. Private columnCodIF As Global.System.Data.DataColumn
  1673. Private columnEstado As Global.System.Data.DataColumn
  1674. Private columnCodEmpr As Global.System.Data.DataColumn
  1675. Private columnNombreManIF As Global.System.Data.DataColumn
  1676. Private columnCodManIF As Global.System.Data.DataColumn
  1677. Private columnCodEmis As Global.System.Data.DataColumn
  1678. Private columniCasaBanco As Global.System.Data.DataColumn
  1679. Private columnvCasaBanco As Global.System.Data.DataColumn
  1680. Private columnTipoMerc As Global.System.Data.DataColumn
  1681. Private columnCodCalRi As Global.System.Data.DataColumn
  1682. Private columnCodECalRi As Global.System.Data.DataColumn
  1683. Private columnValorNominal As Global.System.Data.DataColumn
  1684. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1685. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1686. Public Sub New()
  1687. MyBase.New
  1688. Me.TableName = "SP_InventarioMaster"
  1689. Me.BeginInit
  1690. Me.InitClass
  1691. Me.EndInit
  1692. End Sub
  1693. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1694. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1695. Friend Sub New(ByVal table As Global.System.Data.DataTable)
  1696. MyBase.New
  1697. Me.TableName = table.TableName
  1698. If (table.CaseSensitive <> table.DataSet.CaseSensitive) Then
  1699. Me.CaseSensitive = table.CaseSensitive
  1700. End If
  1701. If (table.Locale.ToString <> table.DataSet.Locale.ToString) Then
  1702. Me.Locale = table.Locale
  1703. End If
  1704. If (table.Namespace <> table.DataSet.Namespace) Then
  1705. Me.Namespace = table.Namespace
  1706. End If
  1707. Me.Prefix = table.Prefix
  1708. Me.MinimumCapacity = table.MinimumCapacity
  1709. End Sub
  1710. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1711. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1712. Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
  1713. MyBase.New(info, context)
  1714. Me.InitVars
  1715. End Sub
  1716. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1717. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1718. Public ReadOnly Property CodInvColumn() As Global.System.Data.DataColumn
  1719. Get
  1720. Return Me.columnCodInv
  1721. End Get
  1722. End Property
  1723. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1724. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1725. Public ReadOnly Property CodIFColumn() As Global.System.Data.DataColumn
  1726. Get
  1727. Return Me.columnCodIF
  1728. End Get
  1729. End Property
  1730. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1731. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1732. Public ReadOnly Property EstadoColumn() As Global.System.Data.DataColumn
  1733. Get
  1734. Return Me.columnEstado
  1735. End Get
  1736. End Property
  1737. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1738. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1739. Public ReadOnly Property CodEmprColumn() As Global.System.Data.DataColumn
  1740. Get
  1741. Return Me.columnCodEmpr
  1742. End Get
  1743. End Property
  1744. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1745. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1746. Public ReadOnly Property NombreManIFColumn() As Global.System.Data.DataColumn
  1747. Get
  1748. Return Me.columnNombreManIF
  1749. End Get
  1750. End Property
  1751. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1752. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1753. Public ReadOnly Property CodManIFColumn() As Global.System.Data.DataColumn
  1754. Get
  1755. Return Me.columnCodManIF
  1756. End Get
  1757. End Property
  1758. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1759. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1760. Public ReadOnly Property CodEmisColumn() As Global.System.Data.DataColumn
  1761. Get
  1762. Return Me.columnCodEmis
  1763. End Get
  1764. End Property
  1765. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1766. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1767. Public ReadOnly Property iCasaBancoColumn() As Global.System.Data.DataColumn
  1768. Get
  1769. Return Me.columniCasaBanco
  1770. End Get
  1771. End Property
  1772. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1773. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1774. Public ReadOnly Property vCasaBancoColumn() As Global.System.Data.DataColumn
  1775. Get
  1776. Return Me.columnvCasaBanco
  1777. End Get
  1778. End Property
  1779. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1780. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1781. Public ReadOnly Property TipoMercColumn() As Global.System.Data.DataColumn
  1782. Get
  1783. Return Me.columnTipoMerc
  1784. End Get
  1785. End Property
  1786. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1787. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1788. Public ReadOnly Property CodCalRiColumn() As Global.System.Data.DataColumn
  1789. Get
  1790. Return Me.columnCodCalRi
  1791. End Get
  1792. End Property
  1793. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1794. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1795. Public ReadOnly Property CodECalRiColumn() As Global.System.Data.DataColumn
  1796. Get
  1797. Return Me.columnCodECalRi
  1798. End Get
  1799. End Property
  1800. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1801. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1802. Public ReadOnly Property ValorNominalColumn() As Global.System.Data.DataColumn
  1803. Get
  1804. Return Me.columnValorNominal
  1805. End Get
  1806. End Property
  1807. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1808. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  1809. Global.System.ComponentModel.Browsable(false)> _
  1810. Public ReadOnly Property Count() As Integer
  1811. Get
  1812. Return Me.Rows.Count
  1813. End Get
  1814. End Property
  1815. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1816. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1817. Public Default ReadOnly Property Item(ByVal index As Integer) As SP_InventarioMasterRow
  1818. Get
  1819. Return CType(Me.Rows(index),SP_InventarioMasterRow)
  1820. End Get
  1821. End Property
  1822. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1823. Public Event SP_InventarioMasterRowChanging As SP_InventarioMasterRowChangeEventHandler
  1824. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1825. Public Event SP_InventarioMasterRowChanged As SP_InventarioMasterRowChangeEventHandler
  1826. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1827. Public Event SP_InventarioMasterRowDeleting As SP_InventarioMasterRowChangeEventHandler
  1828. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1829. Public Event SP_InventarioMasterRowDeleted As SP_InventarioMasterRowChangeEventHandler
  1830. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1831. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1832. Public Overloads Sub AddSP_InventarioMasterRow(ByVal row As SP_InventarioMasterRow)
  1833. Me.Rows.Add(row)
  1834. End Sub
  1835. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1836. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1837. 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
  1838. Dim rowSP_InventarioMasterRow As SP_InventarioMasterRow = CType(Me.NewRow,SP_InventarioMasterRow)
  1839. Dim columnValuesArray() As Object = New Object() {CodInv, CodIF, Estado, CodEmpr, NombreManIF, CodManIF, CodEmis, iCasaBanco, vCasaBanco, TipoMerc, CodCalRi, CodECalRi, ValorNominal}
  1840. rowSP_InventarioMasterRow.ItemArray = columnValuesArray
  1841. Me.Rows.Add(rowSP_InventarioMasterRow)
  1842. Return rowSP_InventarioMasterRow
  1843. End Function
  1844. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1845. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1846. Public Overrides Function Clone() As Global.System.Data.DataTable
  1847. Dim cln As SP_InventarioMasterDataTable = CType(MyBase.Clone,SP_InventarioMasterDataTable)
  1848. cln.InitVars
  1849. Return cln
  1850. End Function
  1851. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1852. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1853. Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
  1854. Return New SP_InventarioMasterDataTable()
  1855. End Function
  1856. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1857. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1858. Friend Sub InitVars()
  1859. Me.columnCodInv = MyBase.Columns("CodInv")
  1860. Me.columnCodIF = MyBase.Columns("CodIF")
  1861. Me.columnEstado = MyBase.Columns("Estado")
  1862. Me.columnCodEmpr = MyBase.Columns("CodEmpr")
  1863. Me.columnNombreManIF = MyBase.Columns("NombreManIF")
  1864. Me.columnCodManIF = MyBase.Columns("CodManIF")
  1865. Me.columnCodEmis = MyBase.Columns("CodEmis")
  1866. Me.columniCasaBanco = MyBase.Columns("iCasaBanco")
  1867. Me.columnvCasaBanco = MyBase.Columns("vCasaBanco")
  1868. Me.columnTipoMerc = MyBase.Columns("TipoMerc")
  1869. Me.columnCodCalRi = MyBase.Columns("CodCalRi")
  1870. Me.columnCodECalRi = MyBase.Columns("CodECalRi")
  1871. Me.columnValorNominal = MyBase.Columns("ValorNominal")
  1872. End Sub
  1873. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1874. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1875. Private Sub InitClass()
  1876. Me.columnCodInv = New Global.System.Data.DataColumn("CodInv", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1877. MyBase.Columns.Add(Me.columnCodInv)
  1878. Me.columnCodIF = New Global.System.Data.DataColumn("CodIF", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1879. MyBase.Columns.Add(Me.columnCodIF)
  1880. Me.columnEstado = New Global.System.Data.DataColumn("Estado", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1881. MyBase.Columns.Add(Me.columnEstado)
  1882. Me.columnCodEmpr = New Global.System.Data.DataColumn("CodEmpr", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1883. MyBase.Columns.Add(Me.columnCodEmpr)
  1884. Me.columnNombreManIF = New Global.System.Data.DataColumn("NombreManIF", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1885. MyBase.Columns.Add(Me.columnNombreManIF)
  1886. Me.columnCodManIF = New Global.System.Data.DataColumn("CodManIF", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1887. MyBase.Columns.Add(Me.columnCodManIF)
  1888. Me.columnCodEmis = New Global.System.Data.DataColumn("CodEmis", GetType(Integer), Nothing, Global.System.Data.MappingType.Element)
  1889. MyBase.Columns.Add(Me.columnCodEmis)
  1890. Me.columniCasaBanco = New Global.System.Data.DataColumn("iCasaBanco", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1891. MyBase.Columns.Add(Me.columniCasaBanco)
  1892. Me.columnvCasaBanco = New Global.System.Data.DataColumn("vCasaBanco", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1893. MyBase.Columns.Add(Me.columnvCasaBanco)
  1894. Me.columnTipoMerc = New Global.System.Data.DataColumn("TipoMerc", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1895. MyBase.Columns.Add(Me.columnTipoMerc)
  1896. Me.columnCodCalRi = New Global.System.Data.DataColumn("CodCalRi", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1897. MyBase.Columns.Add(Me.columnCodCalRi)
  1898. Me.columnCodECalRi = New Global.System.Data.DataColumn("CodECalRi", GetType(String), Nothing, Global.System.Data.MappingType.Element)
  1899. MyBase.Columns.Add(Me.columnCodECalRi)
  1900. Me.columnValorNominal = New Global.System.Data.DataColumn("ValorNominal", GetType(Decimal), Nothing, Global.System.Data.MappingType.Element)
  1901. MyBase.Columns.Add(Me.columnValorNominal)
  1902. Me.columnCodInv.MaxLength = 20
  1903. Me.columnCodIF.MaxLength = 10
  1904. Me.columnEstado.MaxLength = 4
  1905. Me.columnCodEmpr.MaxLength = 10
  1906. Me.columnNombreManIF.MaxLength = 50
  1907. Me.columnCodManIF.MaxLength = 50
  1908. Me.columniCasaBanco.MaxLength = 1
  1909. Me.columnvCasaBanco.MaxLength = 10
  1910. Me.columnTipoMerc.MaxLength = 4
  1911. Me.columnCodCalRi.MaxLength = 8
  1912. Me.columnCodECalRi.MaxLength = 8
  1913. End Sub
  1914. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1915. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1916. Public Function NewSP_InventarioMasterRow() As SP_InventarioMasterRow
  1917. Return CType(Me.NewRow,SP_InventarioMasterRow)
  1918. End Function
  1919. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1920. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1921. Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
  1922. Return New SP_InventarioMasterRow(builder)
  1923. End Function
  1924. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1925. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1926. Protected Overrides Function GetRowType() As Global.System.Type
  1927. Return GetType(SP_InventarioMasterRow)
  1928. End Function
  1929. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1930. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1931. Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1932. MyBase.OnRowChanged(e)
  1933. If (Not (Me.SP_InventarioMasterRowChangedEvent) Is Nothing) Then
  1934. RaiseEvent SP_InventarioMasterRowChanged(Me, New SP_InventarioMasterRowChangeEvent(CType(e.Row,SP_InventarioMasterRow), e.Action))
  1935. End If
  1936. End Sub
  1937. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1938. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1939. Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1940. MyBase.OnRowChanging(e)
  1941. If (Not (Me.SP_InventarioMasterRowChangingEvent) Is Nothing) Then
  1942. RaiseEvent SP_InventarioMasterRowChanging(Me, New SP_InventarioMasterRowChangeEvent(CType(e.Row,SP_InventarioMasterRow), e.Action))
  1943. End If
  1944. End Sub
  1945. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1946. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1947. Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1948. MyBase.OnRowDeleted(e)
  1949. If (Not (Me.SP_InventarioMasterRowDeletedEvent) Is Nothing) Then
  1950. RaiseEvent SP_InventarioMasterRowDeleted(Me, New SP_InventarioMasterRowChangeEvent(CType(e.Row,SP_InventarioMasterRow), e.Action))
  1951. End If
  1952. End Sub
  1953. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1954. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1955. Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
  1956. MyBase.OnRowDeleting(e)
  1957. If (Not (Me.SP_InventarioMasterRowDeletingEvent) Is Nothing) Then
  1958. RaiseEvent SP_InventarioMasterRowDeleting(Me, New SP_InventarioMasterRowChangeEvent(CType(e.Row,SP_InventarioMasterRow), e.Action))
  1959. End If
  1960. End Sub
  1961. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1962. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1963. Public Sub RemoveSP_InventarioMasterRow(ByVal row As SP_InventarioMasterRow)
  1964. Me.Rows.Remove(row)
  1965. End Sub
  1966. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  1967. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  1968. Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
  1969. Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
  1970. Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
  1971. Dim ds As dsInversiones = New dsInversiones()
  1972. Dim any1 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1973. any1.Namespace = "http://www.w3.org/2001/XMLSchema"
  1974. any1.MinOccurs = New Decimal(0)
  1975. any1.MaxOccurs = Decimal.MaxValue
  1976. any1.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1977. sequence.Items.Add(any1)
  1978. Dim any2 As Global.System.Xml.Schema.XmlSchemaAny = New Global.System.Xml.Schema.XmlSchemaAny()
  1979. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"
  1980. any2.MinOccurs = New Decimal(1)
  1981. any2.ProcessContents = Global.System.Xml.Schema.XmlSchemaContentProcessing.Lax
  1982. sequence.Items.Add(any2)
  1983. Dim attribute1 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1984. attribute1.Name = "namespace"
  1985. attribute1.FixedValue = ds.Namespace
  1986. type.Attributes.Add(attribute1)
  1987. Dim attribute2 As Global.System.Xml.Schema.XmlSchemaAttribute = New Global.System.Xml.Schema.XmlSchemaAttribute()
  1988. attribute2.Name = "tableTypeName"
  1989. attribute2.FixedValue = "SP_InventarioMasterDataTable"
  1990. type.Attributes.Add(attribute2)
  1991. type.Particle = sequence
  1992. Dim dsSchema As Global.System.Xml.Schema.XmlSchema = ds.GetSchemaSerializable
  1993. If xs.Contains(dsSchema.TargetNamespace) Then
  1994. Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1995. Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
  1996. Try
  1997. Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
  1998. dsSchema.Write(s1)
  1999. Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
  2000. Do While schemas.MoveNext
  2001. schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
  2002. s2.SetLength(0)
  2003. schema.Write(s2)
  2004. If (s1.Length = s2.Length) Then
  2005. s1.Position = 0
  2006. s2.Position = 0
  2007. Do While ((s1.Position <> s1.Length) _
  2008. AndAlso (s1.ReadByte = s2.ReadByte))
  2009. Loop
  2010. If (s1.Position = s1.Length) Then
  2011. Return type
  2012. End If
  2013. End If
  2014. Loop
  2015. Finally
  2016. If (Not (s1) Is Nothing) Then
  2017. s1.Close
  2018. End If
  2019. If (Not (s2) Is Nothing) Then
  2020. s2.Close
  2021. End If
  2022. End Try
  2023. End If
  2024. xs.Add(dsSchema)
  2025. Return type
  2026. End Function
  2027. End Class
  2028. '''<summary>
  2029. '''Represents strongly named DataRow class.
  2030. '''</summary>
  2031. Partial Public Class ECALRIRow
  2032. Inherits Global.System.Data.DataRow
  2033. Private tableECALRI As ECALRIDataTable
  2034. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2035. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2036. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  2037. MyBase.New(rb)
  2038. Me.tableECALRI = CType(Me.Table,ECALRIDataTable)
  2039. End Sub
  2040. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2041. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2042. Public Property CodECalRi() As String
  2043. Get
  2044. Return CType(Me(Me.tableECALRI.CodECalRiColumn),String)
  2045. End Get
  2046. Set
  2047. Me(Me.tableECALRI.CodECalRiColumn) = value
  2048. End Set
  2049. End Property
  2050. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2051. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2052. Public Property Descrip() As String
  2053. Get
  2054. Try
  2055. Return CType(Me(Me.tableECALRI.DescripColumn),String)
  2056. Catch e As Global.System.InvalidCastException
  2057. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Descrip' de la tabla 'ECALRI' es DBNull.", e)
  2058. End Try
  2059. End Get
  2060. Set
  2061. Me(Me.tableECALRI.DescripColumn) = value
  2062. End Set
  2063. End Property
  2064. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2065. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2066. Public Function IsDescripNull() As Boolean
  2067. Return Me.IsNull(Me.tableECALRI.DescripColumn)
  2068. End Function
  2069. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2070. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2071. Public Sub SetDescripNull()
  2072. Me(Me.tableECALRI.DescripColumn) = Global.System.Convert.DBNull
  2073. End Sub
  2074. End Class
  2075. '''<summary>
  2076. '''Represents strongly named DataRow class.
  2077. '''</summary>
  2078. Partial Public Class EMISRow
  2079. Inherits Global.System.Data.DataRow
  2080. Private tableEMIS As EMISDataTable
  2081. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2082. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2083. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  2084. MyBase.New(rb)
  2085. Me.tableEMIS = CType(Me.Table,EMISDataTable)
  2086. End Sub
  2087. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2088. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2089. Public Property CodEmis() As Integer
  2090. Get
  2091. Return CType(Me(Me.tableEMIS.CodEmisColumn),Integer)
  2092. End Get
  2093. Set
  2094. Me(Me.tableEMIS.CodEmisColumn) = value
  2095. End Set
  2096. End Property
  2097. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2098. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2099. Public Property Descrip() As String
  2100. Get
  2101. Try
  2102. Return CType(Me(Me.tableEMIS.DescripColumn),String)
  2103. Catch e As Global.System.InvalidCastException
  2104. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Descrip' de la tabla 'EMIS' es DBNull.", e)
  2105. End Try
  2106. End Get
  2107. Set
  2108. Me(Me.tableEMIS.DescripColumn) = value
  2109. End Set
  2110. End Property
  2111. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2112. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2113. Public Property Estado() As String
  2114. Get
  2115. Try
  2116. Return CType(Me(Me.tableEMIS.EstadoColumn),String)
  2117. Catch e As Global.System.InvalidCastException
  2118. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Estado' de la tabla 'EMIS' es DBNull.", e)
  2119. End Try
  2120. End Get
  2121. Set
  2122. Me(Me.tableEMIS.EstadoColumn) = value
  2123. End Set
  2124. End Property
  2125. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2126. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2127. Public Function IsDescripNull() As Boolean
  2128. Return Me.IsNull(Me.tableEMIS.DescripColumn)
  2129. End Function
  2130. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2131. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2132. Public Sub SetDescripNull()
  2133. Me(Me.tableEMIS.DescripColumn) = Global.System.Convert.DBNull
  2134. End Sub
  2135. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2136. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2137. Public Function IsEstadoNull() As Boolean
  2138. Return Me.IsNull(Me.tableEMIS.EstadoColumn)
  2139. End Function
  2140. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2141. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2142. Public Sub SetEstadoNull()
  2143. Me(Me.tableEMIS.EstadoColumn) = Global.System.Convert.DBNull
  2144. End Sub
  2145. End Class
  2146. '''<summary>
  2147. '''Represents strongly named DataRow class.
  2148. '''</summary>
  2149. Partial Public Class EMPRRow
  2150. Inherits Global.System.Data.DataRow
  2151. Private tableEMPR As EMPRDataTable
  2152. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2153. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2154. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  2155. MyBase.New(rb)
  2156. Me.tableEMPR = CType(Me.Table,EMPRDataTable)
  2157. End Sub
  2158. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2159. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2160. Public Property CodEmpr() As String
  2161. Get
  2162. Return CType(Me(Me.tableEMPR.CodEmprColumn),String)
  2163. End Get
  2164. Set
  2165. Me(Me.tableEMPR.CodEmprColumn) = value
  2166. End Set
  2167. End Property
  2168. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2169. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2170. Public Property Descrip() As String
  2171. Get
  2172. Try
  2173. Return CType(Me(Me.tableEMPR.DescripColumn),String)
  2174. Catch e As Global.System.InvalidCastException
  2175. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Descrip' de la tabla 'EMPR' es DBNull.", e)
  2176. End Try
  2177. End Get
  2178. Set
  2179. Me(Me.tableEMPR.DescripColumn) = value
  2180. End Set
  2181. End Property
  2182. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2183. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2184. Public Property SAP_BD() As String
  2185. Get
  2186. Try
  2187. Return CType(Me(Me.tableEMPR.SAP_BDColumn),String)
  2188. Catch e As Global.System.InvalidCastException
  2189. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'SAP_BD' de la tabla 'EMPR' es DBNull.", e)
  2190. End Try
  2191. End Get
  2192. Set
  2193. Me(Me.tableEMPR.SAP_BDColumn) = value
  2194. End Set
  2195. End Property
  2196. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2197. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2198. Public Function IsDescripNull() As Boolean
  2199. Return Me.IsNull(Me.tableEMPR.DescripColumn)
  2200. End Function
  2201. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2202. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2203. Public Sub SetDescripNull()
  2204. Me(Me.tableEMPR.DescripColumn) = Global.System.Convert.DBNull
  2205. End Sub
  2206. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2207. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2208. Public Function IsSAP_BDNull() As Boolean
  2209. Return Me.IsNull(Me.tableEMPR.SAP_BDColumn)
  2210. End Function
  2211. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2212. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2213. Public Sub SetSAP_BDNull()
  2214. Me(Me.tableEMPR.SAP_BDColumn) = Global.System.Convert.DBNull
  2215. End Sub
  2216. End Class
  2217. '''<summary>
  2218. '''Represents strongly named DataRow class.
  2219. '''</summary>
  2220. Partial Public Class INFIRow
  2221. Inherits Global.System.Data.DataRow
  2222. Private tableINFI As INFIDataTable
  2223. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2224. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2225. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  2226. MyBase.New(rb)
  2227. Me.tableINFI = CType(Me.Table,INFIDataTable)
  2228. End Sub
  2229. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2230. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2231. Public Property CodIF() As String
  2232. Get
  2233. Return CType(Me(Me.tableINFI.CodIFColumn),String)
  2234. End Get
  2235. Set
  2236. Me(Me.tableINFI.CodIFColumn) = value
  2237. End Set
  2238. End Property
  2239. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2240. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2241. Public Property Descrip() As String
  2242. Get
  2243. Try
  2244. Return CType(Me(Me.tableINFI.DescripColumn),String)
  2245. Catch e As Global.System.InvalidCastException
  2246. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Descrip' de la tabla 'INFI' es DBNull.", e)
  2247. End Try
  2248. End Get
  2249. Set
  2250. Me(Me.tableINFI.DescripColumn) = value
  2251. End Set
  2252. End Property
  2253. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2254. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2255. Public Property Tipo() As String
  2256. Get
  2257. Try
  2258. Return CType(Me(Me.tableINFI.TipoColumn),String)
  2259. Catch e As Global.System.InvalidCastException
  2260. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Tipo' de la tabla 'INFI' es DBNull.", e)
  2261. End Try
  2262. End Get
  2263. Set
  2264. Me(Me.tableINFI.TipoColumn) = value
  2265. End Set
  2266. End Property
  2267. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2268. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2269. Public Function IsDescripNull() As Boolean
  2270. Return Me.IsNull(Me.tableINFI.DescripColumn)
  2271. End Function
  2272. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2273. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2274. Public Sub SetDescripNull()
  2275. Me(Me.tableINFI.DescripColumn) = Global.System.Convert.DBNull
  2276. End Sub
  2277. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2278. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2279. Public Function IsTipoNull() As Boolean
  2280. Return Me.IsNull(Me.tableINFI.TipoColumn)
  2281. End Function
  2282. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2283. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2284. Public Sub SetTipoNull()
  2285. Me(Me.tableINFI.TipoColumn) = Global.System.Convert.DBNull
  2286. End Sub
  2287. End Class
  2288. '''<summary>
  2289. '''Represents strongly named DataRow class.
  2290. '''</summary>
  2291. Partial Public Class PAISRow
  2292. Inherits Global.System.Data.DataRow
  2293. Private tablePAIS As PAISDataTable
  2294. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2295. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2296. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  2297. MyBase.New(rb)
  2298. Me.tablePAIS = CType(Me.Table,PAISDataTable)
  2299. End Sub
  2300. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2301. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2302. Public Property CodPais() As String
  2303. Get
  2304. Return CType(Me(Me.tablePAIS.CodPaisColumn),String)
  2305. End Get
  2306. Set
  2307. Me(Me.tablePAIS.CodPaisColumn) = value
  2308. End Set
  2309. End Property
  2310. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2311. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2312. Public Property Descrip() As String
  2313. Get
  2314. Try
  2315. Return CType(Me(Me.tablePAIS.DescripColumn),String)
  2316. Catch e As Global.System.InvalidCastException
  2317. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Descrip' de la tabla 'PAIS' es DBNull.", e)
  2318. End Try
  2319. End Get
  2320. Set
  2321. Me(Me.tablePAIS.DescripColumn) = value
  2322. End Set
  2323. End Property
  2324. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2325. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2326. Public Property RelInv() As String
  2327. Get
  2328. Try
  2329. Return CType(Me(Me.tablePAIS.RelInvColumn),String)
  2330. Catch e As Global.System.InvalidCastException
  2331. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'RelInv' de la tabla 'PAIS' es DBNull.", e)
  2332. End Try
  2333. End Get
  2334. Set
  2335. Me(Me.tablePAIS.RelInvColumn) = value
  2336. End Set
  2337. End Property
  2338. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2339. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2340. Public Function IsDescripNull() As Boolean
  2341. Return Me.IsNull(Me.tablePAIS.DescripColumn)
  2342. End Function
  2343. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2344. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2345. Public Sub SetDescripNull()
  2346. Me(Me.tablePAIS.DescripColumn) = Global.System.Convert.DBNull
  2347. End Sub
  2348. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2349. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2350. Public Function IsRelInvNull() As Boolean
  2351. Return Me.IsNull(Me.tablePAIS.RelInvColumn)
  2352. End Function
  2353. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2354. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2355. Public Sub SetRelInvNull()
  2356. Me(Me.tablePAIS.RelInvColumn) = Global.System.Convert.DBNull
  2357. End Sub
  2358. End Class
  2359. '''<summary>
  2360. '''Represents strongly named DataRow class.
  2361. '''</summary>
  2362. Partial Public Class SP_InventarioMasterRow
  2363. Inherits Global.System.Data.DataRow
  2364. Private tableSP_InventarioMaster As SP_InventarioMasterDataTable
  2365. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2366. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2367. Friend Sub New(ByVal rb As Global.System.Data.DataRowBuilder)
  2368. MyBase.New(rb)
  2369. Me.tableSP_InventarioMaster = CType(Me.Table,SP_InventarioMasterDataTable)
  2370. End Sub
  2371. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2372. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2373. Public Property CodInv() As String
  2374. Get
  2375. Try
  2376. Return CType(Me(Me.tableSP_InventarioMaster.CodInvColumn),String)
  2377. Catch e As Global.System.InvalidCastException
  2378. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodInv' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  2379. End Try
  2380. End Get
  2381. Set
  2382. Me(Me.tableSP_InventarioMaster.CodInvColumn) = value
  2383. End Set
  2384. End Property
  2385. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2386. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2387. Public Property CodIF() As String
  2388. Get
  2389. Try
  2390. Return CType(Me(Me.tableSP_InventarioMaster.CodIFColumn),String)
  2391. Catch e As Global.System.InvalidCastException
  2392. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodIF' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  2393. End Try
  2394. End Get
  2395. Set
  2396. Me(Me.tableSP_InventarioMaster.CodIFColumn) = value
  2397. End Set
  2398. End Property
  2399. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2400. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2401. Public Property Estado() As String
  2402. Get
  2403. Try
  2404. Return CType(Me(Me.tableSP_InventarioMaster.EstadoColumn),String)
  2405. Catch e As Global.System.InvalidCastException
  2406. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'Estado' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  2407. End Try
  2408. End Get
  2409. Set
  2410. Me(Me.tableSP_InventarioMaster.EstadoColumn) = value
  2411. End Set
  2412. End Property
  2413. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2414. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2415. Public Property CodEmpr() As String
  2416. Get
  2417. Try
  2418. Return CType(Me(Me.tableSP_InventarioMaster.CodEmprColumn),String)
  2419. Catch e As Global.System.InvalidCastException
  2420. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodEmpr' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  2421. End Try
  2422. End Get
  2423. Set
  2424. Me(Me.tableSP_InventarioMaster.CodEmprColumn) = value
  2425. End Set
  2426. End Property
  2427. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2428. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2429. Public Property NombreManIF() As String
  2430. Get
  2431. Try
  2432. Return CType(Me(Me.tableSP_InventarioMaster.NombreManIFColumn),String)
  2433. Catch e As Global.System.InvalidCastException
  2434. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'NombreManIF' de la tabla 'SP_InventarioMaster' es DBNull."& _
  2435. "", e)
  2436. End Try
  2437. End Get
  2438. Set
  2439. Me(Me.tableSP_InventarioMaster.NombreManIFColumn) = value
  2440. End Set
  2441. End Property
  2442. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2443. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2444. Public Property CodManIF() As String
  2445. Get
  2446. Try
  2447. Return CType(Me(Me.tableSP_InventarioMaster.CodManIFColumn),String)
  2448. Catch e As Global.System.InvalidCastException
  2449. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodManIF' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  2450. End Try
  2451. End Get
  2452. Set
  2453. Me(Me.tableSP_InventarioMaster.CodManIFColumn) = value
  2454. End Set
  2455. End Property
  2456. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2457. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2458. Public Property CodEmis() As Integer
  2459. Get
  2460. Try
  2461. Return CType(Me(Me.tableSP_InventarioMaster.CodEmisColumn),Integer)
  2462. Catch e As Global.System.InvalidCastException
  2463. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodEmis' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  2464. End Try
  2465. End Get
  2466. Set
  2467. Me(Me.tableSP_InventarioMaster.CodEmisColumn) = value
  2468. End Set
  2469. End Property
  2470. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2471. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2472. Public Property iCasaBanco() As String
  2473. Get
  2474. Try
  2475. Return CType(Me(Me.tableSP_InventarioMaster.iCasaBancoColumn),String)
  2476. Catch e As Global.System.InvalidCastException
  2477. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'iCasaBanco' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  2478. End Try
  2479. End Get
  2480. Set
  2481. Me(Me.tableSP_InventarioMaster.iCasaBancoColumn) = value
  2482. End Set
  2483. End Property
  2484. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2485. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2486. Public Property vCasaBanco() As String
  2487. Get
  2488. Try
  2489. Return CType(Me(Me.tableSP_InventarioMaster.vCasaBancoColumn),String)
  2490. Catch e As Global.System.InvalidCastException
  2491. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'vCasaBanco' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  2492. End Try
  2493. End Get
  2494. Set
  2495. Me(Me.tableSP_InventarioMaster.vCasaBancoColumn) = value
  2496. End Set
  2497. End Property
  2498. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2499. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2500. Public Property TipoMerc() As String
  2501. Get
  2502. Try
  2503. Return CType(Me(Me.tableSP_InventarioMaster.TipoMercColumn),String)
  2504. Catch e As Global.System.InvalidCastException
  2505. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'TipoMerc' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  2506. End Try
  2507. End Get
  2508. Set
  2509. Me(Me.tableSP_InventarioMaster.TipoMercColumn) = value
  2510. End Set
  2511. End Property
  2512. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2513. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2514. Public Property CodCalRi() As String
  2515. Get
  2516. Try
  2517. Return CType(Me(Me.tableSP_InventarioMaster.CodCalRiColumn),String)
  2518. Catch e As Global.System.InvalidCastException
  2519. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodCalRi' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  2520. End Try
  2521. End Get
  2522. Set
  2523. Me(Me.tableSP_InventarioMaster.CodCalRiColumn) = value
  2524. End Set
  2525. End Property
  2526. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2527. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2528. Public Property CodECalRi() As String
  2529. Get
  2530. Try
  2531. Return CType(Me(Me.tableSP_InventarioMaster.CodECalRiColumn),String)
  2532. Catch e As Global.System.InvalidCastException
  2533. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'CodECalRi' de la tabla 'SP_InventarioMaster' es DBNull.", e)
  2534. End Try
  2535. End Get
  2536. Set
  2537. Me(Me.tableSP_InventarioMaster.CodECalRiColumn) = value
  2538. End Set
  2539. End Property
  2540. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2541. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2542. Public Property ValorNominal() As Decimal
  2543. Get
  2544. Try
  2545. Return CType(Me(Me.tableSP_InventarioMaster.ValorNominalColumn),Decimal)
  2546. Catch e As Global.System.InvalidCastException
  2547. Throw New Global.System.Data.StrongTypingException("El valor de la columna 'ValorNominal' de la tabla 'SP_InventarioMaster' es DBNull"& _
  2548. ".", e)
  2549. End Try
  2550. End Get
  2551. Set
  2552. Me(Me.tableSP_InventarioMaster.ValorNominalColumn) = value
  2553. End Set
  2554. End Property
  2555. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2556. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2557. Public Function IsCodInvNull() As Boolean
  2558. Return Me.IsNull(Me.tableSP_InventarioMaster.CodInvColumn)
  2559. End Function
  2560. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2561. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2562. Public Sub SetCodInvNull()
  2563. Me(Me.tableSP_InventarioMaster.CodInvColumn) = Global.System.Convert.DBNull
  2564. End Sub
  2565. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2566. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2567. Public Function IsCodIFNull() As Boolean
  2568. Return Me.IsNull(Me.tableSP_InventarioMaster.CodIFColumn)
  2569. End Function
  2570. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2571. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2572. Public Sub SetCodIFNull()
  2573. Me(Me.tableSP_InventarioMaster.CodIFColumn) = Global.System.Convert.DBNull
  2574. End Sub
  2575. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2576. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2577. Public Function IsEstadoNull() As Boolean
  2578. Return Me.IsNull(Me.tableSP_InventarioMaster.EstadoColumn)
  2579. End Function
  2580. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2581. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2582. Public Sub SetEstadoNull()
  2583. Me(Me.tableSP_InventarioMaster.EstadoColumn) = Global.System.Convert.DBNull
  2584. End Sub
  2585. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2586. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2587. Public Function IsCodEmprNull() As Boolean
  2588. Return Me.IsNull(Me.tableSP_InventarioMaster.CodEmprColumn)
  2589. End Function
  2590. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2591. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2592. Public Sub SetCodEmprNull()
  2593. Me(Me.tableSP_InventarioMaster.CodEmprColumn) = Global.System.Convert.DBNull
  2594. End Sub
  2595. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2596. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2597. Public Function IsNombreManIFNull() As Boolean
  2598. Return Me.IsNull(Me.tableSP_InventarioMaster.NombreManIFColumn)
  2599. End Function
  2600. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2601. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2602. Public Sub SetNombreManIFNull()
  2603. Me(Me.tableSP_InventarioMaster.NombreManIFColumn) = Global.System.Convert.DBNull
  2604. End Sub
  2605. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2606. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2607. Public Function IsCodManIFNull() As Boolean
  2608. Return Me.IsNull(Me.tableSP_InventarioMaster.CodManIFColumn)
  2609. End Function
  2610. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2611. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2612. Public Sub SetCodManIFNull()
  2613. Me(Me.tableSP_InventarioMaster.CodManIFColumn) = Global.System.Convert.DBNull
  2614. End Sub
  2615. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2616. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2617. Public Function IsCodEmisNull() As Boolean
  2618. Return Me.IsNull(Me.tableSP_InventarioMaster.CodEmisColumn)
  2619. End Function
  2620. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2621. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2622. Public Sub SetCodEmisNull()
  2623. Me(Me.tableSP_InventarioMaster.CodEmisColumn) = Global.System.Convert.DBNull
  2624. End Sub
  2625. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2626. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2627. Public Function IsiCasaBancoNull() As Boolean
  2628. Return Me.IsNull(Me.tableSP_InventarioMaster.iCasaBancoColumn)
  2629. End Function
  2630. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2631. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2632. Public Sub SetiCasaBancoNull()
  2633. Me(Me.tableSP_InventarioMaster.iCasaBancoColumn) = Global.System.Convert.DBNull
  2634. End Sub
  2635. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2636. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2637. Public Function IsvCasaBancoNull() As Boolean
  2638. Return Me.IsNull(Me.tableSP_InventarioMaster.vCasaBancoColumn)
  2639. End Function
  2640. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2641. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2642. Public Sub SetvCasaBancoNull()
  2643. Me(Me.tableSP_InventarioMaster.vCasaBancoColumn) = Global.System.Convert.DBNull
  2644. End Sub
  2645. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2646. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2647. Public Function IsTipoMercNull() As Boolean
  2648. Return Me.IsNull(Me.tableSP_InventarioMaster.TipoMercColumn)
  2649. End Function
  2650. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2651. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2652. Public Sub SetTipoMercNull()
  2653. Me(Me.tableSP_InventarioMaster.TipoMercColumn) = Global.System.Convert.DBNull
  2654. End Sub
  2655. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2656. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2657. Public Function IsCodCalRiNull() As Boolean
  2658. Return Me.IsNull(Me.tableSP_InventarioMaster.CodCalRiColumn)
  2659. End Function
  2660. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2661. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2662. Public Sub SetCodCalRiNull()
  2663. Me(Me.tableSP_InventarioMaster.CodCalRiColumn) = Global.System.Convert.DBNull
  2664. End Sub
  2665. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2666. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2667. Public Function IsCodECalRiNull() As Boolean
  2668. Return Me.IsNull(Me.tableSP_InventarioMaster.CodECalRiColumn)
  2669. End Function
  2670. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2671. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2672. Public Sub SetCodECalRiNull()
  2673. Me(Me.tableSP_InventarioMaster.CodECalRiColumn) = Global.System.Convert.DBNull
  2674. End Sub
  2675. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2676. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2677. Public Function IsValorNominalNull() As Boolean
  2678. Return Me.IsNull(Me.tableSP_InventarioMaster.ValorNominalColumn)
  2679. End Function
  2680. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2681. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2682. Public Sub SetValorNominalNull()
  2683. Me(Me.tableSP_InventarioMaster.ValorNominalColumn) = Global.System.Convert.DBNull
  2684. End Sub
  2685. End Class
  2686. '''<summary>
  2687. '''Row event argument class
  2688. '''</summary>
  2689. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2690. Public Class ECALRIRowChangeEvent
  2691. Inherits Global.System.EventArgs
  2692. Private eventRow As ECALRIRow
  2693. Private eventAction As Global.System.Data.DataRowAction
  2694. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2695. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2696. Public Sub New(ByVal row As ECALRIRow, ByVal action As Global.System.Data.DataRowAction)
  2697. MyBase.New
  2698. Me.eventRow = row
  2699. Me.eventAction = action
  2700. End Sub
  2701. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2702. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2703. Public ReadOnly Property Row() As ECALRIRow
  2704. Get
  2705. Return Me.eventRow
  2706. End Get
  2707. End Property
  2708. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2709. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2710. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  2711. Get
  2712. Return Me.eventAction
  2713. End Get
  2714. End Property
  2715. End Class
  2716. '''<summary>
  2717. '''Row event argument class
  2718. '''</summary>
  2719. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2720. Public Class EMISRowChangeEvent
  2721. Inherits Global.System.EventArgs
  2722. Private eventRow As EMISRow
  2723. Private eventAction As Global.System.Data.DataRowAction
  2724. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2725. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2726. Public Sub New(ByVal row As EMISRow, ByVal action As Global.System.Data.DataRowAction)
  2727. MyBase.New
  2728. Me.eventRow = row
  2729. Me.eventAction = action
  2730. End Sub
  2731. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2732. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2733. Public ReadOnly Property Row() As EMISRow
  2734. Get
  2735. Return Me.eventRow
  2736. End Get
  2737. End Property
  2738. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2739. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2740. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  2741. Get
  2742. Return Me.eventAction
  2743. End Get
  2744. End Property
  2745. End Class
  2746. '''<summary>
  2747. '''Row event argument class
  2748. '''</summary>
  2749. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2750. Public Class EMPRRowChangeEvent
  2751. Inherits Global.System.EventArgs
  2752. Private eventRow As EMPRRow
  2753. Private eventAction As Global.System.Data.DataRowAction
  2754. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2755. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2756. Public Sub New(ByVal row As EMPRRow, ByVal action As Global.System.Data.DataRowAction)
  2757. MyBase.New
  2758. Me.eventRow = row
  2759. Me.eventAction = action
  2760. End Sub
  2761. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2762. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2763. Public ReadOnly Property Row() As EMPRRow
  2764. Get
  2765. Return Me.eventRow
  2766. End Get
  2767. End Property
  2768. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2769. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2770. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  2771. Get
  2772. Return Me.eventAction
  2773. End Get
  2774. End Property
  2775. End Class
  2776. '''<summary>
  2777. '''Row event argument class
  2778. '''</summary>
  2779. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2780. Public Class INFIRowChangeEvent
  2781. Inherits Global.System.EventArgs
  2782. Private eventRow As INFIRow
  2783. Private eventAction As Global.System.Data.DataRowAction
  2784. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2785. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2786. Public Sub New(ByVal row As INFIRow, ByVal action As Global.System.Data.DataRowAction)
  2787. MyBase.New
  2788. Me.eventRow = row
  2789. Me.eventAction = action
  2790. End Sub
  2791. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2792. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2793. Public ReadOnly Property Row() As INFIRow
  2794. Get
  2795. Return Me.eventRow
  2796. End Get
  2797. End Property
  2798. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2799. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2800. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  2801. Get
  2802. Return Me.eventAction
  2803. End Get
  2804. End Property
  2805. End Class
  2806. '''<summary>
  2807. '''Row event argument class
  2808. '''</summary>
  2809. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2810. Public Class PAISRowChangeEvent
  2811. Inherits Global.System.EventArgs
  2812. Private eventRow As PAISRow
  2813. Private eventAction As Global.System.Data.DataRowAction
  2814. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2815. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2816. Public Sub New(ByVal row As PAISRow, ByVal action As Global.System.Data.DataRowAction)
  2817. MyBase.New
  2818. Me.eventRow = row
  2819. Me.eventAction = action
  2820. End Sub
  2821. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2822. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2823. Public ReadOnly Property Row() As PAISRow
  2824. Get
  2825. Return Me.eventRow
  2826. End Get
  2827. End Property
  2828. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2829. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2830. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  2831. Get
  2832. Return Me.eventAction
  2833. End Get
  2834. End Property
  2835. End Class
  2836. '''<summary>
  2837. '''Row event argument class
  2838. '''</summary>
  2839. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2840. Public Class SP_InventarioMasterRowChangeEvent
  2841. Inherits Global.System.EventArgs
  2842. Private eventRow As SP_InventarioMasterRow
  2843. Private eventAction As Global.System.Data.DataRowAction
  2844. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2845. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2846. Public Sub New(ByVal row As SP_InventarioMasterRow, ByVal action As Global.System.Data.DataRowAction)
  2847. MyBase.New
  2848. Me.eventRow = row
  2849. Me.eventAction = action
  2850. End Sub
  2851. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2852. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2853. Public ReadOnly Property Row() As SP_InventarioMasterRow
  2854. Get
  2855. Return Me.eventRow
  2856. End Get
  2857. End Property
  2858. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2859. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2860. Public ReadOnly Property Action() As Global.System.Data.DataRowAction
  2861. Get
  2862. Return Me.eventAction
  2863. End Get
  2864. End Property
  2865. End Class
  2866. End Class
  2867. Namespace dsInversionesTableAdapters
  2868. '''<summary>
  2869. '''Represents the connection and commands used to retrieve and save data.
  2870. '''</summary>
  2871. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  2872. Global.System.ComponentModel.ToolboxItem(true), _
  2873. Global.System.ComponentModel.DataObjectAttribute(true), _
  2874. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  2875. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  2876. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  2877. Partial Public Class ECALRITableAdapter
  2878. Inherits Global.System.ComponentModel.Component
  2879. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  2880. Private _connection As Global.System.Data.SqlClient.SqlConnection
  2881. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  2882. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  2883. Private _clearBeforeFill As Boolean
  2884. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2885. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2886. Public Sub New()
  2887. MyBase.New
  2888. Me.ClearBeforeFill = true
  2889. End Sub
  2890. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2891. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2892. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  2893. Get
  2894. If (Me._adapter Is Nothing) Then
  2895. Me.InitAdapter
  2896. End If
  2897. Return Me._adapter
  2898. End Get
  2899. End Property
  2900. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2901. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2902. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  2903. Get
  2904. If (Me._connection Is Nothing) Then
  2905. Me.InitConnection
  2906. End If
  2907. Return Me._connection
  2908. End Get
  2909. Set
  2910. Me._connection = value
  2911. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  2912. Me.Adapter.InsertCommand.Connection = value
  2913. End If
  2914. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  2915. Me.Adapter.DeleteCommand.Connection = value
  2916. End If
  2917. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  2918. Me.Adapter.UpdateCommand.Connection = value
  2919. End If
  2920. Dim i As Integer = 0
  2921. Do While (i < Me.CommandCollection.Length)
  2922. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  2923. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  2924. End If
  2925. i = (i + 1)
  2926. Loop
  2927. End Set
  2928. End Property
  2929. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2930. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2931. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  2932. Get
  2933. Return Me._transaction
  2934. End Get
  2935. Set
  2936. Me._transaction = value
  2937. Dim i As Integer = 0
  2938. Do While (i < Me.CommandCollection.Length)
  2939. Me.CommandCollection(i).Transaction = Me._transaction
  2940. i = (i + 1)
  2941. Loop
  2942. If ((Not (Me.Adapter) Is Nothing) _
  2943. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  2944. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  2945. End If
  2946. If ((Not (Me.Adapter) Is Nothing) _
  2947. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  2948. Me.Adapter.InsertCommand.Transaction = Me._transaction
  2949. End If
  2950. If ((Not (Me.Adapter) Is Nothing) _
  2951. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  2952. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  2953. End If
  2954. End Set
  2955. End Property
  2956. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2957. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2958. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  2959. Get
  2960. If (Me._commandCollection Is Nothing) Then
  2961. Me.InitCommandCollection
  2962. End If
  2963. Return Me._commandCollection
  2964. End Get
  2965. End Property
  2966. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2967. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2968. Public Property ClearBeforeFill() As Boolean
  2969. Get
  2970. Return Me._clearBeforeFill
  2971. End Get
  2972. Set
  2973. Me._clearBeforeFill = value
  2974. End Set
  2975. End Property
  2976. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  2977. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  2978. Private Sub InitAdapter()
  2979. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  2980. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  2981. tableMapping.SourceTable = "Table"
  2982. tableMapping.DataSetTable = "ECALRI"
  2983. tableMapping.ColumnMappings.Add("CodECalRi", "CodECalRi")
  2984. tableMapping.ColumnMappings.Add("Descrip", "Descrip")
  2985. Me._adapter.TableMappings.Add(tableMapping)
  2986. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  2987. Me._adapter.DeleteCommand.Connection = Me.Connection
  2988. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ECALRI] WHERE (([CodECalRi] = @Original_CodECalRi) AND ((@IsNu"& _
  2989. "ll_Descrip = 1 AND [Descrip] IS NULL) OR ([Descrip] = @Original_Descrip)))"
  2990. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  2991. 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, "", "", ""))
  2992. 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, "", "", ""))
  2993. 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, "", "", ""))
  2994. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  2995. Me._adapter.InsertCommand.Connection = Me.Connection
  2996. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ECALRI] ([CodECalRi], [Descrip]) VALUES (@CodECalRi, @Descrip)"& _
  2997. ";"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodECalRi, Descrip FROM ECALRI WHERE (CodECalRi = @CodECalRi)"
  2998. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  2999. 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, "", "", ""))
  3000. 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, "", "", ""))
  3001. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  3002. Me._adapter.UpdateCommand.Connection = Me.Connection
  3003. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[ECALRI] SET [CodECalRi] = @CodECalRi, [Descrip] = @Descrip WHERE (("& _
  3004. "[CodECalRi] = @Original_CodECalRi) AND ((@IsNull_Descrip = 1 AND [Descrip] IS NU"& _
  3005. "LL) OR ([Descrip] = @Original_Descrip)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodECalRi, Descrip FROM ECALRI"& _
  3006. " WHERE (CodECalRi = @CodECalRi)"
  3007. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  3008. 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, "", "", ""))
  3009. 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, "", "", ""))
  3010. 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, "", "", ""))
  3011. 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, "", "", ""))
  3012. 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, "", "", ""))
  3013. End Sub
  3014. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3015. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3016. Private Sub InitConnection()
  3017. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  3018. Me._connection.ConnectionString = "Data Source=XOMBRA\SQL2014;Initial Catalog=Inversiones_20190620;Integrated Securi"& _
  3019. "ty=True"
  3020. End Sub
  3021. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3022. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3023. Private Sub InitCommandCollection()
  3024. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  3025. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  3026. Me._commandCollection(0).Connection = Me.Connection
  3027. Me._commandCollection(0).CommandText = "SELECT CodECalRi, Descrip FROM dbo.ECALRI"
  3028. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  3029. End Sub
  3030. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3031. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3032. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3033. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  3034. Public Overloads Overridable Function Fill(ByVal dataTable As dsInversiones.ECALRIDataTable) As Integer
  3035. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  3036. If (Me.ClearBeforeFill = true) Then
  3037. dataTable.Clear
  3038. End If
  3039. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  3040. Return returnValue
  3041. End Function
  3042. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3043. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3044. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3045. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  3046. Public Overloads Overridable Function GetData() As dsInversiones.ECALRIDataTable
  3047. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  3048. Dim dataTable As dsInversiones.ECALRIDataTable = New dsInversiones.ECALRIDataTable()
  3049. Me.Adapter.Fill(dataTable)
  3050. Return dataTable
  3051. End Function
  3052. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3053. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3054. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3055. Public Overloads Overridable Function Update(ByVal dataTable As dsInversiones.ECALRIDataTable) As Integer
  3056. Return Me.Adapter.Update(dataTable)
  3057. End Function
  3058. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3059. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3060. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3061. Public Overloads Overridable Function Update(ByVal dataSet As dsInversiones) As Integer
  3062. Return Me.Adapter.Update(dataSet, "ECALRI")
  3063. End Function
  3064. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3065. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3066. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3067. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  3068. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  3069. End Function
  3070. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3071. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3072. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3073. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  3074. Return Me.Adapter.Update(dataRows)
  3075. End Function
  3076. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3077. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3078. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3079. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  3080. Public Overloads Overridable Function Delete(ByVal Original_CodECalRi As String, ByVal Original_Descrip As String) As Integer
  3081. If (Original_CodECalRi Is Nothing) Then
  3082. Throw New Global.System.ArgumentNullException("Original_CodECalRi")
  3083. Else
  3084. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodECalRi,String)
  3085. End If
  3086. If (Original_Descrip Is Nothing) Then
  3087. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  3088. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  3089. Else
  3090. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  3091. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Descrip,String)
  3092. End If
  3093. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  3094. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  3095. <> Global.System.Data.ConnectionState.Open) Then
  3096. Me.Adapter.DeleteCommand.Connection.Open
  3097. End If
  3098. Try
  3099. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  3100. Return returnValue
  3101. Finally
  3102. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  3103. Me.Adapter.DeleteCommand.Connection.Close
  3104. End If
  3105. End Try
  3106. End Function
  3107. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3108. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3109. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3110. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  3111. Public Overloads Overridable Function Insert(ByVal CodECalRi As String, ByVal Descrip As String) As Integer
  3112. If (CodECalRi Is Nothing) Then
  3113. Throw New Global.System.ArgumentNullException("CodECalRi")
  3114. Else
  3115. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodECalRi,String)
  3116. End If
  3117. If (Descrip Is Nothing) Then
  3118. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  3119. Else
  3120. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Descrip,String)
  3121. End If
  3122. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  3123. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  3124. <> Global.System.Data.ConnectionState.Open) Then
  3125. Me.Adapter.InsertCommand.Connection.Open
  3126. End If
  3127. Try
  3128. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  3129. Return returnValue
  3130. Finally
  3131. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  3132. Me.Adapter.InsertCommand.Connection.Close
  3133. End If
  3134. End Try
  3135. End Function
  3136. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3137. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3138. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3139. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  3140. 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
  3141. If (CodECalRi Is Nothing) Then
  3142. Throw New Global.System.ArgumentNullException("CodECalRi")
  3143. Else
  3144. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodECalRi,String)
  3145. End If
  3146. If (Descrip Is Nothing) Then
  3147. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  3148. Else
  3149. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Descrip,String)
  3150. End If
  3151. If (Original_CodECalRi Is Nothing) Then
  3152. Throw New Global.System.ArgumentNullException("Original_CodECalRi")
  3153. Else
  3154. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Original_CodECalRi,String)
  3155. End If
  3156. If (Original_Descrip Is Nothing) Then
  3157. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(1,Object)
  3158. Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
  3159. Else
  3160. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(0,Object)
  3161. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(Original_Descrip,String)
  3162. End If
  3163. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  3164. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  3165. <> Global.System.Data.ConnectionState.Open) Then
  3166. Me.Adapter.UpdateCommand.Connection.Open
  3167. End If
  3168. Try
  3169. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  3170. Return returnValue
  3171. Finally
  3172. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  3173. Me.Adapter.UpdateCommand.Connection.Close
  3174. End If
  3175. End Try
  3176. End Function
  3177. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3178. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3179. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3180. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  3181. Public Overloads Overridable Function Update(ByVal Descrip As String, ByVal Original_CodECalRi As String, ByVal Original_Descrip As String) As Integer
  3182. Return Me.Update(Original_CodECalRi, Descrip, Original_CodECalRi, Original_Descrip)
  3183. End Function
  3184. End Class
  3185. '''<summary>
  3186. '''Represents the connection and commands used to retrieve and save data.
  3187. '''</summary>
  3188. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  3189. Global.System.ComponentModel.ToolboxItem(true), _
  3190. Global.System.ComponentModel.DataObjectAttribute(true), _
  3191. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  3192. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  3193. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3194. Partial Public Class EMISTableAdapter
  3195. Inherits Global.System.ComponentModel.Component
  3196. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  3197. Private _connection As Global.System.Data.SqlClient.SqlConnection
  3198. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  3199. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  3200. Private _clearBeforeFill As Boolean
  3201. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3202. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3203. Public Sub New()
  3204. MyBase.New
  3205. Me.ClearBeforeFill = true
  3206. End Sub
  3207. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3208. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3209. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  3210. Get
  3211. If (Me._adapter Is Nothing) Then
  3212. Me.InitAdapter
  3213. End If
  3214. Return Me._adapter
  3215. End Get
  3216. End Property
  3217. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3218. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3219. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  3220. Get
  3221. If (Me._connection Is Nothing) Then
  3222. Me.InitConnection
  3223. End If
  3224. Return Me._connection
  3225. End Get
  3226. Set
  3227. Me._connection = value
  3228. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  3229. Me.Adapter.InsertCommand.Connection = value
  3230. End If
  3231. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  3232. Me.Adapter.DeleteCommand.Connection = value
  3233. End If
  3234. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  3235. Me.Adapter.UpdateCommand.Connection = value
  3236. End If
  3237. Dim i As Integer = 0
  3238. Do While (i < Me.CommandCollection.Length)
  3239. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  3240. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  3241. End If
  3242. i = (i + 1)
  3243. Loop
  3244. End Set
  3245. End Property
  3246. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3247. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3248. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  3249. Get
  3250. Return Me._transaction
  3251. End Get
  3252. Set
  3253. Me._transaction = value
  3254. Dim i As Integer = 0
  3255. Do While (i < Me.CommandCollection.Length)
  3256. Me.CommandCollection(i).Transaction = Me._transaction
  3257. i = (i + 1)
  3258. Loop
  3259. If ((Not (Me.Adapter) Is Nothing) _
  3260. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  3261. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  3262. End If
  3263. If ((Not (Me.Adapter) Is Nothing) _
  3264. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  3265. Me.Adapter.InsertCommand.Transaction = Me._transaction
  3266. End If
  3267. If ((Not (Me.Adapter) Is Nothing) _
  3268. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  3269. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  3270. End If
  3271. End Set
  3272. End Property
  3273. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3274. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3275. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  3276. Get
  3277. If (Me._commandCollection Is Nothing) Then
  3278. Me.InitCommandCollection
  3279. End If
  3280. Return Me._commandCollection
  3281. End Get
  3282. End Property
  3283. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3284. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3285. Public Property ClearBeforeFill() As Boolean
  3286. Get
  3287. Return Me._clearBeforeFill
  3288. End Get
  3289. Set
  3290. Me._clearBeforeFill = value
  3291. End Set
  3292. End Property
  3293. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3294. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3295. Private Sub InitAdapter()
  3296. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  3297. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  3298. tableMapping.SourceTable = "Table"
  3299. tableMapping.DataSetTable = "EMIS"
  3300. tableMapping.ColumnMappings.Add("CodEmis", "CodEmis")
  3301. tableMapping.ColumnMappings.Add("Descrip", "Descrip")
  3302. tableMapping.ColumnMappings.Add("Estado", "Estado")
  3303. Me._adapter.TableMappings.Add(tableMapping)
  3304. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  3305. Me._adapter.DeleteCommand.Connection = Me.Connection
  3306. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[EMIS] WHERE (([CodEmis] = @Original_CodEmis) AND ((@IsNull_Des"& _
  3307. "crip = 1 AND [Descrip] IS NULL) OR ([Descrip] = @Original_Descrip)) AND ((@IsNul"& _
  3308. "l_Estado = 1 AND [Estado] IS NULL) OR ([Estado] = @Original_Estado)))"
  3309. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  3310. 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, "", "", ""))
  3311. 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, "", "", ""))
  3312. 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, "", "", ""))
  3313. 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, "", "", ""))
  3314. 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, "", "", ""))
  3315. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  3316. Me._adapter.InsertCommand.Connection = Me.Connection
  3317. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[EMIS] ([Descrip], [Estado]) VALUES (@Descrip, @Estado);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELEC"& _
  3318. "T CodEmis, Descrip, Estado FROM EMIS WHERE (CodEmis = SCOPE_IDENTITY())"
  3319. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  3320. 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, "", "", ""))
  3321. 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, "", "", ""))
  3322. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  3323. Me._adapter.UpdateCommand.Connection = Me.Connection
  3324. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[EMIS] SET [Descrip] = @Descrip, [Estado] = @Estado WHERE (([CodEmis"& _
  3325. "] = @Original_CodEmis) AND ((@IsNull_Descrip = 1 AND [Descrip] IS NULL) OR ([Des"& _
  3326. "crip] = @Original_Descrip)) AND ((@IsNull_Estado = 1 AND [Estado] IS NULL) OR (["& _
  3327. "Estado] = @Original_Estado)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodEmis, Descrip, Estado FROM EMIS WHERE "& _
  3328. "(CodEmis = @CodEmis)"
  3329. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  3330. 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, "", "", ""))
  3331. 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, "", "", ""))
  3332. 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, "", "", ""))
  3333. 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, "", "", ""))
  3334. 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, "", "", ""))
  3335. 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, "", "", ""))
  3336. 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, "", "", ""))
  3337. 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, "", "", ""))
  3338. End Sub
  3339. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3340. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3341. Private Sub InitConnection()
  3342. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  3343. Me._connection.ConnectionString = "Data Source=XOMBRA\SQL2014;Initial Catalog=Inversiones_20190620;Integrated Securi"& _
  3344. "ty=True"
  3345. End Sub
  3346. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3347. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3348. Private Sub InitCommandCollection()
  3349. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  3350. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  3351. Me._commandCollection(0).Connection = Me.Connection
  3352. Me._commandCollection(0).CommandText = "SELECT CodEmis, Descrip, Estado FROM dbo.EMIS"
  3353. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  3354. End Sub
  3355. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3356. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3357. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3358. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  3359. Public Overloads Overridable Function Fill(ByVal dataTable As dsInversiones.EMISDataTable) As Integer
  3360. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  3361. If (Me.ClearBeforeFill = true) Then
  3362. dataTable.Clear
  3363. End If
  3364. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  3365. Return returnValue
  3366. End Function
  3367. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3368. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3369. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3370. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  3371. Public Overloads Overridable Function GetData() As dsInversiones.EMISDataTable
  3372. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  3373. Dim dataTable As dsInversiones.EMISDataTable = New dsInversiones.EMISDataTable()
  3374. Me.Adapter.Fill(dataTable)
  3375. Return dataTable
  3376. End Function
  3377. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3378. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3379. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3380. Public Overloads Overridable Function Update(ByVal dataTable As dsInversiones.EMISDataTable) As Integer
  3381. Return Me.Adapter.Update(dataTable)
  3382. End Function
  3383. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3384. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3385. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3386. Public Overloads Overridable Function Update(ByVal dataSet As dsInversiones) As Integer
  3387. Return Me.Adapter.Update(dataSet, "EMIS")
  3388. End Function
  3389. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3390. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3391. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3392. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  3393. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  3394. End Function
  3395. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3396. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3397. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3398. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  3399. Return Me.Adapter.Update(dataRows)
  3400. End Function
  3401. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3402. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3403. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3404. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  3405. Public Overloads Overridable Function Delete(ByVal Original_CodEmis As Integer, ByVal Original_Descrip As String, ByVal Original_Estado As String) As Integer
  3406. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodEmis,Integer)
  3407. If (Original_Descrip Is Nothing) Then
  3408. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  3409. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  3410. Else
  3411. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  3412. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Descrip,String)
  3413. End If
  3414. If (Original_Estado Is Nothing) Then
  3415. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
  3416. Me.Adapter.DeleteCommand.Parameters(4).Value = Global.System.DBNull.Value
  3417. Else
  3418. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
  3419. Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_Estado,String)
  3420. End If
  3421. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  3422. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  3423. <> Global.System.Data.ConnectionState.Open) Then
  3424. Me.Adapter.DeleteCommand.Connection.Open
  3425. End If
  3426. Try
  3427. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  3428. Return returnValue
  3429. Finally
  3430. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  3431. Me.Adapter.DeleteCommand.Connection.Close
  3432. End If
  3433. End Try
  3434. End Function
  3435. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3436. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3437. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3438. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  3439. Public Overloads Overridable Function Insert(ByVal Descrip As String, ByVal Estado As String) As Integer
  3440. If (Descrip Is Nothing) Then
  3441. Me.Adapter.InsertCommand.Parameters(0).Value = Global.System.DBNull.Value
  3442. Else
  3443. Me.Adapter.InsertCommand.Parameters(0).Value = CType(Descrip,String)
  3444. End If
  3445. If (Estado Is Nothing) Then
  3446. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  3447. Else
  3448. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Estado,String)
  3449. End If
  3450. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  3451. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  3452. <> Global.System.Data.ConnectionState.Open) Then
  3453. Me.Adapter.InsertCommand.Connection.Open
  3454. End If
  3455. Try
  3456. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  3457. Return returnValue
  3458. Finally
  3459. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  3460. Me.Adapter.InsertCommand.Connection.Close
  3461. End If
  3462. End Try
  3463. End Function
  3464. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3465. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3466. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3467. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  3468. 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
  3469. If (Descrip Is Nothing) Then
  3470. Me.Adapter.UpdateCommand.Parameters(0).Value = Global.System.DBNull.Value
  3471. Else
  3472. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(Descrip,String)
  3473. End If
  3474. If (Estado Is Nothing) Then
  3475. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  3476. Else
  3477. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Estado,String)
  3478. End If
  3479. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Original_CodEmis,Integer)
  3480. If (Original_Descrip Is Nothing) Then
  3481. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(1,Object)
  3482. Me.Adapter.UpdateCommand.Parameters(4).Value = Global.System.DBNull.Value
  3483. Else
  3484. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(0,Object)
  3485. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(Original_Descrip,String)
  3486. End If
  3487. If (Original_Estado Is Nothing) Then
  3488. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(1,Object)
  3489. Me.Adapter.UpdateCommand.Parameters(6).Value = Global.System.DBNull.Value
  3490. Else
  3491. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(0,Object)
  3492. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(Original_Estado,String)
  3493. End If
  3494. Me.Adapter.UpdateCommand.Parameters(7).Value = CType(CodEmis,Integer)
  3495. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  3496. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  3497. <> Global.System.Data.ConnectionState.Open) Then
  3498. Me.Adapter.UpdateCommand.Connection.Open
  3499. End If
  3500. Try
  3501. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  3502. Return returnValue
  3503. Finally
  3504. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  3505. Me.Adapter.UpdateCommand.Connection.Close
  3506. End If
  3507. End Try
  3508. End Function
  3509. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3510. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3511. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3512. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  3513. 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
  3514. Return Me.Update(Descrip, Estado, Original_CodEmis, Original_Descrip, Original_Estado, Original_CodEmis)
  3515. End Function
  3516. End Class
  3517. '''<summary>
  3518. '''Represents the connection and commands used to retrieve and save data.
  3519. '''</summary>
  3520. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  3521. Global.System.ComponentModel.ToolboxItem(true), _
  3522. Global.System.ComponentModel.DataObjectAttribute(true), _
  3523. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  3524. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  3525. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3526. Partial Public Class EMPRTableAdapter
  3527. Inherits Global.System.ComponentModel.Component
  3528. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  3529. Private _connection As Global.System.Data.SqlClient.SqlConnection
  3530. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  3531. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  3532. Private _clearBeforeFill As Boolean
  3533. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3534. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3535. Public Sub New()
  3536. MyBase.New
  3537. Me.ClearBeforeFill = true
  3538. End Sub
  3539. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3540. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3541. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  3542. Get
  3543. If (Me._adapter Is Nothing) Then
  3544. Me.InitAdapter
  3545. End If
  3546. Return Me._adapter
  3547. End Get
  3548. End Property
  3549. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3550. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3551. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  3552. Get
  3553. If (Me._connection Is Nothing) Then
  3554. Me.InitConnection
  3555. End If
  3556. Return Me._connection
  3557. End Get
  3558. Set
  3559. Me._connection = value
  3560. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  3561. Me.Adapter.InsertCommand.Connection = value
  3562. End If
  3563. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  3564. Me.Adapter.DeleteCommand.Connection = value
  3565. End If
  3566. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  3567. Me.Adapter.UpdateCommand.Connection = value
  3568. End If
  3569. Dim i As Integer = 0
  3570. Do While (i < Me.CommandCollection.Length)
  3571. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  3572. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  3573. End If
  3574. i = (i + 1)
  3575. Loop
  3576. End Set
  3577. End Property
  3578. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3579. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3580. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  3581. Get
  3582. Return Me._transaction
  3583. End Get
  3584. Set
  3585. Me._transaction = value
  3586. Dim i As Integer = 0
  3587. Do While (i < Me.CommandCollection.Length)
  3588. Me.CommandCollection(i).Transaction = Me._transaction
  3589. i = (i + 1)
  3590. Loop
  3591. If ((Not (Me.Adapter) Is Nothing) _
  3592. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  3593. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  3594. End If
  3595. If ((Not (Me.Adapter) Is Nothing) _
  3596. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  3597. Me.Adapter.InsertCommand.Transaction = Me._transaction
  3598. End If
  3599. If ((Not (Me.Adapter) Is Nothing) _
  3600. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  3601. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  3602. End If
  3603. End Set
  3604. End Property
  3605. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3606. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3607. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  3608. Get
  3609. If (Me._commandCollection Is Nothing) Then
  3610. Me.InitCommandCollection
  3611. End If
  3612. Return Me._commandCollection
  3613. End Get
  3614. End Property
  3615. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3616. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3617. Public Property ClearBeforeFill() As Boolean
  3618. Get
  3619. Return Me._clearBeforeFill
  3620. End Get
  3621. Set
  3622. Me._clearBeforeFill = value
  3623. End Set
  3624. End Property
  3625. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3626. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3627. Private Sub InitAdapter()
  3628. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  3629. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  3630. tableMapping.SourceTable = "Table"
  3631. tableMapping.DataSetTable = "EMPR"
  3632. tableMapping.ColumnMappings.Add("CodEmpr", "CodEmpr")
  3633. tableMapping.ColumnMappings.Add("Descrip", "Descrip")
  3634. tableMapping.ColumnMappings.Add("SAP_BD", "SAP_BD")
  3635. Me._adapter.TableMappings.Add(tableMapping)
  3636. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  3637. Me._adapter.DeleteCommand.Connection = Me.Connection
  3638. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[EMPR] WHERE (([CodEmpr] = @Original_CodEmpr) AND ((@IsNull_Des"& _
  3639. "crip = 1 AND [Descrip] IS NULL) OR ([Descrip] = @Original_Descrip)) AND ((@IsNul"& _
  3640. "l_SAP_BD = 1 AND [SAP_BD] IS NULL) OR ([SAP_BD] = @Original_SAP_BD)))"
  3641. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  3642. 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, "", "", ""))
  3643. 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, "", "", ""))
  3644. 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, "", "", ""))
  3645. 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, "", "", ""))
  3646. 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, "", "", ""))
  3647. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  3648. Me._adapter.InsertCommand.Connection = Me.Connection
  3649. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[EMPR] ([CodEmpr], [Descrip], [SAP_BD]) VALUES (@CodEmpr, @Desc"& _
  3650. "rip, @SAP_BD);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodEmpr, Descrip, SAP_BD FROM EMPR WHERE (CodEmpr = @CodE"& _
  3651. "mpr)"
  3652. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  3653. 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, "", "", ""))
  3654. 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, "", "", ""))
  3655. Me._adapter.InsertCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SAP_BD", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "SAP_BD", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  3656. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  3657. Me._adapter.UpdateCommand.Connection = Me.Connection
  3658. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[EMPR] SET [CodEmpr] = @CodEmpr, [Descrip] = @Descrip, [SAP_BD] = @S"& _
  3659. "AP_BD WHERE (([CodEmpr] = @Original_CodEmpr) AND ((@IsNull_Descrip = 1 AND [Desc"& _
  3660. "rip] IS NULL) OR ([Descrip] = @Original_Descrip)) AND ((@IsNull_SAP_BD = 1 AND ["& _
  3661. "SAP_BD] IS NULL) OR ([SAP_BD] = @Original_SAP_BD)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodEmpr, Descrip, S"& _
  3662. "AP_BD FROM EMPR WHERE (CodEmpr = @CodEmpr)"
  3663. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  3664. 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, "", "", ""))
  3665. 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, "", "", ""))
  3666. Me._adapter.UpdateCommand.Parameters.Add(New Global.System.Data.SqlClient.SqlParameter("@SAP_BD", Global.System.Data.SqlDbType.VarChar, 0, Global.System.Data.ParameterDirection.Input, 0, 0, "SAP_BD", Global.System.Data.DataRowVersion.Current, false, Nothing, "", "", ""))
  3667. 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, "", "", ""))
  3668. 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, "", "", ""))
  3669. 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, "", "", ""))
  3670. Me._adapter.UpdateCommand.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, "", "", ""))
  3671. Me._adapter.UpdateCommand.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, "", "", ""))
  3672. End Sub
  3673. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3674. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3675. Private Sub InitConnection()
  3676. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  3677. Me._connection.ConnectionString = "Data Source=XOMBRA\SQL2014;Initial Catalog=Inversiones_20190620;Integrated Securi"& _
  3678. "ty=True"
  3679. End Sub
  3680. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3681. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3682. Private Sub InitCommandCollection()
  3683. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  3684. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  3685. Me._commandCollection(0).Connection = Me.Connection
  3686. Me._commandCollection(0).CommandText = "SELECT CodEmpr, Descrip, SAP_BD FROM dbo.EMPR"
  3687. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  3688. End Sub
  3689. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3690. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3691. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3692. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  3693. Public Overloads Overridable Function Fill(ByVal dataTable As dsInversiones.EMPRDataTable) As Integer
  3694. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  3695. If (Me.ClearBeforeFill = true) Then
  3696. dataTable.Clear
  3697. End If
  3698. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  3699. Return returnValue
  3700. End Function
  3701. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3702. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3703. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3704. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  3705. Public Overloads Overridable Function GetData() As dsInversiones.EMPRDataTable
  3706. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  3707. Dim dataTable As dsInversiones.EMPRDataTable = New dsInversiones.EMPRDataTable()
  3708. Me.Adapter.Fill(dataTable)
  3709. Return dataTable
  3710. End Function
  3711. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3712. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3713. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3714. Public Overloads Overridable Function Update(ByVal dataTable As dsInversiones.EMPRDataTable) As Integer
  3715. Return Me.Adapter.Update(dataTable)
  3716. End Function
  3717. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3718. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3719. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3720. Public Overloads Overridable Function Update(ByVal dataSet As dsInversiones) As Integer
  3721. Return Me.Adapter.Update(dataSet, "EMPR")
  3722. End Function
  3723. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3724. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3725. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3726. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  3727. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  3728. End Function
  3729. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3730. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3731. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3732. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  3733. Return Me.Adapter.Update(dataRows)
  3734. End Function
  3735. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3736. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3737. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3738. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  3739. Public Overloads Overridable Function Delete(ByVal Original_CodEmpr As String, ByVal Original_Descrip As String, ByVal Original_SAP_BD As String) As Integer
  3740. If (Original_CodEmpr Is Nothing) Then
  3741. Throw New Global.System.ArgumentNullException("Original_CodEmpr")
  3742. Else
  3743. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodEmpr,String)
  3744. End If
  3745. If (Original_Descrip Is Nothing) Then
  3746. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  3747. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  3748. Else
  3749. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  3750. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Descrip,String)
  3751. End If
  3752. If (Original_SAP_BD Is Nothing) Then
  3753. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
  3754. Me.Adapter.DeleteCommand.Parameters(4).Value = Global.System.DBNull.Value
  3755. Else
  3756. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
  3757. Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_SAP_BD,String)
  3758. End If
  3759. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  3760. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  3761. <> Global.System.Data.ConnectionState.Open) Then
  3762. Me.Adapter.DeleteCommand.Connection.Open
  3763. End If
  3764. Try
  3765. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  3766. Return returnValue
  3767. Finally
  3768. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  3769. Me.Adapter.DeleteCommand.Connection.Close
  3770. End If
  3771. End Try
  3772. End Function
  3773. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3774. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3775. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3776. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  3777. Public Overloads Overridable Function Insert(ByVal CodEmpr As String, ByVal Descrip As String, ByVal SAP_BD As String) As Integer
  3778. If (CodEmpr Is Nothing) Then
  3779. Throw New Global.System.ArgumentNullException("CodEmpr")
  3780. Else
  3781. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodEmpr,String)
  3782. End If
  3783. If (Descrip Is Nothing) Then
  3784. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  3785. Else
  3786. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Descrip,String)
  3787. End If
  3788. If (SAP_BD Is Nothing) Then
  3789. Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
  3790. Else
  3791. Me.Adapter.InsertCommand.Parameters(2).Value = CType(SAP_BD,String)
  3792. End If
  3793. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  3794. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  3795. <> Global.System.Data.ConnectionState.Open) Then
  3796. Me.Adapter.InsertCommand.Connection.Open
  3797. End If
  3798. Try
  3799. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  3800. Return returnValue
  3801. Finally
  3802. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  3803. Me.Adapter.InsertCommand.Connection.Close
  3804. End If
  3805. End Try
  3806. End Function
  3807. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3808. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3809. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3810. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  3811. Public Overloads Overridable Function Update(ByVal CodEmpr As String, ByVal Descrip As String, ByVal SAP_BD As String, ByVal Original_CodEmpr As String, ByVal Original_Descrip As String, ByVal Original_SAP_BD As String) As Integer
  3812. If (CodEmpr Is Nothing) Then
  3813. Throw New Global.System.ArgumentNullException("CodEmpr")
  3814. Else
  3815. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodEmpr,String)
  3816. End If
  3817. If (Descrip Is Nothing) Then
  3818. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  3819. Else
  3820. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Descrip,String)
  3821. End If
  3822. If (SAP_BD Is Nothing) Then
  3823. Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
  3824. Else
  3825. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(SAP_BD,String)
  3826. End If
  3827. If (Original_CodEmpr Is Nothing) Then
  3828. Throw New Global.System.ArgumentNullException("Original_CodEmpr")
  3829. Else
  3830. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(Original_CodEmpr,String)
  3831. End If
  3832. If (Original_Descrip Is Nothing) Then
  3833. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(1,Object)
  3834. Me.Adapter.UpdateCommand.Parameters(5).Value = Global.System.DBNull.Value
  3835. Else
  3836. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(0,Object)
  3837. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(Original_Descrip,String)
  3838. End If
  3839. If (Original_SAP_BD Is Nothing) Then
  3840. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(1,Object)
  3841. Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
  3842. Else
  3843. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(0,Object)
  3844. Me.Adapter.UpdateCommand.Parameters(7).Value = CType(Original_SAP_BD,String)
  3845. End If
  3846. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  3847. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  3848. <> Global.System.Data.ConnectionState.Open) Then
  3849. Me.Adapter.UpdateCommand.Connection.Open
  3850. End If
  3851. Try
  3852. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  3853. Return returnValue
  3854. Finally
  3855. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  3856. Me.Adapter.UpdateCommand.Connection.Close
  3857. End If
  3858. End Try
  3859. End Function
  3860. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3861. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  3862. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  3863. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  3864. Public Overloads Overridable Function Update(ByVal Descrip As String, ByVal SAP_BD As String, ByVal Original_CodEmpr As String, ByVal Original_Descrip As String, ByVal Original_SAP_BD As String) As Integer
  3865. Return Me.Update(Original_CodEmpr, Descrip, SAP_BD, Original_CodEmpr, Original_Descrip, Original_SAP_BD)
  3866. End Function
  3867. End Class
  3868. '''<summary>
  3869. '''Represents the connection and commands used to retrieve and save data.
  3870. '''</summary>
  3871. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  3872. Global.System.ComponentModel.ToolboxItem(true), _
  3873. Global.System.ComponentModel.DataObjectAttribute(true), _
  3874. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  3875. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  3876. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  3877. Partial Public Class INFITableAdapter
  3878. Inherits Global.System.ComponentModel.Component
  3879. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  3880. Private _connection As Global.System.Data.SqlClient.SqlConnection
  3881. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  3882. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  3883. Private _clearBeforeFill As Boolean
  3884. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3885. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3886. Public Sub New()
  3887. MyBase.New
  3888. Me.ClearBeforeFill = true
  3889. End Sub
  3890. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3891. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3892. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  3893. Get
  3894. If (Me._adapter Is Nothing) Then
  3895. Me.InitAdapter
  3896. End If
  3897. Return Me._adapter
  3898. End Get
  3899. End Property
  3900. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3901. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3902. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  3903. Get
  3904. If (Me._connection Is Nothing) Then
  3905. Me.InitConnection
  3906. End If
  3907. Return Me._connection
  3908. End Get
  3909. Set
  3910. Me._connection = value
  3911. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  3912. Me.Adapter.InsertCommand.Connection = value
  3913. End If
  3914. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  3915. Me.Adapter.DeleteCommand.Connection = value
  3916. End If
  3917. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  3918. Me.Adapter.UpdateCommand.Connection = value
  3919. End If
  3920. Dim i As Integer = 0
  3921. Do While (i < Me.CommandCollection.Length)
  3922. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  3923. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  3924. End If
  3925. i = (i + 1)
  3926. Loop
  3927. End Set
  3928. End Property
  3929. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3930. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3931. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  3932. Get
  3933. Return Me._transaction
  3934. End Get
  3935. Set
  3936. Me._transaction = value
  3937. Dim i As Integer = 0
  3938. Do While (i < Me.CommandCollection.Length)
  3939. Me.CommandCollection(i).Transaction = Me._transaction
  3940. i = (i + 1)
  3941. Loop
  3942. If ((Not (Me.Adapter) Is Nothing) _
  3943. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  3944. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  3945. End If
  3946. If ((Not (Me.Adapter) Is Nothing) _
  3947. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  3948. Me.Adapter.InsertCommand.Transaction = Me._transaction
  3949. End If
  3950. If ((Not (Me.Adapter) Is Nothing) _
  3951. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  3952. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  3953. End If
  3954. End Set
  3955. End Property
  3956. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3957. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3958. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  3959. Get
  3960. If (Me._commandCollection Is Nothing) Then
  3961. Me.InitCommandCollection
  3962. End If
  3963. Return Me._commandCollection
  3964. End Get
  3965. End Property
  3966. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3967. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3968. Public Property ClearBeforeFill() As Boolean
  3969. Get
  3970. Return Me._clearBeforeFill
  3971. End Get
  3972. Set
  3973. Me._clearBeforeFill = value
  3974. End Set
  3975. End Property
  3976. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  3977. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  3978. Private Sub InitAdapter()
  3979. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  3980. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  3981. tableMapping.SourceTable = "Table"
  3982. tableMapping.DataSetTable = "INFI"
  3983. tableMapping.ColumnMappings.Add("CodIF", "CodIF")
  3984. tableMapping.ColumnMappings.Add("Descrip", "Descrip")
  3985. tableMapping.ColumnMappings.Add("Tipo", "Tipo")
  3986. Me._adapter.TableMappings.Add(tableMapping)
  3987. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  3988. Me._adapter.DeleteCommand.Connection = Me.Connection
  3989. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[INFI] WHERE (([CodIF] = @Original_CodIF) AND ((@IsNull_Descrip"& _
  3990. " = 1 AND [Descrip] IS NULL) OR ([Descrip] = @Original_Descrip)) AND ((@IsNull_Ti"& _
  3991. "po = 1 AND [Tipo] IS NULL) OR ([Tipo] = @Original_Tipo)))"
  3992. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  3993. 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, "", "", ""))
  3994. 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, "", "", ""))
  3995. 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, "", "", ""))
  3996. 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, "", "", ""))
  3997. 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, "", "", ""))
  3998. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  3999. Me._adapter.InsertCommand.Connection = Me.Connection
  4000. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[INFI] ([CodIF], [Descrip], [Tipo]) VALUES (@CodIF, @Descrip, @"& _
  4001. "Tipo);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodIF, Descrip, Tipo FROM INFI WHERE (CodIF = @CodIF)"
  4002. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  4003. 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, "", "", ""))
  4004. 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, "", "", ""))
  4005. 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, "", "", ""))
  4006. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  4007. Me._adapter.UpdateCommand.Connection = Me.Connection
  4008. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[INFI] SET [CodIF] = @CodIF, [Descrip] = @Descrip, [Tipo] = @Tipo WH"& _
  4009. "ERE (([CodIF] = @Original_CodIF) AND ((@IsNull_Descrip = 1 AND [Descrip] IS NULL"& _
  4010. ") OR ([Descrip] = @Original_Descrip)) AND ((@IsNull_Tipo = 1 AND [Tipo] IS NULL)"& _
  4011. " OR ([Tipo] = @Original_Tipo)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodIF, Descrip, Tipo FROM INFI WHERE (C"& _
  4012. "odIF = @CodIF)"
  4013. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  4014. 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, "", "", ""))
  4015. 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, "", "", ""))
  4016. 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, "", "", ""))
  4017. 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, "", "", ""))
  4018. 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, "", "", ""))
  4019. 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, "", "", ""))
  4020. 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, "", "", ""))
  4021. 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, "", "", ""))
  4022. End Sub
  4023. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4024. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4025. Private Sub InitConnection()
  4026. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  4027. Me._connection.ConnectionString = "Data Source=XOMBRA\SQL2014;Initial Catalog=Inversiones_20190620;Integrated Securi"& _
  4028. "ty=True"
  4029. End Sub
  4030. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4031. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4032. Private Sub InitCommandCollection()
  4033. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  4034. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  4035. Me._commandCollection(0).Connection = Me.Connection
  4036. Me._commandCollection(0).CommandText = "SELECT CodIF, Descrip, Tipo FROM dbo.INFI"
  4037. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  4038. End Sub
  4039. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4040. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4041. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4042. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  4043. Public Overloads Overridable Function Fill(ByVal dataTable As dsInversiones.INFIDataTable) As Integer
  4044. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  4045. If (Me.ClearBeforeFill = true) Then
  4046. dataTable.Clear
  4047. End If
  4048. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  4049. Return returnValue
  4050. End Function
  4051. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4052. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4053. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4054. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  4055. Public Overloads Overridable Function GetData() As dsInversiones.INFIDataTable
  4056. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  4057. Dim dataTable As dsInversiones.INFIDataTable = New dsInversiones.INFIDataTable()
  4058. Me.Adapter.Fill(dataTable)
  4059. Return dataTable
  4060. End Function
  4061. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4062. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4063. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  4064. Public Overloads Overridable Function Update(ByVal dataTable As dsInversiones.INFIDataTable) As Integer
  4065. Return Me.Adapter.Update(dataTable)
  4066. End Function
  4067. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4068. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4069. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  4070. Public Overloads Overridable Function Update(ByVal dataSet As dsInversiones) As Integer
  4071. Return Me.Adapter.Update(dataSet, "INFI")
  4072. End Function
  4073. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4074. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4075. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  4076. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  4077. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  4078. End Function
  4079. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4080. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4081. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  4082. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  4083. Return Me.Adapter.Update(dataRows)
  4084. End Function
  4085. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4086. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4087. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4088. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  4089. Public Overloads Overridable Function Delete(ByVal Original_CodIF As String, ByVal Original_Descrip As String, ByVal Original_Tipo As String) As Integer
  4090. If (Original_CodIF Is Nothing) Then
  4091. Throw New Global.System.ArgumentNullException("Original_CodIF")
  4092. Else
  4093. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodIF,String)
  4094. End If
  4095. If (Original_Descrip Is Nothing) Then
  4096. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  4097. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  4098. Else
  4099. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  4100. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Descrip,String)
  4101. End If
  4102. If (Original_Tipo Is Nothing) Then
  4103. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
  4104. Me.Adapter.DeleteCommand.Parameters(4).Value = Global.System.DBNull.Value
  4105. Else
  4106. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
  4107. Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_Tipo,String)
  4108. End If
  4109. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  4110. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  4111. <> Global.System.Data.ConnectionState.Open) Then
  4112. Me.Adapter.DeleteCommand.Connection.Open
  4113. End If
  4114. Try
  4115. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  4116. Return returnValue
  4117. Finally
  4118. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  4119. Me.Adapter.DeleteCommand.Connection.Close
  4120. End If
  4121. End Try
  4122. End Function
  4123. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4124. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4125. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4126. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  4127. Public Overloads Overridable Function Insert(ByVal CodIF As String, ByVal Descrip As String, ByVal Tipo As String) As Integer
  4128. If (CodIF Is Nothing) Then
  4129. Throw New Global.System.ArgumentNullException("CodIF")
  4130. Else
  4131. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodIF,String)
  4132. End If
  4133. If (Descrip Is Nothing) Then
  4134. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  4135. Else
  4136. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Descrip,String)
  4137. End If
  4138. If (Tipo Is Nothing) Then
  4139. Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
  4140. Else
  4141. Me.Adapter.InsertCommand.Parameters(2).Value = CType(Tipo,String)
  4142. End If
  4143. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  4144. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  4145. <> Global.System.Data.ConnectionState.Open) Then
  4146. Me.Adapter.InsertCommand.Connection.Open
  4147. End If
  4148. Try
  4149. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  4150. Return returnValue
  4151. Finally
  4152. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  4153. Me.Adapter.InsertCommand.Connection.Close
  4154. End If
  4155. End Try
  4156. End Function
  4157. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4158. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4159. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4160. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  4161. 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
  4162. If (CodIF Is Nothing) Then
  4163. Throw New Global.System.ArgumentNullException("CodIF")
  4164. Else
  4165. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodIF,String)
  4166. End If
  4167. If (Descrip Is Nothing) Then
  4168. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  4169. Else
  4170. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Descrip,String)
  4171. End If
  4172. If (Tipo Is Nothing) Then
  4173. Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
  4174. Else
  4175. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(Tipo,String)
  4176. End If
  4177. If (Original_CodIF Is Nothing) Then
  4178. Throw New Global.System.ArgumentNullException("Original_CodIF")
  4179. Else
  4180. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(Original_CodIF,String)
  4181. End If
  4182. If (Original_Descrip Is Nothing) Then
  4183. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(1,Object)
  4184. Me.Adapter.UpdateCommand.Parameters(5).Value = Global.System.DBNull.Value
  4185. Else
  4186. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(0,Object)
  4187. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(Original_Descrip,String)
  4188. End If
  4189. If (Original_Tipo Is Nothing) Then
  4190. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(1,Object)
  4191. Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
  4192. Else
  4193. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(0,Object)
  4194. Me.Adapter.UpdateCommand.Parameters(7).Value = CType(Original_Tipo,String)
  4195. End If
  4196. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  4197. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  4198. <> Global.System.Data.ConnectionState.Open) Then
  4199. Me.Adapter.UpdateCommand.Connection.Open
  4200. End If
  4201. Try
  4202. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  4203. Return returnValue
  4204. Finally
  4205. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  4206. Me.Adapter.UpdateCommand.Connection.Close
  4207. End If
  4208. End Try
  4209. End Function
  4210. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4211. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4212. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4213. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  4214. 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
  4215. Return Me.Update(Original_CodIF, Descrip, Tipo, Original_CodIF, Original_Descrip, Original_Tipo)
  4216. End Function
  4217. End Class
  4218. '''<summary>
  4219. '''Represents the connection and commands used to retrieve and save data.
  4220. '''</summary>
  4221. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  4222. Global.System.ComponentModel.ToolboxItem(true), _
  4223. Global.System.ComponentModel.DataObjectAttribute(true), _
  4224. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  4225. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  4226. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  4227. Partial Public Class PAISTableAdapter
  4228. Inherits Global.System.ComponentModel.Component
  4229. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  4230. Private _connection As Global.System.Data.SqlClient.SqlConnection
  4231. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  4232. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  4233. Private _clearBeforeFill As Boolean
  4234. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4235. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4236. Public Sub New()
  4237. MyBase.New
  4238. Me.ClearBeforeFill = true
  4239. End Sub
  4240. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4241. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4242. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  4243. Get
  4244. If (Me._adapter Is Nothing) Then
  4245. Me.InitAdapter
  4246. End If
  4247. Return Me._adapter
  4248. End Get
  4249. End Property
  4250. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4251. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4252. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  4253. Get
  4254. If (Me._connection Is Nothing) Then
  4255. Me.InitConnection
  4256. End If
  4257. Return Me._connection
  4258. End Get
  4259. Set
  4260. Me._connection = value
  4261. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  4262. Me.Adapter.InsertCommand.Connection = value
  4263. End If
  4264. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  4265. Me.Adapter.DeleteCommand.Connection = value
  4266. End If
  4267. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  4268. Me.Adapter.UpdateCommand.Connection = value
  4269. End If
  4270. Dim i As Integer = 0
  4271. Do While (i < Me.CommandCollection.Length)
  4272. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  4273. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  4274. End If
  4275. i = (i + 1)
  4276. Loop
  4277. End Set
  4278. End Property
  4279. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4280. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4281. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  4282. Get
  4283. Return Me._transaction
  4284. End Get
  4285. Set
  4286. Me._transaction = value
  4287. Dim i As Integer = 0
  4288. Do While (i < Me.CommandCollection.Length)
  4289. Me.CommandCollection(i).Transaction = Me._transaction
  4290. i = (i + 1)
  4291. Loop
  4292. If ((Not (Me.Adapter) Is Nothing) _
  4293. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  4294. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  4295. End If
  4296. If ((Not (Me.Adapter) Is Nothing) _
  4297. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  4298. Me.Adapter.InsertCommand.Transaction = Me._transaction
  4299. End If
  4300. If ((Not (Me.Adapter) Is Nothing) _
  4301. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  4302. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  4303. End If
  4304. End Set
  4305. End Property
  4306. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4307. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4308. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  4309. Get
  4310. If (Me._commandCollection Is Nothing) Then
  4311. Me.InitCommandCollection
  4312. End If
  4313. Return Me._commandCollection
  4314. End Get
  4315. End Property
  4316. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4317. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4318. Public Property ClearBeforeFill() As Boolean
  4319. Get
  4320. Return Me._clearBeforeFill
  4321. End Get
  4322. Set
  4323. Me._clearBeforeFill = value
  4324. End Set
  4325. End Property
  4326. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4327. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4328. Private Sub InitAdapter()
  4329. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  4330. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  4331. tableMapping.SourceTable = "Table"
  4332. tableMapping.DataSetTable = "PAIS"
  4333. tableMapping.ColumnMappings.Add("CodPais", "CodPais")
  4334. tableMapping.ColumnMappings.Add("Descrip", "Descrip")
  4335. tableMapping.ColumnMappings.Add("RelInv", "RelInv")
  4336. Me._adapter.TableMappings.Add(tableMapping)
  4337. Me._adapter.DeleteCommand = New Global.System.Data.SqlClient.SqlCommand()
  4338. Me._adapter.DeleteCommand.Connection = Me.Connection
  4339. Me._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[PAIS] WHERE (([CodPais] = @Original_CodPais) AND ((@IsNull_Des"& _
  4340. "crip = 1 AND [Descrip] IS NULL) OR ([Descrip] = @Original_Descrip)) AND ((@IsNul"& _
  4341. "l_RelInv = 1 AND [RelInv] IS NULL) OR ([RelInv] = @Original_RelInv)))"
  4342. Me._adapter.DeleteCommand.CommandType = Global.System.Data.CommandType.Text
  4343. 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, "", "", ""))
  4344. 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, "", "", ""))
  4345. 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, "", "", ""))
  4346. 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, "", "", ""))
  4347. 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, "", "", ""))
  4348. Me._adapter.InsertCommand = New Global.System.Data.SqlClient.SqlCommand()
  4349. Me._adapter.InsertCommand.Connection = Me.Connection
  4350. Me._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[PAIS] ([CodPais], [Descrip], [RelInv]) VALUES (@CodPais, @Desc"& _
  4351. "rip, @RelInv);"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodPais, Descrip, RelInv FROM PAIS WHERE (CodPais = @CodP"& _
  4352. "ais)"
  4353. Me._adapter.InsertCommand.CommandType = Global.System.Data.CommandType.Text
  4354. 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, "", "", ""))
  4355. 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, "", "", ""))
  4356. 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, "", "", ""))
  4357. Me._adapter.UpdateCommand = New Global.System.Data.SqlClient.SqlCommand()
  4358. Me._adapter.UpdateCommand.Connection = Me.Connection
  4359. Me._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[PAIS] SET [CodPais] = @CodPais, [Descrip] = @Descrip, [RelInv] = @R"& _
  4360. "elInv WHERE (([CodPais] = @Original_CodPais) AND ((@IsNull_Descrip = 1 AND [Desc"& _
  4361. "rip] IS NULL) OR ([Descrip] = @Original_Descrip)) AND ((@IsNull_RelInv = 1 AND ["& _
  4362. "RelInv] IS NULL) OR ([RelInv] = @Original_RelInv)));"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&"SELECT CodPais, Descrip, R"& _
  4363. "elInv FROM PAIS WHERE (CodPais = @CodPais)"
  4364. Me._adapter.UpdateCommand.CommandType = Global.System.Data.CommandType.Text
  4365. 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, "", "", ""))
  4366. 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, "", "", ""))
  4367. 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, "", "", ""))
  4368. 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, "", "", ""))
  4369. 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, "", "", ""))
  4370. 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, "", "", ""))
  4371. 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, "", "", ""))
  4372. 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, "", "", ""))
  4373. End Sub
  4374. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4375. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4376. Private Sub InitConnection()
  4377. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  4378. Me._connection.ConnectionString = "Data Source=XOMBRA\SQL2014;Initial Catalog=Inversiones_20190620;Integrated Securi"& _
  4379. "ty=True"
  4380. End Sub
  4381. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4382. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4383. Private Sub InitCommandCollection()
  4384. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  4385. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  4386. Me._commandCollection(0).Connection = Me.Connection
  4387. Me._commandCollection(0).CommandText = "SELECT CodPais, Descrip, RelInv FROM dbo.PAIS"
  4388. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.Text
  4389. End Sub
  4390. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4391. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4392. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4393. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  4394. Public Overloads Overridable Function Fill(ByVal dataTable As dsInversiones.PAISDataTable) As Integer
  4395. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  4396. If (Me.ClearBeforeFill = true) Then
  4397. dataTable.Clear
  4398. End If
  4399. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  4400. Return returnValue
  4401. End Function
  4402. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4403. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4404. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4405. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  4406. Public Overloads Overridable Function GetData() As dsInversiones.PAISDataTable
  4407. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  4408. Dim dataTable As dsInversiones.PAISDataTable = New dsInversiones.PAISDataTable()
  4409. Me.Adapter.Fill(dataTable)
  4410. Return dataTable
  4411. End Function
  4412. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4413. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4414. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  4415. Public Overloads Overridable Function Update(ByVal dataTable As dsInversiones.PAISDataTable) As Integer
  4416. Return Me.Adapter.Update(dataTable)
  4417. End Function
  4418. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4419. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4420. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  4421. Public Overloads Overridable Function Update(ByVal dataSet As dsInversiones) As Integer
  4422. Return Me.Adapter.Update(dataSet, "PAIS")
  4423. End Function
  4424. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4425. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4426. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  4427. Public Overloads Overridable Function Update(ByVal dataRow As Global.System.Data.DataRow) As Integer
  4428. Return Me.Adapter.Update(New Global.System.Data.DataRow() {dataRow})
  4429. End Function
  4430. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4431. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4432. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  4433. Public Overloads Overridable Function Update(ByVal dataRows() As Global.System.Data.DataRow) As Integer
  4434. Return Me.Adapter.Update(dataRows)
  4435. End Function
  4436. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4437. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4438. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4439. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Delete, true)> _
  4440. Public Overloads Overridable Function Delete(ByVal Original_CodPais As String, ByVal Original_Descrip As String, ByVal Original_RelInv As String) As Integer
  4441. If (Original_CodPais Is Nothing) Then
  4442. Throw New Global.System.ArgumentNullException("Original_CodPais")
  4443. Else
  4444. Me.Adapter.DeleteCommand.Parameters(0).Value = CType(Original_CodPais,String)
  4445. End If
  4446. If (Original_Descrip Is Nothing) Then
  4447. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(1,Object)
  4448. Me.Adapter.DeleteCommand.Parameters(2).Value = Global.System.DBNull.Value
  4449. Else
  4450. Me.Adapter.DeleteCommand.Parameters(1).Value = CType(0,Object)
  4451. Me.Adapter.DeleteCommand.Parameters(2).Value = CType(Original_Descrip,String)
  4452. End If
  4453. If (Original_RelInv Is Nothing) Then
  4454. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(1,Object)
  4455. Me.Adapter.DeleteCommand.Parameters(4).Value = Global.System.DBNull.Value
  4456. Else
  4457. Me.Adapter.DeleteCommand.Parameters(3).Value = CType(0,Object)
  4458. Me.Adapter.DeleteCommand.Parameters(4).Value = CType(Original_RelInv,String)
  4459. End If
  4460. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.DeleteCommand.Connection.State
  4461. If ((Me.Adapter.DeleteCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  4462. <> Global.System.Data.ConnectionState.Open) Then
  4463. Me.Adapter.DeleteCommand.Connection.Open
  4464. End If
  4465. Try
  4466. Dim returnValue As Integer = Me.Adapter.DeleteCommand.ExecuteNonQuery
  4467. Return returnValue
  4468. Finally
  4469. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  4470. Me.Adapter.DeleteCommand.Connection.Close
  4471. End If
  4472. End Try
  4473. End Function
  4474. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4475. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4476. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4477. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Insert, true)> _
  4478. Public Overloads Overridable Function Insert(ByVal CodPais As String, ByVal Descrip As String, ByVal RelInv As String) As Integer
  4479. If (CodPais Is Nothing) Then
  4480. Throw New Global.System.ArgumentNullException("CodPais")
  4481. Else
  4482. Me.Adapter.InsertCommand.Parameters(0).Value = CType(CodPais,String)
  4483. End If
  4484. If (Descrip Is Nothing) Then
  4485. Me.Adapter.InsertCommand.Parameters(1).Value = Global.System.DBNull.Value
  4486. Else
  4487. Me.Adapter.InsertCommand.Parameters(1).Value = CType(Descrip,String)
  4488. End If
  4489. If (RelInv Is Nothing) Then
  4490. Me.Adapter.InsertCommand.Parameters(2).Value = Global.System.DBNull.Value
  4491. Else
  4492. Me.Adapter.InsertCommand.Parameters(2).Value = CType(RelInv,String)
  4493. End If
  4494. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.InsertCommand.Connection.State
  4495. If ((Me.Adapter.InsertCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  4496. <> Global.System.Data.ConnectionState.Open) Then
  4497. Me.Adapter.InsertCommand.Connection.Open
  4498. End If
  4499. Try
  4500. Dim returnValue As Integer = Me.Adapter.InsertCommand.ExecuteNonQuery
  4501. Return returnValue
  4502. Finally
  4503. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  4504. Me.Adapter.InsertCommand.Connection.Close
  4505. End If
  4506. End Try
  4507. End Function
  4508. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4509. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4510. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4511. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  4512. 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
  4513. If (CodPais Is Nothing) Then
  4514. Throw New Global.System.ArgumentNullException("CodPais")
  4515. Else
  4516. Me.Adapter.UpdateCommand.Parameters(0).Value = CType(CodPais,String)
  4517. End If
  4518. If (Descrip Is Nothing) Then
  4519. Me.Adapter.UpdateCommand.Parameters(1).Value = Global.System.DBNull.Value
  4520. Else
  4521. Me.Adapter.UpdateCommand.Parameters(1).Value = CType(Descrip,String)
  4522. End If
  4523. If (RelInv Is Nothing) Then
  4524. Me.Adapter.UpdateCommand.Parameters(2).Value = Global.System.DBNull.Value
  4525. Else
  4526. Me.Adapter.UpdateCommand.Parameters(2).Value = CType(RelInv,String)
  4527. End If
  4528. If (Original_CodPais Is Nothing) Then
  4529. Throw New Global.System.ArgumentNullException("Original_CodPais")
  4530. Else
  4531. Me.Adapter.UpdateCommand.Parameters(3).Value = CType(Original_CodPais,String)
  4532. End If
  4533. If (Original_Descrip Is Nothing) Then
  4534. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(1,Object)
  4535. Me.Adapter.UpdateCommand.Parameters(5).Value = Global.System.DBNull.Value
  4536. Else
  4537. Me.Adapter.UpdateCommand.Parameters(4).Value = CType(0,Object)
  4538. Me.Adapter.UpdateCommand.Parameters(5).Value = CType(Original_Descrip,String)
  4539. End If
  4540. If (Original_RelInv Is Nothing) Then
  4541. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(1,Object)
  4542. Me.Adapter.UpdateCommand.Parameters(7).Value = Global.System.DBNull.Value
  4543. Else
  4544. Me.Adapter.UpdateCommand.Parameters(6).Value = CType(0,Object)
  4545. Me.Adapter.UpdateCommand.Parameters(7).Value = CType(Original_RelInv,String)
  4546. End If
  4547. Dim previousConnectionState As Global.System.Data.ConnectionState = Me.Adapter.UpdateCommand.Connection.State
  4548. If ((Me.Adapter.UpdateCommand.Connection.State And Global.System.Data.ConnectionState.Open) _
  4549. <> Global.System.Data.ConnectionState.Open) Then
  4550. Me.Adapter.UpdateCommand.Connection.Open
  4551. End If
  4552. Try
  4553. Dim returnValue As Integer = Me.Adapter.UpdateCommand.ExecuteNonQuery
  4554. Return returnValue
  4555. Finally
  4556. If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
  4557. Me.Adapter.UpdateCommand.Connection.Close
  4558. End If
  4559. End Try
  4560. End Function
  4561. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4562. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4563. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4564. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Update, true)> _
  4565. 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
  4566. Return Me.Update(Original_CodPais, Descrip, RelInv, Original_CodPais, Original_Descrip, Original_RelInv)
  4567. End Function
  4568. End Class
  4569. '''<summary>
  4570. '''Represents the connection and commands used to retrieve and save data.
  4571. '''</summary>
  4572. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  4573. Global.System.ComponentModel.ToolboxItem(true), _
  4574. Global.System.ComponentModel.DataObjectAttribute(true), _
  4575. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner"& _
  4576. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  4577. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
  4578. Partial Public Class SP_InventarioMasterTableAdapter
  4579. Inherits Global.System.ComponentModel.Component
  4580. Private WithEvents _adapter As Global.System.Data.SqlClient.SqlDataAdapter
  4581. Private _connection As Global.System.Data.SqlClient.SqlConnection
  4582. Private _transaction As Global.System.Data.SqlClient.SqlTransaction
  4583. Private _commandCollection() As Global.System.Data.SqlClient.SqlCommand
  4584. Private _clearBeforeFill As Boolean
  4585. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4586. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4587. Public Sub New()
  4588. MyBase.New
  4589. Me.ClearBeforeFill = true
  4590. End Sub
  4591. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4592. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4593. Protected Friend ReadOnly Property Adapter() As Global.System.Data.SqlClient.SqlDataAdapter
  4594. Get
  4595. If (Me._adapter Is Nothing) Then
  4596. Me.InitAdapter
  4597. End If
  4598. Return Me._adapter
  4599. End Get
  4600. End Property
  4601. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4602. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4603. Friend Property Connection() As Global.System.Data.SqlClient.SqlConnection
  4604. Get
  4605. If (Me._connection Is Nothing) Then
  4606. Me.InitConnection
  4607. End If
  4608. Return Me._connection
  4609. End Get
  4610. Set
  4611. Me._connection = value
  4612. If (Not (Me.Adapter.InsertCommand) Is Nothing) Then
  4613. Me.Adapter.InsertCommand.Connection = value
  4614. End If
  4615. If (Not (Me.Adapter.DeleteCommand) Is Nothing) Then
  4616. Me.Adapter.DeleteCommand.Connection = value
  4617. End If
  4618. If (Not (Me.Adapter.UpdateCommand) Is Nothing) Then
  4619. Me.Adapter.UpdateCommand.Connection = value
  4620. End If
  4621. Dim i As Integer = 0
  4622. Do While (i < Me.CommandCollection.Length)
  4623. If (Not (Me.CommandCollection(i)) Is Nothing) Then
  4624. CType(Me.CommandCollection(i),Global.System.Data.SqlClient.SqlCommand).Connection = value
  4625. End If
  4626. i = (i + 1)
  4627. Loop
  4628. End Set
  4629. End Property
  4630. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4631. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4632. Friend Property Transaction() As Global.System.Data.SqlClient.SqlTransaction
  4633. Get
  4634. Return Me._transaction
  4635. End Get
  4636. Set
  4637. Me._transaction = value
  4638. Dim i As Integer = 0
  4639. Do While (i < Me.CommandCollection.Length)
  4640. Me.CommandCollection(i).Transaction = Me._transaction
  4641. i = (i + 1)
  4642. Loop
  4643. If ((Not (Me.Adapter) Is Nothing) _
  4644. AndAlso (Not (Me.Adapter.DeleteCommand) Is Nothing)) Then
  4645. Me.Adapter.DeleteCommand.Transaction = Me._transaction
  4646. End If
  4647. If ((Not (Me.Adapter) Is Nothing) _
  4648. AndAlso (Not (Me.Adapter.InsertCommand) Is Nothing)) Then
  4649. Me.Adapter.InsertCommand.Transaction = Me._transaction
  4650. End If
  4651. If ((Not (Me.Adapter) Is Nothing) _
  4652. AndAlso (Not (Me.Adapter.UpdateCommand) Is Nothing)) Then
  4653. Me.Adapter.UpdateCommand.Transaction = Me._transaction
  4654. End If
  4655. End Set
  4656. End Property
  4657. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4658. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4659. Protected ReadOnly Property CommandCollection() As Global.System.Data.SqlClient.SqlCommand()
  4660. Get
  4661. If (Me._commandCollection Is Nothing) Then
  4662. Me.InitCommandCollection
  4663. End If
  4664. Return Me._commandCollection
  4665. End Get
  4666. End Property
  4667. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4668. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4669. Public Property ClearBeforeFill() As Boolean
  4670. Get
  4671. Return Me._clearBeforeFill
  4672. End Get
  4673. Set
  4674. Me._clearBeforeFill = value
  4675. End Set
  4676. End Property
  4677. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4678. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4679. Private Sub InitAdapter()
  4680. Me._adapter = New Global.System.Data.SqlClient.SqlDataAdapter()
  4681. Dim tableMapping As Global.System.Data.Common.DataTableMapping = New Global.System.Data.Common.DataTableMapping()
  4682. tableMapping.SourceTable = "Table"
  4683. tableMapping.DataSetTable = "SP_InventarioMaster"
  4684. tableMapping.ColumnMappings.Add("CodInv", "CodInv")
  4685. tableMapping.ColumnMappings.Add("CodIF", "CodIF")
  4686. tableMapping.ColumnMappings.Add("Estado", "Estado")
  4687. tableMapping.ColumnMappings.Add("CodEmpr", "CodEmpr")
  4688. tableMapping.ColumnMappings.Add("NombreManIF", "NombreManIF")
  4689. tableMapping.ColumnMappings.Add("CodManIF", "CodManIF")
  4690. tableMapping.ColumnMappings.Add("CodEmis", "CodEmis")
  4691. tableMapping.ColumnMappings.Add("iCasaBanco", "iCasaBanco")
  4692. tableMapping.ColumnMappings.Add("vCasaBanco", "vCasaBanco")
  4693. tableMapping.ColumnMappings.Add("TipoMerc", "TipoMerc")
  4694. tableMapping.ColumnMappings.Add("CodCalRi", "CodCalRi")
  4695. tableMapping.ColumnMappings.Add("CodECalRi", "CodECalRi")
  4696. tableMapping.ColumnMappings.Add("ValorNominal", "ValorNominal")
  4697. Me._adapter.TableMappings.Add(tableMapping)
  4698. End Sub
  4699. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4700. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4701. Private Sub InitConnection()
  4702. Me._connection = New Global.System.Data.SqlClient.SqlConnection()
  4703. Me._connection.ConnectionString = "Data Source=XOMBRA\SQL2014;Initial Catalog=Inversiones_20190620;Integrated Securi"& _
  4704. "ty=True"
  4705. End Sub
  4706. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4707. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4708. Private Sub InitCommandCollection()
  4709. Me._commandCollection = New Global.System.Data.SqlClient.SqlCommand(0) {}
  4710. Me._commandCollection(0) = New Global.System.Data.SqlClient.SqlCommand()
  4711. Me._commandCollection(0).Connection = Me.Connection
  4712. Me._commandCollection(0).CommandText = "dbo.SP_InventarioMaster"
  4713. Me._commandCollection(0).CommandType = Global.System.Data.CommandType.StoredProcedure
  4714. 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, "", "", ""))
  4715. End Sub
  4716. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4717. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4718. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4719. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
  4720. Public Overloads Overridable Function Fill(ByVal dataTable As dsInversiones.SP_InventarioMasterDataTable) As Integer
  4721. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  4722. If (Me.ClearBeforeFill = true) Then
  4723. dataTable.Clear
  4724. End If
  4725. Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
  4726. Return returnValue
  4727. End Function
  4728. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4729. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4730. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
  4731. Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.[Select], true)> _
  4732. Public Overloads Overridable Function GetData() As dsInversiones.SP_InventarioMasterDataTable
  4733. Me.Adapter.SelectCommand = Me.CommandCollection(0)
  4734. Dim dataTable As dsInversiones.SP_InventarioMasterDataTable = New dsInversiones.SP_InventarioMasterDataTable()
  4735. Me.Adapter.Fill(dataTable)
  4736. Return dataTable
  4737. End Function
  4738. End Class
  4739. '''<summary>
  4740. '''TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  4741. '''</summary>
  4742. <Global.System.ComponentModel.DesignerCategoryAttribute("code"), _
  4743. Global.System.ComponentModel.ToolboxItem(true), _
  4744. Global.System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD"& _
  4745. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _
  4746. Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")> _
  4747. Partial Public Class TableAdapterManager
  4748. Inherits Global.System.ComponentModel.Component
  4749. Private _updateOrder As UpdateOrderOption
  4750. Private _eCALRITableAdapter As ECALRITableAdapter
  4751. Private _eMISTableAdapter As EMISTableAdapter
  4752. Private _eMPRTableAdapter As EMPRTableAdapter
  4753. Private _iNFITableAdapter As INFITableAdapter
  4754. Private _pAISTableAdapter As PAISTableAdapter
  4755. Private _backupDataSetBeforeUpdate As Boolean
  4756. Private _connection As Global.System.Data.IDbConnection
  4757. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4758. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4759. Public Property UpdateOrder() As UpdateOrderOption
  4760. Get
  4761. Return Me._updateOrder
  4762. End Get
  4763. Set
  4764. Me._updateOrder = value
  4765. End Set
  4766. End Property
  4767. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4768. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4769. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  4770. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  4771. "a", "System.Drawing.Design.UITypeEditor")> _
  4772. Public Property ECALRITableAdapter() As ECALRITableAdapter
  4773. Get
  4774. Return Me._eCALRITableAdapter
  4775. End Get
  4776. Set
  4777. Me._eCALRITableAdapter = value
  4778. End Set
  4779. End Property
  4780. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4781. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4782. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  4783. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  4784. "a", "System.Drawing.Design.UITypeEditor")> _
  4785. Public Property EMISTableAdapter() As EMISTableAdapter
  4786. Get
  4787. Return Me._eMISTableAdapter
  4788. End Get
  4789. Set
  4790. Me._eMISTableAdapter = value
  4791. End Set
  4792. End Property
  4793. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4794. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4795. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  4796. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  4797. "a", "System.Drawing.Design.UITypeEditor")> _
  4798. Public Property EMPRTableAdapter() As EMPRTableAdapter
  4799. Get
  4800. Return Me._eMPRTableAdapter
  4801. End Get
  4802. Set
  4803. Me._eMPRTableAdapter = value
  4804. End Set
  4805. End Property
  4806. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4807. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4808. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  4809. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  4810. "a", "System.Drawing.Design.UITypeEditor")> _
  4811. Public Property INFITableAdapter() As INFITableAdapter
  4812. Get
  4813. Return Me._iNFITableAdapter
  4814. End Get
  4815. Set
  4816. Me._iNFITableAdapter = value
  4817. End Set
  4818. End Property
  4819. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4820. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4821. Global.System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso"& _
  4822. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3"& _
  4823. "a", "System.Drawing.Design.UITypeEditor")> _
  4824. Public Property PAISTableAdapter() As PAISTableAdapter
  4825. Get
  4826. Return Me._pAISTableAdapter
  4827. End Get
  4828. Set
  4829. Me._pAISTableAdapter = value
  4830. End Set
  4831. End Property
  4832. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4833. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4834. Public Property BackupDataSetBeforeUpdate() As Boolean
  4835. Get
  4836. Return Me._backupDataSetBeforeUpdate
  4837. End Get
  4838. Set
  4839. Me._backupDataSetBeforeUpdate = value
  4840. End Set
  4841. End Property
  4842. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4843. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4844. Global.System.ComponentModel.Browsable(false)> _
  4845. Public Property Connection() As Global.System.Data.IDbConnection
  4846. Get
  4847. If (Not (Me._connection) Is Nothing) Then
  4848. Return Me._connection
  4849. End If
  4850. If ((Not (Me._eCALRITableAdapter) Is Nothing) _
  4851. AndAlso (Not (Me._eCALRITableAdapter.Connection) Is Nothing)) Then
  4852. Return Me._eCALRITableAdapter.Connection
  4853. End If
  4854. If ((Not (Me._eMISTableAdapter) Is Nothing) _
  4855. AndAlso (Not (Me._eMISTableAdapter.Connection) Is Nothing)) Then
  4856. Return Me._eMISTableAdapter.Connection
  4857. End If
  4858. If ((Not (Me._eMPRTableAdapter) Is Nothing) _
  4859. AndAlso (Not (Me._eMPRTableAdapter.Connection) Is Nothing)) Then
  4860. Return Me._eMPRTableAdapter.Connection
  4861. End If
  4862. If ((Not (Me._iNFITableAdapter) Is Nothing) _
  4863. AndAlso (Not (Me._iNFITableAdapter.Connection) Is Nothing)) Then
  4864. Return Me._iNFITableAdapter.Connection
  4865. End If
  4866. If ((Not (Me._pAISTableAdapter) Is Nothing) _
  4867. AndAlso (Not (Me._pAISTableAdapter.Connection) Is Nothing)) Then
  4868. Return Me._pAISTableAdapter.Connection
  4869. End If
  4870. Return Nothing
  4871. End Get
  4872. Set
  4873. Me._connection = value
  4874. End Set
  4875. End Property
  4876. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4877. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0"), _
  4878. Global.System.ComponentModel.Browsable(false)> _
  4879. Public ReadOnly Property TableAdapterInstanceCount() As Integer
  4880. Get
  4881. Dim count As Integer = 0
  4882. If (Not (Me._eCALRITableAdapter) Is Nothing) Then
  4883. count = (count + 1)
  4884. End If
  4885. If (Not (Me._eMISTableAdapter) Is Nothing) Then
  4886. count = (count + 1)
  4887. End If
  4888. If (Not (Me._eMPRTableAdapter) Is Nothing) Then
  4889. count = (count + 1)
  4890. End If
  4891. If (Not (Me._iNFITableAdapter) Is Nothing) Then
  4892. count = (count + 1)
  4893. End If
  4894. If (Not (Me._pAISTableAdapter) Is Nothing) Then
  4895. count = (count + 1)
  4896. End If
  4897. Return count
  4898. End Get
  4899. End Property
  4900. '''<summary>
  4901. '''Update rows in top-down order.
  4902. '''</summary>
  4903. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4904. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4905. Private Function UpdateUpdatedRows(ByVal dataSet As dsInversiones, 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
  4906. Dim result As Integer = 0
  4907. If (Not (Me._eCALRITableAdapter) Is Nothing) Then
  4908. Dim updatedRows() As Global.System.Data.DataRow = dataSet.ECALRI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  4909. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  4910. If ((Not (updatedRows) Is Nothing) _
  4911. AndAlso (0 < updatedRows.Length)) Then
  4912. result = (result + Me._eCALRITableAdapter.Update(updatedRows))
  4913. allChangedRows.AddRange(updatedRows)
  4914. End If
  4915. End If
  4916. If (Not (Me._eMISTableAdapter) Is Nothing) Then
  4917. Dim updatedRows() As Global.System.Data.DataRow = dataSet.EMIS.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  4918. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  4919. If ((Not (updatedRows) Is Nothing) _
  4920. AndAlso (0 < updatedRows.Length)) Then
  4921. result = (result + Me._eMISTableAdapter.Update(updatedRows))
  4922. allChangedRows.AddRange(updatedRows)
  4923. End If
  4924. End If
  4925. If (Not (Me._eMPRTableAdapter) Is Nothing) Then
  4926. Dim updatedRows() As Global.System.Data.DataRow = dataSet.EMPR.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  4927. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  4928. If ((Not (updatedRows) Is Nothing) _
  4929. AndAlso (0 < updatedRows.Length)) Then
  4930. result = (result + Me._eMPRTableAdapter.Update(updatedRows))
  4931. allChangedRows.AddRange(updatedRows)
  4932. End If
  4933. End If
  4934. If (Not (Me._iNFITableAdapter) Is Nothing) Then
  4935. Dim updatedRows() As Global.System.Data.DataRow = dataSet.INFI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  4936. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  4937. If ((Not (updatedRows) Is Nothing) _
  4938. AndAlso (0 < updatedRows.Length)) Then
  4939. result = (result + Me._iNFITableAdapter.Update(updatedRows))
  4940. allChangedRows.AddRange(updatedRows)
  4941. End If
  4942. End If
  4943. If (Not (Me._pAISTableAdapter) Is Nothing) Then
  4944. Dim updatedRows() As Global.System.Data.DataRow = dataSet.PAIS.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.ModifiedCurrent)
  4945. updatedRows = Me.GetRealUpdatedRows(updatedRows, allAddedRows)
  4946. If ((Not (updatedRows) Is Nothing) _
  4947. AndAlso (0 < updatedRows.Length)) Then
  4948. result = (result + Me._pAISTableAdapter.Update(updatedRows))
  4949. allChangedRows.AddRange(updatedRows)
  4950. End If
  4951. End If
  4952. Return result
  4953. End Function
  4954. '''<summary>
  4955. '''Insert rows in top-down order.
  4956. '''</summary>
  4957. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  4958. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  4959. Private Function UpdateInsertedRows(ByVal dataSet As dsInversiones, ByVal allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Integer
  4960. Dim result As Integer = 0
  4961. If (Not (Me._eCALRITableAdapter) Is Nothing) Then
  4962. Dim addedRows() As Global.System.Data.DataRow = dataSet.ECALRI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  4963. If ((Not (addedRows) Is Nothing) _
  4964. AndAlso (0 < addedRows.Length)) Then
  4965. result = (result + Me._eCALRITableAdapter.Update(addedRows))
  4966. allAddedRows.AddRange(addedRows)
  4967. End If
  4968. End If
  4969. If (Not (Me._eMISTableAdapter) Is Nothing) Then
  4970. Dim addedRows() As Global.System.Data.DataRow = dataSet.EMIS.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  4971. If ((Not (addedRows) Is Nothing) _
  4972. AndAlso (0 < addedRows.Length)) Then
  4973. result = (result + Me._eMISTableAdapter.Update(addedRows))
  4974. allAddedRows.AddRange(addedRows)
  4975. End If
  4976. End If
  4977. If (Not (Me._eMPRTableAdapter) Is Nothing) Then
  4978. Dim addedRows() As Global.System.Data.DataRow = dataSet.EMPR.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  4979. If ((Not (addedRows) Is Nothing) _
  4980. AndAlso (0 < addedRows.Length)) Then
  4981. result = (result + Me._eMPRTableAdapter.Update(addedRows))
  4982. allAddedRows.AddRange(addedRows)
  4983. End If
  4984. End If
  4985. If (Not (Me._iNFITableAdapter) Is Nothing) Then
  4986. Dim addedRows() As Global.System.Data.DataRow = dataSet.INFI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  4987. If ((Not (addedRows) Is Nothing) _
  4988. AndAlso (0 < addedRows.Length)) Then
  4989. result = (result + Me._iNFITableAdapter.Update(addedRows))
  4990. allAddedRows.AddRange(addedRows)
  4991. End If
  4992. End If
  4993. If (Not (Me._pAISTableAdapter) Is Nothing) Then
  4994. Dim addedRows() As Global.System.Data.DataRow = dataSet.PAIS.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Added)
  4995. If ((Not (addedRows) Is Nothing) _
  4996. AndAlso (0 < addedRows.Length)) Then
  4997. result = (result + Me._pAISTableAdapter.Update(addedRows))
  4998. allAddedRows.AddRange(addedRows)
  4999. End If
  5000. End If
  5001. Return result
  5002. End Function
  5003. '''<summary>
  5004. '''Delete rows in bottom-up order.
  5005. '''</summary>
  5006. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5007. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  5008. Private Function UpdateDeletedRows(ByVal dataSet As dsInversiones, ByVal allChangedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)) As Integer
  5009. Dim result As Integer = 0
  5010. If (Not (Me._pAISTableAdapter) Is Nothing) Then
  5011. Dim deletedRows() As Global.System.Data.DataRow = dataSet.PAIS.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  5012. If ((Not (deletedRows) Is Nothing) _
  5013. AndAlso (0 < deletedRows.Length)) Then
  5014. result = (result + Me._pAISTableAdapter.Update(deletedRows))
  5015. allChangedRows.AddRange(deletedRows)
  5016. End If
  5017. End If
  5018. If (Not (Me._iNFITableAdapter) Is Nothing) Then
  5019. Dim deletedRows() As Global.System.Data.DataRow = dataSet.INFI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  5020. If ((Not (deletedRows) Is Nothing) _
  5021. AndAlso (0 < deletedRows.Length)) Then
  5022. result = (result + Me._iNFITableAdapter.Update(deletedRows))
  5023. allChangedRows.AddRange(deletedRows)
  5024. End If
  5025. End If
  5026. If (Not (Me._eMPRTableAdapter) Is Nothing) Then
  5027. Dim deletedRows() As Global.System.Data.DataRow = dataSet.EMPR.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  5028. If ((Not (deletedRows) Is Nothing) _
  5029. AndAlso (0 < deletedRows.Length)) Then
  5030. result = (result + Me._eMPRTableAdapter.Update(deletedRows))
  5031. allChangedRows.AddRange(deletedRows)
  5032. End If
  5033. End If
  5034. If (Not (Me._eMISTableAdapter) Is Nothing) Then
  5035. Dim deletedRows() As Global.System.Data.DataRow = dataSet.EMIS.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  5036. If ((Not (deletedRows) Is Nothing) _
  5037. AndAlso (0 < deletedRows.Length)) Then
  5038. result = (result + Me._eMISTableAdapter.Update(deletedRows))
  5039. allChangedRows.AddRange(deletedRows)
  5040. End If
  5041. End If
  5042. If (Not (Me._eCALRITableAdapter) Is Nothing) Then
  5043. Dim deletedRows() As Global.System.Data.DataRow = dataSet.ECALRI.Select(Nothing, Nothing, Global.System.Data.DataViewRowState.Deleted)
  5044. If ((Not (deletedRows) Is Nothing) _
  5045. AndAlso (0 < deletedRows.Length)) Then
  5046. result = (result + Me._eCALRITableAdapter.Update(deletedRows))
  5047. allChangedRows.AddRange(deletedRows)
  5048. End If
  5049. End If
  5050. Return result
  5051. End Function
  5052. '''<summary>
  5053. '''Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  5054. '''</summary>
  5055. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5056. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  5057. 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()
  5058. If ((updatedRows Is Nothing) _
  5059. OrElse (updatedRows.Length < 1)) Then
  5060. Return updatedRows
  5061. End If
  5062. If ((allAddedRows Is Nothing) _
  5063. OrElse (allAddedRows.Count < 1)) Then
  5064. Return updatedRows
  5065. End If
  5066. Dim realUpdatedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
  5067. Dim i As Integer = 0
  5068. Do While (i < updatedRows.Length)
  5069. Dim row As Global.System.Data.DataRow = updatedRows(i)
  5070. If (allAddedRows.Contains(row) = false) Then
  5071. realUpdatedRows.Add(row)
  5072. End If
  5073. i = (i + 1)
  5074. Loop
  5075. Return realUpdatedRows.ToArray
  5076. End Function
  5077. '''<summary>
  5078. '''Update all changes to the dataset.
  5079. '''</summary>
  5080. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5081. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  5082. Public Overridable Function UpdateAll(ByVal dataSet As dsInversiones) As Integer
  5083. If (dataSet Is Nothing) Then
  5084. Throw New Global.System.ArgumentNullException("dataSet")
  5085. End If
  5086. If (dataSet.HasChanges = false) Then
  5087. Return 0
  5088. End If
  5089. If ((Not (Me._eCALRITableAdapter) Is Nothing) _
  5090. AndAlso (Me.MatchTableAdapterConnection(Me._eCALRITableAdapter.Connection) = false)) Then
  5091. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  5092. "sma cadena de conexión.")
  5093. End If
  5094. If ((Not (Me._eMISTableAdapter) Is Nothing) _
  5095. AndAlso (Me.MatchTableAdapterConnection(Me._eMISTableAdapter.Connection) = false)) Then
  5096. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  5097. "sma cadena de conexión.")
  5098. End If
  5099. If ((Not (Me._eMPRTableAdapter) Is Nothing) _
  5100. AndAlso (Me.MatchTableAdapterConnection(Me._eMPRTableAdapter.Connection) = false)) Then
  5101. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  5102. "sma cadena de conexión.")
  5103. End If
  5104. If ((Not (Me._iNFITableAdapter) Is Nothing) _
  5105. AndAlso (Me.MatchTableAdapterConnection(Me._iNFITableAdapter.Connection) = false)) Then
  5106. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  5107. "sma cadena de conexión.")
  5108. End If
  5109. If ((Not (Me._pAISTableAdapter) Is Nothing) _
  5110. AndAlso (Me.MatchTableAdapterConnection(Me._pAISTableAdapter.Connection) = false)) Then
  5111. Throw New Global.System.ArgumentException("Todos los TableAdapters administrados por un TableAdapterManager deben usar la mi"& _
  5112. "sma cadena de conexión.")
  5113. End If
  5114. Dim workConnection As Global.System.Data.IDbConnection = Me.Connection
  5115. If (workConnection Is Nothing) Then
  5116. Throw New Global.System.ApplicationException("TableAdapterManager no contiene información de conexión. Establezca cada propieda"& _
  5117. "d TableAdapterManager TableAdapter en una instancia TableAdapter válida.")
  5118. End If
  5119. Dim workConnOpened As Boolean = false
  5120. If ((workConnection.State And Global.System.Data.ConnectionState.Broken) _
  5121. = Global.System.Data.ConnectionState.Broken) Then
  5122. workConnection.Close
  5123. End If
  5124. If (workConnection.State = Global.System.Data.ConnectionState.Closed) Then
  5125. workConnection.Open
  5126. workConnOpened = true
  5127. End If
  5128. Dim workTransaction As Global.System.Data.IDbTransaction = workConnection.BeginTransaction
  5129. If (workTransaction Is Nothing) Then
  5130. Throw New Global.System.ApplicationException("La transacción no puede comenzar. La conexión de datos actual no es compatible co"& _
  5131. "n las transacciones o el estado actual no permite que comience la transacción.")
  5132. End If
  5133. Dim allChangedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
  5134. Dim allAddedRows As Global.System.Collections.Generic.List(Of Global.System.Data.DataRow) = New Global.System.Collections.Generic.List(Of Global.System.Data.DataRow)()
  5135. 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)()
  5136. 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)()
  5137. Dim result As Integer = 0
  5138. Dim backupDataSet As Global.System.Data.DataSet = Nothing
  5139. If Me.BackupDataSetBeforeUpdate Then
  5140. backupDataSet = New Global.System.Data.DataSet()
  5141. backupDataSet.Merge(dataSet)
  5142. End If
  5143. Try
  5144. '---- Prepare for update -----------
  5145. '
  5146. If (Not (Me._eCALRITableAdapter) Is Nothing) Then
  5147. revertConnections.Add(Me._eCALRITableAdapter, Me._eCALRITableAdapter.Connection)
  5148. Me._eCALRITableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  5149. Me._eCALRITableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  5150. If Me._eCALRITableAdapter.Adapter.AcceptChangesDuringUpdate Then
  5151. Me._eCALRITableAdapter.Adapter.AcceptChangesDuringUpdate = false
  5152. adaptersWithAcceptChangesDuringUpdate.Add(Me._eCALRITableAdapter.Adapter)
  5153. End If
  5154. End If
  5155. If (Not (Me._eMISTableAdapter) Is Nothing) Then
  5156. revertConnections.Add(Me._eMISTableAdapter, Me._eMISTableAdapter.Connection)
  5157. Me._eMISTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  5158. Me._eMISTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  5159. If Me._eMISTableAdapter.Adapter.AcceptChangesDuringUpdate Then
  5160. Me._eMISTableAdapter.Adapter.AcceptChangesDuringUpdate = false
  5161. adaptersWithAcceptChangesDuringUpdate.Add(Me._eMISTableAdapter.Adapter)
  5162. End If
  5163. End If
  5164. If (Not (Me._eMPRTableAdapter) Is Nothing) Then
  5165. revertConnections.Add(Me._eMPRTableAdapter, Me._eMPRTableAdapter.Connection)
  5166. Me._eMPRTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  5167. Me._eMPRTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  5168. If Me._eMPRTableAdapter.Adapter.AcceptChangesDuringUpdate Then
  5169. Me._eMPRTableAdapter.Adapter.AcceptChangesDuringUpdate = false
  5170. adaptersWithAcceptChangesDuringUpdate.Add(Me._eMPRTableAdapter.Adapter)
  5171. End If
  5172. End If
  5173. If (Not (Me._iNFITableAdapter) Is Nothing) Then
  5174. revertConnections.Add(Me._iNFITableAdapter, Me._iNFITableAdapter.Connection)
  5175. Me._iNFITableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  5176. Me._iNFITableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  5177. If Me._iNFITableAdapter.Adapter.AcceptChangesDuringUpdate Then
  5178. Me._iNFITableAdapter.Adapter.AcceptChangesDuringUpdate = false
  5179. adaptersWithAcceptChangesDuringUpdate.Add(Me._iNFITableAdapter.Adapter)
  5180. End If
  5181. End If
  5182. If (Not (Me._pAISTableAdapter) Is Nothing) Then
  5183. revertConnections.Add(Me._pAISTableAdapter, Me._pAISTableAdapter.Connection)
  5184. Me._pAISTableAdapter.Connection = CType(workConnection,Global.System.Data.SqlClient.SqlConnection)
  5185. Me._pAISTableAdapter.Transaction = CType(workTransaction,Global.System.Data.SqlClient.SqlTransaction)
  5186. If Me._pAISTableAdapter.Adapter.AcceptChangesDuringUpdate Then
  5187. Me._pAISTableAdapter.Adapter.AcceptChangesDuringUpdate = false
  5188. adaptersWithAcceptChangesDuringUpdate.Add(Me._pAISTableAdapter.Adapter)
  5189. End If
  5190. End If
  5191. '
  5192. '---- Perform updates -----------
  5193. '
  5194. If (Me.UpdateOrder = UpdateOrderOption.UpdateInsertDelete) Then
  5195. result = (result + Me.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows))
  5196. result = (result + Me.UpdateInsertedRows(dataSet, allAddedRows))
  5197. Else
  5198. result = (result + Me.UpdateInsertedRows(dataSet, allAddedRows))
  5199. result = (result + Me.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows))
  5200. End If
  5201. result = (result + Me.UpdateDeletedRows(dataSet, allChangedRows))
  5202. '
  5203. '---- Commit updates -----------
  5204. '
  5205. workTransaction.Commit
  5206. If (0 < allAddedRows.Count) Then
  5207. Dim rows((allAddedRows.Count) - 1) As Global.System.Data.DataRow
  5208. allAddedRows.CopyTo(rows)
  5209. Dim i As Integer = 0
  5210. Do While (i < rows.Length)
  5211. Dim row As Global.System.Data.DataRow = rows(i)
  5212. row.AcceptChanges
  5213. i = (i + 1)
  5214. Loop
  5215. End If
  5216. If (0 < allChangedRows.Count) Then
  5217. Dim rows((allChangedRows.Count) - 1) As Global.System.Data.DataRow
  5218. allChangedRows.CopyTo(rows)
  5219. Dim i As Integer = 0
  5220. Do While (i < rows.Length)
  5221. Dim row As Global.System.Data.DataRow = rows(i)
  5222. row.AcceptChanges
  5223. i = (i + 1)
  5224. Loop
  5225. End If
  5226. Catch ex As Global.System.Exception
  5227. workTransaction.Rollback
  5228. '---- Restore the dataset -----------
  5229. If Me.BackupDataSetBeforeUpdate Then
  5230. Global.System.Diagnostics.Debug.Assert((Not (backupDataSet) Is Nothing))
  5231. dataSet.Clear
  5232. dataSet.Merge(backupDataSet)
  5233. Else
  5234. If (0 < allAddedRows.Count) Then
  5235. Dim rows((allAddedRows.Count) - 1) As Global.System.Data.DataRow
  5236. allAddedRows.CopyTo(rows)
  5237. Dim i As Integer = 0
  5238. Do While (i < rows.Length)
  5239. Dim row As Global.System.Data.DataRow = rows(i)
  5240. row.AcceptChanges
  5241. row.SetAdded
  5242. i = (i + 1)
  5243. Loop
  5244. End If
  5245. End If
  5246. Throw ex
  5247. Finally
  5248. If workConnOpened Then
  5249. workConnection.Close
  5250. End If
  5251. If (Not (Me._eCALRITableAdapter) Is Nothing) Then
  5252. Me._eCALRITableAdapter.Connection = CType(revertConnections(Me._eCALRITableAdapter),Global.System.Data.SqlClient.SqlConnection)
  5253. Me._eCALRITableAdapter.Transaction = Nothing
  5254. End If
  5255. If (Not (Me._eMISTableAdapter) Is Nothing) Then
  5256. Me._eMISTableAdapter.Connection = CType(revertConnections(Me._eMISTableAdapter),Global.System.Data.SqlClient.SqlConnection)
  5257. Me._eMISTableAdapter.Transaction = Nothing
  5258. End If
  5259. If (Not (Me._eMPRTableAdapter) Is Nothing) Then
  5260. Me._eMPRTableAdapter.Connection = CType(revertConnections(Me._eMPRTableAdapter),Global.System.Data.SqlClient.SqlConnection)
  5261. Me._eMPRTableAdapter.Transaction = Nothing
  5262. End If
  5263. If (Not (Me._iNFITableAdapter) Is Nothing) Then
  5264. Me._iNFITableAdapter.Connection = CType(revertConnections(Me._iNFITableAdapter),Global.System.Data.SqlClient.SqlConnection)
  5265. Me._iNFITableAdapter.Transaction = Nothing
  5266. End If
  5267. If (Not (Me._pAISTableAdapter) Is Nothing) Then
  5268. Me._pAISTableAdapter.Connection = CType(revertConnections(Me._pAISTableAdapter),Global.System.Data.SqlClient.SqlConnection)
  5269. Me._pAISTableAdapter.Transaction = Nothing
  5270. End If
  5271. If (0 < adaptersWithAcceptChangesDuringUpdate.Count) Then
  5272. Dim adapters((adaptersWithAcceptChangesDuringUpdate.Count) - 1) As Global.System.Data.Common.DataAdapter
  5273. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters)
  5274. Dim i As Integer = 0
  5275. Do While (i < adapters.Length)
  5276. Dim adapter As Global.System.Data.Common.DataAdapter = adapters(i)
  5277. adapter.AcceptChangesDuringUpdate = true
  5278. i = (i + 1)
  5279. Loop
  5280. End If
  5281. End Try
  5282. Return result
  5283. End Function
  5284. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5285. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  5286. Protected Overridable Sub SortSelfReferenceRows(ByVal rows() As Global.System.Data.DataRow, ByVal relation As Global.System.Data.DataRelation, ByVal childFirst As Boolean)
  5287. Global.System.Array.Sort(Of Global.System.Data.DataRow)(rows, New SelfReferenceComparer(relation, childFirst))
  5288. End Sub
  5289. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5290. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  5291. Protected Overridable Function MatchTableAdapterConnection(ByVal inputConnection As Global.System.Data.IDbConnection) As Boolean
  5292. If (Not (Me._connection) Is Nothing) Then
  5293. Return true
  5294. End If
  5295. If ((Me.Connection Is Nothing) _
  5296. OrElse (inputConnection Is Nothing)) Then
  5297. Return true
  5298. End If
  5299. If String.Equals(Me.Connection.ConnectionString, inputConnection.ConnectionString, Global.System.StringComparison.Ordinal) Then
  5300. Return true
  5301. End If
  5302. Return false
  5303. End Function
  5304. '''<summary>
  5305. '''Update Order Option
  5306. '''</summary>
  5307. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  5308. Public Enum UpdateOrderOption
  5309. InsertUpdateDelete = 0
  5310. UpdateInsertDelete = 1
  5311. End Enum
  5312. '''<summary>
  5313. '''Used to sort self-referenced table's rows
  5314. '''</summary>
  5315. <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  5316. Private Class SelfReferenceComparer
  5317. Inherits Object
  5318. Implements Global.System.Collections.Generic.IComparer(Of Global.System.Data.DataRow)
  5319. Private _relation As Global.System.Data.DataRelation
  5320. Private _childFirst As Integer
  5321. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5322. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  5323. Friend Sub New(ByVal relation As Global.System.Data.DataRelation, ByVal childFirst As Boolean)
  5324. MyBase.New
  5325. Me._relation = relation
  5326. If childFirst Then
  5327. Me._childFirst = -1
  5328. Else
  5329. Me._childFirst = 1
  5330. End If
  5331. End Sub
  5332. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5333. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  5334. Private Function GetRoot(ByVal row As Global.System.Data.DataRow, ByRef distance As Integer) As Global.System.Data.DataRow
  5335. Global.System.Diagnostics.Debug.Assert((Not (row) Is Nothing))
  5336. Dim root As Global.System.Data.DataRow = row
  5337. distance = 0
  5338. 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)()
  5339. traversedRows(row) = row
  5340. Dim parent As Global.System.Data.DataRow = row.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.[Default])
  5341. Do While ((Not (parent) Is Nothing) _
  5342. AndAlso (traversedRows.ContainsKey(parent) = false))
  5343. distance = (distance + 1)
  5344. root = parent
  5345. traversedRows(parent) = parent
  5346. parent = parent.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.[Default])
  5347. Loop
  5348. If (distance = 0) Then
  5349. traversedRows.Clear
  5350. traversedRows(row) = row
  5351. parent = row.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.Original)
  5352. Do While ((Not (parent) Is Nothing) _
  5353. AndAlso (traversedRows.ContainsKey(parent) = false))
  5354. distance = (distance + 1)
  5355. root = parent
  5356. traversedRows(parent) = parent
  5357. parent = parent.GetParentRow(Me._relation, Global.System.Data.DataRowVersion.Original)
  5358. Loop
  5359. End If
  5360. Return root
  5361. End Function
  5362. <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
  5363. Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")> _
  5364. 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
  5365. If Object.ReferenceEquals(row1, row2) Then
  5366. Return 0
  5367. End If
  5368. If (row1 Is Nothing) Then
  5369. Return -1
  5370. End If
  5371. If (row2 Is Nothing) Then
  5372. Return 1
  5373. End If
  5374. Dim distance1 As Integer = 0
  5375. Dim root1 As Global.System.Data.DataRow = Me.GetRoot(row1, distance1)
  5376. Dim distance2 As Integer = 0
  5377. Dim root2 As Global.System.Data.DataRow = Me.GetRoot(row2, distance2)
  5378. If Object.ReferenceEquals(root1, root2) Then
  5379. Return (Me._childFirst * distance1.CompareTo(distance2))
  5380. Else
  5381. Global.System.Diagnostics.Debug.Assert(((Not (root1.Table) Is Nothing) _
  5382. AndAlso (Not (root2.Table) Is Nothing)))
  5383. If (root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2)) Then
  5384. Return -1
  5385. Else
  5386. Return 1
  5387. End If
  5388. End If
  5389. End Function
  5390. End Class
  5391. End Class
  5392. End Namespace