Prokatavto08DataSet.Designer.cs 465 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Prokatavto08 {
  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("Prokatavto08DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class Prokatavto08DataSet : global::System.Data.DataSet {
  22. private АвтомобилиDataTable tableАвтомобили;
  23. private КлиентыDataTable tableКлиенты;
  24. private ПрокатыDataTable tableПрокаты;
  25. private ПредставлениеDataTable tableПредставление;
  26. private ГосномерDataTable tableГосномер;
  27. private Госномер_автомобиляDataTable tableГосномер_автомобиля;
  28. private ДатаDataTable tableДата;
  29. private Дата_началаDataTable tableДата_начала;
  30. private global::System.Data.DataRelation relationFK_Прокаты_Автомобили;
  31. private global::System.Data.DataRelation relationFK_Прокаты_Клиенты;
  32. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  33. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  34. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  35. public Prokatavto08DataSet() {
  36. this.BeginInit();
  37. this.InitClass();
  38. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  39. base.Tables.CollectionChanged += schemaChangedHandler;
  40. base.Relations.CollectionChanged += schemaChangedHandler;
  41. this.EndInit();
  42. }
  43. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  44. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  45. protected Prokatavto08DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  46. base(info, context, false) {
  47. if ((this.IsBinarySerialized(info, context) == true)) {
  48. this.InitVars(false);
  49. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  50. this.Tables.CollectionChanged += schemaChangedHandler1;
  51. this.Relations.CollectionChanged += schemaChangedHandler1;
  52. return;
  53. }
  54. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  55. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  56. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  57. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  58. if ((ds.Tables["Автомобили"] != null)) {
  59. base.Tables.Add(new АвтомобилиDataTable(ds.Tables["Автомобили"]));
  60. }
  61. if ((ds.Tables["Клиенты"] != null)) {
  62. base.Tables.Add(new КлиентыDataTable(ds.Tables["Клиенты"]));
  63. }
  64. if ((ds.Tables["Прокаты"] != null)) {
  65. base.Tables.Add(new ПрокатыDataTable(ds.Tables["Прокаты"]));
  66. }
  67. if ((ds.Tables["Представление"] != null)) {
  68. base.Tables.Add(new ПредставлениеDataTable(ds.Tables["Представление"]));
  69. }
  70. if ((ds.Tables["Госномер"] != null)) {
  71. base.Tables.Add(new ГосномерDataTable(ds.Tables["Госномер"]));
  72. }
  73. if ((ds.Tables["Госномер_автомобиля"] != null)) {
  74. base.Tables.Add(new Госномер_автомобиляDataTable(ds.Tables["Госномер_автомобиля"]));
  75. }
  76. if ((ds.Tables["Дата"] != null)) {
  77. base.Tables.Add(new ДатаDataTable(ds.Tables["Дата"]));
  78. }
  79. if ((ds.Tables["Дата_начала"] != null)) {
  80. base.Tables.Add(new Дата_началаDataTable(ds.Tables["Дата_начала"]));
  81. }
  82. this.DataSetName = ds.DataSetName;
  83. this.Prefix = ds.Prefix;
  84. this.Namespace = ds.Namespace;
  85. this.Locale = ds.Locale;
  86. this.CaseSensitive = ds.CaseSensitive;
  87. this.EnforceConstraints = ds.EnforceConstraints;
  88. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  89. this.InitVars();
  90. }
  91. else {
  92. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  93. }
  94. this.GetSerializationData(info, context);
  95. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  96. base.Tables.CollectionChanged += schemaChangedHandler;
  97. this.Relations.CollectionChanged += schemaChangedHandler;
  98. }
  99. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  101. [global::System.ComponentModel.Browsable(false)]
  102. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  103. public АвтомобилиDataTable Автомобили {
  104. get {
  105. return this.tableАвтомобили;
  106. }
  107. }
  108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  110. [global::System.ComponentModel.Browsable(false)]
  111. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  112. public КлиентыDataTable Клиенты {
  113. get {
  114. return this.tableКлиенты;
  115. }
  116. }
  117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  119. [global::System.ComponentModel.Browsable(false)]
  120. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  121. public ПрокатыDataTable Прокаты {
  122. get {
  123. return this.tableПрокаты;
  124. }
  125. }
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  128. [global::System.ComponentModel.Browsable(false)]
  129. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  130. public ПредставлениеDataTable Представление {
  131. get {
  132. return this.tableПредставление;
  133. }
  134. }
  135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  137. [global::System.ComponentModel.Browsable(false)]
  138. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  139. public ГосномерDataTable Госномер {
  140. get {
  141. return this.tableГосномер;
  142. }
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  146. [global::System.ComponentModel.Browsable(false)]
  147. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  148. public Госномер_автомобиляDataTable Госномер_автомобиля {
  149. get {
  150. return this.tableГосномер_автомобиля;
  151. }
  152. }
  153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  155. [global::System.ComponentModel.Browsable(false)]
  156. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  157. public ДатаDataTable Дата {
  158. get {
  159. return this.tableДата;
  160. }
  161. }
  162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  164. [global::System.ComponentModel.Browsable(false)]
  165. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  166. public Дата_началаDataTable Дата_начала {
  167. get {
  168. return this.tableДата_начала;
  169. }
  170. }
  171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  173. [global::System.ComponentModel.BrowsableAttribute(true)]
  174. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  175. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  176. get {
  177. return this._schemaSerializationMode;
  178. }
  179. set {
  180. this._schemaSerializationMode = value;
  181. }
  182. }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  185. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  186. public new global::System.Data.DataTableCollection Tables {
  187. get {
  188. return base.Tables;
  189. }
  190. }
  191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  193. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  194. public new global::System.Data.DataRelationCollection Relations {
  195. get {
  196. return base.Relations;
  197. }
  198. }
  199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  201. protected override void InitializeDerivedDataSet() {
  202. this.BeginInit();
  203. this.InitClass();
  204. this.EndInit();
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  208. public override global::System.Data.DataSet Clone() {
  209. Prokatavto08DataSet cln = ((Prokatavto08DataSet)(base.Clone()));
  210. cln.InitVars();
  211. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  212. return cln;
  213. }
  214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  216. protected override bool ShouldSerializeTables() {
  217. return false;
  218. }
  219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  221. protected override bool ShouldSerializeRelations() {
  222. return false;
  223. }
  224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  226. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  227. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  228. this.Reset();
  229. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  230. ds.ReadXml(reader);
  231. if ((ds.Tables["Автомобили"] != null)) {
  232. base.Tables.Add(new АвтомобилиDataTable(ds.Tables["Автомобили"]));
  233. }
  234. if ((ds.Tables["Клиенты"] != null)) {
  235. base.Tables.Add(new КлиентыDataTable(ds.Tables["Клиенты"]));
  236. }
  237. if ((ds.Tables["Прокаты"] != null)) {
  238. base.Tables.Add(new ПрокатыDataTable(ds.Tables["Прокаты"]));
  239. }
  240. if ((ds.Tables["Представление"] != null)) {
  241. base.Tables.Add(new ПредставлениеDataTable(ds.Tables["Представление"]));
  242. }
  243. if ((ds.Tables["Госномер"] != null)) {
  244. base.Tables.Add(new ГосномерDataTable(ds.Tables["Госномер"]));
  245. }
  246. if ((ds.Tables["Госномер_автомобиля"] != null)) {
  247. base.Tables.Add(new Госномер_автомобиляDataTable(ds.Tables["Госномер_автомобиля"]));
  248. }
  249. if ((ds.Tables["Дата"] != null)) {
  250. base.Tables.Add(new ДатаDataTable(ds.Tables["Дата"]));
  251. }
  252. if ((ds.Tables["Дата_начала"] != null)) {
  253. base.Tables.Add(new Дата_началаDataTable(ds.Tables["Дата_начала"]));
  254. }
  255. this.DataSetName = ds.DataSetName;
  256. this.Prefix = ds.Prefix;
  257. this.Namespace = ds.Namespace;
  258. this.Locale = ds.Locale;
  259. this.CaseSensitive = ds.CaseSensitive;
  260. this.EnforceConstraints = ds.EnforceConstraints;
  261. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  262. this.InitVars();
  263. }
  264. else {
  265. this.ReadXml(reader);
  266. this.InitVars();
  267. }
  268. }
  269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  271. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  272. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  273. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  274. stream.Position = 0;
  275. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  276. }
  277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  279. internal void InitVars() {
  280. this.InitVars(true);
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  284. internal void InitVars(bool initTable) {
  285. this.tableАвтомобили = ((АвтомобилиDataTable)(base.Tables["Автомобили"]));
  286. if ((initTable == true)) {
  287. if ((this.tableАвтомобили != null)) {
  288. this.tableАвтомобили.InitVars();
  289. }
  290. }
  291. this.tableКлиенты = ((КлиентыDataTable)(base.Tables["Клиенты"]));
  292. if ((initTable == true)) {
  293. if ((this.tableКлиенты != null)) {
  294. this.tableКлиенты.InitVars();
  295. }
  296. }
  297. this.tableПрокаты = ((ПрокатыDataTable)(base.Tables["Прокаты"]));
  298. if ((initTable == true)) {
  299. if ((this.tableПрокаты != null)) {
  300. this.tableПрокаты.InitVars();
  301. }
  302. }
  303. this.tableПредставление = ((ПредставлениеDataTable)(base.Tables["Представление"]));
  304. if ((initTable == true)) {
  305. if ((this.tableПредставление != null)) {
  306. this.tableПредставление.InitVars();
  307. }
  308. }
  309. this.tableГосномер = ((ГосномерDataTable)(base.Tables["Госномер"]));
  310. if ((initTable == true)) {
  311. if ((this.tableГосномер != null)) {
  312. this.tableГосномер.InitVars();
  313. }
  314. }
  315. this.tableГосномер_автомобиля = ((Госномер_автомобиляDataTable)(base.Tables["Госномер_автомобиля"]));
  316. if ((initTable == true)) {
  317. if ((this.tableГосномер_автомобиля != null)) {
  318. this.tableГосномер_автомобиля.InitVars();
  319. }
  320. }
  321. this.tableДата = ((ДатаDataTable)(base.Tables["Дата"]));
  322. if ((initTable == true)) {
  323. if ((this.tableДата != null)) {
  324. this.tableДата.InitVars();
  325. }
  326. }
  327. this.tableДата_начала = ((Дата_началаDataTable)(base.Tables["Дата_начала"]));
  328. if ((initTable == true)) {
  329. if ((this.tableДата_начала != null)) {
  330. this.tableДата_начала.InitVars();
  331. }
  332. }
  333. this.relationFK_Прокаты_Автомобили = this.Relations["FK_Прокаты_Автомобили"];
  334. this.relationFK_Прокаты_Клиенты = this.Relations["FK_Прокаты_Клиенты"];
  335. }
  336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  338. private void InitClass() {
  339. this.DataSetName = "Prokatavto08DataSet";
  340. this.Prefix = "";
  341. this.Namespace = "http://tempuri.org/Prokatavto08DataSet.xsd";
  342. this.EnforceConstraints = true;
  343. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  344. this.tableАвтомобили = new АвтомобилиDataTable();
  345. base.Tables.Add(this.tableАвтомобили);
  346. this.tableКлиенты = new КлиентыDataTable();
  347. base.Tables.Add(this.tableКлиенты);
  348. this.tableПрокаты = new ПрокатыDataTable();
  349. base.Tables.Add(this.tableПрокаты);
  350. this.tableПредставление = new ПредставлениеDataTable();
  351. base.Tables.Add(this.tableПредставление);
  352. this.tableГосномер = new ГосномерDataTable();
  353. base.Tables.Add(this.tableГосномер);
  354. this.tableГосномер_автомобиля = new Госномер_автомобиляDataTable();
  355. base.Tables.Add(this.tableГосномер_автомобиля);
  356. this.tableДата = new ДатаDataTable();
  357. base.Tables.Add(this.tableДата);
  358. this.tableДата_начала = new Дата_началаDataTable();
  359. base.Tables.Add(this.tableДата_начала);
  360. this.relationFK_Прокаты_Автомобили = new global::System.Data.DataRelation("FK_Прокаты_Автомобили", new global::System.Data.DataColumn[] {
  361. this.tableАвтомобили.Код_автомобиляColumn}, new global::System.Data.DataColumn[] {
  362. this.tableПрокаты.Код_автомобиляColumn}, false);
  363. this.Relations.Add(this.relationFK_Прокаты_Автомобили);
  364. this.relationFK_Прокаты_Клиенты = new global::System.Data.DataRelation("FK_Прокаты_Клиенты", new global::System.Data.DataColumn[] {
  365. this.tableКлиенты.Код_клиентаColumn}, new global::System.Data.DataColumn[] {
  366. this.tableПрокаты.Код_клиентаColumn}, false);
  367. this.Relations.Add(this.relationFK_Прокаты_Клиенты);
  368. }
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  371. private bool ShouldSerializeАвтомобили() {
  372. return false;
  373. }
  374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  376. private bool ShouldSerializeКлиенты() {
  377. return false;
  378. }
  379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  381. private bool ShouldSerializeПрокаты() {
  382. return false;
  383. }
  384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  386. private bool ShouldSerializeПредставление() {
  387. return false;
  388. }
  389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  391. private bool ShouldSerializeГосномер() {
  392. return false;
  393. }
  394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  396. private bool ShouldSerializeГосномер_автомобиля() {
  397. return false;
  398. }
  399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  401. private bool ShouldSerializeДата() {
  402. return false;
  403. }
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  406. private bool ShouldSerializeДата_начала() {
  407. return false;
  408. }
  409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  411. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  412. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  413. this.InitVars();
  414. }
  415. }
  416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  418. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  419. Prokatavto08DataSet ds = new Prokatavto08DataSet();
  420. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  421. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  422. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  423. any.Namespace = ds.Namespace;
  424. sequence.Items.Add(any);
  425. type.Particle = sequence;
  426. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  427. if (xs.Contains(dsSchema.TargetNamespace)) {
  428. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  429. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  430. try {
  431. global::System.Xml.Schema.XmlSchema schema = null;
  432. dsSchema.Write(s1);
  433. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  434. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  435. s2.SetLength(0);
  436. schema.Write(s2);
  437. if ((s1.Length == s2.Length)) {
  438. s1.Position = 0;
  439. s2.Position = 0;
  440. for (; ((s1.Position != s1.Length)
  441. && (s1.ReadByte() == s2.ReadByte())); ) {
  442. ;
  443. }
  444. if ((s1.Position == s1.Length)) {
  445. return type;
  446. }
  447. }
  448. }
  449. }
  450. finally {
  451. if ((s1 != null)) {
  452. s1.Close();
  453. }
  454. if ((s2 != null)) {
  455. s2.Close();
  456. }
  457. }
  458. }
  459. xs.Add(dsSchema);
  460. return type;
  461. }
  462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  463. public delegate void АвтомобилиRowChangeEventHandler(object sender, АвтомобилиRowChangeEvent e);
  464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  465. public delegate void КлиентыRowChangeEventHandler(object sender, КлиентыRowChangeEvent e);
  466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  467. public delegate void ПрокатыRowChangeEventHandler(object sender, ПрокатыRowChangeEvent e);
  468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  469. public delegate void ПредставлениеRowChangeEventHandler(object sender, ПредставлениеRowChangeEvent e);
  470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  471. public delegate void ГосномерRowChangeEventHandler(object sender, ГосномерRowChangeEvent e);
  472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  473. public delegate void Госномер_автомобиляRowChangeEventHandler(object sender, Госномер_автомобиляRowChangeEvent e);
  474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  475. public delegate void ДатаRowChangeEventHandler(object sender, ДатаRowChangeEvent e);
  476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  477. public delegate void Дата_началаRowChangeEventHandler(object sender, Дата_началаRowChangeEvent e);
  478. /// <summary>
  479. ///Represents the strongly named DataTable class.
  480. ///</summary>
  481. [global::System.Serializable()]
  482. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  483. public partial class АвтомобилиDataTable : global::System.Data.TypedTableBase<АвтомобилиRow> {
  484. private global::System.Data.DataColumn columnКод_автомобиля;
  485. private global::System.Data.DataColumn columnМарка_автомобиля;
  486. private global::System.Data.DataColumn columnЦвет_автомобиля;
  487. private global::System.Data.DataColumn columnГод_выпуска_автомобиля;
  488. private global::System.Data.DataColumn columnГосномер_автомобиля;
  489. private global::System.Data.DataColumn columnСтраховая_стоимость;
  490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  492. public АвтомобилиDataTable() {
  493. this.TableName = "Автомобили";
  494. this.BeginInit();
  495. this.InitClass();
  496. this.EndInit();
  497. }
  498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  500. internal АвтомобилиDataTable(global::System.Data.DataTable table) {
  501. this.TableName = table.TableName;
  502. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  503. this.CaseSensitive = table.CaseSensitive;
  504. }
  505. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  506. this.Locale = table.Locale;
  507. }
  508. if ((table.Namespace != table.DataSet.Namespace)) {
  509. this.Namespace = table.Namespace;
  510. }
  511. this.Prefix = table.Prefix;
  512. this.MinimumCapacity = table.MinimumCapacity;
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  516. protected АвтомобилиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  517. base(info, context) {
  518. this.InitVars();
  519. }
  520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  522. public global::System.Data.DataColumn Код_автомобиляColumn {
  523. get {
  524. return this.columnКод_автомобиля;
  525. }
  526. }
  527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  529. public global::System.Data.DataColumn Марка_автомобиляColumn {
  530. get {
  531. return this.columnМарка_автомобиля;
  532. }
  533. }
  534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  536. public global::System.Data.DataColumn Цвет_автомобиляColumn {
  537. get {
  538. return this.columnЦвет_автомобиля;
  539. }
  540. }
  541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  543. public global::System.Data.DataColumn Год_выпуска_автомобиляColumn {
  544. get {
  545. return this.columnГод_выпуска_автомобиля;
  546. }
  547. }
  548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  550. public global::System.Data.DataColumn Госномер_автомобиляColumn {
  551. get {
  552. return this.columnГосномер_автомобиля;
  553. }
  554. }
  555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  557. public global::System.Data.DataColumn Страховая_стоимостьColumn {
  558. get {
  559. return this.columnСтраховая_стоимость;
  560. }
  561. }
  562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  564. [global::System.ComponentModel.Browsable(false)]
  565. public int Count {
  566. get {
  567. return this.Rows.Count;
  568. }
  569. }
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  572. public АвтомобилиRow this[int index] {
  573. get {
  574. return ((АвтомобилиRow)(this.Rows[index]));
  575. }
  576. }
  577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  578. public event АвтомобилиRowChangeEventHandler АвтомобилиRowChanging;
  579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  580. public event АвтомобилиRowChangeEventHandler АвтомобилиRowChanged;
  581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  582. public event АвтомобилиRowChangeEventHandler АвтомобилиRowDeleting;
  583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  584. public event АвтомобилиRowChangeEventHandler АвтомобилиRowDeleted;
  585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  587. public void AddАвтомобилиRow(АвтомобилиRow row) {
  588. this.Rows.Add(row);
  589. }
  590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  592. public АвтомобилиRow AddАвтомобилиRow(string Марка_автомобиля, string Цвет_автомобиля, string Год_выпуска_автомобиля, string Госномер_автомобиля, decimal Страховая_стоимость) {
  593. АвтомобилиRow rowАвтомобилиRow = ((АвтомобилиRow)(this.NewRow()));
  594. object[] columnValuesArray = new object[] {
  595. null,
  596. Марка_автомобиля,
  597. Цвет_автомобиля,
  598. Год_выпуска_автомобиля,
  599. Госномер_автомобиля,
  600. Страховая_стоимость};
  601. rowАвтомобилиRow.ItemArray = columnValuesArray;
  602. this.Rows.Add(rowАвтомобилиRow);
  603. return rowАвтомобилиRow;
  604. }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  607. public АвтомобилиRow FindByКод_автомобиля(int Код_автомобиля) {
  608. return ((АвтомобилиRow)(this.Rows.Find(new object[] {
  609. Код_автомобиля})));
  610. }
  611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  613. public override global::System.Data.DataTable Clone() {
  614. АвтомобилиDataTable cln = ((АвтомобилиDataTable)(base.Clone()));
  615. cln.InitVars();
  616. return cln;
  617. }
  618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  620. protected override global::System.Data.DataTable CreateInstance() {
  621. return new АвтомобилиDataTable();
  622. }
  623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  625. internal void InitVars() {
  626. this.columnКод_автомобиля = base.Columns["Код_автомобиля"];
  627. this.columnМарка_автомобиля = base.Columns["Марка_автомобиля"];
  628. this.columnЦвет_автомобиля = base.Columns["Цвет_автомобиля"];
  629. this.columnГод_выпуска_автомобиля = base.Columns["Год_выпуска_автомобиля"];
  630. this.columnГосномер_автомобиля = base.Columns["Госномер_автомобиля"];
  631. this.columnСтраховая_стоимость = base.Columns["Страховая_стоимость"];
  632. }
  633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  635. private void InitClass() {
  636. this.columnКод_автомобиля = new global::System.Data.DataColumn("Код_автомобиля", typeof(int), null, global::System.Data.MappingType.Element);
  637. base.Columns.Add(this.columnКод_автомобиля);
  638. this.columnМарка_автомобиля = new global::System.Data.DataColumn("Марка_автомобиля", typeof(string), null, global::System.Data.MappingType.Element);
  639. base.Columns.Add(this.columnМарка_автомобиля);
  640. this.columnЦвет_автомобиля = new global::System.Data.DataColumn("Цвет_автомобиля", typeof(string), null, global::System.Data.MappingType.Element);
  641. base.Columns.Add(this.columnЦвет_автомобиля);
  642. this.columnГод_выпуска_автомобиля = new global::System.Data.DataColumn("Год_выпуска_автомобиля", typeof(string), null, global::System.Data.MappingType.Element);
  643. base.Columns.Add(this.columnГод_выпуска_автомобиля);
  644. this.columnГосномер_автомобиля = new global::System.Data.DataColumn("Госномер_автомобиля", typeof(string), null, global::System.Data.MappingType.Element);
  645. base.Columns.Add(this.columnГосномер_автомобиля);
  646. this.columnСтраховая_стоимость = new global::System.Data.DataColumn("Страховая_стоимость", typeof(decimal), null, global::System.Data.MappingType.Element);
  647. base.Columns.Add(this.columnСтраховая_стоимость);
  648. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  649. this.columnКод_автомобиля}, true));
  650. this.columnКод_автомобиля.AutoIncrement = true;
  651. this.columnКод_автомобиля.AutoIncrementSeed = -1;
  652. this.columnКод_автомобиля.AutoIncrementStep = -1;
  653. this.columnКод_автомобиля.AllowDBNull = false;
  654. this.columnКод_автомобиля.ReadOnly = true;
  655. this.columnКод_автомобиля.Unique = true;
  656. this.columnМарка_автомобиля.MaxLength = 10;
  657. this.columnЦвет_автомобиля.MaxLength = 10;
  658. this.columnГод_выпуска_автомобиля.MaxLength = 4;
  659. this.columnГосномер_автомобиля.MaxLength = 10;
  660. }
  661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  663. public АвтомобилиRow NewАвтомобилиRow() {
  664. return ((АвтомобилиRow)(this.NewRow()));
  665. }
  666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  668. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  669. return new АвтомобилиRow(builder);
  670. }
  671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  673. protected override global::System.Type GetRowType() {
  674. return typeof(АвтомобилиRow);
  675. }
  676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  678. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  679. base.OnRowChanged(e);
  680. if ((this.АвтомобилиRowChanged != null)) {
  681. this.АвтомобилиRowChanged(this, new АвтомобилиRowChangeEvent(((АвтомобилиRow)(e.Row)), e.Action));
  682. }
  683. }
  684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  686. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  687. base.OnRowChanging(e);
  688. if ((this.АвтомобилиRowChanging != null)) {
  689. this.АвтомобилиRowChanging(this, new АвтомобилиRowChangeEvent(((АвтомобилиRow)(e.Row)), e.Action));
  690. }
  691. }
  692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  694. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  695. base.OnRowDeleted(e);
  696. if ((this.АвтомобилиRowDeleted != null)) {
  697. this.АвтомобилиRowDeleted(this, new АвтомобилиRowChangeEvent(((АвтомобилиRow)(e.Row)), e.Action));
  698. }
  699. }
  700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  702. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  703. base.OnRowDeleting(e);
  704. if ((this.АвтомобилиRowDeleting != null)) {
  705. this.АвтомобилиRowDeleting(this, new АвтомобилиRowChangeEvent(((АвтомобилиRow)(e.Row)), e.Action));
  706. }
  707. }
  708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  710. public void RemoveАвтомобилиRow(АвтомобилиRow row) {
  711. this.Rows.Remove(row);
  712. }
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  715. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  716. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  717. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  718. Prokatavto08DataSet ds = new Prokatavto08DataSet();
  719. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  720. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  721. any1.MinOccurs = new decimal(0);
  722. any1.MaxOccurs = decimal.MaxValue;
  723. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  724. sequence.Items.Add(any1);
  725. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  726. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  727. any2.MinOccurs = new decimal(1);
  728. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  729. sequence.Items.Add(any2);
  730. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  731. attribute1.Name = "namespace";
  732. attribute1.FixedValue = ds.Namespace;
  733. type.Attributes.Add(attribute1);
  734. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  735. attribute2.Name = "tableTypeName";
  736. attribute2.FixedValue = "АвтомобилиDataTable";
  737. type.Attributes.Add(attribute2);
  738. type.Particle = sequence;
  739. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  740. if (xs.Contains(dsSchema.TargetNamespace)) {
  741. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  742. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  743. try {
  744. global::System.Xml.Schema.XmlSchema schema = null;
  745. dsSchema.Write(s1);
  746. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  747. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  748. s2.SetLength(0);
  749. schema.Write(s2);
  750. if ((s1.Length == s2.Length)) {
  751. s1.Position = 0;
  752. s2.Position = 0;
  753. for (; ((s1.Position != s1.Length)
  754. && (s1.ReadByte() == s2.ReadByte())); ) {
  755. ;
  756. }
  757. if ((s1.Position == s1.Length)) {
  758. return type;
  759. }
  760. }
  761. }
  762. }
  763. finally {
  764. if ((s1 != null)) {
  765. s1.Close();
  766. }
  767. if ((s2 != null)) {
  768. s2.Close();
  769. }
  770. }
  771. }
  772. xs.Add(dsSchema);
  773. return type;
  774. }
  775. }
  776. /// <summary>
  777. ///Represents the strongly named DataTable class.
  778. ///</summary>
  779. [global::System.Serializable()]
  780. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  781. public partial class КлиентыDataTable : global::System.Data.TypedTableBase<КлиентыRow> {
  782. private global::System.Data.DataColumn columnКод_клиента;
  783. private global::System.Data.DataColumn columnФамилия;
  784. private global::System.Data.DataColumn columnИмя;
  785. private global::System.Data.DataColumn columnОтчество;
  786. private global::System.Data.DataColumn columnСерия_и_номер_паспорта;
  787. private global::System.Data.DataColumn columnАдрес;
  788. private global::System.Data.DataColumn columnТелефон;
  789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  791. public КлиентыDataTable() {
  792. this.TableName = "Клиенты";
  793. this.BeginInit();
  794. this.InitClass();
  795. this.EndInit();
  796. }
  797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  799. internal КлиентыDataTable(global::System.Data.DataTable table) {
  800. this.TableName = table.TableName;
  801. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  802. this.CaseSensitive = table.CaseSensitive;
  803. }
  804. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  805. this.Locale = table.Locale;
  806. }
  807. if ((table.Namespace != table.DataSet.Namespace)) {
  808. this.Namespace = table.Namespace;
  809. }
  810. this.Prefix = table.Prefix;
  811. this.MinimumCapacity = table.MinimumCapacity;
  812. }
  813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  815. protected КлиентыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  816. base(info, context) {
  817. this.InitVars();
  818. }
  819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  821. public global::System.Data.DataColumn Код_клиентаColumn {
  822. get {
  823. return this.columnКод_клиента;
  824. }
  825. }
  826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  828. public global::System.Data.DataColumn ФамилияColumn {
  829. get {
  830. return this.columnФамилия;
  831. }
  832. }
  833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  835. public global::System.Data.DataColumn ИмяColumn {
  836. get {
  837. return this.columnИмя;
  838. }
  839. }
  840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  842. public global::System.Data.DataColumn ОтчествоColumn {
  843. get {
  844. return this.columnОтчество;
  845. }
  846. }
  847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  849. public global::System.Data.DataColumn Серия_и_номер_паспортаColumn {
  850. get {
  851. return this.columnСерия_и_номер_паспорта;
  852. }
  853. }
  854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  856. public global::System.Data.DataColumn АдресColumn {
  857. get {
  858. return this.columnАдрес;
  859. }
  860. }
  861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  863. public global::System.Data.DataColumn ТелефонColumn {
  864. get {
  865. return this.columnТелефон;
  866. }
  867. }
  868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  870. [global::System.ComponentModel.Browsable(false)]
  871. public int Count {
  872. get {
  873. return this.Rows.Count;
  874. }
  875. }
  876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  878. public КлиентыRow this[int index] {
  879. get {
  880. return ((КлиентыRow)(this.Rows[index]));
  881. }
  882. }
  883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  884. public event КлиентыRowChangeEventHandler КлиентыRowChanging;
  885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  886. public event КлиентыRowChangeEventHandler КлиентыRowChanged;
  887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  888. public event КлиентыRowChangeEventHandler КлиентыRowDeleting;
  889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  890. public event КлиентыRowChangeEventHandler КлиентыRowDeleted;
  891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  893. public void AddКлиентыRow(КлиентыRow row) {
  894. this.Rows.Add(row);
  895. }
  896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  898. public КлиентыRow AddКлиентыRow(string Фамилия, string Имя, string Отчество, string Серия_и_номер_паспорта, string Адрес, string Телефон) {
  899. КлиентыRow rowКлиентыRow = ((КлиентыRow)(this.NewRow()));
  900. object[] columnValuesArray = new object[] {
  901. null,
  902. Фамилия,
  903. Имя,
  904. Отчество,
  905. Серия_и_номер_паспорта,
  906. Адрес,
  907. Телефон};
  908. rowКлиентыRow.ItemArray = columnValuesArray;
  909. this.Rows.Add(rowКлиентыRow);
  910. return rowКлиентыRow;
  911. }
  912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  914. public КлиентыRow FindByКод_клиента(int Код_клиента) {
  915. return ((КлиентыRow)(this.Rows.Find(new object[] {
  916. Код_клиента})));
  917. }
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  920. public override global::System.Data.DataTable Clone() {
  921. КлиентыDataTable cln = ((КлиентыDataTable)(base.Clone()));
  922. cln.InitVars();
  923. return cln;
  924. }
  925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  927. protected override global::System.Data.DataTable CreateInstance() {
  928. return new КлиентыDataTable();
  929. }
  930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  932. internal void InitVars() {
  933. this.columnКод_клиента = base.Columns["Код_клиента"];
  934. this.columnФамилия = base.Columns["Фамилия"];
  935. this.columnИмя = base.Columns["Имя"];
  936. this.columnОтчество = base.Columns["Отчество"];
  937. this.columnСерия_и_номер_паспорта = base.Columns["Серия_и_номер_паспорта"];
  938. this.columnАдрес = base.Columns["Адрес"];
  939. this.columnТелефон = base.Columns["Телефон"];
  940. }
  941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  943. private void InitClass() {
  944. this.columnКод_клиента = new global::System.Data.DataColumn("Код_клиента", typeof(int), null, global::System.Data.MappingType.Element);
  945. base.Columns.Add(this.columnКод_клиента);
  946. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  947. base.Columns.Add(this.columnФамилия);
  948. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  949. base.Columns.Add(this.columnИмя);
  950. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  951. base.Columns.Add(this.columnОтчество);
  952. this.columnСерия_и_номер_паспорта = new global::System.Data.DataColumn("Серия_и_номер_паспорта", typeof(string), null, global::System.Data.MappingType.Element);
  953. base.Columns.Add(this.columnСерия_и_номер_паспорта);
  954. this.columnАдрес = new global::System.Data.DataColumn("Адрес", typeof(string), null, global::System.Data.MappingType.Element);
  955. base.Columns.Add(this.columnАдрес);
  956. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  957. base.Columns.Add(this.columnТелефон);
  958. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  959. this.columnКод_клиента}, true));
  960. this.columnКод_клиента.AutoIncrement = true;
  961. this.columnКод_клиента.AutoIncrementSeed = -1;
  962. this.columnКод_клиента.AutoIncrementStep = -1;
  963. this.columnКод_клиента.AllowDBNull = false;
  964. this.columnКод_клиента.ReadOnly = true;
  965. this.columnКод_клиента.Unique = true;
  966. this.columnФамилия.MaxLength = 20;
  967. this.columnИмя.MaxLength = 20;
  968. this.columnОтчество.MaxLength = 20;
  969. this.columnСерия_и_номер_паспорта.MaxLength = 30;
  970. this.columnАдрес.MaxLength = 50;
  971. this.columnТелефон.MaxLength = 15;
  972. }
  973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  975. public КлиентыRow NewКлиентыRow() {
  976. return ((КлиентыRow)(this.NewRow()));
  977. }
  978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  980. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  981. return new КлиентыRow(builder);
  982. }
  983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  985. protected override global::System.Type GetRowType() {
  986. return typeof(КлиентыRow);
  987. }
  988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  990. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  991. base.OnRowChanged(e);
  992. if ((this.КлиентыRowChanged != null)) {
  993. this.КлиентыRowChanged(this, new КлиентыRowChangeEvent(((КлиентыRow)(e.Row)), e.Action));
  994. }
  995. }
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  998. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  999. base.OnRowChanging(e);
  1000. if ((this.КлиентыRowChanging != null)) {
  1001. this.КлиентыRowChanging(this, new КлиентыRowChangeEvent(((КлиентыRow)(e.Row)), e.Action));
  1002. }
  1003. }
  1004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1006. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1007. base.OnRowDeleted(e);
  1008. if ((this.КлиентыRowDeleted != null)) {
  1009. this.КлиентыRowDeleted(this, new КлиентыRowChangeEvent(((КлиентыRow)(e.Row)), e.Action));
  1010. }
  1011. }
  1012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1014. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1015. base.OnRowDeleting(e);
  1016. if ((this.КлиентыRowDeleting != null)) {
  1017. this.КлиентыRowDeleting(this, new КлиентыRowChangeEvent(((КлиентыRow)(e.Row)), e.Action));
  1018. }
  1019. }
  1020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1022. public void RemoveКлиентыRow(КлиентыRow row) {
  1023. this.Rows.Remove(row);
  1024. }
  1025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1027. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1028. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1029. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1030. Prokatavto08DataSet ds = new Prokatavto08DataSet();
  1031. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1032. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1033. any1.MinOccurs = new decimal(0);
  1034. any1.MaxOccurs = decimal.MaxValue;
  1035. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1036. sequence.Items.Add(any1);
  1037. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1038. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1039. any2.MinOccurs = new decimal(1);
  1040. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1041. sequence.Items.Add(any2);
  1042. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1043. attribute1.Name = "namespace";
  1044. attribute1.FixedValue = ds.Namespace;
  1045. type.Attributes.Add(attribute1);
  1046. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1047. attribute2.Name = "tableTypeName";
  1048. attribute2.FixedValue = "КлиентыDataTable";
  1049. type.Attributes.Add(attribute2);
  1050. type.Particle = sequence;
  1051. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1052. if (xs.Contains(dsSchema.TargetNamespace)) {
  1053. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1054. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1055. try {
  1056. global::System.Xml.Schema.XmlSchema schema = null;
  1057. dsSchema.Write(s1);
  1058. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1059. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1060. s2.SetLength(0);
  1061. schema.Write(s2);
  1062. if ((s1.Length == s2.Length)) {
  1063. s1.Position = 0;
  1064. s2.Position = 0;
  1065. for (; ((s1.Position != s1.Length)
  1066. && (s1.ReadByte() == s2.ReadByte())); ) {
  1067. ;
  1068. }
  1069. if ((s1.Position == s1.Length)) {
  1070. return type;
  1071. }
  1072. }
  1073. }
  1074. }
  1075. finally {
  1076. if ((s1 != null)) {
  1077. s1.Close();
  1078. }
  1079. if ((s2 != null)) {
  1080. s2.Close();
  1081. }
  1082. }
  1083. }
  1084. xs.Add(dsSchema);
  1085. return type;
  1086. }
  1087. }
  1088. /// <summary>
  1089. ///Represents the strongly named DataTable class.
  1090. ///</summary>
  1091. [global::System.Serializable()]
  1092. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1093. public partial class ПрокатыDataTable : global::System.Data.TypedTableBase<ПрокатыRow> {
  1094. private global::System.Data.DataColumn columnКод_проката;
  1095. private global::System.Data.DataColumn columnКод_автомобиля;
  1096. private global::System.Data.DataColumn columnКод_клиента;
  1097. private global::System.Data.DataColumn columnДата_начала_проката;
  1098. private global::System.Data.DataColumn columnКоличество_дней_проката;
  1099. private global::System.Data.DataColumn columnДата_окончания_проката;
  1100. private global::System.Data.DataColumn columnСтоимость_одного_дня_проката;
  1101. private global::System.Data.DataColumn columnСтоимость_проката;
  1102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1104. public ПрокатыDataTable() {
  1105. this.TableName = "Прокаты";
  1106. this.BeginInit();
  1107. this.InitClass();
  1108. this.EndInit();
  1109. }
  1110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1112. internal ПрокатыDataTable(global::System.Data.DataTable table) {
  1113. this.TableName = table.TableName;
  1114. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1115. this.CaseSensitive = table.CaseSensitive;
  1116. }
  1117. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1118. this.Locale = table.Locale;
  1119. }
  1120. if ((table.Namespace != table.DataSet.Namespace)) {
  1121. this.Namespace = table.Namespace;
  1122. }
  1123. this.Prefix = table.Prefix;
  1124. this.MinimumCapacity = table.MinimumCapacity;
  1125. }
  1126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1128. protected ПрокатыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1129. base(info, context) {
  1130. this.InitVars();
  1131. }
  1132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1134. public global::System.Data.DataColumn Код_прокатаColumn {
  1135. get {
  1136. return this.columnКод_проката;
  1137. }
  1138. }
  1139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1141. public global::System.Data.DataColumn Код_автомобиляColumn {
  1142. get {
  1143. return this.columnКод_автомобиля;
  1144. }
  1145. }
  1146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1148. public global::System.Data.DataColumn Код_клиентаColumn {
  1149. get {
  1150. return this.columnКод_клиента;
  1151. }
  1152. }
  1153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1155. public global::System.Data.DataColumn Дата_начала_прокатаColumn {
  1156. get {
  1157. return this.columnДата_начала_проката;
  1158. }
  1159. }
  1160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1162. public global::System.Data.DataColumn Количество_дней_прокатаColumn {
  1163. get {
  1164. return this.columnКоличество_дней_проката;
  1165. }
  1166. }
  1167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1169. public global::System.Data.DataColumn Дата_окончания_прокатаColumn {
  1170. get {
  1171. return this.columnДата_окончания_проката;
  1172. }
  1173. }
  1174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1176. public global::System.Data.DataColumn Стоимость_одного_дня_прокатаColumn {
  1177. get {
  1178. return this.columnСтоимость_одного_дня_проката;
  1179. }
  1180. }
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1183. public global::System.Data.DataColumn Стоимость_прокатаColumn {
  1184. get {
  1185. return this.columnСтоимость_проката;
  1186. }
  1187. }
  1188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1190. [global::System.ComponentModel.Browsable(false)]
  1191. public int Count {
  1192. get {
  1193. return this.Rows.Count;
  1194. }
  1195. }
  1196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1198. public ПрокатыRow this[int index] {
  1199. get {
  1200. return ((ПрокатыRow)(this.Rows[index]));
  1201. }
  1202. }
  1203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1204. public event ПрокатыRowChangeEventHandler ПрокатыRowChanging;
  1205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1206. public event ПрокатыRowChangeEventHandler ПрокатыRowChanged;
  1207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1208. public event ПрокатыRowChangeEventHandler ПрокатыRowDeleting;
  1209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1210. public event ПрокатыRowChangeEventHandler ПрокатыRowDeleted;
  1211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1213. public void AddПрокатыRow(ПрокатыRow row) {
  1214. this.Rows.Add(row);
  1215. }
  1216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1218. public ПрокатыRow AddПрокатыRow(АвтомобилиRow parentАвтомобилиRowByFK_Прокаты_Автомобили, КлиентыRow parentКлиентыRowByFK_Прокаты_Клиенты, System.DateTime Дата_начала_проката, string Количество_дней_проката, System.DateTime Дата_окончания_проката, decimal Стоимость_одного_дня_проката, decimal Стоимость_проката) {
  1219. ПрокатыRow rowПрокатыRow = ((ПрокатыRow)(this.NewRow()));
  1220. object[] columnValuesArray = new object[] {
  1221. null,
  1222. null,
  1223. null,
  1224. Дата_начала_проката,
  1225. Количество_дней_проката,
  1226. Дата_окончания_проката,
  1227. Стоимость_одного_дня_проката,
  1228. Стоимость_проката};
  1229. if ((parentАвтомобилиRowByFK_Прокаты_Автомобили != null)) {
  1230. columnValuesArray[1] = parentАвтомобилиRowByFK_Прокаты_Автомобили[0];
  1231. }
  1232. if ((parentКлиентыRowByFK_Прокаты_Клиенты != null)) {
  1233. columnValuesArray[2] = parentКлиентыRowByFK_Прокаты_Клиенты[0];
  1234. }
  1235. rowПрокатыRow.ItemArray = columnValuesArray;
  1236. this.Rows.Add(rowПрокатыRow);
  1237. return rowПрокатыRow;
  1238. }
  1239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1241. public ПрокатыRow FindByКод_проката(int Код_проката) {
  1242. return ((ПрокатыRow)(this.Rows.Find(new object[] {
  1243. Код_проката})));
  1244. }
  1245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1247. public override global::System.Data.DataTable Clone() {
  1248. ПрокатыDataTable cln = ((ПрокатыDataTable)(base.Clone()));
  1249. cln.InitVars();
  1250. return cln;
  1251. }
  1252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1254. protected override global::System.Data.DataTable CreateInstance() {
  1255. return new ПрокатыDataTable();
  1256. }
  1257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1259. internal void InitVars() {
  1260. this.columnКод_проката = base.Columns["Код_проката"];
  1261. this.columnКод_автомобиля = base.Columns["Код_автомобиля"];
  1262. this.columnКод_клиента = base.Columns["Код_клиента"];
  1263. this.columnДата_начала_проката = base.Columns["Дата_начала_проката"];
  1264. this.columnКоличество_дней_проката = base.Columns["Количество_дней_проката"];
  1265. this.columnДата_окончания_проката = base.Columns["Дата_окончания_проката"];
  1266. this.columnСтоимость_одного_дня_проката = base.Columns["Стоимость_одного_дня_проката"];
  1267. this.columnСтоимость_проката = base.Columns["Стоимость_проката"];
  1268. }
  1269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1271. private void InitClass() {
  1272. this.columnКод_проката = new global::System.Data.DataColumn("Код_проката", typeof(int), null, global::System.Data.MappingType.Element);
  1273. base.Columns.Add(this.columnКод_проката);
  1274. this.columnКод_автомобиля = new global::System.Data.DataColumn("Код_автомобиля", typeof(int), null, global::System.Data.MappingType.Element);
  1275. base.Columns.Add(this.columnКод_автомобиля);
  1276. this.columnКод_клиента = new global::System.Data.DataColumn("Код_клиента", typeof(int), null, global::System.Data.MappingType.Element);
  1277. base.Columns.Add(this.columnКод_клиента);
  1278. this.columnДата_начала_проката = new global::System.Data.DataColumn("Дата_начала_проката", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1279. base.Columns.Add(this.columnДата_начала_проката);
  1280. this.columnКоличество_дней_проката = new global::System.Data.DataColumn("Количество_дней_проката", typeof(string), null, global::System.Data.MappingType.Element);
  1281. base.Columns.Add(this.columnКоличество_дней_проката);
  1282. this.columnДата_окончания_проката = new global::System.Data.DataColumn("Дата_окончания_проката", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1283. base.Columns.Add(this.columnДата_окончания_проката);
  1284. this.columnСтоимость_одного_дня_проката = new global::System.Data.DataColumn("Стоимость_одного_дня_проката", typeof(decimal), null, global::System.Data.MappingType.Element);
  1285. base.Columns.Add(this.columnСтоимость_одного_дня_проката);
  1286. this.columnСтоимость_проката = new global::System.Data.DataColumn("Стоимость_проката", typeof(decimal), null, global::System.Data.MappingType.Element);
  1287. base.Columns.Add(this.columnСтоимость_проката);
  1288. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1289. this.columnКод_проката}, true));
  1290. this.columnКод_проката.AutoIncrement = true;
  1291. this.columnКод_проката.AutoIncrementSeed = -1;
  1292. this.columnКод_проката.AutoIncrementStep = -1;
  1293. this.columnКод_проката.AllowDBNull = false;
  1294. this.columnКод_проката.ReadOnly = true;
  1295. this.columnКод_проката.Unique = true;
  1296. this.columnКод_автомобиля.AllowDBNull = false;
  1297. this.columnКод_клиента.AllowDBNull = false;
  1298. this.columnКоличество_дней_проката.MaxLength = 3;
  1299. }
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1302. public ПрокатыRow NewПрокатыRow() {
  1303. return ((ПрокатыRow)(this.NewRow()));
  1304. }
  1305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1307. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1308. return new ПрокатыRow(builder);
  1309. }
  1310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1312. protected override global::System.Type GetRowType() {
  1313. return typeof(ПрокатыRow);
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1317. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1318. base.OnRowChanged(e);
  1319. if ((this.ПрокатыRowChanged != null)) {
  1320. this.ПрокатыRowChanged(this, new ПрокатыRowChangeEvent(((ПрокатыRow)(e.Row)), e.Action));
  1321. }
  1322. }
  1323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1325. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1326. base.OnRowChanging(e);
  1327. if ((this.ПрокатыRowChanging != null)) {
  1328. this.ПрокатыRowChanging(this, new ПрокатыRowChangeEvent(((ПрокатыRow)(e.Row)), e.Action));
  1329. }
  1330. }
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1333. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1334. base.OnRowDeleted(e);
  1335. if ((this.ПрокатыRowDeleted != null)) {
  1336. this.ПрокатыRowDeleted(this, new ПрокатыRowChangeEvent(((ПрокатыRow)(e.Row)), e.Action));
  1337. }
  1338. }
  1339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1341. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1342. base.OnRowDeleting(e);
  1343. if ((this.ПрокатыRowDeleting != null)) {
  1344. this.ПрокатыRowDeleting(this, new ПрокатыRowChangeEvent(((ПрокатыRow)(e.Row)), e.Action));
  1345. }
  1346. }
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. public void RemoveПрокатыRow(ПрокатыRow row) {
  1350. this.Rows.Remove(row);
  1351. }
  1352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1354. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1355. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1356. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1357. Prokatavto08DataSet ds = new Prokatavto08DataSet();
  1358. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1359. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1360. any1.MinOccurs = new decimal(0);
  1361. any1.MaxOccurs = decimal.MaxValue;
  1362. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1363. sequence.Items.Add(any1);
  1364. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1365. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1366. any2.MinOccurs = new decimal(1);
  1367. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1368. sequence.Items.Add(any2);
  1369. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1370. attribute1.Name = "namespace";
  1371. attribute1.FixedValue = ds.Namespace;
  1372. type.Attributes.Add(attribute1);
  1373. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1374. attribute2.Name = "tableTypeName";
  1375. attribute2.FixedValue = "ПрокатыDataTable";
  1376. type.Attributes.Add(attribute2);
  1377. type.Particle = sequence;
  1378. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1379. if (xs.Contains(dsSchema.TargetNamespace)) {
  1380. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1381. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1382. try {
  1383. global::System.Xml.Schema.XmlSchema schema = null;
  1384. dsSchema.Write(s1);
  1385. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1386. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1387. s2.SetLength(0);
  1388. schema.Write(s2);
  1389. if ((s1.Length == s2.Length)) {
  1390. s1.Position = 0;
  1391. s2.Position = 0;
  1392. for (; ((s1.Position != s1.Length)
  1393. && (s1.ReadByte() == s2.ReadByte())); ) {
  1394. ;
  1395. }
  1396. if ((s1.Position == s1.Length)) {
  1397. return type;
  1398. }
  1399. }
  1400. }
  1401. }
  1402. finally {
  1403. if ((s1 != null)) {
  1404. s1.Close();
  1405. }
  1406. if ((s2 != null)) {
  1407. s2.Close();
  1408. }
  1409. }
  1410. }
  1411. xs.Add(dsSchema);
  1412. return type;
  1413. }
  1414. }
  1415. /// <summary>
  1416. ///Represents the strongly named DataTable class.
  1417. ///</summary>
  1418. [global::System.Serializable()]
  1419. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1420. public partial class ПредставлениеDataTable : global::System.Data.TypedTableBase<ПредставлениеRow> {
  1421. private global::System.Data.DataColumn columnФамилия;
  1422. private global::System.Data.DataColumn columnИмя;
  1423. private global::System.Data.DataColumn columnОтчество;
  1424. private global::System.Data.DataColumn columnМарка_автомобиля;
  1425. private global::System.Data.DataColumn columnГосномер_автомобиля;
  1426. private global::System.Data.DataColumn columnДата_начала_проката;
  1427. private global::System.Data.DataColumn columnКоличество_дней_проката;
  1428. private global::System.Data.DataColumn columnСтоимость_одного_дня_проката;
  1429. private global::System.Data.DataColumn columnСтоимость_проката;
  1430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1432. public ПредставлениеDataTable() {
  1433. this.TableName = "Представление";
  1434. this.BeginInit();
  1435. this.InitClass();
  1436. this.EndInit();
  1437. }
  1438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1440. internal ПредставлениеDataTable(global::System.Data.DataTable table) {
  1441. this.TableName = table.TableName;
  1442. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1443. this.CaseSensitive = table.CaseSensitive;
  1444. }
  1445. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1446. this.Locale = table.Locale;
  1447. }
  1448. if ((table.Namespace != table.DataSet.Namespace)) {
  1449. this.Namespace = table.Namespace;
  1450. }
  1451. this.Prefix = table.Prefix;
  1452. this.MinimumCapacity = table.MinimumCapacity;
  1453. }
  1454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1456. protected ПредставлениеDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1457. base(info, context) {
  1458. this.InitVars();
  1459. }
  1460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1462. public global::System.Data.DataColumn ФамилияColumn {
  1463. get {
  1464. return this.columnФамилия;
  1465. }
  1466. }
  1467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1469. public global::System.Data.DataColumn ИмяColumn {
  1470. get {
  1471. return this.columnИмя;
  1472. }
  1473. }
  1474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1476. public global::System.Data.DataColumn ОтчествоColumn {
  1477. get {
  1478. return this.columnОтчество;
  1479. }
  1480. }
  1481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1483. public global::System.Data.DataColumn Марка_автомобиляColumn {
  1484. get {
  1485. return this.columnМарка_автомобиля;
  1486. }
  1487. }
  1488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1490. public global::System.Data.DataColumn Госномер_автомобиляColumn {
  1491. get {
  1492. return this.columnГосномер_автомобиля;
  1493. }
  1494. }
  1495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1497. public global::System.Data.DataColumn Дата_начала_прокатаColumn {
  1498. get {
  1499. return this.columnДата_начала_проката;
  1500. }
  1501. }
  1502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1504. public global::System.Data.DataColumn Количество_дней_прокатаColumn {
  1505. get {
  1506. return this.columnКоличество_дней_проката;
  1507. }
  1508. }
  1509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1511. public global::System.Data.DataColumn Стоимость_одного_дня_прокатаColumn {
  1512. get {
  1513. return this.columnСтоимость_одного_дня_проката;
  1514. }
  1515. }
  1516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1518. public global::System.Data.DataColumn Стоимость_прокатаColumn {
  1519. get {
  1520. return this.columnСтоимость_проката;
  1521. }
  1522. }
  1523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1525. [global::System.ComponentModel.Browsable(false)]
  1526. public int Count {
  1527. get {
  1528. return this.Rows.Count;
  1529. }
  1530. }
  1531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1533. public ПредставлениеRow this[int index] {
  1534. get {
  1535. return ((ПредставлениеRow)(this.Rows[index]));
  1536. }
  1537. }
  1538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1539. public event ПредставлениеRowChangeEventHandler ПредставлениеRowChanging;
  1540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1541. public event ПредставлениеRowChangeEventHandler ПредставлениеRowChanged;
  1542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1543. public event ПредставлениеRowChangeEventHandler ПредставлениеRowDeleting;
  1544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1545. public event ПредставлениеRowChangeEventHandler ПредставлениеRowDeleted;
  1546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1548. public void AddПредставлениеRow(ПредставлениеRow row) {
  1549. this.Rows.Add(row);
  1550. }
  1551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1553. public ПредставлениеRow AddПредставлениеRow(string Фамилия, string Имя, string Отчество, string Марка_автомобиля, string Госномер_автомобиля, System.DateTime Дата_начала_проката, string Количество_дней_проката, decimal Стоимость_одного_дня_проката, decimal Стоимость_проката) {
  1554. ПредставлениеRow rowПредставлениеRow = ((ПредставлениеRow)(this.NewRow()));
  1555. object[] columnValuesArray = new object[] {
  1556. Фамилия,
  1557. Имя,
  1558. Отчество,
  1559. Марка_автомобиля,
  1560. Госномер_автомобиля,
  1561. Дата_начала_проката,
  1562. Количество_дней_проката,
  1563. Стоимость_одного_дня_проката,
  1564. Стоимость_проката};
  1565. rowПредставлениеRow.ItemArray = columnValuesArray;
  1566. this.Rows.Add(rowПредставлениеRow);
  1567. return rowПредставлениеRow;
  1568. }
  1569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1571. public override global::System.Data.DataTable Clone() {
  1572. ПредставлениеDataTable cln = ((ПредставлениеDataTable)(base.Clone()));
  1573. cln.InitVars();
  1574. return cln;
  1575. }
  1576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1578. protected override global::System.Data.DataTable CreateInstance() {
  1579. return new ПредставлениеDataTable();
  1580. }
  1581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1583. internal void InitVars() {
  1584. this.columnФамилия = base.Columns["Фамилия"];
  1585. this.columnИмя = base.Columns["Имя"];
  1586. this.columnОтчество = base.Columns["Отчество"];
  1587. this.columnМарка_автомобиля = base.Columns["Марка_автомобиля"];
  1588. this.columnГосномер_автомобиля = base.Columns["Госномер_автомобиля"];
  1589. this.columnДата_начала_проката = base.Columns["Дата_начала_проката"];
  1590. this.columnКоличество_дней_проката = base.Columns["Количество_дней_проката"];
  1591. this.columnСтоимость_одного_дня_проката = base.Columns["Стоимость_одного_дня_проката"];
  1592. this.columnСтоимость_проката = base.Columns["Стоимость_проката"];
  1593. }
  1594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1596. private void InitClass() {
  1597. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1598. base.Columns.Add(this.columnФамилия);
  1599. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1600. base.Columns.Add(this.columnИмя);
  1601. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  1602. base.Columns.Add(this.columnОтчество);
  1603. this.columnМарка_автомобиля = new global::System.Data.DataColumn("Марка_автомобиля", typeof(string), null, global::System.Data.MappingType.Element);
  1604. base.Columns.Add(this.columnМарка_автомобиля);
  1605. this.columnГосномер_автомобиля = new global::System.Data.DataColumn("Госномер_автомобиля", typeof(string), null, global::System.Data.MappingType.Element);
  1606. base.Columns.Add(this.columnГосномер_автомобиля);
  1607. this.columnДата_начала_проката = new global::System.Data.DataColumn("Дата_начала_проката", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1608. base.Columns.Add(this.columnДата_начала_проката);
  1609. this.columnКоличество_дней_проката = new global::System.Data.DataColumn("Количество_дней_проката", typeof(string), null, global::System.Data.MappingType.Element);
  1610. base.Columns.Add(this.columnКоличество_дней_проката);
  1611. this.columnСтоимость_одного_дня_проката = new global::System.Data.DataColumn("Стоимость_одного_дня_проката", typeof(decimal), null, global::System.Data.MappingType.Element);
  1612. base.Columns.Add(this.columnСтоимость_одного_дня_проката);
  1613. this.columnСтоимость_проката = new global::System.Data.DataColumn("Стоимость_проката", typeof(decimal), null, global::System.Data.MappingType.Element);
  1614. base.Columns.Add(this.columnСтоимость_проката);
  1615. this.columnФамилия.MaxLength = 20;
  1616. this.columnИмя.MaxLength = 20;
  1617. this.columnОтчество.MaxLength = 20;
  1618. this.columnМарка_автомобиля.MaxLength = 10;
  1619. this.columnГосномер_автомобиля.MaxLength = 10;
  1620. this.columnКоличество_дней_проката.MaxLength = 3;
  1621. }
  1622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1624. public ПредставлениеRow NewПредставлениеRow() {
  1625. return ((ПредставлениеRow)(this.NewRow()));
  1626. }
  1627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1629. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1630. return new ПредставлениеRow(builder);
  1631. }
  1632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1634. protected override global::System.Type GetRowType() {
  1635. return typeof(ПредставлениеRow);
  1636. }
  1637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1639. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1640. base.OnRowChanged(e);
  1641. if ((this.ПредставлениеRowChanged != null)) {
  1642. this.ПредставлениеRowChanged(this, new ПредставлениеRowChangeEvent(((ПредставлениеRow)(e.Row)), e.Action));
  1643. }
  1644. }
  1645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1647. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1648. base.OnRowChanging(e);
  1649. if ((this.ПредставлениеRowChanging != null)) {
  1650. this.ПредставлениеRowChanging(this, new ПредставлениеRowChangeEvent(((ПредставлениеRow)(e.Row)), e.Action));
  1651. }
  1652. }
  1653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1655. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1656. base.OnRowDeleted(e);
  1657. if ((this.ПредставлениеRowDeleted != null)) {
  1658. this.ПредставлениеRowDeleted(this, new ПредставлениеRowChangeEvent(((ПредставлениеRow)(e.Row)), e.Action));
  1659. }
  1660. }
  1661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1663. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1664. base.OnRowDeleting(e);
  1665. if ((this.ПредставлениеRowDeleting != null)) {
  1666. this.ПредставлениеRowDeleting(this, new ПредставлениеRowChangeEvent(((ПредставлениеRow)(e.Row)), e.Action));
  1667. }
  1668. }
  1669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1671. public void RemoveПредставлениеRow(ПредставлениеRow row) {
  1672. this.Rows.Remove(row);
  1673. }
  1674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1676. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1677. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1678. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1679. Prokatavto08DataSet ds = new Prokatavto08DataSet();
  1680. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1681. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1682. any1.MinOccurs = new decimal(0);
  1683. any1.MaxOccurs = decimal.MaxValue;
  1684. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1685. sequence.Items.Add(any1);
  1686. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1687. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1688. any2.MinOccurs = new decimal(1);
  1689. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1690. sequence.Items.Add(any2);
  1691. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1692. attribute1.Name = "namespace";
  1693. attribute1.FixedValue = ds.Namespace;
  1694. type.Attributes.Add(attribute1);
  1695. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1696. attribute2.Name = "tableTypeName";
  1697. attribute2.FixedValue = "ПредставлениеDataTable";
  1698. type.Attributes.Add(attribute2);
  1699. type.Particle = sequence;
  1700. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1701. if (xs.Contains(dsSchema.TargetNamespace)) {
  1702. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1703. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1704. try {
  1705. global::System.Xml.Schema.XmlSchema schema = null;
  1706. dsSchema.Write(s1);
  1707. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1708. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1709. s2.SetLength(0);
  1710. schema.Write(s2);
  1711. if ((s1.Length == s2.Length)) {
  1712. s1.Position = 0;
  1713. s2.Position = 0;
  1714. for (; ((s1.Position != s1.Length)
  1715. && (s1.ReadByte() == s2.ReadByte())); ) {
  1716. ;
  1717. }
  1718. if ((s1.Position == s1.Length)) {
  1719. return type;
  1720. }
  1721. }
  1722. }
  1723. }
  1724. finally {
  1725. if ((s1 != null)) {
  1726. s1.Close();
  1727. }
  1728. if ((s2 != null)) {
  1729. s2.Close();
  1730. }
  1731. }
  1732. }
  1733. xs.Add(dsSchema);
  1734. return type;
  1735. }
  1736. }
  1737. /// <summary>
  1738. ///Represents the strongly named DataTable class.
  1739. ///</summary>
  1740. [global::System.Serializable()]
  1741. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1742. public partial class ГосномерDataTable : global::System.Data.TypedTableBase<ГосномерRow> {
  1743. private global::System.Data.DataColumn columnГосномер_автомобиля;
  1744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1746. public ГосномерDataTable() {
  1747. this.TableName = "Госномер";
  1748. this.BeginInit();
  1749. this.InitClass();
  1750. this.EndInit();
  1751. }
  1752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1754. internal ГосномерDataTable(global::System.Data.DataTable table) {
  1755. this.TableName = table.TableName;
  1756. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1757. this.CaseSensitive = table.CaseSensitive;
  1758. }
  1759. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1760. this.Locale = table.Locale;
  1761. }
  1762. if ((table.Namespace != table.DataSet.Namespace)) {
  1763. this.Namespace = table.Namespace;
  1764. }
  1765. this.Prefix = table.Prefix;
  1766. this.MinimumCapacity = table.MinimumCapacity;
  1767. }
  1768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1770. protected ГосномерDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1771. base(info, context) {
  1772. this.InitVars();
  1773. }
  1774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1776. public global::System.Data.DataColumn Госномер_автомобиляColumn {
  1777. get {
  1778. return this.columnГосномер_автомобиля;
  1779. }
  1780. }
  1781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1783. [global::System.ComponentModel.Browsable(false)]
  1784. public int Count {
  1785. get {
  1786. return this.Rows.Count;
  1787. }
  1788. }
  1789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1791. public ГосномерRow this[int index] {
  1792. get {
  1793. return ((ГосномерRow)(this.Rows[index]));
  1794. }
  1795. }
  1796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1797. public event ГосномерRowChangeEventHandler ГосномерRowChanging;
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1799. public event ГосномерRowChangeEventHandler ГосномерRowChanged;
  1800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1801. public event ГосномерRowChangeEventHandler ГосномерRowDeleting;
  1802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1803. public event ГосномерRowChangeEventHandler ГосномерRowDeleted;
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1806. public void AddГосномерRow(ГосномерRow row) {
  1807. this.Rows.Add(row);
  1808. }
  1809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1811. public ГосномерRow AddГосномерRow(string Госномер_автомобиля) {
  1812. ГосномерRow rowГосномерRow = ((ГосномерRow)(this.NewRow()));
  1813. object[] columnValuesArray = new object[] {
  1814. Госномер_автомобиля};
  1815. rowГосномерRow.ItemArray = columnValuesArray;
  1816. this.Rows.Add(rowГосномерRow);
  1817. return rowГосномерRow;
  1818. }
  1819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1821. public override global::System.Data.DataTable Clone() {
  1822. ГосномерDataTable cln = ((ГосномерDataTable)(base.Clone()));
  1823. cln.InitVars();
  1824. return cln;
  1825. }
  1826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1828. protected override global::System.Data.DataTable CreateInstance() {
  1829. return new ГосномерDataTable();
  1830. }
  1831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1833. internal void InitVars() {
  1834. this.columnГосномер_автомобиля = base.Columns["Госномер_автомобиля"];
  1835. }
  1836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1838. private void InitClass() {
  1839. this.columnГосномер_автомобиля = new global::System.Data.DataColumn("Госномер_автомобиля", typeof(string), null, global::System.Data.MappingType.Element);
  1840. base.Columns.Add(this.columnГосномер_автомобиля);
  1841. this.columnГосномер_автомобиля.MaxLength = 10;
  1842. }
  1843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1845. public ГосномерRow NewГосномерRow() {
  1846. return ((ГосномерRow)(this.NewRow()));
  1847. }
  1848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1850. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1851. return new ГосномерRow(builder);
  1852. }
  1853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1855. protected override global::System.Type GetRowType() {
  1856. return typeof(ГосномерRow);
  1857. }
  1858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1860. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1861. base.OnRowChanged(e);
  1862. if ((this.ГосномерRowChanged != null)) {
  1863. this.ГосномерRowChanged(this, new ГосномерRowChangeEvent(((ГосномерRow)(e.Row)), e.Action));
  1864. }
  1865. }
  1866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1868. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1869. base.OnRowChanging(e);
  1870. if ((this.ГосномерRowChanging != null)) {
  1871. this.ГосномерRowChanging(this, new ГосномерRowChangeEvent(((ГосномерRow)(e.Row)), e.Action));
  1872. }
  1873. }
  1874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1876. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1877. base.OnRowDeleted(e);
  1878. if ((this.ГосномерRowDeleted != null)) {
  1879. this.ГосномерRowDeleted(this, new ГосномерRowChangeEvent(((ГосномерRow)(e.Row)), e.Action));
  1880. }
  1881. }
  1882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1884. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1885. base.OnRowDeleting(e);
  1886. if ((this.ГосномерRowDeleting != null)) {
  1887. this.ГосномерRowDeleting(this, new ГосномерRowChangeEvent(((ГосномерRow)(e.Row)), e.Action));
  1888. }
  1889. }
  1890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1892. public void RemoveГосномерRow(ГосномерRow row) {
  1893. this.Rows.Remove(row);
  1894. }
  1895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1897. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1898. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1899. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1900. Prokatavto08DataSet ds = new Prokatavto08DataSet();
  1901. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1902. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1903. any1.MinOccurs = new decimal(0);
  1904. any1.MaxOccurs = decimal.MaxValue;
  1905. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1906. sequence.Items.Add(any1);
  1907. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1908. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1909. any2.MinOccurs = new decimal(1);
  1910. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1911. sequence.Items.Add(any2);
  1912. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1913. attribute1.Name = "namespace";
  1914. attribute1.FixedValue = ds.Namespace;
  1915. type.Attributes.Add(attribute1);
  1916. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1917. attribute2.Name = "tableTypeName";
  1918. attribute2.FixedValue = "ГосномерDataTable";
  1919. type.Attributes.Add(attribute2);
  1920. type.Particle = sequence;
  1921. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1922. if (xs.Contains(dsSchema.TargetNamespace)) {
  1923. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1924. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1925. try {
  1926. global::System.Xml.Schema.XmlSchema schema = null;
  1927. dsSchema.Write(s1);
  1928. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1929. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1930. s2.SetLength(0);
  1931. schema.Write(s2);
  1932. if ((s1.Length == s2.Length)) {
  1933. s1.Position = 0;
  1934. s2.Position = 0;
  1935. for (; ((s1.Position != s1.Length)
  1936. && (s1.ReadByte() == s2.ReadByte())); ) {
  1937. ;
  1938. }
  1939. if ((s1.Position == s1.Length)) {
  1940. return type;
  1941. }
  1942. }
  1943. }
  1944. }
  1945. finally {
  1946. if ((s1 != null)) {
  1947. s1.Close();
  1948. }
  1949. if ((s2 != null)) {
  1950. s2.Close();
  1951. }
  1952. }
  1953. }
  1954. xs.Add(dsSchema);
  1955. return type;
  1956. }
  1957. }
  1958. /// <summary>
  1959. ///Represents the strongly named DataTable class.
  1960. ///</summary>
  1961. [global::System.Serializable()]
  1962. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1963. public partial class Госномер_автомобиляDataTable : global::System.Data.TypedTableBase<Госномер_автомобиляRow> {
  1964. private global::System.Data.DataColumn columnГосномер_автомобиля;
  1965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1967. public Госномер_автомобиляDataTable() {
  1968. this.TableName = "Госномер_автомобиля";
  1969. this.BeginInit();
  1970. this.InitClass();
  1971. this.EndInit();
  1972. }
  1973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1975. internal Госномер_автомобиляDataTable(global::System.Data.DataTable table) {
  1976. this.TableName = table.TableName;
  1977. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1978. this.CaseSensitive = table.CaseSensitive;
  1979. }
  1980. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1981. this.Locale = table.Locale;
  1982. }
  1983. if ((table.Namespace != table.DataSet.Namespace)) {
  1984. this.Namespace = table.Namespace;
  1985. }
  1986. this.Prefix = table.Prefix;
  1987. this.MinimumCapacity = table.MinimumCapacity;
  1988. }
  1989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1991. protected Госномер_автомобиляDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1992. base(info, context) {
  1993. this.InitVars();
  1994. }
  1995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1997. public global::System.Data.DataColumn Госномер_автомобиляColumn {
  1998. get {
  1999. return this.columnГосномер_автомобиля;
  2000. }
  2001. }
  2002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2004. [global::System.ComponentModel.Browsable(false)]
  2005. public int Count {
  2006. get {
  2007. return this.Rows.Count;
  2008. }
  2009. }
  2010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2012. public Госномер_автомобиляRow this[int index] {
  2013. get {
  2014. return ((Госномер_автомобиляRow)(this.Rows[index]));
  2015. }
  2016. }
  2017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2018. public event Госномер_автомобиляRowChangeEventHandler Госномер_автомобиляRowChanging;
  2019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2020. public event Госномер_автомобиляRowChangeEventHandler Госномер_автомобиляRowChanged;
  2021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2022. public event Госномер_автомобиляRowChangeEventHandler Госномер_автомобиляRowDeleting;
  2023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2024. public event Госномер_автомобиляRowChangeEventHandler Госномер_автомобиляRowDeleted;
  2025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2027. public void AddГосномер_автомобиляRow(Госномер_автомобиляRow row) {
  2028. this.Rows.Add(row);
  2029. }
  2030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2032. public Госномер_автомобиляRow AddГосномер_автомобиляRow(string Госномер_автомобиля) {
  2033. Госномер_автомобиляRow rowГосномер_автомобиляRow = ((Госномер_автомобиляRow)(this.NewRow()));
  2034. object[] columnValuesArray = new object[] {
  2035. Госномер_автомобиля};
  2036. rowГосномер_автомобиляRow.ItemArray = columnValuesArray;
  2037. this.Rows.Add(rowГосномер_автомобиляRow);
  2038. return rowГосномер_автомобиляRow;
  2039. }
  2040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2042. public override global::System.Data.DataTable Clone() {
  2043. Госномер_автомобиляDataTable cln = ((Госномер_автомобиляDataTable)(base.Clone()));
  2044. cln.InitVars();
  2045. return cln;
  2046. }
  2047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2049. protected override global::System.Data.DataTable CreateInstance() {
  2050. return new Госномер_автомобиляDataTable();
  2051. }
  2052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2054. internal void InitVars() {
  2055. this.columnГосномер_автомобиля = base.Columns["Госномер_автомобиля"];
  2056. }
  2057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2059. private void InitClass() {
  2060. this.columnГосномер_автомобиля = new global::System.Data.DataColumn("Госномер_автомобиля", typeof(string), null, global::System.Data.MappingType.Element);
  2061. base.Columns.Add(this.columnГосномер_автомобиля);
  2062. this.columnГосномер_автомобиля.MaxLength = 10;
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2066. public Госномер_автомобиляRow NewГосномер_автомобиляRow() {
  2067. return ((Госномер_автомобиляRow)(this.NewRow()));
  2068. }
  2069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2071. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2072. return new Госномер_автомобиляRow(builder);
  2073. }
  2074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2076. protected override global::System.Type GetRowType() {
  2077. return typeof(Госномер_автомобиляRow);
  2078. }
  2079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2081. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2082. base.OnRowChanged(e);
  2083. if ((this.Госномер_автомобиляRowChanged != null)) {
  2084. this.Госномер_автомобиляRowChanged(this, new Госномер_автомобиляRowChangeEvent(((Госномер_автомобиляRow)(e.Row)), e.Action));
  2085. }
  2086. }
  2087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2089. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2090. base.OnRowChanging(e);
  2091. if ((this.Госномер_автомобиляRowChanging != null)) {
  2092. this.Госномер_автомобиляRowChanging(this, new Госномер_автомобиляRowChangeEvent(((Госномер_автомобиляRow)(e.Row)), e.Action));
  2093. }
  2094. }
  2095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2097. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2098. base.OnRowDeleted(e);
  2099. if ((this.Госномер_автомобиляRowDeleted != null)) {
  2100. this.Госномер_автомобиляRowDeleted(this, new Госномер_автомобиляRowChangeEvent(((Госномер_автомобиляRow)(e.Row)), e.Action));
  2101. }
  2102. }
  2103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2105. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2106. base.OnRowDeleting(e);
  2107. if ((this.Госномер_автомобиляRowDeleting != null)) {
  2108. this.Госномер_автомобиляRowDeleting(this, new Госномер_автомобиляRowChangeEvent(((Госномер_автомобиляRow)(e.Row)), e.Action));
  2109. }
  2110. }
  2111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2113. public void RemoveГосномер_автомобиляRow(Госномер_автомобиляRow row) {
  2114. this.Rows.Remove(row);
  2115. }
  2116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2118. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2119. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2120. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2121. Prokatavto08DataSet ds = new Prokatavto08DataSet();
  2122. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2123. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2124. any1.MinOccurs = new decimal(0);
  2125. any1.MaxOccurs = decimal.MaxValue;
  2126. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2127. sequence.Items.Add(any1);
  2128. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2129. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2130. any2.MinOccurs = new decimal(1);
  2131. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2132. sequence.Items.Add(any2);
  2133. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2134. attribute1.Name = "namespace";
  2135. attribute1.FixedValue = ds.Namespace;
  2136. type.Attributes.Add(attribute1);
  2137. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2138. attribute2.Name = "tableTypeName";
  2139. attribute2.FixedValue = "Госномер_автомобиляDataTable";
  2140. type.Attributes.Add(attribute2);
  2141. type.Particle = sequence;
  2142. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2143. if (xs.Contains(dsSchema.TargetNamespace)) {
  2144. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2145. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2146. try {
  2147. global::System.Xml.Schema.XmlSchema schema = null;
  2148. dsSchema.Write(s1);
  2149. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2150. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2151. s2.SetLength(0);
  2152. schema.Write(s2);
  2153. if ((s1.Length == s2.Length)) {
  2154. s1.Position = 0;
  2155. s2.Position = 0;
  2156. for (; ((s1.Position != s1.Length)
  2157. && (s1.ReadByte() == s2.ReadByte())); ) {
  2158. ;
  2159. }
  2160. if ((s1.Position == s1.Length)) {
  2161. return type;
  2162. }
  2163. }
  2164. }
  2165. }
  2166. finally {
  2167. if ((s1 != null)) {
  2168. s1.Close();
  2169. }
  2170. if ((s2 != null)) {
  2171. s2.Close();
  2172. }
  2173. }
  2174. }
  2175. xs.Add(dsSchema);
  2176. return type;
  2177. }
  2178. }
  2179. /// <summary>
  2180. ///Represents the strongly named DataTable class.
  2181. ///</summary>
  2182. [global::System.Serializable()]
  2183. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2184. public partial class ДатаDataTable : global::System.Data.TypedTableBase<ДатаRow> {
  2185. private global::System.Data.DataColumn columnДата_начала_проката;
  2186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2188. public ДатаDataTable() {
  2189. this.TableName = "Дата";
  2190. this.BeginInit();
  2191. this.InitClass();
  2192. this.EndInit();
  2193. }
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2196. internal ДатаDataTable(global::System.Data.DataTable table) {
  2197. this.TableName = table.TableName;
  2198. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2199. this.CaseSensitive = table.CaseSensitive;
  2200. }
  2201. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2202. this.Locale = table.Locale;
  2203. }
  2204. if ((table.Namespace != table.DataSet.Namespace)) {
  2205. this.Namespace = table.Namespace;
  2206. }
  2207. this.Prefix = table.Prefix;
  2208. this.MinimumCapacity = table.MinimumCapacity;
  2209. }
  2210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2212. protected ДатаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2213. base(info, context) {
  2214. this.InitVars();
  2215. }
  2216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2218. public global::System.Data.DataColumn Дата_начала_прокатаColumn {
  2219. get {
  2220. return this.columnДата_начала_проката;
  2221. }
  2222. }
  2223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2225. [global::System.ComponentModel.Browsable(false)]
  2226. public int Count {
  2227. get {
  2228. return this.Rows.Count;
  2229. }
  2230. }
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2233. public ДатаRow this[int index] {
  2234. get {
  2235. return ((ДатаRow)(this.Rows[index]));
  2236. }
  2237. }
  2238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2239. public event ДатаRowChangeEventHandler ДатаRowChanging;
  2240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2241. public event ДатаRowChangeEventHandler ДатаRowChanged;
  2242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2243. public event ДатаRowChangeEventHandler ДатаRowDeleting;
  2244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2245. public event ДатаRowChangeEventHandler ДатаRowDeleted;
  2246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2248. public void AddДатаRow(ДатаRow row) {
  2249. this.Rows.Add(row);
  2250. }
  2251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2253. public ДатаRow AddДатаRow(System.DateTime Дата_начала_проката) {
  2254. ДатаRow rowДатаRow = ((ДатаRow)(this.NewRow()));
  2255. object[] columnValuesArray = new object[] {
  2256. Дата_начала_проката};
  2257. rowДатаRow.ItemArray = columnValuesArray;
  2258. this.Rows.Add(rowДатаRow);
  2259. return rowДатаRow;
  2260. }
  2261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2263. public override global::System.Data.DataTable Clone() {
  2264. ДатаDataTable cln = ((ДатаDataTable)(base.Clone()));
  2265. cln.InitVars();
  2266. return cln;
  2267. }
  2268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2270. protected override global::System.Data.DataTable CreateInstance() {
  2271. return new ДатаDataTable();
  2272. }
  2273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2275. internal void InitVars() {
  2276. this.columnДата_начала_проката = base.Columns["Дата_начала_проката"];
  2277. }
  2278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2280. private void InitClass() {
  2281. this.columnДата_начала_проката = new global::System.Data.DataColumn("Дата_начала_проката", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2282. base.Columns.Add(this.columnДата_начала_проката);
  2283. }
  2284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2286. public ДатаRow NewДатаRow() {
  2287. return ((ДатаRow)(this.NewRow()));
  2288. }
  2289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2291. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2292. return new ДатаRow(builder);
  2293. }
  2294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2296. protected override global::System.Type GetRowType() {
  2297. return typeof(ДатаRow);
  2298. }
  2299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2301. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2302. base.OnRowChanged(e);
  2303. if ((this.ДатаRowChanged != null)) {
  2304. this.ДатаRowChanged(this, new ДатаRowChangeEvent(((ДатаRow)(e.Row)), e.Action));
  2305. }
  2306. }
  2307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2309. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2310. base.OnRowChanging(e);
  2311. if ((this.ДатаRowChanging != null)) {
  2312. this.ДатаRowChanging(this, new ДатаRowChangeEvent(((ДатаRow)(e.Row)), e.Action));
  2313. }
  2314. }
  2315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2317. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2318. base.OnRowDeleted(e);
  2319. if ((this.ДатаRowDeleted != null)) {
  2320. this.ДатаRowDeleted(this, new ДатаRowChangeEvent(((ДатаRow)(e.Row)), e.Action));
  2321. }
  2322. }
  2323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2325. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2326. base.OnRowDeleting(e);
  2327. if ((this.ДатаRowDeleting != null)) {
  2328. this.ДатаRowDeleting(this, new ДатаRowChangeEvent(((ДатаRow)(e.Row)), e.Action));
  2329. }
  2330. }
  2331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2333. public void RemoveДатаRow(ДатаRow row) {
  2334. this.Rows.Remove(row);
  2335. }
  2336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2338. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2339. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2340. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2341. Prokatavto08DataSet ds = new Prokatavto08DataSet();
  2342. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2343. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2344. any1.MinOccurs = new decimal(0);
  2345. any1.MaxOccurs = decimal.MaxValue;
  2346. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2347. sequence.Items.Add(any1);
  2348. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2349. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2350. any2.MinOccurs = new decimal(1);
  2351. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2352. sequence.Items.Add(any2);
  2353. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2354. attribute1.Name = "namespace";
  2355. attribute1.FixedValue = ds.Namespace;
  2356. type.Attributes.Add(attribute1);
  2357. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2358. attribute2.Name = "tableTypeName";
  2359. attribute2.FixedValue = "ДатаDataTable";
  2360. type.Attributes.Add(attribute2);
  2361. type.Particle = sequence;
  2362. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2363. if (xs.Contains(dsSchema.TargetNamespace)) {
  2364. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2365. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2366. try {
  2367. global::System.Xml.Schema.XmlSchema schema = null;
  2368. dsSchema.Write(s1);
  2369. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2370. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2371. s2.SetLength(0);
  2372. schema.Write(s2);
  2373. if ((s1.Length == s2.Length)) {
  2374. s1.Position = 0;
  2375. s2.Position = 0;
  2376. for (; ((s1.Position != s1.Length)
  2377. && (s1.ReadByte() == s2.ReadByte())); ) {
  2378. ;
  2379. }
  2380. if ((s1.Position == s1.Length)) {
  2381. return type;
  2382. }
  2383. }
  2384. }
  2385. }
  2386. finally {
  2387. if ((s1 != null)) {
  2388. s1.Close();
  2389. }
  2390. if ((s2 != null)) {
  2391. s2.Close();
  2392. }
  2393. }
  2394. }
  2395. xs.Add(dsSchema);
  2396. return type;
  2397. }
  2398. }
  2399. /// <summary>
  2400. ///Represents the strongly named DataTable class.
  2401. ///</summary>
  2402. [global::System.Serializable()]
  2403. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2404. public partial class Дата_началаDataTable : global::System.Data.TypedTableBase<Дата_началаRow> {
  2405. private global::System.Data.DataColumn columnДата_начала_проката;
  2406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2408. public Дата_началаDataTable() {
  2409. this.TableName = "Дата_начала";
  2410. this.BeginInit();
  2411. this.InitClass();
  2412. this.EndInit();
  2413. }
  2414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2416. internal Дата_началаDataTable(global::System.Data.DataTable table) {
  2417. this.TableName = table.TableName;
  2418. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2419. this.CaseSensitive = table.CaseSensitive;
  2420. }
  2421. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2422. this.Locale = table.Locale;
  2423. }
  2424. if ((table.Namespace != table.DataSet.Namespace)) {
  2425. this.Namespace = table.Namespace;
  2426. }
  2427. this.Prefix = table.Prefix;
  2428. this.MinimumCapacity = table.MinimumCapacity;
  2429. }
  2430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2432. protected Дата_началаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2433. base(info, context) {
  2434. this.InitVars();
  2435. }
  2436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2438. public global::System.Data.DataColumn Дата_начала_прокатаColumn {
  2439. get {
  2440. return this.columnДата_начала_проката;
  2441. }
  2442. }
  2443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2445. [global::System.ComponentModel.Browsable(false)]
  2446. public int Count {
  2447. get {
  2448. return this.Rows.Count;
  2449. }
  2450. }
  2451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2453. public Дата_началаRow this[int index] {
  2454. get {
  2455. return ((Дата_началаRow)(this.Rows[index]));
  2456. }
  2457. }
  2458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2459. public event Дата_началаRowChangeEventHandler Дата_началаRowChanging;
  2460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2461. public event Дата_началаRowChangeEventHandler Дата_началаRowChanged;
  2462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2463. public event Дата_началаRowChangeEventHandler Дата_началаRowDeleting;
  2464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2465. public event Дата_началаRowChangeEventHandler Дата_началаRowDeleted;
  2466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2468. public void AddДата_началаRow(Дата_началаRow row) {
  2469. this.Rows.Add(row);
  2470. }
  2471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2473. public Дата_началаRow AddДата_началаRow(System.DateTime Дата_начала_проката) {
  2474. Дата_началаRow rowДата_началаRow = ((Дата_началаRow)(this.NewRow()));
  2475. object[] columnValuesArray = new object[] {
  2476. Дата_начала_проката};
  2477. rowДата_началаRow.ItemArray = columnValuesArray;
  2478. this.Rows.Add(rowДата_началаRow);
  2479. return rowДата_началаRow;
  2480. }
  2481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2483. public override global::System.Data.DataTable Clone() {
  2484. Дата_началаDataTable cln = ((Дата_началаDataTable)(base.Clone()));
  2485. cln.InitVars();
  2486. return cln;
  2487. }
  2488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2490. protected override global::System.Data.DataTable CreateInstance() {
  2491. return new Дата_началаDataTable();
  2492. }
  2493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2495. internal void InitVars() {
  2496. this.columnДата_начала_проката = base.Columns["Дата_начала_проката"];
  2497. }
  2498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2500. private void InitClass() {
  2501. this.columnДата_начала_проката = new global::System.Data.DataColumn("Дата_начала_проката", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2502. base.Columns.Add(this.columnДата_начала_проката);
  2503. }
  2504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2506. public Дата_началаRow NewДата_началаRow() {
  2507. return ((Дата_началаRow)(this.NewRow()));
  2508. }
  2509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2511. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2512. return new Дата_началаRow(builder);
  2513. }
  2514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2516. protected override global::System.Type GetRowType() {
  2517. return typeof(Дата_началаRow);
  2518. }
  2519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2521. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2522. base.OnRowChanged(e);
  2523. if ((this.Дата_началаRowChanged != null)) {
  2524. this.Дата_началаRowChanged(this, new Дата_началаRowChangeEvent(((Дата_началаRow)(e.Row)), e.Action));
  2525. }
  2526. }
  2527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2529. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2530. base.OnRowChanging(e);
  2531. if ((this.Дата_началаRowChanging != null)) {
  2532. this.Дата_началаRowChanging(this, new Дата_началаRowChangeEvent(((Дата_началаRow)(e.Row)), e.Action));
  2533. }
  2534. }
  2535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2537. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2538. base.OnRowDeleted(e);
  2539. if ((this.Дата_началаRowDeleted != null)) {
  2540. this.Дата_началаRowDeleted(this, new Дата_началаRowChangeEvent(((Дата_началаRow)(e.Row)), e.Action));
  2541. }
  2542. }
  2543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2545. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2546. base.OnRowDeleting(e);
  2547. if ((this.Дата_началаRowDeleting != null)) {
  2548. this.Дата_началаRowDeleting(this, new Дата_началаRowChangeEvent(((Дата_началаRow)(e.Row)), e.Action));
  2549. }
  2550. }
  2551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2553. public void RemoveДата_началаRow(Дата_началаRow row) {
  2554. this.Rows.Remove(row);
  2555. }
  2556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2558. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2559. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2560. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2561. Prokatavto08DataSet ds = new Prokatavto08DataSet();
  2562. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2563. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2564. any1.MinOccurs = new decimal(0);
  2565. any1.MaxOccurs = decimal.MaxValue;
  2566. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2567. sequence.Items.Add(any1);
  2568. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2569. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2570. any2.MinOccurs = new decimal(1);
  2571. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2572. sequence.Items.Add(any2);
  2573. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2574. attribute1.Name = "namespace";
  2575. attribute1.FixedValue = ds.Namespace;
  2576. type.Attributes.Add(attribute1);
  2577. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2578. attribute2.Name = "tableTypeName";
  2579. attribute2.FixedValue = "Дата_началаDataTable";
  2580. type.Attributes.Add(attribute2);
  2581. type.Particle = sequence;
  2582. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2583. if (xs.Contains(dsSchema.TargetNamespace)) {
  2584. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2585. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2586. try {
  2587. global::System.Xml.Schema.XmlSchema schema = null;
  2588. dsSchema.Write(s1);
  2589. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2590. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2591. s2.SetLength(0);
  2592. schema.Write(s2);
  2593. if ((s1.Length == s2.Length)) {
  2594. s1.Position = 0;
  2595. s2.Position = 0;
  2596. for (; ((s1.Position != s1.Length)
  2597. && (s1.ReadByte() == s2.ReadByte())); ) {
  2598. ;
  2599. }
  2600. if ((s1.Position == s1.Length)) {
  2601. return type;
  2602. }
  2603. }
  2604. }
  2605. }
  2606. finally {
  2607. if ((s1 != null)) {
  2608. s1.Close();
  2609. }
  2610. if ((s2 != null)) {
  2611. s2.Close();
  2612. }
  2613. }
  2614. }
  2615. xs.Add(dsSchema);
  2616. return type;
  2617. }
  2618. }
  2619. /// <summary>
  2620. ///Represents strongly named DataRow class.
  2621. ///</summary>
  2622. public partial class АвтомобилиRow : global::System.Data.DataRow {
  2623. private АвтомобилиDataTable tableАвтомобили;
  2624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2626. internal АвтомобилиRow(global::System.Data.DataRowBuilder rb) :
  2627. base(rb) {
  2628. this.tableАвтомобили = ((АвтомобилиDataTable)(this.Table));
  2629. }
  2630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2632. public int Код_автомобиля {
  2633. get {
  2634. return ((int)(this[this.tableАвтомобили.Код_автомобиляColumn]));
  2635. }
  2636. set {
  2637. this[this.tableАвтомобили.Код_автомобиляColumn] = value;
  2638. }
  2639. }
  2640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2642. public string Марка_автомобиля {
  2643. get {
  2644. try {
  2645. return ((string)(this[this.tableАвтомобили.Марка_автомобиляColumn]));
  2646. }
  2647. catch (global::System.InvalidCastException e) {
  2648. throw new global::System.Data.StrongTypingException("Значение для столбца \'Марка_автомобиля\' в таблице \'Автомобили\' равно DBNull.", e);
  2649. }
  2650. }
  2651. set {
  2652. this[this.tableАвтомобили.Марка_автомобиляColumn] = value;
  2653. }
  2654. }
  2655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2657. public string Цвет_автомобиля {
  2658. get {
  2659. try {
  2660. return ((string)(this[this.tableАвтомобили.Цвет_автомобиляColumn]));
  2661. }
  2662. catch (global::System.InvalidCastException e) {
  2663. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цвет_автомобиля\' в таблице \'Автомобили\' равно DBNull.", e);
  2664. }
  2665. }
  2666. set {
  2667. this[this.tableАвтомобили.Цвет_автомобиляColumn] = value;
  2668. }
  2669. }
  2670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2672. public string Год_выпуска_автомобиля {
  2673. get {
  2674. try {
  2675. return ((string)(this[this.tableАвтомобили.Год_выпуска_автомобиляColumn]));
  2676. }
  2677. catch (global::System.InvalidCastException e) {
  2678. throw new global::System.Data.StrongTypingException("Значение для столбца \'Год_выпуска_автомобиля\' в таблице \'Автомобили\' равно DBNull" +
  2679. ".", e);
  2680. }
  2681. }
  2682. set {
  2683. this[this.tableАвтомобили.Год_выпуска_автомобиляColumn] = value;
  2684. }
  2685. }
  2686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2688. public string Госномер_автомобиля {
  2689. get {
  2690. try {
  2691. return ((string)(this[this.tableАвтомобили.Госномер_автомобиляColumn]));
  2692. }
  2693. catch (global::System.InvalidCastException e) {
  2694. throw new global::System.Data.StrongTypingException("Значение для столбца \'Госномер_автомобиля\' в таблице \'Автомобили\' равно DBNull.", e);
  2695. }
  2696. }
  2697. set {
  2698. this[this.tableАвтомобили.Госномер_автомобиляColumn] = value;
  2699. }
  2700. }
  2701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2703. public decimal Страховая_стоимость {
  2704. get {
  2705. try {
  2706. return ((decimal)(this[this.tableАвтомобили.Страховая_стоимостьColumn]));
  2707. }
  2708. catch (global::System.InvalidCastException e) {
  2709. throw new global::System.Data.StrongTypingException("Значение для столбца \'Страховая_стоимость\' в таблице \'Автомобили\' равно DBNull.", e);
  2710. }
  2711. }
  2712. set {
  2713. this[this.tableАвтомобили.Страховая_стоимостьColumn] = value;
  2714. }
  2715. }
  2716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2718. public bool IsМарка_автомобиляNull() {
  2719. return this.IsNull(this.tableАвтомобили.Марка_автомобиляColumn);
  2720. }
  2721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2723. public void SetМарка_автомобиляNull() {
  2724. this[this.tableАвтомобили.Марка_автомобиляColumn] = global::System.Convert.DBNull;
  2725. }
  2726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2728. public bool IsЦвет_автомобиляNull() {
  2729. return this.IsNull(this.tableАвтомобили.Цвет_автомобиляColumn);
  2730. }
  2731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2733. public void SetЦвет_автомобиляNull() {
  2734. this[this.tableАвтомобили.Цвет_автомобиляColumn] = global::System.Convert.DBNull;
  2735. }
  2736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2738. public bool IsГод_выпуска_автомобиляNull() {
  2739. return this.IsNull(this.tableАвтомобили.Год_выпуска_автомобиляColumn);
  2740. }
  2741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2743. public void SetГод_выпуска_автомобиляNull() {
  2744. this[this.tableАвтомобили.Год_выпуска_автомобиляColumn] = global::System.Convert.DBNull;
  2745. }
  2746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2748. public bool IsГосномер_автомобиляNull() {
  2749. return this.IsNull(this.tableАвтомобили.Госномер_автомобиляColumn);
  2750. }
  2751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2753. public void SetГосномер_автомобиляNull() {
  2754. this[this.tableАвтомобили.Госномер_автомобиляColumn] = global::System.Convert.DBNull;
  2755. }
  2756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2758. public bool IsСтраховая_стоимостьNull() {
  2759. return this.IsNull(this.tableАвтомобили.Страховая_стоимостьColumn);
  2760. }
  2761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2763. public void SetСтраховая_стоимостьNull() {
  2764. this[this.tableАвтомобили.Страховая_стоимостьColumn] = global::System.Convert.DBNull;
  2765. }
  2766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2768. public ПрокатыRow[] GetПрокатыRows() {
  2769. if ((this.Table.ChildRelations["FK_Прокаты_Автомобили"] == null)) {
  2770. return new ПрокатыRow[0];
  2771. }
  2772. else {
  2773. return ((ПрокатыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Прокаты_Автомобили"])));
  2774. }
  2775. }
  2776. }
  2777. /// <summary>
  2778. ///Represents strongly named DataRow class.
  2779. ///</summary>
  2780. public partial class КлиентыRow : global::System.Data.DataRow {
  2781. private КлиентыDataTable tableКлиенты;
  2782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2784. internal КлиентыRow(global::System.Data.DataRowBuilder rb) :
  2785. base(rb) {
  2786. this.tableКлиенты = ((КлиентыDataTable)(this.Table));
  2787. }
  2788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2790. public int Код_клиента {
  2791. get {
  2792. return ((int)(this[this.tableКлиенты.Код_клиентаColumn]));
  2793. }
  2794. set {
  2795. this[this.tableКлиенты.Код_клиентаColumn] = value;
  2796. }
  2797. }
  2798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2800. public string Фамилия {
  2801. get {
  2802. try {
  2803. return ((string)(this[this.tableКлиенты.ФамилияColumn]));
  2804. }
  2805. catch (global::System.InvalidCastException e) {
  2806. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Клиенты\' равно DBNull.", e);
  2807. }
  2808. }
  2809. set {
  2810. this[this.tableКлиенты.ФамилияColumn] = value;
  2811. }
  2812. }
  2813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2815. public string Имя {
  2816. get {
  2817. try {
  2818. return ((string)(this[this.tableКлиенты.ИмяColumn]));
  2819. }
  2820. catch (global::System.InvalidCastException e) {
  2821. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'Клиенты\' равно DBNull.", e);
  2822. }
  2823. }
  2824. set {
  2825. this[this.tableКлиенты.ИмяColumn] = value;
  2826. }
  2827. }
  2828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2830. public string Отчество {
  2831. get {
  2832. try {
  2833. return ((string)(this[this.tableКлиенты.ОтчествоColumn]));
  2834. }
  2835. catch (global::System.InvalidCastException e) {
  2836. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'Клиенты\' равно DBNull.", e);
  2837. }
  2838. }
  2839. set {
  2840. this[this.tableКлиенты.ОтчествоColumn] = value;
  2841. }
  2842. }
  2843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2845. public string Серия_и_номер_паспорта {
  2846. get {
  2847. try {
  2848. return ((string)(this[this.tableКлиенты.Серия_и_номер_паспортаColumn]));
  2849. }
  2850. catch (global::System.InvalidCastException e) {
  2851. throw new global::System.Data.StrongTypingException("Значение для столбца \'Серия_и_номер_паспорта\' в таблице \'Клиенты\' равно DBNull.", e);
  2852. }
  2853. }
  2854. set {
  2855. this[this.tableКлиенты.Серия_и_номер_паспортаColumn] = value;
  2856. }
  2857. }
  2858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2860. public string Адрес {
  2861. get {
  2862. try {
  2863. return ((string)(this[this.tableКлиенты.АдресColumn]));
  2864. }
  2865. catch (global::System.InvalidCastException e) {
  2866. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес\' в таблице \'Клиенты\' равно DBNull.", e);
  2867. }
  2868. }
  2869. set {
  2870. this[this.tableКлиенты.АдресColumn] = value;
  2871. }
  2872. }
  2873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2875. public string Телефон {
  2876. get {
  2877. try {
  2878. return ((string)(this[this.tableКлиенты.ТелефонColumn]));
  2879. }
  2880. catch (global::System.InvalidCastException e) {
  2881. throw new global::System.Data.StrongTypingException("Значение для столбца \'Телефон\' в таблице \'Клиенты\' равно DBNull.", e);
  2882. }
  2883. }
  2884. set {
  2885. this[this.tableКлиенты.ТелефонColumn] = value;
  2886. }
  2887. }
  2888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2890. public bool IsФамилияNull() {
  2891. return this.IsNull(this.tableКлиенты.ФамилияColumn);
  2892. }
  2893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2895. public void SetФамилияNull() {
  2896. this[this.tableКлиенты.ФамилияColumn] = global::System.Convert.DBNull;
  2897. }
  2898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2900. public bool IsИмяNull() {
  2901. return this.IsNull(this.tableКлиенты.ИмяColumn);
  2902. }
  2903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2905. public void SetИмяNull() {
  2906. this[this.tableКлиенты.ИмяColumn] = global::System.Convert.DBNull;
  2907. }
  2908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2910. public bool IsОтчествоNull() {
  2911. return this.IsNull(this.tableКлиенты.ОтчествоColumn);
  2912. }
  2913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2915. public void SetОтчествоNull() {
  2916. this[this.tableКлиенты.ОтчествоColumn] = global::System.Convert.DBNull;
  2917. }
  2918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2920. public bool IsСерия_и_номер_паспортаNull() {
  2921. return this.IsNull(this.tableКлиенты.Серия_и_номер_паспортаColumn);
  2922. }
  2923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2925. public void SetСерия_и_номер_паспортаNull() {
  2926. this[this.tableКлиенты.Серия_и_номер_паспортаColumn] = global::System.Convert.DBNull;
  2927. }
  2928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2930. public bool IsАдресNull() {
  2931. return this.IsNull(this.tableКлиенты.АдресColumn);
  2932. }
  2933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2935. public void SetАдресNull() {
  2936. this[this.tableКлиенты.АдресColumn] = global::System.Convert.DBNull;
  2937. }
  2938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2940. public bool IsТелефонNull() {
  2941. return this.IsNull(this.tableКлиенты.ТелефонColumn);
  2942. }
  2943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2945. public void SetТелефонNull() {
  2946. this[this.tableКлиенты.ТелефонColumn] = global::System.Convert.DBNull;
  2947. }
  2948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2950. public ПрокатыRow[] GetПрокатыRows() {
  2951. if ((this.Table.ChildRelations["FK_Прокаты_Клиенты"] == null)) {
  2952. return new ПрокатыRow[0];
  2953. }
  2954. else {
  2955. return ((ПрокатыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Прокаты_Клиенты"])));
  2956. }
  2957. }
  2958. }
  2959. /// <summary>
  2960. ///Represents strongly named DataRow class.
  2961. ///</summary>
  2962. public partial class ПрокатыRow : global::System.Data.DataRow {
  2963. private ПрокатыDataTable tableПрокаты;
  2964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2966. internal ПрокатыRow(global::System.Data.DataRowBuilder rb) :
  2967. base(rb) {
  2968. this.tableПрокаты = ((ПрокатыDataTable)(this.Table));
  2969. }
  2970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2972. public int Код_проката {
  2973. get {
  2974. return ((int)(this[this.tableПрокаты.Код_прокатаColumn]));
  2975. }
  2976. set {
  2977. this[this.tableПрокаты.Код_прокатаColumn] = value;
  2978. }
  2979. }
  2980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2982. public int Код_автомобиля {
  2983. get {
  2984. return ((int)(this[this.tableПрокаты.Код_автомобиляColumn]));
  2985. }
  2986. set {
  2987. this[this.tableПрокаты.Код_автомобиляColumn] = value;
  2988. }
  2989. }
  2990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2992. public int Код_клиента {
  2993. get {
  2994. return ((int)(this[this.tableПрокаты.Код_клиентаColumn]));
  2995. }
  2996. set {
  2997. this[this.tableПрокаты.Код_клиентаColumn] = value;
  2998. }
  2999. }
  3000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3002. public System.DateTime Дата_начала_проката {
  3003. get {
  3004. try {
  3005. return ((global::System.DateTime)(this[this.tableПрокаты.Дата_начала_прокатаColumn]));
  3006. }
  3007. catch (global::System.InvalidCastException e) {
  3008. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата_начала_проката\' в таблице \'Прокаты\' равно DBNull.", e);
  3009. }
  3010. }
  3011. set {
  3012. this[this.tableПрокаты.Дата_начала_прокатаColumn] = value;
  3013. }
  3014. }
  3015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3017. public string Количество_дней_проката {
  3018. get {
  3019. try {
  3020. return ((string)(this[this.tableПрокаты.Количество_дней_прокатаColumn]));
  3021. }
  3022. catch (global::System.InvalidCastException e) {
  3023. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество_дней_проката\' в таблице \'Прокаты\' равно DBNull.", e);
  3024. }
  3025. }
  3026. set {
  3027. this[this.tableПрокаты.Количество_дней_прокатаColumn] = value;
  3028. }
  3029. }
  3030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3032. public System.DateTime Дата_окончания_проката {
  3033. get {
  3034. try {
  3035. return ((global::System.DateTime)(this[this.tableПрокаты.Дата_окончания_прокатаColumn]));
  3036. }
  3037. catch (global::System.InvalidCastException e) {
  3038. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата_окончания_проката\' в таблице \'Прокаты\' равно DBNull.", e);
  3039. }
  3040. }
  3041. set {
  3042. this[this.tableПрокаты.Дата_окончания_прокатаColumn] = value;
  3043. }
  3044. }
  3045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3047. public decimal Стоимость_одного_дня_проката {
  3048. get {
  3049. try {
  3050. return ((decimal)(this[this.tableПрокаты.Стоимость_одного_дня_прокатаColumn]));
  3051. }
  3052. catch (global::System.InvalidCastException e) {
  3053. throw new global::System.Data.StrongTypingException("Значение для столбца \'Стоимость_одного_дня_проката\' в таблице \'Прокаты\' равно DBN" +
  3054. "ull.", e);
  3055. }
  3056. }
  3057. set {
  3058. this[this.tableПрокаты.Стоимость_одного_дня_прокатаColumn] = value;
  3059. }
  3060. }
  3061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3063. public decimal Стоимость_проката {
  3064. get {
  3065. try {
  3066. return ((decimal)(this[this.tableПрокаты.Стоимость_прокатаColumn]));
  3067. }
  3068. catch (global::System.InvalidCastException e) {
  3069. throw new global::System.Data.StrongTypingException("Значение для столбца \'Стоимость_проката\' в таблице \'Прокаты\' равно DBNull.", e);
  3070. }
  3071. }
  3072. set {
  3073. this[this.tableПрокаты.Стоимость_прокатаColumn] = value;
  3074. }
  3075. }
  3076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3078. public АвтомобилиRow АвтомобилиRow {
  3079. get {
  3080. return ((АвтомобилиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Прокаты_Автомобили"])));
  3081. }
  3082. set {
  3083. this.SetParentRow(value, this.Table.ParentRelations["FK_Прокаты_Автомобили"]);
  3084. }
  3085. }
  3086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3088. public КлиентыRow КлиентыRow {
  3089. get {
  3090. return ((КлиентыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Прокаты_Клиенты"])));
  3091. }
  3092. set {
  3093. this.SetParentRow(value, this.Table.ParentRelations["FK_Прокаты_Клиенты"]);
  3094. }
  3095. }
  3096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3098. public bool IsДата_начала_прокатаNull() {
  3099. return this.IsNull(this.tableПрокаты.Дата_начала_прокатаColumn);
  3100. }
  3101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3103. public void SetДата_начала_прокатаNull() {
  3104. this[this.tableПрокаты.Дата_начала_прокатаColumn] = global::System.Convert.DBNull;
  3105. }
  3106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3108. public bool IsКоличество_дней_прокатаNull() {
  3109. return this.IsNull(this.tableПрокаты.Количество_дней_прокатаColumn);
  3110. }
  3111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3113. public void SetКоличество_дней_прокатаNull() {
  3114. this[this.tableПрокаты.Количество_дней_прокатаColumn] = global::System.Convert.DBNull;
  3115. }
  3116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3118. public bool IsДата_окончания_прокатаNull() {
  3119. return this.IsNull(this.tableПрокаты.Дата_окончания_прокатаColumn);
  3120. }
  3121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3123. public void SetДата_окончания_прокатаNull() {
  3124. this[this.tableПрокаты.Дата_окончания_прокатаColumn] = global::System.Convert.DBNull;
  3125. }
  3126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3128. public bool IsСтоимость_одного_дня_прокатаNull() {
  3129. return this.IsNull(this.tableПрокаты.Стоимость_одного_дня_прокатаColumn);
  3130. }
  3131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3133. public void SetСтоимость_одного_дня_прокатаNull() {
  3134. this[this.tableПрокаты.Стоимость_одного_дня_прокатаColumn] = global::System.Convert.DBNull;
  3135. }
  3136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3138. public bool IsСтоимость_прокатаNull() {
  3139. return this.IsNull(this.tableПрокаты.Стоимость_прокатаColumn);
  3140. }
  3141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3143. public void SetСтоимость_прокатаNull() {
  3144. this[this.tableПрокаты.Стоимость_прокатаColumn] = global::System.Convert.DBNull;
  3145. }
  3146. }
  3147. /// <summary>
  3148. ///Represents strongly named DataRow class.
  3149. ///</summary>
  3150. public partial class ПредставлениеRow : global::System.Data.DataRow {
  3151. private ПредставлениеDataTable tableПредставление;
  3152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3154. internal ПредставлениеRow(global::System.Data.DataRowBuilder rb) :
  3155. base(rb) {
  3156. this.tableПредставление = ((ПредставлениеDataTable)(this.Table));
  3157. }
  3158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3160. public string Фамилия {
  3161. get {
  3162. try {
  3163. return ((string)(this[this.tableПредставление.ФамилияColumn]));
  3164. }
  3165. catch (global::System.InvalidCastException e) {
  3166. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Представление\' равно DBNull.", e);
  3167. }
  3168. }
  3169. set {
  3170. this[this.tableПредставление.ФамилияColumn] = value;
  3171. }
  3172. }
  3173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3175. public string Имя {
  3176. get {
  3177. try {
  3178. return ((string)(this[this.tableПредставление.ИмяColumn]));
  3179. }
  3180. catch (global::System.InvalidCastException e) {
  3181. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'Представление\' равно DBNull.", e);
  3182. }
  3183. }
  3184. set {
  3185. this[this.tableПредставление.ИмяColumn] = value;
  3186. }
  3187. }
  3188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3190. public string Отчество {
  3191. get {
  3192. try {
  3193. return ((string)(this[this.tableПредставление.ОтчествоColumn]));
  3194. }
  3195. catch (global::System.InvalidCastException e) {
  3196. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'Представление\' равно DBNull.", e);
  3197. }
  3198. }
  3199. set {
  3200. this[this.tableПредставление.ОтчествоColumn] = value;
  3201. }
  3202. }
  3203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3205. public string Марка_автомобиля {
  3206. get {
  3207. try {
  3208. return ((string)(this[this.tableПредставление.Марка_автомобиляColumn]));
  3209. }
  3210. catch (global::System.InvalidCastException e) {
  3211. throw new global::System.Data.StrongTypingException("Значение для столбца \'Марка_автомобиля\' в таблице \'Представление\' равно DBNull.", e);
  3212. }
  3213. }
  3214. set {
  3215. this[this.tableПредставление.Марка_автомобиляColumn] = value;
  3216. }
  3217. }
  3218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3220. public string Госномер_автомобиля {
  3221. get {
  3222. try {
  3223. return ((string)(this[this.tableПредставление.Госномер_автомобиляColumn]));
  3224. }
  3225. catch (global::System.InvalidCastException e) {
  3226. throw new global::System.Data.StrongTypingException("Значение для столбца \'Госномер_автомобиля\' в таблице \'Представление\' равно DBNull" +
  3227. ".", e);
  3228. }
  3229. }
  3230. set {
  3231. this[this.tableПредставление.Госномер_автомобиляColumn] = value;
  3232. }
  3233. }
  3234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3236. public System.DateTime Дата_начала_проката {
  3237. get {
  3238. try {
  3239. return ((global::System.DateTime)(this[this.tableПредставление.Дата_начала_прокатаColumn]));
  3240. }
  3241. catch (global::System.InvalidCastException e) {
  3242. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата_начала_проката\' в таблице \'Представление\' равно DBNull" +
  3243. ".", e);
  3244. }
  3245. }
  3246. set {
  3247. this[this.tableПредставление.Дата_начала_прокатаColumn] = value;
  3248. }
  3249. }
  3250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3252. public string Количество_дней_проката {
  3253. get {
  3254. try {
  3255. return ((string)(this[this.tableПредставление.Количество_дней_прокатаColumn]));
  3256. }
  3257. catch (global::System.InvalidCastException e) {
  3258. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество_дней_проката\' в таблице \'Представление\' равно DB" +
  3259. "Null.", e);
  3260. }
  3261. }
  3262. set {
  3263. this[this.tableПредставление.Количество_дней_прокатаColumn] = value;
  3264. }
  3265. }
  3266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3268. public decimal Стоимость_одного_дня_проката {
  3269. get {
  3270. try {
  3271. return ((decimal)(this[this.tableПредставление.Стоимость_одного_дня_прокатаColumn]));
  3272. }
  3273. catch (global::System.InvalidCastException e) {
  3274. throw new global::System.Data.StrongTypingException("Значение для столбца \'Стоимость_одного_дня_проката\' в таблице \'Представление\' рав" +
  3275. "но DBNull.", e);
  3276. }
  3277. }
  3278. set {
  3279. this[this.tableПредставление.Стоимость_одного_дня_прокатаColumn] = value;
  3280. }
  3281. }
  3282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3284. public decimal Стоимость_проката {
  3285. get {
  3286. try {
  3287. return ((decimal)(this[this.tableПредставление.Стоимость_прокатаColumn]));
  3288. }
  3289. catch (global::System.InvalidCastException e) {
  3290. throw new global::System.Data.StrongTypingException("Значение для столбца \'Стоимость_проката\' в таблице \'Представление\' равно DBNull.", e);
  3291. }
  3292. }
  3293. set {
  3294. this[this.tableПредставление.Стоимость_прокатаColumn] = value;
  3295. }
  3296. }
  3297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3299. public bool IsФамилияNull() {
  3300. return this.IsNull(this.tableПредставление.ФамилияColumn);
  3301. }
  3302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3304. public void SetФамилияNull() {
  3305. this[this.tableПредставление.ФамилияColumn] = global::System.Convert.DBNull;
  3306. }
  3307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3309. public bool IsИмяNull() {
  3310. return this.IsNull(this.tableПредставление.ИмяColumn);
  3311. }
  3312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3314. public void SetИмяNull() {
  3315. this[this.tableПредставление.ИмяColumn] = global::System.Convert.DBNull;
  3316. }
  3317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3319. public bool IsОтчествоNull() {
  3320. return this.IsNull(this.tableПредставление.ОтчествоColumn);
  3321. }
  3322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3324. public void SetОтчествоNull() {
  3325. this[this.tableПредставление.ОтчествоColumn] = global::System.Convert.DBNull;
  3326. }
  3327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3329. public bool IsМарка_автомобиляNull() {
  3330. return this.IsNull(this.tableПредставление.Марка_автомобиляColumn);
  3331. }
  3332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3334. public void SetМарка_автомобиляNull() {
  3335. this[this.tableПредставление.Марка_автомобиляColumn] = global::System.Convert.DBNull;
  3336. }
  3337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3339. public bool IsГосномер_автомобиляNull() {
  3340. return this.IsNull(this.tableПредставление.Госномер_автомобиляColumn);
  3341. }
  3342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3344. public void SetГосномер_автомобиляNull() {
  3345. this[this.tableПредставление.Госномер_автомобиляColumn] = global::System.Convert.DBNull;
  3346. }
  3347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3349. public bool IsДата_начала_прокатаNull() {
  3350. return this.IsNull(this.tableПредставление.Дата_начала_прокатаColumn);
  3351. }
  3352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3354. public void SetДата_начала_прокатаNull() {
  3355. this[this.tableПредставление.Дата_начала_прокатаColumn] = global::System.Convert.DBNull;
  3356. }
  3357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3359. public bool IsКоличество_дней_прокатаNull() {
  3360. return this.IsNull(this.tableПредставление.Количество_дней_прокатаColumn);
  3361. }
  3362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3364. public void SetКоличество_дней_прокатаNull() {
  3365. this[this.tableПредставление.Количество_дней_прокатаColumn] = global::System.Convert.DBNull;
  3366. }
  3367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3369. public bool IsСтоимость_одного_дня_прокатаNull() {
  3370. return this.IsNull(this.tableПредставление.Стоимость_одного_дня_прокатаColumn);
  3371. }
  3372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3374. public void SetСтоимость_одного_дня_прокатаNull() {
  3375. this[this.tableПредставление.Стоимость_одного_дня_прокатаColumn] = global::System.Convert.DBNull;
  3376. }
  3377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3379. public bool IsСтоимость_прокатаNull() {
  3380. return this.IsNull(this.tableПредставление.Стоимость_прокатаColumn);
  3381. }
  3382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3384. public void SetСтоимость_прокатаNull() {
  3385. this[this.tableПредставление.Стоимость_прокатаColumn] = global::System.Convert.DBNull;
  3386. }
  3387. }
  3388. /// <summary>
  3389. ///Represents strongly named DataRow class.
  3390. ///</summary>
  3391. public partial class ГосномерRow : global::System.Data.DataRow {
  3392. private ГосномерDataTable tableГосномер;
  3393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3395. internal ГосномерRow(global::System.Data.DataRowBuilder rb) :
  3396. base(rb) {
  3397. this.tableГосномер = ((ГосномерDataTable)(this.Table));
  3398. }
  3399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3401. public string Госномер_автомобиля {
  3402. get {
  3403. try {
  3404. return ((string)(this[this.tableГосномер.Госномер_автомобиляColumn]));
  3405. }
  3406. catch (global::System.InvalidCastException e) {
  3407. throw new global::System.Data.StrongTypingException("Значение для столбца \'Госномер_автомобиля\' в таблице \'Госномер\' равно DBNull.", e);
  3408. }
  3409. }
  3410. set {
  3411. this[this.tableГосномер.Госномер_автомобиляColumn] = value;
  3412. }
  3413. }
  3414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3416. public bool IsГосномер_автомобиляNull() {
  3417. return this.IsNull(this.tableГосномер.Госномер_автомобиляColumn);
  3418. }
  3419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3421. public void SetГосномер_автомобиляNull() {
  3422. this[this.tableГосномер.Госномер_автомобиляColumn] = global::System.Convert.DBNull;
  3423. }
  3424. }
  3425. /// <summary>
  3426. ///Represents strongly named DataRow class.
  3427. ///</summary>
  3428. public partial class Госномер_автомобиляRow : global::System.Data.DataRow {
  3429. private Госномер_автомобиляDataTable tableГосномер_автомобиля;
  3430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3432. internal Госномер_автомобиляRow(global::System.Data.DataRowBuilder rb) :
  3433. base(rb) {
  3434. this.tableГосномер_автомобиля = ((Госномер_автомобиляDataTable)(this.Table));
  3435. }
  3436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3438. public string Госномер_автомобиля {
  3439. get {
  3440. try {
  3441. return ((string)(this[this.tableГосномер_автомобиля.Госномер_автомобиляColumn]));
  3442. }
  3443. catch (global::System.InvalidCastException e) {
  3444. throw new global::System.Data.StrongTypingException("Значение для столбца \'Госномер_автомобиля\' в таблице \'Госномер_автомобиля\' равно " +
  3445. "DBNull.", e);
  3446. }
  3447. }
  3448. set {
  3449. this[this.tableГосномер_автомобиля.Госномер_автомобиляColumn] = value;
  3450. }
  3451. }
  3452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3454. public bool IsГосномер_автомобиляNull() {
  3455. return this.IsNull(this.tableГосномер_автомобиля.Госномер_автомобиляColumn);
  3456. }
  3457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3459. public void SetГосномер_автомобиляNull() {
  3460. this[this.tableГосномер_автомобиля.Госномер_автомобиляColumn] = global::System.Convert.DBNull;
  3461. }
  3462. }
  3463. /// <summary>
  3464. ///Represents strongly named DataRow class.
  3465. ///</summary>
  3466. public partial class ДатаRow : global::System.Data.DataRow {
  3467. private ДатаDataTable tableДата;
  3468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3470. internal ДатаRow(global::System.Data.DataRowBuilder rb) :
  3471. base(rb) {
  3472. this.tableДата = ((ДатаDataTable)(this.Table));
  3473. }
  3474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3476. public System.DateTime Дата_начала_проката {
  3477. get {
  3478. try {
  3479. return ((global::System.DateTime)(this[this.tableДата.Дата_начала_прокатаColumn]));
  3480. }
  3481. catch (global::System.InvalidCastException e) {
  3482. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата_начала_проката\' в таблице \'Дата\' равно DBNull.", e);
  3483. }
  3484. }
  3485. set {
  3486. this[this.tableДата.Дата_начала_прокатаColumn] = value;
  3487. }
  3488. }
  3489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3491. public bool IsДата_начала_прокатаNull() {
  3492. return this.IsNull(this.tableДата.Дата_начала_прокатаColumn);
  3493. }
  3494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3496. public void SetДата_начала_прокатаNull() {
  3497. this[this.tableДата.Дата_начала_прокатаColumn] = global::System.Convert.DBNull;
  3498. }
  3499. }
  3500. /// <summary>
  3501. ///Represents strongly named DataRow class.
  3502. ///</summary>
  3503. public partial class Дата_началаRow : global::System.Data.DataRow {
  3504. private Дата_началаDataTable tableДата_начала;
  3505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3507. internal Дата_началаRow(global::System.Data.DataRowBuilder rb) :
  3508. base(rb) {
  3509. this.tableДата_начала = ((Дата_началаDataTable)(this.Table));
  3510. }
  3511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3513. public System.DateTime Дата_начала_проката {
  3514. get {
  3515. try {
  3516. return ((global::System.DateTime)(this[this.tableДата_начала.Дата_начала_прокатаColumn]));
  3517. }
  3518. catch (global::System.InvalidCastException e) {
  3519. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата_начала_проката\' в таблице \'Дата_начала\' равно DBNull.", e);
  3520. }
  3521. }
  3522. set {
  3523. this[this.tableДата_начала.Дата_начала_прокатаColumn] = value;
  3524. }
  3525. }
  3526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3528. public bool IsДата_начала_прокатаNull() {
  3529. return this.IsNull(this.tableДата_начала.Дата_начала_прокатаColumn);
  3530. }
  3531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3533. public void SetДата_начала_прокатаNull() {
  3534. this[this.tableДата_начала.Дата_начала_прокатаColumn] = global::System.Convert.DBNull;
  3535. }
  3536. }
  3537. /// <summary>
  3538. ///Row event argument class
  3539. ///</summary>
  3540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3541. public class АвтомобилиRowChangeEvent : global::System.EventArgs {
  3542. private АвтомобилиRow eventRow;
  3543. private global::System.Data.DataRowAction eventAction;
  3544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3546. public АвтомобилиRowChangeEvent(АвтомобилиRow row, global::System.Data.DataRowAction action) {
  3547. this.eventRow = row;
  3548. this.eventAction = action;
  3549. }
  3550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3552. public АвтомобилиRow Row {
  3553. get {
  3554. return this.eventRow;
  3555. }
  3556. }
  3557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3559. public global::System.Data.DataRowAction Action {
  3560. get {
  3561. return this.eventAction;
  3562. }
  3563. }
  3564. }
  3565. /// <summary>
  3566. ///Row event argument class
  3567. ///</summary>
  3568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3569. public class КлиентыRowChangeEvent : global::System.EventArgs {
  3570. private КлиентыRow eventRow;
  3571. private global::System.Data.DataRowAction eventAction;
  3572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3574. public КлиентыRowChangeEvent(КлиентыRow row, global::System.Data.DataRowAction action) {
  3575. this.eventRow = row;
  3576. this.eventAction = action;
  3577. }
  3578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3580. public КлиентыRow Row {
  3581. get {
  3582. return this.eventRow;
  3583. }
  3584. }
  3585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3587. public global::System.Data.DataRowAction Action {
  3588. get {
  3589. return this.eventAction;
  3590. }
  3591. }
  3592. }
  3593. /// <summary>
  3594. ///Row event argument class
  3595. ///</summary>
  3596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3597. public class ПрокатыRowChangeEvent : global::System.EventArgs {
  3598. private ПрокатыRow eventRow;
  3599. private global::System.Data.DataRowAction eventAction;
  3600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3602. public ПрокатыRowChangeEvent(ПрокатыRow row, global::System.Data.DataRowAction action) {
  3603. this.eventRow = row;
  3604. this.eventAction = action;
  3605. }
  3606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3608. public ПрокатыRow Row {
  3609. get {
  3610. return this.eventRow;
  3611. }
  3612. }
  3613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3615. public global::System.Data.DataRowAction Action {
  3616. get {
  3617. return this.eventAction;
  3618. }
  3619. }
  3620. }
  3621. /// <summary>
  3622. ///Row event argument class
  3623. ///</summary>
  3624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3625. public class ПредставлениеRowChangeEvent : global::System.EventArgs {
  3626. private ПредставлениеRow eventRow;
  3627. private global::System.Data.DataRowAction eventAction;
  3628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3630. public ПредставлениеRowChangeEvent(ПредставлениеRow row, global::System.Data.DataRowAction action) {
  3631. this.eventRow = row;
  3632. this.eventAction = action;
  3633. }
  3634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3636. public ПредставлениеRow Row {
  3637. get {
  3638. return this.eventRow;
  3639. }
  3640. }
  3641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3643. public global::System.Data.DataRowAction Action {
  3644. get {
  3645. return this.eventAction;
  3646. }
  3647. }
  3648. }
  3649. /// <summary>
  3650. ///Row event argument class
  3651. ///</summary>
  3652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3653. public class ГосномерRowChangeEvent : global::System.EventArgs {
  3654. private ГосномерRow eventRow;
  3655. private global::System.Data.DataRowAction eventAction;
  3656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3658. public ГосномерRowChangeEvent(ГосномерRow row, global::System.Data.DataRowAction action) {
  3659. this.eventRow = row;
  3660. this.eventAction = action;
  3661. }
  3662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3664. public ГосномерRow Row {
  3665. get {
  3666. return this.eventRow;
  3667. }
  3668. }
  3669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3671. public global::System.Data.DataRowAction Action {
  3672. get {
  3673. return this.eventAction;
  3674. }
  3675. }
  3676. }
  3677. /// <summary>
  3678. ///Row event argument class
  3679. ///</summary>
  3680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3681. public class Госномер_автомобиляRowChangeEvent : global::System.EventArgs {
  3682. private Госномер_автомобиляRow eventRow;
  3683. private global::System.Data.DataRowAction eventAction;
  3684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3686. public Госномер_автомобиляRowChangeEvent(Госномер_автомобиляRow row, global::System.Data.DataRowAction action) {
  3687. this.eventRow = row;
  3688. this.eventAction = action;
  3689. }
  3690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3692. public Госномер_автомобиляRow Row {
  3693. get {
  3694. return this.eventRow;
  3695. }
  3696. }
  3697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3699. public global::System.Data.DataRowAction Action {
  3700. get {
  3701. return this.eventAction;
  3702. }
  3703. }
  3704. }
  3705. /// <summary>
  3706. ///Row event argument class
  3707. ///</summary>
  3708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3709. public class ДатаRowChangeEvent : global::System.EventArgs {
  3710. private ДатаRow eventRow;
  3711. private global::System.Data.DataRowAction eventAction;
  3712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3714. public ДатаRowChangeEvent(ДатаRow row, global::System.Data.DataRowAction action) {
  3715. this.eventRow = row;
  3716. this.eventAction = action;
  3717. }
  3718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3720. public ДатаRow Row {
  3721. get {
  3722. return this.eventRow;
  3723. }
  3724. }
  3725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3727. public global::System.Data.DataRowAction Action {
  3728. get {
  3729. return this.eventAction;
  3730. }
  3731. }
  3732. }
  3733. /// <summary>
  3734. ///Row event argument class
  3735. ///</summary>
  3736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3737. public class Дата_началаRowChangeEvent : global::System.EventArgs {
  3738. private Дата_началаRow eventRow;
  3739. private global::System.Data.DataRowAction eventAction;
  3740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3742. public Дата_началаRowChangeEvent(Дата_началаRow row, global::System.Data.DataRowAction action) {
  3743. this.eventRow = row;
  3744. this.eventAction = action;
  3745. }
  3746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3748. public Дата_началаRow Row {
  3749. get {
  3750. return this.eventRow;
  3751. }
  3752. }
  3753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3755. public global::System.Data.DataRowAction Action {
  3756. get {
  3757. return this.eventAction;
  3758. }
  3759. }
  3760. }
  3761. }
  3762. }
  3763. namespace Prokatavto08.Prokatavto08DataSetTableAdapters {
  3764. /// <summary>
  3765. ///Represents the connection and commands used to retrieve and save data.
  3766. ///</summary>
  3767. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3768. [global::System.ComponentModel.ToolboxItem(true)]
  3769. [global::System.ComponentModel.DataObjectAttribute(true)]
  3770. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3771. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3772. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3773. public partial class АвтомобилиTableAdapter : global::System.ComponentModel.Component {
  3774. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3775. private global::System.Data.SqlClient.SqlConnection _connection;
  3776. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3777. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3778. private bool _clearBeforeFill;
  3779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3781. public АвтомобилиTableAdapter() {
  3782. this.ClearBeforeFill = true;
  3783. }
  3784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3786. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3787. get {
  3788. if ((this._adapter == null)) {
  3789. this.InitAdapter();
  3790. }
  3791. return this._adapter;
  3792. }
  3793. }
  3794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3796. internal global::System.Data.SqlClient.SqlConnection Connection {
  3797. get {
  3798. if ((this._connection == null)) {
  3799. this.InitConnection();
  3800. }
  3801. return this._connection;
  3802. }
  3803. set {
  3804. this._connection = value;
  3805. if ((this.Adapter.InsertCommand != null)) {
  3806. this.Adapter.InsertCommand.Connection = value;
  3807. }
  3808. if ((this.Adapter.DeleteCommand != null)) {
  3809. this.Adapter.DeleteCommand.Connection = value;
  3810. }
  3811. if ((this.Adapter.UpdateCommand != null)) {
  3812. this.Adapter.UpdateCommand.Connection = value;
  3813. }
  3814. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3815. if ((this.CommandCollection[i] != null)) {
  3816. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3817. }
  3818. }
  3819. }
  3820. }
  3821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3823. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3824. get {
  3825. return this._transaction;
  3826. }
  3827. set {
  3828. this._transaction = value;
  3829. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3830. this.CommandCollection[i].Transaction = this._transaction;
  3831. }
  3832. if (((this.Adapter != null)
  3833. && (this.Adapter.DeleteCommand != null))) {
  3834. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3835. }
  3836. if (((this.Adapter != null)
  3837. && (this.Adapter.InsertCommand != null))) {
  3838. this.Adapter.InsertCommand.Transaction = this._transaction;
  3839. }
  3840. if (((this.Adapter != null)
  3841. && (this.Adapter.UpdateCommand != null))) {
  3842. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3843. }
  3844. }
  3845. }
  3846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3848. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3849. get {
  3850. if ((this._commandCollection == null)) {
  3851. this.InitCommandCollection();
  3852. }
  3853. return this._commandCollection;
  3854. }
  3855. }
  3856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3858. public bool ClearBeforeFill {
  3859. get {
  3860. return this._clearBeforeFill;
  3861. }
  3862. set {
  3863. this._clearBeforeFill = value;
  3864. }
  3865. }
  3866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3868. private void InitAdapter() {
  3869. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3870. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3871. tableMapping.SourceTable = "Table";
  3872. tableMapping.DataSetTable = "Автомобили";
  3873. tableMapping.ColumnMappings.Add("Код_автомобиля", "Код_автомобиля");
  3874. tableMapping.ColumnMappings.Add("Марка_автомобиля", "Марка_автомобиля");
  3875. tableMapping.ColumnMappings.Add("Цвет_автомобиля", "Цвет_автомобиля");
  3876. tableMapping.ColumnMappings.Add("Год_выпуска_автомобиля", "Год_выпуска_автомобиля");
  3877. tableMapping.ColumnMappings.Add("Госномер_автомобиля", "Госномер_автомобиля");
  3878. tableMapping.ColumnMappings.Add("Страховая_стоимость", "Страховая_стоимость");
  3879. this._adapter.TableMappings.Add(tableMapping);
  3880. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3881. this._adapter.DeleteCommand.Connection = this.Connection;
  3882. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Автомобили] WHERE (([Код_автомобиля] = @Original_Код_автомобиля) AND ((@IsNull_Марка_автомобиля = 1 AND [Марка_автомобиля] IS NULL) OR ([Марка_автомобиля] = @Original_Марка_автомобиля)) AND ((@IsNull_Цвет_автомобиля = 1 AND [Цвет_автомобиля] IS NULL) OR ([Цвет_автомобиля] = @Original_Цвет_автомобиля)) AND ((@IsNull_Год_выпуска_автомобиля = 1 AND [Год_выпуска_автомобиля] IS NULL) OR ([Год_выпуска_автомобиля] = @Original_Год_выпуска_автомобиля)) AND ((@IsNull_Госномер_автомобиля = 1 AND [Госномер_автомобиля] IS NULL) OR ([Госномер_автомобиля] = @Original_Госномер_автомобиля)) AND ((@IsNull_Страховая_стоимость = 1 AND [Страховая_стоимость] IS NULL) OR ([Страховая_стоимость] = @Original_Страховая_стоимость)))";
  3883. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3884. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_автомобиля", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3885. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Марка_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Марка_автомобиля", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3886. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Марка_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Марка_автомобиля", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3887. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цвет_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цвет_автомобиля", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3888. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цвет_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цвет_автомобиля", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3889. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Год_выпуска_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Год_выпуска_автомобиля", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3890. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Год_выпуска_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Год_выпуска_автомобиля", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3891. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Госномер_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Госномер_автомобиля", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3892. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Госномер_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Госномер_автомобиля", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3893. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Страховая_стоимость", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Страховая_стоимость", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3894. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Страховая_стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Страховая_стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3895. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3896. this._adapter.InsertCommand.Connection = this.Connection;
  3897. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Автомобили] ([Марка_автомобиля], [Цвет_автомобиля], [Год_выпуска_автомобиля], [Госномер_автомобиля], [Страховая_стоимость]) VALUES (@Марка_автомобиля, @Цвет_автомобиля, @Год_выпуска_автомобиля, @Госномер_автомобиля, @Страховая_стоимость);
  3898. SELECT Код_автомобиля, Марка_автомобиля, Цвет_автомобиля, Год_выпуска_автомобиля, Госномер_автомобиля, Страховая_стоимость FROM Автомобили WHERE (Код_автомобиля = SCOPE_IDENTITY())";
  3899. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3900. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Марка_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Марка_автомобиля", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3901. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цвет_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цвет_автомобиля", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3902. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Год_выпуска_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Год_выпуска_автомобиля", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3903. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Госномер_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Госномер_автомобиля", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3904. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Страховая_стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Страховая_стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3905. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3906. this._adapter.UpdateCommand.Connection = this.Connection;
  3907. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Автомобили] SET [Марка_автомобиля] = @Марка_автомобиля, [Цвет_автомобиля] = @Цвет_автомобиля, [Год_выпуска_автомобиля] = @Год_выпуска_автомобиля, [Госномер_автомобиля] = @Госномер_автомобиля, [Страховая_стоимость] = @Страховая_стоимость WHERE (([Код_автомобиля] = @Original_Код_автомобиля) AND ((@IsNull_Марка_автомобиля = 1 AND [Марка_автомобиля] IS NULL) OR ([Марка_автомобиля] = @Original_Марка_автомобиля)) AND ((@IsNull_Цвет_автомобиля = 1 AND [Цвет_автомобиля] IS NULL) OR ([Цвет_автомобиля] = @Original_Цвет_автомобиля)) AND ((@IsNull_Год_выпуска_автомобиля = 1 AND [Год_выпуска_автомобиля] IS NULL) OR ([Год_выпуска_автомобиля] = @Original_Год_выпуска_автомобиля)) AND ((@IsNull_Госномер_автомобиля = 1 AND [Госномер_автомобиля] IS NULL) OR ([Госномер_автомобиля] = @Original_Госномер_автомобиля)) AND ((@IsNull_Страховая_стоимость = 1 AND [Страховая_стоимость] IS NULL) OR ([Страховая_стоимость] = @Original_Страховая_стоимость)));
  3908. SELECT Код_автомобиля, Марка_автомобиля, Цвет_автомобиля, Год_выпуска_автомобиля, Госномер_автомобиля, Страховая_стоимость FROM Автомобили WHERE (Код_автомобиля = @Код_автомобиля)";
  3909. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3910. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Марка_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Марка_автомобиля", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3911. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цвет_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цвет_автомобиля", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3912. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Год_выпуска_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Год_выпуска_автомобиля", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3913. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Госномер_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Госномер_автомобиля", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3914. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Страховая_стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Страховая_стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3915. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_автомобиля", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3916. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Марка_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Марка_автомобиля", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3917. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Марка_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Марка_автомобиля", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3918. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цвет_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цвет_автомобиля", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3919. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цвет_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цвет_автомобиля", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3920. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Год_выпуска_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Год_выпуска_автомобиля", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3921. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Год_выпуска_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Год_выпуска_автомобиля", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3922. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Госномер_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Госномер_автомобиля", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3923. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Госномер_автомобиля", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Госномер_автомобиля", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3924. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Страховая_стоимость", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Страховая_стоимость", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3925. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Страховая_стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Страховая_стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3926. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_автомобиля", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Код_автомобиля", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3927. }
  3928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3930. private void InitConnection() {
  3931. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3932. this._connection.ConnectionString = global::Prokatavto08.Properties.Settings.Default.Prokatavto08ConnectionString;
  3933. }
  3934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3936. private void InitCommandCollection() {
  3937. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3938. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3939. this._commandCollection[0].Connection = this.Connection;
  3940. this._commandCollection[0].CommandText = "SELECT Код_автомобиля, Марка_автомобиля, Цвет_автомобиля, Год_выпуска_автомобиля," +
  3941. " Госномер_автомобиля, Страховая_стоимость FROM dbo.Автомобили";
  3942. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3943. }
  3944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3946. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3947. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3948. public virtual int Fill(Prokatavto08DataSet.АвтомобилиDataTable dataTable) {
  3949. this.Adapter.SelectCommand = this.CommandCollection[0];
  3950. if ((this.ClearBeforeFill == true)) {
  3951. dataTable.Clear();
  3952. }
  3953. int returnValue = this.Adapter.Fill(dataTable);
  3954. return returnValue;
  3955. }
  3956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3958. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3959. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3960. public virtual Prokatavto08DataSet.АвтомобилиDataTable GetData() {
  3961. this.Adapter.SelectCommand = this.CommandCollection[0];
  3962. Prokatavto08DataSet.АвтомобилиDataTable dataTable = new Prokatavto08DataSet.АвтомобилиDataTable();
  3963. this.Adapter.Fill(dataTable);
  3964. return dataTable;
  3965. }
  3966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3968. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3969. public virtual int Update(Prokatavto08DataSet.АвтомобилиDataTable dataTable) {
  3970. return this.Adapter.Update(dataTable);
  3971. }
  3972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3974. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3975. public virtual int Update(Prokatavto08DataSet dataSet) {
  3976. return this.Adapter.Update(dataSet, "Автомобили");
  3977. }
  3978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3980. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3981. public virtual int Update(global::System.Data.DataRow dataRow) {
  3982. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3983. dataRow});
  3984. }
  3985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3987. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3988. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3989. return this.Adapter.Update(dataRows);
  3990. }
  3991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3993. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3994. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3995. public virtual int Delete(int Original_Код_автомобиля, string Original_Марка_автомобиля, string Original_Цвет_автомобиля, string Original_Год_выпуска_автомобиля, string Original_Госномер_автомобиля, global::System.Nullable<decimal> Original_Страховая_стоимость) {
  3996. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_автомобиля));
  3997. if ((Original_Марка_автомобиля == null)) {
  3998. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3999. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4000. }
  4001. else {
  4002. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4003. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Марка_автомобиля));
  4004. }
  4005. if ((Original_Цвет_автомобиля == null)) {
  4006. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4007. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4008. }
  4009. else {
  4010. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4011. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Цвет_автомобиля));
  4012. }
  4013. if ((Original_Год_выпуска_автомобиля == null)) {
  4014. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4015. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4016. }
  4017. else {
  4018. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4019. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Год_выпуска_автомобиля));
  4020. }
  4021. if ((Original_Госномер_автомобиля == null)) {
  4022. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4023. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4024. }
  4025. else {
  4026. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4027. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Госномер_автомобиля));
  4028. }
  4029. if ((Original_Страховая_стоимость.HasValue == true)) {
  4030. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4031. this.Adapter.DeleteCommand.Parameters[10].Value = ((decimal)(Original_Страховая_стоимость.Value));
  4032. }
  4033. else {
  4034. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4035. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4036. }
  4037. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4038. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4039. != global::System.Data.ConnectionState.Open)) {
  4040. this.Adapter.DeleteCommand.Connection.Open();
  4041. }
  4042. try {
  4043. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4044. return returnValue;
  4045. }
  4046. finally {
  4047. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4048. this.Adapter.DeleteCommand.Connection.Close();
  4049. }
  4050. }
  4051. }
  4052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4054. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4055. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4056. public virtual int Insert(string Марка_автомобиля, string Цвет_автомобиля, string Год_выпуска_автомобиля, string Госномер_автомобиля, global::System.Nullable<decimal> Страховая_стоимость) {
  4057. if ((Марка_автомобиля == null)) {
  4058. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4059. }
  4060. else {
  4061. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Марка_автомобиля));
  4062. }
  4063. if ((Цвет_автомобиля == null)) {
  4064. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4065. }
  4066. else {
  4067. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Цвет_автомобиля));
  4068. }
  4069. if ((Год_выпуска_автомобиля == null)) {
  4070. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4071. }
  4072. else {
  4073. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Год_выпуска_автомобиля));
  4074. }
  4075. if ((Госномер_автомобиля == null)) {
  4076. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4077. }
  4078. else {
  4079. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Госномер_автомобиля));
  4080. }
  4081. if ((Страховая_стоимость.HasValue == true)) {
  4082. this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(Страховая_стоимость.Value));
  4083. }
  4084. else {
  4085. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4086. }
  4087. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4088. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4089. != global::System.Data.ConnectionState.Open)) {
  4090. this.Adapter.InsertCommand.Connection.Open();
  4091. }
  4092. try {
  4093. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4094. return returnValue;
  4095. }
  4096. finally {
  4097. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4098. this.Adapter.InsertCommand.Connection.Close();
  4099. }
  4100. }
  4101. }
  4102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4104. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4105. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4106. public virtual int Update(string Марка_автомобиля, string Цвет_автомобиля, string Год_выпуска_автомобиля, string Госномер_автомобиля, global::System.Nullable<decimal> Страховая_стоимость, int Original_Код_автомобиля, string Original_Марка_автомобиля, string Original_Цвет_автомобиля, string Original_Год_выпуска_автомобиля, string Original_Госномер_автомобиля, global::System.Nullable<decimal> Original_Страховая_стоимость, int Код_автомобиля) {
  4107. if ((Марка_автомобиля == null)) {
  4108. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4109. }
  4110. else {
  4111. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Марка_автомобиля));
  4112. }
  4113. if ((Цвет_автомобиля == null)) {
  4114. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4115. }
  4116. else {
  4117. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Цвет_автомобиля));
  4118. }
  4119. if ((Год_выпуска_автомобиля == null)) {
  4120. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4121. }
  4122. else {
  4123. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Год_выпуска_автомобиля));
  4124. }
  4125. if ((Госномер_автомобиля == null)) {
  4126. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4127. }
  4128. else {
  4129. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Госномер_автомобиля));
  4130. }
  4131. if ((Страховая_стоимость.HasValue == true)) {
  4132. this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(Страховая_стоимость.Value));
  4133. }
  4134. else {
  4135. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4136. }
  4137. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Код_автомобиля));
  4138. if ((Original_Марка_автомобиля == null)) {
  4139. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  4140. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4141. }
  4142. else {
  4143. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  4144. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Марка_автомобиля));
  4145. }
  4146. if ((Original_Цвет_автомобиля == null)) {
  4147. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4148. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4149. }
  4150. else {
  4151. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4152. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Цвет_автомобиля));
  4153. }
  4154. if ((Original_Год_выпуска_автомобиля == null)) {
  4155. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  4156. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  4157. }
  4158. else {
  4159. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  4160. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Год_выпуска_автомобиля));
  4161. }
  4162. if ((Original_Госномер_автомобиля == null)) {
  4163. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  4164. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  4165. }
  4166. else {
  4167. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  4168. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Госномер_автомобиля));
  4169. }
  4170. if ((Original_Страховая_стоимость.HasValue == true)) {
  4171. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  4172. this.Adapter.UpdateCommand.Parameters[15].Value = ((decimal)(Original_Страховая_стоимость.Value));
  4173. }
  4174. else {
  4175. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  4176. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  4177. }
  4178. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Код_автомобиля));
  4179. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4180. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4181. != global::System.Data.ConnectionState.Open)) {
  4182. this.Adapter.UpdateCommand.Connection.Open();
  4183. }
  4184. try {
  4185. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4186. return returnValue;
  4187. }
  4188. finally {
  4189. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4190. this.Adapter.UpdateCommand.Connection.Close();
  4191. }
  4192. }
  4193. }
  4194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4196. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4197. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4198. public virtual int Update(string Марка_автомобиля, string Цвет_автомобиля, string Год_выпуска_автомобиля, string Госномер_автомобиля, global::System.Nullable<decimal> Страховая_стоимость, int Original_Код_автомобиля, string Original_Марка_автомобиля, string Original_Цвет_автомобиля, string Original_Год_выпуска_автомобиля, string Original_Госномер_автомобиля, global::System.Nullable<decimal> Original_Страховая_стоимость) {
  4199. return this.Update(Марка_автомобиля, Цвет_автомобиля, Год_выпуска_автомобиля, Госномер_автомобиля, Страховая_стоимость, Original_Код_автомобиля, Original_Марка_автомобиля, Original_Цвет_автомобиля, Original_Год_выпуска_автомобиля, Original_Госномер_автомобиля, Original_Страховая_стоимость, Original_Код_автомобиля);
  4200. }
  4201. }
  4202. /// <summary>
  4203. ///Represents the connection and commands used to retrieve and save data.
  4204. ///</summary>
  4205. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4206. [global::System.ComponentModel.ToolboxItem(true)]
  4207. [global::System.ComponentModel.DataObjectAttribute(true)]
  4208. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4209. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4210. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4211. public partial class КлиентыTableAdapter : global::System.ComponentModel.Component {
  4212. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4213. private global::System.Data.SqlClient.SqlConnection _connection;
  4214. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4215. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4216. private bool _clearBeforeFill;
  4217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4219. public КлиентыTableAdapter() {
  4220. this.ClearBeforeFill = true;
  4221. }
  4222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4224. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4225. get {
  4226. if ((this._adapter == null)) {
  4227. this.InitAdapter();
  4228. }
  4229. return this._adapter;
  4230. }
  4231. }
  4232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4234. internal global::System.Data.SqlClient.SqlConnection Connection {
  4235. get {
  4236. if ((this._connection == null)) {
  4237. this.InitConnection();
  4238. }
  4239. return this._connection;
  4240. }
  4241. set {
  4242. this._connection = value;
  4243. if ((this.Adapter.InsertCommand != null)) {
  4244. this.Adapter.InsertCommand.Connection = value;
  4245. }
  4246. if ((this.Adapter.DeleteCommand != null)) {
  4247. this.Adapter.DeleteCommand.Connection = value;
  4248. }
  4249. if ((this.Adapter.UpdateCommand != null)) {
  4250. this.Adapter.UpdateCommand.Connection = value;
  4251. }
  4252. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4253. if ((this.CommandCollection[i] != null)) {
  4254. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4255. }
  4256. }
  4257. }
  4258. }
  4259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4261. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4262. get {
  4263. return this._transaction;
  4264. }
  4265. set {
  4266. this._transaction = value;
  4267. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4268. this.CommandCollection[i].Transaction = this._transaction;
  4269. }
  4270. if (((this.Adapter != null)
  4271. && (this.Adapter.DeleteCommand != null))) {
  4272. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4273. }
  4274. if (((this.Adapter != null)
  4275. && (this.Adapter.InsertCommand != null))) {
  4276. this.Adapter.InsertCommand.Transaction = this._transaction;
  4277. }
  4278. if (((this.Adapter != null)
  4279. && (this.Adapter.UpdateCommand != null))) {
  4280. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4281. }
  4282. }
  4283. }
  4284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4286. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4287. get {
  4288. if ((this._commandCollection == null)) {
  4289. this.InitCommandCollection();
  4290. }
  4291. return this._commandCollection;
  4292. }
  4293. }
  4294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4296. public bool ClearBeforeFill {
  4297. get {
  4298. return this._clearBeforeFill;
  4299. }
  4300. set {
  4301. this._clearBeforeFill = value;
  4302. }
  4303. }
  4304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4306. private void InitAdapter() {
  4307. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4308. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4309. tableMapping.SourceTable = "Table";
  4310. tableMapping.DataSetTable = "Клиенты";
  4311. tableMapping.ColumnMappings.Add("Код_клиента", "Код_клиента");
  4312. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  4313. tableMapping.ColumnMappings.Add("Имя", "Имя");
  4314. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  4315. tableMapping.ColumnMappings.Add("Серия_и_номер_паспорта", "Серия_и_номер_паспорта");
  4316. tableMapping.ColumnMappings.Add("Адрес", "Адрес");
  4317. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  4318. this._adapter.TableMappings.Add(tableMapping);
  4319. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4320. this._adapter.DeleteCommand.Connection = this.Connection;
  4321. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Клиенты] WHERE (([Код_клиента] = @Original_Код_клиента) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)) AND ((@IsNull_Серия_и_номер_паспорта = 1 AND [Серия_и_номер_паспорта] IS NULL) OR ([Серия_и_номер_паспорта] = @Original_Серия_и_номер_паспорта)) AND ((@IsNull_Адрес = 1 AND [Адрес] IS NULL) OR ([Адрес] = @Original_Адрес)) AND ((@IsNull_Телефон = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)))";
  4322. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4323. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_клиента", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_клиента", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4324. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Фамилия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4325. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4326. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Имя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4327. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4328. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Отчество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4329. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4330. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Серия_и_номер_паспорта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Серия_и_номер_паспорта", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4331. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Серия_и_номер_паспорта", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Серия_и_номер_паспорта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4332. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Адрес", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4333. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Адрес", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4334. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Телефон", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4335. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4336. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4337. this._adapter.InsertCommand.Connection = this.Connection;
  4338. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Клиенты] ([Фамилия], [Имя], [Отчество], [Серия_и_номер_паспорта], [Адрес], [Телефон]) VALUES (@Фамилия, @Имя, @Отчество, @Серия_и_номер_паспорта, @Адрес, @Телефон);
  4339. SELECT Код_клиента, Фамилия, Имя, Отчество, Серия_и_номер_паспорта, Адрес, Телефон FROM Клиенты WHERE (Код_клиента = SCOPE_IDENTITY())";
  4340. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4341. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4342. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4343. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4344. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Серия_и_номер_паспорта", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Серия_и_номер_паспорта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4345. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Адрес", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4346. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4347. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4348. this._adapter.UpdateCommand.Connection = this.Connection;
  4349. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Клиенты] SET [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество, [Серия_и_номер_паспорта] = @Серия_и_номер_паспорта, [Адрес] = @Адрес, [Телефон] = @Телефон WHERE (([Код_клиента] = @Original_Код_клиента) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)) AND ((@IsNull_Серия_и_номер_паспорта = 1 AND [Серия_и_номер_паспорта] IS NULL) OR ([Серия_и_номер_паспорта] = @Original_Серия_и_номер_паспорта)) AND ((@IsNull_Адрес = 1 AND [Адрес] IS NULL) OR ([Адрес] = @Original_Адрес)) AND ((@IsNull_Телефон = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)));
  4350. SELECT Код_клиента, Фамилия, Имя, Отчество, Серия_и_номер_паспорта, Адрес, Телефон FROM Клиенты WHERE (Код_клиента = @Код_клиента)";
  4351. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4352. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4353. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4354. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4355. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Серия_и_номер_паспорта", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Серия_и_номер_паспорта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4356. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Адрес", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4357. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4358. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_клиента", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_клиента", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4359. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Фамилия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4360. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4361. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Имя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4362. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4363. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Отчество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4364. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4365. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Серия_и_номер_паспорта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Серия_и_номер_паспорта", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4366. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Серия_и_номер_паспорта", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Серия_и_номер_паспорта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4367. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Адрес", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4368. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Адрес", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4369. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Телефон", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4370. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4371. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_клиента", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Код_клиента", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4372. }
  4373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4375. private void InitConnection() {
  4376. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4377. this._connection.ConnectionString = global::Prokatavto08.Properties.Settings.Default.Prokatavto08ConnectionString;
  4378. }
  4379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4381. private void InitCommandCollection() {
  4382. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4383. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4384. this._commandCollection[0].Connection = this.Connection;
  4385. this._commandCollection[0].CommandText = "SELECT Код_клиента, Фамилия, Имя, Отчество, Серия_и_номер_паспорта, Адрес, Телефо" +
  4386. "н FROM dbo.Клиенты";
  4387. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4388. }
  4389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4391. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4392. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4393. public virtual int Fill(Prokatavto08DataSet.КлиентыDataTable dataTable) {
  4394. this.Adapter.SelectCommand = this.CommandCollection[0];
  4395. if ((this.ClearBeforeFill == true)) {
  4396. dataTable.Clear();
  4397. }
  4398. int returnValue = this.Adapter.Fill(dataTable);
  4399. return returnValue;
  4400. }
  4401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4403. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4404. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4405. public virtual Prokatavto08DataSet.КлиентыDataTable GetData() {
  4406. this.Adapter.SelectCommand = this.CommandCollection[0];
  4407. Prokatavto08DataSet.КлиентыDataTable dataTable = new Prokatavto08DataSet.КлиентыDataTable();
  4408. this.Adapter.Fill(dataTable);
  4409. return dataTable;
  4410. }
  4411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4413. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4414. public virtual int Update(Prokatavto08DataSet.КлиентыDataTable dataTable) {
  4415. return this.Adapter.Update(dataTable);
  4416. }
  4417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4419. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4420. public virtual int Update(Prokatavto08DataSet dataSet) {
  4421. return this.Adapter.Update(dataSet, "Клиенты");
  4422. }
  4423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4425. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4426. public virtual int Update(global::System.Data.DataRow dataRow) {
  4427. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4428. dataRow});
  4429. }
  4430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4432. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4433. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4434. return this.Adapter.Update(dataRows);
  4435. }
  4436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4438. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4439. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4440. public virtual int Delete(int Original_Код_клиента, string Original_Фамилия, string Original_Имя, string Original_Отчество, string Original_Серия_и_номер_паспорта, string Original_Адрес, string Original_Телефон) {
  4441. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_клиента));
  4442. if ((Original_Фамилия == null)) {
  4443. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4444. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4445. }
  4446. else {
  4447. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4448. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Фамилия));
  4449. }
  4450. if ((Original_Имя == null)) {
  4451. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4452. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4453. }
  4454. else {
  4455. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4456. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Имя));
  4457. }
  4458. if ((Original_Отчество == null)) {
  4459. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4460. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4461. }
  4462. else {
  4463. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4464. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Отчество));
  4465. }
  4466. if ((Original_Серия_и_номер_паспорта == null)) {
  4467. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4468. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4469. }
  4470. else {
  4471. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4472. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Серия_и_номер_паспорта));
  4473. }
  4474. if ((Original_Адрес == null)) {
  4475. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4476. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4477. }
  4478. else {
  4479. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4480. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Адрес));
  4481. }
  4482. if ((Original_Телефон == null)) {
  4483. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  4484. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  4485. }
  4486. else {
  4487. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  4488. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Телефон));
  4489. }
  4490. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4491. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4492. != global::System.Data.ConnectionState.Open)) {
  4493. this.Adapter.DeleteCommand.Connection.Open();
  4494. }
  4495. try {
  4496. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4497. return returnValue;
  4498. }
  4499. finally {
  4500. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4501. this.Adapter.DeleteCommand.Connection.Close();
  4502. }
  4503. }
  4504. }
  4505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4507. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4508. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4509. public virtual int Insert(string Фамилия, string Имя, string Отчество, string Серия_и_номер_паспорта, string Адрес, string Телефон) {
  4510. if ((Фамилия == null)) {
  4511. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4512. }
  4513. else {
  4514. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Фамилия));
  4515. }
  4516. if ((Имя == null)) {
  4517. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4518. }
  4519. else {
  4520. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Имя));
  4521. }
  4522. if ((Отчество == null)) {
  4523. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4524. }
  4525. else {
  4526. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Отчество));
  4527. }
  4528. if ((Серия_и_номер_паспорта == null)) {
  4529. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4530. }
  4531. else {
  4532. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Серия_и_номер_паспорта));
  4533. }
  4534. if ((Адрес == null)) {
  4535. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4536. }
  4537. else {
  4538. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Адрес));
  4539. }
  4540. if ((Телефон == null)) {
  4541. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  4542. }
  4543. else {
  4544. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Телефон));
  4545. }
  4546. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4547. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4548. != global::System.Data.ConnectionState.Open)) {
  4549. this.Adapter.InsertCommand.Connection.Open();
  4550. }
  4551. try {
  4552. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4553. return returnValue;
  4554. }
  4555. finally {
  4556. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4557. this.Adapter.InsertCommand.Connection.Close();
  4558. }
  4559. }
  4560. }
  4561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4563. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4564. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4565. public virtual int Update(string Фамилия, string Имя, string Отчество, string Серия_и_номер_паспорта, string Адрес, string Телефон, int Original_Код_клиента, string Original_Фамилия, string Original_Имя, string Original_Отчество, string Original_Серия_и_номер_паспорта, string Original_Адрес, string Original_Телефон, int Код_клиента) {
  4566. if ((Фамилия == null)) {
  4567. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4568. }
  4569. else {
  4570. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Фамилия));
  4571. }
  4572. if ((Имя == null)) {
  4573. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4574. }
  4575. else {
  4576. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Имя));
  4577. }
  4578. if ((Отчество == null)) {
  4579. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4580. }
  4581. else {
  4582. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Отчество));
  4583. }
  4584. if ((Серия_и_номер_паспорта == null)) {
  4585. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4586. }
  4587. else {
  4588. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Серия_и_номер_паспорта));
  4589. }
  4590. if ((Адрес == null)) {
  4591. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4592. }
  4593. else {
  4594. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Адрес));
  4595. }
  4596. if ((Телефон == null)) {
  4597. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4598. }
  4599. else {
  4600. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Телефон));
  4601. }
  4602. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Код_клиента));
  4603. if ((Original_Фамилия == null)) {
  4604. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  4605. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  4606. }
  4607. else {
  4608. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  4609. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Фамилия));
  4610. }
  4611. if ((Original_Имя == null)) {
  4612. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  4613. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  4614. }
  4615. else {
  4616. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  4617. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Имя));
  4618. }
  4619. if ((Original_Отчество == null)) {
  4620. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  4621. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  4622. }
  4623. else {
  4624. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  4625. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Отчество));
  4626. }
  4627. if ((Original_Серия_и_номер_паспорта == null)) {
  4628. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  4629. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  4630. }
  4631. else {
  4632. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  4633. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Серия_и_номер_паспорта));
  4634. }
  4635. if ((Original_Адрес == null)) {
  4636. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  4637. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  4638. }
  4639. else {
  4640. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  4641. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Адрес));
  4642. }
  4643. if ((Original_Телефон == null)) {
  4644. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  4645. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  4646. }
  4647. else {
  4648. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  4649. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Телефон));
  4650. }
  4651. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Код_клиента));
  4652. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4653. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4654. != global::System.Data.ConnectionState.Open)) {
  4655. this.Adapter.UpdateCommand.Connection.Open();
  4656. }
  4657. try {
  4658. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4659. return returnValue;
  4660. }
  4661. finally {
  4662. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4663. this.Adapter.UpdateCommand.Connection.Close();
  4664. }
  4665. }
  4666. }
  4667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4669. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4670. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4671. public virtual int Update(string Фамилия, string Имя, string Отчество, string Серия_и_номер_паспорта, string Адрес, string Телефон, int Original_Код_клиента, string Original_Фамилия, string Original_Имя, string Original_Отчество, string Original_Серия_и_номер_паспорта, string Original_Адрес, string Original_Телефон) {
  4672. return this.Update(Фамилия, Имя, Отчество, Серия_и_номер_паспорта, Адрес, Телефон, Original_Код_клиента, Original_Фамилия, Original_Имя, Original_Отчество, Original_Серия_и_номер_паспорта, Original_Адрес, Original_Телефон, Original_Код_клиента);
  4673. }
  4674. }
  4675. /// <summary>
  4676. ///Represents the connection and commands used to retrieve and save data.
  4677. ///</summary>
  4678. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4679. [global::System.ComponentModel.ToolboxItem(true)]
  4680. [global::System.ComponentModel.DataObjectAttribute(true)]
  4681. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4682. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4683. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4684. public partial class ПрокатыTableAdapter : global::System.ComponentModel.Component {
  4685. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4686. private global::System.Data.SqlClient.SqlConnection _connection;
  4687. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4688. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4689. private bool _clearBeforeFill;
  4690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4692. public ПрокатыTableAdapter() {
  4693. this.ClearBeforeFill = true;
  4694. }
  4695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4697. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4698. get {
  4699. if ((this._adapter == null)) {
  4700. this.InitAdapter();
  4701. }
  4702. return this._adapter;
  4703. }
  4704. }
  4705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4707. internal global::System.Data.SqlClient.SqlConnection Connection {
  4708. get {
  4709. if ((this._connection == null)) {
  4710. this.InitConnection();
  4711. }
  4712. return this._connection;
  4713. }
  4714. set {
  4715. this._connection = value;
  4716. if ((this.Adapter.InsertCommand != null)) {
  4717. this.Adapter.InsertCommand.Connection = value;
  4718. }
  4719. if ((this.Adapter.DeleteCommand != null)) {
  4720. this.Adapter.DeleteCommand.Connection = value;
  4721. }
  4722. if ((this.Adapter.UpdateCommand != null)) {
  4723. this.Adapter.UpdateCommand.Connection = value;
  4724. }
  4725. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4726. if ((this.CommandCollection[i] != null)) {
  4727. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4728. }
  4729. }
  4730. }
  4731. }
  4732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4734. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4735. get {
  4736. return this._transaction;
  4737. }
  4738. set {
  4739. this._transaction = value;
  4740. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4741. this.CommandCollection[i].Transaction = this._transaction;
  4742. }
  4743. if (((this.Adapter != null)
  4744. && (this.Adapter.DeleteCommand != null))) {
  4745. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4746. }
  4747. if (((this.Adapter != null)
  4748. && (this.Adapter.InsertCommand != null))) {
  4749. this.Adapter.InsertCommand.Transaction = this._transaction;
  4750. }
  4751. if (((this.Adapter != null)
  4752. && (this.Adapter.UpdateCommand != null))) {
  4753. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4754. }
  4755. }
  4756. }
  4757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4759. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4760. get {
  4761. if ((this._commandCollection == null)) {
  4762. this.InitCommandCollection();
  4763. }
  4764. return this._commandCollection;
  4765. }
  4766. }
  4767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4769. public bool ClearBeforeFill {
  4770. get {
  4771. return this._clearBeforeFill;
  4772. }
  4773. set {
  4774. this._clearBeforeFill = value;
  4775. }
  4776. }
  4777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4779. private void InitAdapter() {
  4780. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4781. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4782. tableMapping.SourceTable = "Table";
  4783. tableMapping.DataSetTable = "Прокаты";
  4784. tableMapping.ColumnMappings.Add("Код_проката", "Код_проката");
  4785. tableMapping.ColumnMappings.Add("Код_автомобиля", "Код_автомобиля");
  4786. tableMapping.ColumnMappings.Add("Код_клиента", "Код_клиента");
  4787. tableMapping.ColumnMappings.Add("Дата_начала_проката", "Дата_начала_проката");
  4788. tableMapping.ColumnMappings.Add("Количество_дней_проката", "Количество_дней_проката");
  4789. tableMapping.ColumnMappings.Add("Дата_окончания_проката", "Дата_окончания_проката");
  4790. tableMapping.ColumnMappings.Add("Стоимость_одного_дня_проката", "Стоимость_одного_дня_проката");
  4791. tableMapping.ColumnMappings.Add("Стоимость_проката", "Стоимость_проката");
  4792. this._adapter.TableMappings.Add(tableMapping);
  4793. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4794. this._adapter.DeleteCommand.Connection = this.Connection;
  4795. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Прокаты] WHERE (([Код_проката] = @Original_Код_проката) AND ([Код_автомобиля] = @Original_Код_автомобиля) AND ([Код_клиента] = @Original_Код_клиента) AND ((@IsNull_Дата_начала_проката = 1 AND [Дата_начала_проката] IS NULL) OR ([Дата_начала_проката] = @Original_Дата_начала_проката)) AND ((@IsNull_Количество_дней_проката = 1 AND [Количество_дней_проката] IS NULL) OR ([Количество_дней_проката] = @Original_Количество_дней_проката)) AND ((@IsNull_Дата_окончания_проката = 1 AND [Дата_окончания_проката] IS NULL) OR ([Дата_окончания_проката] = @Original_Дата_окончания_проката)) AND ((@IsNull_Стоимость_одного_дня_проката = 1 AND [Стоимость_одного_дня_проката] IS NULL) OR ([Стоимость_одного_дня_проката] = @Original_Стоимость_одного_дня_проката)) AND ((@IsNull_Стоимость_проката = 1 AND [Стоимость_проката] IS NULL) OR ([Стоимость_проката] = @Original_Стоимость_проката)))";
  4796. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4797. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_проката", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_проката", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4798. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_автомобиля", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4799. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_клиента", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_клиента", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4800. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Дата_начала_проката", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_начала_проката", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4801. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_начала_проката", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_начала_проката", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4802. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество_дней_проката", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество_дней_проката", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4803. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество_дней_проката", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество_дней_проката", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4804. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Дата_окончания_проката", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_окончания_проката", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4805. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_окончания_проката", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_окончания_проката", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4806. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Стоимость_одного_дня_проката", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость_одного_дня_проката", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4807. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость_одного_дня_проката", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость_одного_дня_проката", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4808. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Стоимость_проката", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость_проката", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4809. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость_проката", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость_проката", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4810. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4811. this._adapter.InsertCommand.Connection = this.Connection;
  4812. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Прокаты] ([Код_автомобиля], [Код_клиента], [Дата_начала_проката], [Количество_дней_проката], [Дата_окончания_проката], [Стоимость_одного_дня_проката], [Стоимость_проката]) VALUES (@Код_автомобиля, @Код_клиента, @Дата_начала_проката, @Количество_дней_проката, @Дата_окончания_проката, @Стоимость_одного_дня_проката, @Стоимость_проката);
  4813. SELECT Код_проката, Код_автомобиля, Код_клиента, Дата_начала_проката, Количество_дней_проката, Дата_окончания_проката, Стоимость_одного_дня_проката, Стоимость_проката FROM Прокаты WHERE (Код_проката = SCOPE_IDENTITY())";
  4814. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4815. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_автомобиля", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4816. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_клиента", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_клиента", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4817. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_начала_проката", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_начала_проката", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4818. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество_дней_проката", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество_дней_проката", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4819. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_окончания_проката", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_окончания_проката", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4820. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость_одного_дня_проката", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость_одного_дня_проката", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4821. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость_проката", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость_проката", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4822. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4823. this._adapter.UpdateCommand.Connection = this.Connection;
  4824. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Прокаты] SET [Код_автомобиля] = @Код_автомобиля, [Код_клиента] = @Код_клиента, [Дата_начала_проката] = @Дата_начала_проката, [Количество_дней_проката] = @Количество_дней_проката, [Дата_окончания_проката] = @Дата_окончания_проката, [Стоимость_одного_дня_проката] = @Стоимость_одного_дня_проката, [Стоимость_проката] = @Стоимость_проката WHERE (([Код_проката] = @Original_Код_проката) AND ([Код_автомобиля] = @Original_Код_автомобиля) AND ([Код_клиента] = @Original_Код_клиента) AND ((@IsNull_Дата_начала_проката = 1 AND [Дата_начала_проката] IS NULL) OR ([Дата_начала_проката] = @Original_Дата_начала_проката)) AND ((@IsNull_Количество_дней_проката = 1 AND [Количество_дней_проката] IS NULL) OR ([Количество_дней_проката] = @Original_Количество_дней_проката)) AND ((@IsNull_Дата_окончания_проката = 1 AND [Дата_окончания_проката] IS NULL) OR ([Дата_окончания_проката] = @Original_Дата_окончания_проката)) AND ((@IsNull_Стоимость_одного_дня_проката = 1 AND [Стоимость_одного_дня_проката] IS NULL) OR ([Стоимость_одного_дня_проката] = @Original_Стоимость_одного_дня_проката)) AND ((@IsNull_Стоимость_проката = 1 AND [Стоимость_проката] IS NULL) OR ([Стоимость_проката] = @Original_Стоимость_проката)));
  4825. SELECT Код_проката, Код_автомобиля, Код_клиента, Дата_начала_проката, Количество_дней_проката, Дата_окончания_проката, Стоимость_одного_дня_проката, Стоимость_проката FROM Прокаты WHERE (Код_проката = @Код_проката)";
  4826. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4827. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_автомобиля", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4828. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_клиента", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_клиента", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4829. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_начала_проката", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_начала_проката", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4830. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество_дней_проката", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество_дней_проката", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4831. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_окончания_проката", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_окончания_проката", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4832. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость_одного_дня_проката", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость_одного_дня_проката", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4833. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость_проката", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость_проката", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4834. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_проката", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_проката", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4835. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_автомобиля", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_автомобиля", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4836. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_клиента", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_клиента", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4837. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Дата_начала_проката", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_начала_проката", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4838. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_начала_проката", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_начала_проката", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4839. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Количество_дней_проката", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество_дней_проката", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4840. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество_дней_проката", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество_дней_проката", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4841. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Дата_окончания_проката", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_окончания_проката", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4842. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_окончания_проката", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_окончания_проката", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4843. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Стоимость_одного_дня_проката", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость_одного_дня_проката", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4844. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость_одного_дня_проката", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость_одного_дня_проката", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4845. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Стоимость_проката", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость_проката", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4846. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость_проката", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость_проката", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4847. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_проката", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Код_проката", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4848. }
  4849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4851. private void InitConnection() {
  4852. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4853. this._connection.ConnectionString = global::Prokatavto08.Properties.Settings.Default.Prokatavto08ConnectionString;
  4854. }
  4855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4857. private void InitCommandCollection() {
  4858. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4859. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4860. this._commandCollection[0].Connection = this.Connection;
  4861. this._commandCollection[0].CommandText = "SELECT Код_проката, Код_автомобиля, Код_клиента, Дата_начала_проката, Количество_" +
  4862. "дней_проката, Дата_окончания_проката, Стоимость_одного_дня_проката, Стоимость_пр" +
  4863. "оката FROM dbo.Прокаты";
  4864. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4865. }
  4866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4868. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4869. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4870. public virtual int Fill(Prokatavto08DataSet.ПрокатыDataTable dataTable) {
  4871. this.Adapter.SelectCommand = this.CommandCollection[0];
  4872. if ((this.ClearBeforeFill == true)) {
  4873. dataTable.Clear();
  4874. }
  4875. int returnValue = this.Adapter.Fill(dataTable);
  4876. return returnValue;
  4877. }
  4878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4880. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4881. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4882. public virtual Prokatavto08DataSet.ПрокатыDataTable GetData() {
  4883. this.Adapter.SelectCommand = this.CommandCollection[0];
  4884. Prokatavto08DataSet.ПрокатыDataTable dataTable = new Prokatavto08DataSet.ПрокатыDataTable();
  4885. this.Adapter.Fill(dataTable);
  4886. return dataTable;
  4887. }
  4888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4890. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4891. public virtual int Update(Prokatavto08DataSet.ПрокатыDataTable dataTable) {
  4892. return this.Adapter.Update(dataTable);
  4893. }
  4894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4896. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4897. public virtual int Update(Prokatavto08DataSet dataSet) {
  4898. return this.Adapter.Update(dataSet, "Прокаты");
  4899. }
  4900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4902. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4903. public virtual int Update(global::System.Data.DataRow dataRow) {
  4904. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4905. dataRow});
  4906. }
  4907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4909. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4910. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4911. return this.Adapter.Update(dataRows);
  4912. }
  4913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4915. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4916. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4917. public virtual int Delete(int Original_Код_проката, int Original_Код_автомобиля, int Original_Код_клиента, global::System.Nullable<global::System.DateTime> Original_Дата_начала_проката, string Original_Количество_дней_проката, global::System.Nullable<global::System.DateTime> Original_Дата_окончания_проката, global::System.Nullable<decimal> Original_Стоимость_одного_дня_проката, global::System.Nullable<decimal> Original_Стоимость_проката) {
  4918. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_проката));
  4919. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_Код_автомобиля));
  4920. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Код_клиента));
  4921. if ((Original_Дата_начала_проката.HasValue == true)) {
  4922. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4923. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_Дата_начала_проката.Value));
  4924. }
  4925. else {
  4926. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4927. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4928. }
  4929. if ((Original_Количество_дней_проката == null)) {
  4930. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4931. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4932. }
  4933. else {
  4934. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4935. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Количество_дней_проката));
  4936. }
  4937. if ((Original_Дата_окончания_проката.HasValue == true)) {
  4938. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4939. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_Дата_окончания_проката.Value));
  4940. }
  4941. else {
  4942. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4943. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4944. }
  4945. if ((Original_Стоимость_одного_дня_проката.HasValue == true)) {
  4946. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4947. this.Adapter.DeleteCommand.Parameters[10].Value = ((decimal)(Original_Стоимость_одного_дня_проката.Value));
  4948. }
  4949. else {
  4950. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4951. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4952. }
  4953. if ((Original_Стоимость_проката.HasValue == true)) {
  4954. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  4955. this.Adapter.DeleteCommand.Parameters[12].Value = ((decimal)(Original_Стоимость_проката.Value));
  4956. }
  4957. else {
  4958. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  4959. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  4960. }
  4961. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4962. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4963. != global::System.Data.ConnectionState.Open)) {
  4964. this.Adapter.DeleteCommand.Connection.Open();
  4965. }
  4966. try {
  4967. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4968. return returnValue;
  4969. }
  4970. finally {
  4971. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4972. this.Adapter.DeleteCommand.Connection.Close();
  4973. }
  4974. }
  4975. }
  4976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4978. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4979. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4980. public virtual int Insert(int Код_автомобиля, int Код_клиента, global::System.Nullable<global::System.DateTime> Дата_начала_проката, string Количество_дней_проката, global::System.Nullable<global::System.DateTime> Дата_окончания_проката, global::System.Nullable<decimal> Стоимость_одного_дня_проката, global::System.Nullable<decimal> Стоимость_проката) {
  4981. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_автомобиля));
  4982. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Код_клиента));
  4983. if ((Дата_начала_проката.HasValue == true)) {
  4984. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Дата_начала_проката.Value));
  4985. }
  4986. else {
  4987. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4988. }
  4989. if ((Количество_дней_проката == null)) {
  4990. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4991. }
  4992. else {
  4993. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Количество_дней_проката));
  4994. }
  4995. if ((Дата_окончания_проката.HasValue == true)) {
  4996. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(Дата_окончания_проката.Value));
  4997. }
  4998. else {
  4999. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5000. }
  5001. if ((Стоимость_одного_дня_проката.HasValue == true)) {
  5002. this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(Стоимость_одного_дня_проката.Value));
  5003. }
  5004. else {
  5005. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5006. }
  5007. if ((Стоимость_проката.HasValue == true)) {
  5008. this.Adapter.InsertCommand.Parameters[6].Value = ((decimal)(Стоимость_проката.Value));
  5009. }
  5010. else {
  5011. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  5012. }
  5013. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5014. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5015. != global::System.Data.ConnectionState.Open)) {
  5016. this.Adapter.InsertCommand.Connection.Open();
  5017. }
  5018. try {
  5019. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5020. return returnValue;
  5021. }
  5022. finally {
  5023. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5024. this.Adapter.InsertCommand.Connection.Close();
  5025. }
  5026. }
  5027. }
  5028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5030. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5031. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5032. public virtual int Update(
  5033. int Код_автомобиля,
  5034. int Код_клиента,
  5035. global::System.Nullable<global::System.DateTime> Дата_начала_проката,
  5036. string Количество_дней_проката,
  5037. global::System.Nullable<global::System.DateTime> Дата_окончания_проката,
  5038. global::System.Nullable<decimal> Стоимость_одного_дня_проката,
  5039. global::System.Nullable<decimal> Стоимость_проката,
  5040. int Original_Код_проката,
  5041. int Original_Код_автомобиля,
  5042. int Original_Код_клиента,
  5043. global::System.Nullable<global::System.DateTime> Original_Дата_начала_проката,
  5044. string Original_Количество_дней_проката,
  5045. global::System.Nullable<global::System.DateTime> Original_Дата_окончания_проката,
  5046. global::System.Nullable<decimal> Original_Стоимость_одного_дня_проката,
  5047. global::System.Nullable<decimal> Original_Стоимость_проката,
  5048. int Код_проката) {
  5049. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Код_автомобиля));
  5050. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Код_клиента));
  5051. if ((Дата_начала_проката.HasValue == true)) {
  5052. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(Дата_начала_проката.Value));
  5053. }
  5054. else {
  5055. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5056. }
  5057. if ((Количество_дней_проката == null)) {
  5058. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5059. }
  5060. else {
  5061. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Количество_дней_проката));
  5062. }
  5063. if ((Дата_окончания_проката.HasValue == true)) {
  5064. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(Дата_окончания_проката.Value));
  5065. }
  5066. else {
  5067. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5068. }
  5069. if ((Стоимость_одного_дня_проката.HasValue == true)) {
  5070. this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(Стоимость_одного_дня_проката.Value));
  5071. }
  5072. else {
  5073. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5074. }
  5075. if ((Стоимость_проката.HasValue == true)) {
  5076. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(Стоимость_проката.Value));
  5077. }
  5078. else {
  5079. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5080. }
  5081. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Код_проката));
  5082. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_Код_автомобиля));
  5083. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Код_клиента));
  5084. if ((Original_Дата_начала_проката.HasValue == true)) {
  5085. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5086. this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_Дата_начала_проката.Value));
  5087. }
  5088. else {
  5089. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5090. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5091. }
  5092. if ((Original_Количество_дней_проката == null)) {
  5093. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5094. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5095. }
  5096. else {
  5097. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5098. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Количество_дней_проката));
  5099. }
  5100. if ((Original_Дата_окончания_проката.HasValue == true)) {
  5101. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  5102. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_Дата_окончания_проката.Value));
  5103. }
  5104. else {
  5105. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  5106. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  5107. }
  5108. if ((Original_Стоимость_одного_дня_проката.HasValue == true)) {
  5109. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  5110. this.Adapter.UpdateCommand.Parameters[17].Value = ((decimal)(Original_Стоимость_одного_дня_проката.Value));
  5111. }
  5112. else {
  5113. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  5114. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  5115. }
  5116. if ((Original_Стоимость_проката.HasValue == true)) {
  5117. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  5118. this.Adapter.UpdateCommand.Parameters[19].Value = ((decimal)(Original_Стоимость_проката.Value));
  5119. }
  5120. else {
  5121. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  5122. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  5123. }
  5124. this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(Код_проката));
  5125. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5126. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5127. != global::System.Data.ConnectionState.Open)) {
  5128. this.Adapter.UpdateCommand.Connection.Open();
  5129. }
  5130. try {
  5131. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5132. return returnValue;
  5133. }
  5134. finally {
  5135. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5136. this.Adapter.UpdateCommand.Connection.Close();
  5137. }
  5138. }
  5139. }
  5140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5142. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5143. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5144. public virtual int Update(int Код_автомобиля, int Код_клиента, global::System.Nullable<global::System.DateTime> Дата_начала_проката, string Количество_дней_проката, global::System.Nullable<global::System.DateTime> Дата_окончания_проката, global::System.Nullable<decimal> Стоимость_одного_дня_проката, global::System.Nullable<decimal> Стоимость_проката, int Original_Код_проката, int Original_Код_автомобиля, int Original_Код_клиента, global::System.Nullable<global::System.DateTime> Original_Дата_начала_проката, string Original_Количество_дней_проката, global::System.Nullable<global::System.DateTime> Original_Дата_окончания_проката, global::System.Nullable<decimal> Original_Стоимость_одного_дня_проката, global::System.Nullable<decimal> Original_Стоимость_проката) {
  5145. return this.Update(Код_автомобиля, Код_клиента, Дата_начала_проката, Количество_дней_проката, Дата_окончания_проката, Стоимость_одного_дня_проката, Стоимость_проката, Original_Код_проката, Original_Код_автомобиля, Original_Код_клиента, Original_Дата_начала_проката, Original_Количество_дней_проката, Original_Дата_окончания_проката, Original_Стоимость_одного_дня_проката, Original_Стоимость_проката, Original_Код_проката);
  5146. }
  5147. }
  5148. /// <summary>
  5149. ///Represents the connection and commands used to retrieve and save data.
  5150. ///</summary>
  5151. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5152. [global::System.ComponentModel.ToolboxItem(true)]
  5153. [global::System.ComponentModel.DataObjectAttribute(true)]
  5154. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5155. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5156. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5157. public partial class ПредставлениеTableAdapter : global::System.ComponentModel.Component {
  5158. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5159. private global::System.Data.SqlClient.SqlConnection _connection;
  5160. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5161. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5162. private bool _clearBeforeFill;
  5163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5165. public ПредставлениеTableAdapter() {
  5166. this.ClearBeforeFill = true;
  5167. }
  5168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5170. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5171. get {
  5172. if ((this._adapter == null)) {
  5173. this.InitAdapter();
  5174. }
  5175. return this._adapter;
  5176. }
  5177. }
  5178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5180. internal global::System.Data.SqlClient.SqlConnection Connection {
  5181. get {
  5182. if ((this._connection == null)) {
  5183. this.InitConnection();
  5184. }
  5185. return this._connection;
  5186. }
  5187. set {
  5188. this._connection = value;
  5189. if ((this.Adapter.InsertCommand != null)) {
  5190. this.Adapter.InsertCommand.Connection = value;
  5191. }
  5192. if ((this.Adapter.DeleteCommand != null)) {
  5193. this.Adapter.DeleteCommand.Connection = value;
  5194. }
  5195. if ((this.Adapter.UpdateCommand != null)) {
  5196. this.Adapter.UpdateCommand.Connection = value;
  5197. }
  5198. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5199. if ((this.CommandCollection[i] != null)) {
  5200. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5201. }
  5202. }
  5203. }
  5204. }
  5205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5207. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5208. get {
  5209. return this._transaction;
  5210. }
  5211. set {
  5212. this._transaction = value;
  5213. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5214. this.CommandCollection[i].Transaction = this._transaction;
  5215. }
  5216. if (((this.Adapter != null)
  5217. && (this.Adapter.DeleteCommand != null))) {
  5218. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5219. }
  5220. if (((this.Adapter != null)
  5221. && (this.Adapter.InsertCommand != null))) {
  5222. this.Adapter.InsertCommand.Transaction = this._transaction;
  5223. }
  5224. if (((this.Adapter != null)
  5225. && (this.Adapter.UpdateCommand != null))) {
  5226. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5227. }
  5228. }
  5229. }
  5230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5232. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5233. get {
  5234. if ((this._commandCollection == null)) {
  5235. this.InitCommandCollection();
  5236. }
  5237. return this._commandCollection;
  5238. }
  5239. }
  5240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5242. public bool ClearBeforeFill {
  5243. get {
  5244. return this._clearBeforeFill;
  5245. }
  5246. set {
  5247. this._clearBeforeFill = value;
  5248. }
  5249. }
  5250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5252. private void InitAdapter() {
  5253. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5254. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5255. tableMapping.SourceTable = "Table";
  5256. tableMapping.DataSetTable = "Представление";
  5257. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  5258. tableMapping.ColumnMappings.Add("Имя", "Имя");
  5259. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  5260. tableMapping.ColumnMappings.Add("Марка_автомобиля", "Марка_автомобиля");
  5261. tableMapping.ColumnMappings.Add("Госномер_автомобиля", "Госномер_автомобиля");
  5262. tableMapping.ColumnMappings.Add("Дата_начала_проката", "Дата_начала_проката");
  5263. tableMapping.ColumnMappings.Add("Количество_дней_проката", "Количество_дней_проката");
  5264. tableMapping.ColumnMappings.Add("Стоимость_одного_дня_проката", "Стоимость_одного_дня_проката");
  5265. tableMapping.ColumnMappings.Add("Стоимость_проката", "Стоимость_проката");
  5266. this._adapter.TableMappings.Add(tableMapping);
  5267. }
  5268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5270. private void InitConnection() {
  5271. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5272. this._connection.ConnectionString = global::Prokatavto08.Properties.Settings.Default.Prokatavto08ConnectionString;
  5273. }
  5274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5276. private void InitCommandCollection() {
  5277. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5278. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5279. this._commandCollection[0].Connection = this.Connection;
  5280. this._commandCollection[0].CommandText = "SELECT Фамилия, Имя, Отчество, Марка_автомобиля, Госномер_автомобиля, Дата_начала" +
  5281. "_проката, Количество_дней_проката, Стоимость_одного_дня_проката, Стоимость_прока" +
  5282. "та FROM dbo.Представление";
  5283. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5284. }
  5285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5287. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5288. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5289. public virtual int Fill(Prokatavto08DataSet.ПредставлениеDataTable dataTable) {
  5290. this.Adapter.SelectCommand = this.CommandCollection[0];
  5291. if ((this.ClearBeforeFill == true)) {
  5292. dataTable.Clear();
  5293. }
  5294. int returnValue = this.Adapter.Fill(dataTable);
  5295. return returnValue;
  5296. }
  5297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5299. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5300. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5301. public virtual Prokatavto08DataSet.ПредставлениеDataTable GetData() {
  5302. this.Adapter.SelectCommand = this.CommandCollection[0];
  5303. Prokatavto08DataSet.ПредставлениеDataTable dataTable = new Prokatavto08DataSet.ПредставлениеDataTable();
  5304. this.Adapter.Fill(dataTable);
  5305. return dataTable;
  5306. }
  5307. }
  5308. /// <summary>
  5309. ///Represents the connection and commands used to retrieve and save data.
  5310. ///</summary>
  5311. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5312. [global::System.ComponentModel.ToolboxItem(true)]
  5313. [global::System.ComponentModel.DataObjectAttribute(true)]
  5314. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5315. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5316. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5317. public partial class ГосномерTableAdapter : global::System.ComponentModel.Component {
  5318. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5319. private global::System.Data.SqlClient.SqlConnection _connection;
  5320. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5321. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5322. private bool _clearBeforeFill;
  5323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5325. public ГосномерTableAdapter() {
  5326. this.ClearBeforeFill = true;
  5327. }
  5328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5330. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5331. get {
  5332. if ((this._adapter == null)) {
  5333. this.InitAdapter();
  5334. }
  5335. return this._adapter;
  5336. }
  5337. }
  5338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5340. internal global::System.Data.SqlClient.SqlConnection Connection {
  5341. get {
  5342. if ((this._connection == null)) {
  5343. this.InitConnection();
  5344. }
  5345. return this._connection;
  5346. }
  5347. set {
  5348. this._connection = value;
  5349. if ((this.Adapter.InsertCommand != null)) {
  5350. this.Adapter.InsertCommand.Connection = value;
  5351. }
  5352. if ((this.Adapter.DeleteCommand != null)) {
  5353. this.Adapter.DeleteCommand.Connection = value;
  5354. }
  5355. if ((this.Adapter.UpdateCommand != null)) {
  5356. this.Adapter.UpdateCommand.Connection = value;
  5357. }
  5358. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5359. if ((this.CommandCollection[i] != null)) {
  5360. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5361. }
  5362. }
  5363. }
  5364. }
  5365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5367. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5368. get {
  5369. return this._transaction;
  5370. }
  5371. set {
  5372. this._transaction = value;
  5373. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5374. this.CommandCollection[i].Transaction = this._transaction;
  5375. }
  5376. if (((this.Adapter != null)
  5377. && (this.Adapter.DeleteCommand != null))) {
  5378. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5379. }
  5380. if (((this.Adapter != null)
  5381. && (this.Adapter.InsertCommand != null))) {
  5382. this.Adapter.InsertCommand.Transaction = this._transaction;
  5383. }
  5384. if (((this.Adapter != null)
  5385. && (this.Adapter.UpdateCommand != null))) {
  5386. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5387. }
  5388. }
  5389. }
  5390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5392. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5393. get {
  5394. if ((this._commandCollection == null)) {
  5395. this.InitCommandCollection();
  5396. }
  5397. return this._commandCollection;
  5398. }
  5399. }
  5400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5402. public bool ClearBeforeFill {
  5403. get {
  5404. return this._clearBeforeFill;
  5405. }
  5406. set {
  5407. this._clearBeforeFill = value;
  5408. }
  5409. }
  5410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5412. private void InitAdapter() {
  5413. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5414. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5415. tableMapping.SourceTable = "Table";
  5416. tableMapping.DataSetTable = "Госномер";
  5417. tableMapping.ColumnMappings.Add("Госномер_автомобиля", "Госномер_автомобиля");
  5418. this._adapter.TableMappings.Add(tableMapping);
  5419. }
  5420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5422. private void InitConnection() {
  5423. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5424. this._connection.ConnectionString = global::Prokatavto08.Properties.Settings.Default.Prokatavto08ConnectionString;
  5425. }
  5426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5428. private void InitCommandCollection() {
  5429. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5430. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5431. this._commandCollection[0].Connection = this.Connection;
  5432. this._commandCollection[0].CommandText = "dbo.Госномер";
  5433. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  5434. 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, "", "", ""));
  5435. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value1", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5436. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value2", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5437. }
  5438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5440. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5441. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5442. public virtual int Fill(Prokatavto08DataSet.ГосномерDataTable dataTable, global::System.Nullable<global::System.DateTime> Value1, global::System.Nullable<global::System.DateTime> Value2) {
  5443. this.Adapter.SelectCommand = this.CommandCollection[0];
  5444. if ((Value1.HasValue == true)) {
  5445. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(Value1.Value));
  5446. }
  5447. else {
  5448. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5449. }
  5450. if ((Value2.HasValue == true)) {
  5451. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Value2.Value));
  5452. }
  5453. else {
  5454. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  5455. }
  5456. if ((this.ClearBeforeFill == true)) {
  5457. dataTable.Clear();
  5458. }
  5459. int returnValue = this.Adapter.Fill(dataTable);
  5460. return returnValue;
  5461. }
  5462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5464. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5465. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5466. public virtual Prokatavto08DataSet.ГосномерDataTable GetData(global::System.Nullable<global::System.DateTime> Value1, global::System.Nullable<global::System.DateTime> Value2) {
  5467. this.Adapter.SelectCommand = this.CommandCollection[0];
  5468. if ((Value1.HasValue == true)) {
  5469. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(Value1.Value));
  5470. }
  5471. else {
  5472. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5473. }
  5474. if ((Value2.HasValue == true)) {
  5475. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Value2.Value));
  5476. }
  5477. else {
  5478. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  5479. }
  5480. Prokatavto08DataSet.ГосномерDataTable dataTable = new Prokatavto08DataSet.ГосномерDataTable();
  5481. this.Adapter.Fill(dataTable);
  5482. return dataTable;
  5483. }
  5484. }
  5485. /// <summary>
  5486. ///Represents the connection and commands used to retrieve and save data.
  5487. ///</summary>
  5488. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5489. [global::System.ComponentModel.ToolboxItem(true)]
  5490. [global::System.ComponentModel.DataObjectAttribute(true)]
  5491. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5492. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5493. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5494. public partial class Госномер_автомобиляTableAdapter : global::System.ComponentModel.Component {
  5495. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5496. private global::System.Data.SqlClient.SqlConnection _connection;
  5497. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5498. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5499. private bool _clearBeforeFill;
  5500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5502. public Госномер_автомобиляTableAdapter() {
  5503. this.ClearBeforeFill = true;
  5504. }
  5505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5507. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5508. get {
  5509. if ((this._adapter == null)) {
  5510. this.InitAdapter();
  5511. }
  5512. return this._adapter;
  5513. }
  5514. }
  5515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5517. internal global::System.Data.SqlClient.SqlConnection Connection {
  5518. get {
  5519. if ((this._connection == null)) {
  5520. this.InitConnection();
  5521. }
  5522. return this._connection;
  5523. }
  5524. set {
  5525. this._connection = value;
  5526. if ((this.Adapter.InsertCommand != null)) {
  5527. this.Adapter.InsertCommand.Connection = value;
  5528. }
  5529. if ((this.Adapter.DeleteCommand != null)) {
  5530. this.Adapter.DeleteCommand.Connection = value;
  5531. }
  5532. if ((this.Adapter.UpdateCommand != null)) {
  5533. this.Adapter.UpdateCommand.Connection = value;
  5534. }
  5535. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5536. if ((this.CommandCollection[i] != null)) {
  5537. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5538. }
  5539. }
  5540. }
  5541. }
  5542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5544. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5545. get {
  5546. return this._transaction;
  5547. }
  5548. set {
  5549. this._transaction = value;
  5550. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5551. this.CommandCollection[i].Transaction = this._transaction;
  5552. }
  5553. if (((this.Adapter != null)
  5554. && (this.Adapter.DeleteCommand != null))) {
  5555. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5556. }
  5557. if (((this.Adapter != null)
  5558. && (this.Adapter.InsertCommand != null))) {
  5559. this.Adapter.InsertCommand.Transaction = this._transaction;
  5560. }
  5561. if (((this.Adapter != null)
  5562. && (this.Adapter.UpdateCommand != null))) {
  5563. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5564. }
  5565. }
  5566. }
  5567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5569. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5570. get {
  5571. if ((this._commandCollection == null)) {
  5572. this.InitCommandCollection();
  5573. }
  5574. return this._commandCollection;
  5575. }
  5576. }
  5577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5579. public bool ClearBeforeFill {
  5580. get {
  5581. return this._clearBeforeFill;
  5582. }
  5583. set {
  5584. this._clearBeforeFill = value;
  5585. }
  5586. }
  5587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5589. private void InitAdapter() {
  5590. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5591. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5592. tableMapping.SourceTable = "Table";
  5593. tableMapping.DataSetTable = "Госномер_автомобиля";
  5594. tableMapping.ColumnMappings.Add("Госномер_автомобиля", "Госномер_автомобиля");
  5595. this._adapter.TableMappings.Add(tableMapping);
  5596. }
  5597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5599. private void InitConnection() {
  5600. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5601. this._connection.ConnectionString = global::Prokatavto08.Properties.Settings.Default.Prokatavto08ConnectionString;
  5602. }
  5603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5605. private void InitCommandCollection() {
  5606. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5607. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5608. this._commandCollection[0].Connection = this.Connection;
  5609. this._commandCollection[0].CommandText = "dbo.Госномер_автомобиля";
  5610. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  5611. 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, "", "", ""));
  5612. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value1", global::System.Data.SqlDbType.NVarChar, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5613. }
  5614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5616. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5617. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5618. public virtual int Fill(Prokatavto08DataSet.Госномер_автомобиляDataTable dataTable, string Value1) {
  5619. this.Adapter.SelectCommand = this.CommandCollection[0];
  5620. if ((Value1 == null)) {
  5621. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5622. }
  5623. else {
  5624. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Value1));
  5625. }
  5626. if ((this.ClearBeforeFill == true)) {
  5627. dataTable.Clear();
  5628. }
  5629. int returnValue = this.Adapter.Fill(dataTable);
  5630. return returnValue;
  5631. }
  5632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5635. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5636. public virtual Prokatavto08DataSet.Госномер_автомобиляDataTable GetData(string Value1) {
  5637. this.Adapter.SelectCommand = this.CommandCollection[0];
  5638. if ((Value1 == null)) {
  5639. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5640. }
  5641. else {
  5642. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Value1));
  5643. }
  5644. Prokatavto08DataSet.Госномер_автомобиляDataTable dataTable = new Prokatavto08DataSet.Госномер_автомобиляDataTable();
  5645. this.Adapter.Fill(dataTable);
  5646. return dataTable;
  5647. }
  5648. }
  5649. /// <summary>
  5650. ///Represents the connection and commands used to retrieve and save data.
  5651. ///</summary>
  5652. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5653. [global::System.ComponentModel.ToolboxItem(true)]
  5654. [global::System.ComponentModel.DataObjectAttribute(true)]
  5655. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5656. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5657. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5658. public partial class ДатаTableAdapter : global::System.ComponentModel.Component {
  5659. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5660. private global::System.Data.SqlClient.SqlConnection _connection;
  5661. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5662. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5663. private bool _clearBeforeFill;
  5664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5666. public ДатаTableAdapter() {
  5667. this.ClearBeforeFill = true;
  5668. }
  5669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5671. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5672. get {
  5673. if ((this._adapter == null)) {
  5674. this.InitAdapter();
  5675. }
  5676. return this._adapter;
  5677. }
  5678. }
  5679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5681. internal global::System.Data.SqlClient.SqlConnection Connection {
  5682. get {
  5683. if ((this._connection == null)) {
  5684. this.InitConnection();
  5685. }
  5686. return this._connection;
  5687. }
  5688. set {
  5689. this._connection = value;
  5690. if ((this.Adapter.InsertCommand != null)) {
  5691. this.Adapter.InsertCommand.Connection = value;
  5692. }
  5693. if ((this.Adapter.DeleteCommand != null)) {
  5694. this.Adapter.DeleteCommand.Connection = value;
  5695. }
  5696. if ((this.Adapter.UpdateCommand != null)) {
  5697. this.Adapter.UpdateCommand.Connection = value;
  5698. }
  5699. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5700. if ((this.CommandCollection[i] != null)) {
  5701. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5702. }
  5703. }
  5704. }
  5705. }
  5706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5708. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5709. get {
  5710. return this._transaction;
  5711. }
  5712. set {
  5713. this._transaction = value;
  5714. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5715. this.CommandCollection[i].Transaction = this._transaction;
  5716. }
  5717. if (((this.Adapter != null)
  5718. && (this.Adapter.DeleteCommand != null))) {
  5719. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5720. }
  5721. if (((this.Adapter != null)
  5722. && (this.Adapter.InsertCommand != null))) {
  5723. this.Adapter.InsertCommand.Transaction = this._transaction;
  5724. }
  5725. if (((this.Adapter != null)
  5726. && (this.Adapter.UpdateCommand != null))) {
  5727. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5728. }
  5729. }
  5730. }
  5731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5733. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5734. get {
  5735. if ((this._commandCollection == null)) {
  5736. this.InitCommandCollection();
  5737. }
  5738. return this._commandCollection;
  5739. }
  5740. }
  5741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5743. public bool ClearBeforeFill {
  5744. get {
  5745. return this._clearBeforeFill;
  5746. }
  5747. set {
  5748. this._clearBeforeFill = value;
  5749. }
  5750. }
  5751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5753. private void InitAdapter() {
  5754. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5755. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5756. tableMapping.SourceTable = "Table";
  5757. tableMapping.DataSetTable = "Дата";
  5758. tableMapping.ColumnMappings.Add("Дата_начала_проката", "Дата_начала_проката");
  5759. this._adapter.TableMappings.Add(tableMapping);
  5760. }
  5761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5763. private void InitConnection() {
  5764. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5765. this._connection.ConnectionString = global::Prokatavto08.Properties.Settings.Default.Prokatavto08ConnectionString;
  5766. }
  5767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5769. private void InitCommandCollection() {
  5770. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5771. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5772. this._commandCollection[0].Connection = this.Connection;
  5773. this._commandCollection[0].CommandText = "dbo.Дата";
  5774. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  5775. 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, "", "", ""));
  5776. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value1", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5777. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value2", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5778. }
  5779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5781. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5782. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5783. public virtual int Fill(Prokatavto08DataSet.ДатаDataTable dataTable, global::System.Nullable<global::System.DateTime> Value1, global::System.Nullable<global::System.DateTime> Value2) {
  5784. this.Adapter.SelectCommand = this.CommandCollection[0];
  5785. if ((Value1.HasValue == true)) {
  5786. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(Value1.Value));
  5787. }
  5788. else {
  5789. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5790. }
  5791. if ((Value2.HasValue == true)) {
  5792. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Value2.Value));
  5793. }
  5794. else {
  5795. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  5796. }
  5797. if ((this.ClearBeforeFill == true)) {
  5798. dataTable.Clear();
  5799. }
  5800. int returnValue = this.Adapter.Fill(dataTable);
  5801. return returnValue;
  5802. }
  5803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5805. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5806. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5807. public virtual Prokatavto08DataSet.ДатаDataTable GetData(global::System.Nullable<global::System.DateTime> Value1, global::System.Nullable<global::System.DateTime> Value2) {
  5808. this.Adapter.SelectCommand = this.CommandCollection[0];
  5809. if ((Value1.HasValue == true)) {
  5810. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(Value1.Value));
  5811. }
  5812. else {
  5813. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5814. }
  5815. if ((Value2.HasValue == true)) {
  5816. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Value2.Value));
  5817. }
  5818. else {
  5819. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  5820. }
  5821. Prokatavto08DataSet.ДатаDataTable dataTable = new Prokatavto08DataSet.ДатаDataTable();
  5822. this.Adapter.Fill(dataTable);
  5823. return dataTable;
  5824. }
  5825. }
  5826. /// <summary>
  5827. ///Represents the connection and commands used to retrieve and save data.
  5828. ///</summary>
  5829. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5830. [global::System.ComponentModel.ToolboxItem(true)]
  5831. [global::System.ComponentModel.DataObjectAttribute(true)]
  5832. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5833. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5834. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5835. public partial class Дата_началаTableAdapter : global::System.ComponentModel.Component {
  5836. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5837. private global::System.Data.SqlClient.SqlConnection _connection;
  5838. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5839. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5840. private bool _clearBeforeFill;
  5841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5843. public Дата_началаTableAdapter() {
  5844. this.ClearBeforeFill = true;
  5845. }
  5846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5848. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5849. get {
  5850. if ((this._adapter == null)) {
  5851. this.InitAdapter();
  5852. }
  5853. return this._adapter;
  5854. }
  5855. }
  5856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5858. internal global::System.Data.SqlClient.SqlConnection Connection {
  5859. get {
  5860. if ((this._connection == null)) {
  5861. this.InitConnection();
  5862. }
  5863. return this._connection;
  5864. }
  5865. set {
  5866. this._connection = value;
  5867. if ((this.Adapter.InsertCommand != null)) {
  5868. this.Adapter.InsertCommand.Connection = value;
  5869. }
  5870. if ((this.Adapter.DeleteCommand != null)) {
  5871. this.Adapter.DeleteCommand.Connection = value;
  5872. }
  5873. if ((this.Adapter.UpdateCommand != null)) {
  5874. this.Adapter.UpdateCommand.Connection = value;
  5875. }
  5876. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5877. if ((this.CommandCollection[i] != null)) {
  5878. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5879. }
  5880. }
  5881. }
  5882. }
  5883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5885. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5886. get {
  5887. return this._transaction;
  5888. }
  5889. set {
  5890. this._transaction = value;
  5891. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5892. this.CommandCollection[i].Transaction = this._transaction;
  5893. }
  5894. if (((this.Adapter != null)
  5895. && (this.Adapter.DeleteCommand != null))) {
  5896. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5897. }
  5898. if (((this.Adapter != null)
  5899. && (this.Adapter.InsertCommand != null))) {
  5900. this.Adapter.InsertCommand.Transaction = this._transaction;
  5901. }
  5902. if (((this.Adapter != null)
  5903. && (this.Adapter.UpdateCommand != null))) {
  5904. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5905. }
  5906. }
  5907. }
  5908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5910. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5911. get {
  5912. if ((this._commandCollection == null)) {
  5913. this.InitCommandCollection();
  5914. }
  5915. return this._commandCollection;
  5916. }
  5917. }
  5918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5920. public bool ClearBeforeFill {
  5921. get {
  5922. return this._clearBeforeFill;
  5923. }
  5924. set {
  5925. this._clearBeforeFill = value;
  5926. }
  5927. }
  5928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5930. private void InitAdapter() {
  5931. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5932. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5933. tableMapping.SourceTable = "Table";
  5934. tableMapping.DataSetTable = "Дата_начала";
  5935. tableMapping.ColumnMappings.Add("Дата_начала_проката", "Дата_начала_проката");
  5936. this._adapter.TableMappings.Add(tableMapping);
  5937. }
  5938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5940. private void InitConnection() {
  5941. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5942. this._connection.ConnectionString = global::Prokatavto08.Properties.Settings.Default.Prokatavto08ConnectionString;
  5943. }
  5944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5946. private void InitCommandCollection() {
  5947. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5948. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5949. this._commandCollection[0].Connection = this.Connection;
  5950. this._commandCollection[0].CommandText = "dbo.Дата_начала";
  5951. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  5952. 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, "", "", ""));
  5953. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value1", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5954. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value2", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5955. }
  5956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5958. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5959. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5960. public virtual int Fill(Prokatavto08DataSet.Дата_началаDataTable dataTable, global::System.Nullable<global::System.DateTime> Value1, global::System.Nullable<global::System.DateTime> Value2) {
  5961. this.Adapter.SelectCommand = this.CommandCollection[0];
  5962. if ((Value1.HasValue == true)) {
  5963. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(Value1.Value));
  5964. }
  5965. else {
  5966. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5967. }
  5968. if ((Value2.HasValue == true)) {
  5969. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Value2.Value));
  5970. }
  5971. else {
  5972. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  5973. }
  5974. if ((this.ClearBeforeFill == true)) {
  5975. dataTable.Clear();
  5976. }
  5977. int returnValue = this.Adapter.Fill(dataTable);
  5978. return returnValue;
  5979. }
  5980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5982. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5983. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5984. public virtual Prokatavto08DataSet.Дата_началаDataTable GetData(global::System.Nullable<global::System.DateTime> Value1, global::System.Nullable<global::System.DateTime> Value2) {
  5985. this.Adapter.SelectCommand = this.CommandCollection[0];
  5986. if ((Value1.HasValue == true)) {
  5987. this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(Value1.Value));
  5988. }
  5989. else {
  5990. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  5991. }
  5992. if ((Value2.HasValue == true)) {
  5993. this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(Value2.Value));
  5994. }
  5995. else {
  5996. this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
  5997. }
  5998. Prokatavto08DataSet.Дата_началаDataTable dataTable = new Prokatavto08DataSet.Дата_началаDataTable();
  5999. this.Adapter.Fill(dataTable);
  6000. return dataTable;
  6001. }
  6002. }
  6003. /// <summary>
  6004. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  6005. ///</summary>
  6006. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6007. [global::System.ComponentModel.ToolboxItem(true)]
  6008. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  6009. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6010. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  6011. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  6012. private UpdateOrderOption _updateOrder;
  6013. private АвтомобилиTableAdapter _автомобилиTableAdapter;
  6014. private КлиентыTableAdapter _клиентыTableAdapter;
  6015. private ПрокатыTableAdapter _прокатыTableAdapter;
  6016. private bool _backupDataSetBeforeUpdate;
  6017. private global::System.Data.IDbConnection _connection;
  6018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6020. public UpdateOrderOption UpdateOrder {
  6021. get {
  6022. return this._updateOrder;
  6023. }
  6024. set {
  6025. this._updateOrder = value;
  6026. }
  6027. }
  6028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6030. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6031. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6032. "a", "System.Drawing.Design.UITypeEditor")]
  6033. public АвтомобилиTableAdapter АвтомобилиTableAdapter {
  6034. get {
  6035. return this._автомобилиTableAdapter;
  6036. }
  6037. set {
  6038. this._автомобилиTableAdapter = value;
  6039. }
  6040. }
  6041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6043. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6044. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6045. "a", "System.Drawing.Design.UITypeEditor")]
  6046. public КлиентыTableAdapter КлиентыTableAdapter {
  6047. get {
  6048. return this._клиентыTableAdapter;
  6049. }
  6050. set {
  6051. this._клиентыTableAdapter = value;
  6052. }
  6053. }
  6054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6056. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6057. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6058. "a", "System.Drawing.Design.UITypeEditor")]
  6059. public ПрокатыTableAdapter ПрокатыTableAdapter {
  6060. get {
  6061. return this._прокатыTableAdapter;
  6062. }
  6063. set {
  6064. this._прокатыTableAdapter = value;
  6065. }
  6066. }
  6067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6069. public bool BackupDataSetBeforeUpdate {
  6070. get {
  6071. return this._backupDataSetBeforeUpdate;
  6072. }
  6073. set {
  6074. this._backupDataSetBeforeUpdate = value;
  6075. }
  6076. }
  6077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6079. [global::System.ComponentModel.Browsable(false)]
  6080. public global::System.Data.IDbConnection Connection {
  6081. get {
  6082. if ((this._connection != null)) {
  6083. return this._connection;
  6084. }
  6085. if (((this._автомобилиTableAdapter != null)
  6086. && (this._автомобилиTableAdapter.Connection != null))) {
  6087. return this._автомобилиTableAdapter.Connection;
  6088. }
  6089. if (((this._клиентыTableAdapter != null)
  6090. && (this._клиентыTableAdapter.Connection != null))) {
  6091. return this._клиентыTableAdapter.Connection;
  6092. }
  6093. if (((this._прокатыTableAdapter != null)
  6094. && (this._прокатыTableAdapter.Connection != null))) {
  6095. return this._прокатыTableAdapter.Connection;
  6096. }
  6097. return null;
  6098. }
  6099. set {
  6100. this._connection = value;
  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.Browsable(false)]
  6106. public int TableAdapterInstanceCount {
  6107. get {
  6108. int count = 0;
  6109. if ((this._автомобилиTableAdapter != null)) {
  6110. count = (count + 1);
  6111. }
  6112. if ((this._клиентыTableAdapter != null)) {
  6113. count = (count + 1);
  6114. }
  6115. if ((this._прокатыTableAdapter != null)) {
  6116. count = (count + 1);
  6117. }
  6118. return count;
  6119. }
  6120. }
  6121. /// <summary>
  6122. ///Update rows in top-down order.
  6123. ///</summary>
  6124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6126. private int UpdateUpdatedRows(Prokatavto08DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6127. int result = 0;
  6128. if ((this._автомобилиTableAdapter != null)) {
  6129. global::System.Data.DataRow[] updatedRows = dataSet.Автомобили.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6130. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6131. if (((updatedRows != null)
  6132. && (0 < updatedRows.Length))) {
  6133. result = (result + this._автомобилиTableAdapter.Update(updatedRows));
  6134. allChangedRows.AddRange(updatedRows);
  6135. }
  6136. }
  6137. if ((this._клиентыTableAdapter != null)) {
  6138. global::System.Data.DataRow[] updatedRows = dataSet.Клиенты.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6139. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6140. if (((updatedRows != null)
  6141. && (0 < updatedRows.Length))) {
  6142. result = (result + this._клиентыTableAdapter.Update(updatedRows));
  6143. allChangedRows.AddRange(updatedRows);
  6144. }
  6145. }
  6146. if ((this._прокатыTableAdapter != null)) {
  6147. global::System.Data.DataRow[] updatedRows = dataSet.Прокаты.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6148. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6149. if (((updatedRows != null)
  6150. && (0 < updatedRows.Length))) {
  6151. result = (result + this._прокатыTableAdapter.Update(updatedRows));
  6152. allChangedRows.AddRange(updatedRows);
  6153. }
  6154. }
  6155. return result;
  6156. }
  6157. /// <summary>
  6158. ///Insert rows in top-down order.
  6159. ///</summary>
  6160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6162. private int UpdateInsertedRows(Prokatavto08DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6163. int result = 0;
  6164. if ((this._автомобилиTableAdapter != null)) {
  6165. global::System.Data.DataRow[] addedRows = dataSet.Автомобили.Select(null, null, global::System.Data.DataViewRowState.Added);
  6166. if (((addedRows != null)
  6167. && (0 < addedRows.Length))) {
  6168. result = (result + this._автомобилиTableAdapter.Update(addedRows));
  6169. allAddedRows.AddRange(addedRows);
  6170. }
  6171. }
  6172. if ((this._клиентыTableAdapter != null)) {
  6173. global::System.Data.DataRow[] addedRows = dataSet.Клиенты.Select(null, null, global::System.Data.DataViewRowState.Added);
  6174. if (((addedRows != null)
  6175. && (0 < addedRows.Length))) {
  6176. result = (result + this._клиентыTableAdapter.Update(addedRows));
  6177. allAddedRows.AddRange(addedRows);
  6178. }
  6179. }
  6180. if ((this._прокатыTableAdapter != null)) {
  6181. global::System.Data.DataRow[] addedRows = dataSet.Прокаты.Select(null, null, global::System.Data.DataViewRowState.Added);
  6182. if (((addedRows != null)
  6183. && (0 < addedRows.Length))) {
  6184. result = (result + this._прокатыTableAdapter.Update(addedRows));
  6185. allAddedRows.AddRange(addedRows);
  6186. }
  6187. }
  6188. return result;
  6189. }
  6190. /// <summary>
  6191. ///Delete rows in bottom-up order.
  6192. ///</summary>
  6193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6195. private int UpdateDeletedRows(Prokatavto08DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  6196. int result = 0;
  6197. if ((this._прокатыTableAdapter != null)) {
  6198. global::System.Data.DataRow[] deletedRows = dataSet.Прокаты.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6199. if (((deletedRows != null)
  6200. && (0 < deletedRows.Length))) {
  6201. result = (result + this._прокатыTableAdapter.Update(deletedRows));
  6202. allChangedRows.AddRange(deletedRows);
  6203. }
  6204. }
  6205. if ((this._клиентыTableAdapter != null)) {
  6206. global::System.Data.DataRow[] deletedRows = dataSet.Клиенты.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6207. if (((deletedRows != null)
  6208. && (0 < deletedRows.Length))) {
  6209. result = (result + this._клиентыTableAdapter.Update(deletedRows));
  6210. allChangedRows.AddRange(deletedRows);
  6211. }
  6212. }
  6213. if ((this._автомобилиTableAdapter != null)) {
  6214. global::System.Data.DataRow[] deletedRows = dataSet.Автомобили.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6215. if (((deletedRows != null)
  6216. && (0 < deletedRows.Length))) {
  6217. result = (result + this._автомобилиTableAdapter.Update(deletedRows));
  6218. allChangedRows.AddRange(deletedRows);
  6219. }
  6220. }
  6221. return result;
  6222. }
  6223. /// <summary>
  6224. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  6225. ///</summary>
  6226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6228. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6229. if (((updatedRows == null)
  6230. || (updatedRows.Length < 1))) {
  6231. return updatedRows;
  6232. }
  6233. if (((allAddedRows == null)
  6234. || (allAddedRows.Count < 1))) {
  6235. return updatedRows;
  6236. }
  6237. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6238. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  6239. global::System.Data.DataRow row = updatedRows[i];
  6240. if ((allAddedRows.Contains(row) == false)) {
  6241. realUpdatedRows.Add(row);
  6242. }
  6243. }
  6244. return realUpdatedRows.ToArray();
  6245. }
  6246. /// <summary>
  6247. ///Update all changes to the dataset.
  6248. ///</summary>
  6249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6251. public virtual int UpdateAll(Prokatavto08DataSet dataSet) {
  6252. if ((dataSet == null)) {
  6253. throw new global::System.ArgumentNullException("dataSet");
  6254. }
  6255. if ((dataSet.HasChanges() == false)) {
  6256. return 0;
  6257. }
  6258. if (((this._автомобилиTableAdapter != null)
  6259. && (this.MatchTableAdapterConnection(this._автомобилиTableAdapter.Connection) == false))) {
  6260. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6261. "r, должны использовать одинаковую строку подключения.");
  6262. }
  6263. if (((this._клиентыTableAdapter != null)
  6264. && (this.MatchTableAdapterConnection(this._клиентыTableAdapter.Connection) == false))) {
  6265. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6266. "r, должны использовать одинаковую строку подключения.");
  6267. }
  6268. if (((this._прокатыTableAdapter != null)
  6269. && (this.MatchTableAdapterConnection(this._прокатыTableAdapter.Connection) == false))) {
  6270. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6271. "r, должны использовать одинаковую строку подключения.");
  6272. }
  6273. global::System.Data.IDbConnection workConnection = this.Connection;
  6274. if ((workConnection == null)) {
  6275. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  6276. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  6277. }
  6278. bool workConnOpened = false;
  6279. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  6280. == global::System.Data.ConnectionState.Broken)) {
  6281. workConnection.Close();
  6282. }
  6283. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  6284. workConnection.Open();
  6285. workConnOpened = true;
  6286. }
  6287. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  6288. if ((workTransaction == null)) {
  6289. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  6290. "и или текущее состояние не позволяет начать транзакцию.");
  6291. }
  6292. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6293. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6294. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  6295. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  6296. int result = 0;
  6297. global::System.Data.DataSet backupDataSet = null;
  6298. if (this.BackupDataSetBeforeUpdate) {
  6299. backupDataSet = new global::System.Data.DataSet();
  6300. backupDataSet.Merge(dataSet);
  6301. }
  6302. try {
  6303. // ---- Prepare for update -----------
  6304. //
  6305. if ((this._автомобилиTableAdapter != null)) {
  6306. revertConnections.Add(this._автомобилиTableAdapter, this._автомобилиTableAdapter.Connection);
  6307. this._автомобилиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6308. this._автомобилиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6309. if (this._автомобилиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6310. this._автомобилиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6311. adaptersWithAcceptChangesDuringUpdate.Add(this._автомобилиTableAdapter.Adapter);
  6312. }
  6313. }
  6314. if ((this._клиентыTableAdapter != null)) {
  6315. revertConnections.Add(this._клиентыTableAdapter, this._клиентыTableAdapter.Connection);
  6316. this._клиентыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6317. this._клиентыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6318. if (this._клиентыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6319. this._клиентыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6320. adaptersWithAcceptChangesDuringUpdate.Add(this._клиентыTableAdapter.Adapter);
  6321. }
  6322. }
  6323. if ((this._прокатыTableAdapter != null)) {
  6324. revertConnections.Add(this._прокатыTableAdapter, this._прокатыTableAdapter.Connection);
  6325. this._прокатыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6326. this._прокатыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6327. if (this._прокатыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6328. this._прокатыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6329. adaptersWithAcceptChangesDuringUpdate.Add(this._прокатыTableAdapter.Adapter);
  6330. }
  6331. }
  6332. //
  6333. //---- Perform updates -----------
  6334. //
  6335. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  6336. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6337. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6338. }
  6339. else {
  6340. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6341. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6342. }
  6343. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  6344. //
  6345. //---- Commit updates -----------
  6346. //
  6347. workTransaction.Commit();
  6348. if ((0 < allAddedRows.Count)) {
  6349. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6350. allAddedRows.CopyTo(rows);
  6351. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6352. global::System.Data.DataRow row = rows[i];
  6353. row.AcceptChanges();
  6354. }
  6355. }
  6356. if ((0 < allChangedRows.Count)) {
  6357. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  6358. allChangedRows.CopyTo(rows);
  6359. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6360. global::System.Data.DataRow row = rows[i];
  6361. row.AcceptChanges();
  6362. }
  6363. }
  6364. }
  6365. catch (global::System.Exception ex) {
  6366. workTransaction.Rollback();
  6367. // ---- Restore the dataset -----------
  6368. if (this.BackupDataSetBeforeUpdate) {
  6369. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  6370. dataSet.Clear();
  6371. dataSet.Merge(backupDataSet);
  6372. }
  6373. else {
  6374. if ((0 < allAddedRows.Count)) {
  6375. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6376. allAddedRows.CopyTo(rows);
  6377. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6378. global::System.Data.DataRow row = rows[i];
  6379. row.AcceptChanges();
  6380. row.SetAdded();
  6381. }
  6382. }
  6383. }
  6384. throw ex;
  6385. }
  6386. finally {
  6387. if (workConnOpened) {
  6388. workConnection.Close();
  6389. }
  6390. if ((this._автомобилиTableAdapter != null)) {
  6391. this._автомобилиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._автомобилиTableAdapter]));
  6392. this._автомобилиTableAdapter.Transaction = null;
  6393. }
  6394. if ((this._клиентыTableAdapter != null)) {
  6395. this._клиентыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._клиентыTableAdapter]));
  6396. this._клиентыTableAdapter.Transaction = null;
  6397. }
  6398. if ((this._прокатыTableAdapter != null)) {
  6399. this._прокатыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._прокатыTableAdapter]));
  6400. this._прокатыTableAdapter.Transaction = null;
  6401. }
  6402. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  6403. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  6404. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  6405. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  6406. global::System.Data.Common.DataAdapter adapter = adapters[i];
  6407. adapter.AcceptChangesDuringUpdate = true;
  6408. }
  6409. }
  6410. }
  6411. return result;
  6412. }
  6413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6415. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  6416. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  6417. }
  6418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6420. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  6421. if ((this._connection != null)) {
  6422. return true;
  6423. }
  6424. if (((this.Connection == null)
  6425. || (inputConnection == null))) {
  6426. return true;
  6427. }
  6428. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  6429. return true;
  6430. }
  6431. return false;
  6432. }
  6433. /// <summary>
  6434. ///Update Order Option
  6435. ///</summary>
  6436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6437. public enum UpdateOrderOption {
  6438. InsertUpdateDelete = 0,
  6439. UpdateInsertDelete = 1,
  6440. }
  6441. /// <summary>
  6442. ///Used to sort self-referenced table's rows
  6443. ///</summary>
  6444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6445. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  6446. private global::System.Data.DataRelation _relation;
  6447. private int _childFirst;
  6448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6450. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  6451. this._relation = relation;
  6452. if (childFirst) {
  6453. this._childFirst = -1;
  6454. }
  6455. else {
  6456. this._childFirst = 1;
  6457. }
  6458. }
  6459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6461. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  6462. global::System.Diagnostics.Debug.Assert((row != null));
  6463. global::System.Data.DataRow root = row;
  6464. distance = 0;
  6465. 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>();
  6466. traversedRows[row] = row;
  6467. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  6468. for (
  6469. ; ((parent != null)
  6470. && (traversedRows.ContainsKey(parent) == false));
  6471. ) {
  6472. distance = (distance + 1);
  6473. root = parent;
  6474. traversedRows[parent] = parent;
  6475. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  6476. }
  6477. if ((distance == 0)) {
  6478. traversedRows.Clear();
  6479. traversedRows[row] = row;
  6480. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  6481. for (
  6482. ; ((parent != null)
  6483. && (traversedRows.ContainsKey(parent) == false));
  6484. ) {
  6485. distance = (distance + 1);
  6486. root = parent;
  6487. traversedRows[parent] = parent;
  6488. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  6489. }
  6490. }
  6491. return root;
  6492. }
  6493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6495. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  6496. if (object.ReferenceEquals(row1, row2)) {
  6497. return 0;
  6498. }
  6499. if ((row1 == null)) {
  6500. return -1;
  6501. }
  6502. if ((row2 == null)) {
  6503. return 1;
  6504. }
  6505. int distance1 = 0;
  6506. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  6507. int distance2 = 0;
  6508. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  6509. if (object.ReferenceEquals(root1, root2)) {
  6510. return (this._childFirst * distance1.CompareTo(distance2));
  6511. }
  6512. else {
  6513. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  6514. && (root2.Table != null)));
  6515. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  6516. return -1;
  6517. }
  6518. else {
  6519. return 1;
  6520. }
  6521. }
  6522. }
  6523. }
  6524. }
  6525. }
  6526. #pragma warning restore 1591