Prokatavto06DataSet.Designer.cs 505 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace avtoprokatvel {
  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("Prokatavto06DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class Prokatavto06DataSet : global::System.Data.DataSet {
  22. private AvtoDataTable tableAvto;
  23. private KlientDataTable tableKlient;
  24. private ProkatDataTable tableProkat;
  25. private StrahovkaDataTable tableStrahovka;
  26. private ПредставлениеПрокатDataTable tableПредставлениеПрокат;
  27. private LOLDataTable tableLOL;
  28. private LOL123DataTable tableLOL123;
  29. private LOL1234DataTable tableLOL1234;
  30. private LOL12345DataTable tableLOL12345;
  31. private LOL123456DataTable tableLOL123456;
  32. private PoiskDataTable tablePoisk;
  33. private global::System.Data.DataRelation relationFK_Avto_Strahovka;
  34. private global::System.Data.DataRelation relationFK_Prokat_Avto;
  35. private global::System.Data.DataRelation relationFK_Prokat_Klient;
  36. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  37. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  38. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  39. public Prokatavto06DataSet() {
  40. this.BeginInit();
  41. this.InitClass();
  42. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  43. base.Tables.CollectionChanged += schemaChangedHandler;
  44. base.Relations.CollectionChanged += schemaChangedHandler;
  45. this.EndInit();
  46. }
  47. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  48. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  49. protected Prokatavto06DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  50. base(info, context, false) {
  51. if ((this.IsBinarySerialized(info, context) == true)) {
  52. this.InitVars(false);
  53. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  54. this.Tables.CollectionChanged += schemaChangedHandler1;
  55. this.Relations.CollectionChanged += schemaChangedHandler1;
  56. return;
  57. }
  58. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  59. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  60. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  61. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  62. if ((ds.Tables["Avto"] != null)) {
  63. base.Tables.Add(new AvtoDataTable(ds.Tables["Avto"]));
  64. }
  65. if ((ds.Tables["Klient"] != null)) {
  66. base.Tables.Add(new KlientDataTable(ds.Tables["Klient"]));
  67. }
  68. if ((ds.Tables["Prokat"] != null)) {
  69. base.Tables.Add(new ProkatDataTable(ds.Tables["Prokat"]));
  70. }
  71. if ((ds.Tables["Strahovka"] != null)) {
  72. base.Tables.Add(new StrahovkaDataTable(ds.Tables["Strahovka"]));
  73. }
  74. if ((ds.Tables["ПредставлениеПрокат"] != null)) {
  75. base.Tables.Add(new ПредставлениеПрокатDataTable(ds.Tables["ПредставлениеПрокат"]));
  76. }
  77. if ((ds.Tables["LOL"] != null)) {
  78. base.Tables.Add(new LOLDataTable(ds.Tables["LOL"]));
  79. }
  80. if ((ds.Tables["LOL123"] != null)) {
  81. base.Tables.Add(new LOL123DataTable(ds.Tables["LOL123"]));
  82. }
  83. if ((ds.Tables["LOL1234"] != null)) {
  84. base.Tables.Add(new LOL1234DataTable(ds.Tables["LOL1234"]));
  85. }
  86. if ((ds.Tables["LOL12345"] != null)) {
  87. base.Tables.Add(new LOL12345DataTable(ds.Tables["LOL12345"]));
  88. }
  89. if ((ds.Tables["LOL123456"] != null)) {
  90. base.Tables.Add(new LOL123456DataTable(ds.Tables["LOL123456"]));
  91. }
  92. if ((ds.Tables["Poisk"] != null)) {
  93. base.Tables.Add(new PoiskDataTable(ds.Tables["Poisk"]));
  94. }
  95. this.DataSetName = ds.DataSetName;
  96. this.Prefix = ds.Prefix;
  97. this.Namespace = ds.Namespace;
  98. this.Locale = ds.Locale;
  99. this.CaseSensitive = ds.CaseSensitive;
  100. this.EnforceConstraints = ds.EnforceConstraints;
  101. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  102. this.InitVars();
  103. }
  104. else {
  105. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  106. }
  107. this.GetSerializationData(info, context);
  108. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  109. base.Tables.CollectionChanged += schemaChangedHandler;
  110. this.Relations.CollectionChanged += schemaChangedHandler;
  111. }
  112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  114. [global::System.ComponentModel.Browsable(false)]
  115. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  116. public AvtoDataTable Avto {
  117. get {
  118. return this.tableAvto;
  119. }
  120. }
  121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  123. [global::System.ComponentModel.Browsable(false)]
  124. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  125. public KlientDataTable Klient {
  126. get {
  127. return this.tableKlient;
  128. }
  129. }
  130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  132. [global::System.ComponentModel.Browsable(false)]
  133. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  134. public ProkatDataTable Prokat {
  135. get {
  136. return this.tableProkat;
  137. }
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. [global::System.ComponentModel.Browsable(false)]
  142. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  143. public StrahovkaDataTable Strahovka {
  144. get {
  145. return this.tableStrahovka;
  146. }
  147. }
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  150. [global::System.ComponentModel.Browsable(false)]
  151. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  152. public ПредставлениеПрокатDataTable ПредставлениеПрокат {
  153. get {
  154. return this.tableПредставлениеПрокат;
  155. }
  156. }
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  159. [global::System.ComponentModel.Browsable(false)]
  160. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  161. public LOLDataTable LOL {
  162. get {
  163. return this.tableLOL;
  164. }
  165. }
  166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  168. [global::System.ComponentModel.Browsable(false)]
  169. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  170. public LOL123DataTable LOL123 {
  171. get {
  172. return this.tableLOL123;
  173. }
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  177. [global::System.ComponentModel.Browsable(false)]
  178. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  179. public LOL1234DataTable LOL1234 {
  180. get {
  181. return this.tableLOL1234;
  182. }
  183. }
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  186. [global::System.ComponentModel.Browsable(false)]
  187. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  188. public LOL12345DataTable LOL12345 {
  189. get {
  190. return this.tableLOL12345;
  191. }
  192. }
  193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  195. [global::System.ComponentModel.Browsable(false)]
  196. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  197. public LOL123456DataTable LOL123456 {
  198. get {
  199. return this.tableLOL123456;
  200. }
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  204. [global::System.ComponentModel.Browsable(false)]
  205. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  206. public PoiskDataTable Poisk {
  207. get {
  208. return this.tablePoisk;
  209. }
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  213. [global::System.ComponentModel.BrowsableAttribute(true)]
  214. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  215. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  216. get {
  217. return this._schemaSerializationMode;
  218. }
  219. set {
  220. this._schemaSerializationMode = value;
  221. }
  222. }
  223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  225. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  226. public new global::System.Data.DataTableCollection Tables {
  227. get {
  228. return base.Tables;
  229. }
  230. }
  231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  233. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  234. public new global::System.Data.DataRelationCollection Relations {
  235. get {
  236. return base.Relations;
  237. }
  238. }
  239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  241. protected override void InitializeDerivedDataSet() {
  242. this.BeginInit();
  243. this.InitClass();
  244. this.EndInit();
  245. }
  246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  248. public override global::System.Data.DataSet Clone() {
  249. Prokatavto06DataSet cln = ((Prokatavto06DataSet)(base.Clone()));
  250. cln.InitVars();
  251. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  252. return cln;
  253. }
  254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  256. protected override bool ShouldSerializeTables() {
  257. return false;
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  261. protected override bool ShouldSerializeRelations() {
  262. return false;
  263. }
  264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  266. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  267. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  268. this.Reset();
  269. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  270. ds.ReadXml(reader);
  271. if ((ds.Tables["Avto"] != null)) {
  272. base.Tables.Add(new AvtoDataTable(ds.Tables["Avto"]));
  273. }
  274. if ((ds.Tables["Klient"] != null)) {
  275. base.Tables.Add(new KlientDataTable(ds.Tables["Klient"]));
  276. }
  277. if ((ds.Tables["Prokat"] != null)) {
  278. base.Tables.Add(new ProkatDataTable(ds.Tables["Prokat"]));
  279. }
  280. if ((ds.Tables["Strahovka"] != null)) {
  281. base.Tables.Add(new StrahovkaDataTable(ds.Tables["Strahovka"]));
  282. }
  283. if ((ds.Tables["ПредставлениеПрокат"] != null)) {
  284. base.Tables.Add(new ПредставлениеПрокатDataTable(ds.Tables["ПредставлениеПрокат"]));
  285. }
  286. if ((ds.Tables["LOL"] != null)) {
  287. base.Tables.Add(new LOLDataTable(ds.Tables["LOL"]));
  288. }
  289. if ((ds.Tables["LOL123"] != null)) {
  290. base.Tables.Add(new LOL123DataTable(ds.Tables["LOL123"]));
  291. }
  292. if ((ds.Tables["LOL1234"] != null)) {
  293. base.Tables.Add(new LOL1234DataTable(ds.Tables["LOL1234"]));
  294. }
  295. if ((ds.Tables["LOL12345"] != null)) {
  296. base.Tables.Add(new LOL12345DataTable(ds.Tables["LOL12345"]));
  297. }
  298. if ((ds.Tables["LOL123456"] != null)) {
  299. base.Tables.Add(new LOL123456DataTable(ds.Tables["LOL123456"]));
  300. }
  301. if ((ds.Tables["Poisk"] != null)) {
  302. base.Tables.Add(new PoiskDataTable(ds.Tables["Poisk"]));
  303. }
  304. this.DataSetName = ds.DataSetName;
  305. this.Prefix = ds.Prefix;
  306. this.Namespace = ds.Namespace;
  307. this.Locale = ds.Locale;
  308. this.CaseSensitive = ds.CaseSensitive;
  309. this.EnforceConstraints = ds.EnforceConstraints;
  310. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  311. this.InitVars();
  312. }
  313. else {
  314. this.ReadXml(reader);
  315. this.InitVars();
  316. }
  317. }
  318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  320. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  321. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  322. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  323. stream.Position = 0;
  324. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  325. }
  326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  328. internal void InitVars() {
  329. this.InitVars(true);
  330. }
  331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  333. internal void InitVars(bool initTable) {
  334. this.tableAvto = ((AvtoDataTable)(base.Tables["Avto"]));
  335. if ((initTable == true)) {
  336. if ((this.tableAvto != null)) {
  337. this.tableAvto.InitVars();
  338. }
  339. }
  340. this.tableKlient = ((KlientDataTable)(base.Tables["Klient"]));
  341. if ((initTable == true)) {
  342. if ((this.tableKlient != null)) {
  343. this.tableKlient.InitVars();
  344. }
  345. }
  346. this.tableProkat = ((ProkatDataTable)(base.Tables["Prokat"]));
  347. if ((initTable == true)) {
  348. if ((this.tableProkat != null)) {
  349. this.tableProkat.InitVars();
  350. }
  351. }
  352. this.tableStrahovka = ((StrahovkaDataTable)(base.Tables["Strahovka"]));
  353. if ((initTable == true)) {
  354. if ((this.tableStrahovka != null)) {
  355. this.tableStrahovka.InitVars();
  356. }
  357. }
  358. this.tableПредставлениеПрокат = ((ПредставлениеПрокатDataTable)(base.Tables["ПредставлениеПрокат"]));
  359. if ((initTable == true)) {
  360. if ((this.tableПредставлениеПрокат != null)) {
  361. this.tableПредставлениеПрокат.InitVars();
  362. }
  363. }
  364. this.tableLOL = ((LOLDataTable)(base.Tables["LOL"]));
  365. if ((initTable == true)) {
  366. if ((this.tableLOL != null)) {
  367. this.tableLOL.InitVars();
  368. }
  369. }
  370. this.tableLOL123 = ((LOL123DataTable)(base.Tables["LOL123"]));
  371. if ((initTable == true)) {
  372. if ((this.tableLOL123 != null)) {
  373. this.tableLOL123.InitVars();
  374. }
  375. }
  376. this.tableLOL1234 = ((LOL1234DataTable)(base.Tables["LOL1234"]));
  377. if ((initTable == true)) {
  378. if ((this.tableLOL1234 != null)) {
  379. this.tableLOL1234.InitVars();
  380. }
  381. }
  382. this.tableLOL12345 = ((LOL12345DataTable)(base.Tables["LOL12345"]));
  383. if ((initTable == true)) {
  384. if ((this.tableLOL12345 != null)) {
  385. this.tableLOL12345.InitVars();
  386. }
  387. }
  388. this.tableLOL123456 = ((LOL123456DataTable)(base.Tables["LOL123456"]));
  389. if ((initTable == true)) {
  390. if ((this.tableLOL123456 != null)) {
  391. this.tableLOL123456.InitVars();
  392. }
  393. }
  394. this.tablePoisk = ((PoiskDataTable)(base.Tables["Poisk"]));
  395. if ((initTable == true)) {
  396. if ((this.tablePoisk != null)) {
  397. this.tablePoisk.InitVars();
  398. }
  399. }
  400. this.relationFK_Avto_Strahovka = this.Relations["FK_Avto_Strahovka"];
  401. this.relationFK_Prokat_Avto = this.Relations["FK_Prokat_Avto"];
  402. this.relationFK_Prokat_Klient = this.Relations["FK_Prokat_Klient"];
  403. }
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  406. private void InitClass() {
  407. this.DataSetName = "Prokatavto06DataSet";
  408. this.Prefix = "";
  409. this.Namespace = "http://tempuri.org/Prokatavto06DataSet.xsd";
  410. this.EnforceConstraints = true;
  411. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  412. this.tableAvto = new AvtoDataTable();
  413. base.Tables.Add(this.tableAvto);
  414. this.tableKlient = new KlientDataTable();
  415. base.Tables.Add(this.tableKlient);
  416. this.tableProkat = new ProkatDataTable();
  417. base.Tables.Add(this.tableProkat);
  418. this.tableStrahovka = new StrahovkaDataTable();
  419. base.Tables.Add(this.tableStrahovka);
  420. this.tableПредставлениеПрокат = new ПредставлениеПрокатDataTable();
  421. base.Tables.Add(this.tableПредставлениеПрокат);
  422. this.tableLOL = new LOLDataTable();
  423. base.Tables.Add(this.tableLOL);
  424. this.tableLOL123 = new LOL123DataTable();
  425. base.Tables.Add(this.tableLOL123);
  426. this.tableLOL1234 = new LOL1234DataTable();
  427. base.Tables.Add(this.tableLOL1234);
  428. this.tableLOL12345 = new LOL12345DataTable();
  429. base.Tables.Add(this.tableLOL12345);
  430. this.tableLOL123456 = new LOL123456DataTable();
  431. base.Tables.Add(this.tableLOL123456);
  432. this.tablePoisk = new PoiskDataTable();
  433. base.Tables.Add(this.tablePoisk);
  434. this.relationFK_Avto_Strahovka = new global::System.Data.DataRelation("FK_Avto_Strahovka", new global::System.Data.DataColumn[] {
  435. this.tableStrahovka.Kod_strahovkiColumn}, new global::System.Data.DataColumn[] {
  436. this.tableAvto.Kod_strahovkiColumn}, false);
  437. this.Relations.Add(this.relationFK_Avto_Strahovka);
  438. this.relationFK_Prokat_Avto = new global::System.Data.DataRelation("FK_Prokat_Avto", new global::System.Data.DataColumn[] {
  439. this.tableAvto.Kod_avtoColumn}, new global::System.Data.DataColumn[] {
  440. this.tableProkat.Kod_avtoColumn}, false);
  441. this.Relations.Add(this.relationFK_Prokat_Avto);
  442. this.relationFK_Prokat_Klient = new global::System.Data.DataRelation("FK_Prokat_Klient", new global::System.Data.DataColumn[] {
  443. this.tableKlient.Kod_klientaColumn}, new global::System.Data.DataColumn[] {
  444. this.tableProkat.Kod_klientaColumn}, false);
  445. this.Relations.Add(this.relationFK_Prokat_Klient);
  446. }
  447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  449. private bool ShouldSerializeAvto() {
  450. return false;
  451. }
  452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  454. private bool ShouldSerializeKlient() {
  455. return false;
  456. }
  457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  459. private bool ShouldSerializeProkat() {
  460. return false;
  461. }
  462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  464. private bool ShouldSerializeStrahovka() {
  465. return false;
  466. }
  467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  469. private bool ShouldSerializeПредставлениеПрокат() {
  470. return false;
  471. }
  472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  474. private bool ShouldSerializeLOL() {
  475. return false;
  476. }
  477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  479. private bool ShouldSerializeLOL123() {
  480. return false;
  481. }
  482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  484. private bool ShouldSerializeLOL1234() {
  485. return false;
  486. }
  487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  489. private bool ShouldSerializeLOL12345() {
  490. return false;
  491. }
  492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  494. private bool ShouldSerializeLOL123456() {
  495. return false;
  496. }
  497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  499. private bool ShouldSerializePoisk() {
  500. return false;
  501. }
  502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  504. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  505. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  506. this.InitVars();
  507. }
  508. }
  509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  511. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  512. Prokatavto06DataSet ds = new Prokatavto06DataSet();
  513. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  514. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  515. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  516. any.Namespace = ds.Namespace;
  517. sequence.Items.Add(any);
  518. type.Particle = sequence;
  519. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  520. if (xs.Contains(dsSchema.TargetNamespace)) {
  521. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  522. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  523. try {
  524. global::System.Xml.Schema.XmlSchema schema = null;
  525. dsSchema.Write(s1);
  526. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  527. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  528. s2.SetLength(0);
  529. schema.Write(s2);
  530. if ((s1.Length == s2.Length)) {
  531. s1.Position = 0;
  532. s2.Position = 0;
  533. for (; ((s1.Position != s1.Length)
  534. && (s1.ReadByte() == s2.ReadByte())); ) {
  535. ;
  536. }
  537. if ((s1.Position == s1.Length)) {
  538. return type;
  539. }
  540. }
  541. }
  542. }
  543. finally {
  544. if ((s1 != null)) {
  545. s1.Close();
  546. }
  547. if ((s2 != null)) {
  548. s2.Close();
  549. }
  550. }
  551. }
  552. xs.Add(dsSchema);
  553. return type;
  554. }
  555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  556. public delegate void AvtoRowChangeEventHandler(object sender, AvtoRowChangeEvent e);
  557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  558. public delegate void KlientRowChangeEventHandler(object sender, KlientRowChangeEvent e);
  559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  560. public delegate void ProkatRowChangeEventHandler(object sender, ProkatRowChangeEvent e);
  561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  562. public delegate void StrahovkaRowChangeEventHandler(object sender, StrahovkaRowChangeEvent e);
  563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  564. public delegate void ПредставлениеПрокатRowChangeEventHandler(object sender, ПредставлениеПрокатRowChangeEvent e);
  565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  566. public delegate void LOLRowChangeEventHandler(object sender, LOLRowChangeEvent e);
  567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  568. public delegate void LOL123RowChangeEventHandler(object sender, LOL123RowChangeEvent e);
  569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  570. public delegate void LOL1234RowChangeEventHandler(object sender, LOL1234RowChangeEvent e);
  571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  572. public delegate void LOL12345RowChangeEventHandler(object sender, LOL12345RowChangeEvent e);
  573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  574. public delegate void LOL123456RowChangeEventHandler(object sender, LOL123456RowChangeEvent e);
  575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  576. public delegate void PoiskRowChangeEventHandler(object sender, PoiskRowChangeEvent e);
  577. /// <summary>
  578. ///Represents the strongly named DataTable class.
  579. ///</summary>
  580. [global::System.Serializable()]
  581. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  582. public partial class AvtoDataTable : global::System.Data.TypedTableBase<AvtoRow> {
  583. private global::System.Data.DataColumn columnKod_avto;
  584. private global::System.Data.DataColumn columnModel_avto;
  585. private global::System.Data.DataColumn columnCvet_avto;
  586. private global::System.Data.DataColumn columnGod_vipyska_avto;
  587. private global::System.Data.DataColumn columnGos_nomer_avto;
  588. private global::System.Data.DataColumn columnstrahovaya_stoimost_avto;
  589. private global::System.Data.DataColumn columnKod_strahovki;
  590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  592. public AvtoDataTable() {
  593. this.TableName = "Avto";
  594. this.BeginInit();
  595. this.InitClass();
  596. this.EndInit();
  597. }
  598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  600. internal AvtoDataTable(global::System.Data.DataTable table) {
  601. this.TableName = table.TableName;
  602. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  603. this.CaseSensitive = table.CaseSensitive;
  604. }
  605. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  606. this.Locale = table.Locale;
  607. }
  608. if ((table.Namespace != table.DataSet.Namespace)) {
  609. this.Namespace = table.Namespace;
  610. }
  611. this.Prefix = table.Prefix;
  612. this.MinimumCapacity = table.MinimumCapacity;
  613. }
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  616. protected AvtoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  617. base(info, context) {
  618. this.InitVars();
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  622. public global::System.Data.DataColumn Kod_avtoColumn {
  623. get {
  624. return this.columnKod_avto;
  625. }
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. public global::System.Data.DataColumn Model_avtoColumn {
  630. get {
  631. return this.columnModel_avto;
  632. }
  633. }
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  636. public global::System.Data.DataColumn Cvet_avtoColumn {
  637. get {
  638. return this.columnCvet_avto;
  639. }
  640. }
  641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  643. public global::System.Data.DataColumn God_vipyska_avtoColumn {
  644. get {
  645. return this.columnGod_vipyska_avto;
  646. }
  647. }
  648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  650. public global::System.Data.DataColumn Gos_nomer_avtoColumn {
  651. get {
  652. return this.columnGos_nomer_avto;
  653. }
  654. }
  655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  657. public global::System.Data.DataColumn strahovaya_stoimost_avtoColumn {
  658. get {
  659. return this.columnstrahovaya_stoimost_avto;
  660. }
  661. }
  662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  664. public global::System.Data.DataColumn Kod_strahovkiColumn {
  665. get {
  666. return this.columnKod_strahovki;
  667. }
  668. }
  669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  671. [global::System.ComponentModel.Browsable(false)]
  672. public int Count {
  673. get {
  674. return this.Rows.Count;
  675. }
  676. }
  677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  679. public AvtoRow this[int index] {
  680. get {
  681. return ((AvtoRow)(this.Rows[index]));
  682. }
  683. }
  684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  685. public event AvtoRowChangeEventHandler AvtoRowChanging;
  686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  687. public event AvtoRowChangeEventHandler AvtoRowChanged;
  688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  689. public event AvtoRowChangeEventHandler AvtoRowDeleting;
  690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  691. public event AvtoRowChangeEventHandler AvtoRowDeleted;
  692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  694. public void AddAvtoRow(AvtoRow row) {
  695. this.Rows.Add(row);
  696. }
  697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  699. public AvtoRow AddAvtoRow(string Model_avto, string Cvet_avto, string God_vipyska_avto, string Gos_nomer_avto, decimal strahovaya_stoimost_avto, StrahovkaRow parentStrahovkaRowByFK_Avto_Strahovka) {
  700. AvtoRow rowAvtoRow = ((AvtoRow)(this.NewRow()));
  701. object[] columnValuesArray = new object[] {
  702. null,
  703. Model_avto,
  704. Cvet_avto,
  705. God_vipyska_avto,
  706. Gos_nomer_avto,
  707. strahovaya_stoimost_avto,
  708. null};
  709. if ((parentStrahovkaRowByFK_Avto_Strahovka != null)) {
  710. columnValuesArray[6] = parentStrahovkaRowByFK_Avto_Strahovka[0];
  711. }
  712. rowAvtoRow.ItemArray = columnValuesArray;
  713. this.Rows.Add(rowAvtoRow);
  714. return rowAvtoRow;
  715. }
  716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  718. public AvtoRow FindByKod_avto(int Kod_avto) {
  719. return ((AvtoRow)(this.Rows.Find(new object[] {
  720. Kod_avto})));
  721. }
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  724. public override global::System.Data.DataTable Clone() {
  725. AvtoDataTable cln = ((AvtoDataTable)(base.Clone()));
  726. cln.InitVars();
  727. return cln;
  728. }
  729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  731. protected override global::System.Data.DataTable CreateInstance() {
  732. return new AvtoDataTable();
  733. }
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  736. internal void InitVars() {
  737. this.columnKod_avto = base.Columns["Kod avto"];
  738. this.columnModel_avto = base.Columns["Model avto"];
  739. this.columnCvet_avto = base.Columns["Cvet avto"];
  740. this.columnGod_vipyska_avto = base.Columns["God vipyska avto"];
  741. this.columnGos_nomer_avto = base.Columns["Gos nomer avto"];
  742. this.columnstrahovaya_stoimost_avto = base.Columns["strahovaya stoimost avto"];
  743. this.columnKod_strahovki = base.Columns["Kod strahovki"];
  744. }
  745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  747. private void InitClass() {
  748. this.columnKod_avto = new global::System.Data.DataColumn("Kod avto", typeof(int), null, global::System.Data.MappingType.Element);
  749. base.Columns.Add(this.columnKod_avto);
  750. this.columnModel_avto = new global::System.Data.DataColumn("Model avto", typeof(string), null, global::System.Data.MappingType.Element);
  751. base.Columns.Add(this.columnModel_avto);
  752. this.columnCvet_avto = new global::System.Data.DataColumn("Cvet avto", typeof(string), null, global::System.Data.MappingType.Element);
  753. base.Columns.Add(this.columnCvet_avto);
  754. this.columnGod_vipyska_avto = new global::System.Data.DataColumn("God vipyska avto", typeof(string), null, global::System.Data.MappingType.Element);
  755. base.Columns.Add(this.columnGod_vipyska_avto);
  756. this.columnGos_nomer_avto = new global::System.Data.DataColumn("Gos nomer avto", typeof(string), null, global::System.Data.MappingType.Element);
  757. base.Columns.Add(this.columnGos_nomer_avto);
  758. this.columnstrahovaya_stoimost_avto = new global::System.Data.DataColumn("strahovaya stoimost avto", typeof(decimal), null, global::System.Data.MappingType.Element);
  759. base.Columns.Add(this.columnstrahovaya_stoimost_avto);
  760. this.columnKod_strahovki = new global::System.Data.DataColumn("Kod strahovki", typeof(int), null, global::System.Data.MappingType.Element);
  761. base.Columns.Add(this.columnKod_strahovki);
  762. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  763. this.columnKod_avto}, true));
  764. this.columnKod_avto.AutoIncrement = true;
  765. this.columnKod_avto.AutoIncrementSeed = -1;
  766. this.columnKod_avto.AutoIncrementStep = -1;
  767. this.columnKod_avto.AllowDBNull = false;
  768. this.columnKod_avto.ReadOnly = true;
  769. this.columnKod_avto.Unique = true;
  770. this.columnModel_avto.AllowDBNull = false;
  771. this.columnModel_avto.MaxLength = 50;
  772. this.columnCvet_avto.AllowDBNull = false;
  773. this.columnCvet_avto.MaxLength = 50;
  774. this.columnGod_vipyska_avto.AllowDBNull = false;
  775. this.columnGod_vipyska_avto.MaxLength = 50;
  776. this.columnGos_nomer_avto.AllowDBNull = false;
  777. this.columnGos_nomer_avto.MaxLength = 50;
  778. this.columnstrahovaya_stoimost_avto.AllowDBNull = false;
  779. }
  780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  782. public AvtoRow NewAvtoRow() {
  783. return ((AvtoRow)(this.NewRow()));
  784. }
  785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  787. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  788. return new AvtoRow(builder);
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. protected override global::System.Type GetRowType() {
  793. return typeof(AvtoRow);
  794. }
  795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  797. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  798. base.OnRowChanged(e);
  799. if ((this.AvtoRowChanged != null)) {
  800. this.AvtoRowChanged(this, new AvtoRowChangeEvent(((AvtoRow)(e.Row)), e.Action));
  801. }
  802. }
  803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  805. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  806. base.OnRowChanging(e);
  807. if ((this.AvtoRowChanging != null)) {
  808. this.AvtoRowChanging(this, new AvtoRowChangeEvent(((AvtoRow)(e.Row)), e.Action));
  809. }
  810. }
  811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  813. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  814. base.OnRowDeleted(e);
  815. if ((this.AvtoRowDeleted != null)) {
  816. this.AvtoRowDeleted(this, new AvtoRowChangeEvent(((AvtoRow)(e.Row)), e.Action));
  817. }
  818. }
  819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  821. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  822. base.OnRowDeleting(e);
  823. if ((this.AvtoRowDeleting != null)) {
  824. this.AvtoRowDeleting(this, new AvtoRowChangeEvent(((AvtoRow)(e.Row)), e.Action));
  825. }
  826. }
  827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  829. public void RemoveAvtoRow(AvtoRow row) {
  830. this.Rows.Remove(row);
  831. }
  832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  834. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  835. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  836. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  837. Prokatavto06DataSet ds = new Prokatavto06DataSet();
  838. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  839. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  840. any1.MinOccurs = new decimal(0);
  841. any1.MaxOccurs = decimal.MaxValue;
  842. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  843. sequence.Items.Add(any1);
  844. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  845. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  846. any2.MinOccurs = new decimal(1);
  847. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  848. sequence.Items.Add(any2);
  849. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  850. attribute1.Name = "namespace";
  851. attribute1.FixedValue = ds.Namespace;
  852. type.Attributes.Add(attribute1);
  853. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  854. attribute2.Name = "tableTypeName";
  855. attribute2.FixedValue = "AvtoDataTable";
  856. type.Attributes.Add(attribute2);
  857. type.Particle = sequence;
  858. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  859. if (xs.Contains(dsSchema.TargetNamespace)) {
  860. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  861. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  862. try {
  863. global::System.Xml.Schema.XmlSchema schema = null;
  864. dsSchema.Write(s1);
  865. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  866. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  867. s2.SetLength(0);
  868. schema.Write(s2);
  869. if ((s1.Length == s2.Length)) {
  870. s1.Position = 0;
  871. s2.Position = 0;
  872. for (; ((s1.Position != s1.Length)
  873. && (s1.ReadByte() == s2.ReadByte())); ) {
  874. ;
  875. }
  876. if ((s1.Position == s1.Length)) {
  877. return type;
  878. }
  879. }
  880. }
  881. }
  882. finally {
  883. if ((s1 != null)) {
  884. s1.Close();
  885. }
  886. if ((s2 != null)) {
  887. s2.Close();
  888. }
  889. }
  890. }
  891. xs.Add(dsSchema);
  892. return type;
  893. }
  894. }
  895. /// <summary>
  896. ///Represents the strongly named DataTable class.
  897. ///</summary>
  898. [global::System.Serializable()]
  899. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  900. public partial class KlientDataTable : global::System.Data.TypedTableBase<KlientRow> {
  901. private global::System.Data.DataColumn columnKod_klienta;
  902. private global::System.Data.DataColumn columnFIO_klienta;
  903. private global::System.Data.DataColumn columnSeria_pasporta;
  904. private global::System.Data.DataColumn columnNomer_pasporta;
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  907. public KlientDataTable() {
  908. this.TableName = "Klient";
  909. this.BeginInit();
  910. this.InitClass();
  911. this.EndInit();
  912. }
  913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  915. internal KlientDataTable(global::System.Data.DataTable table) {
  916. this.TableName = table.TableName;
  917. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  918. this.CaseSensitive = table.CaseSensitive;
  919. }
  920. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  921. this.Locale = table.Locale;
  922. }
  923. if ((table.Namespace != table.DataSet.Namespace)) {
  924. this.Namespace = table.Namespace;
  925. }
  926. this.Prefix = table.Prefix;
  927. this.MinimumCapacity = table.MinimumCapacity;
  928. }
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  931. protected KlientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  932. base(info, context) {
  933. this.InitVars();
  934. }
  935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  937. public global::System.Data.DataColumn Kod_klientaColumn {
  938. get {
  939. return this.columnKod_klienta;
  940. }
  941. }
  942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  944. public global::System.Data.DataColumn FIO_klientaColumn {
  945. get {
  946. return this.columnFIO_klienta;
  947. }
  948. }
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  951. public global::System.Data.DataColumn Seria_pasportaColumn {
  952. get {
  953. return this.columnSeria_pasporta;
  954. }
  955. }
  956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  958. public global::System.Data.DataColumn Nomer_pasportaColumn {
  959. get {
  960. return this.columnNomer_pasporta;
  961. }
  962. }
  963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  965. [global::System.ComponentModel.Browsable(false)]
  966. public int Count {
  967. get {
  968. return this.Rows.Count;
  969. }
  970. }
  971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  973. public KlientRow this[int index] {
  974. get {
  975. return ((KlientRow)(this.Rows[index]));
  976. }
  977. }
  978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  979. public event KlientRowChangeEventHandler KlientRowChanging;
  980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  981. public event KlientRowChangeEventHandler KlientRowChanged;
  982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  983. public event KlientRowChangeEventHandler KlientRowDeleting;
  984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  985. public event KlientRowChangeEventHandler KlientRowDeleted;
  986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  988. public void AddKlientRow(KlientRow row) {
  989. this.Rows.Add(row);
  990. }
  991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  993. public KlientRow AddKlientRow(string FIO_klienta, string Seria_pasporta, string Nomer_pasporta) {
  994. KlientRow rowKlientRow = ((KlientRow)(this.NewRow()));
  995. object[] columnValuesArray = new object[] {
  996. null,
  997. FIO_klienta,
  998. Seria_pasporta,
  999. Nomer_pasporta};
  1000. rowKlientRow.ItemArray = columnValuesArray;
  1001. this.Rows.Add(rowKlientRow);
  1002. return rowKlientRow;
  1003. }
  1004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1006. public KlientRow FindByKod_klienta(int Kod_klienta) {
  1007. return ((KlientRow)(this.Rows.Find(new object[] {
  1008. Kod_klienta})));
  1009. }
  1010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1012. public override global::System.Data.DataTable Clone() {
  1013. KlientDataTable cln = ((KlientDataTable)(base.Clone()));
  1014. cln.InitVars();
  1015. return cln;
  1016. }
  1017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1019. protected override global::System.Data.DataTable CreateInstance() {
  1020. return new KlientDataTable();
  1021. }
  1022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1024. internal void InitVars() {
  1025. this.columnKod_klienta = base.Columns["Kod klienta"];
  1026. this.columnFIO_klienta = base.Columns["FIO klienta"];
  1027. this.columnSeria_pasporta = base.Columns["Seria pasporta"];
  1028. this.columnNomer_pasporta = base.Columns["Nomer pasporta"];
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1032. private void InitClass() {
  1033. this.columnKod_klienta = new global::System.Data.DataColumn("Kod klienta", typeof(int), null, global::System.Data.MappingType.Element);
  1034. base.Columns.Add(this.columnKod_klienta);
  1035. this.columnFIO_klienta = new global::System.Data.DataColumn("FIO klienta", typeof(string), null, global::System.Data.MappingType.Element);
  1036. base.Columns.Add(this.columnFIO_klienta);
  1037. this.columnSeria_pasporta = new global::System.Data.DataColumn("Seria pasporta", typeof(string), null, global::System.Data.MappingType.Element);
  1038. base.Columns.Add(this.columnSeria_pasporta);
  1039. this.columnNomer_pasporta = new global::System.Data.DataColumn("Nomer pasporta", typeof(string), null, global::System.Data.MappingType.Element);
  1040. base.Columns.Add(this.columnNomer_pasporta);
  1041. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1042. this.columnKod_klienta}, true));
  1043. this.columnKod_klienta.AutoIncrement = true;
  1044. this.columnKod_klienta.AutoIncrementSeed = -1;
  1045. this.columnKod_klienta.AutoIncrementStep = -1;
  1046. this.columnKod_klienta.AllowDBNull = false;
  1047. this.columnKod_klienta.ReadOnly = true;
  1048. this.columnKod_klienta.Unique = true;
  1049. this.columnFIO_klienta.AllowDBNull = false;
  1050. this.columnFIO_klienta.MaxLength = 50;
  1051. this.columnSeria_pasporta.AllowDBNull = false;
  1052. this.columnSeria_pasporta.MaxLength = 50;
  1053. this.columnNomer_pasporta.AllowDBNull = false;
  1054. this.columnNomer_pasporta.MaxLength = 50;
  1055. }
  1056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1058. public KlientRow NewKlientRow() {
  1059. return ((KlientRow)(this.NewRow()));
  1060. }
  1061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1063. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1064. return new KlientRow(builder);
  1065. }
  1066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1068. protected override global::System.Type GetRowType() {
  1069. return typeof(KlientRow);
  1070. }
  1071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1073. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1074. base.OnRowChanged(e);
  1075. if ((this.KlientRowChanged != null)) {
  1076. this.KlientRowChanged(this, new KlientRowChangeEvent(((KlientRow)(e.Row)), e.Action));
  1077. }
  1078. }
  1079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1081. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1082. base.OnRowChanging(e);
  1083. if ((this.KlientRowChanging != null)) {
  1084. this.KlientRowChanging(this, new KlientRowChangeEvent(((KlientRow)(e.Row)), e.Action));
  1085. }
  1086. }
  1087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1089. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1090. base.OnRowDeleted(e);
  1091. if ((this.KlientRowDeleted != null)) {
  1092. this.KlientRowDeleted(this, new KlientRowChangeEvent(((KlientRow)(e.Row)), e.Action));
  1093. }
  1094. }
  1095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1097. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1098. base.OnRowDeleting(e);
  1099. if ((this.KlientRowDeleting != null)) {
  1100. this.KlientRowDeleting(this, new KlientRowChangeEvent(((KlientRow)(e.Row)), e.Action));
  1101. }
  1102. }
  1103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1105. public void RemoveKlientRow(KlientRow row) {
  1106. this.Rows.Remove(row);
  1107. }
  1108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1110. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1111. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1112. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1113. Prokatavto06DataSet ds = new Prokatavto06DataSet();
  1114. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1115. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1116. any1.MinOccurs = new decimal(0);
  1117. any1.MaxOccurs = decimal.MaxValue;
  1118. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1119. sequence.Items.Add(any1);
  1120. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1121. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1122. any2.MinOccurs = new decimal(1);
  1123. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1124. sequence.Items.Add(any2);
  1125. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1126. attribute1.Name = "namespace";
  1127. attribute1.FixedValue = ds.Namespace;
  1128. type.Attributes.Add(attribute1);
  1129. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1130. attribute2.Name = "tableTypeName";
  1131. attribute2.FixedValue = "KlientDataTable";
  1132. type.Attributes.Add(attribute2);
  1133. type.Particle = sequence;
  1134. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1135. if (xs.Contains(dsSchema.TargetNamespace)) {
  1136. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1137. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1138. try {
  1139. global::System.Xml.Schema.XmlSchema schema = null;
  1140. dsSchema.Write(s1);
  1141. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1142. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1143. s2.SetLength(0);
  1144. schema.Write(s2);
  1145. if ((s1.Length == s2.Length)) {
  1146. s1.Position = 0;
  1147. s2.Position = 0;
  1148. for (; ((s1.Position != s1.Length)
  1149. && (s1.ReadByte() == s2.ReadByte())); ) {
  1150. ;
  1151. }
  1152. if ((s1.Position == s1.Length)) {
  1153. return type;
  1154. }
  1155. }
  1156. }
  1157. }
  1158. finally {
  1159. if ((s1 != null)) {
  1160. s1.Close();
  1161. }
  1162. if ((s2 != null)) {
  1163. s2.Close();
  1164. }
  1165. }
  1166. }
  1167. xs.Add(dsSchema);
  1168. return type;
  1169. }
  1170. }
  1171. /// <summary>
  1172. ///Represents the strongly named DataTable class.
  1173. ///</summary>
  1174. [global::System.Serializable()]
  1175. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1176. public partial class ProkatDataTable : global::System.Data.TypedTableBase<ProkatRow> {
  1177. private global::System.Data.DataColumn columnKod_prokata;
  1178. private global::System.Data.DataColumn columnStoimost_odnogo_dnya_prokata;
  1179. private global::System.Data.DataColumn columnData_nachala_prokata;
  1180. private global::System.Data.DataColumn columnKolichestvo_dnei_prokata;
  1181. private global::System.Data.DataColumn columnKod_klienta;
  1182. private global::System.Data.DataColumn columnKod_avto;
  1183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1185. public ProkatDataTable() {
  1186. this.TableName = "Prokat";
  1187. this.BeginInit();
  1188. this.InitClass();
  1189. this.EndInit();
  1190. }
  1191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1193. internal ProkatDataTable(global::System.Data.DataTable table) {
  1194. this.TableName = table.TableName;
  1195. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1196. this.CaseSensitive = table.CaseSensitive;
  1197. }
  1198. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1199. this.Locale = table.Locale;
  1200. }
  1201. if ((table.Namespace != table.DataSet.Namespace)) {
  1202. this.Namespace = table.Namespace;
  1203. }
  1204. this.Prefix = table.Prefix;
  1205. this.MinimumCapacity = table.MinimumCapacity;
  1206. }
  1207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1209. protected ProkatDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1210. base(info, context) {
  1211. this.InitVars();
  1212. }
  1213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1215. public global::System.Data.DataColumn Kod_prokataColumn {
  1216. get {
  1217. return this.columnKod_prokata;
  1218. }
  1219. }
  1220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1222. public global::System.Data.DataColumn Stoimost_odnogo_dnya_prokataColumn {
  1223. get {
  1224. return this.columnStoimost_odnogo_dnya_prokata;
  1225. }
  1226. }
  1227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1229. public global::System.Data.DataColumn Data_nachala_prokataColumn {
  1230. get {
  1231. return this.columnData_nachala_prokata;
  1232. }
  1233. }
  1234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1236. public global::System.Data.DataColumn Kolichestvo_dnei_prokataColumn {
  1237. get {
  1238. return this.columnKolichestvo_dnei_prokata;
  1239. }
  1240. }
  1241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1243. public global::System.Data.DataColumn Kod_klientaColumn {
  1244. get {
  1245. return this.columnKod_klienta;
  1246. }
  1247. }
  1248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1250. public global::System.Data.DataColumn Kod_avtoColumn {
  1251. get {
  1252. return this.columnKod_avto;
  1253. }
  1254. }
  1255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1257. [global::System.ComponentModel.Browsable(false)]
  1258. public int Count {
  1259. get {
  1260. return this.Rows.Count;
  1261. }
  1262. }
  1263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1265. public ProkatRow this[int index] {
  1266. get {
  1267. return ((ProkatRow)(this.Rows[index]));
  1268. }
  1269. }
  1270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1271. public event ProkatRowChangeEventHandler ProkatRowChanging;
  1272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1273. public event ProkatRowChangeEventHandler ProkatRowChanged;
  1274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1275. public event ProkatRowChangeEventHandler ProkatRowDeleting;
  1276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1277. public event ProkatRowChangeEventHandler ProkatRowDeleted;
  1278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1280. public void AddProkatRow(ProkatRow row) {
  1281. this.Rows.Add(row);
  1282. }
  1283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1285. public ProkatRow AddProkatRow(decimal Stoimost_odnogo_dnya_prokata, System.DateTime Data_nachala_prokata, string Kolichestvo_dnei_prokata, KlientRow parentKlientRowByFK_Prokat_Klient, AvtoRow parentAvtoRowByFK_Prokat_Avto) {
  1286. ProkatRow rowProkatRow = ((ProkatRow)(this.NewRow()));
  1287. object[] columnValuesArray = new object[] {
  1288. null,
  1289. Stoimost_odnogo_dnya_prokata,
  1290. Data_nachala_prokata,
  1291. Kolichestvo_dnei_prokata,
  1292. null,
  1293. null};
  1294. if ((parentKlientRowByFK_Prokat_Klient != null)) {
  1295. columnValuesArray[4] = parentKlientRowByFK_Prokat_Klient[0];
  1296. }
  1297. if ((parentAvtoRowByFK_Prokat_Avto != null)) {
  1298. columnValuesArray[5] = parentAvtoRowByFK_Prokat_Avto[0];
  1299. }
  1300. rowProkatRow.ItemArray = columnValuesArray;
  1301. this.Rows.Add(rowProkatRow);
  1302. return rowProkatRow;
  1303. }
  1304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1306. public ProkatRow FindByKod_prokata(int Kod_prokata) {
  1307. return ((ProkatRow)(this.Rows.Find(new object[] {
  1308. Kod_prokata})));
  1309. }
  1310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1312. public override global::System.Data.DataTable Clone() {
  1313. ProkatDataTable cln = ((ProkatDataTable)(base.Clone()));
  1314. cln.InitVars();
  1315. return cln;
  1316. }
  1317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1319. protected override global::System.Data.DataTable CreateInstance() {
  1320. return new ProkatDataTable();
  1321. }
  1322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1324. internal void InitVars() {
  1325. this.columnKod_prokata = base.Columns["Kod prokata"];
  1326. this.columnStoimost_odnogo_dnya_prokata = base.Columns["Stoimost odnogo dnya prokata"];
  1327. this.columnData_nachala_prokata = base.Columns["Data nachala prokata"];
  1328. this.columnKolichestvo_dnei_prokata = base.Columns["Kolichestvo dnei prokata"];
  1329. this.columnKod_klienta = base.Columns["Kod klienta"];
  1330. this.columnKod_avto = base.Columns["Kod avto"];
  1331. }
  1332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1334. private void InitClass() {
  1335. this.columnKod_prokata = new global::System.Data.DataColumn("Kod prokata", typeof(int), null, global::System.Data.MappingType.Element);
  1336. base.Columns.Add(this.columnKod_prokata);
  1337. this.columnStoimost_odnogo_dnya_prokata = new global::System.Data.DataColumn("Stoimost odnogo dnya prokata", typeof(decimal), null, global::System.Data.MappingType.Element);
  1338. base.Columns.Add(this.columnStoimost_odnogo_dnya_prokata);
  1339. this.columnData_nachala_prokata = new global::System.Data.DataColumn("Data nachala prokata", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1340. base.Columns.Add(this.columnData_nachala_prokata);
  1341. this.columnKolichestvo_dnei_prokata = new global::System.Data.DataColumn("Kolichestvo dnei prokata", typeof(string), null, global::System.Data.MappingType.Element);
  1342. base.Columns.Add(this.columnKolichestvo_dnei_prokata);
  1343. this.columnKod_klienta = new global::System.Data.DataColumn("Kod klienta", typeof(int), null, global::System.Data.MappingType.Element);
  1344. base.Columns.Add(this.columnKod_klienta);
  1345. this.columnKod_avto = new global::System.Data.DataColumn("Kod avto", typeof(int), null, global::System.Data.MappingType.Element);
  1346. base.Columns.Add(this.columnKod_avto);
  1347. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1348. this.columnKod_prokata}, true));
  1349. this.columnKod_prokata.AutoIncrement = true;
  1350. this.columnKod_prokata.AutoIncrementSeed = -1;
  1351. this.columnKod_prokata.AutoIncrementStep = -1;
  1352. this.columnKod_prokata.AllowDBNull = false;
  1353. this.columnKod_prokata.ReadOnly = true;
  1354. this.columnKod_prokata.Unique = true;
  1355. this.columnStoimost_odnogo_dnya_prokata.AllowDBNull = false;
  1356. this.columnData_nachala_prokata.AllowDBNull = false;
  1357. this.columnKolichestvo_dnei_prokata.AllowDBNull = false;
  1358. this.columnKolichestvo_dnei_prokata.MaxLength = 50;
  1359. this.columnKod_klienta.AllowDBNull = false;
  1360. this.columnKod_avto.AllowDBNull = false;
  1361. }
  1362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1364. public ProkatRow NewProkatRow() {
  1365. return ((ProkatRow)(this.NewRow()));
  1366. }
  1367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1369. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1370. return new ProkatRow(builder);
  1371. }
  1372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1374. protected override global::System.Type GetRowType() {
  1375. return typeof(ProkatRow);
  1376. }
  1377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1379. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1380. base.OnRowChanged(e);
  1381. if ((this.ProkatRowChanged != null)) {
  1382. this.ProkatRowChanged(this, new ProkatRowChangeEvent(((ProkatRow)(e.Row)), e.Action));
  1383. }
  1384. }
  1385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1387. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1388. base.OnRowChanging(e);
  1389. if ((this.ProkatRowChanging != null)) {
  1390. this.ProkatRowChanging(this, new ProkatRowChangeEvent(((ProkatRow)(e.Row)), e.Action));
  1391. }
  1392. }
  1393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1395. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1396. base.OnRowDeleted(e);
  1397. if ((this.ProkatRowDeleted != null)) {
  1398. this.ProkatRowDeleted(this, new ProkatRowChangeEvent(((ProkatRow)(e.Row)), e.Action));
  1399. }
  1400. }
  1401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1403. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1404. base.OnRowDeleting(e);
  1405. if ((this.ProkatRowDeleting != null)) {
  1406. this.ProkatRowDeleting(this, new ProkatRowChangeEvent(((ProkatRow)(e.Row)), e.Action));
  1407. }
  1408. }
  1409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1411. public void RemoveProkatRow(ProkatRow row) {
  1412. this.Rows.Remove(row);
  1413. }
  1414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1416. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1417. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1418. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1419. Prokatavto06DataSet ds = new Prokatavto06DataSet();
  1420. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1421. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1422. any1.MinOccurs = new decimal(0);
  1423. any1.MaxOccurs = decimal.MaxValue;
  1424. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1425. sequence.Items.Add(any1);
  1426. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1427. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1428. any2.MinOccurs = new decimal(1);
  1429. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1430. sequence.Items.Add(any2);
  1431. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1432. attribute1.Name = "namespace";
  1433. attribute1.FixedValue = ds.Namespace;
  1434. type.Attributes.Add(attribute1);
  1435. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1436. attribute2.Name = "tableTypeName";
  1437. attribute2.FixedValue = "ProkatDataTable";
  1438. type.Attributes.Add(attribute2);
  1439. type.Particle = sequence;
  1440. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1441. if (xs.Contains(dsSchema.TargetNamespace)) {
  1442. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1443. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1444. try {
  1445. global::System.Xml.Schema.XmlSchema schema = null;
  1446. dsSchema.Write(s1);
  1447. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1448. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1449. s2.SetLength(0);
  1450. schema.Write(s2);
  1451. if ((s1.Length == s2.Length)) {
  1452. s1.Position = 0;
  1453. s2.Position = 0;
  1454. for (; ((s1.Position != s1.Length)
  1455. && (s1.ReadByte() == s2.ReadByte())); ) {
  1456. ;
  1457. }
  1458. if ((s1.Position == s1.Length)) {
  1459. return type;
  1460. }
  1461. }
  1462. }
  1463. }
  1464. finally {
  1465. if ((s1 != null)) {
  1466. s1.Close();
  1467. }
  1468. if ((s2 != null)) {
  1469. s2.Close();
  1470. }
  1471. }
  1472. }
  1473. xs.Add(dsSchema);
  1474. return type;
  1475. }
  1476. }
  1477. /// <summary>
  1478. ///Represents the strongly named DataTable class.
  1479. ///</summary>
  1480. [global::System.Serializable()]
  1481. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1482. public partial class StrahovkaDataTable : global::System.Data.TypedTableBase<StrahovkaRow> {
  1483. private global::System.Data.DataColumn columnKod_strahovki;
  1484. private global::System.Data.DataColumn columnStrahovoi_vznos;
  1485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1487. public StrahovkaDataTable() {
  1488. this.TableName = "Strahovka";
  1489. this.BeginInit();
  1490. this.InitClass();
  1491. this.EndInit();
  1492. }
  1493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1495. internal StrahovkaDataTable(global::System.Data.DataTable table) {
  1496. this.TableName = table.TableName;
  1497. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1498. this.CaseSensitive = table.CaseSensitive;
  1499. }
  1500. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1501. this.Locale = table.Locale;
  1502. }
  1503. if ((table.Namespace != table.DataSet.Namespace)) {
  1504. this.Namespace = table.Namespace;
  1505. }
  1506. this.Prefix = table.Prefix;
  1507. this.MinimumCapacity = table.MinimumCapacity;
  1508. }
  1509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1511. protected StrahovkaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1512. base(info, context) {
  1513. this.InitVars();
  1514. }
  1515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1517. public global::System.Data.DataColumn Kod_strahovkiColumn {
  1518. get {
  1519. return this.columnKod_strahovki;
  1520. }
  1521. }
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1524. public global::System.Data.DataColumn Strahovoi_vznosColumn {
  1525. get {
  1526. return this.columnStrahovoi_vznos;
  1527. }
  1528. }
  1529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1531. [global::System.ComponentModel.Browsable(false)]
  1532. public int Count {
  1533. get {
  1534. return this.Rows.Count;
  1535. }
  1536. }
  1537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1539. public StrahovkaRow this[int index] {
  1540. get {
  1541. return ((StrahovkaRow)(this.Rows[index]));
  1542. }
  1543. }
  1544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1545. public event StrahovkaRowChangeEventHandler StrahovkaRowChanging;
  1546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1547. public event StrahovkaRowChangeEventHandler StrahovkaRowChanged;
  1548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1549. public event StrahovkaRowChangeEventHandler StrahovkaRowDeleting;
  1550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1551. public event StrahovkaRowChangeEventHandler StrahovkaRowDeleted;
  1552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1554. public void AddStrahovkaRow(StrahovkaRow row) {
  1555. this.Rows.Add(row);
  1556. }
  1557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1559. public StrahovkaRow AddStrahovkaRow(decimal Strahovoi_vznos) {
  1560. StrahovkaRow rowStrahovkaRow = ((StrahovkaRow)(this.NewRow()));
  1561. object[] columnValuesArray = new object[] {
  1562. null,
  1563. Strahovoi_vznos};
  1564. rowStrahovkaRow.ItemArray = columnValuesArray;
  1565. this.Rows.Add(rowStrahovkaRow);
  1566. return rowStrahovkaRow;
  1567. }
  1568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1570. public StrahovkaRow FindByKod_strahovki(int Kod_strahovki) {
  1571. return ((StrahovkaRow)(this.Rows.Find(new object[] {
  1572. Kod_strahovki})));
  1573. }
  1574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1576. public override global::System.Data.DataTable Clone() {
  1577. StrahovkaDataTable cln = ((StrahovkaDataTable)(base.Clone()));
  1578. cln.InitVars();
  1579. return cln;
  1580. }
  1581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1583. protected override global::System.Data.DataTable CreateInstance() {
  1584. return new StrahovkaDataTable();
  1585. }
  1586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1588. internal void InitVars() {
  1589. this.columnKod_strahovki = base.Columns["Kod strahovki"];
  1590. this.columnStrahovoi_vznos = base.Columns["Strahovoi vznos"];
  1591. }
  1592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1594. private void InitClass() {
  1595. this.columnKod_strahovki = new global::System.Data.DataColumn("Kod strahovki", typeof(int), null, global::System.Data.MappingType.Element);
  1596. base.Columns.Add(this.columnKod_strahovki);
  1597. this.columnStrahovoi_vznos = new global::System.Data.DataColumn("Strahovoi vznos", typeof(decimal), null, global::System.Data.MappingType.Element);
  1598. base.Columns.Add(this.columnStrahovoi_vznos);
  1599. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1600. this.columnKod_strahovki}, true));
  1601. this.columnKod_strahovki.AutoIncrement = true;
  1602. this.columnKod_strahovki.AutoIncrementSeed = -1;
  1603. this.columnKod_strahovki.AutoIncrementStep = -1;
  1604. this.columnKod_strahovki.AllowDBNull = false;
  1605. this.columnKod_strahovki.ReadOnly = true;
  1606. this.columnKod_strahovki.Unique = true;
  1607. this.columnStrahovoi_vznos.AllowDBNull = false;
  1608. }
  1609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1611. public StrahovkaRow NewStrahovkaRow() {
  1612. return ((StrahovkaRow)(this.NewRow()));
  1613. }
  1614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1616. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1617. return new StrahovkaRow(builder);
  1618. }
  1619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1621. protected override global::System.Type GetRowType() {
  1622. return typeof(StrahovkaRow);
  1623. }
  1624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1626. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1627. base.OnRowChanged(e);
  1628. if ((this.StrahovkaRowChanged != null)) {
  1629. this.StrahovkaRowChanged(this, new StrahovkaRowChangeEvent(((StrahovkaRow)(e.Row)), e.Action));
  1630. }
  1631. }
  1632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1634. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1635. base.OnRowChanging(e);
  1636. if ((this.StrahovkaRowChanging != null)) {
  1637. this.StrahovkaRowChanging(this, new StrahovkaRowChangeEvent(((StrahovkaRow)(e.Row)), e.Action));
  1638. }
  1639. }
  1640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1642. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1643. base.OnRowDeleted(e);
  1644. if ((this.StrahovkaRowDeleted != null)) {
  1645. this.StrahovkaRowDeleted(this, new StrahovkaRowChangeEvent(((StrahovkaRow)(e.Row)), e.Action));
  1646. }
  1647. }
  1648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1650. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1651. base.OnRowDeleting(e);
  1652. if ((this.StrahovkaRowDeleting != null)) {
  1653. this.StrahovkaRowDeleting(this, new StrahovkaRowChangeEvent(((StrahovkaRow)(e.Row)), e.Action));
  1654. }
  1655. }
  1656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1658. public void RemoveStrahovkaRow(StrahovkaRow row) {
  1659. this.Rows.Remove(row);
  1660. }
  1661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1663. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1664. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1665. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1666. Prokatavto06DataSet ds = new Prokatavto06DataSet();
  1667. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1668. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1669. any1.MinOccurs = new decimal(0);
  1670. any1.MaxOccurs = decimal.MaxValue;
  1671. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1672. sequence.Items.Add(any1);
  1673. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1674. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1675. any2.MinOccurs = new decimal(1);
  1676. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1677. sequence.Items.Add(any2);
  1678. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1679. attribute1.Name = "namespace";
  1680. attribute1.FixedValue = ds.Namespace;
  1681. type.Attributes.Add(attribute1);
  1682. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1683. attribute2.Name = "tableTypeName";
  1684. attribute2.FixedValue = "StrahovkaDataTable";
  1685. type.Attributes.Add(attribute2);
  1686. type.Particle = sequence;
  1687. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1688. if (xs.Contains(dsSchema.TargetNamespace)) {
  1689. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1690. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1691. try {
  1692. global::System.Xml.Schema.XmlSchema schema = null;
  1693. dsSchema.Write(s1);
  1694. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1695. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1696. s2.SetLength(0);
  1697. schema.Write(s2);
  1698. if ((s1.Length == s2.Length)) {
  1699. s1.Position = 0;
  1700. s2.Position = 0;
  1701. for (; ((s1.Position != s1.Length)
  1702. && (s1.ReadByte() == s2.ReadByte())); ) {
  1703. ;
  1704. }
  1705. if ((s1.Position == s1.Length)) {
  1706. return type;
  1707. }
  1708. }
  1709. }
  1710. }
  1711. finally {
  1712. if ((s1 != null)) {
  1713. s1.Close();
  1714. }
  1715. if ((s2 != null)) {
  1716. s2.Close();
  1717. }
  1718. }
  1719. }
  1720. xs.Add(dsSchema);
  1721. return type;
  1722. }
  1723. }
  1724. /// <summary>
  1725. ///Represents the strongly named DataTable class.
  1726. ///</summary>
  1727. [global::System.Serializable()]
  1728. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1729. public partial class ПредставлениеПрокатDataTable : global::System.Data.TypedTableBase<ПредставлениеПрокатRow> {
  1730. private global::System.Data.DataColumn columnModel_avto;
  1731. private global::System.Data.DataColumn columnGos_nomer_avto;
  1732. private global::System.Data.DataColumn columnFIO_klienta;
  1733. private global::System.Data.DataColumn columnSeria_pasporta;
  1734. private global::System.Data.DataColumn columnNomer_pasporta;
  1735. private global::System.Data.DataColumn columnStoimost_odnogo_dnya_prokata;
  1736. private global::System.Data.DataColumn columnData_nachala_prokata;
  1737. private global::System.Data.DataColumn columnKolichestvo_dnei_prokata;
  1738. private global::System.Data.DataColumn columnДата_окончания_проката;
  1739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1741. public ПредставлениеПрокатDataTable() {
  1742. this.TableName = "ПредставлениеПрокат";
  1743. this.BeginInit();
  1744. this.InitClass();
  1745. this.EndInit();
  1746. }
  1747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1749. internal ПредставлениеПрокатDataTable(global::System.Data.DataTable table) {
  1750. this.TableName = table.TableName;
  1751. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1752. this.CaseSensitive = table.CaseSensitive;
  1753. }
  1754. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1755. this.Locale = table.Locale;
  1756. }
  1757. if ((table.Namespace != table.DataSet.Namespace)) {
  1758. this.Namespace = table.Namespace;
  1759. }
  1760. this.Prefix = table.Prefix;
  1761. this.MinimumCapacity = table.MinimumCapacity;
  1762. }
  1763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1765. protected ПредставлениеПрокатDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1766. base(info, context) {
  1767. this.InitVars();
  1768. }
  1769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1771. public global::System.Data.DataColumn Model_avtoColumn {
  1772. get {
  1773. return this.columnModel_avto;
  1774. }
  1775. }
  1776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1778. public global::System.Data.DataColumn Gos_nomer_avtoColumn {
  1779. get {
  1780. return this.columnGos_nomer_avto;
  1781. }
  1782. }
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1785. public global::System.Data.DataColumn FIO_klientaColumn {
  1786. get {
  1787. return this.columnFIO_klienta;
  1788. }
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1792. public global::System.Data.DataColumn Seria_pasportaColumn {
  1793. get {
  1794. return this.columnSeria_pasporta;
  1795. }
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1799. public global::System.Data.DataColumn Nomer_pasportaColumn {
  1800. get {
  1801. return this.columnNomer_pasporta;
  1802. }
  1803. }
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1806. public global::System.Data.DataColumn Stoimost_odnogo_dnya_prokataColumn {
  1807. get {
  1808. return this.columnStoimost_odnogo_dnya_prokata;
  1809. }
  1810. }
  1811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1813. public global::System.Data.DataColumn Data_nachala_prokataColumn {
  1814. get {
  1815. return this.columnData_nachala_prokata;
  1816. }
  1817. }
  1818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1820. public global::System.Data.DataColumn Kolichestvo_dnei_prokataColumn {
  1821. get {
  1822. return this.columnKolichestvo_dnei_prokata;
  1823. }
  1824. }
  1825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1827. public global::System.Data.DataColumn Дата_окончания_прокатаColumn {
  1828. get {
  1829. return this.columnДата_окончания_проката;
  1830. }
  1831. }
  1832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1834. [global::System.ComponentModel.Browsable(false)]
  1835. public int Count {
  1836. get {
  1837. return this.Rows.Count;
  1838. }
  1839. }
  1840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1842. public ПредставлениеПрокатRow this[int index] {
  1843. get {
  1844. return ((ПредставлениеПрокатRow)(this.Rows[index]));
  1845. }
  1846. }
  1847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1848. public event ПредставлениеПрокатRowChangeEventHandler ПредставлениеПрокатRowChanging;
  1849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1850. public event ПредставлениеПрокатRowChangeEventHandler ПредставлениеПрокатRowChanged;
  1851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1852. public event ПредставлениеПрокатRowChangeEventHandler ПредставлениеПрокатRowDeleting;
  1853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1854. public event ПредставлениеПрокатRowChangeEventHandler ПредставлениеПрокатRowDeleted;
  1855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1857. public void AddПредставлениеПрокатRow(ПредставлениеПрокатRow row) {
  1858. this.Rows.Add(row);
  1859. }
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1862. public ПредставлениеПрокатRow AddПредставлениеПрокатRow(string Model_avto, string Gos_nomer_avto, string FIO_klienta, string Seria_pasporta, string Nomer_pasporta, decimal Stoimost_odnogo_dnya_prokata, System.DateTime Data_nachala_prokata, string Kolichestvo_dnei_prokata, string Дата_окончания_проката) {
  1863. ПредставлениеПрокатRow rowПредставлениеПрокатRow = ((ПредставлениеПрокатRow)(this.NewRow()));
  1864. object[] columnValuesArray = new object[] {
  1865. Model_avto,
  1866. Gos_nomer_avto,
  1867. FIO_klienta,
  1868. Seria_pasporta,
  1869. Nomer_pasporta,
  1870. Stoimost_odnogo_dnya_prokata,
  1871. Data_nachala_prokata,
  1872. Kolichestvo_dnei_prokata,
  1873. Дата_окончания_проката};
  1874. rowПредставлениеПрокатRow.ItemArray = columnValuesArray;
  1875. this.Rows.Add(rowПредставлениеПрокатRow);
  1876. return rowПредставлениеПрокатRow;
  1877. }
  1878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1880. public override global::System.Data.DataTable Clone() {
  1881. ПредставлениеПрокатDataTable cln = ((ПредставлениеПрокатDataTable)(base.Clone()));
  1882. cln.InitVars();
  1883. return cln;
  1884. }
  1885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1887. protected override global::System.Data.DataTable CreateInstance() {
  1888. return new ПредставлениеПрокатDataTable();
  1889. }
  1890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1892. internal void InitVars() {
  1893. this.columnModel_avto = base.Columns["Model avto"];
  1894. this.columnGos_nomer_avto = base.Columns["Gos nomer avto"];
  1895. this.columnFIO_klienta = base.Columns["FIO klienta"];
  1896. this.columnSeria_pasporta = base.Columns["Seria pasporta"];
  1897. this.columnNomer_pasporta = base.Columns["Nomer pasporta"];
  1898. this.columnStoimost_odnogo_dnya_prokata = base.Columns["Stoimost odnogo dnya prokata"];
  1899. this.columnData_nachala_prokata = base.Columns["Data nachala prokata"];
  1900. this.columnKolichestvo_dnei_prokata = base.Columns["Kolichestvo dnei prokata"];
  1901. this.columnДата_окончания_проката = base.Columns["Дата окончания проката"];
  1902. }
  1903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1905. private void InitClass() {
  1906. this.columnModel_avto = new global::System.Data.DataColumn("Model avto", typeof(string), null, global::System.Data.MappingType.Element);
  1907. base.Columns.Add(this.columnModel_avto);
  1908. this.columnGos_nomer_avto = new global::System.Data.DataColumn("Gos nomer avto", typeof(string), null, global::System.Data.MappingType.Element);
  1909. base.Columns.Add(this.columnGos_nomer_avto);
  1910. this.columnFIO_klienta = new global::System.Data.DataColumn("FIO klienta", typeof(string), null, global::System.Data.MappingType.Element);
  1911. base.Columns.Add(this.columnFIO_klienta);
  1912. this.columnSeria_pasporta = new global::System.Data.DataColumn("Seria pasporta", typeof(string), null, global::System.Data.MappingType.Element);
  1913. base.Columns.Add(this.columnSeria_pasporta);
  1914. this.columnNomer_pasporta = new global::System.Data.DataColumn("Nomer pasporta", typeof(string), null, global::System.Data.MappingType.Element);
  1915. base.Columns.Add(this.columnNomer_pasporta);
  1916. this.columnStoimost_odnogo_dnya_prokata = new global::System.Data.DataColumn("Stoimost odnogo dnya prokata", typeof(decimal), null, global::System.Data.MappingType.Element);
  1917. base.Columns.Add(this.columnStoimost_odnogo_dnya_prokata);
  1918. this.columnData_nachala_prokata = new global::System.Data.DataColumn("Data nachala prokata", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1919. base.Columns.Add(this.columnData_nachala_prokata);
  1920. this.columnKolichestvo_dnei_prokata = new global::System.Data.DataColumn("Kolichestvo dnei prokata", typeof(string), null, global::System.Data.MappingType.Element);
  1921. base.Columns.Add(this.columnKolichestvo_dnei_prokata);
  1922. this.columnДата_окончания_проката = new global::System.Data.DataColumn("Дата окончания проката", typeof(string), null, global::System.Data.MappingType.Element);
  1923. base.Columns.Add(this.columnДата_окончания_проката);
  1924. this.columnModel_avto.AllowDBNull = false;
  1925. this.columnModel_avto.MaxLength = 50;
  1926. this.columnGos_nomer_avto.AllowDBNull = false;
  1927. this.columnGos_nomer_avto.MaxLength = 50;
  1928. this.columnFIO_klienta.AllowDBNull = false;
  1929. this.columnFIO_klienta.MaxLength = 50;
  1930. this.columnSeria_pasporta.AllowDBNull = false;
  1931. this.columnSeria_pasporta.MaxLength = 50;
  1932. this.columnNomer_pasporta.AllowDBNull = false;
  1933. this.columnNomer_pasporta.MaxLength = 50;
  1934. this.columnStoimost_odnogo_dnya_prokata.AllowDBNull = false;
  1935. this.columnData_nachala_prokata.AllowDBNull = false;
  1936. this.columnKolichestvo_dnei_prokata.AllowDBNull = false;
  1937. this.columnKolichestvo_dnei_prokata.MaxLength = 50;
  1938. this.columnДата_окончания_проката.ReadOnly = true;
  1939. this.columnДата_окончания_проката.MaxLength = 13;
  1940. }
  1941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1943. public ПредставлениеПрокатRow NewПредставлениеПрокатRow() {
  1944. return ((ПредставлениеПрокатRow)(this.NewRow()));
  1945. }
  1946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1948. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1949. return new ПредставлениеПрокатRow(builder);
  1950. }
  1951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1953. protected override global::System.Type GetRowType() {
  1954. return typeof(ПредставлениеПрокатRow);
  1955. }
  1956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1958. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1959. base.OnRowChanged(e);
  1960. if ((this.ПредставлениеПрокатRowChanged != null)) {
  1961. this.ПредставлениеПрокатRowChanged(this, new ПредставлениеПрокатRowChangeEvent(((ПредставлениеПрокатRow)(e.Row)), e.Action));
  1962. }
  1963. }
  1964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1966. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1967. base.OnRowChanging(e);
  1968. if ((this.ПредставлениеПрокатRowChanging != null)) {
  1969. this.ПредставлениеПрокатRowChanging(this, new ПредставлениеПрокатRowChangeEvent(((ПредставлениеПрокатRow)(e.Row)), e.Action));
  1970. }
  1971. }
  1972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1974. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1975. base.OnRowDeleted(e);
  1976. if ((this.ПредставлениеПрокатRowDeleted != null)) {
  1977. this.ПредставлениеПрокатRowDeleted(this, new ПредставлениеПрокатRowChangeEvent(((ПредставлениеПрокатRow)(e.Row)), e.Action));
  1978. }
  1979. }
  1980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1982. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1983. base.OnRowDeleting(e);
  1984. if ((this.ПредставлениеПрокатRowDeleting != null)) {
  1985. this.ПредставлениеПрокатRowDeleting(this, new ПредставлениеПрокатRowChangeEvent(((ПредставлениеПрокатRow)(e.Row)), e.Action));
  1986. }
  1987. }
  1988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1990. public void RemoveПредставлениеПрокатRow(ПредставлениеПрокатRow row) {
  1991. this.Rows.Remove(row);
  1992. }
  1993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1995. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1996. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1997. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1998. Prokatavto06DataSet ds = new Prokatavto06DataSet();
  1999. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2000. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2001. any1.MinOccurs = new decimal(0);
  2002. any1.MaxOccurs = decimal.MaxValue;
  2003. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2004. sequence.Items.Add(any1);
  2005. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2006. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2007. any2.MinOccurs = new decimal(1);
  2008. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2009. sequence.Items.Add(any2);
  2010. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2011. attribute1.Name = "namespace";
  2012. attribute1.FixedValue = ds.Namespace;
  2013. type.Attributes.Add(attribute1);
  2014. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2015. attribute2.Name = "tableTypeName";
  2016. attribute2.FixedValue = "ПредставлениеПрокатDataTable";
  2017. type.Attributes.Add(attribute2);
  2018. type.Particle = sequence;
  2019. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2020. if (xs.Contains(dsSchema.TargetNamespace)) {
  2021. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2022. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2023. try {
  2024. global::System.Xml.Schema.XmlSchema schema = null;
  2025. dsSchema.Write(s1);
  2026. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2027. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2028. s2.SetLength(0);
  2029. schema.Write(s2);
  2030. if ((s1.Length == s2.Length)) {
  2031. s1.Position = 0;
  2032. s2.Position = 0;
  2033. for (; ((s1.Position != s1.Length)
  2034. && (s1.ReadByte() == s2.ReadByte())); ) {
  2035. ;
  2036. }
  2037. if ((s1.Position == s1.Length)) {
  2038. return type;
  2039. }
  2040. }
  2041. }
  2042. }
  2043. finally {
  2044. if ((s1 != null)) {
  2045. s1.Close();
  2046. }
  2047. if ((s2 != null)) {
  2048. s2.Close();
  2049. }
  2050. }
  2051. }
  2052. xs.Add(dsSchema);
  2053. return type;
  2054. }
  2055. }
  2056. /// <summary>
  2057. ///Represents the strongly named DataTable class.
  2058. ///</summary>
  2059. [global::System.Serializable()]
  2060. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2061. public partial class LOLDataTable : global::System.Data.TypedTableBase<LOLRow> {
  2062. private global::System.Data.DataColumn columnFIO_klienta;
  2063. private global::System.Data.DataColumn columnModel_avto;
  2064. private global::System.Data.DataColumn columnGos_nomer_avto;
  2065. private global::System.Data.DataColumn columnData_nachala_prokata;
  2066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2068. public LOLDataTable() {
  2069. this.TableName = "LOL";
  2070. this.BeginInit();
  2071. this.InitClass();
  2072. this.EndInit();
  2073. }
  2074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2076. internal LOLDataTable(global::System.Data.DataTable table) {
  2077. this.TableName = table.TableName;
  2078. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2079. this.CaseSensitive = table.CaseSensitive;
  2080. }
  2081. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2082. this.Locale = table.Locale;
  2083. }
  2084. if ((table.Namespace != table.DataSet.Namespace)) {
  2085. this.Namespace = table.Namespace;
  2086. }
  2087. this.Prefix = table.Prefix;
  2088. this.MinimumCapacity = table.MinimumCapacity;
  2089. }
  2090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2092. protected LOLDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2093. base(info, context) {
  2094. this.InitVars();
  2095. }
  2096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2098. public global::System.Data.DataColumn FIO_klientaColumn {
  2099. get {
  2100. return this.columnFIO_klienta;
  2101. }
  2102. }
  2103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2105. public global::System.Data.DataColumn Model_avtoColumn {
  2106. get {
  2107. return this.columnModel_avto;
  2108. }
  2109. }
  2110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2112. public global::System.Data.DataColumn Gos_nomer_avtoColumn {
  2113. get {
  2114. return this.columnGos_nomer_avto;
  2115. }
  2116. }
  2117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2119. public global::System.Data.DataColumn Data_nachala_prokataColumn {
  2120. get {
  2121. return this.columnData_nachala_prokata;
  2122. }
  2123. }
  2124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2126. [global::System.ComponentModel.Browsable(false)]
  2127. public int Count {
  2128. get {
  2129. return this.Rows.Count;
  2130. }
  2131. }
  2132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2134. public LOLRow this[int index] {
  2135. get {
  2136. return ((LOLRow)(this.Rows[index]));
  2137. }
  2138. }
  2139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2140. public event LOLRowChangeEventHandler LOLRowChanging;
  2141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2142. public event LOLRowChangeEventHandler LOLRowChanged;
  2143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2144. public event LOLRowChangeEventHandler LOLRowDeleting;
  2145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2146. public event LOLRowChangeEventHandler LOLRowDeleted;
  2147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2149. public void AddLOLRow(LOLRow row) {
  2150. this.Rows.Add(row);
  2151. }
  2152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2154. public LOLRow AddLOLRow(string FIO_klienta, string Model_avto, string Gos_nomer_avto, System.DateTime Data_nachala_prokata) {
  2155. LOLRow rowLOLRow = ((LOLRow)(this.NewRow()));
  2156. object[] columnValuesArray = new object[] {
  2157. FIO_klienta,
  2158. Model_avto,
  2159. Gos_nomer_avto,
  2160. Data_nachala_prokata};
  2161. rowLOLRow.ItemArray = columnValuesArray;
  2162. this.Rows.Add(rowLOLRow);
  2163. return rowLOLRow;
  2164. }
  2165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2167. public override global::System.Data.DataTable Clone() {
  2168. LOLDataTable cln = ((LOLDataTable)(base.Clone()));
  2169. cln.InitVars();
  2170. return cln;
  2171. }
  2172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2174. protected override global::System.Data.DataTable CreateInstance() {
  2175. return new LOLDataTable();
  2176. }
  2177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2179. internal void InitVars() {
  2180. this.columnFIO_klienta = base.Columns["FIO klienta"];
  2181. this.columnModel_avto = base.Columns["Model avto"];
  2182. this.columnGos_nomer_avto = base.Columns["Gos nomer avto"];
  2183. this.columnData_nachala_prokata = base.Columns["Data nachala prokata"];
  2184. }
  2185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2187. private void InitClass() {
  2188. this.columnFIO_klienta = new global::System.Data.DataColumn("FIO klienta", typeof(string), null, global::System.Data.MappingType.Element);
  2189. base.Columns.Add(this.columnFIO_klienta);
  2190. this.columnModel_avto = new global::System.Data.DataColumn("Model avto", typeof(string), null, global::System.Data.MappingType.Element);
  2191. base.Columns.Add(this.columnModel_avto);
  2192. this.columnGos_nomer_avto = new global::System.Data.DataColumn("Gos nomer avto", typeof(string), null, global::System.Data.MappingType.Element);
  2193. base.Columns.Add(this.columnGos_nomer_avto);
  2194. this.columnData_nachala_prokata = new global::System.Data.DataColumn("Data nachala prokata", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2195. base.Columns.Add(this.columnData_nachala_prokata);
  2196. this.columnFIO_klienta.AllowDBNull = false;
  2197. this.columnFIO_klienta.MaxLength = 50;
  2198. this.columnModel_avto.AllowDBNull = false;
  2199. this.columnModel_avto.MaxLength = 50;
  2200. this.columnGos_nomer_avto.AllowDBNull = false;
  2201. this.columnGos_nomer_avto.MaxLength = 50;
  2202. this.columnData_nachala_prokata.AllowDBNull = false;
  2203. }
  2204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2206. public LOLRow NewLOLRow() {
  2207. return ((LOLRow)(this.NewRow()));
  2208. }
  2209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2211. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2212. return new LOLRow(builder);
  2213. }
  2214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2216. protected override global::System.Type GetRowType() {
  2217. return typeof(LOLRow);
  2218. }
  2219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2221. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2222. base.OnRowChanged(e);
  2223. if ((this.LOLRowChanged != null)) {
  2224. this.LOLRowChanged(this, new LOLRowChangeEvent(((LOLRow)(e.Row)), e.Action));
  2225. }
  2226. }
  2227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2229. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2230. base.OnRowChanging(e);
  2231. if ((this.LOLRowChanging != null)) {
  2232. this.LOLRowChanging(this, new LOLRowChangeEvent(((LOLRow)(e.Row)), e.Action));
  2233. }
  2234. }
  2235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2237. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2238. base.OnRowDeleted(e);
  2239. if ((this.LOLRowDeleted != null)) {
  2240. this.LOLRowDeleted(this, new LOLRowChangeEvent(((LOLRow)(e.Row)), e.Action));
  2241. }
  2242. }
  2243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2245. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2246. base.OnRowDeleting(e);
  2247. if ((this.LOLRowDeleting != null)) {
  2248. this.LOLRowDeleting(this, new LOLRowChangeEvent(((LOLRow)(e.Row)), e.Action));
  2249. }
  2250. }
  2251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2253. public void RemoveLOLRow(LOLRow row) {
  2254. this.Rows.Remove(row);
  2255. }
  2256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2258. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2259. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2260. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2261. Prokatavto06DataSet ds = new Prokatavto06DataSet();
  2262. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2263. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2264. any1.MinOccurs = new decimal(0);
  2265. any1.MaxOccurs = decimal.MaxValue;
  2266. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2267. sequence.Items.Add(any1);
  2268. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2269. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2270. any2.MinOccurs = new decimal(1);
  2271. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2272. sequence.Items.Add(any2);
  2273. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2274. attribute1.Name = "namespace";
  2275. attribute1.FixedValue = ds.Namespace;
  2276. type.Attributes.Add(attribute1);
  2277. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2278. attribute2.Name = "tableTypeName";
  2279. attribute2.FixedValue = "LOLDataTable";
  2280. type.Attributes.Add(attribute2);
  2281. type.Particle = sequence;
  2282. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2283. if (xs.Contains(dsSchema.TargetNamespace)) {
  2284. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2285. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2286. try {
  2287. global::System.Xml.Schema.XmlSchema schema = null;
  2288. dsSchema.Write(s1);
  2289. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2290. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2291. s2.SetLength(0);
  2292. schema.Write(s2);
  2293. if ((s1.Length == s2.Length)) {
  2294. s1.Position = 0;
  2295. s2.Position = 0;
  2296. for (; ((s1.Position != s1.Length)
  2297. && (s1.ReadByte() == s2.ReadByte())); ) {
  2298. ;
  2299. }
  2300. if ((s1.Position == s1.Length)) {
  2301. return type;
  2302. }
  2303. }
  2304. }
  2305. }
  2306. finally {
  2307. if ((s1 != null)) {
  2308. s1.Close();
  2309. }
  2310. if ((s2 != null)) {
  2311. s2.Close();
  2312. }
  2313. }
  2314. }
  2315. xs.Add(dsSchema);
  2316. return type;
  2317. }
  2318. }
  2319. /// <summary>
  2320. ///Represents the strongly named DataTable class.
  2321. ///</summary>
  2322. [global::System.Serializable()]
  2323. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2324. public partial class LOL123DataTable : global::System.Data.TypedTableBase<LOL123Row> {
  2325. private global::System.Data.DataColumn columnFIO_klienta;
  2326. private global::System.Data.DataColumn columnModel_avto;
  2327. private global::System.Data.DataColumn columnGos_nomer_avto;
  2328. private global::System.Data.DataColumn columnData_nachala_prokata;
  2329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2331. public LOL123DataTable() {
  2332. this.TableName = "LOL123";
  2333. this.BeginInit();
  2334. this.InitClass();
  2335. this.EndInit();
  2336. }
  2337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2339. internal LOL123DataTable(global::System.Data.DataTable table) {
  2340. this.TableName = table.TableName;
  2341. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2342. this.CaseSensitive = table.CaseSensitive;
  2343. }
  2344. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2345. this.Locale = table.Locale;
  2346. }
  2347. if ((table.Namespace != table.DataSet.Namespace)) {
  2348. this.Namespace = table.Namespace;
  2349. }
  2350. this.Prefix = table.Prefix;
  2351. this.MinimumCapacity = table.MinimumCapacity;
  2352. }
  2353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2355. protected LOL123DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2356. base(info, context) {
  2357. this.InitVars();
  2358. }
  2359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2361. public global::System.Data.DataColumn FIO_klientaColumn {
  2362. get {
  2363. return this.columnFIO_klienta;
  2364. }
  2365. }
  2366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2368. public global::System.Data.DataColumn Model_avtoColumn {
  2369. get {
  2370. return this.columnModel_avto;
  2371. }
  2372. }
  2373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2375. public global::System.Data.DataColumn Gos_nomer_avtoColumn {
  2376. get {
  2377. return this.columnGos_nomer_avto;
  2378. }
  2379. }
  2380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2382. public global::System.Data.DataColumn Data_nachala_prokataColumn {
  2383. get {
  2384. return this.columnData_nachala_prokata;
  2385. }
  2386. }
  2387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2389. [global::System.ComponentModel.Browsable(false)]
  2390. public int Count {
  2391. get {
  2392. return this.Rows.Count;
  2393. }
  2394. }
  2395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2397. public LOL123Row this[int index] {
  2398. get {
  2399. return ((LOL123Row)(this.Rows[index]));
  2400. }
  2401. }
  2402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2403. public event LOL123RowChangeEventHandler LOL123RowChanging;
  2404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2405. public event LOL123RowChangeEventHandler LOL123RowChanged;
  2406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2407. public event LOL123RowChangeEventHandler LOL123RowDeleting;
  2408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2409. public event LOL123RowChangeEventHandler LOL123RowDeleted;
  2410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2412. public void AddLOL123Row(LOL123Row row) {
  2413. this.Rows.Add(row);
  2414. }
  2415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2417. public LOL123Row AddLOL123Row(string FIO_klienta, string Model_avto, string Gos_nomer_avto, System.DateTime Data_nachala_prokata) {
  2418. LOL123Row rowLOL123Row = ((LOL123Row)(this.NewRow()));
  2419. object[] columnValuesArray = new object[] {
  2420. FIO_klienta,
  2421. Model_avto,
  2422. Gos_nomer_avto,
  2423. Data_nachala_prokata};
  2424. rowLOL123Row.ItemArray = columnValuesArray;
  2425. this.Rows.Add(rowLOL123Row);
  2426. return rowLOL123Row;
  2427. }
  2428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2430. public override global::System.Data.DataTable Clone() {
  2431. LOL123DataTable cln = ((LOL123DataTable)(base.Clone()));
  2432. cln.InitVars();
  2433. return cln;
  2434. }
  2435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2437. protected override global::System.Data.DataTable CreateInstance() {
  2438. return new LOL123DataTable();
  2439. }
  2440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2442. internal void InitVars() {
  2443. this.columnFIO_klienta = base.Columns["FIO klienta"];
  2444. this.columnModel_avto = base.Columns["Model avto"];
  2445. this.columnGos_nomer_avto = base.Columns["Gos nomer avto"];
  2446. this.columnData_nachala_prokata = base.Columns["Data nachala prokata"];
  2447. }
  2448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2450. private void InitClass() {
  2451. this.columnFIO_klienta = new global::System.Data.DataColumn("FIO klienta", typeof(string), null, global::System.Data.MappingType.Element);
  2452. base.Columns.Add(this.columnFIO_klienta);
  2453. this.columnModel_avto = new global::System.Data.DataColumn("Model avto", typeof(string), null, global::System.Data.MappingType.Element);
  2454. base.Columns.Add(this.columnModel_avto);
  2455. this.columnGos_nomer_avto = new global::System.Data.DataColumn("Gos nomer avto", typeof(string), null, global::System.Data.MappingType.Element);
  2456. base.Columns.Add(this.columnGos_nomer_avto);
  2457. this.columnData_nachala_prokata = new global::System.Data.DataColumn("Data nachala prokata", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2458. base.Columns.Add(this.columnData_nachala_prokata);
  2459. this.columnFIO_klienta.AllowDBNull = false;
  2460. this.columnFIO_klienta.MaxLength = 50;
  2461. this.columnModel_avto.AllowDBNull = false;
  2462. this.columnModel_avto.MaxLength = 50;
  2463. this.columnGos_nomer_avto.AllowDBNull = false;
  2464. this.columnGos_nomer_avto.MaxLength = 50;
  2465. this.columnData_nachala_prokata.AllowDBNull = false;
  2466. }
  2467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2469. public LOL123Row NewLOL123Row() {
  2470. return ((LOL123Row)(this.NewRow()));
  2471. }
  2472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2474. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2475. return new LOL123Row(builder);
  2476. }
  2477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2479. protected override global::System.Type GetRowType() {
  2480. return typeof(LOL123Row);
  2481. }
  2482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2484. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2485. base.OnRowChanged(e);
  2486. if ((this.LOL123RowChanged != null)) {
  2487. this.LOL123RowChanged(this, new LOL123RowChangeEvent(((LOL123Row)(e.Row)), e.Action));
  2488. }
  2489. }
  2490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2492. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2493. base.OnRowChanging(e);
  2494. if ((this.LOL123RowChanging != null)) {
  2495. this.LOL123RowChanging(this, new LOL123RowChangeEvent(((LOL123Row)(e.Row)), e.Action));
  2496. }
  2497. }
  2498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2500. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2501. base.OnRowDeleted(e);
  2502. if ((this.LOL123RowDeleted != null)) {
  2503. this.LOL123RowDeleted(this, new LOL123RowChangeEvent(((LOL123Row)(e.Row)), e.Action));
  2504. }
  2505. }
  2506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2508. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2509. base.OnRowDeleting(e);
  2510. if ((this.LOL123RowDeleting != null)) {
  2511. this.LOL123RowDeleting(this, new LOL123RowChangeEvent(((LOL123Row)(e.Row)), e.Action));
  2512. }
  2513. }
  2514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2516. public void RemoveLOL123Row(LOL123Row row) {
  2517. this.Rows.Remove(row);
  2518. }
  2519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2521. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2522. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2523. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2524. Prokatavto06DataSet ds = new Prokatavto06DataSet();
  2525. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2526. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2527. any1.MinOccurs = new decimal(0);
  2528. any1.MaxOccurs = decimal.MaxValue;
  2529. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2530. sequence.Items.Add(any1);
  2531. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2532. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2533. any2.MinOccurs = new decimal(1);
  2534. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2535. sequence.Items.Add(any2);
  2536. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2537. attribute1.Name = "namespace";
  2538. attribute1.FixedValue = ds.Namespace;
  2539. type.Attributes.Add(attribute1);
  2540. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2541. attribute2.Name = "tableTypeName";
  2542. attribute2.FixedValue = "LOL123DataTable";
  2543. type.Attributes.Add(attribute2);
  2544. type.Particle = sequence;
  2545. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2546. if (xs.Contains(dsSchema.TargetNamespace)) {
  2547. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2548. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2549. try {
  2550. global::System.Xml.Schema.XmlSchema schema = null;
  2551. dsSchema.Write(s1);
  2552. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2553. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2554. s2.SetLength(0);
  2555. schema.Write(s2);
  2556. if ((s1.Length == s2.Length)) {
  2557. s1.Position = 0;
  2558. s2.Position = 0;
  2559. for (; ((s1.Position != s1.Length)
  2560. && (s1.ReadByte() == s2.ReadByte())); ) {
  2561. ;
  2562. }
  2563. if ((s1.Position == s1.Length)) {
  2564. return type;
  2565. }
  2566. }
  2567. }
  2568. }
  2569. finally {
  2570. if ((s1 != null)) {
  2571. s1.Close();
  2572. }
  2573. if ((s2 != null)) {
  2574. s2.Close();
  2575. }
  2576. }
  2577. }
  2578. xs.Add(dsSchema);
  2579. return type;
  2580. }
  2581. }
  2582. /// <summary>
  2583. ///Represents the strongly named DataTable class.
  2584. ///</summary>
  2585. [global::System.Serializable()]
  2586. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2587. public partial class LOL1234DataTable : global::System.Data.TypedTableBase<LOL1234Row> {
  2588. private global::System.Data.DataColumn columnFIO_klienta;
  2589. private global::System.Data.DataColumn columnModel_avto;
  2590. private global::System.Data.DataColumn columnGos_nomer_avto;
  2591. private global::System.Data.DataColumn columnData_nachala_prokata;
  2592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2594. public LOL1234DataTable() {
  2595. this.TableName = "LOL1234";
  2596. this.BeginInit();
  2597. this.InitClass();
  2598. this.EndInit();
  2599. }
  2600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2602. internal LOL1234DataTable(global::System.Data.DataTable table) {
  2603. this.TableName = table.TableName;
  2604. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2605. this.CaseSensitive = table.CaseSensitive;
  2606. }
  2607. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2608. this.Locale = table.Locale;
  2609. }
  2610. if ((table.Namespace != table.DataSet.Namespace)) {
  2611. this.Namespace = table.Namespace;
  2612. }
  2613. this.Prefix = table.Prefix;
  2614. this.MinimumCapacity = table.MinimumCapacity;
  2615. }
  2616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2618. protected LOL1234DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2619. base(info, context) {
  2620. this.InitVars();
  2621. }
  2622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2624. public global::System.Data.DataColumn FIO_klientaColumn {
  2625. get {
  2626. return this.columnFIO_klienta;
  2627. }
  2628. }
  2629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2631. public global::System.Data.DataColumn Model_avtoColumn {
  2632. get {
  2633. return this.columnModel_avto;
  2634. }
  2635. }
  2636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2638. public global::System.Data.DataColumn Gos_nomer_avtoColumn {
  2639. get {
  2640. return this.columnGos_nomer_avto;
  2641. }
  2642. }
  2643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2645. public global::System.Data.DataColumn Data_nachala_prokataColumn {
  2646. get {
  2647. return this.columnData_nachala_prokata;
  2648. }
  2649. }
  2650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2652. [global::System.ComponentModel.Browsable(false)]
  2653. public int Count {
  2654. get {
  2655. return this.Rows.Count;
  2656. }
  2657. }
  2658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2660. public LOL1234Row this[int index] {
  2661. get {
  2662. return ((LOL1234Row)(this.Rows[index]));
  2663. }
  2664. }
  2665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2666. public event LOL1234RowChangeEventHandler LOL1234RowChanging;
  2667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2668. public event LOL1234RowChangeEventHandler LOL1234RowChanged;
  2669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2670. public event LOL1234RowChangeEventHandler LOL1234RowDeleting;
  2671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2672. public event LOL1234RowChangeEventHandler LOL1234RowDeleted;
  2673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2675. public void AddLOL1234Row(LOL1234Row row) {
  2676. this.Rows.Add(row);
  2677. }
  2678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2680. public LOL1234Row AddLOL1234Row(string FIO_klienta, string Model_avto, string Gos_nomer_avto, System.DateTime Data_nachala_prokata) {
  2681. LOL1234Row rowLOL1234Row = ((LOL1234Row)(this.NewRow()));
  2682. object[] columnValuesArray = new object[] {
  2683. FIO_klienta,
  2684. Model_avto,
  2685. Gos_nomer_avto,
  2686. Data_nachala_prokata};
  2687. rowLOL1234Row.ItemArray = columnValuesArray;
  2688. this.Rows.Add(rowLOL1234Row);
  2689. return rowLOL1234Row;
  2690. }
  2691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2693. public override global::System.Data.DataTable Clone() {
  2694. LOL1234DataTable cln = ((LOL1234DataTable)(base.Clone()));
  2695. cln.InitVars();
  2696. return cln;
  2697. }
  2698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2700. protected override global::System.Data.DataTable CreateInstance() {
  2701. return new LOL1234DataTable();
  2702. }
  2703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2705. internal void InitVars() {
  2706. this.columnFIO_klienta = base.Columns["FIO klienta"];
  2707. this.columnModel_avto = base.Columns["Model avto"];
  2708. this.columnGos_nomer_avto = base.Columns["Gos nomer avto"];
  2709. this.columnData_nachala_prokata = base.Columns["Data nachala prokata"];
  2710. }
  2711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2713. private void InitClass() {
  2714. this.columnFIO_klienta = new global::System.Data.DataColumn("FIO klienta", typeof(string), null, global::System.Data.MappingType.Element);
  2715. base.Columns.Add(this.columnFIO_klienta);
  2716. this.columnModel_avto = new global::System.Data.DataColumn("Model avto", typeof(string), null, global::System.Data.MappingType.Element);
  2717. base.Columns.Add(this.columnModel_avto);
  2718. this.columnGos_nomer_avto = new global::System.Data.DataColumn("Gos nomer avto", typeof(string), null, global::System.Data.MappingType.Element);
  2719. base.Columns.Add(this.columnGos_nomer_avto);
  2720. this.columnData_nachala_prokata = new global::System.Data.DataColumn("Data nachala prokata", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2721. base.Columns.Add(this.columnData_nachala_prokata);
  2722. this.columnFIO_klienta.AllowDBNull = false;
  2723. this.columnFIO_klienta.MaxLength = 50;
  2724. this.columnModel_avto.AllowDBNull = false;
  2725. this.columnModel_avto.MaxLength = 50;
  2726. this.columnGos_nomer_avto.AllowDBNull = false;
  2727. this.columnGos_nomer_avto.MaxLength = 50;
  2728. this.columnData_nachala_prokata.AllowDBNull = false;
  2729. }
  2730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2732. public LOL1234Row NewLOL1234Row() {
  2733. return ((LOL1234Row)(this.NewRow()));
  2734. }
  2735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2737. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2738. return new LOL1234Row(builder);
  2739. }
  2740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2742. protected override global::System.Type GetRowType() {
  2743. return typeof(LOL1234Row);
  2744. }
  2745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2747. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2748. base.OnRowChanged(e);
  2749. if ((this.LOL1234RowChanged != null)) {
  2750. this.LOL1234RowChanged(this, new LOL1234RowChangeEvent(((LOL1234Row)(e.Row)), e.Action));
  2751. }
  2752. }
  2753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2755. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2756. base.OnRowChanging(e);
  2757. if ((this.LOL1234RowChanging != null)) {
  2758. this.LOL1234RowChanging(this, new LOL1234RowChangeEvent(((LOL1234Row)(e.Row)), e.Action));
  2759. }
  2760. }
  2761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2763. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2764. base.OnRowDeleted(e);
  2765. if ((this.LOL1234RowDeleted != null)) {
  2766. this.LOL1234RowDeleted(this, new LOL1234RowChangeEvent(((LOL1234Row)(e.Row)), e.Action));
  2767. }
  2768. }
  2769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2771. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2772. base.OnRowDeleting(e);
  2773. if ((this.LOL1234RowDeleting != null)) {
  2774. this.LOL1234RowDeleting(this, new LOL1234RowChangeEvent(((LOL1234Row)(e.Row)), e.Action));
  2775. }
  2776. }
  2777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2779. public void RemoveLOL1234Row(LOL1234Row row) {
  2780. this.Rows.Remove(row);
  2781. }
  2782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2784. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2785. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2786. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2787. Prokatavto06DataSet ds = new Prokatavto06DataSet();
  2788. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2789. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2790. any1.MinOccurs = new decimal(0);
  2791. any1.MaxOccurs = decimal.MaxValue;
  2792. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2793. sequence.Items.Add(any1);
  2794. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2795. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2796. any2.MinOccurs = new decimal(1);
  2797. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2798. sequence.Items.Add(any2);
  2799. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2800. attribute1.Name = "namespace";
  2801. attribute1.FixedValue = ds.Namespace;
  2802. type.Attributes.Add(attribute1);
  2803. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2804. attribute2.Name = "tableTypeName";
  2805. attribute2.FixedValue = "LOL1234DataTable";
  2806. type.Attributes.Add(attribute2);
  2807. type.Particle = sequence;
  2808. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2809. if (xs.Contains(dsSchema.TargetNamespace)) {
  2810. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2811. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2812. try {
  2813. global::System.Xml.Schema.XmlSchema schema = null;
  2814. dsSchema.Write(s1);
  2815. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2816. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2817. s2.SetLength(0);
  2818. schema.Write(s2);
  2819. if ((s1.Length == s2.Length)) {
  2820. s1.Position = 0;
  2821. s2.Position = 0;
  2822. for (; ((s1.Position != s1.Length)
  2823. && (s1.ReadByte() == s2.ReadByte())); ) {
  2824. ;
  2825. }
  2826. if ((s1.Position == s1.Length)) {
  2827. return type;
  2828. }
  2829. }
  2830. }
  2831. }
  2832. finally {
  2833. if ((s1 != null)) {
  2834. s1.Close();
  2835. }
  2836. if ((s2 != null)) {
  2837. s2.Close();
  2838. }
  2839. }
  2840. }
  2841. xs.Add(dsSchema);
  2842. return type;
  2843. }
  2844. }
  2845. /// <summary>
  2846. ///Represents the strongly named DataTable class.
  2847. ///</summary>
  2848. [global::System.Serializable()]
  2849. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2850. public partial class LOL12345DataTable : global::System.Data.TypedTableBase<LOL12345Row> {
  2851. private global::System.Data.DataColumn columnFIO_klienta;
  2852. private global::System.Data.DataColumn columnModel_avto;
  2853. private global::System.Data.DataColumn columnGos_nomer_avto;
  2854. private global::System.Data.DataColumn columnData_nachala_prokata;
  2855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2857. public LOL12345DataTable() {
  2858. this.TableName = "LOL12345";
  2859. this.BeginInit();
  2860. this.InitClass();
  2861. this.EndInit();
  2862. }
  2863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2865. internal LOL12345DataTable(global::System.Data.DataTable table) {
  2866. this.TableName = table.TableName;
  2867. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2868. this.CaseSensitive = table.CaseSensitive;
  2869. }
  2870. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2871. this.Locale = table.Locale;
  2872. }
  2873. if ((table.Namespace != table.DataSet.Namespace)) {
  2874. this.Namespace = table.Namespace;
  2875. }
  2876. this.Prefix = table.Prefix;
  2877. this.MinimumCapacity = table.MinimumCapacity;
  2878. }
  2879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2881. protected LOL12345DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2882. base(info, context) {
  2883. this.InitVars();
  2884. }
  2885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2887. public global::System.Data.DataColumn FIO_klientaColumn {
  2888. get {
  2889. return this.columnFIO_klienta;
  2890. }
  2891. }
  2892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2894. public global::System.Data.DataColumn Model_avtoColumn {
  2895. get {
  2896. return this.columnModel_avto;
  2897. }
  2898. }
  2899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2901. public global::System.Data.DataColumn Gos_nomer_avtoColumn {
  2902. get {
  2903. return this.columnGos_nomer_avto;
  2904. }
  2905. }
  2906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2908. public global::System.Data.DataColumn Data_nachala_prokataColumn {
  2909. get {
  2910. return this.columnData_nachala_prokata;
  2911. }
  2912. }
  2913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2915. [global::System.ComponentModel.Browsable(false)]
  2916. public int Count {
  2917. get {
  2918. return this.Rows.Count;
  2919. }
  2920. }
  2921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2923. public LOL12345Row this[int index] {
  2924. get {
  2925. return ((LOL12345Row)(this.Rows[index]));
  2926. }
  2927. }
  2928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2929. public event LOL12345RowChangeEventHandler LOL12345RowChanging;
  2930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2931. public event LOL12345RowChangeEventHandler LOL12345RowChanged;
  2932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2933. public event LOL12345RowChangeEventHandler LOL12345RowDeleting;
  2934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2935. public event LOL12345RowChangeEventHandler LOL12345RowDeleted;
  2936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2938. public void AddLOL12345Row(LOL12345Row row) {
  2939. this.Rows.Add(row);
  2940. }
  2941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2943. public LOL12345Row AddLOL12345Row(string FIO_klienta, string Model_avto, string Gos_nomer_avto, System.DateTime Data_nachala_prokata) {
  2944. LOL12345Row rowLOL12345Row = ((LOL12345Row)(this.NewRow()));
  2945. object[] columnValuesArray = new object[] {
  2946. FIO_klienta,
  2947. Model_avto,
  2948. Gos_nomer_avto,
  2949. Data_nachala_prokata};
  2950. rowLOL12345Row.ItemArray = columnValuesArray;
  2951. this.Rows.Add(rowLOL12345Row);
  2952. return rowLOL12345Row;
  2953. }
  2954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2956. public override global::System.Data.DataTable Clone() {
  2957. LOL12345DataTable cln = ((LOL12345DataTable)(base.Clone()));
  2958. cln.InitVars();
  2959. return cln;
  2960. }
  2961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2963. protected override global::System.Data.DataTable CreateInstance() {
  2964. return new LOL12345DataTable();
  2965. }
  2966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2968. internal void InitVars() {
  2969. this.columnFIO_klienta = base.Columns["FIO klienta"];
  2970. this.columnModel_avto = base.Columns["Model avto"];
  2971. this.columnGos_nomer_avto = base.Columns["Gos nomer avto"];
  2972. this.columnData_nachala_prokata = base.Columns["Data nachala prokata"];
  2973. }
  2974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2976. private void InitClass() {
  2977. this.columnFIO_klienta = new global::System.Data.DataColumn("FIO klienta", typeof(string), null, global::System.Data.MappingType.Element);
  2978. base.Columns.Add(this.columnFIO_klienta);
  2979. this.columnModel_avto = new global::System.Data.DataColumn("Model avto", typeof(string), null, global::System.Data.MappingType.Element);
  2980. base.Columns.Add(this.columnModel_avto);
  2981. this.columnGos_nomer_avto = new global::System.Data.DataColumn("Gos nomer avto", typeof(string), null, global::System.Data.MappingType.Element);
  2982. base.Columns.Add(this.columnGos_nomer_avto);
  2983. this.columnData_nachala_prokata = new global::System.Data.DataColumn("Data nachala prokata", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2984. base.Columns.Add(this.columnData_nachala_prokata);
  2985. this.columnFIO_klienta.AllowDBNull = false;
  2986. this.columnFIO_klienta.MaxLength = 50;
  2987. this.columnModel_avto.AllowDBNull = false;
  2988. this.columnModel_avto.MaxLength = 50;
  2989. this.columnGos_nomer_avto.AllowDBNull = false;
  2990. this.columnGos_nomer_avto.MaxLength = 50;
  2991. this.columnData_nachala_prokata.AllowDBNull = false;
  2992. }
  2993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2995. public LOL12345Row NewLOL12345Row() {
  2996. return ((LOL12345Row)(this.NewRow()));
  2997. }
  2998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3000. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3001. return new LOL12345Row(builder);
  3002. }
  3003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3005. protected override global::System.Type GetRowType() {
  3006. return typeof(LOL12345Row);
  3007. }
  3008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3010. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3011. base.OnRowChanged(e);
  3012. if ((this.LOL12345RowChanged != null)) {
  3013. this.LOL12345RowChanged(this, new LOL12345RowChangeEvent(((LOL12345Row)(e.Row)), e.Action));
  3014. }
  3015. }
  3016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3018. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3019. base.OnRowChanging(e);
  3020. if ((this.LOL12345RowChanging != null)) {
  3021. this.LOL12345RowChanging(this, new LOL12345RowChangeEvent(((LOL12345Row)(e.Row)), e.Action));
  3022. }
  3023. }
  3024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3026. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3027. base.OnRowDeleted(e);
  3028. if ((this.LOL12345RowDeleted != null)) {
  3029. this.LOL12345RowDeleted(this, new LOL12345RowChangeEvent(((LOL12345Row)(e.Row)), e.Action));
  3030. }
  3031. }
  3032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3034. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3035. base.OnRowDeleting(e);
  3036. if ((this.LOL12345RowDeleting != null)) {
  3037. this.LOL12345RowDeleting(this, new LOL12345RowChangeEvent(((LOL12345Row)(e.Row)), e.Action));
  3038. }
  3039. }
  3040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3042. public void RemoveLOL12345Row(LOL12345Row row) {
  3043. this.Rows.Remove(row);
  3044. }
  3045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3047. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3048. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3049. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3050. Prokatavto06DataSet ds = new Prokatavto06DataSet();
  3051. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3052. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3053. any1.MinOccurs = new decimal(0);
  3054. any1.MaxOccurs = decimal.MaxValue;
  3055. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3056. sequence.Items.Add(any1);
  3057. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3058. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3059. any2.MinOccurs = new decimal(1);
  3060. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3061. sequence.Items.Add(any2);
  3062. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3063. attribute1.Name = "namespace";
  3064. attribute1.FixedValue = ds.Namespace;
  3065. type.Attributes.Add(attribute1);
  3066. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3067. attribute2.Name = "tableTypeName";
  3068. attribute2.FixedValue = "LOL12345DataTable";
  3069. type.Attributes.Add(attribute2);
  3070. type.Particle = sequence;
  3071. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3072. if (xs.Contains(dsSchema.TargetNamespace)) {
  3073. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3074. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3075. try {
  3076. global::System.Xml.Schema.XmlSchema schema = null;
  3077. dsSchema.Write(s1);
  3078. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3079. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3080. s2.SetLength(0);
  3081. schema.Write(s2);
  3082. if ((s1.Length == s2.Length)) {
  3083. s1.Position = 0;
  3084. s2.Position = 0;
  3085. for (; ((s1.Position != s1.Length)
  3086. && (s1.ReadByte() == s2.ReadByte())); ) {
  3087. ;
  3088. }
  3089. if ((s1.Position == s1.Length)) {
  3090. return type;
  3091. }
  3092. }
  3093. }
  3094. }
  3095. finally {
  3096. if ((s1 != null)) {
  3097. s1.Close();
  3098. }
  3099. if ((s2 != null)) {
  3100. s2.Close();
  3101. }
  3102. }
  3103. }
  3104. xs.Add(dsSchema);
  3105. return type;
  3106. }
  3107. }
  3108. /// <summary>
  3109. ///Represents the strongly named DataTable class.
  3110. ///</summary>
  3111. [global::System.Serializable()]
  3112. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3113. public partial class LOL123456DataTable : global::System.Data.TypedTableBase<LOL123456Row> {
  3114. private global::System.Data.DataColumn columnModel_avto;
  3115. private global::System.Data.DataColumn columnGos_nomer_avto;
  3116. private global::System.Data.DataColumn columnData_nachala_prokata;
  3117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3119. public LOL123456DataTable() {
  3120. this.TableName = "LOL123456";
  3121. this.BeginInit();
  3122. this.InitClass();
  3123. this.EndInit();
  3124. }
  3125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3127. internal LOL123456DataTable(global::System.Data.DataTable table) {
  3128. this.TableName = table.TableName;
  3129. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3130. this.CaseSensitive = table.CaseSensitive;
  3131. }
  3132. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3133. this.Locale = table.Locale;
  3134. }
  3135. if ((table.Namespace != table.DataSet.Namespace)) {
  3136. this.Namespace = table.Namespace;
  3137. }
  3138. this.Prefix = table.Prefix;
  3139. this.MinimumCapacity = table.MinimumCapacity;
  3140. }
  3141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3143. protected LOL123456DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3144. base(info, context) {
  3145. this.InitVars();
  3146. }
  3147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3149. public global::System.Data.DataColumn Model_avtoColumn {
  3150. get {
  3151. return this.columnModel_avto;
  3152. }
  3153. }
  3154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3156. public global::System.Data.DataColumn Gos_nomer_avtoColumn {
  3157. get {
  3158. return this.columnGos_nomer_avto;
  3159. }
  3160. }
  3161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3163. public global::System.Data.DataColumn Data_nachala_prokataColumn {
  3164. get {
  3165. return this.columnData_nachala_prokata;
  3166. }
  3167. }
  3168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3170. [global::System.ComponentModel.Browsable(false)]
  3171. public int Count {
  3172. get {
  3173. return this.Rows.Count;
  3174. }
  3175. }
  3176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3178. public LOL123456Row this[int index] {
  3179. get {
  3180. return ((LOL123456Row)(this.Rows[index]));
  3181. }
  3182. }
  3183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3184. public event LOL123456RowChangeEventHandler LOL123456RowChanging;
  3185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3186. public event LOL123456RowChangeEventHandler LOL123456RowChanged;
  3187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3188. public event LOL123456RowChangeEventHandler LOL123456RowDeleting;
  3189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3190. public event LOL123456RowChangeEventHandler LOL123456RowDeleted;
  3191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3193. public void AddLOL123456Row(LOL123456Row row) {
  3194. this.Rows.Add(row);
  3195. }
  3196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3198. public LOL123456Row AddLOL123456Row(string Model_avto, string Gos_nomer_avto, System.DateTime Data_nachala_prokata) {
  3199. LOL123456Row rowLOL123456Row = ((LOL123456Row)(this.NewRow()));
  3200. object[] columnValuesArray = new object[] {
  3201. Model_avto,
  3202. Gos_nomer_avto,
  3203. Data_nachala_prokata};
  3204. rowLOL123456Row.ItemArray = columnValuesArray;
  3205. this.Rows.Add(rowLOL123456Row);
  3206. return rowLOL123456Row;
  3207. }
  3208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3210. public override global::System.Data.DataTable Clone() {
  3211. LOL123456DataTable cln = ((LOL123456DataTable)(base.Clone()));
  3212. cln.InitVars();
  3213. return cln;
  3214. }
  3215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3217. protected override global::System.Data.DataTable CreateInstance() {
  3218. return new LOL123456DataTable();
  3219. }
  3220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3222. internal void InitVars() {
  3223. this.columnModel_avto = base.Columns["Model avto"];
  3224. this.columnGos_nomer_avto = base.Columns["Gos nomer avto"];
  3225. this.columnData_nachala_prokata = base.Columns["Data nachala prokata"];
  3226. }
  3227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3229. private void InitClass() {
  3230. this.columnModel_avto = new global::System.Data.DataColumn("Model avto", typeof(string), null, global::System.Data.MappingType.Element);
  3231. base.Columns.Add(this.columnModel_avto);
  3232. this.columnGos_nomer_avto = new global::System.Data.DataColumn("Gos nomer avto", typeof(string), null, global::System.Data.MappingType.Element);
  3233. base.Columns.Add(this.columnGos_nomer_avto);
  3234. this.columnData_nachala_prokata = new global::System.Data.DataColumn("Data nachala prokata", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3235. base.Columns.Add(this.columnData_nachala_prokata);
  3236. this.columnModel_avto.AllowDBNull = false;
  3237. this.columnModel_avto.MaxLength = 50;
  3238. this.columnGos_nomer_avto.AllowDBNull = false;
  3239. this.columnGos_nomer_avto.MaxLength = 50;
  3240. this.columnData_nachala_prokata.AllowDBNull = false;
  3241. }
  3242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3244. public LOL123456Row NewLOL123456Row() {
  3245. return ((LOL123456Row)(this.NewRow()));
  3246. }
  3247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3249. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3250. return new LOL123456Row(builder);
  3251. }
  3252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3254. protected override global::System.Type GetRowType() {
  3255. return typeof(LOL123456Row);
  3256. }
  3257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3259. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3260. base.OnRowChanged(e);
  3261. if ((this.LOL123456RowChanged != null)) {
  3262. this.LOL123456RowChanged(this, new LOL123456RowChangeEvent(((LOL123456Row)(e.Row)), e.Action));
  3263. }
  3264. }
  3265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3267. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3268. base.OnRowChanging(e);
  3269. if ((this.LOL123456RowChanging != null)) {
  3270. this.LOL123456RowChanging(this, new LOL123456RowChangeEvent(((LOL123456Row)(e.Row)), e.Action));
  3271. }
  3272. }
  3273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3275. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3276. base.OnRowDeleted(e);
  3277. if ((this.LOL123456RowDeleted != null)) {
  3278. this.LOL123456RowDeleted(this, new LOL123456RowChangeEvent(((LOL123456Row)(e.Row)), e.Action));
  3279. }
  3280. }
  3281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3283. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3284. base.OnRowDeleting(e);
  3285. if ((this.LOL123456RowDeleting != null)) {
  3286. this.LOL123456RowDeleting(this, new LOL123456RowChangeEvent(((LOL123456Row)(e.Row)), e.Action));
  3287. }
  3288. }
  3289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3291. public void RemoveLOL123456Row(LOL123456Row row) {
  3292. this.Rows.Remove(row);
  3293. }
  3294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3296. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3297. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3298. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3299. Prokatavto06DataSet ds = new Prokatavto06DataSet();
  3300. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3301. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3302. any1.MinOccurs = new decimal(0);
  3303. any1.MaxOccurs = decimal.MaxValue;
  3304. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3305. sequence.Items.Add(any1);
  3306. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3307. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3308. any2.MinOccurs = new decimal(1);
  3309. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3310. sequence.Items.Add(any2);
  3311. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3312. attribute1.Name = "namespace";
  3313. attribute1.FixedValue = ds.Namespace;
  3314. type.Attributes.Add(attribute1);
  3315. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3316. attribute2.Name = "tableTypeName";
  3317. attribute2.FixedValue = "LOL123456DataTable";
  3318. type.Attributes.Add(attribute2);
  3319. type.Particle = sequence;
  3320. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3321. if (xs.Contains(dsSchema.TargetNamespace)) {
  3322. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3323. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3324. try {
  3325. global::System.Xml.Schema.XmlSchema schema = null;
  3326. dsSchema.Write(s1);
  3327. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3328. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3329. s2.SetLength(0);
  3330. schema.Write(s2);
  3331. if ((s1.Length == s2.Length)) {
  3332. s1.Position = 0;
  3333. s2.Position = 0;
  3334. for (; ((s1.Position != s1.Length)
  3335. && (s1.ReadByte() == s2.ReadByte())); ) {
  3336. ;
  3337. }
  3338. if ((s1.Position == s1.Length)) {
  3339. return type;
  3340. }
  3341. }
  3342. }
  3343. }
  3344. finally {
  3345. if ((s1 != null)) {
  3346. s1.Close();
  3347. }
  3348. if ((s2 != null)) {
  3349. s2.Close();
  3350. }
  3351. }
  3352. }
  3353. xs.Add(dsSchema);
  3354. return type;
  3355. }
  3356. }
  3357. /// <summary>
  3358. ///Represents the strongly named DataTable class.
  3359. ///</summary>
  3360. [global::System.Serializable()]
  3361. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3362. public partial class PoiskDataTable : global::System.Data.TypedTableBase<PoiskRow> {
  3363. private global::System.Data.DataColumn columnKod_avto;
  3364. private global::System.Data.DataColumn columnModel_avto;
  3365. private global::System.Data.DataColumn columnCvet_avto;
  3366. private global::System.Data.DataColumn columnGod_vipyska_avto;
  3367. private global::System.Data.DataColumn columnGos_nomer_avto;
  3368. private global::System.Data.DataColumn columnstrahovaya_stoimost_avto;
  3369. private global::System.Data.DataColumn columnKod_strahovki;
  3370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3372. public PoiskDataTable() {
  3373. this.TableName = "Poisk";
  3374. this.BeginInit();
  3375. this.InitClass();
  3376. this.EndInit();
  3377. }
  3378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3380. internal PoiskDataTable(global::System.Data.DataTable table) {
  3381. this.TableName = table.TableName;
  3382. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3383. this.CaseSensitive = table.CaseSensitive;
  3384. }
  3385. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3386. this.Locale = table.Locale;
  3387. }
  3388. if ((table.Namespace != table.DataSet.Namespace)) {
  3389. this.Namespace = table.Namespace;
  3390. }
  3391. this.Prefix = table.Prefix;
  3392. this.MinimumCapacity = table.MinimumCapacity;
  3393. }
  3394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3396. protected PoiskDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3397. base(info, context) {
  3398. this.InitVars();
  3399. }
  3400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3402. public global::System.Data.DataColumn Kod_avtoColumn {
  3403. get {
  3404. return this.columnKod_avto;
  3405. }
  3406. }
  3407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3409. public global::System.Data.DataColumn Model_avtoColumn {
  3410. get {
  3411. return this.columnModel_avto;
  3412. }
  3413. }
  3414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3416. public global::System.Data.DataColumn Cvet_avtoColumn {
  3417. get {
  3418. return this.columnCvet_avto;
  3419. }
  3420. }
  3421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3423. public global::System.Data.DataColumn God_vipyska_avtoColumn {
  3424. get {
  3425. return this.columnGod_vipyska_avto;
  3426. }
  3427. }
  3428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3430. public global::System.Data.DataColumn Gos_nomer_avtoColumn {
  3431. get {
  3432. return this.columnGos_nomer_avto;
  3433. }
  3434. }
  3435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3437. public global::System.Data.DataColumn strahovaya_stoimost_avtoColumn {
  3438. get {
  3439. return this.columnstrahovaya_stoimost_avto;
  3440. }
  3441. }
  3442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3444. public global::System.Data.DataColumn Kod_strahovkiColumn {
  3445. get {
  3446. return this.columnKod_strahovki;
  3447. }
  3448. }
  3449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3451. [global::System.ComponentModel.Browsable(false)]
  3452. public int Count {
  3453. get {
  3454. return this.Rows.Count;
  3455. }
  3456. }
  3457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3459. public PoiskRow this[int index] {
  3460. get {
  3461. return ((PoiskRow)(this.Rows[index]));
  3462. }
  3463. }
  3464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3465. public event PoiskRowChangeEventHandler PoiskRowChanging;
  3466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3467. public event PoiskRowChangeEventHandler PoiskRowChanged;
  3468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3469. public event PoiskRowChangeEventHandler PoiskRowDeleting;
  3470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3471. public event PoiskRowChangeEventHandler PoiskRowDeleted;
  3472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3474. public void AddPoiskRow(PoiskRow row) {
  3475. this.Rows.Add(row);
  3476. }
  3477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3479. public PoiskRow AddPoiskRow(string Model_avto, string Cvet_avto, string God_vipyska_avto, string Gos_nomer_avto, decimal strahovaya_stoimost_avto, int Kod_strahovki) {
  3480. PoiskRow rowPoiskRow = ((PoiskRow)(this.NewRow()));
  3481. object[] columnValuesArray = new object[] {
  3482. null,
  3483. Model_avto,
  3484. Cvet_avto,
  3485. God_vipyska_avto,
  3486. Gos_nomer_avto,
  3487. strahovaya_stoimost_avto,
  3488. Kod_strahovki};
  3489. rowPoiskRow.ItemArray = columnValuesArray;
  3490. this.Rows.Add(rowPoiskRow);
  3491. return rowPoiskRow;
  3492. }
  3493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3495. public PoiskRow FindByKod_avto(int Kod_avto) {
  3496. return ((PoiskRow)(this.Rows.Find(new object[] {
  3497. Kod_avto})));
  3498. }
  3499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3501. public override global::System.Data.DataTable Clone() {
  3502. PoiskDataTable cln = ((PoiskDataTable)(base.Clone()));
  3503. cln.InitVars();
  3504. return cln;
  3505. }
  3506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3508. protected override global::System.Data.DataTable CreateInstance() {
  3509. return new PoiskDataTable();
  3510. }
  3511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3513. internal void InitVars() {
  3514. this.columnKod_avto = base.Columns["Kod avto"];
  3515. this.columnModel_avto = base.Columns["Model avto"];
  3516. this.columnCvet_avto = base.Columns["Cvet avto"];
  3517. this.columnGod_vipyska_avto = base.Columns["God vipyska avto"];
  3518. this.columnGos_nomer_avto = base.Columns["Gos nomer avto"];
  3519. this.columnstrahovaya_stoimost_avto = base.Columns["strahovaya stoimost avto"];
  3520. this.columnKod_strahovki = base.Columns["Kod strahovki"];
  3521. }
  3522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3524. private void InitClass() {
  3525. this.columnKod_avto = new global::System.Data.DataColumn("Kod avto", typeof(int), null, global::System.Data.MappingType.Element);
  3526. base.Columns.Add(this.columnKod_avto);
  3527. this.columnModel_avto = new global::System.Data.DataColumn("Model avto", typeof(string), null, global::System.Data.MappingType.Element);
  3528. base.Columns.Add(this.columnModel_avto);
  3529. this.columnCvet_avto = new global::System.Data.DataColumn("Cvet avto", typeof(string), null, global::System.Data.MappingType.Element);
  3530. base.Columns.Add(this.columnCvet_avto);
  3531. this.columnGod_vipyska_avto = new global::System.Data.DataColumn("God vipyska avto", typeof(string), null, global::System.Data.MappingType.Element);
  3532. base.Columns.Add(this.columnGod_vipyska_avto);
  3533. this.columnGos_nomer_avto = new global::System.Data.DataColumn("Gos nomer avto", typeof(string), null, global::System.Data.MappingType.Element);
  3534. base.Columns.Add(this.columnGos_nomer_avto);
  3535. this.columnstrahovaya_stoimost_avto = new global::System.Data.DataColumn("strahovaya stoimost avto", typeof(decimal), null, global::System.Data.MappingType.Element);
  3536. base.Columns.Add(this.columnstrahovaya_stoimost_avto);
  3537. this.columnKod_strahovki = new global::System.Data.DataColumn("Kod strahovki", typeof(int), null, global::System.Data.MappingType.Element);
  3538. base.Columns.Add(this.columnKod_strahovki);
  3539. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3540. this.columnKod_avto}, true));
  3541. this.columnKod_avto.AutoIncrement = true;
  3542. this.columnKod_avto.AllowDBNull = false;
  3543. this.columnKod_avto.ReadOnly = true;
  3544. this.columnKod_avto.Unique = true;
  3545. this.columnModel_avto.AllowDBNull = false;
  3546. this.columnModel_avto.MaxLength = 50;
  3547. this.columnCvet_avto.AllowDBNull = false;
  3548. this.columnCvet_avto.MaxLength = 50;
  3549. this.columnGod_vipyska_avto.AllowDBNull = false;
  3550. this.columnGod_vipyska_avto.MaxLength = 50;
  3551. this.columnGos_nomer_avto.AllowDBNull = false;
  3552. this.columnGos_nomer_avto.MaxLength = 50;
  3553. this.columnstrahovaya_stoimost_avto.AllowDBNull = false;
  3554. }
  3555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3557. public PoiskRow NewPoiskRow() {
  3558. return ((PoiskRow)(this.NewRow()));
  3559. }
  3560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3562. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3563. return new PoiskRow(builder);
  3564. }
  3565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3567. protected override global::System.Type GetRowType() {
  3568. return typeof(PoiskRow);
  3569. }
  3570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3572. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3573. base.OnRowChanged(e);
  3574. if ((this.PoiskRowChanged != null)) {
  3575. this.PoiskRowChanged(this, new PoiskRowChangeEvent(((PoiskRow)(e.Row)), e.Action));
  3576. }
  3577. }
  3578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3580. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3581. base.OnRowChanging(e);
  3582. if ((this.PoiskRowChanging != null)) {
  3583. this.PoiskRowChanging(this, new PoiskRowChangeEvent(((PoiskRow)(e.Row)), e.Action));
  3584. }
  3585. }
  3586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3588. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3589. base.OnRowDeleted(e);
  3590. if ((this.PoiskRowDeleted != null)) {
  3591. this.PoiskRowDeleted(this, new PoiskRowChangeEvent(((PoiskRow)(e.Row)), e.Action));
  3592. }
  3593. }
  3594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3596. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3597. base.OnRowDeleting(e);
  3598. if ((this.PoiskRowDeleting != null)) {
  3599. this.PoiskRowDeleting(this, new PoiskRowChangeEvent(((PoiskRow)(e.Row)), e.Action));
  3600. }
  3601. }
  3602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3604. public void RemovePoiskRow(PoiskRow row) {
  3605. this.Rows.Remove(row);
  3606. }
  3607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3609. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3610. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3611. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3612. Prokatavto06DataSet ds = new Prokatavto06DataSet();
  3613. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3614. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3615. any1.MinOccurs = new decimal(0);
  3616. any1.MaxOccurs = decimal.MaxValue;
  3617. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3618. sequence.Items.Add(any1);
  3619. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3620. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3621. any2.MinOccurs = new decimal(1);
  3622. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3623. sequence.Items.Add(any2);
  3624. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3625. attribute1.Name = "namespace";
  3626. attribute1.FixedValue = ds.Namespace;
  3627. type.Attributes.Add(attribute1);
  3628. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3629. attribute2.Name = "tableTypeName";
  3630. attribute2.FixedValue = "PoiskDataTable";
  3631. type.Attributes.Add(attribute2);
  3632. type.Particle = sequence;
  3633. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3634. if (xs.Contains(dsSchema.TargetNamespace)) {
  3635. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3636. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3637. try {
  3638. global::System.Xml.Schema.XmlSchema schema = null;
  3639. dsSchema.Write(s1);
  3640. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3641. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3642. s2.SetLength(0);
  3643. schema.Write(s2);
  3644. if ((s1.Length == s2.Length)) {
  3645. s1.Position = 0;
  3646. s2.Position = 0;
  3647. for (; ((s1.Position != s1.Length)
  3648. && (s1.ReadByte() == s2.ReadByte())); ) {
  3649. ;
  3650. }
  3651. if ((s1.Position == s1.Length)) {
  3652. return type;
  3653. }
  3654. }
  3655. }
  3656. }
  3657. finally {
  3658. if ((s1 != null)) {
  3659. s1.Close();
  3660. }
  3661. if ((s2 != null)) {
  3662. s2.Close();
  3663. }
  3664. }
  3665. }
  3666. xs.Add(dsSchema);
  3667. return type;
  3668. }
  3669. }
  3670. /// <summary>
  3671. ///Represents strongly named DataRow class.
  3672. ///</summary>
  3673. public partial class AvtoRow : global::System.Data.DataRow {
  3674. private AvtoDataTable tableAvto;
  3675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3677. internal AvtoRow(global::System.Data.DataRowBuilder rb) :
  3678. base(rb) {
  3679. this.tableAvto = ((AvtoDataTable)(this.Table));
  3680. }
  3681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3683. public int Kod_avto {
  3684. get {
  3685. return ((int)(this[this.tableAvto.Kod_avtoColumn]));
  3686. }
  3687. set {
  3688. this[this.tableAvto.Kod_avtoColumn] = value;
  3689. }
  3690. }
  3691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3693. public string Model_avto {
  3694. get {
  3695. return ((string)(this[this.tableAvto.Model_avtoColumn]));
  3696. }
  3697. set {
  3698. this[this.tableAvto.Model_avtoColumn] = value;
  3699. }
  3700. }
  3701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3703. public string Cvet_avto {
  3704. get {
  3705. return ((string)(this[this.tableAvto.Cvet_avtoColumn]));
  3706. }
  3707. set {
  3708. this[this.tableAvto.Cvet_avtoColumn] = value;
  3709. }
  3710. }
  3711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3713. public string God_vipyska_avto {
  3714. get {
  3715. return ((string)(this[this.tableAvto.God_vipyska_avtoColumn]));
  3716. }
  3717. set {
  3718. this[this.tableAvto.God_vipyska_avtoColumn] = value;
  3719. }
  3720. }
  3721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3723. public string Gos_nomer_avto {
  3724. get {
  3725. return ((string)(this[this.tableAvto.Gos_nomer_avtoColumn]));
  3726. }
  3727. set {
  3728. this[this.tableAvto.Gos_nomer_avtoColumn] = value;
  3729. }
  3730. }
  3731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3733. public decimal strahovaya_stoimost_avto {
  3734. get {
  3735. return ((decimal)(this[this.tableAvto.strahovaya_stoimost_avtoColumn]));
  3736. }
  3737. set {
  3738. this[this.tableAvto.strahovaya_stoimost_avtoColumn] = value;
  3739. }
  3740. }
  3741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3743. public int Kod_strahovki {
  3744. get {
  3745. try {
  3746. return ((int)(this[this.tableAvto.Kod_strahovkiColumn]));
  3747. }
  3748. catch (global::System.InvalidCastException e) {
  3749. throw new global::System.Data.StrongTypingException("Значение для столбца \'Kod strahovki\' в таблице \'Avto\' равно DBNull.", e);
  3750. }
  3751. }
  3752. set {
  3753. this[this.tableAvto.Kod_strahovkiColumn] = value;
  3754. }
  3755. }
  3756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3758. public StrahovkaRow StrahovkaRow {
  3759. get {
  3760. return ((StrahovkaRow)(this.GetParentRow(this.Table.ParentRelations["FK_Avto_Strahovka"])));
  3761. }
  3762. set {
  3763. this.SetParentRow(value, this.Table.ParentRelations["FK_Avto_Strahovka"]);
  3764. }
  3765. }
  3766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3768. public bool IsKod_strahovkiNull() {
  3769. return this.IsNull(this.tableAvto.Kod_strahovkiColumn);
  3770. }
  3771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3773. public void SetKod_strahovkiNull() {
  3774. this[this.tableAvto.Kod_strahovkiColumn] = global::System.Convert.DBNull;
  3775. }
  3776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3778. public ProkatRow[] GetProkatRows() {
  3779. if ((this.Table.ChildRelations["FK_Prokat_Avto"] == null)) {
  3780. return new ProkatRow[0];
  3781. }
  3782. else {
  3783. return ((ProkatRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Prokat_Avto"])));
  3784. }
  3785. }
  3786. }
  3787. /// <summary>
  3788. ///Represents strongly named DataRow class.
  3789. ///</summary>
  3790. public partial class KlientRow : global::System.Data.DataRow {
  3791. private KlientDataTable tableKlient;
  3792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3794. internal KlientRow(global::System.Data.DataRowBuilder rb) :
  3795. base(rb) {
  3796. this.tableKlient = ((KlientDataTable)(this.Table));
  3797. }
  3798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3800. public int Kod_klienta {
  3801. get {
  3802. return ((int)(this[this.tableKlient.Kod_klientaColumn]));
  3803. }
  3804. set {
  3805. this[this.tableKlient.Kod_klientaColumn] = value;
  3806. }
  3807. }
  3808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3810. public string FIO_klienta {
  3811. get {
  3812. return ((string)(this[this.tableKlient.FIO_klientaColumn]));
  3813. }
  3814. set {
  3815. this[this.tableKlient.FIO_klientaColumn] = value;
  3816. }
  3817. }
  3818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3820. public string Seria_pasporta {
  3821. get {
  3822. return ((string)(this[this.tableKlient.Seria_pasportaColumn]));
  3823. }
  3824. set {
  3825. this[this.tableKlient.Seria_pasportaColumn] = value;
  3826. }
  3827. }
  3828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3830. public string Nomer_pasporta {
  3831. get {
  3832. return ((string)(this[this.tableKlient.Nomer_pasportaColumn]));
  3833. }
  3834. set {
  3835. this[this.tableKlient.Nomer_pasportaColumn] = value;
  3836. }
  3837. }
  3838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3840. public ProkatRow[] GetProkatRows() {
  3841. if ((this.Table.ChildRelations["FK_Prokat_Klient"] == null)) {
  3842. return new ProkatRow[0];
  3843. }
  3844. else {
  3845. return ((ProkatRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Prokat_Klient"])));
  3846. }
  3847. }
  3848. }
  3849. /// <summary>
  3850. ///Represents strongly named DataRow class.
  3851. ///</summary>
  3852. public partial class ProkatRow : global::System.Data.DataRow {
  3853. private ProkatDataTable tableProkat;
  3854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3856. internal ProkatRow(global::System.Data.DataRowBuilder rb) :
  3857. base(rb) {
  3858. this.tableProkat = ((ProkatDataTable)(this.Table));
  3859. }
  3860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3862. public int Kod_prokata {
  3863. get {
  3864. return ((int)(this[this.tableProkat.Kod_prokataColumn]));
  3865. }
  3866. set {
  3867. this[this.tableProkat.Kod_prokataColumn] = value;
  3868. }
  3869. }
  3870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3872. public decimal Stoimost_odnogo_dnya_prokata {
  3873. get {
  3874. return ((decimal)(this[this.tableProkat.Stoimost_odnogo_dnya_prokataColumn]));
  3875. }
  3876. set {
  3877. this[this.tableProkat.Stoimost_odnogo_dnya_prokataColumn] = value;
  3878. }
  3879. }
  3880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3882. public System.DateTime Data_nachala_prokata {
  3883. get {
  3884. return ((global::System.DateTime)(this[this.tableProkat.Data_nachala_prokataColumn]));
  3885. }
  3886. set {
  3887. this[this.tableProkat.Data_nachala_prokataColumn] = value;
  3888. }
  3889. }
  3890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3892. public string Kolichestvo_dnei_prokata {
  3893. get {
  3894. return ((string)(this[this.tableProkat.Kolichestvo_dnei_prokataColumn]));
  3895. }
  3896. set {
  3897. this[this.tableProkat.Kolichestvo_dnei_prokataColumn] = value;
  3898. }
  3899. }
  3900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3902. public int Kod_klienta {
  3903. get {
  3904. return ((int)(this[this.tableProkat.Kod_klientaColumn]));
  3905. }
  3906. set {
  3907. this[this.tableProkat.Kod_klientaColumn] = value;
  3908. }
  3909. }
  3910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3912. public int Kod_avto {
  3913. get {
  3914. return ((int)(this[this.tableProkat.Kod_avtoColumn]));
  3915. }
  3916. set {
  3917. this[this.tableProkat.Kod_avtoColumn] = value;
  3918. }
  3919. }
  3920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3922. public AvtoRow AvtoRow {
  3923. get {
  3924. return ((AvtoRow)(this.GetParentRow(this.Table.ParentRelations["FK_Prokat_Avto"])));
  3925. }
  3926. set {
  3927. this.SetParentRow(value, this.Table.ParentRelations["FK_Prokat_Avto"]);
  3928. }
  3929. }
  3930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3932. public KlientRow KlientRow {
  3933. get {
  3934. return ((KlientRow)(this.GetParentRow(this.Table.ParentRelations["FK_Prokat_Klient"])));
  3935. }
  3936. set {
  3937. this.SetParentRow(value, this.Table.ParentRelations["FK_Prokat_Klient"]);
  3938. }
  3939. }
  3940. }
  3941. /// <summary>
  3942. ///Represents strongly named DataRow class.
  3943. ///</summary>
  3944. public partial class StrahovkaRow : global::System.Data.DataRow {
  3945. private StrahovkaDataTable tableStrahovka;
  3946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3948. internal StrahovkaRow(global::System.Data.DataRowBuilder rb) :
  3949. base(rb) {
  3950. this.tableStrahovka = ((StrahovkaDataTable)(this.Table));
  3951. }
  3952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3954. public int Kod_strahovki {
  3955. get {
  3956. return ((int)(this[this.tableStrahovka.Kod_strahovkiColumn]));
  3957. }
  3958. set {
  3959. this[this.tableStrahovka.Kod_strahovkiColumn] = value;
  3960. }
  3961. }
  3962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3964. public decimal Strahovoi_vznos {
  3965. get {
  3966. return ((decimal)(this[this.tableStrahovka.Strahovoi_vznosColumn]));
  3967. }
  3968. set {
  3969. this[this.tableStrahovka.Strahovoi_vznosColumn] = value;
  3970. }
  3971. }
  3972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3974. public AvtoRow[] GetAvtoRows() {
  3975. if ((this.Table.ChildRelations["FK_Avto_Strahovka"] == null)) {
  3976. return new AvtoRow[0];
  3977. }
  3978. else {
  3979. return ((AvtoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Avto_Strahovka"])));
  3980. }
  3981. }
  3982. }
  3983. /// <summary>
  3984. ///Represents strongly named DataRow class.
  3985. ///</summary>
  3986. public partial class ПредставлениеПрокатRow : global::System.Data.DataRow {
  3987. private ПредставлениеПрокатDataTable tableПредставлениеПрокат;
  3988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3990. internal ПредставлениеПрокатRow(global::System.Data.DataRowBuilder rb) :
  3991. base(rb) {
  3992. this.tableПредставлениеПрокат = ((ПредставлениеПрокатDataTable)(this.Table));
  3993. }
  3994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3996. public string Model_avto {
  3997. get {
  3998. return ((string)(this[this.tableПредставлениеПрокат.Model_avtoColumn]));
  3999. }
  4000. set {
  4001. this[this.tableПредставлениеПрокат.Model_avtoColumn] = value;
  4002. }
  4003. }
  4004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4006. public string Gos_nomer_avto {
  4007. get {
  4008. return ((string)(this[this.tableПредставлениеПрокат.Gos_nomer_avtoColumn]));
  4009. }
  4010. set {
  4011. this[this.tableПредставлениеПрокат.Gos_nomer_avtoColumn] = value;
  4012. }
  4013. }
  4014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4016. public string FIO_klienta {
  4017. get {
  4018. return ((string)(this[this.tableПредставлениеПрокат.FIO_klientaColumn]));
  4019. }
  4020. set {
  4021. this[this.tableПредставлениеПрокат.FIO_klientaColumn] = value;
  4022. }
  4023. }
  4024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4026. public string Seria_pasporta {
  4027. get {
  4028. return ((string)(this[this.tableПредставлениеПрокат.Seria_pasportaColumn]));
  4029. }
  4030. set {
  4031. this[this.tableПредставлениеПрокат.Seria_pasportaColumn] = value;
  4032. }
  4033. }
  4034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4036. public string Nomer_pasporta {
  4037. get {
  4038. return ((string)(this[this.tableПредставлениеПрокат.Nomer_pasportaColumn]));
  4039. }
  4040. set {
  4041. this[this.tableПредставлениеПрокат.Nomer_pasportaColumn] = value;
  4042. }
  4043. }
  4044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4046. public decimal Stoimost_odnogo_dnya_prokata {
  4047. get {
  4048. return ((decimal)(this[this.tableПредставлениеПрокат.Stoimost_odnogo_dnya_prokataColumn]));
  4049. }
  4050. set {
  4051. this[this.tableПредставлениеПрокат.Stoimost_odnogo_dnya_prokataColumn] = value;
  4052. }
  4053. }
  4054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4056. public System.DateTime Data_nachala_prokata {
  4057. get {
  4058. return ((global::System.DateTime)(this[this.tableПредставлениеПрокат.Data_nachala_prokataColumn]));
  4059. }
  4060. set {
  4061. this[this.tableПредставлениеПрокат.Data_nachala_prokataColumn] = value;
  4062. }
  4063. }
  4064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4066. public string Kolichestvo_dnei_prokata {
  4067. get {
  4068. return ((string)(this[this.tableПредставлениеПрокат.Kolichestvo_dnei_prokataColumn]));
  4069. }
  4070. set {
  4071. this[this.tableПредставлениеПрокат.Kolichestvo_dnei_prokataColumn] = value;
  4072. }
  4073. }
  4074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4076. public string Дата_окончания_проката {
  4077. get {
  4078. try {
  4079. return ((string)(this[this.tableПредставлениеПрокат.Дата_окончания_прокатаColumn]));
  4080. }
  4081. catch (global::System.InvalidCastException e) {
  4082. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата окончания проката\' в таблице \'ПредставлениеПрокат\' рав" +
  4083. "но DBNull.", e);
  4084. }
  4085. }
  4086. set {
  4087. this[this.tableПредставлениеПрокат.Дата_окончания_прокатаColumn] = value;
  4088. }
  4089. }
  4090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4092. public bool IsДата_окончания_прокатаNull() {
  4093. return this.IsNull(this.tableПредставлениеПрокат.Дата_окончания_прокатаColumn);
  4094. }
  4095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4097. public void SetДата_окончания_прокатаNull() {
  4098. this[this.tableПредставлениеПрокат.Дата_окончания_прокатаColumn] = global::System.Convert.DBNull;
  4099. }
  4100. }
  4101. /// <summary>
  4102. ///Represents strongly named DataRow class.
  4103. ///</summary>
  4104. public partial class LOLRow : global::System.Data.DataRow {
  4105. private LOLDataTable tableLOL;
  4106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4108. internal LOLRow(global::System.Data.DataRowBuilder rb) :
  4109. base(rb) {
  4110. this.tableLOL = ((LOLDataTable)(this.Table));
  4111. }
  4112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4114. public string FIO_klienta {
  4115. get {
  4116. return ((string)(this[this.tableLOL.FIO_klientaColumn]));
  4117. }
  4118. set {
  4119. this[this.tableLOL.FIO_klientaColumn] = value;
  4120. }
  4121. }
  4122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4124. public string Model_avto {
  4125. get {
  4126. return ((string)(this[this.tableLOL.Model_avtoColumn]));
  4127. }
  4128. set {
  4129. this[this.tableLOL.Model_avtoColumn] = value;
  4130. }
  4131. }
  4132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4134. public string Gos_nomer_avto {
  4135. get {
  4136. return ((string)(this[this.tableLOL.Gos_nomer_avtoColumn]));
  4137. }
  4138. set {
  4139. this[this.tableLOL.Gos_nomer_avtoColumn] = value;
  4140. }
  4141. }
  4142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4144. public System.DateTime Data_nachala_prokata {
  4145. get {
  4146. return ((global::System.DateTime)(this[this.tableLOL.Data_nachala_prokataColumn]));
  4147. }
  4148. set {
  4149. this[this.tableLOL.Data_nachala_prokataColumn] = value;
  4150. }
  4151. }
  4152. }
  4153. /// <summary>
  4154. ///Represents strongly named DataRow class.
  4155. ///</summary>
  4156. public partial class LOL123Row : global::System.Data.DataRow {
  4157. private LOL123DataTable tableLOL123;
  4158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4160. internal LOL123Row(global::System.Data.DataRowBuilder rb) :
  4161. base(rb) {
  4162. this.tableLOL123 = ((LOL123DataTable)(this.Table));
  4163. }
  4164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4166. public string FIO_klienta {
  4167. get {
  4168. return ((string)(this[this.tableLOL123.FIO_klientaColumn]));
  4169. }
  4170. set {
  4171. this[this.tableLOL123.FIO_klientaColumn] = value;
  4172. }
  4173. }
  4174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4176. public string Model_avto {
  4177. get {
  4178. return ((string)(this[this.tableLOL123.Model_avtoColumn]));
  4179. }
  4180. set {
  4181. this[this.tableLOL123.Model_avtoColumn] = value;
  4182. }
  4183. }
  4184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4186. public string Gos_nomer_avto {
  4187. get {
  4188. return ((string)(this[this.tableLOL123.Gos_nomer_avtoColumn]));
  4189. }
  4190. set {
  4191. this[this.tableLOL123.Gos_nomer_avtoColumn] = value;
  4192. }
  4193. }
  4194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4196. public System.DateTime Data_nachala_prokata {
  4197. get {
  4198. return ((global::System.DateTime)(this[this.tableLOL123.Data_nachala_prokataColumn]));
  4199. }
  4200. set {
  4201. this[this.tableLOL123.Data_nachala_prokataColumn] = value;
  4202. }
  4203. }
  4204. }
  4205. /// <summary>
  4206. ///Represents strongly named DataRow class.
  4207. ///</summary>
  4208. public partial class LOL1234Row : global::System.Data.DataRow {
  4209. private LOL1234DataTable tableLOL1234;
  4210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4212. internal LOL1234Row(global::System.Data.DataRowBuilder rb) :
  4213. base(rb) {
  4214. this.tableLOL1234 = ((LOL1234DataTable)(this.Table));
  4215. }
  4216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4218. public string FIO_klienta {
  4219. get {
  4220. return ((string)(this[this.tableLOL1234.FIO_klientaColumn]));
  4221. }
  4222. set {
  4223. this[this.tableLOL1234.FIO_klientaColumn] = value;
  4224. }
  4225. }
  4226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4228. public string Model_avto {
  4229. get {
  4230. return ((string)(this[this.tableLOL1234.Model_avtoColumn]));
  4231. }
  4232. set {
  4233. this[this.tableLOL1234.Model_avtoColumn] = value;
  4234. }
  4235. }
  4236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4238. public string Gos_nomer_avto {
  4239. get {
  4240. return ((string)(this[this.tableLOL1234.Gos_nomer_avtoColumn]));
  4241. }
  4242. set {
  4243. this[this.tableLOL1234.Gos_nomer_avtoColumn] = value;
  4244. }
  4245. }
  4246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4248. public System.DateTime Data_nachala_prokata {
  4249. get {
  4250. return ((global::System.DateTime)(this[this.tableLOL1234.Data_nachala_prokataColumn]));
  4251. }
  4252. set {
  4253. this[this.tableLOL1234.Data_nachala_prokataColumn] = value;
  4254. }
  4255. }
  4256. }
  4257. /// <summary>
  4258. ///Represents strongly named DataRow class.
  4259. ///</summary>
  4260. public partial class LOL12345Row : global::System.Data.DataRow {
  4261. private LOL12345DataTable tableLOL12345;
  4262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4264. internal LOL12345Row(global::System.Data.DataRowBuilder rb) :
  4265. base(rb) {
  4266. this.tableLOL12345 = ((LOL12345DataTable)(this.Table));
  4267. }
  4268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4270. public string FIO_klienta {
  4271. get {
  4272. return ((string)(this[this.tableLOL12345.FIO_klientaColumn]));
  4273. }
  4274. set {
  4275. this[this.tableLOL12345.FIO_klientaColumn] = value;
  4276. }
  4277. }
  4278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4280. public string Model_avto {
  4281. get {
  4282. return ((string)(this[this.tableLOL12345.Model_avtoColumn]));
  4283. }
  4284. set {
  4285. this[this.tableLOL12345.Model_avtoColumn] = value;
  4286. }
  4287. }
  4288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4290. public string Gos_nomer_avto {
  4291. get {
  4292. return ((string)(this[this.tableLOL12345.Gos_nomer_avtoColumn]));
  4293. }
  4294. set {
  4295. this[this.tableLOL12345.Gos_nomer_avtoColumn] = value;
  4296. }
  4297. }
  4298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4300. public System.DateTime Data_nachala_prokata {
  4301. get {
  4302. return ((global::System.DateTime)(this[this.tableLOL12345.Data_nachala_prokataColumn]));
  4303. }
  4304. set {
  4305. this[this.tableLOL12345.Data_nachala_prokataColumn] = value;
  4306. }
  4307. }
  4308. }
  4309. /// <summary>
  4310. ///Represents strongly named DataRow class.
  4311. ///</summary>
  4312. public partial class LOL123456Row : global::System.Data.DataRow {
  4313. private LOL123456DataTable tableLOL123456;
  4314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4316. internal LOL123456Row(global::System.Data.DataRowBuilder rb) :
  4317. base(rb) {
  4318. this.tableLOL123456 = ((LOL123456DataTable)(this.Table));
  4319. }
  4320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4322. public string Model_avto {
  4323. get {
  4324. return ((string)(this[this.tableLOL123456.Model_avtoColumn]));
  4325. }
  4326. set {
  4327. this[this.tableLOL123456.Model_avtoColumn] = value;
  4328. }
  4329. }
  4330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4332. public string Gos_nomer_avto {
  4333. get {
  4334. return ((string)(this[this.tableLOL123456.Gos_nomer_avtoColumn]));
  4335. }
  4336. set {
  4337. this[this.tableLOL123456.Gos_nomer_avtoColumn] = value;
  4338. }
  4339. }
  4340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4342. public System.DateTime Data_nachala_prokata {
  4343. get {
  4344. return ((global::System.DateTime)(this[this.tableLOL123456.Data_nachala_prokataColumn]));
  4345. }
  4346. set {
  4347. this[this.tableLOL123456.Data_nachala_prokataColumn] = value;
  4348. }
  4349. }
  4350. }
  4351. /// <summary>
  4352. ///Represents strongly named DataRow class.
  4353. ///</summary>
  4354. public partial class PoiskRow : global::System.Data.DataRow {
  4355. private PoiskDataTable tablePoisk;
  4356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4358. internal PoiskRow(global::System.Data.DataRowBuilder rb) :
  4359. base(rb) {
  4360. this.tablePoisk = ((PoiskDataTable)(this.Table));
  4361. }
  4362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4364. public int Kod_avto {
  4365. get {
  4366. return ((int)(this[this.tablePoisk.Kod_avtoColumn]));
  4367. }
  4368. set {
  4369. this[this.tablePoisk.Kod_avtoColumn] = value;
  4370. }
  4371. }
  4372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4374. public string Model_avto {
  4375. get {
  4376. return ((string)(this[this.tablePoisk.Model_avtoColumn]));
  4377. }
  4378. set {
  4379. this[this.tablePoisk.Model_avtoColumn] = value;
  4380. }
  4381. }
  4382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4384. public string Cvet_avto {
  4385. get {
  4386. return ((string)(this[this.tablePoisk.Cvet_avtoColumn]));
  4387. }
  4388. set {
  4389. this[this.tablePoisk.Cvet_avtoColumn] = value;
  4390. }
  4391. }
  4392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4394. public string God_vipyska_avto {
  4395. get {
  4396. return ((string)(this[this.tablePoisk.God_vipyska_avtoColumn]));
  4397. }
  4398. set {
  4399. this[this.tablePoisk.God_vipyska_avtoColumn] = value;
  4400. }
  4401. }
  4402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4404. public string Gos_nomer_avto {
  4405. get {
  4406. return ((string)(this[this.tablePoisk.Gos_nomer_avtoColumn]));
  4407. }
  4408. set {
  4409. this[this.tablePoisk.Gos_nomer_avtoColumn] = value;
  4410. }
  4411. }
  4412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4414. public decimal strahovaya_stoimost_avto {
  4415. get {
  4416. return ((decimal)(this[this.tablePoisk.strahovaya_stoimost_avtoColumn]));
  4417. }
  4418. set {
  4419. this[this.tablePoisk.strahovaya_stoimost_avtoColumn] = value;
  4420. }
  4421. }
  4422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4424. public int Kod_strahovki {
  4425. get {
  4426. try {
  4427. return ((int)(this[this.tablePoisk.Kod_strahovkiColumn]));
  4428. }
  4429. catch (global::System.InvalidCastException e) {
  4430. throw new global::System.Data.StrongTypingException("Значение для столбца \'Kod strahovki\' в таблице \'Poisk\' равно DBNull.", e);
  4431. }
  4432. }
  4433. set {
  4434. this[this.tablePoisk.Kod_strahovkiColumn] = value;
  4435. }
  4436. }
  4437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4439. public bool IsKod_strahovkiNull() {
  4440. return this.IsNull(this.tablePoisk.Kod_strahovkiColumn);
  4441. }
  4442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4444. public void SetKod_strahovkiNull() {
  4445. this[this.tablePoisk.Kod_strahovkiColumn] = global::System.Convert.DBNull;
  4446. }
  4447. }
  4448. /// <summary>
  4449. ///Row event argument class
  4450. ///</summary>
  4451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4452. public class AvtoRowChangeEvent : global::System.EventArgs {
  4453. private AvtoRow eventRow;
  4454. private global::System.Data.DataRowAction eventAction;
  4455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4457. public AvtoRowChangeEvent(AvtoRow row, global::System.Data.DataRowAction action) {
  4458. this.eventRow = row;
  4459. this.eventAction = action;
  4460. }
  4461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4463. public AvtoRow Row {
  4464. get {
  4465. return this.eventRow;
  4466. }
  4467. }
  4468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4470. public global::System.Data.DataRowAction Action {
  4471. get {
  4472. return this.eventAction;
  4473. }
  4474. }
  4475. }
  4476. /// <summary>
  4477. ///Row event argument class
  4478. ///</summary>
  4479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4480. public class KlientRowChangeEvent : global::System.EventArgs {
  4481. private KlientRow eventRow;
  4482. private global::System.Data.DataRowAction eventAction;
  4483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4485. public KlientRowChangeEvent(KlientRow row, global::System.Data.DataRowAction action) {
  4486. this.eventRow = row;
  4487. this.eventAction = action;
  4488. }
  4489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4491. public KlientRow Row {
  4492. get {
  4493. return this.eventRow;
  4494. }
  4495. }
  4496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4498. public global::System.Data.DataRowAction Action {
  4499. get {
  4500. return this.eventAction;
  4501. }
  4502. }
  4503. }
  4504. /// <summary>
  4505. ///Row event argument class
  4506. ///</summary>
  4507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4508. public class ProkatRowChangeEvent : global::System.EventArgs {
  4509. private ProkatRow eventRow;
  4510. private global::System.Data.DataRowAction eventAction;
  4511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4513. public ProkatRowChangeEvent(ProkatRow row, global::System.Data.DataRowAction action) {
  4514. this.eventRow = row;
  4515. this.eventAction = action;
  4516. }
  4517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4519. public ProkatRow Row {
  4520. get {
  4521. return this.eventRow;
  4522. }
  4523. }
  4524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4526. public global::System.Data.DataRowAction Action {
  4527. get {
  4528. return this.eventAction;
  4529. }
  4530. }
  4531. }
  4532. /// <summary>
  4533. ///Row event argument class
  4534. ///</summary>
  4535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4536. public class StrahovkaRowChangeEvent : global::System.EventArgs {
  4537. private StrahovkaRow eventRow;
  4538. private global::System.Data.DataRowAction eventAction;
  4539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4541. public StrahovkaRowChangeEvent(StrahovkaRow row, global::System.Data.DataRowAction action) {
  4542. this.eventRow = row;
  4543. this.eventAction = action;
  4544. }
  4545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4547. public StrahovkaRow Row {
  4548. get {
  4549. return this.eventRow;
  4550. }
  4551. }
  4552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4554. public global::System.Data.DataRowAction Action {
  4555. get {
  4556. return this.eventAction;
  4557. }
  4558. }
  4559. }
  4560. /// <summary>
  4561. ///Row event argument class
  4562. ///</summary>
  4563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4564. public class ПредставлениеПрокатRowChangeEvent : global::System.EventArgs {
  4565. private ПредставлениеПрокатRow eventRow;
  4566. private global::System.Data.DataRowAction eventAction;
  4567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4569. public ПредставлениеПрокатRowChangeEvent(ПредставлениеПрокатRow row, global::System.Data.DataRowAction action) {
  4570. this.eventRow = row;
  4571. this.eventAction = action;
  4572. }
  4573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4575. public ПредставлениеПрокатRow Row {
  4576. get {
  4577. return this.eventRow;
  4578. }
  4579. }
  4580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4582. public global::System.Data.DataRowAction Action {
  4583. get {
  4584. return this.eventAction;
  4585. }
  4586. }
  4587. }
  4588. /// <summary>
  4589. ///Row event argument class
  4590. ///</summary>
  4591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4592. public class LOLRowChangeEvent : global::System.EventArgs {
  4593. private LOLRow eventRow;
  4594. private global::System.Data.DataRowAction eventAction;
  4595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4597. public LOLRowChangeEvent(LOLRow row, global::System.Data.DataRowAction action) {
  4598. this.eventRow = row;
  4599. this.eventAction = action;
  4600. }
  4601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4603. public LOLRow Row {
  4604. get {
  4605. return this.eventRow;
  4606. }
  4607. }
  4608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4610. public global::System.Data.DataRowAction Action {
  4611. get {
  4612. return this.eventAction;
  4613. }
  4614. }
  4615. }
  4616. /// <summary>
  4617. ///Row event argument class
  4618. ///</summary>
  4619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4620. public class LOL123RowChangeEvent : global::System.EventArgs {
  4621. private LOL123Row eventRow;
  4622. private global::System.Data.DataRowAction eventAction;
  4623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4625. public LOL123RowChangeEvent(LOL123Row row, global::System.Data.DataRowAction action) {
  4626. this.eventRow = row;
  4627. this.eventAction = action;
  4628. }
  4629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4631. public LOL123Row Row {
  4632. get {
  4633. return this.eventRow;
  4634. }
  4635. }
  4636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4638. public global::System.Data.DataRowAction Action {
  4639. get {
  4640. return this.eventAction;
  4641. }
  4642. }
  4643. }
  4644. /// <summary>
  4645. ///Row event argument class
  4646. ///</summary>
  4647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4648. public class LOL1234RowChangeEvent : global::System.EventArgs {
  4649. private LOL1234Row eventRow;
  4650. private global::System.Data.DataRowAction eventAction;
  4651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4653. public LOL1234RowChangeEvent(LOL1234Row row, global::System.Data.DataRowAction action) {
  4654. this.eventRow = row;
  4655. this.eventAction = action;
  4656. }
  4657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4659. public LOL1234Row Row {
  4660. get {
  4661. return this.eventRow;
  4662. }
  4663. }
  4664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4666. public global::System.Data.DataRowAction Action {
  4667. get {
  4668. return this.eventAction;
  4669. }
  4670. }
  4671. }
  4672. /// <summary>
  4673. ///Row event argument class
  4674. ///</summary>
  4675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4676. public class LOL12345RowChangeEvent : global::System.EventArgs {
  4677. private LOL12345Row eventRow;
  4678. private global::System.Data.DataRowAction eventAction;
  4679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4681. public LOL12345RowChangeEvent(LOL12345Row row, global::System.Data.DataRowAction action) {
  4682. this.eventRow = row;
  4683. this.eventAction = action;
  4684. }
  4685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4687. public LOL12345Row Row {
  4688. get {
  4689. return this.eventRow;
  4690. }
  4691. }
  4692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4694. public global::System.Data.DataRowAction Action {
  4695. get {
  4696. return this.eventAction;
  4697. }
  4698. }
  4699. }
  4700. /// <summary>
  4701. ///Row event argument class
  4702. ///</summary>
  4703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4704. public class LOL123456RowChangeEvent : global::System.EventArgs {
  4705. private LOL123456Row eventRow;
  4706. private global::System.Data.DataRowAction eventAction;
  4707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4709. public LOL123456RowChangeEvent(LOL123456Row row, global::System.Data.DataRowAction action) {
  4710. this.eventRow = row;
  4711. this.eventAction = action;
  4712. }
  4713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4715. public LOL123456Row Row {
  4716. get {
  4717. return this.eventRow;
  4718. }
  4719. }
  4720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4722. public global::System.Data.DataRowAction Action {
  4723. get {
  4724. return this.eventAction;
  4725. }
  4726. }
  4727. }
  4728. /// <summary>
  4729. ///Row event argument class
  4730. ///</summary>
  4731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4732. public class PoiskRowChangeEvent : global::System.EventArgs {
  4733. private PoiskRow eventRow;
  4734. private global::System.Data.DataRowAction eventAction;
  4735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4737. public PoiskRowChangeEvent(PoiskRow row, global::System.Data.DataRowAction action) {
  4738. this.eventRow = row;
  4739. this.eventAction = action;
  4740. }
  4741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4743. public PoiskRow Row {
  4744. get {
  4745. return this.eventRow;
  4746. }
  4747. }
  4748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4750. public global::System.Data.DataRowAction Action {
  4751. get {
  4752. return this.eventAction;
  4753. }
  4754. }
  4755. }
  4756. }
  4757. }
  4758. namespace avtoprokatvel.Prokatavto06DataSetTableAdapters {
  4759. /// <summary>
  4760. ///Represents the connection and commands used to retrieve and save data.
  4761. ///</summary>
  4762. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4763. [global::System.ComponentModel.ToolboxItem(true)]
  4764. [global::System.ComponentModel.DataObjectAttribute(true)]
  4765. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4766. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4767. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4768. public partial class AvtoTableAdapter : global::System.ComponentModel.Component {
  4769. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4770. private global::System.Data.SqlClient.SqlConnection _connection;
  4771. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4772. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4773. private bool _clearBeforeFill;
  4774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4776. public AvtoTableAdapter() {
  4777. this.ClearBeforeFill = true;
  4778. }
  4779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4781. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4782. get {
  4783. if ((this._adapter == null)) {
  4784. this.InitAdapter();
  4785. }
  4786. return this._adapter;
  4787. }
  4788. }
  4789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4791. internal global::System.Data.SqlClient.SqlConnection Connection {
  4792. get {
  4793. if ((this._connection == null)) {
  4794. this.InitConnection();
  4795. }
  4796. return this._connection;
  4797. }
  4798. set {
  4799. this._connection = value;
  4800. if ((this.Adapter.InsertCommand != null)) {
  4801. this.Adapter.InsertCommand.Connection = value;
  4802. }
  4803. if ((this.Adapter.DeleteCommand != null)) {
  4804. this.Adapter.DeleteCommand.Connection = value;
  4805. }
  4806. if ((this.Adapter.UpdateCommand != null)) {
  4807. this.Adapter.UpdateCommand.Connection = value;
  4808. }
  4809. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4810. if ((this.CommandCollection[i] != null)) {
  4811. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4812. }
  4813. }
  4814. }
  4815. }
  4816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4818. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4819. get {
  4820. return this._transaction;
  4821. }
  4822. set {
  4823. this._transaction = value;
  4824. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4825. this.CommandCollection[i].Transaction = this._transaction;
  4826. }
  4827. if (((this.Adapter != null)
  4828. && (this.Adapter.DeleteCommand != null))) {
  4829. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4830. }
  4831. if (((this.Adapter != null)
  4832. && (this.Adapter.InsertCommand != null))) {
  4833. this.Adapter.InsertCommand.Transaction = this._transaction;
  4834. }
  4835. if (((this.Adapter != null)
  4836. && (this.Adapter.UpdateCommand != null))) {
  4837. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4838. }
  4839. }
  4840. }
  4841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4843. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4844. get {
  4845. if ((this._commandCollection == null)) {
  4846. this.InitCommandCollection();
  4847. }
  4848. return this._commandCollection;
  4849. }
  4850. }
  4851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4853. public bool ClearBeforeFill {
  4854. get {
  4855. return this._clearBeforeFill;
  4856. }
  4857. set {
  4858. this._clearBeforeFill = value;
  4859. }
  4860. }
  4861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4863. private void InitAdapter() {
  4864. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4865. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4866. tableMapping.SourceTable = "Table";
  4867. tableMapping.DataSetTable = "Avto";
  4868. tableMapping.ColumnMappings.Add("Kod avto", "Kod avto");
  4869. tableMapping.ColumnMappings.Add("Model avto", "Model avto");
  4870. tableMapping.ColumnMappings.Add("Cvet avto", "Cvet avto");
  4871. tableMapping.ColumnMappings.Add("God vipyska avto", "God vipyska avto");
  4872. tableMapping.ColumnMappings.Add("Gos nomer avto", "Gos nomer avto");
  4873. tableMapping.ColumnMappings.Add("strahovaya stoimost avto", "strahovaya stoimost avto");
  4874. tableMapping.ColumnMappings.Add("Kod strahovki", "Kod strahovki");
  4875. this._adapter.TableMappings.Add(tableMapping);
  4876. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4877. this._adapter.DeleteCommand.Connection = this.Connection;
  4878. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Avto] WHERE (([Kod avto] = @Original_Kod_avto) AND ([Model avto] = @Original_Model_avto) AND ([Cvet avto] = @Original_Cvet_avto) AND ([God vipyska avto] = @Original_God_vipyska_avto) AND ([Gos nomer avto] = @Original_Gos_nomer_avto) AND ([strahovaya stoimost avto] = @Original_strahovaya_stoimost_avto) AND ((@IsNull_Kod_strahovki = 1 AND [Kod strahovki] IS NULL) OR ([Kod strahovki] = @Original_Kod_strahovki)))";
  4879. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4880. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_avto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4881. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Model_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4882. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cvet_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cvet avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4883. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_God_vipyska_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "God vipyska avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4884. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Gos_nomer_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gos nomer avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4885. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_strahovaya_stoimost_avto", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strahovaya stoimost avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4886. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Kod_strahovki", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod strahovki", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4887. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_strahovki", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod strahovki", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4888. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4889. this._adapter.InsertCommand.Connection = this.Connection;
  4890. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Avto] ([Model avto], [Cvet avto], [God vipyska avto], [Gos nomer avto], [strahovaya stoimost avto], [Kod strahovki]) VALUES (@Model_avto, @Cvet_avto, @God_vipyska_avto, @Gos_nomer_avto, @strahovaya_stoimost_avto, @Kod_strahovki);
  4891. SELECT [Kod avto], [Model avto], [Cvet avto], [God vipyska avto], [Gos nomer avto], [strahovaya stoimost avto], [Kod strahovki] FROM Avto WHERE ([Kod avto] = SCOPE_IDENTITY())";
  4892. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4893. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Model_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model avto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4894. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cvet_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cvet avto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4895. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@God_vipyska_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "God vipyska avto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4896. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Gos_nomer_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gos nomer avto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4897. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@strahovaya_stoimost_avto", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strahovaya stoimost avto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4898. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Kod_strahovki", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod strahovki", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4899. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4900. this._adapter.UpdateCommand.Connection = this.Connection;
  4901. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Avto] SET [Model avto] = @Model_avto, [Cvet avto] = @Cvet_avto, [God vipyska avto] = @God_vipyska_avto, [Gos nomer avto] = @Gos_nomer_avto, [strahovaya stoimost avto] = @strahovaya_stoimost_avto, [Kod strahovki] = @Kod_strahovki WHERE (([Kod avto] = @Original_Kod_avto) AND ([Model avto] = @Original_Model_avto) AND ([Cvet avto] = @Original_Cvet_avto) AND ([God vipyska avto] = @Original_God_vipyska_avto) AND ([Gos nomer avto] = @Original_Gos_nomer_avto) AND ([strahovaya stoimost avto] = @Original_strahovaya_stoimost_avto) AND ((@IsNull_Kod_strahovki = 1 AND [Kod strahovki] IS NULL) OR ([Kod strahovki] = @Original_Kod_strahovki)));
  4902. SELECT [Kod avto], [Model avto], [Cvet avto], [God vipyska avto], [Gos nomer avto], [strahovaya stoimost avto], [Kod strahovki] FROM Avto WHERE ([Kod avto] = @Kod_avto)";
  4903. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4904. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Model_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model avto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4905. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cvet_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cvet avto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4906. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@God_vipyska_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "God vipyska avto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4907. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Gos_nomer_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gos nomer avto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4908. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@strahovaya_stoimost_avto", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strahovaya stoimost avto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4909. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Kod_strahovki", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod strahovki", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4910. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_avto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4911. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Model_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Model avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4912. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cvet_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cvet avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4913. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_God_vipyska_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "God vipyska avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4914. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Gos_nomer_avto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gos nomer avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4915. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_strahovaya_stoimost_avto", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "strahovaya stoimost avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4916. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Kod_strahovki", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod strahovki", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4917. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_strahovki", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod strahovki", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4918. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Kod_avto", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Kod avto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4919. }
  4920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4922. private void InitConnection() {
  4923. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4924. this._connection.ConnectionString = global::avtoprokatvel.Properties.Settings.Default.Prokatavto06ConnectionString;
  4925. }
  4926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4928. private void InitCommandCollection() {
  4929. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4930. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4931. this._commandCollection[0].Connection = this.Connection;
  4932. this._commandCollection[0].CommandText = "SELECT [Kod avto], [Model avto], [Cvet avto], [God vipyska avto], [Gos nomer avto" +
  4933. "], [strahovaya stoimost avto], [Kod strahovki] FROM dbo.Avto";
  4934. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4935. }
  4936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4938. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4939. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4940. public virtual int Fill(Prokatavto06DataSet.AvtoDataTable dataTable) {
  4941. this.Adapter.SelectCommand = this.CommandCollection[0];
  4942. if ((this.ClearBeforeFill == true)) {
  4943. dataTable.Clear();
  4944. }
  4945. int returnValue = this.Adapter.Fill(dataTable);
  4946. return returnValue;
  4947. }
  4948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4950. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4951. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4952. public virtual Prokatavto06DataSet.AvtoDataTable GetData() {
  4953. this.Adapter.SelectCommand = this.CommandCollection[0];
  4954. Prokatavto06DataSet.AvtoDataTable dataTable = new Prokatavto06DataSet.AvtoDataTable();
  4955. this.Adapter.Fill(dataTable);
  4956. return dataTable;
  4957. }
  4958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4960. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4961. public virtual int Update(Prokatavto06DataSet.AvtoDataTable dataTable) {
  4962. return this.Adapter.Update(dataTable);
  4963. }
  4964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4966. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4967. public virtual int Update(Prokatavto06DataSet dataSet) {
  4968. return this.Adapter.Update(dataSet, "Avto");
  4969. }
  4970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4972. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4973. public virtual int Update(global::System.Data.DataRow dataRow) {
  4974. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4975. dataRow});
  4976. }
  4977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4979. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4980. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4981. return this.Adapter.Update(dataRows);
  4982. }
  4983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4985. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4986. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4987. public virtual int Delete(int Original_Kod_avto, string Original_Model_avto, string Original_Cvet_avto, string Original_God_vipyska_avto, string Original_Gos_nomer_avto, decimal Original_strahovaya_stoimost_avto, global::System.Nullable<int> Original_Kod_strahovki) {
  4988. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Kod_avto));
  4989. if ((Original_Model_avto == null)) {
  4990. throw new global::System.ArgumentNullException("Original_Model_avto");
  4991. }
  4992. else {
  4993. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Model_avto));
  4994. }
  4995. if ((Original_Cvet_avto == null)) {
  4996. throw new global::System.ArgumentNullException("Original_Cvet_avto");
  4997. }
  4998. else {
  4999. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Cvet_avto));
  5000. }
  5001. if ((Original_God_vipyska_avto == null)) {
  5002. throw new global::System.ArgumentNullException("Original_God_vipyska_avto");
  5003. }
  5004. else {
  5005. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_God_vipyska_avto));
  5006. }
  5007. if ((Original_Gos_nomer_avto == null)) {
  5008. throw new global::System.ArgumentNullException("Original_Gos_nomer_avto");
  5009. }
  5010. else {
  5011. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Gos_nomer_avto));
  5012. }
  5013. this.Adapter.DeleteCommand.Parameters[5].Value = ((decimal)(Original_strahovaya_stoimost_avto));
  5014. if ((Original_Kod_strahovki.HasValue == true)) {
  5015. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  5016. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_Kod_strahovki.Value));
  5017. }
  5018. else {
  5019. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  5020. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  5021. }
  5022. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5023. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5024. != global::System.Data.ConnectionState.Open)) {
  5025. this.Adapter.DeleteCommand.Connection.Open();
  5026. }
  5027. try {
  5028. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5029. return returnValue;
  5030. }
  5031. finally {
  5032. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5033. this.Adapter.DeleteCommand.Connection.Close();
  5034. }
  5035. }
  5036. }
  5037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5039. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5040. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5041. public virtual int Insert(string Model_avto, string Cvet_avto, string God_vipyska_avto, string Gos_nomer_avto, decimal strahovaya_stoimost_avto, global::System.Nullable<int> Kod_strahovki) {
  5042. if ((Model_avto == null)) {
  5043. throw new global::System.ArgumentNullException("Model_avto");
  5044. }
  5045. else {
  5046. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Model_avto));
  5047. }
  5048. if ((Cvet_avto == null)) {
  5049. throw new global::System.ArgumentNullException("Cvet_avto");
  5050. }
  5051. else {
  5052. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Cvet_avto));
  5053. }
  5054. if ((God_vipyska_avto == null)) {
  5055. throw new global::System.ArgumentNullException("God_vipyska_avto");
  5056. }
  5057. else {
  5058. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(God_vipyska_avto));
  5059. }
  5060. if ((Gos_nomer_avto == null)) {
  5061. throw new global::System.ArgumentNullException("Gos_nomer_avto");
  5062. }
  5063. else {
  5064. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Gos_nomer_avto));
  5065. }
  5066. this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(strahovaya_stoimost_avto));
  5067. if ((Kod_strahovki.HasValue == true)) {
  5068. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(Kod_strahovki.Value));
  5069. }
  5070. else {
  5071. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5072. }
  5073. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5074. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5075. != global::System.Data.ConnectionState.Open)) {
  5076. this.Adapter.InsertCommand.Connection.Open();
  5077. }
  5078. try {
  5079. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5080. return returnValue;
  5081. }
  5082. finally {
  5083. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5084. this.Adapter.InsertCommand.Connection.Close();
  5085. }
  5086. }
  5087. }
  5088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5090. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5091. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5092. public virtual int Update(string Model_avto, string Cvet_avto, string God_vipyska_avto, string Gos_nomer_avto, decimal strahovaya_stoimost_avto, global::System.Nullable<int> Kod_strahovki, int Original_Kod_avto, string Original_Model_avto, string Original_Cvet_avto, string Original_God_vipyska_avto, string Original_Gos_nomer_avto, decimal Original_strahovaya_stoimost_avto, global::System.Nullable<int> Original_Kod_strahovki, int Kod_avto) {
  5093. if ((Model_avto == null)) {
  5094. throw new global::System.ArgumentNullException("Model_avto");
  5095. }
  5096. else {
  5097. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Model_avto));
  5098. }
  5099. if ((Cvet_avto == null)) {
  5100. throw new global::System.ArgumentNullException("Cvet_avto");
  5101. }
  5102. else {
  5103. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Cvet_avto));
  5104. }
  5105. if ((God_vipyska_avto == null)) {
  5106. throw new global::System.ArgumentNullException("God_vipyska_avto");
  5107. }
  5108. else {
  5109. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(God_vipyska_avto));
  5110. }
  5111. if ((Gos_nomer_avto == null)) {
  5112. throw new global::System.ArgumentNullException("Gos_nomer_avto");
  5113. }
  5114. else {
  5115. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Gos_nomer_avto));
  5116. }
  5117. this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(strahovaya_stoimost_avto));
  5118. if ((Kod_strahovki.HasValue == true)) {
  5119. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Kod_strahovki.Value));
  5120. }
  5121. else {
  5122. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5123. }
  5124. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Kod_avto));
  5125. if ((Original_Model_avto == null)) {
  5126. throw new global::System.ArgumentNullException("Original_Model_avto");
  5127. }
  5128. else {
  5129. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Model_avto));
  5130. }
  5131. if ((Original_Cvet_avto == null)) {
  5132. throw new global::System.ArgumentNullException("Original_Cvet_avto");
  5133. }
  5134. else {
  5135. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Cvet_avto));
  5136. }
  5137. if ((Original_God_vipyska_avto == null)) {
  5138. throw new global::System.ArgumentNullException("Original_God_vipyska_avto");
  5139. }
  5140. else {
  5141. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_God_vipyska_avto));
  5142. }
  5143. if ((Original_Gos_nomer_avto == null)) {
  5144. throw new global::System.ArgumentNullException("Original_Gos_nomer_avto");
  5145. }
  5146. else {
  5147. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Gos_nomer_avto));
  5148. }
  5149. this.Adapter.UpdateCommand.Parameters[11].Value = ((decimal)(Original_strahovaya_stoimost_avto));
  5150. if ((Original_Kod_strahovki.HasValue == true)) {
  5151. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5152. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_Kod_strahovki.Value));
  5153. }
  5154. else {
  5155. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5156. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5157. }
  5158. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Kod_avto));
  5159. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5160. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5161. != global::System.Data.ConnectionState.Open)) {
  5162. this.Adapter.UpdateCommand.Connection.Open();
  5163. }
  5164. try {
  5165. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5166. return returnValue;
  5167. }
  5168. finally {
  5169. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5170. this.Adapter.UpdateCommand.Connection.Close();
  5171. }
  5172. }
  5173. }
  5174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5176. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5177. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5178. public virtual int Update(string Model_avto, string Cvet_avto, string God_vipyska_avto, string Gos_nomer_avto, decimal strahovaya_stoimost_avto, global::System.Nullable<int> Kod_strahovki, int Original_Kod_avto, string Original_Model_avto, string Original_Cvet_avto, string Original_God_vipyska_avto, string Original_Gos_nomer_avto, decimal Original_strahovaya_stoimost_avto, global::System.Nullable<int> Original_Kod_strahovki) {
  5179. return this.Update(Model_avto, Cvet_avto, God_vipyska_avto, Gos_nomer_avto, strahovaya_stoimost_avto, Kod_strahovki, Original_Kod_avto, Original_Model_avto, Original_Cvet_avto, Original_God_vipyska_avto, Original_Gos_nomer_avto, Original_strahovaya_stoimost_avto, Original_Kod_strahovki, Original_Kod_avto);
  5180. }
  5181. }
  5182. /// <summary>
  5183. ///Represents the connection and commands used to retrieve and save data.
  5184. ///</summary>
  5185. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5186. [global::System.ComponentModel.ToolboxItem(true)]
  5187. [global::System.ComponentModel.DataObjectAttribute(true)]
  5188. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5189. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5190. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5191. public partial class KlientTableAdapter : global::System.ComponentModel.Component {
  5192. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5193. private global::System.Data.SqlClient.SqlConnection _connection;
  5194. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5195. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5196. private bool _clearBeforeFill;
  5197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5199. public KlientTableAdapter() {
  5200. this.ClearBeforeFill = true;
  5201. }
  5202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5204. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5205. get {
  5206. if ((this._adapter == null)) {
  5207. this.InitAdapter();
  5208. }
  5209. return this._adapter;
  5210. }
  5211. }
  5212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5214. internal global::System.Data.SqlClient.SqlConnection Connection {
  5215. get {
  5216. if ((this._connection == null)) {
  5217. this.InitConnection();
  5218. }
  5219. return this._connection;
  5220. }
  5221. set {
  5222. this._connection = value;
  5223. if ((this.Adapter.InsertCommand != null)) {
  5224. this.Adapter.InsertCommand.Connection = value;
  5225. }
  5226. if ((this.Adapter.DeleteCommand != null)) {
  5227. this.Adapter.DeleteCommand.Connection = value;
  5228. }
  5229. if ((this.Adapter.UpdateCommand != null)) {
  5230. this.Adapter.UpdateCommand.Connection = value;
  5231. }
  5232. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5233. if ((this.CommandCollection[i] != null)) {
  5234. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5235. }
  5236. }
  5237. }
  5238. }
  5239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5241. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5242. get {
  5243. return this._transaction;
  5244. }
  5245. set {
  5246. this._transaction = value;
  5247. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5248. this.CommandCollection[i].Transaction = this._transaction;
  5249. }
  5250. if (((this.Adapter != null)
  5251. && (this.Adapter.DeleteCommand != null))) {
  5252. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5253. }
  5254. if (((this.Adapter != null)
  5255. && (this.Adapter.InsertCommand != null))) {
  5256. this.Adapter.InsertCommand.Transaction = this._transaction;
  5257. }
  5258. if (((this.Adapter != null)
  5259. && (this.Adapter.UpdateCommand != null))) {
  5260. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5261. }
  5262. }
  5263. }
  5264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5266. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5267. get {
  5268. if ((this._commandCollection == null)) {
  5269. this.InitCommandCollection();
  5270. }
  5271. return this._commandCollection;
  5272. }
  5273. }
  5274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5276. public bool ClearBeforeFill {
  5277. get {
  5278. return this._clearBeforeFill;
  5279. }
  5280. set {
  5281. this._clearBeforeFill = value;
  5282. }
  5283. }
  5284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5286. private void InitAdapter() {
  5287. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5288. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5289. tableMapping.SourceTable = "Table";
  5290. tableMapping.DataSetTable = "Klient";
  5291. tableMapping.ColumnMappings.Add("Kod klienta", "Kod klienta");
  5292. tableMapping.ColumnMappings.Add("FIO klienta", "FIO klienta");
  5293. tableMapping.ColumnMappings.Add("Seria pasporta", "Seria pasporta");
  5294. tableMapping.ColumnMappings.Add("Nomer pasporta", "Nomer pasporta");
  5295. this._adapter.TableMappings.Add(tableMapping);
  5296. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5297. this._adapter.DeleteCommand.Connection = this.Connection;
  5298. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Klient] WHERE (([Kod klienta] = @Original_Kod_klienta) AND ([F" +
  5299. "IO klienta] = @Original_FIO_klienta) AND ([Seria pasporta] = @Original_Seria_pas" +
  5300. "porta) AND ([Nomer pasporta] = @Original_Nomer_pasporta))";
  5301. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5302. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_klienta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod klienta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5303. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FIO_klienta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FIO klienta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5304. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Seria_pasporta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Seria pasporta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5305. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nomer_pasporta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nomer pasporta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5306. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5307. this._adapter.InsertCommand.Connection = this.Connection;
  5308. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Klient] ([FIO klienta], [Seria pasporta], [Nomer pasporta]) VALUES (@FIO_klienta, @Seria_pasporta, @Nomer_pasporta);
  5309. SELECT [Kod klienta], [FIO klienta], [Seria pasporta], [Nomer pasporta] FROM Klient WHERE ([Kod klienta] = SCOPE_IDENTITY())";
  5310. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5311. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FIO_klienta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FIO klienta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5312. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Seria_pasporta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Seria pasporta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5313. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nomer_pasporta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nomer pasporta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5314. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5315. this._adapter.UpdateCommand.Connection = this.Connection;
  5316. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Klient] SET [FIO klienta] = @FIO_klienta, [Seria pasporta] = @Seria_pasporta, [Nomer pasporta] = @Nomer_pasporta WHERE (([Kod klienta] = @Original_Kod_klienta) AND ([FIO klienta] = @Original_FIO_klienta) AND ([Seria pasporta] = @Original_Seria_pasporta) AND ([Nomer pasporta] = @Original_Nomer_pasporta));
  5317. SELECT [Kod klienta], [FIO klienta], [Seria pasporta], [Nomer pasporta] FROM Klient WHERE ([Kod klienta] = @Kod_klienta)";
  5318. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5319. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FIO_klienta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FIO klienta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5320. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Seria_pasporta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Seria pasporta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5321. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nomer_pasporta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nomer pasporta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5322. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_klienta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod klienta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5323. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FIO_klienta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FIO klienta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5324. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Seria_pasporta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Seria pasporta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5325. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nomer_pasporta", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nomer pasporta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5326. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Kod_klienta", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Kod klienta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5327. }
  5328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5330. private void InitConnection() {
  5331. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5332. this._connection.ConnectionString = global::avtoprokatvel.Properties.Settings.Default.Prokatavto06ConnectionString;
  5333. }
  5334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5336. private void InitCommandCollection() {
  5337. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5338. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5339. this._commandCollection[0].Connection = this.Connection;
  5340. this._commandCollection[0].CommandText = "SELECT [Kod klienta], [FIO klienta], [Seria pasporta], [Nomer pasporta] FROM dbo." +
  5341. "Klient";
  5342. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5343. }
  5344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5346. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5347. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5348. public virtual int Fill(Prokatavto06DataSet.KlientDataTable dataTable) {
  5349. this.Adapter.SelectCommand = this.CommandCollection[0];
  5350. if ((this.ClearBeforeFill == true)) {
  5351. dataTable.Clear();
  5352. }
  5353. int returnValue = this.Adapter.Fill(dataTable);
  5354. return returnValue;
  5355. }
  5356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5358. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5359. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5360. public virtual Prokatavto06DataSet.KlientDataTable GetData() {
  5361. this.Adapter.SelectCommand = this.CommandCollection[0];
  5362. Prokatavto06DataSet.KlientDataTable dataTable = new Prokatavto06DataSet.KlientDataTable();
  5363. this.Adapter.Fill(dataTable);
  5364. return dataTable;
  5365. }
  5366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5368. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5369. public virtual int Update(Prokatavto06DataSet.KlientDataTable dataTable) {
  5370. return this.Adapter.Update(dataTable);
  5371. }
  5372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5374. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5375. public virtual int Update(Prokatavto06DataSet dataSet) {
  5376. return this.Adapter.Update(dataSet, "Klient");
  5377. }
  5378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5380. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5381. public virtual int Update(global::System.Data.DataRow dataRow) {
  5382. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5383. dataRow});
  5384. }
  5385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5387. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5388. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5389. return this.Adapter.Update(dataRows);
  5390. }
  5391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5393. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5394. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5395. public virtual int Delete(int Original_Kod_klienta, string Original_FIO_klienta, string Original_Seria_pasporta, string Original_Nomer_pasporta) {
  5396. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Kod_klienta));
  5397. if ((Original_FIO_klienta == null)) {
  5398. throw new global::System.ArgumentNullException("Original_FIO_klienta");
  5399. }
  5400. else {
  5401. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_FIO_klienta));
  5402. }
  5403. if ((Original_Seria_pasporta == null)) {
  5404. throw new global::System.ArgumentNullException("Original_Seria_pasporta");
  5405. }
  5406. else {
  5407. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Seria_pasporta));
  5408. }
  5409. if ((Original_Nomer_pasporta == null)) {
  5410. throw new global::System.ArgumentNullException("Original_Nomer_pasporta");
  5411. }
  5412. else {
  5413. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Nomer_pasporta));
  5414. }
  5415. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5416. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5417. != global::System.Data.ConnectionState.Open)) {
  5418. this.Adapter.DeleteCommand.Connection.Open();
  5419. }
  5420. try {
  5421. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5422. return returnValue;
  5423. }
  5424. finally {
  5425. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5426. this.Adapter.DeleteCommand.Connection.Close();
  5427. }
  5428. }
  5429. }
  5430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5432. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5433. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5434. public virtual int Insert(string FIO_klienta, string Seria_pasporta, string Nomer_pasporta) {
  5435. if ((FIO_klienta == null)) {
  5436. throw new global::System.ArgumentNullException("FIO_klienta");
  5437. }
  5438. else {
  5439. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(FIO_klienta));
  5440. }
  5441. if ((Seria_pasporta == null)) {
  5442. throw new global::System.ArgumentNullException("Seria_pasporta");
  5443. }
  5444. else {
  5445. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Seria_pasporta));
  5446. }
  5447. if ((Nomer_pasporta == null)) {
  5448. throw new global::System.ArgumentNullException("Nomer_pasporta");
  5449. }
  5450. else {
  5451. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Nomer_pasporta));
  5452. }
  5453. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5454. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5455. != global::System.Data.ConnectionState.Open)) {
  5456. this.Adapter.InsertCommand.Connection.Open();
  5457. }
  5458. try {
  5459. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5460. return returnValue;
  5461. }
  5462. finally {
  5463. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5464. this.Adapter.InsertCommand.Connection.Close();
  5465. }
  5466. }
  5467. }
  5468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5470. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5471. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5472. public virtual int Update(string FIO_klienta, string Seria_pasporta, string Nomer_pasporta, int Original_Kod_klienta, string Original_FIO_klienta, string Original_Seria_pasporta, string Original_Nomer_pasporta, int Kod_klienta) {
  5473. if ((FIO_klienta == null)) {
  5474. throw new global::System.ArgumentNullException("FIO_klienta");
  5475. }
  5476. else {
  5477. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(FIO_klienta));
  5478. }
  5479. if ((Seria_pasporta == null)) {
  5480. throw new global::System.ArgumentNullException("Seria_pasporta");
  5481. }
  5482. else {
  5483. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Seria_pasporta));
  5484. }
  5485. if ((Nomer_pasporta == null)) {
  5486. throw new global::System.ArgumentNullException("Nomer_pasporta");
  5487. }
  5488. else {
  5489. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Nomer_pasporta));
  5490. }
  5491. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_Kod_klienta));
  5492. if ((Original_FIO_klienta == null)) {
  5493. throw new global::System.ArgumentNullException("Original_FIO_klienta");
  5494. }
  5495. else {
  5496. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_FIO_klienta));
  5497. }
  5498. if ((Original_Seria_pasporta == null)) {
  5499. throw new global::System.ArgumentNullException("Original_Seria_pasporta");
  5500. }
  5501. else {
  5502. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Seria_pasporta));
  5503. }
  5504. if ((Original_Nomer_pasporta == null)) {
  5505. throw new global::System.ArgumentNullException("Original_Nomer_pasporta");
  5506. }
  5507. else {
  5508. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Nomer_pasporta));
  5509. }
  5510. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Kod_klienta));
  5511. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5512. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5513. != global::System.Data.ConnectionState.Open)) {
  5514. this.Adapter.UpdateCommand.Connection.Open();
  5515. }
  5516. try {
  5517. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5518. return returnValue;
  5519. }
  5520. finally {
  5521. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5522. this.Adapter.UpdateCommand.Connection.Close();
  5523. }
  5524. }
  5525. }
  5526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5528. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5529. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5530. public virtual int Update(string FIO_klienta, string Seria_pasporta, string Nomer_pasporta, int Original_Kod_klienta, string Original_FIO_klienta, string Original_Seria_pasporta, string Original_Nomer_pasporta) {
  5531. return this.Update(FIO_klienta, Seria_pasporta, Nomer_pasporta, Original_Kod_klienta, Original_FIO_klienta, Original_Seria_pasporta, Original_Nomer_pasporta, Original_Kod_klienta);
  5532. }
  5533. }
  5534. /// <summary>
  5535. ///Represents the connection and commands used to retrieve and save data.
  5536. ///</summary>
  5537. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5538. [global::System.ComponentModel.ToolboxItem(true)]
  5539. [global::System.ComponentModel.DataObjectAttribute(true)]
  5540. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5541. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5543. public partial class ProkatTableAdapter : global::System.ComponentModel.Component {
  5544. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5545. private global::System.Data.SqlClient.SqlConnection _connection;
  5546. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5547. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5548. private bool _clearBeforeFill;
  5549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5551. public ProkatTableAdapter() {
  5552. this.ClearBeforeFill = true;
  5553. }
  5554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5556. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5557. get {
  5558. if ((this._adapter == null)) {
  5559. this.InitAdapter();
  5560. }
  5561. return this._adapter;
  5562. }
  5563. }
  5564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5566. internal global::System.Data.SqlClient.SqlConnection Connection {
  5567. get {
  5568. if ((this._connection == null)) {
  5569. this.InitConnection();
  5570. }
  5571. return this._connection;
  5572. }
  5573. set {
  5574. this._connection = value;
  5575. if ((this.Adapter.InsertCommand != null)) {
  5576. this.Adapter.InsertCommand.Connection = value;
  5577. }
  5578. if ((this.Adapter.DeleteCommand != null)) {
  5579. this.Adapter.DeleteCommand.Connection = value;
  5580. }
  5581. if ((this.Adapter.UpdateCommand != null)) {
  5582. this.Adapter.UpdateCommand.Connection = value;
  5583. }
  5584. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5585. if ((this.CommandCollection[i] != null)) {
  5586. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5587. }
  5588. }
  5589. }
  5590. }
  5591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5593. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5594. get {
  5595. return this._transaction;
  5596. }
  5597. set {
  5598. this._transaction = value;
  5599. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5600. this.CommandCollection[i].Transaction = this._transaction;
  5601. }
  5602. if (((this.Adapter != null)
  5603. && (this.Adapter.DeleteCommand != null))) {
  5604. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5605. }
  5606. if (((this.Adapter != null)
  5607. && (this.Adapter.InsertCommand != null))) {
  5608. this.Adapter.InsertCommand.Transaction = this._transaction;
  5609. }
  5610. if (((this.Adapter != null)
  5611. && (this.Adapter.UpdateCommand != null))) {
  5612. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5613. }
  5614. }
  5615. }
  5616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5618. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5619. get {
  5620. if ((this._commandCollection == null)) {
  5621. this.InitCommandCollection();
  5622. }
  5623. return this._commandCollection;
  5624. }
  5625. }
  5626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5628. public bool ClearBeforeFill {
  5629. get {
  5630. return this._clearBeforeFill;
  5631. }
  5632. set {
  5633. this._clearBeforeFill = value;
  5634. }
  5635. }
  5636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5638. private void InitAdapter() {
  5639. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5640. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5641. tableMapping.SourceTable = "Table";
  5642. tableMapping.DataSetTable = "Prokat";
  5643. tableMapping.ColumnMappings.Add("Kod prokata", "Kod prokata");
  5644. tableMapping.ColumnMappings.Add("Stoimost odnogo dnya prokata", "Stoimost odnogo dnya prokata");
  5645. tableMapping.ColumnMappings.Add("Data nachala prokata", "Data nachala prokata");
  5646. tableMapping.ColumnMappings.Add("Kolichestvo dnei prokata", "Kolichestvo dnei prokata");
  5647. tableMapping.ColumnMappings.Add("Kod klienta", "Kod klienta");
  5648. tableMapping.ColumnMappings.Add("Kod avto", "Kod avto");
  5649. this._adapter.TableMappings.Add(tableMapping);
  5650. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5651. this._adapter.DeleteCommand.Connection = this.Connection;
  5652. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Prokat] WHERE (([Kod prokata] = @Original_Kod_prokata) AND ([Stoimost odnogo dnya prokata] = @Original_Stoimost_odnogo_dnya_prokata) AND ([Data nachala prokata] = @Original_Data_nachala_prokata) AND ([Kolichestvo dnei prokata] = @Original_Kolichestvo_dnei_prokata) AND ([Kod klienta] = @Original_Kod_klienta) AND ([Kod avto] = @Original_Kod_avto))";
  5653. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5654. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_prokata", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod prokata", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5655. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Stoimost_odnogo_dnya_prokata", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Stoimost odnogo dnya prokata", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5656. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Data_nachala_prokata", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Data nachala prokata", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5657. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kolichestvo_dnei_prokata", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kolichestvo dnei prokata", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5658. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_klienta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod klienta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5659. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_avto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5660. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5661. this._adapter.InsertCommand.Connection = this.Connection;
  5662. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Prokat] ([Stoimost odnogo dnya prokata], [Data nachala prokata], [Kolichestvo dnei prokata], [Kod klienta], [Kod avto]) VALUES (@Stoimost_odnogo_dnya_prokata, @Data_nachala_prokata, @Kolichestvo_dnei_prokata, @Kod_klienta, @Kod_avto);
  5663. SELECT [Kod prokata], [Stoimost odnogo dnya prokata], [Data nachala prokata], [Kolichestvo dnei prokata], [Kod klienta], [Kod avto] FROM Prokat WHERE ([Kod prokata] = SCOPE_IDENTITY())";
  5664. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5665. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Stoimost_odnogo_dnya_prokata", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Stoimost odnogo dnya prokata", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5666. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Data_nachala_prokata", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Data nachala prokata", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5667. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Kolichestvo_dnei_prokata", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kolichestvo dnei prokata", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5668. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Kod_klienta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod klienta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5669. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Kod_avto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod avto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5670. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5671. this._adapter.UpdateCommand.Connection = this.Connection;
  5672. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Prokat] SET [Stoimost odnogo dnya prokata] = @Stoimost_odnogo_dnya_prokata, [Data nachala prokata] = @Data_nachala_prokata, [Kolichestvo dnei prokata] = @Kolichestvo_dnei_prokata, [Kod klienta] = @Kod_klienta, [Kod avto] = @Kod_avto WHERE (([Kod prokata] = @Original_Kod_prokata) AND ([Stoimost odnogo dnya prokata] = @Original_Stoimost_odnogo_dnya_prokata) AND ([Data nachala prokata] = @Original_Data_nachala_prokata) AND ([Kolichestvo dnei prokata] = @Original_Kolichestvo_dnei_prokata) AND ([Kod klienta] = @Original_Kod_klienta) AND ([Kod avto] = @Original_Kod_avto));
  5673. SELECT [Kod prokata], [Stoimost odnogo dnya prokata], [Data nachala prokata], [Kolichestvo dnei prokata], [Kod klienta], [Kod avto] FROM Prokat WHERE ([Kod prokata] = @Kod_prokata)";
  5674. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5675. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Stoimost_odnogo_dnya_prokata", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Stoimost odnogo dnya prokata", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5676. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Data_nachala_prokata", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Data nachala prokata", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5677. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Kolichestvo_dnei_prokata", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kolichestvo dnei prokata", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5678. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Kod_klienta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod klienta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5679. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Kod_avto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod avto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5680. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_prokata", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod prokata", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5681. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Stoimost_odnogo_dnya_prokata", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Stoimost odnogo dnya prokata", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5682. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Data_nachala_prokata", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Data nachala prokata", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5683. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kolichestvo_dnei_prokata", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kolichestvo dnei prokata", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5684. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_klienta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod klienta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5685. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_avto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod avto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5686. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Kod_prokata", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Kod prokata", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5687. }
  5688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5690. private void InitConnection() {
  5691. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5692. this._connection.ConnectionString = global::avtoprokatvel.Properties.Settings.Default.Prokatavto06ConnectionString;
  5693. }
  5694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5696. private void InitCommandCollection() {
  5697. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5698. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5699. this._commandCollection[0].Connection = this.Connection;
  5700. this._commandCollection[0].CommandText = "SELECT [Kod prokata], [Stoimost odnogo dnya prokata], [Data nachala prokata], [Ko" +
  5701. "lichestvo dnei prokata], [Kod klienta], [Kod avto] FROM dbo.Prokat";
  5702. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5703. }
  5704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5706. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5707. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5708. public virtual int Fill(Prokatavto06DataSet.ProkatDataTable dataTable) {
  5709. this.Adapter.SelectCommand = this.CommandCollection[0];
  5710. if ((this.ClearBeforeFill == true)) {
  5711. dataTable.Clear();
  5712. }
  5713. int returnValue = this.Adapter.Fill(dataTable);
  5714. return returnValue;
  5715. }
  5716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5718. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5719. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5720. public virtual Prokatavto06DataSet.ProkatDataTable GetData() {
  5721. this.Adapter.SelectCommand = this.CommandCollection[0];
  5722. Prokatavto06DataSet.ProkatDataTable dataTable = new Prokatavto06DataSet.ProkatDataTable();
  5723. this.Adapter.Fill(dataTable);
  5724. return dataTable;
  5725. }
  5726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5728. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5729. public virtual int Update(Prokatavto06DataSet.ProkatDataTable dataTable) {
  5730. return this.Adapter.Update(dataTable);
  5731. }
  5732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5734. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5735. public virtual int Update(Prokatavto06DataSet dataSet) {
  5736. return this.Adapter.Update(dataSet, "Prokat");
  5737. }
  5738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5740. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5741. public virtual int Update(global::System.Data.DataRow dataRow) {
  5742. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5743. dataRow});
  5744. }
  5745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5748. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5749. return this.Adapter.Update(dataRows);
  5750. }
  5751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5754. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5755. public virtual int Delete(int Original_Kod_prokata, decimal Original_Stoimost_odnogo_dnya_prokata, System.DateTime Original_Data_nachala_prokata, string Original_Kolichestvo_dnei_prokata, int Original_Kod_klienta, int Original_Kod_avto) {
  5756. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Kod_prokata));
  5757. this.Adapter.DeleteCommand.Parameters[1].Value = ((decimal)(Original_Stoimost_odnogo_dnya_prokata));
  5758. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_Data_nachala_prokata));
  5759. if ((Original_Kolichestvo_dnei_prokata == null)) {
  5760. throw new global::System.ArgumentNullException("Original_Kolichestvo_dnei_prokata");
  5761. }
  5762. else {
  5763. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Kolichestvo_dnei_prokata));
  5764. }
  5765. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Kod_klienta));
  5766. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Kod_avto));
  5767. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5768. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5769. != global::System.Data.ConnectionState.Open)) {
  5770. this.Adapter.DeleteCommand.Connection.Open();
  5771. }
  5772. try {
  5773. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5774. return returnValue;
  5775. }
  5776. finally {
  5777. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5778. this.Adapter.DeleteCommand.Connection.Close();
  5779. }
  5780. }
  5781. }
  5782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5784. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5785. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5786. public virtual int Insert(decimal Stoimost_odnogo_dnya_prokata, System.DateTime Data_nachala_prokata, string Kolichestvo_dnei_prokata, int Kod_klienta, int Kod_avto) {
  5787. this.Adapter.InsertCommand.Parameters[0].Value = ((decimal)(Stoimost_odnogo_dnya_prokata));
  5788. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Data_nachala_prokata));
  5789. if ((Kolichestvo_dnei_prokata == null)) {
  5790. throw new global::System.ArgumentNullException("Kolichestvo_dnei_prokata");
  5791. }
  5792. else {
  5793. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Kolichestvo_dnei_prokata));
  5794. }
  5795. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Kod_klienta));
  5796. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Kod_avto));
  5797. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5798. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5799. != global::System.Data.ConnectionState.Open)) {
  5800. this.Adapter.InsertCommand.Connection.Open();
  5801. }
  5802. try {
  5803. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5804. return returnValue;
  5805. }
  5806. finally {
  5807. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5808. this.Adapter.InsertCommand.Connection.Close();
  5809. }
  5810. }
  5811. }
  5812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5814. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5815. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5816. public virtual int Update(decimal Stoimost_odnogo_dnya_prokata, System.DateTime Data_nachala_prokata, string Kolichestvo_dnei_prokata, int Kod_klienta, int Kod_avto, int Original_Kod_prokata, decimal Original_Stoimost_odnogo_dnya_prokata, System.DateTime Original_Data_nachala_prokata, string Original_Kolichestvo_dnei_prokata, int Original_Kod_klienta, int Original_Kod_avto, int Kod_prokata) {
  5817. this.Adapter.UpdateCommand.Parameters[0].Value = ((decimal)(Stoimost_odnogo_dnya_prokata));
  5818. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Data_nachala_prokata));
  5819. if ((Kolichestvo_dnei_prokata == null)) {
  5820. throw new global::System.ArgumentNullException("Kolichestvo_dnei_prokata");
  5821. }
  5822. else {
  5823. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Kolichestvo_dnei_prokata));
  5824. }
  5825. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Kod_klienta));
  5826. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Kod_avto));
  5827. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Kod_prokata));
  5828. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(Original_Stoimost_odnogo_dnya_prokata));
  5829. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_Data_nachala_prokata));
  5830. if ((Original_Kolichestvo_dnei_prokata == null)) {
  5831. throw new global::System.ArgumentNullException("Original_Kolichestvo_dnei_prokata");
  5832. }
  5833. else {
  5834. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Kolichestvo_dnei_prokata));
  5835. }
  5836. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Kod_klienta));
  5837. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_Kod_avto));
  5838. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Kod_prokata));
  5839. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5840. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5841. != global::System.Data.ConnectionState.Open)) {
  5842. this.Adapter.UpdateCommand.Connection.Open();
  5843. }
  5844. try {
  5845. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5846. return returnValue;
  5847. }
  5848. finally {
  5849. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5850. this.Adapter.UpdateCommand.Connection.Close();
  5851. }
  5852. }
  5853. }
  5854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5856. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5857. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5858. public virtual int Update(decimal Stoimost_odnogo_dnya_prokata, System.DateTime Data_nachala_prokata, string Kolichestvo_dnei_prokata, int Kod_klienta, int Kod_avto, int Original_Kod_prokata, decimal Original_Stoimost_odnogo_dnya_prokata, System.DateTime Original_Data_nachala_prokata, string Original_Kolichestvo_dnei_prokata, int Original_Kod_klienta, int Original_Kod_avto) {
  5859. return this.Update(Stoimost_odnogo_dnya_prokata, Data_nachala_prokata, Kolichestvo_dnei_prokata, Kod_klienta, Kod_avto, Original_Kod_prokata, Original_Stoimost_odnogo_dnya_prokata, Original_Data_nachala_prokata, Original_Kolichestvo_dnei_prokata, Original_Kod_klienta, Original_Kod_avto, Original_Kod_prokata);
  5860. }
  5861. }
  5862. /// <summary>
  5863. ///Represents the connection and commands used to retrieve and save data.
  5864. ///</summary>
  5865. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5866. [global::System.ComponentModel.ToolboxItem(true)]
  5867. [global::System.ComponentModel.DataObjectAttribute(true)]
  5868. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5869. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5870. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5871. public partial class StrahovkaTableAdapter : global::System.ComponentModel.Component {
  5872. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5873. private global::System.Data.SqlClient.SqlConnection _connection;
  5874. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5875. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5876. private bool _clearBeforeFill;
  5877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5879. public StrahovkaTableAdapter() {
  5880. this.ClearBeforeFill = true;
  5881. }
  5882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5884. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5885. get {
  5886. if ((this._adapter == null)) {
  5887. this.InitAdapter();
  5888. }
  5889. return this._adapter;
  5890. }
  5891. }
  5892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5894. internal global::System.Data.SqlClient.SqlConnection Connection {
  5895. get {
  5896. if ((this._connection == null)) {
  5897. this.InitConnection();
  5898. }
  5899. return this._connection;
  5900. }
  5901. set {
  5902. this._connection = value;
  5903. if ((this.Adapter.InsertCommand != null)) {
  5904. this.Adapter.InsertCommand.Connection = value;
  5905. }
  5906. if ((this.Adapter.DeleteCommand != null)) {
  5907. this.Adapter.DeleteCommand.Connection = value;
  5908. }
  5909. if ((this.Adapter.UpdateCommand != null)) {
  5910. this.Adapter.UpdateCommand.Connection = value;
  5911. }
  5912. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5913. if ((this.CommandCollection[i] != null)) {
  5914. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5915. }
  5916. }
  5917. }
  5918. }
  5919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5921. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5922. get {
  5923. return this._transaction;
  5924. }
  5925. set {
  5926. this._transaction = value;
  5927. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5928. this.CommandCollection[i].Transaction = this._transaction;
  5929. }
  5930. if (((this.Adapter != null)
  5931. && (this.Adapter.DeleteCommand != null))) {
  5932. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5933. }
  5934. if (((this.Adapter != null)
  5935. && (this.Adapter.InsertCommand != null))) {
  5936. this.Adapter.InsertCommand.Transaction = this._transaction;
  5937. }
  5938. if (((this.Adapter != null)
  5939. && (this.Adapter.UpdateCommand != null))) {
  5940. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5941. }
  5942. }
  5943. }
  5944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5946. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5947. get {
  5948. if ((this._commandCollection == null)) {
  5949. this.InitCommandCollection();
  5950. }
  5951. return this._commandCollection;
  5952. }
  5953. }
  5954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5956. public bool ClearBeforeFill {
  5957. get {
  5958. return this._clearBeforeFill;
  5959. }
  5960. set {
  5961. this._clearBeforeFill = value;
  5962. }
  5963. }
  5964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5966. private void InitAdapter() {
  5967. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5968. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5969. tableMapping.SourceTable = "Table";
  5970. tableMapping.DataSetTable = "Strahovka";
  5971. tableMapping.ColumnMappings.Add("Kod strahovki", "Kod strahovki");
  5972. tableMapping.ColumnMappings.Add("Strahovoi vznos", "Strahovoi vznos");
  5973. this._adapter.TableMappings.Add(tableMapping);
  5974. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5975. this._adapter.DeleteCommand.Connection = this.Connection;
  5976. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Strahovka] WHERE (([Kod strahovki] = @Original_Kod_strahovki) " +
  5977. "AND ([Strahovoi vznos] = @Original_Strahovoi_vznos))";
  5978. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5979. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_strahovki", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod strahovki", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5980. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Strahovoi_vznos", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Strahovoi vznos", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5981. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5982. this._adapter.InsertCommand.Connection = this.Connection;
  5983. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Strahovka] ([Strahovoi vznos]) VALUES (@Strahovoi_vznos);\r\nSEL" +
  5984. "ECT [Kod strahovki], [Strahovoi vznos] FROM Strahovka WHERE ([Kod strahovki] = S" +
  5985. "COPE_IDENTITY())";
  5986. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5987. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Strahovoi_vznos", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Strahovoi vznos", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5988. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5989. this._adapter.UpdateCommand.Connection = this.Connection;
  5990. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Strahovka] SET [Strahovoi vznos] = @Strahovoi_vznos WHERE (([Kod strahovki] = @Original_Kod_strahovki) AND ([Strahovoi vznos] = @Original_Strahovoi_vznos));
  5991. SELECT [Kod strahovki], [Strahovoi vznos] FROM Strahovka WHERE ([Kod strahovki] = @Kod_strahovki)";
  5992. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5993. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Strahovoi_vznos", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Strahovoi vznos", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5994. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Kod_strahovki", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Kod strahovki", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5995. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Strahovoi_vznos", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Strahovoi vznos", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5996. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Kod_strahovki", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Kod strahovki", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5997. }
  5998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6000. private void InitConnection() {
  6001. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6002. this._connection.ConnectionString = global::avtoprokatvel.Properties.Settings.Default.Prokatavto06ConnectionString;
  6003. }
  6004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6006. private void InitCommandCollection() {
  6007. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6008. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6009. this._commandCollection[0].Connection = this.Connection;
  6010. this._commandCollection[0].CommandText = "SELECT [Kod strahovki], [Strahovoi vznos] FROM dbo.Strahovka";
  6011. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6012. }
  6013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6015. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6016. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6017. public virtual int Fill(Prokatavto06DataSet.StrahovkaDataTable dataTable) {
  6018. this.Adapter.SelectCommand = this.CommandCollection[0];
  6019. if ((this.ClearBeforeFill == true)) {
  6020. dataTable.Clear();
  6021. }
  6022. int returnValue = this.Adapter.Fill(dataTable);
  6023. return returnValue;
  6024. }
  6025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6027. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6028. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6029. public virtual Prokatavto06DataSet.StrahovkaDataTable GetData() {
  6030. this.Adapter.SelectCommand = this.CommandCollection[0];
  6031. Prokatavto06DataSet.StrahovkaDataTable dataTable = new Prokatavto06DataSet.StrahovkaDataTable();
  6032. this.Adapter.Fill(dataTable);
  6033. return dataTable;
  6034. }
  6035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6037. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6038. public virtual int Update(Prokatavto06DataSet.StrahovkaDataTable dataTable) {
  6039. return this.Adapter.Update(dataTable);
  6040. }
  6041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6043. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6044. public virtual int Update(Prokatavto06DataSet dataSet) {
  6045. return this.Adapter.Update(dataSet, "Strahovka");
  6046. }
  6047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6049. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6050. public virtual int Update(global::System.Data.DataRow dataRow) {
  6051. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6052. dataRow});
  6053. }
  6054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6056. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6057. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6058. return this.Adapter.Update(dataRows);
  6059. }
  6060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6062. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6063. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6064. public virtual int Delete(int Original_Kod_strahovki, decimal Original_Strahovoi_vznos) {
  6065. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Kod_strahovki));
  6066. this.Adapter.DeleteCommand.Parameters[1].Value = ((decimal)(Original_Strahovoi_vznos));
  6067. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6068. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6069. != global::System.Data.ConnectionState.Open)) {
  6070. this.Adapter.DeleteCommand.Connection.Open();
  6071. }
  6072. try {
  6073. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6074. return returnValue;
  6075. }
  6076. finally {
  6077. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6078. this.Adapter.DeleteCommand.Connection.Close();
  6079. }
  6080. }
  6081. }
  6082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6084. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6085. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6086. public virtual int Insert(decimal Strahovoi_vznos) {
  6087. this.Adapter.InsertCommand.Parameters[0].Value = ((decimal)(Strahovoi_vznos));
  6088. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6089. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6090. != global::System.Data.ConnectionState.Open)) {
  6091. this.Adapter.InsertCommand.Connection.Open();
  6092. }
  6093. try {
  6094. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6095. return returnValue;
  6096. }
  6097. finally {
  6098. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6099. this.Adapter.InsertCommand.Connection.Close();
  6100. }
  6101. }
  6102. }
  6103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6105. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6106. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6107. public virtual int Update(decimal Strahovoi_vznos, int Original_Kod_strahovki, decimal Original_Strahovoi_vznos, int Kod_strahovki) {
  6108. this.Adapter.UpdateCommand.Parameters[0].Value = ((decimal)(Strahovoi_vznos));
  6109. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_Kod_strahovki));
  6110. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Original_Strahovoi_vznos));
  6111. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Kod_strahovki));
  6112. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6113. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6114. != global::System.Data.ConnectionState.Open)) {
  6115. this.Adapter.UpdateCommand.Connection.Open();
  6116. }
  6117. try {
  6118. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6119. return returnValue;
  6120. }
  6121. finally {
  6122. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6123. this.Adapter.UpdateCommand.Connection.Close();
  6124. }
  6125. }
  6126. }
  6127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6129. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6130. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6131. public virtual int Update(decimal Strahovoi_vznos, int Original_Kod_strahovki, decimal Original_Strahovoi_vznos) {
  6132. return this.Update(Strahovoi_vznos, Original_Kod_strahovki, Original_Strahovoi_vznos, Original_Kod_strahovki);
  6133. }
  6134. }
  6135. /// <summary>
  6136. ///Represents the connection and commands used to retrieve and save data.
  6137. ///</summary>
  6138. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6139. [global::System.ComponentModel.ToolboxItem(true)]
  6140. [global::System.ComponentModel.DataObjectAttribute(true)]
  6141. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6142. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6143. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6144. public partial class ПредставлениеПрокатTableAdapter : global::System.ComponentModel.Component {
  6145. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6146. private global::System.Data.SqlClient.SqlConnection _connection;
  6147. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6148. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6149. private bool _clearBeforeFill;
  6150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6152. public ПредставлениеПрокатTableAdapter() {
  6153. this.ClearBeforeFill = true;
  6154. }
  6155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6157. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6158. get {
  6159. if ((this._adapter == null)) {
  6160. this.InitAdapter();
  6161. }
  6162. return this._adapter;
  6163. }
  6164. }
  6165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6167. internal global::System.Data.SqlClient.SqlConnection Connection {
  6168. get {
  6169. if ((this._connection == null)) {
  6170. this.InitConnection();
  6171. }
  6172. return this._connection;
  6173. }
  6174. set {
  6175. this._connection = value;
  6176. if ((this.Adapter.InsertCommand != null)) {
  6177. this.Adapter.InsertCommand.Connection = value;
  6178. }
  6179. if ((this.Adapter.DeleteCommand != null)) {
  6180. this.Adapter.DeleteCommand.Connection = value;
  6181. }
  6182. if ((this.Adapter.UpdateCommand != null)) {
  6183. this.Adapter.UpdateCommand.Connection = value;
  6184. }
  6185. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6186. if ((this.CommandCollection[i] != null)) {
  6187. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6188. }
  6189. }
  6190. }
  6191. }
  6192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6194. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6195. get {
  6196. return this._transaction;
  6197. }
  6198. set {
  6199. this._transaction = value;
  6200. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6201. this.CommandCollection[i].Transaction = this._transaction;
  6202. }
  6203. if (((this.Adapter != null)
  6204. && (this.Adapter.DeleteCommand != null))) {
  6205. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6206. }
  6207. if (((this.Adapter != null)
  6208. && (this.Adapter.InsertCommand != null))) {
  6209. this.Adapter.InsertCommand.Transaction = this._transaction;
  6210. }
  6211. if (((this.Adapter != null)
  6212. && (this.Adapter.UpdateCommand != null))) {
  6213. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6214. }
  6215. }
  6216. }
  6217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6219. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6220. get {
  6221. if ((this._commandCollection == null)) {
  6222. this.InitCommandCollection();
  6223. }
  6224. return this._commandCollection;
  6225. }
  6226. }
  6227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6229. public bool ClearBeforeFill {
  6230. get {
  6231. return this._clearBeforeFill;
  6232. }
  6233. set {
  6234. this._clearBeforeFill = value;
  6235. }
  6236. }
  6237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6239. private void InitAdapter() {
  6240. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6241. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6242. tableMapping.SourceTable = "Table";
  6243. tableMapping.DataSetTable = "ПредставлениеПрокат";
  6244. tableMapping.ColumnMappings.Add("Model avto", "Model avto");
  6245. tableMapping.ColumnMappings.Add("Gos nomer avto", "Gos nomer avto");
  6246. tableMapping.ColumnMappings.Add("FIO klienta", "FIO klienta");
  6247. tableMapping.ColumnMappings.Add("Seria pasporta", "Seria pasporta");
  6248. tableMapping.ColumnMappings.Add("Nomer pasporta", "Nomer pasporta");
  6249. tableMapping.ColumnMappings.Add("Stoimost odnogo dnya prokata", "Stoimost odnogo dnya prokata");
  6250. tableMapping.ColumnMappings.Add("Data nachala prokata", "Data nachala prokata");
  6251. tableMapping.ColumnMappings.Add("Kolichestvo dnei prokata", "Kolichestvo dnei prokata");
  6252. tableMapping.ColumnMappings.Add("Дата окончания проката", "Дата окончания проката");
  6253. this._adapter.TableMappings.Add(tableMapping);
  6254. }
  6255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6257. private void InitConnection() {
  6258. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6259. this._connection.ConnectionString = global::avtoprokatvel.Properties.Settings.Default.Prokatavto06ConnectionString;
  6260. }
  6261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6263. private void InitCommandCollection() {
  6264. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6265. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6266. this._commandCollection[0].Connection = this.Connection;
  6267. this._commandCollection[0].CommandText = "SELECT [Model avto], [Gos nomer avto], [FIO klienta], [Seria pasporta], [Nomer pa" +
  6268. "sporta], [Stoimost odnogo dnya prokata], [Data nachala prokata], [Kolichestvo dn" +
  6269. "ei prokata], [Дата окончания проката] FROM dbo.ПредставлениеПрокат";
  6270. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6271. }
  6272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6274. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6275. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6276. public virtual int Fill(Prokatavto06DataSet.ПредставлениеПрокатDataTable dataTable) {
  6277. this.Adapter.SelectCommand = this.CommandCollection[0];
  6278. if ((this.ClearBeforeFill == true)) {
  6279. dataTable.Clear();
  6280. }
  6281. int returnValue = this.Adapter.Fill(dataTable);
  6282. return returnValue;
  6283. }
  6284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6286. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6287. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6288. public virtual Prokatavto06DataSet.ПредставлениеПрокатDataTable GetData() {
  6289. this.Adapter.SelectCommand = this.CommandCollection[0];
  6290. Prokatavto06DataSet.ПредставлениеПрокатDataTable dataTable = new Prokatavto06DataSet.ПредставлениеПрокатDataTable();
  6291. this.Adapter.Fill(dataTable);
  6292. return dataTable;
  6293. }
  6294. }
  6295. /// <summary>
  6296. ///Represents the connection and commands used to retrieve and save data.
  6297. ///</summary>
  6298. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6299. [global::System.ComponentModel.ToolboxItem(true)]
  6300. [global::System.ComponentModel.DataObjectAttribute(true)]
  6301. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6302. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6303. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6304. public partial class LOLTableAdapter : global::System.ComponentModel.Component {
  6305. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6306. private global::System.Data.SqlClient.SqlConnection _connection;
  6307. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6308. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6309. private bool _clearBeforeFill;
  6310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6312. public LOLTableAdapter() {
  6313. this.ClearBeforeFill = true;
  6314. }
  6315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6317. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6318. get {
  6319. if ((this._adapter == null)) {
  6320. this.InitAdapter();
  6321. }
  6322. return this._adapter;
  6323. }
  6324. }
  6325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6327. internal global::System.Data.SqlClient.SqlConnection Connection {
  6328. get {
  6329. if ((this._connection == null)) {
  6330. this.InitConnection();
  6331. }
  6332. return this._connection;
  6333. }
  6334. set {
  6335. this._connection = value;
  6336. if ((this.Adapter.InsertCommand != null)) {
  6337. this.Adapter.InsertCommand.Connection = value;
  6338. }
  6339. if ((this.Adapter.DeleteCommand != null)) {
  6340. this.Adapter.DeleteCommand.Connection = value;
  6341. }
  6342. if ((this.Adapter.UpdateCommand != null)) {
  6343. this.Adapter.UpdateCommand.Connection = value;
  6344. }
  6345. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6346. if ((this.CommandCollection[i] != null)) {
  6347. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6348. }
  6349. }
  6350. }
  6351. }
  6352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6354. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6355. get {
  6356. return this._transaction;
  6357. }
  6358. set {
  6359. this._transaction = value;
  6360. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6361. this.CommandCollection[i].Transaction = this._transaction;
  6362. }
  6363. if (((this.Adapter != null)
  6364. && (this.Adapter.DeleteCommand != null))) {
  6365. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6366. }
  6367. if (((this.Adapter != null)
  6368. && (this.Adapter.InsertCommand != null))) {
  6369. this.Adapter.InsertCommand.Transaction = this._transaction;
  6370. }
  6371. if (((this.Adapter != null)
  6372. && (this.Adapter.UpdateCommand != null))) {
  6373. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6374. }
  6375. }
  6376. }
  6377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6379. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6380. get {
  6381. if ((this._commandCollection == null)) {
  6382. this.InitCommandCollection();
  6383. }
  6384. return this._commandCollection;
  6385. }
  6386. }
  6387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6389. public bool ClearBeforeFill {
  6390. get {
  6391. return this._clearBeforeFill;
  6392. }
  6393. set {
  6394. this._clearBeforeFill = value;
  6395. }
  6396. }
  6397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6399. private void InitAdapter() {
  6400. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6401. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6402. tableMapping.SourceTable = "Table";
  6403. tableMapping.DataSetTable = "LOL";
  6404. tableMapping.ColumnMappings.Add("FIO klienta", "FIO klienta");
  6405. tableMapping.ColumnMappings.Add("Model avto", "Model avto");
  6406. tableMapping.ColumnMappings.Add("Gos nomer avto", "Gos nomer avto");
  6407. tableMapping.ColumnMappings.Add("Data nachala prokata", "Data nachala prokata");
  6408. this._adapter.TableMappings.Add(tableMapping);
  6409. }
  6410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6412. private void InitConnection() {
  6413. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6414. this._connection.ConnectionString = global::avtoprokatvel.Properties.Settings.Default.Prokatavto06ConnectionString;
  6415. }
  6416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6418. private void InitCommandCollection() {
  6419. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6420. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6421. this._commandCollection[0].Connection = this.Connection;
  6422. this._commandCollection[0].CommandText = "dbo.LOL";
  6423. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  6424. this._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, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6425. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6426. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EndDate", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6427. }
  6428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6430. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6431. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6432. public virtual int Fill(Prokatavto06DataSet.LOLDataTable dataTable, global::System.Nullable<global::System.DateTime> StartDate, global::System.Nullable<global::System.DateTime> EndDate) {
  6433. this.Adapter.SelectCommand = this.CommandCollection[0];
  6434. if ((StartDate.HasValue == true)) {
  6435. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  6436. }
  6437. else {
  6438. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  6439. }
  6440. if ((EndDate.HasValue == true)) {
  6441. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(EndDate.Value));
  6442. }
  6443. else {
  6444. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  6445. }
  6446. if ((this.ClearBeforeFill == true)) {
  6447. dataTable.Clear();
  6448. }
  6449. int returnValue = this.Adapter.Fill(dataTable);
  6450. return returnValue;
  6451. }
  6452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6454. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6455. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6456. public virtual Prokatavto06DataSet.LOLDataTable GetData(global::System.Nullable<global::System.DateTime> StartDate, global::System.Nullable<global::System.DateTime> EndDate) {
  6457. this.Adapter.SelectCommand = this.CommandCollection[0];
  6458. if ((StartDate.HasValue == true)) {
  6459. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  6460. }
  6461. else {
  6462. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  6463. }
  6464. if ((EndDate.HasValue == true)) {
  6465. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(EndDate.Value));
  6466. }
  6467. else {
  6468. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  6469. }
  6470. Prokatavto06DataSet.LOLDataTable dataTable = new Prokatavto06DataSet.LOLDataTable();
  6471. this.Adapter.Fill(dataTable);
  6472. return dataTable;
  6473. }
  6474. }
  6475. /// <summary>
  6476. ///Represents the connection and commands used to retrieve and save data.
  6477. ///</summary>
  6478. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6479. [global::System.ComponentModel.ToolboxItem(true)]
  6480. [global::System.ComponentModel.DataObjectAttribute(true)]
  6481. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6482. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6483. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6484. public partial class LOL123TableAdapter : global::System.ComponentModel.Component {
  6485. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6486. private global::System.Data.SqlClient.SqlConnection _connection;
  6487. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6488. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6489. private bool _clearBeforeFill;
  6490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6492. public LOL123TableAdapter() {
  6493. this.ClearBeforeFill = true;
  6494. }
  6495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6497. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6498. get {
  6499. if ((this._adapter == null)) {
  6500. this.InitAdapter();
  6501. }
  6502. return this._adapter;
  6503. }
  6504. }
  6505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6507. internal global::System.Data.SqlClient.SqlConnection Connection {
  6508. get {
  6509. if ((this._connection == null)) {
  6510. this.InitConnection();
  6511. }
  6512. return this._connection;
  6513. }
  6514. set {
  6515. this._connection = value;
  6516. if ((this.Adapter.InsertCommand != null)) {
  6517. this.Adapter.InsertCommand.Connection = value;
  6518. }
  6519. if ((this.Adapter.DeleteCommand != null)) {
  6520. this.Adapter.DeleteCommand.Connection = value;
  6521. }
  6522. if ((this.Adapter.UpdateCommand != null)) {
  6523. this.Adapter.UpdateCommand.Connection = value;
  6524. }
  6525. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6526. if ((this.CommandCollection[i] != null)) {
  6527. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6528. }
  6529. }
  6530. }
  6531. }
  6532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6534. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6535. get {
  6536. return this._transaction;
  6537. }
  6538. set {
  6539. this._transaction = value;
  6540. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6541. this.CommandCollection[i].Transaction = this._transaction;
  6542. }
  6543. if (((this.Adapter != null)
  6544. && (this.Adapter.DeleteCommand != null))) {
  6545. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6546. }
  6547. if (((this.Adapter != null)
  6548. && (this.Adapter.InsertCommand != null))) {
  6549. this.Adapter.InsertCommand.Transaction = this._transaction;
  6550. }
  6551. if (((this.Adapter != null)
  6552. && (this.Adapter.UpdateCommand != null))) {
  6553. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6554. }
  6555. }
  6556. }
  6557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6559. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6560. get {
  6561. if ((this._commandCollection == null)) {
  6562. this.InitCommandCollection();
  6563. }
  6564. return this._commandCollection;
  6565. }
  6566. }
  6567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6569. public bool ClearBeforeFill {
  6570. get {
  6571. return this._clearBeforeFill;
  6572. }
  6573. set {
  6574. this._clearBeforeFill = value;
  6575. }
  6576. }
  6577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6579. private void InitAdapter() {
  6580. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6581. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6582. tableMapping.SourceTable = "Table";
  6583. tableMapping.DataSetTable = "LOL123";
  6584. tableMapping.ColumnMappings.Add("FIO klienta", "FIO klienta");
  6585. tableMapping.ColumnMappings.Add("Model avto", "Model avto");
  6586. tableMapping.ColumnMappings.Add("Gos nomer avto", "Gos nomer avto");
  6587. tableMapping.ColumnMappings.Add("Data nachala prokata", "Data nachala prokata");
  6588. this._adapter.TableMappings.Add(tableMapping);
  6589. }
  6590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6592. private void InitConnection() {
  6593. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6594. this._connection.ConnectionString = global::avtoprokatvel.Properties.Settings.Default.Prokatavto06ConnectionString;
  6595. }
  6596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6598. private void InitCommandCollection() {
  6599. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6600. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6601. this._commandCollection[0].Connection = this.Connection;
  6602. this._commandCollection[0].CommandText = "dbo.LOL123";
  6603. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  6604. this._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, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6605. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6606. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EndDate", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6607. }
  6608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6610. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6611. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6612. public virtual int Fill(Prokatavto06DataSet.LOL123DataTable dataTable, global::System.Nullable<global::System.DateTime> StartDate, global::System.Nullable<global::System.DateTime> EndDate) {
  6613. this.Adapter.SelectCommand = this.CommandCollection[0];
  6614. if ((StartDate.HasValue == true)) {
  6615. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  6616. }
  6617. else {
  6618. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  6619. }
  6620. if ((EndDate.HasValue == true)) {
  6621. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(EndDate.Value));
  6622. }
  6623. else {
  6624. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  6625. }
  6626. if ((this.ClearBeforeFill == true)) {
  6627. dataTable.Clear();
  6628. }
  6629. int returnValue = this.Adapter.Fill(dataTable);
  6630. return returnValue;
  6631. }
  6632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6635. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6636. public virtual Prokatavto06DataSet.LOL123DataTable GetData(global::System.Nullable<global::System.DateTime> StartDate, global::System.Nullable<global::System.DateTime> EndDate) {
  6637. this.Adapter.SelectCommand = this.CommandCollection[0];
  6638. if ((StartDate.HasValue == true)) {
  6639. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  6640. }
  6641. else {
  6642. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  6643. }
  6644. if ((EndDate.HasValue == true)) {
  6645. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(EndDate.Value));
  6646. }
  6647. else {
  6648. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  6649. }
  6650. Prokatavto06DataSet.LOL123DataTable dataTable = new Prokatavto06DataSet.LOL123DataTable();
  6651. this.Adapter.Fill(dataTable);
  6652. return dataTable;
  6653. }
  6654. }
  6655. /// <summary>
  6656. ///Represents the connection and commands used to retrieve and save data.
  6657. ///</summary>
  6658. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6659. [global::System.ComponentModel.ToolboxItem(true)]
  6660. [global::System.ComponentModel.DataObjectAttribute(true)]
  6661. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6662. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6663. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6664. public partial class LOL1234TableAdapter : global::System.ComponentModel.Component {
  6665. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6666. private global::System.Data.SqlClient.SqlConnection _connection;
  6667. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6668. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6669. private bool _clearBeforeFill;
  6670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6672. public LOL1234TableAdapter() {
  6673. this.ClearBeforeFill = true;
  6674. }
  6675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6677. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6678. get {
  6679. if ((this._adapter == null)) {
  6680. this.InitAdapter();
  6681. }
  6682. return this._adapter;
  6683. }
  6684. }
  6685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6687. internal global::System.Data.SqlClient.SqlConnection Connection {
  6688. get {
  6689. if ((this._connection == null)) {
  6690. this.InitConnection();
  6691. }
  6692. return this._connection;
  6693. }
  6694. set {
  6695. this._connection = value;
  6696. if ((this.Adapter.InsertCommand != null)) {
  6697. this.Adapter.InsertCommand.Connection = value;
  6698. }
  6699. if ((this.Adapter.DeleteCommand != null)) {
  6700. this.Adapter.DeleteCommand.Connection = value;
  6701. }
  6702. if ((this.Adapter.UpdateCommand != null)) {
  6703. this.Adapter.UpdateCommand.Connection = value;
  6704. }
  6705. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6706. if ((this.CommandCollection[i] != null)) {
  6707. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6708. }
  6709. }
  6710. }
  6711. }
  6712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6714. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6715. get {
  6716. return this._transaction;
  6717. }
  6718. set {
  6719. this._transaction = value;
  6720. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6721. this.CommandCollection[i].Transaction = this._transaction;
  6722. }
  6723. if (((this.Adapter != null)
  6724. && (this.Adapter.DeleteCommand != null))) {
  6725. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6726. }
  6727. if (((this.Adapter != null)
  6728. && (this.Adapter.InsertCommand != null))) {
  6729. this.Adapter.InsertCommand.Transaction = this._transaction;
  6730. }
  6731. if (((this.Adapter != null)
  6732. && (this.Adapter.UpdateCommand != null))) {
  6733. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6734. }
  6735. }
  6736. }
  6737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6739. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6740. get {
  6741. if ((this._commandCollection == null)) {
  6742. this.InitCommandCollection();
  6743. }
  6744. return this._commandCollection;
  6745. }
  6746. }
  6747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6749. public bool ClearBeforeFill {
  6750. get {
  6751. return this._clearBeforeFill;
  6752. }
  6753. set {
  6754. this._clearBeforeFill = value;
  6755. }
  6756. }
  6757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6759. private void InitAdapter() {
  6760. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6761. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6762. tableMapping.SourceTable = "Table";
  6763. tableMapping.DataSetTable = "LOL1234";
  6764. tableMapping.ColumnMappings.Add("FIO klienta", "FIO klienta");
  6765. tableMapping.ColumnMappings.Add("Model avto", "Model avto");
  6766. tableMapping.ColumnMappings.Add("Gos nomer avto", "Gos nomer avto");
  6767. tableMapping.ColumnMappings.Add("Data nachala prokata", "Data nachala prokata");
  6768. this._adapter.TableMappings.Add(tableMapping);
  6769. }
  6770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6772. private void InitConnection() {
  6773. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6774. this._connection.ConnectionString = global::avtoprokatvel.Properties.Settings.Default.Prokatavto06ConnectionString;
  6775. }
  6776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6778. private void InitCommandCollection() {
  6779. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6780. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6781. this._commandCollection[0].Connection = this.Connection;
  6782. this._commandCollection[0].CommandText = "dbo.LOL1234";
  6783. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  6784. this._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, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6785. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6786. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EndDate", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6787. }
  6788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6790. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6791. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6792. public virtual int Fill(Prokatavto06DataSet.LOL1234DataTable dataTable, global::System.Nullable<global::System.DateTime> StartDate, global::System.Nullable<global::System.DateTime> EndDate) {
  6793. this.Adapter.SelectCommand = this.CommandCollection[0];
  6794. if ((StartDate.HasValue == true)) {
  6795. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  6796. }
  6797. else {
  6798. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  6799. }
  6800. if ((EndDate.HasValue == true)) {
  6801. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(EndDate.Value));
  6802. }
  6803. else {
  6804. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  6805. }
  6806. if ((this.ClearBeforeFill == true)) {
  6807. dataTable.Clear();
  6808. }
  6809. int returnValue = this.Adapter.Fill(dataTable);
  6810. return returnValue;
  6811. }
  6812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6814. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6815. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6816. public virtual Prokatavto06DataSet.LOL1234DataTable GetData(global::System.Nullable<global::System.DateTime> StartDate, global::System.Nullable<global::System.DateTime> EndDate) {
  6817. this.Adapter.SelectCommand = this.CommandCollection[0];
  6818. if ((StartDate.HasValue == true)) {
  6819. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  6820. }
  6821. else {
  6822. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  6823. }
  6824. if ((EndDate.HasValue == true)) {
  6825. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(EndDate.Value));
  6826. }
  6827. else {
  6828. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  6829. }
  6830. Prokatavto06DataSet.LOL1234DataTable dataTable = new Prokatavto06DataSet.LOL1234DataTable();
  6831. this.Adapter.Fill(dataTable);
  6832. return dataTable;
  6833. }
  6834. }
  6835. /// <summary>
  6836. ///Represents the connection and commands used to retrieve and save data.
  6837. ///</summary>
  6838. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6839. [global::System.ComponentModel.ToolboxItem(true)]
  6840. [global::System.ComponentModel.DataObjectAttribute(true)]
  6841. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6842. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6843. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6844. public partial class LOL12345TableAdapter : global::System.ComponentModel.Component {
  6845. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6846. private global::System.Data.SqlClient.SqlConnection _connection;
  6847. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6848. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6849. private bool _clearBeforeFill;
  6850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6852. public LOL12345TableAdapter() {
  6853. this.ClearBeforeFill = true;
  6854. }
  6855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6857. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6858. get {
  6859. if ((this._adapter == null)) {
  6860. this.InitAdapter();
  6861. }
  6862. return this._adapter;
  6863. }
  6864. }
  6865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6867. internal global::System.Data.SqlClient.SqlConnection Connection {
  6868. get {
  6869. if ((this._connection == null)) {
  6870. this.InitConnection();
  6871. }
  6872. return this._connection;
  6873. }
  6874. set {
  6875. this._connection = value;
  6876. if ((this.Adapter.InsertCommand != null)) {
  6877. this.Adapter.InsertCommand.Connection = value;
  6878. }
  6879. if ((this.Adapter.DeleteCommand != null)) {
  6880. this.Adapter.DeleteCommand.Connection = value;
  6881. }
  6882. if ((this.Adapter.UpdateCommand != null)) {
  6883. this.Adapter.UpdateCommand.Connection = value;
  6884. }
  6885. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6886. if ((this.CommandCollection[i] != null)) {
  6887. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6888. }
  6889. }
  6890. }
  6891. }
  6892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6894. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6895. get {
  6896. return this._transaction;
  6897. }
  6898. set {
  6899. this._transaction = value;
  6900. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6901. this.CommandCollection[i].Transaction = this._transaction;
  6902. }
  6903. if (((this.Adapter != null)
  6904. && (this.Adapter.DeleteCommand != null))) {
  6905. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6906. }
  6907. if (((this.Adapter != null)
  6908. && (this.Adapter.InsertCommand != null))) {
  6909. this.Adapter.InsertCommand.Transaction = this._transaction;
  6910. }
  6911. if (((this.Adapter != null)
  6912. && (this.Adapter.UpdateCommand != null))) {
  6913. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6914. }
  6915. }
  6916. }
  6917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6919. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6920. get {
  6921. if ((this._commandCollection == null)) {
  6922. this.InitCommandCollection();
  6923. }
  6924. return this._commandCollection;
  6925. }
  6926. }
  6927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6929. public bool ClearBeforeFill {
  6930. get {
  6931. return this._clearBeforeFill;
  6932. }
  6933. set {
  6934. this._clearBeforeFill = value;
  6935. }
  6936. }
  6937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6939. private void InitAdapter() {
  6940. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6941. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6942. tableMapping.SourceTable = "Table";
  6943. tableMapping.DataSetTable = "LOL12345";
  6944. tableMapping.ColumnMappings.Add("FIO klienta", "FIO klienta");
  6945. tableMapping.ColumnMappings.Add("Model avto", "Model avto");
  6946. tableMapping.ColumnMappings.Add("Gos nomer avto", "Gos nomer avto");
  6947. tableMapping.ColumnMappings.Add("Data nachala prokata", "Data nachala prokata");
  6948. this._adapter.TableMappings.Add(tableMapping);
  6949. }
  6950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6952. private void InitConnection() {
  6953. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6954. this._connection.ConnectionString = global::avtoprokatvel.Properties.Settings.Default.Prokatavto06ConnectionString;
  6955. }
  6956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6958. private void InitCommandCollection() {
  6959. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6960. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6961. this._commandCollection[0].Connection = this.Connection;
  6962. this._commandCollection[0].CommandText = "dbo.LOL12345";
  6963. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  6964. this._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, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6965. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6966. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EndDate", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6967. }
  6968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6970. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6971. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6972. public virtual int Fill(Prokatavto06DataSet.LOL12345DataTable dataTable, global::System.Nullable<global::System.DateTime> StartDate, global::System.Nullable<global::System.DateTime> EndDate) {
  6973. this.Adapter.SelectCommand = this.CommandCollection[0];
  6974. if ((StartDate.HasValue == true)) {
  6975. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  6976. }
  6977. else {
  6978. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  6979. }
  6980. if ((EndDate.HasValue == true)) {
  6981. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(EndDate.Value));
  6982. }
  6983. else {
  6984. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  6985. }
  6986. if ((this.ClearBeforeFill == true)) {
  6987. dataTable.Clear();
  6988. }
  6989. int returnValue = this.Adapter.Fill(dataTable);
  6990. return returnValue;
  6991. }
  6992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6994. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6995. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6996. public virtual Prokatavto06DataSet.LOL12345DataTable GetData(global::System.Nullable<global::System.DateTime> StartDate, global::System.Nullable<global::System.DateTime> EndDate) {
  6997. this.Adapter.SelectCommand = this.CommandCollection[0];
  6998. if ((StartDate.HasValue == true)) {
  6999. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7000. }
  7001. else {
  7002. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  7003. }
  7004. if ((EndDate.HasValue == true)) {
  7005. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(EndDate.Value));
  7006. }
  7007. else {
  7008. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  7009. }
  7010. Prokatavto06DataSet.LOL12345DataTable dataTable = new Prokatavto06DataSet.LOL12345DataTable();
  7011. this.Adapter.Fill(dataTable);
  7012. return dataTable;
  7013. }
  7014. }
  7015. /// <summary>
  7016. ///Represents the connection and commands used to retrieve and save data.
  7017. ///</summary>
  7018. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7019. [global::System.ComponentModel.ToolboxItem(true)]
  7020. [global::System.ComponentModel.DataObjectAttribute(true)]
  7021. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7022. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7023. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7024. public partial class LOL123456TableAdapter : global::System.ComponentModel.Component {
  7025. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7026. private global::System.Data.SqlClient.SqlConnection _connection;
  7027. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7028. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7029. private bool _clearBeforeFill;
  7030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7032. public LOL123456TableAdapter() {
  7033. this.ClearBeforeFill = true;
  7034. }
  7035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7037. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7038. get {
  7039. if ((this._adapter == null)) {
  7040. this.InitAdapter();
  7041. }
  7042. return this._adapter;
  7043. }
  7044. }
  7045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7047. internal global::System.Data.SqlClient.SqlConnection Connection {
  7048. get {
  7049. if ((this._connection == null)) {
  7050. this.InitConnection();
  7051. }
  7052. return this._connection;
  7053. }
  7054. set {
  7055. this._connection = value;
  7056. if ((this.Adapter.InsertCommand != null)) {
  7057. this.Adapter.InsertCommand.Connection = value;
  7058. }
  7059. if ((this.Adapter.DeleteCommand != null)) {
  7060. this.Adapter.DeleteCommand.Connection = value;
  7061. }
  7062. if ((this.Adapter.UpdateCommand != null)) {
  7063. this.Adapter.UpdateCommand.Connection = value;
  7064. }
  7065. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7066. if ((this.CommandCollection[i] != null)) {
  7067. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7068. }
  7069. }
  7070. }
  7071. }
  7072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7074. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7075. get {
  7076. return this._transaction;
  7077. }
  7078. set {
  7079. this._transaction = value;
  7080. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7081. this.CommandCollection[i].Transaction = this._transaction;
  7082. }
  7083. if (((this.Adapter != null)
  7084. && (this.Adapter.DeleteCommand != null))) {
  7085. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7086. }
  7087. if (((this.Adapter != null)
  7088. && (this.Adapter.InsertCommand != null))) {
  7089. this.Adapter.InsertCommand.Transaction = this._transaction;
  7090. }
  7091. if (((this.Adapter != null)
  7092. && (this.Adapter.UpdateCommand != null))) {
  7093. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7094. }
  7095. }
  7096. }
  7097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7099. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7100. get {
  7101. if ((this._commandCollection == null)) {
  7102. this.InitCommandCollection();
  7103. }
  7104. return this._commandCollection;
  7105. }
  7106. }
  7107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7109. public bool ClearBeforeFill {
  7110. get {
  7111. return this._clearBeforeFill;
  7112. }
  7113. set {
  7114. this._clearBeforeFill = value;
  7115. }
  7116. }
  7117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7119. private void InitAdapter() {
  7120. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7121. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7122. tableMapping.SourceTable = "Table";
  7123. tableMapping.DataSetTable = "LOL123456";
  7124. tableMapping.ColumnMappings.Add("Model avto", "Model avto");
  7125. tableMapping.ColumnMappings.Add("Gos nomer avto", "Gos nomer avto");
  7126. tableMapping.ColumnMappings.Add("Data nachala prokata", "Data nachala prokata");
  7127. this._adapter.TableMappings.Add(tableMapping);
  7128. }
  7129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7131. private void InitConnection() {
  7132. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7133. this._connection.ConnectionString = global::avtoprokatvel.Properties.Settings.Default.Prokatavto06ConnectionString;
  7134. }
  7135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7137. private void InitCommandCollection() {
  7138. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7139. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7140. this._commandCollection[0].Connection = this.Connection;
  7141. this._commandCollection[0].CommandText = "dbo.LOL123456";
  7142. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  7143. this._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, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7144. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7145. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EndDate", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7146. }
  7147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7149. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7150. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7151. public virtual int Fill(Prokatavto06DataSet.LOL123456DataTable dataTable, global::System.Nullable<global::System.DateTime> StartDate, global::System.Nullable<global::System.DateTime> EndDate) {
  7152. this.Adapter.SelectCommand = this.CommandCollection[0];
  7153. if ((StartDate.HasValue == true)) {
  7154. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7155. }
  7156. else {
  7157. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  7158. }
  7159. if ((EndDate.HasValue == true)) {
  7160. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(EndDate.Value));
  7161. }
  7162. else {
  7163. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  7164. }
  7165. if ((this.ClearBeforeFill == true)) {
  7166. dataTable.Clear();
  7167. }
  7168. int returnValue = this.Adapter.Fill(dataTable);
  7169. return returnValue;
  7170. }
  7171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7173. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7174. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7175. public virtual Prokatavto06DataSet.LOL123456DataTable GetData(global::System.Nullable<global::System.DateTime> StartDate, global::System.Nullable<global::System.DateTime> EndDate) {
  7176. this.Adapter.SelectCommand = this.CommandCollection[0];
  7177. if ((StartDate.HasValue == true)) {
  7178. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7179. }
  7180. else {
  7181. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  7182. }
  7183. if ((EndDate.HasValue == true)) {
  7184. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(EndDate.Value));
  7185. }
  7186. else {
  7187. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  7188. }
  7189. Prokatavto06DataSet.LOL123456DataTable dataTable = new Prokatavto06DataSet.LOL123456DataTable();
  7190. this.Adapter.Fill(dataTable);
  7191. return dataTable;
  7192. }
  7193. }
  7194. /// <summary>
  7195. ///Represents the connection and commands used to retrieve and save data.
  7196. ///</summary>
  7197. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7198. [global::System.ComponentModel.ToolboxItem(true)]
  7199. [global::System.ComponentModel.DataObjectAttribute(true)]
  7200. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7201. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7202. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7203. public partial class PoiskTableAdapter : global::System.ComponentModel.Component {
  7204. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7205. private global::System.Data.SqlClient.SqlConnection _connection;
  7206. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7207. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7208. private bool _clearBeforeFill;
  7209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7211. public PoiskTableAdapter() {
  7212. this.ClearBeforeFill = true;
  7213. }
  7214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7216. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7217. get {
  7218. if ((this._adapter == null)) {
  7219. this.InitAdapter();
  7220. }
  7221. return this._adapter;
  7222. }
  7223. }
  7224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7226. internal global::System.Data.SqlClient.SqlConnection Connection {
  7227. get {
  7228. if ((this._connection == null)) {
  7229. this.InitConnection();
  7230. }
  7231. return this._connection;
  7232. }
  7233. set {
  7234. this._connection = value;
  7235. if ((this.Adapter.InsertCommand != null)) {
  7236. this.Adapter.InsertCommand.Connection = value;
  7237. }
  7238. if ((this.Adapter.DeleteCommand != null)) {
  7239. this.Adapter.DeleteCommand.Connection = value;
  7240. }
  7241. if ((this.Adapter.UpdateCommand != null)) {
  7242. this.Adapter.UpdateCommand.Connection = value;
  7243. }
  7244. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7245. if ((this.CommandCollection[i] != null)) {
  7246. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7247. }
  7248. }
  7249. }
  7250. }
  7251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7253. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7254. get {
  7255. return this._transaction;
  7256. }
  7257. set {
  7258. this._transaction = value;
  7259. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7260. this.CommandCollection[i].Transaction = this._transaction;
  7261. }
  7262. if (((this.Adapter != null)
  7263. && (this.Adapter.DeleteCommand != null))) {
  7264. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7265. }
  7266. if (((this.Adapter != null)
  7267. && (this.Adapter.InsertCommand != null))) {
  7268. this.Adapter.InsertCommand.Transaction = this._transaction;
  7269. }
  7270. if (((this.Adapter != null)
  7271. && (this.Adapter.UpdateCommand != null))) {
  7272. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7273. }
  7274. }
  7275. }
  7276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7278. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7279. get {
  7280. if ((this._commandCollection == null)) {
  7281. this.InitCommandCollection();
  7282. }
  7283. return this._commandCollection;
  7284. }
  7285. }
  7286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7288. public bool ClearBeforeFill {
  7289. get {
  7290. return this._clearBeforeFill;
  7291. }
  7292. set {
  7293. this._clearBeforeFill = value;
  7294. }
  7295. }
  7296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7298. private void InitAdapter() {
  7299. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7300. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7301. tableMapping.SourceTable = "Table";
  7302. tableMapping.DataSetTable = "Poisk";
  7303. tableMapping.ColumnMappings.Add("Kod avto", "Kod avto");
  7304. tableMapping.ColumnMappings.Add("Model avto", "Model avto");
  7305. tableMapping.ColumnMappings.Add("Cvet avto", "Cvet avto");
  7306. tableMapping.ColumnMappings.Add("God vipyska avto", "God vipyska avto");
  7307. tableMapping.ColumnMappings.Add("Gos nomer avto", "Gos nomer avto");
  7308. tableMapping.ColumnMappings.Add("strahovaya stoimost avto", "strahovaya stoimost avto");
  7309. tableMapping.ColumnMappings.Add("Kod strahovki", "Kod strahovki");
  7310. this._adapter.TableMappings.Add(tableMapping);
  7311. }
  7312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7314. private void InitConnection() {
  7315. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7316. this._connection.ConnectionString = global::avtoprokatvel.Properties.Settings.Default.Prokatavto06ConnectionString;
  7317. }
  7318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7320. private void InitCommandCollection() {
  7321. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7322. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7323. this._commandCollection[0].Connection = this.Connection;
  7324. this._commandCollection[0].CommandText = "dbo.Poisk";
  7325. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  7326. this._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, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7327. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value1", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7328. }
  7329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7331. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7332. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7333. public virtual int Fill(Prokatavto06DataSet.PoiskDataTable dataTable, string Value1) {
  7334. this.Adapter.SelectCommand = this.CommandCollection[0];
  7335. if ((Value1 == null)) {
  7336. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  7337. }
  7338. else {
  7339. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Value1));
  7340. }
  7341. if ((this.ClearBeforeFill == true)) {
  7342. dataTable.Clear();
  7343. }
  7344. int returnValue = this.Adapter.Fill(dataTable);
  7345. return returnValue;
  7346. }
  7347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7349. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7350. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7351. public virtual Prokatavto06DataSet.PoiskDataTable GetData(string Value1) {
  7352. this.Adapter.SelectCommand = this.CommandCollection[0];
  7353. if ((Value1 == null)) {
  7354. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  7355. }
  7356. else {
  7357. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Value1));
  7358. }
  7359. Prokatavto06DataSet.PoiskDataTable dataTable = new Prokatavto06DataSet.PoiskDataTable();
  7360. this.Adapter.Fill(dataTable);
  7361. return dataTable;
  7362. }
  7363. }
  7364. /// <summary>
  7365. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  7366. ///</summary>
  7367. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7368. [global::System.ComponentModel.ToolboxItem(true)]
  7369. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  7370. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7371. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  7372. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  7373. private UpdateOrderOption _updateOrder;
  7374. private AvtoTableAdapter _avtoTableAdapter;
  7375. private KlientTableAdapter _klientTableAdapter;
  7376. private ProkatTableAdapter _prokatTableAdapter;
  7377. private StrahovkaTableAdapter _strahovkaTableAdapter;
  7378. private bool _backupDataSetBeforeUpdate;
  7379. private global::System.Data.IDbConnection _connection;
  7380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7382. public UpdateOrderOption UpdateOrder {
  7383. get {
  7384. return this._updateOrder;
  7385. }
  7386. set {
  7387. this._updateOrder = value;
  7388. }
  7389. }
  7390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7392. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7393. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7394. "a", "System.Drawing.Design.UITypeEditor")]
  7395. public AvtoTableAdapter AvtoTableAdapter {
  7396. get {
  7397. return this._avtoTableAdapter;
  7398. }
  7399. set {
  7400. this._avtoTableAdapter = value;
  7401. }
  7402. }
  7403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7405. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7406. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7407. "a", "System.Drawing.Design.UITypeEditor")]
  7408. public KlientTableAdapter KlientTableAdapter {
  7409. get {
  7410. return this._klientTableAdapter;
  7411. }
  7412. set {
  7413. this._klientTableAdapter = value;
  7414. }
  7415. }
  7416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7418. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7419. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7420. "a", "System.Drawing.Design.UITypeEditor")]
  7421. public ProkatTableAdapter ProkatTableAdapter {
  7422. get {
  7423. return this._prokatTableAdapter;
  7424. }
  7425. set {
  7426. this._prokatTableAdapter = value;
  7427. }
  7428. }
  7429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7431. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7432. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7433. "a", "System.Drawing.Design.UITypeEditor")]
  7434. public StrahovkaTableAdapter StrahovkaTableAdapter {
  7435. get {
  7436. return this._strahovkaTableAdapter;
  7437. }
  7438. set {
  7439. this._strahovkaTableAdapter = value;
  7440. }
  7441. }
  7442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7444. public bool BackupDataSetBeforeUpdate {
  7445. get {
  7446. return this._backupDataSetBeforeUpdate;
  7447. }
  7448. set {
  7449. this._backupDataSetBeforeUpdate = value;
  7450. }
  7451. }
  7452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7454. [global::System.ComponentModel.Browsable(false)]
  7455. public global::System.Data.IDbConnection Connection {
  7456. get {
  7457. if ((this._connection != null)) {
  7458. return this._connection;
  7459. }
  7460. if (((this._avtoTableAdapter != null)
  7461. && (this._avtoTableAdapter.Connection != null))) {
  7462. return this._avtoTableAdapter.Connection;
  7463. }
  7464. if (((this._klientTableAdapter != null)
  7465. && (this._klientTableAdapter.Connection != null))) {
  7466. return this._klientTableAdapter.Connection;
  7467. }
  7468. if (((this._prokatTableAdapter != null)
  7469. && (this._prokatTableAdapter.Connection != null))) {
  7470. return this._prokatTableAdapter.Connection;
  7471. }
  7472. if (((this._strahovkaTableAdapter != null)
  7473. && (this._strahovkaTableAdapter.Connection != null))) {
  7474. return this._strahovkaTableAdapter.Connection;
  7475. }
  7476. return null;
  7477. }
  7478. set {
  7479. this._connection = value;
  7480. }
  7481. }
  7482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7484. [global::System.ComponentModel.Browsable(false)]
  7485. public int TableAdapterInstanceCount {
  7486. get {
  7487. int count = 0;
  7488. if ((this._avtoTableAdapter != null)) {
  7489. count = (count + 1);
  7490. }
  7491. if ((this._klientTableAdapter != null)) {
  7492. count = (count + 1);
  7493. }
  7494. if ((this._prokatTableAdapter != null)) {
  7495. count = (count + 1);
  7496. }
  7497. if ((this._strahovkaTableAdapter != null)) {
  7498. count = (count + 1);
  7499. }
  7500. return count;
  7501. }
  7502. }
  7503. /// <summary>
  7504. ///Update rows in top-down order.
  7505. ///</summary>
  7506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7508. private int UpdateUpdatedRows(Prokatavto06DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7509. int result = 0;
  7510. if ((this._strahovkaTableAdapter != null)) {
  7511. global::System.Data.DataRow[] updatedRows = dataSet.Strahovka.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7512. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7513. if (((updatedRows != null)
  7514. && (0 < updatedRows.Length))) {
  7515. result = (result + this._strahovkaTableAdapter.Update(updatedRows));
  7516. allChangedRows.AddRange(updatedRows);
  7517. }
  7518. }
  7519. if ((this._avtoTableAdapter != null)) {
  7520. global::System.Data.DataRow[] updatedRows = dataSet.Avto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7521. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7522. if (((updatedRows != null)
  7523. && (0 < updatedRows.Length))) {
  7524. result = (result + this._avtoTableAdapter.Update(updatedRows));
  7525. allChangedRows.AddRange(updatedRows);
  7526. }
  7527. }
  7528. if ((this._klientTableAdapter != null)) {
  7529. global::System.Data.DataRow[] updatedRows = dataSet.Klient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7530. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7531. if (((updatedRows != null)
  7532. && (0 < updatedRows.Length))) {
  7533. result = (result + this._klientTableAdapter.Update(updatedRows));
  7534. allChangedRows.AddRange(updatedRows);
  7535. }
  7536. }
  7537. if ((this._prokatTableAdapter != null)) {
  7538. global::System.Data.DataRow[] updatedRows = dataSet.Prokat.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7539. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7540. if (((updatedRows != null)
  7541. && (0 < updatedRows.Length))) {
  7542. result = (result + this._prokatTableAdapter.Update(updatedRows));
  7543. allChangedRows.AddRange(updatedRows);
  7544. }
  7545. }
  7546. return result;
  7547. }
  7548. /// <summary>
  7549. ///Insert rows in top-down order.
  7550. ///</summary>
  7551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7553. private int UpdateInsertedRows(Prokatavto06DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7554. int result = 0;
  7555. if ((this._strahovkaTableAdapter != null)) {
  7556. global::System.Data.DataRow[] addedRows = dataSet.Strahovka.Select(null, null, global::System.Data.DataViewRowState.Added);
  7557. if (((addedRows != null)
  7558. && (0 < addedRows.Length))) {
  7559. result = (result + this._strahovkaTableAdapter.Update(addedRows));
  7560. allAddedRows.AddRange(addedRows);
  7561. }
  7562. }
  7563. if ((this._avtoTableAdapter != null)) {
  7564. global::System.Data.DataRow[] addedRows = dataSet.Avto.Select(null, null, global::System.Data.DataViewRowState.Added);
  7565. if (((addedRows != null)
  7566. && (0 < addedRows.Length))) {
  7567. result = (result + this._avtoTableAdapter.Update(addedRows));
  7568. allAddedRows.AddRange(addedRows);
  7569. }
  7570. }
  7571. if ((this._klientTableAdapter != null)) {
  7572. global::System.Data.DataRow[] addedRows = dataSet.Klient.Select(null, null, global::System.Data.DataViewRowState.Added);
  7573. if (((addedRows != null)
  7574. && (0 < addedRows.Length))) {
  7575. result = (result + this._klientTableAdapter.Update(addedRows));
  7576. allAddedRows.AddRange(addedRows);
  7577. }
  7578. }
  7579. if ((this._prokatTableAdapter != null)) {
  7580. global::System.Data.DataRow[] addedRows = dataSet.Prokat.Select(null, null, global::System.Data.DataViewRowState.Added);
  7581. if (((addedRows != null)
  7582. && (0 < addedRows.Length))) {
  7583. result = (result + this._prokatTableAdapter.Update(addedRows));
  7584. allAddedRows.AddRange(addedRows);
  7585. }
  7586. }
  7587. return result;
  7588. }
  7589. /// <summary>
  7590. ///Delete rows in bottom-up order.
  7591. ///</summary>
  7592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7594. private int UpdateDeletedRows(Prokatavto06DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  7595. int result = 0;
  7596. if ((this._prokatTableAdapter != null)) {
  7597. global::System.Data.DataRow[] deletedRows = dataSet.Prokat.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7598. if (((deletedRows != null)
  7599. && (0 < deletedRows.Length))) {
  7600. result = (result + this._prokatTableAdapter.Update(deletedRows));
  7601. allChangedRows.AddRange(deletedRows);
  7602. }
  7603. }
  7604. if ((this._klientTableAdapter != null)) {
  7605. global::System.Data.DataRow[] deletedRows = dataSet.Klient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7606. if (((deletedRows != null)
  7607. && (0 < deletedRows.Length))) {
  7608. result = (result + this._klientTableAdapter.Update(deletedRows));
  7609. allChangedRows.AddRange(deletedRows);
  7610. }
  7611. }
  7612. if ((this._avtoTableAdapter != null)) {
  7613. global::System.Data.DataRow[] deletedRows = dataSet.Avto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7614. if (((deletedRows != null)
  7615. && (0 < deletedRows.Length))) {
  7616. result = (result + this._avtoTableAdapter.Update(deletedRows));
  7617. allChangedRows.AddRange(deletedRows);
  7618. }
  7619. }
  7620. if ((this._strahovkaTableAdapter != null)) {
  7621. global::System.Data.DataRow[] deletedRows = dataSet.Strahovka.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7622. if (((deletedRows != null)
  7623. && (0 < deletedRows.Length))) {
  7624. result = (result + this._strahovkaTableAdapter.Update(deletedRows));
  7625. allChangedRows.AddRange(deletedRows);
  7626. }
  7627. }
  7628. return result;
  7629. }
  7630. /// <summary>
  7631. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  7632. ///</summary>
  7633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7635. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7636. if (((updatedRows == null)
  7637. || (updatedRows.Length < 1))) {
  7638. return updatedRows;
  7639. }
  7640. if (((allAddedRows == null)
  7641. || (allAddedRows.Count < 1))) {
  7642. return updatedRows;
  7643. }
  7644. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7645. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  7646. global::System.Data.DataRow row = updatedRows[i];
  7647. if ((allAddedRows.Contains(row) == false)) {
  7648. realUpdatedRows.Add(row);
  7649. }
  7650. }
  7651. return realUpdatedRows.ToArray();
  7652. }
  7653. /// <summary>
  7654. ///Update all changes to the dataset.
  7655. ///</summary>
  7656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7658. public virtual int UpdateAll(Prokatavto06DataSet dataSet) {
  7659. if ((dataSet == null)) {
  7660. throw new global::System.ArgumentNullException("dataSet");
  7661. }
  7662. if ((dataSet.HasChanges() == false)) {
  7663. return 0;
  7664. }
  7665. if (((this._avtoTableAdapter != null)
  7666. && (this.MatchTableAdapterConnection(this._avtoTableAdapter.Connection) == false))) {
  7667. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7668. "r, должны использовать одинаковую строку подключения.");
  7669. }
  7670. if (((this._klientTableAdapter != null)
  7671. && (this.MatchTableAdapterConnection(this._klientTableAdapter.Connection) == false))) {
  7672. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7673. "r, должны использовать одинаковую строку подключения.");
  7674. }
  7675. if (((this._prokatTableAdapter != null)
  7676. && (this.MatchTableAdapterConnection(this._prokatTableAdapter.Connection) == false))) {
  7677. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7678. "r, должны использовать одинаковую строку подключения.");
  7679. }
  7680. if (((this._strahovkaTableAdapter != null)
  7681. && (this.MatchTableAdapterConnection(this._strahovkaTableAdapter.Connection) == false))) {
  7682. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  7683. "r, должны использовать одинаковую строку подключения.");
  7684. }
  7685. global::System.Data.IDbConnection workConnection = this.Connection;
  7686. if ((workConnection == null)) {
  7687. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  7688. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  7689. }
  7690. bool workConnOpened = false;
  7691. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  7692. == global::System.Data.ConnectionState.Broken)) {
  7693. workConnection.Close();
  7694. }
  7695. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  7696. workConnection.Open();
  7697. workConnOpened = true;
  7698. }
  7699. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  7700. if ((workTransaction == null)) {
  7701. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  7702. "и или текущее состояние не позволяет начать транзакцию.");
  7703. }
  7704. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7705. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7706. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  7707. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  7708. int result = 0;
  7709. global::System.Data.DataSet backupDataSet = null;
  7710. if (this.BackupDataSetBeforeUpdate) {
  7711. backupDataSet = new global::System.Data.DataSet();
  7712. backupDataSet.Merge(dataSet);
  7713. }
  7714. try {
  7715. // ---- Prepare for update -----------
  7716. //
  7717. if ((this._avtoTableAdapter != null)) {
  7718. revertConnections.Add(this._avtoTableAdapter, this._avtoTableAdapter.Connection);
  7719. this._avtoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7720. this._avtoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7721. if (this._avtoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7722. this._avtoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7723. adaptersWithAcceptChangesDuringUpdate.Add(this._avtoTableAdapter.Adapter);
  7724. }
  7725. }
  7726. if ((this._klientTableAdapter != null)) {
  7727. revertConnections.Add(this._klientTableAdapter, this._klientTableAdapter.Connection);
  7728. this._klientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7729. this._klientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7730. if (this._klientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7731. this._klientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7732. adaptersWithAcceptChangesDuringUpdate.Add(this._klientTableAdapter.Adapter);
  7733. }
  7734. }
  7735. if ((this._prokatTableAdapter != null)) {
  7736. revertConnections.Add(this._prokatTableAdapter, this._prokatTableAdapter.Connection);
  7737. this._prokatTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7738. this._prokatTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7739. if (this._prokatTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7740. this._prokatTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7741. adaptersWithAcceptChangesDuringUpdate.Add(this._prokatTableAdapter.Adapter);
  7742. }
  7743. }
  7744. if ((this._strahovkaTableAdapter != null)) {
  7745. revertConnections.Add(this._strahovkaTableAdapter, this._strahovkaTableAdapter.Connection);
  7746. this._strahovkaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7747. this._strahovkaTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7748. if (this._strahovkaTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7749. this._strahovkaTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7750. adaptersWithAcceptChangesDuringUpdate.Add(this._strahovkaTableAdapter.Adapter);
  7751. }
  7752. }
  7753. //
  7754. //---- Perform updates -----------
  7755. //
  7756. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  7757. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  7758. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  7759. }
  7760. else {
  7761. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  7762. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  7763. }
  7764. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  7765. //
  7766. //---- Commit updates -----------
  7767. //
  7768. workTransaction.Commit();
  7769. if ((0 < allAddedRows.Count)) {
  7770. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  7771. allAddedRows.CopyTo(rows);
  7772. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7773. global::System.Data.DataRow row = rows[i];
  7774. row.AcceptChanges();
  7775. }
  7776. }
  7777. if ((0 < allChangedRows.Count)) {
  7778. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  7779. allChangedRows.CopyTo(rows);
  7780. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7781. global::System.Data.DataRow row = rows[i];
  7782. row.AcceptChanges();
  7783. }
  7784. }
  7785. }
  7786. catch (global::System.Exception ex) {
  7787. workTransaction.Rollback();
  7788. // ---- Restore the dataset -----------
  7789. if (this.BackupDataSetBeforeUpdate) {
  7790. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  7791. dataSet.Clear();
  7792. dataSet.Merge(backupDataSet);
  7793. }
  7794. else {
  7795. if ((0 < allAddedRows.Count)) {
  7796. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  7797. allAddedRows.CopyTo(rows);
  7798. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7799. global::System.Data.DataRow row = rows[i];
  7800. row.AcceptChanges();
  7801. row.SetAdded();
  7802. }
  7803. }
  7804. }
  7805. throw ex;
  7806. }
  7807. finally {
  7808. if (workConnOpened) {
  7809. workConnection.Close();
  7810. }
  7811. if ((this._avtoTableAdapter != null)) {
  7812. this._avtoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._avtoTableAdapter]));
  7813. this._avtoTableAdapter.Transaction = null;
  7814. }
  7815. if ((this._klientTableAdapter != null)) {
  7816. this._klientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._klientTableAdapter]));
  7817. this._klientTableAdapter.Transaction = null;
  7818. }
  7819. if ((this._prokatTableAdapter != null)) {
  7820. this._prokatTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._prokatTableAdapter]));
  7821. this._prokatTableAdapter.Transaction = null;
  7822. }
  7823. if ((this._strahovkaTableAdapter != null)) {
  7824. this._strahovkaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._strahovkaTableAdapter]));
  7825. this._strahovkaTableAdapter.Transaction = null;
  7826. }
  7827. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  7828. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  7829. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  7830. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  7831. global::System.Data.Common.DataAdapter adapter = adapters[i];
  7832. adapter.AcceptChangesDuringUpdate = true;
  7833. }
  7834. }
  7835. }
  7836. return result;
  7837. }
  7838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7840. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  7841. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  7842. }
  7843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7845. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  7846. if ((this._connection != null)) {
  7847. return true;
  7848. }
  7849. if (((this.Connection == null)
  7850. || (inputConnection == null))) {
  7851. return true;
  7852. }
  7853. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  7854. return true;
  7855. }
  7856. return false;
  7857. }
  7858. /// <summary>
  7859. ///Update Order Option
  7860. ///</summary>
  7861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7862. public enum UpdateOrderOption {
  7863. InsertUpdateDelete = 0,
  7864. UpdateInsertDelete = 1,
  7865. }
  7866. /// <summary>
  7867. ///Used to sort self-referenced table's rows
  7868. ///</summary>
  7869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7870. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  7871. private global::System.Data.DataRelation _relation;
  7872. private int _childFirst;
  7873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7875. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  7876. this._relation = relation;
  7877. if (childFirst) {
  7878. this._childFirst = -1;
  7879. }
  7880. else {
  7881. this._childFirst = 1;
  7882. }
  7883. }
  7884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7886. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  7887. global::System.Diagnostics.Debug.Assert((row != null));
  7888. global::System.Data.DataRow root = row;
  7889. distance = 0;
  7890. global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>();
  7891. traversedRows[row] = row;
  7892. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  7893. for (
  7894. ; ((parent != null)
  7895. && (traversedRows.ContainsKey(parent) == false));
  7896. ) {
  7897. distance = (distance + 1);
  7898. root = parent;
  7899. traversedRows[parent] = parent;
  7900. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  7901. }
  7902. if ((distance == 0)) {
  7903. traversedRows.Clear();
  7904. traversedRows[row] = row;
  7905. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  7906. for (
  7907. ; ((parent != null)
  7908. && (traversedRows.ContainsKey(parent) == false));
  7909. ) {
  7910. distance = (distance + 1);
  7911. root = parent;
  7912. traversedRows[parent] = parent;
  7913. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  7914. }
  7915. }
  7916. return root;
  7917. }
  7918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7920. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  7921. if (object.ReferenceEquals(row1, row2)) {
  7922. return 0;
  7923. }
  7924. if ((row1 == null)) {
  7925. return -1;
  7926. }
  7927. if ((row2 == null)) {
  7928. return 1;
  7929. }
  7930. int distance1 = 0;
  7931. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  7932. int distance2 = 0;
  7933. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  7934. if (object.ReferenceEquals(root1, root2)) {
  7935. return (this._childFirst * distance1.CompareTo(distance2));
  7936. }
  7937. else {
  7938. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  7939. && (root2.Table != null)));
  7940. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  7941. return -1;
  7942. }
  7943. else {
  7944. return 1;
  7945. }
  7946. }
  7947. }
  7948. }
  7949. }
  7950. }
  7951. #pragma warning restore 1591