KazarinKafeDataSet.Designer.cs 779 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace KafeKazarin03 {
  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("KazarinKafeDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class KazarinKafeDataSet : global::System.Data.DataSet {
  22. private CooksDataTable tableCooks;
  23. private EmployeesDataTable tableEmployees;
  24. private OrderedDishesDataTable tableOrderedDishes;
  25. private OrdersDataTable tableOrders;
  26. private OrderStatusDataTable tableOrderStatus;
  27. private PaymentMethodDataTable tablePaymentMethod;
  28. private ProductDataTable tableProduct;
  29. private RolesDataTable tableRoles;
  30. private TablesDataTable tableTables;
  31. private WaitersDataTable tableWaiters;
  32. private WorkShiftDataTable tableWorkShift;
  33. private СategoriesDataTable tableСategories;
  34. private СменыDataTable tableСмены;
  35. private global::System.Data.DataRelation relationFK_Cooks_Employees1;
  36. private global::System.Data.DataRelation relationFK_Employees_Roles;
  37. private global::System.Data.DataRelation relationFK_OrderedDishes_Orders;
  38. private global::System.Data.DataRelation relationFK_OrderedDishes_Product;
  39. private global::System.Data.DataRelation relationFK_Orders_OrderStatus;
  40. private global::System.Data.DataRelation relationFK_Orders_PaymentMethod;
  41. private global::System.Data.DataRelation relationFK_Orders_Tables;
  42. private global::System.Data.DataRelation relationFK_Orders_WorkShift;
  43. private global::System.Data.DataRelation relationFK_Product_Сategories;
  44. private global::System.Data.DataRelation relationFK_Waiters_Employees1;
  45. private global::System.Data.DataRelation relationFK_WorkShift_Cooks;
  46. private global::System.Data.DataRelation relationFK_WorkShift_Waiters;
  47. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  48. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  49. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  50. public KazarinKafeDataSet() {
  51. this.BeginInit();
  52. this.InitClass();
  53. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  54. base.Tables.CollectionChanged += schemaChangedHandler;
  55. base.Relations.CollectionChanged += schemaChangedHandler;
  56. this.EndInit();
  57. }
  58. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  59. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  60. protected KazarinKafeDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  61. base(info, context, false) {
  62. if ((this.IsBinarySerialized(info, context) == true)) {
  63. this.InitVars(false);
  64. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  65. this.Tables.CollectionChanged += schemaChangedHandler1;
  66. this.Relations.CollectionChanged += schemaChangedHandler1;
  67. return;
  68. }
  69. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  70. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  71. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  72. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  73. if ((ds.Tables["Cooks"] != null)) {
  74. base.Tables.Add(new CooksDataTable(ds.Tables["Cooks"]));
  75. }
  76. if ((ds.Tables["Employees"] != null)) {
  77. base.Tables.Add(new EmployeesDataTable(ds.Tables["Employees"]));
  78. }
  79. if ((ds.Tables["OrderedDishes"] != null)) {
  80. base.Tables.Add(new OrderedDishesDataTable(ds.Tables["OrderedDishes"]));
  81. }
  82. if ((ds.Tables["Orders"] != null)) {
  83. base.Tables.Add(new OrdersDataTable(ds.Tables["Orders"]));
  84. }
  85. if ((ds.Tables["OrderStatus"] != null)) {
  86. base.Tables.Add(new OrderStatusDataTable(ds.Tables["OrderStatus"]));
  87. }
  88. if ((ds.Tables["PaymentMethod"] != null)) {
  89. base.Tables.Add(new PaymentMethodDataTable(ds.Tables["PaymentMethod"]));
  90. }
  91. if ((ds.Tables["Product"] != null)) {
  92. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  93. }
  94. if ((ds.Tables["Roles"] != null)) {
  95. base.Tables.Add(new RolesDataTable(ds.Tables["Roles"]));
  96. }
  97. if ((ds.Tables["Tables"] != null)) {
  98. base.Tables.Add(new TablesDataTable(ds.Tables["Tables"]));
  99. }
  100. if ((ds.Tables["Waiters"] != null)) {
  101. base.Tables.Add(new WaitersDataTable(ds.Tables["Waiters"]));
  102. }
  103. if ((ds.Tables["WorkShift"] != null)) {
  104. base.Tables.Add(new WorkShiftDataTable(ds.Tables["WorkShift"]));
  105. }
  106. if ((ds.Tables["Сategories"] != null)) {
  107. base.Tables.Add(new СategoriesDataTable(ds.Tables["Сategories"]));
  108. }
  109. if ((ds.Tables["Смены"] != null)) {
  110. base.Tables.Add(new СменыDataTable(ds.Tables["Смены"]));
  111. }
  112. this.DataSetName = ds.DataSetName;
  113. this.Prefix = ds.Prefix;
  114. this.Namespace = ds.Namespace;
  115. this.Locale = ds.Locale;
  116. this.CaseSensitive = ds.CaseSensitive;
  117. this.EnforceConstraints = ds.EnforceConstraints;
  118. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  119. this.InitVars();
  120. }
  121. else {
  122. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  123. }
  124. this.GetSerializationData(info, context);
  125. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  126. base.Tables.CollectionChanged += schemaChangedHandler;
  127. this.Relations.CollectionChanged += schemaChangedHandler;
  128. }
  129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  131. [global::System.ComponentModel.Browsable(false)]
  132. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  133. public CooksDataTable Cooks {
  134. get {
  135. return this.tableCooks;
  136. }
  137. }
  138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  140. [global::System.ComponentModel.Browsable(false)]
  141. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  142. public EmployeesDataTable Employees {
  143. get {
  144. return this.tableEmployees;
  145. }
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  149. [global::System.ComponentModel.Browsable(false)]
  150. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  151. public OrderedDishesDataTable OrderedDishes {
  152. get {
  153. return this.tableOrderedDishes;
  154. }
  155. }
  156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  158. [global::System.ComponentModel.Browsable(false)]
  159. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  160. public OrdersDataTable Orders {
  161. get {
  162. return this.tableOrders;
  163. }
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  167. [global::System.ComponentModel.Browsable(false)]
  168. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  169. public OrderStatusDataTable OrderStatus {
  170. get {
  171. return this.tableOrderStatus;
  172. }
  173. }
  174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  176. [global::System.ComponentModel.Browsable(false)]
  177. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  178. public PaymentMethodDataTable PaymentMethod {
  179. get {
  180. return this.tablePaymentMethod;
  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.Browsable(false)]
  186. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  187. public ProductDataTable Product {
  188. get {
  189. return this.tableProduct;
  190. }
  191. }
  192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  194. [global::System.ComponentModel.Browsable(false)]
  195. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  196. public RolesDataTable Roles {
  197. get {
  198. return this.tableRoles;
  199. }
  200. }
  201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  203. [global::System.ComponentModel.Browsable(false)]
  204. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  205. public TablesDataTable _Tables {
  206. get {
  207. return this.tableTables;
  208. }
  209. }
  210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  212. [global::System.ComponentModel.Browsable(false)]
  213. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  214. public WaitersDataTable Waiters {
  215. get {
  216. return this.tableWaiters;
  217. }
  218. }
  219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  221. [global::System.ComponentModel.Browsable(false)]
  222. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  223. public WorkShiftDataTable WorkShift {
  224. get {
  225. return this.tableWorkShift;
  226. }
  227. }
  228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  230. [global::System.ComponentModel.Browsable(false)]
  231. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  232. public СategoriesDataTable Сategories {
  233. get {
  234. return this.tableСategories;
  235. }
  236. }
  237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  239. [global::System.ComponentModel.Browsable(false)]
  240. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  241. public СменыDataTable Смены {
  242. get {
  243. return this.tableСмены;
  244. }
  245. }
  246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  248. [global::System.ComponentModel.BrowsableAttribute(true)]
  249. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  250. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  251. get {
  252. return this._schemaSerializationMode;
  253. }
  254. set {
  255. this._schemaSerializationMode = value;
  256. }
  257. }
  258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  260. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  261. public new global::System.Data.DataTableCollection Tables {
  262. get {
  263. return base.Tables;
  264. }
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  268. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  269. public new global::System.Data.DataRelationCollection Relations {
  270. get {
  271. return base.Relations;
  272. }
  273. }
  274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  276. protected override void InitializeDerivedDataSet() {
  277. this.BeginInit();
  278. this.InitClass();
  279. this.EndInit();
  280. }
  281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  283. public override global::System.Data.DataSet Clone() {
  284. KazarinKafeDataSet cln = ((KazarinKafeDataSet)(base.Clone()));
  285. cln.InitVars();
  286. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  287. return cln;
  288. }
  289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  291. protected override bool ShouldSerializeTables() {
  292. return false;
  293. }
  294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  296. protected override bool ShouldSerializeRelations() {
  297. return false;
  298. }
  299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  301. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  302. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  303. this.Reset();
  304. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  305. ds.ReadXml(reader);
  306. if ((ds.Tables["Cooks"] != null)) {
  307. base.Tables.Add(new CooksDataTable(ds.Tables["Cooks"]));
  308. }
  309. if ((ds.Tables["Employees"] != null)) {
  310. base.Tables.Add(new EmployeesDataTable(ds.Tables["Employees"]));
  311. }
  312. if ((ds.Tables["OrderedDishes"] != null)) {
  313. base.Tables.Add(new OrderedDishesDataTable(ds.Tables["OrderedDishes"]));
  314. }
  315. if ((ds.Tables["Orders"] != null)) {
  316. base.Tables.Add(new OrdersDataTable(ds.Tables["Orders"]));
  317. }
  318. if ((ds.Tables["OrderStatus"] != null)) {
  319. base.Tables.Add(new OrderStatusDataTable(ds.Tables["OrderStatus"]));
  320. }
  321. if ((ds.Tables["PaymentMethod"] != null)) {
  322. base.Tables.Add(new PaymentMethodDataTable(ds.Tables["PaymentMethod"]));
  323. }
  324. if ((ds.Tables["Product"] != null)) {
  325. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  326. }
  327. if ((ds.Tables["Roles"] != null)) {
  328. base.Tables.Add(new RolesDataTable(ds.Tables["Roles"]));
  329. }
  330. if ((ds.Tables["Tables"] != null)) {
  331. base.Tables.Add(new TablesDataTable(ds.Tables["Tables"]));
  332. }
  333. if ((ds.Tables["Waiters"] != null)) {
  334. base.Tables.Add(new WaitersDataTable(ds.Tables["Waiters"]));
  335. }
  336. if ((ds.Tables["WorkShift"] != null)) {
  337. base.Tables.Add(new WorkShiftDataTable(ds.Tables["WorkShift"]));
  338. }
  339. if ((ds.Tables["Сategories"] != null)) {
  340. base.Tables.Add(new СategoriesDataTable(ds.Tables["Сategories"]));
  341. }
  342. if ((ds.Tables["Смены"] != null)) {
  343. base.Tables.Add(new СменыDataTable(ds.Tables["Смены"]));
  344. }
  345. this.DataSetName = ds.DataSetName;
  346. this.Prefix = ds.Prefix;
  347. this.Namespace = ds.Namespace;
  348. this.Locale = ds.Locale;
  349. this.CaseSensitive = ds.CaseSensitive;
  350. this.EnforceConstraints = ds.EnforceConstraints;
  351. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  352. this.InitVars();
  353. }
  354. else {
  355. this.ReadXml(reader);
  356. this.InitVars();
  357. }
  358. }
  359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  361. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  362. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  363. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  364. stream.Position = 0;
  365. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  366. }
  367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  369. internal void InitVars() {
  370. this.InitVars(true);
  371. }
  372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  374. internal void InitVars(bool initTable) {
  375. this.tableCooks = ((CooksDataTable)(base.Tables["Cooks"]));
  376. if ((initTable == true)) {
  377. if ((this.tableCooks != null)) {
  378. this.tableCooks.InitVars();
  379. }
  380. }
  381. this.tableEmployees = ((EmployeesDataTable)(base.Tables["Employees"]));
  382. if ((initTable == true)) {
  383. if ((this.tableEmployees != null)) {
  384. this.tableEmployees.InitVars();
  385. }
  386. }
  387. this.tableOrderedDishes = ((OrderedDishesDataTable)(base.Tables["OrderedDishes"]));
  388. if ((initTable == true)) {
  389. if ((this.tableOrderedDishes != null)) {
  390. this.tableOrderedDishes.InitVars();
  391. }
  392. }
  393. this.tableOrders = ((OrdersDataTable)(base.Tables["Orders"]));
  394. if ((initTable == true)) {
  395. if ((this.tableOrders != null)) {
  396. this.tableOrders.InitVars();
  397. }
  398. }
  399. this.tableOrderStatus = ((OrderStatusDataTable)(base.Tables["OrderStatus"]));
  400. if ((initTable == true)) {
  401. if ((this.tableOrderStatus != null)) {
  402. this.tableOrderStatus.InitVars();
  403. }
  404. }
  405. this.tablePaymentMethod = ((PaymentMethodDataTable)(base.Tables["PaymentMethod"]));
  406. if ((initTable == true)) {
  407. if ((this.tablePaymentMethod != null)) {
  408. this.tablePaymentMethod.InitVars();
  409. }
  410. }
  411. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  412. if ((initTable == true)) {
  413. if ((this.tableProduct != null)) {
  414. this.tableProduct.InitVars();
  415. }
  416. }
  417. this.tableRoles = ((RolesDataTable)(base.Tables["Roles"]));
  418. if ((initTable == true)) {
  419. if ((this.tableRoles != null)) {
  420. this.tableRoles.InitVars();
  421. }
  422. }
  423. this.tableTables = ((TablesDataTable)(base.Tables["Tables"]));
  424. if ((initTable == true)) {
  425. if ((this.tableTables != null)) {
  426. this.tableTables.InitVars();
  427. }
  428. }
  429. this.tableWaiters = ((WaitersDataTable)(base.Tables["Waiters"]));
  430. if ((initTable == true)) {
  431. if ((this.tableWaiters != null)) {
  432. this.tableWaiters.InitVars();
  433. }
  434. }
  435. this.tableWorkShift = ((WorkShiftDataTable)(base.Tables["WorkShift"]));
  436. if ((initTable == true)) {
  437. if ((this.tableWorkShift != null)) {
  438. this.tableWorkShift.InitVars();
  439. }
  440. }
  441. this.tableСategories = ((СategoriesDataTable)(base.Tables["Сategories"]));
  442. if ((initTable == true)) {
  443. if ((this.tableСategories != null)) {
  444. this.tableСategories.InitVars();
  445. }
  446. }
  447. this.tableСмены = ((СменыDataTable)(base.Tables["Смены"]));
  448. if ((initTable == true)) {
  449. if ((this.tableСмены != null)) {
  450. this.tableСмены.InitVars();
  451. }
  452. }
  453. this.relationFK_Cooks_Employees1 = this.Relations["FK_Cooks_Employees1"];
  454. this.relationFK_Employees_Roles = this.Relations["FK_Employees_Roles"];
  455. this.relationFK_OrderedDishes_Orders = this.Relations["FK_OrderedDishes_Orders"];
  456. this.relationFK_OrderedDishes_Product = this.Relations["FK_OrderedDishes_Product"];
  457. this.relationFK_Orders_OrderStatus = this.Relations["FK_Orders_OrderStatus"];
  458. this.relationFK_Orders_PaymentMethod = this.Relations["FK_Orders_PaymentMethod"];
  459. this.relationFK_Orders_Tables = this.Relations["FK_Orders_Tables"];
  460. this.relationFK_Orders_WorkShift = this.Relations["FK_Orders_WorkShift"];
  461. this.relationFK_Product_Сategories = this.Relations["FK_Product_Сategories"];
  462. this.relationFK_Waiters_Employees1 = this.Relations["FK_Waiters_Employees1"];
  463. this.relationFK_WorkShift_Cooks = this.Relations["FK_WorkShift_Cooks"];
  464. this.relationFK_WorkShift_Waiters = this.Relations["FK_WorkShift_Waiters"];
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  468. private void InitClass() {
  469. this.DataSetName = "KazarinKafeDataSet";
  470. this.Prefix = "";
  471. this.Namespace = "http://tempuri.org/KazarinKafeDataSet.xsd";
  472. this.EnforceConstraints = true;
  473. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  474. this.tableCooks = new CooksDataTable();
  475. base.Tables.Add(this.tableCooks);
  476. this.tableEmployees = new EmployeesDataTable();
  477. base.Tables.Add(this.tableEmployees);
  478. this.tableOrderedDishes = new OrderedDishesDataTable();
  479. base.Tables.Add(this.tableOrderedDishes);
  480. this.tableOrders = new OrdersDataTable();
  481. base.Tables.Add(this.tableOrders);
  482. this.tableOrderStatus = new OrderStatusDataTable();
  483. base.Tables.Add(this.tableOrderStatus);
  484. this.tablePaymentMethod = new PaymentMethodDataTable();
  485. base.Tables.Add(this.tablePaymentMethod);
  486. this.tableProduct = new ProductDataTable();
  487. base.Tables.Add(this.tableProduct);
  488. this.tableRoles = new RolesDataTable();
  489. base.Tables.Add(this.tableRoles);
  490. this.tableTables = new TablesDataTable();
  491. base.Tables.Add(this.tableTables);
  492. this.tableWaiters = new WaitersDataTable();
  493. base.Tables.Add(this.tableWaiters);
  494. this.tableWorkShift = new WorkShiftDataTable();
  495. base.Tables.Add(this.tableWorkShift);
  496. this.tableСategories = new СategoriesDataTable();
  497. base.Tables.Add(this.tableСategories);
  498. this.tableСмены = new СменыDataTable();
  499. base.Tables.Add(this.tableСмены);
  500. this.relationFK_Cooks_Employees1 = new global::System.Data.DataRelation("FK_Cooks_Employees1", new global::System.Data.DataColumn[] {
  501. this.tableEmployees.IDColumn}, new global::System.Data.DataColumn[] {
  502. this.tableCooks.IDПовараColumn}, false);
  503. this.Relations.Add(this.relationFK_Cooks_Employees1);
  504. this.relationFK_Employees_Roles = new global::System.Data.DataRelation("FK_Employees_Roles", new global::System.Data.DataColumn[] {
  505. this.tableRoles.IDColumn}, new global::System.Data.DataColumn[] {
  506. this.tableEmployees.РольColumn}, false);
  507. this.Relations.Add(this.relationFK_Employees_Roles);
  508. this.relationFK_OrderedDishes_Orders = new global::System.Data.DataRelation("FK_OrderedDishes_Orders", new global::System.Data.DataColumn[] {
  509. this.tableOrders.IDColumn}, new global::System.Data.DataColumn[] {
  510. this.tableOrderedDishes.IDЗаказаColumn}, false);
  511. this.Relations.Add(this.relationFK_OrderedDishes_Orders);
  512. this.relationFK_OrderedDishes_Product = new global::System.Data.DataRelation("FK_OrderedDishes_Product", new global::System.Data.DataColumn[] {
  513. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  514. this.tableOrderedDishes.IDПродуктColumn}, false);
  515. this.Relations.Add(this.relationFK_OrderedDishes_Product);
  516. this.relationFK_Orders_OrderStatus = new global::System.Data.DataRelation("FK_Orders_OrderStatus", new global::System.Data.DataColumn[] {
  517. this.tableOrderStatus.IDColumn}, new global::System.Data.DataColumn[] {
  518. this.tableOrders.СтатусЗаказаColumn}, false);
  519. this.Relations.Add(this.relationFK_Orders_OrderStatus);
  520. this.relationFK_Orders_PaymentMethod = new global::System.Data.DataRelation("FK_Orders_PaymentMethod", new global::System.Data.DataColumn[] {
  521. this.tablePaymentMethod.IDColumn}, new global::System.Data.DataColumn[] {
  522. this.tableOrders.СпособОплатыColumn}, false);
  523. this.Relations.Add(this.relationFK_Orders_PaymentMethod);
  524. this.relationFK_Orders_Tables = new global::System.Data.DataRelation("FK_Orders_Tables", new global::System.Data.DataColumn[] {
  525. this.tableTables.IDColumn}, new global::System.Data.DataColumn[] {
  526. this.tableOrders.СтоликColumn}, false);
  527. this.Relations.Add(this.relationFK_Orders_Tables);
  528. this.relationFK_Orders_WorkShift = new global::System.Data.DataRelation("FK_Orders_WorkShift", new global::System.Data.DataColumn[] {
  529. this.tableWorkShift.IDColumn}, new global::System.Data.DataColumn[] {
  530. this.tableOrders.IDСменыColumn}, false);
  531. this.Relations.Add(this.relationFK_Orders_WorkShift);
  532. this.relationFK_Product_Сategories = new global::System.Data.DataRelation("FK_Product_Сategories", new global::System.Data.DataColumn[] {
  533. this.tableСategories.IDColumn}, new global::System.Data.DataColumn[] {
  534. this.tableProduct.КатегорияColumn}, false);
  535. this.Relations.Add(this.relationFK_Product_Сategories);
  536. this.relationFK_Waiters_Employees1 = new global::System.Data.DataRelation("FK_Waiters_Employees1", new global::System.Data.DataColumn[] {
  537. this.tableEmployees.IDColumn}, new global::System.Data.DataColumn[] {
  538. this.tableWaiters.IDОфициантаColumn}, false);
  539. this.Relations.Add(this.relationFK_Waiters_Employees1);
  540. this.relationFK_WorkShift_Cooks = new global::System.Data.DataRelation("FK_WorkShift_Cooks", new global::System.Data.DataColumn[] {
  541. this.tableCooks.IDПовараColumn}, new global::System.Data.DataColumn[] {
  542. this.tableWorkShift.IDПовараColumn}, false);
  543. this.Relations.Add(this.relationFK_WorkShift_Cooks);
  544. this.relationFK_WorkShift_Waiters = new global::System.Data.DataRelation("FK_WorkShift_Waiters", new global::System.Data.DataColumn[] {
  545. this.tableWaiters.IDОфициантаColumn}, new global::System.Data.DataColumn[] {
  546. this.tableWorkShift.IDОфициантаColumn}, false);
  547. this.Relations.Add(this.relationFK_WorkShift_Waiters);
  548. }
  549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  551. private bool ShouldSerializeCooks() {
  552. return false;
  553. }
  554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  556. private bool ShouldSerializeEmployees() {
  557. return false;
  558. }
  559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  561. private bool ShouldSerializeOrderedDishes() {
  562. return false;
  563. }
  564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  566. private bool ShouldSerializeOrders() {
  567. return false;
  568. }
  569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  571. private bool ShouldSerializeOrderStatus() {
  572. return false;
  573. }
  574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  576. private bool ShouldSerializePaymentMethod() {
  577. return false;
  578. }
  579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  581. private bool ShouldSerializeProduct() {
  582. return false;
  583. }
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  586. private bool ShouldSerializeRoles() {
  587. return false;
  588. }
  589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  591. private bool ShouldSerialize_Tables() {
  592. return false;
  593. }
  594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  596. private bool ShouldSerializeWaiters() {
  597. return false;
  598. }
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  601. private bool ShouldSerializeWorkShift() {
  602. return false;
  603. }
  604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  606. private bool ShouldSerializeСategories() {
  607. return false;
  608. }
  609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  611. private bool ShouldSerializeСмены() {
  612. return false;
  613. }
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  616. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  617. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  618. this.InitVars();
  619. }
  620. }
  621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  623. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  624. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  625. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  626. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  627. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  628. any.Namespace = ds.Namespace;
  629. sequence.Items.Add(any);
  630. type.Particle = sequence;
  631. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  632. if (xs.Contains(dsSchema.TargetNamespace)) {
  633. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  634. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  635. try {
  636. global::System.Xml.Schema.XmlSchema schema = null;
  637. dsSchema.Write(s1);
  638. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  639. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  640. s2.SetLength(0);
  641. schema.Write(s2);
  642. if ((s1.Length == s2.Length)) {
  643. s1.Position = 0;
  644. s2.Position = 0;
  645. for (; ((s1.Position != s1.Length)
  646. && (s1.ReadByte() == s2.ReadByte())); ) {
  647. ;
  648. }
  649. if ((s1.Position == s1.Length)) {
  650. return type;
  651. }
  652. }
  653. }
  654. }
  655. finally {
  656. if ((s1 != null)) {
  657. s1.Close();
  658. }
  659. if ((s2 != null)) {
  660. s2.Close();
  661. }
  662. }
  663. }
  664. xs.Add(dsSchema);
  665. return type;
  666. }
  667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  668. public delegate void CooksRowChangeEventHandler(object sender, CooksRowChangeEvent e);
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  670. public delegate void EmployeesRowChangeEventHandler(object sender, EmployeesRowChangeEvent e);
  671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  672. public delegate void OrderedDishesRowChangeEventHandler(object sender, OrderedDishesRowChangeEvent e);
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  674. public delegate void OrdersRowChangeEventHandler(object sender, OrdersRowChangeEvent e);
  675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  676. public delegate void OrderStatusRowChangeEventHandler(object sender, OrderStatusRowChangeEvent e);
  677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  678. public delegate void PaymentMethodRowChangeEventHandler(object sender, PaymentMethodRowChangeEvent e);
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  682. public delegate void RolesRowChangeEventHandler(object sender, RolesRowChangeEvent e);
  683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  684. public delegate void TablesRowChangeEventHandler(object sender, TablesRowChangeEvent e);
  685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  686. public delegate void WaitersRowChangeEventHandler(object sender, WaitersRowChangeEvent e);
  687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  688. public delegate void WorkShiftRowChangeEventHandler(object sender, WorkShiftRowChangeEvent e);
  689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  690. public delegate void СategoriesRowChangeEventHandler(object sender, СategoriesRowChangeEvent e);
  691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  692. public delegate void СменыRowChangeEventHandler(object sender, СменыRowChangeEvent e);
  693. /// <summary>
  694. ///Represents the strongly named DataTable class.
  695. ///</summary>
  696. [global::System.Serializable()]
  697. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  698. public partial class CooksDataTable : global::System.Data.TypedTableBase<CooksRow> {
  699. private global::System.Data.DataColumn columnIDПовара;
  700. private global::System.Data.DataColumn columnФамилия;
  701. private global::System.Data.DataColumn columnИмя;
  702. private global::System.Data.DataColumn columnОтчество;
  703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  705. public CooksDataTable() {
  706. this.TableName = "Cooks";
  707. this.BeginInit();
  708. this.InitClass();
  709. this.EndInit();
  710. }
  711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  713. internal CooksDataTable(global::System.Data.DataTable table) {
  714. this.TableName = table.TableName;
  715. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  716. this.CaseSensitive = table.CaseSensitive;
  717. }
  718. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  719. this.Locale = table.Locale;
  720. }
  721. if ((table.Namespace != table.DataSet.Namespace)) {
  722. this.Namespace = table.Namespace;
  723. }
  724. this.Prefix = table.Prefix;
  725. this.MinimumCapacity = table.MinimumCapacity;
  726. }
  727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  729. protected CooksDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  730. base(info, context) {
  731. this.InitVars();
  732. }
  733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  735. public global::System.Data.DataColumn IDПовараColumn {
  736. get {
  737. return this.columnIDПовара;
  738. }
  739. }
  740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  742. public global::System.Data.DataColumn ФамилияColumn {
  743. get {
  744. return this.columnФамилия;
  745. }
  746. }
  747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  749. public global::System.Data.DataColumn ИмяColumn {
  750. get {
  751. return this.columnИмя;
  752. }
  753. }
  754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  756. public global::System.Data.DataColumn ОтчествоColumn {
  757. get {
  758. return this.columnОтчество;
  759. }
  760. }
  761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  763. [global::System.ComponentModel.Browsable(false)]
  764. public int Count {
  765. get {
  766. return this.Rows.Count;
  767. }
  768. }
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. public CooksRow this[int index] {
  772. get {
  773. return ((CooksRow)(this.Rows[index]));
  774. }
  775. }
  776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  777. public event CooksRowChangeEventHandler CooksRowChanging;
  778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  779. public event CooksRowChangeEventHandler CooksRowChanged;
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  781. public event CooksRowChangeEventHandler CooksRowDeleting;
  782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  783. public event CooksRowChangeEventHandler CooksRowDeleted;
  784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  786. public void AddCooksRow(CooksRow row) {
  787. this.Rows.Add(row);
  788. }
  789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  791. public CooksRow AddCooksRow(EmployeesRow parentEmployeesRowByFK_Cooks_Employees1, string Фамилия, string Имя, string Отчество) {
  792. CooksRow rowCooksRow = ((CooksRow)(this.NewRow()));
  793. object[] columnValuesArray = new object[] {
  794. null,
  795. Фамилия,
  796. Имя,
  797. Отчество};
  798. if ((parentEmployeesRowByFK_Cooks_Employees1 != null)) {
  799. columnValuesArray[0] = parentEmployeesRowByFK_Cooks_Employees1[0];
  800. }
  801. rowCooksRow.ItemArray = columnValuesArray;
  802. this.Rows.Add(rowCooksRow);
  803. return rowCooksRow;
  804. }
  805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  807. public CooksRow FindByIDПовара(int IDПовара) {
  808. return ((CooksRow)(this.Rows.Find(new object[] {
  809. IDПовара})));
  810. }
  811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  813. public override global::System.Data.DataTable Clone() {
  814. CooksDataTable cln = ((CooksDataTable)(base.Clone()));
  815. cln.InitVars();
  816. return cln;
  817. }
  818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  820. protected override global::System.Data.DataTable CreateInstance() {
  821. return new CooksDataTable();
  822. }
  823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  825. internal void InitVars() {
  826. this.columnIDПовара = base.Columns["IDПовара"];
  827. this.columnФамилия = base.Columns["Фамилия"];
  828. this.columnИмя = base.Columns["Имя"];
  829. this.columnОтчество = base.Columns["Отчество"];
  830. }
  831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  833. private void InitClass() {
  834. this.columnIDПовара = new global::System.Data.DataColumn("IDПовара", typeof(int), null, global::System.Data.MappingType.Element);
  835. base.Columns.Add(this.columnIDПовара);
  836. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  837. base.Columns.Add(this.columnФамилия);
  838. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  839. base.Columns.Add(this.columnИмя);
  840. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  841. base.Columns.Add(this.columnОтчество);
  842. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  843. this.columnIDПовара}, true));
  844. this.columnIDПовара.AllowDBNull = false;
  845. this.columnIDПовара.Unique = true;
  846. this.columnФамилия.MaxLength = 50;
  847. this.columnИмя.MaxLength = 50;
  848. this.columnОтчество.MaxLength = 50;
  849. }
  850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  852. public CooksRow NewCooksRow() {
  853. return ((CooksRow)(this.NewRow()));
  854. }
  855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  857. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  858. return new CooksRow(builder);
  859. }
  860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  862. protected override global::System.Type GetRowType() {
  863. return typeof(CooksRow);
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  867. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  868. base.OnRowChanged(e);
  869. if ((this.CooksRowChanged != null)) {
  870. this.CooksRowChanged(this, new CooksRowChangeEvent(((CooksRow)(e.Row)), e.Action));
  871. }
  872. }
  873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  875. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  876. base.OnRowChanging(e);
  877. if ((this.CooksRowChanging != null)) {
  878. this.CooksRowChanging(this, new CooksRowChangeEvent(((CooksRow)(e.Row)), e.Action));
  879. }
  880. }
  881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  883. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  884. base.OnRowDeleted(e);
  885. if ((this.CooksRowDeleted != null)) {
  886. this.CooksRowDeleted(this, new CooksRowChangeEvent(((CooksRow)(e.Row)), e.Action));
  887. }
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  891. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  892. base.OnRowDeleting(e);
  893. if ((this.CooksRowDeleting != null)) {
  894. this.CooksRowDeleting(this, new CooksRowChangeEvent(((CooksRow)(e.Row)), e.Action));
  895. }
  896. }
  897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  899. public void RemoveCooksRow(CooksRow row) {
  900. this.Rows.Remove(row);
  901. }
  902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  904. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  905. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  906. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  907. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  908. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  909. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  910. any1.MinOccurs = new decimal(0);
  911. any1.MaxOccurs = decimal.MaxValue;
  912. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  913. sequence.Items.Add(any1);
  914. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  915. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  916. any2.MinOccurs = new decimal(1);
  917. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  918. sequence.Items.Add(any2);
  919. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  920. attribute1.Name = "namespace";
  921. attribute1.FixedValue = ds.Namespace;
  922. type.Attributes.Add(attribute1);
  923. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  924. attribute2.Name = "tableTypeName";
  925. attribute2.FixedValue = "CooksDataTable";
  926. type.Attributes.Add(attribute2);
  927. type.Particle = sequence;
  928. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  929. if (xs.Contains(dsSchema.TargetNamespace)) {
  930. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  931. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  932. try {
  933. global::System.Xml.Schema.XmlSchema schema = null;
  934. dsSchema.Write(s1);
  935. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  936. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  937. s2.SetLength(0);
  938. schema.Write(s2);
  939. if ((s1.Length == s2.Length)) {
  940. s1.Position = 0;
  941. s2.Position = 0;
  942. for (; ((s1.Position != s1.Length)
  943. && (s1.ReadByte() == s2.ReadByte())); ) {
  944. ;
  945. }
  946. if ((s1.Position == s1.Length)) {
  947. return type;
  948. }
  949. }
  950. }
  951. }
  952. finally {
  953. if ((s1 != null)) {
  954. s1.Close();
  955. }
  956. if ((s2 != null)) {
  957. s2.Close();
  958. }
  959. }
  960. }
  961. xs.Add(dsSchema);
  962. return type;
  963. }
  964. }
  965. /// <summary>
  966. ///Represents the strongly named DataTable class.
  967. ///</summary>
  968. [global::System.Serializable()]
  969. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  970. public partial class EmployeesDataTable : global::System.Data.TypedTableBase<EmployeesRow> {
  971. private global::System.Data.DataColumn columnID;
  972. private global::System.Data.DataColumn columnРоль;
  973. private global::System.Data.DataColumn columnДатаРождения;
  974. private global::System.Data.DataColumn columnТелефон;
  975. private global::System.Data.DataColumn columnАдрес;
  976. private global::System.Data.DataColumn columnUsername;
  977. private global::System.Data.DataColumn columnPassword;
  978. private global::System.Data.DataColumn columnСтатус;
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  981. public EmployeesDataTable() {
  982. this.TableName = "Employees";
  983. this.BeginInit();
  984. this.InitClass();
  985. this.EndInit();
  986. }
  987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  989. internal EmployeesDataTable(global::System.Data.DataTable table) {
  990. this.TableName = table.TableName;
  991. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  992. this.CaseSensitive = table.CaseSensitive;
  993. }
  994. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  995. this.Locale = table.Locale;
  996. }
  997. if ((table.Namespace != table.DataSet.Namespace)) {
  998. this.Namespace = table.Namespace;
  999. }
  1000. this.Prefix = table.Prefix;
  1001. this.MinimumCapacity = table.MinimumCapacity;
  1002. }
  1003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1005. protected EmployeesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1006. base(info, context) {
  1007. this.InitVars();
  1008. }
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1011. public global::System.Data.DataColumn IDColumn {
  1012. get {
  1013. return this.columnID;
  1014. }
  1015. }
  1016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1018. public global::System.Data.DataColumn РольColumn {
  1019. get {
  1020. return this.columnРоль;
  1021. }
  1022. }
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1025. public global::System.Data.DataColumn ДатаРожденияColumn {
  1026. get {
  1027. return this.columnДатаРождения;
  1028. }
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1032. public global::System.Data.DataColumn ТелефонColumn {
  1033. get {
  1034. return this.columnТелефон;
  1035. }
  1036. }
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1039. public global::System.Data.DataColumn АдресColumn {
  1040. get {
  1041. return this.columnАдрес;
  1042. }
  1043. }
  1044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1046. public global::System.Data.DataColumn UsernameColumn {
  1047. get {
  1048. return this.columnUsername;
  1049. }
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. public global::System.Data.DataColumn PasswordColumn {
  1054. get {
  1055. return this.columnPassword;
  1056. }
  1057. }
  1058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1060. public global::System.Data.DataColumn СтатусColumn {
  1061. get {
  1062. return this.columnСтатус;
  1063. }
  1064. }
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1067. [global::System.ComponentModel.Browsable(false)]
  1068. public int Count {
  1069. get {
  1070. return this.Rows.Count;
  1071. }
  1072. }
  1073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1075. public EmployeesRow this[int index] {
  1076. get {
  1077. return ((EmployeesRow)(this.Rows[index]));
  1078. }
  1079. }
  1080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1081. public event EmployeesRowChangeEventHandler EmployeesRowChanging;
  1082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1083. public event EmployeesRowChangeEventHandler EmployeesRowChanged;
  1084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1085. public event EmployeesRowChangeEventHandler EmployeesRowDeleting;
  1086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1087. public event EmployeesRowChangeEventHandler EmployeesRowDeleted;
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1090. public void AddEmployeesRow(EmployeesRow row) {
  1091. this.Rows.Add(row);
  1092. }
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1095. public EmployeesRow AddEmployeesRow(RolesRow parentRolesRowByFK_Employees_Roles, System.DateTime ДатаРождения, string Телефон, string Адрес, string Username, string Password, int Статус) {
  1096. EmployeesRow rowEmployeesRow = ((EmployeesRow)(this.NewRow()));
  1097. object[] columnValuesArray = new object[] {
  1098. null,
  1099. null,
  1100. ДатаРождения,
  1101. Телефон,
  1102. Адрес,
  1103. Username,
  1104. Password,
  1105. Статус};
  1106. if ((parentRolesRowByFK_Employees_Roles != null)) {
  1107. columnValuesArray[1] = parentRolesRowByFK_Employees_Roles[0];
  1108. }
  1109. rowEmployeesRow.ItemArray = columnValuesArray;
  1110. this.Rows.Add(rowEmployeesRow);
  1111. return rowEmployeesRow;
  1112. }
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1115. public EmployeesRow FindByID(int ID) {
  1116. return ((EmployeesRow)(this.Rows.Find(new object[] {
  1117. ID})));
  1118. }
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1121. public override global::System.Data.DataTable Clone() {
  1122. EmployeesDataTable cln = ((EmployeesDataTable)(base.Clone()));
  1123. cln.InitVars();
  1124. return cln;
  1125. }
  1126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1128. protected override global::System.Data.DataTable CreateInstance() {
  1129. return new EmployeesDataTable();
  1130. }
  1131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1133. internal void InitVars() {
  1134. this.columnID = base.Columns["ID"];
  1135. this.columnРоль = base.Columns["Роль"];
  1136. this.columnДатаРождения = base.Columns["ДатаРождения"];
  1137. this.columnТелефон = base.Columns["Телефон"];
  1138. this.columnАдрес = base.Columns["Адрес"];
  1139. this.columnUsername = base.Columns["Username"];
  1140. this.columnPassword = base.Columns["Password"];
  1141. this.columnСтатус = base.Columns["Статус"];
  1142. }
  1143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1145. private void InitClass() {
  1146. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1147. base.Columns.Add(this.columnID);
  1148. this.columnРоль = new global::System.Data.DataColumn("Роль", typeof(int), null, global::System.Data.MappingType.Element);
  1149. base.Columns.Add(this.columnРоль);
  1150. this.columnДатаРождения = new global::System.Data.DataColumn("ДатаРождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1151. base.Columns.Add(this.columnДатаРождения);
  1152. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1153. base.Columns.Add(this.columnТелефон);
  1154. this.columnАдрес = new global::System.Data.DataColumn("Адрес", typeof(string), null, global::System.Data.MappingType.Element);
  1155. base.Columns.Add(this.columnАдрес);
  1156. this.columnUsername = new global::System.Data.DataColumn("Username", typeof(string), null, global::System.Data.MappingType.Element);
  1157. base.Columns.Add(this.columnUsername);
  1158. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  1159. base.Columns.Add(this.columnPassword);
  1160. this.columnСтатус = new global::System.Data.DataColumn("Статус", typeof(int), null, global::System.Data.MappingType.Element);
  1161. base.Columns.Add(this.columnСтатус);
  1162. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1163. this.columnID}, true));
  1164. this.columnID.AutoIncrement = true;
  1165. this.columnID.AutoIncrementSeed = -1;
  1166. this.columnID.AutoIncrementStep = -1;
  1167. this.columnID.AllowDBNull = false;
  1168. this.columnID.ReadOnly = true;
  1169. this.columnID.Unique = true;
  1170. this.columnТелефон.MaxLength = 20;
  1171. this.columnАдрес.MaxLength = 100;
  1172. this.columnUsername.MaxLength = 50;
  1173. this.columnPassword.MaxLength = 50;
  1174. }
  1175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1177. public EmployeesRow NewEmployeesRow() {
  1178. return ((EmployeesRow)(this.NewRow()));
  1179. }
  1180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1182. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1183. return new EmployeesRow(builder);
  1184. }
  1185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1187. protected override global::System.Type GetRowType() {
  1188. return typeof(EmployeesRow);
  1189. }
  1190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1192. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1193. base.OnRowChanged(e);
  1194. if ((this.EmployeesRowChanged != null)) {
  1195. this.EmployeesRowChanged(this, new EmployeesRowChangeEvent(((EmployeesRow)(e.Row)), e.Action));
  1196. }
  1197. }
  1198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1200. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1201. base.OnRowChanging(e);
  1202. if ((this.EmployeesRowChanging != null)) {
  1203. this.EmployeesRowChanging(this, new EmployeesRowChangeEvent(((EmployeesRow)(e.Row)), e.Action));
  1204. }
  1205. }
  1206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1208. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1209. base.OnRowDeleted(e);
  1210. if ((this.EmployeesRowDeleted != null)) {
  1211. this.EmployeesRowDeleted(this, new EmployeesRowChangeEvent(((EmployeesRow)(e.Row)), e.Action));
  1212. }
  1213. }
  1214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1216. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1217. base.OnRowDeleting(e);
  1218. if ((this.EmployeesRowDeleting != null)) {
  1219. this.EmployeesRowDeleting(this, new EmployeesRowChangeEvent(((EmployeesRow)(e.Row)), e.Action));
  1220. }
  1221. }
  1222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1224. public void RemoveEmployeesRow(EmployeesRow row) {
  1225. this.Rows.Remove(row);
  1226. }
  1227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1229. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1230. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1231. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1232. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  1233. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1234. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1235. any1.MinOccurs = new decimal(0);
  1236. any1.MaxOccurs = decimal.MaxValue;
  1237. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1238. sequence.Items.Add(any1);
  1239. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1240. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1241. any2.MinOccurs = new decimal(1);
  1242. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1243. sequence.Items.Add(any2);
  1244. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1245. attribute1.Name = "namespace";
  1246. attribute1.FixedValue = ds.Namespace;
  1247. type.Attributes.Add(attribute1);
  1248. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1249. attribute2.Name = "tableTypeName";
  1250. attribute2.FixedValue = "EmployeesDataTable";
  1251. type.Attributes.Add(attribute2);
  1252. type.Particle = sequence;
  1253. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1254. if (xs.Contains(dsSchema.TargetNamespace)) {
  1255. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1256. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1257. try {
  1258. global::System.Xml.Schema.XmlSchema schema = null;
  1259. dsSchema.Write(s1);
  1260. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1261. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1262. s2.SetLength(0);
  1263. schema.Write(s2);
  1264. if ((s1.Length == s2.Length)) {
  1265. s1.Position = 0;
  1266. s2.Position = 0;
  1267. for (; ((s1.Position != s1.Length)
  1268. && (s1.ReadByte() == s2.ReadByte())); ) {
  1269. ;
  1270. }
  1271. if ((s1.Position == s1.Length)) {
  1272. return type;
  1273. }
  1274. }
  1275. }
  1276. }
  1277. finally {
  1278. if ((s1 != null)) {
  1279. s1.Close();
  1280. }
  1281. if ((s2 != null)) {
  1282. s2.Close();
  1283. }
  1284. }
  1285. }
  1286. xs.Add(dsSchema);
  1287. return type;
  1288. }
  1289. }
  1290. /// <summary>
  1291. ///Represents the strongly named DataTable class.
  1292. ///</summary>
  1293. [global::System.Serializable()]
  1294. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1295. public partial class OrderedDishesDataTable : global::System.Data.TypedTableBase<OrderedDishesRow> {
  1296. private global::System.Data.DataColumn columnID;
  1297. private global::System.Data.DataColumn columnIDЗаказа;
  1298. private global::System.Data.DataColumn columnIDПродукт;
  1299. private global::System.Data.DataColumn columnКоличество;
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1302. public OrderedDishesDataTable() {
  1303. this.TableName = "OrderedDishes";
  1304. this.BeginInit();
  1305. this.InitClass();
  1306. this.EndInit();
  1307. }
  1308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1310. internal OrderedDishesDataTable(global::System.Data.DataTable table) {
  1311. this.TableName = table.TableName;
  1312. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1313. this.CaseSensitive = table.CaseSensitive;
  1314. }
  1315. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1316. this.Locale = table.Locale;
  1317. }
  1318. if ((table.Namespace != table.DataSet.Namespace)) {
  1319. this.Namespace = table.Namespace;
  1320. }
  1321. this.Prefix = table.Prefix;
  1322. this.MinimumCapacity = table.MinimumCapacity;
  1323. }
  1324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1326. protected OrderedDishesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1327. base(info, context) {
  1328. this.InitVars();
  1329. }
  1330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1332. public global::System.Data.DataColumn IDColumn {
  1333. get {
  1334. return this.columnID;
  1335. }
  1336. }
  1337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1339. public global::System.Data.DataColumn IDЗаказаColumn {
  1340. get {
  1341. return this.columnIDЗаказа;
  1342. }
  1343. }
  1344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1346. public global::System.Data.DataColumn IDПродуктColumn {
  1347. get {
  1348. return this.columnIDПродукт;
  1349. }
  1350. }
  1351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1353. public global::System.Data.DataColumn КоличествоColumn {
  1354. get {
  1355. return this.columnКоличество;
  1356. }
  1357. }
  1358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1360. [global::System.ComponentModel.Browsable(false)]
  1361. public int Count {
  1362. get {
  1363. return this.Rows.Count;
  1364. }
  1365. }
  1366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1368. public OrderedDishesRow this[int index] {
  1369. get {
  1370. return ((OrderedDishesRow)(this.Rows[index]));
  1371. }
  1372. }
  1373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1374. public event OrderedDishesRowChangeEventHandler OrderedDishesRowChanging;
  1375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1376. public event OrderedDishesRowChangeEventHandler OrderedDishesRowChanged;
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1378. public event OrderedDishesRowChangeEventHandler OrderedDishesRowDeleting;
  1379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1380. public event OrderedDishesRowChangeEventHandler OrderedDishesRowDeleted;
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1383. public void AddOrderedDishesRow(OrderedDishesRow row) {
  1384. this.Rows.Add(row);
  1385. }
  1386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1388. public OrderedDishesRow AddOrderedDishesRow(OrdersRow parentOrdersRowByFK_OrderedDishes_Orders, ProductRow parentProductRowByFK_OrderedDishes_Product, int Количество) {
  1389. OrderedDishesRow rowOrderedDishesRow = ((OrderedDishesRow)(this.NewRow()));
  1390. object[] columnValuesArray = new object[] {
  1391. null,
  1392. null,
  1393. null,
  1394. Количество};
  1395. if ((parentOrdersRowByFK_OrderedDishes_Orders != null)) {
  1396. columnValuesArray[1] = parentOrdersRowByFK_OrderedDishes_Orders[0];
  1397. }
  1398. if ((parentProductRowByFK_OrderedDishes_Product != null)) {
  1399. columnValuesArray[2] = parentProductRowByFK_OrderedDishes_Product[0];
  1400. }
  1401. rowOrderedDishesRow.ItemArray = columnValuesArray;
  1402. this.Rows.Add(rowOrderedDishesRow);
  1403. return rowOrderedDishesRow;
  1404. }
  1405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1407. public OrderedDishesRow FindByID(int ID) {
  1408. return ((OrderedDishesRow)(this.Rows.Find(new object[] {
  1409. ID})));
  1410. }
  1411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1413. public override global::System.Data.DataTable Clone() {
  1414. OrderedDishesDataTable cln = ((OrderedDishesDataTable)(base.Clone()));
  1415. cln.InitVars();
  1416. return cln;
  1417. }
  1418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1420. protected override global::System.Data.DataTable CreateInstance() {
  1421. return new OrderedDishesDataTable();
  1422. }
  1423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1425. internal void InitVars() {
  1426. this.columnID = base.Columns["ID"];
  1427. this.columnIDЗаказа = base.Columns["IDЗаказа"];
  1428. this.columnIDПродукт = base.Columns["IDПродукт"];
  1429. this.columnКоличество = base.Columns["Количество"];
  1430. }
  1431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1433. private void InitClass() {
  1434. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1435. base.Columns.Add(this.columnID);
  1436. this.columnIDЗаказа = new global::System.Data.DataColumn("IDЗаказа", typeof(int), null, global::System.Data.MappingType.Element);
  1437. base.Columns.Add(this.columnIDЗаказа);
  1438. this.columnIDПродукт = new global::System.Data.DataColumn("IDПродукт", typeof(int), null, global::System.Data.MappingType.Element);
  1439. base.Columns.Add(this.columnIDПродукт);
  1440. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  1441. base.Columns.Add(this.columnКоличество);
  1442. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1443. this.columnID}, true));
  1444. this.columnID.AutoIncrement = true;
  1445. this.columnID.AutoIncrementSeed = -1;
  1446. this.columnID.AutoIncrementStep = -1;
  1447. this.columnID.AllowDBNull = false;
  1448. this.columnID.ReadOnly = true;
  1449. this.columnID.Unique = true;
  1450. }
  1451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1453. public OrderedDishesRow NewOrderedDishesRow() {
  1454. return ((OrderedDishesRow)(this.NewRow()));
  1455. }
  1456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1458. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1459. return new OrderedDishesRow(builder);
  1460. }
  1461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1463. protected override global::System.Type GetRowType() {
  1464. return typeof(OrderedDishesRow);
  1465. }
  1466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1468. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1469. base.OnRowChanged(e);
  1470. if ((this.OrderedDishesRowChanged != null)) {
  1471. this.OrderedDishesRowChanged(this, new OrderedDishesRowChangeEvent(((OrderedDishesRow)(e.Row)), e.Action));
  1472. }
  1473. }
  1474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1476. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1477. base.OnRowChanging(e);
  1478. if ((this.OrderedDishesRowChanging != null)) {
  1479. this.OrderedDishesRowChanging(this, new OrderedDishesRowChangeEvent(((OrderedDishesRow)(e.Row)), e.Action));
  1480. }
  1481. }
  1482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1484. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1485. base.OnRowDeleted(e);
  1486. if ((this.OrderedDishesRowDeleted != null)) {
  1487. this.OrderedDishesRowDeleted(this, new OrderedDishesRowChangeEvent(((OrderedDishesRow)(e.Row)), e.Action));
  1488. }
  1489. }
  1490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1492. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1493. base.OnRowDeleting(e);
  1494. if ((this.OrderedDishesRowDeleting != null)) {
  1495. this.OrderedDishesRowDeleting(this, new OrderedDishesRowChangeEvent(((OrderedDishesRow)(e.Row)), e.Action));
  1496. }
  1497. }
  1498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1500. public void RemoveOrderedDishesRow(OrderedDishesRow row) {
  1501. this.Rows.Remove(row);
  1502. }
  1503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1505. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1506. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1507. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1508. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  1509. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1510. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1511. any1.MinOccurs = new decimal(0);
  1512. any1.MaxOccurs = decimal.MaxValue;
  1513. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1514. sequence.Items.Add(any1);
  1515. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1516. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1517. any2.MinOccurs = new decimal(1);
  1518. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1519. sequence.Items.Add(any2);
  1520. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1521. attribute1.Name = "namespace";
  1522. attribute1.FixedValue = ds.Namespace;
  1523. type.Attributes.Add(attribute1);
  1524. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1525. attribute2.Name = "tableTypeName";
  1526. attribute2.FixedValue = "OrderedDishesDataTable";
  1527. type.Attributes.Add(attribute2);
  1528. type.Particle = sequence;
  1529. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1530. if (xs.Contains(dsSchema.TargetNamespace)) {
  1531. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1532. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1533. try {
  1534. global::System.Xml.Schema.XmlSchema schema = null;
  1535. dsSchema.Write(s1);
  1536. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1537. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1538. s2.SetLength(0);
  1539. schema.Write(s2);
  1540. if ((s1.Length == s2.Length)) {
  1541. s1.Position = 0;
  1542. s2.Position = 0;
  1543. for (; ((s1.Position != s1.Length)
  1544. && (s1.ReadByte() == s2.ReadByte())); ) {
  1545. ;
  1546. }
  1547. if ((s1.Position == s1.Length)) {
  1548. return type;
  1549. }
  1550. }
  1551. }
  1552. }
  1553. finally {
  1554. if ((s1 != null)) {
  1555. s1.Close();
  1556. }
  1557. if ((s2 != null)) {
  1558. s2.Close();
  1559. }
  1560. }
  1561. }
  1562. xs.Add(dsSchema);
  1563. return type;
  1564. }
  1565. }
  1566. /// <summary>
  1567. ///Represents the strongly named DataTable class.
  1568. ///</summary>
  1569. [global::System.Serializable()]
  1570. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1571. public partial class OrdersDataTable : global::System.Data.TypedTableBase<OrdersRow> {
  1572. private global::System.Data.DataColumn columnID;
  1573. private global::System.Data.DataColumn columnДатаЗаказа;
  1574. private global::System.Data.DataColumn columnСтатусЗаказа;
  1575. private global::System.Data.DataColumn columnСпособОплаты;
  1576. private global::System.Data.DataColumn columnСтоимость;
  1577. private global::System.Data.DataColumn columnСтолик;
  1578. private global::System.Data.DataColumn columnIDСмены;
  1579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1581. public OrdersDataTable() {
  1582. this.TableName = "Orders";
  1583. this.BeginInit();
  1584. this.InitClass();
  1585. this.EndInit();
  1586. }
  1587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1589. internal OrdersDataTable(global::System.Data.DataTable table) {
  1590. this.TableName = table.TableName;
  1591. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1592. this.CaseSensitive = table.CaseSensitive;
  1593. }
  1594. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1595. this.Locale = table.Locale;
  1596. }
  1597. if ((table.Namespace != table.DataSet.Namespace)) {
  1598. this.Namespace = table.Namespace;
  1599. }
  1600. this.Prefix = table.Prefix;
  1601. this.MinimumCapacity = table.MinimumCapacity;
  1602. }
  1603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1605. protected OrdersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1606. base(info, context) {
  1607. this.InitVars();
  1608. }
  1609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1611. public global::System.Data.DataColumn IDColumn {
  1612. get {
  1613. return this.columnID;
  1614. }
  1615. }
  1616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1618. public global::System.Data.DataColumn ДатаЗаказаColumn {
  1619. get {
  1620. return this.columnДатаЗаказа;
  1621. }
  1622. }
  1623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1625. public global::System.Data.DataColumn СтатусЗаказаColumn {
  1626. get {
  1627. return this.columnСтатусЗаказа;
  1628. }
  1629. }
  1630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1632. public global::System.Data.DataColumn СпособОплатыColumn {
  1633. get {
  1634. return this.columnСпособОплаты;
  1635. }
  1636. }
  1637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1639. public global::System.Data.DataColumn СтоимостьColumn {
  1640. get {
  1641. return this.columnСтоимость;
  1642. }
  1643. }
  1644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1646. public global::System.Data.DataColumn СтоликColumn {
  1647. get {
  1648. return this.columnСтолик;
  1649. }
  1650. }
  1651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1653. public global::System.Data.DataColumn IDСменыColumn {
  1654. get {
  1655. return this.columnIDСмены;
  1656. }
  1657. }
  1658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1660. [global::System.ComponentModel.Browsable(false)]
  1661. public int Count {
  1662. get {
  1663. return this.Rows.Count;
  1664. }
  1665. }
  1666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1668. public OrdersRow this[int index] {
  1669. get {
  1670. return ((OrdersRow)(this.Rows[index]));
  1671. }
  1672. }
  1673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1674. public event OrdersRowChangeEventHandler OrdersRowChanging;
  1675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1676. public event OrdersRowChangeEventHandler OrdersRowChanged;
  1677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1678. public event OrdersRowChangeEventHandler OrdersRowDeleting;
  1679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1680. public event OrdersRowChangeEventHandler OrdersRowDeleted;
  1681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1683. public void AddOrdersRow(OrdersRow row) {
  1684. this.Rows.Add(row);
  1685. }
  1686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1688. public OrdersRow AddOrdersRow(System.DateTime ДатаЗаказа, OrderStatusRow parentOrderStatusRowByFK_Orders_OrderStatus, PaymentMethodRow parentPaymentMethodRowByFK_Orders_PaymentMethod, decimal Стоимость, TablesRow parentTablesRowByFK_Orders_Tables, WorkShiftRow parentWorkShiftRowByFK_Orders_WorkShift) {
  1689. OrdersRow rowOrdersRow = ((OrdersRow)(this.NewRow()));
  1690. object[] columnValuesArray = new object[] {
  1691. null,
  1692. ДатаЗаказа,
  1693. null,
  1694. null,
  1695. Стоимость,
  1696. null,
  1697. null};
  1698. if ((parentOrderStatusRowByFK_Orders_OrderStatus != null)) {
  1699. columnValuesArray[2] = parentOrderStatusRowByFK_Orders_OrderStatus[0];
  1700. }
  1701. if ((parentPaymentMethodRowByFK_Orders_PaymentMethod != null)) {
  1702. columnValuesArray[3] = parentPaymentMethodRowByFK_Orders_PaymentMethod[0];
  1703. }
  1704. if ((parentTablesRowByFK_Orders_Tables != null)) {
  1705. columnValuesArray[5] = parentTablesRowByFK_Orders_Tables[0];
  1706. }
  1707. if ((parentWorkShiftRowByFK_Orders_WorkShift != null)) {
  1708. columnValuesArray[6] = parentWorkShiftRowByFK_Orders_WorkShift[0];
  1709. }
  1710. rowOrdersRow.ItemArray = columnValuesArray;
  1711. this.Rows.Add(rowOrdersRow);
  1712. return rowOrdersRow;
  1713. }
  1714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1716. public OrdersRow FindByID(int ID) {
  1717. return ((OrdersRow)(this.Rows.Find(new object[] {
  1718. ID})));
  1719. }
  1720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1722. public override global::System.Data.DataTable Clone() {
  1723. OrdersDataTable cln = ((OrdersDataTable)(base.Clone()));
  1724. cln.InitVars();
  1725. return cln;
  1726. }
  1727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1729. protected override global::System.Data.DataTable CreateInstance() {
  1730. return new OrdersDataTable();
  1731. }
  1732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1734. internal void InitVars() {
  1735. this.columnID = base.Columns["ID"];
  1736. this.columnДатаЗаказа = base.Columns["ДатаЗаказа"];
  1737. this.columnСтатусЗаказа = base.Columns["СтатусЗаказа"];
  1738. this.columnСпособОплаты = base.Columns["СпособОплаты"];
  1739. this.columnСтоимость = base.Columns["Стоимость"];
  1740. this.columnСтолик = base.Columns["Столик"];
  1741. this.columnIDСмены = base.Columns["IDСмены"];
  1742. }
  1743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1745. private void InitClass() {
  1746. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1747. base.Columns.Add(this.columnID);
  1748. this.columnДатаЗаказа = new global::System.Data.DataColumn("ДатаЗаказа", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1749. base.Columns.Add(this.columnДатаЗаказа);
  1750. this.columnСтатусЗаказа = new global::System.Data.DataColumn("СтатусЗаказа", typeof(int), null, global::System.Data.MappingType.Element);
  1751. base.Columns.Add(this.columnСтатусЗаказа);
  1752. this.columnСпособОплаты = new global::System.Data.DataColumn("СпособОплаты", typeof(int), null, global::System.Data.MappingType.Element);
  1753. base.Columns.Add(this.columnСпособОплаты);
  1754. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(decimal), null, global::System.Data.MappingType.Element);
  1755. base.Columns.Add(this.columnСтоимость);
  1756. this.columnСтолик = new global::System.Data.DataColumn("Столик", typeof(int), null, global::System.Data.MappingType.Element);
  1757. base.Columns.Add(this.columnСтолик);
  1758. this.columnIDСмены = new global::System.Data.DataColumn("IDСмены", typeof(int), null, global::System.Data.MappingType.Element);
  1759. base.Columns.Add(this.columnIDСмены);
  1760. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1761. this.columnID}, true));
  1762. this.columnID.AutoIncrement = true;
  1763. this.columnID.AutoIncrementSeed = -1;
  1764. this.columnID.AutoIncrementStep = -1;
  1765. this.columnID.AllowDBNull = false;
  1766. this.columnID.ReadOnly = true;
  1767. this.columnID.Unique = true;
  1768. }
  1769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1771. public OrdersRow NewOrdersRow() {
  1772. return ((OrdersRow)(this.NewRow()));
  1773. }
  1774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1776. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1777. return new OrdersRow(builder);
  1778. }
  1779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1781. protected override global::System.Type GetRowType() {
  1782. return typeof(OrdersRow);
  1783. }
  1784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1786. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1787. base.OnRowChanged(e);
  1788. if ((this.OrdersRowChanged != null)) {
  1789. this.OrdersRowChanged(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1790. }
  1791. }
  1792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1794. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1795. base.OnRowChanging(e);
  1796. if ((this.OrdersRowChanging != null)) {
  1797. this.OrdersRowChanging(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1798. }
  1799. }
  1800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1802. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1803. base.OnRowDeleted(e);
  1804. if ((this.OrdersRowDeleted != null)) {
  1805. this.OrdersRowDeleted(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1806. }
  1807. }
  1808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1810. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1811. base.OnRowDeleting(e);
  1812. if ((this.OrdersRowDeleting != null)) {
  1813. this.OrdersRowDeleting(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1814. }
  1815. }
  1816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1818. public void RemoveOrdersRow(OrdersRow row) {
  1819. this.Rows.Remove(row);
  1820. }
  1821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1823. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1824. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1825. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1826. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  1827. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1828. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1829. any1.MinOccurs = new decimal(0);
  1830. any1.MaxOccurs = decimal.MaxValue;
  1831. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1832. sequence.Items.Add(any1);
  1833. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1834. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1835. any2.MinOccurs = new decimal(1);
  1836. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1837. sequence.Items.Add(any2);
  1838. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1839. attribute1.Name = "namespace";
  1840. attribute1.FixedValue = ds.Namespace;
  1841. type.Attributes.Add(attribute1);
  1842. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1843. attribute2.Name = "tableTypeName";
  1844. attribute2.FixedValue = "OrdersDataTable";
  1845. type.Attributes.Add(attribute2);
  1846. type.Particle = sequence;
  1847. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1848. if (xs.Contains(dsSchema.TargetNamespace)) {
  1849. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1850. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1851. try {
  1852. global::System.Xml.Schema.XmlSchema schema = null;
  1853. dsSchema.Write(s1);
  1854. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1855. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1856. s2.SetLength(0);
  1857. schema.Write(s2);
  1858. if ((s1.Length == s2.Length)) {
  1859. s1.Position = 0;
  1860. s2.Position = 0;
  1861. for (; ((s1.Position != s1.Length)
  1862. && (s1.ReadByte() == s2.ReadByte())); ) {
  1863. ;
  1864. }
  1865. if ((s1.Position == s1.Length)) {
  1866. return type;
  1867. }
  1868. }
  1869. }
  1870. }
  1871. finally {
  1872. if ((s1 != null)) {
  1873. s1.Close();
  1874. }
  1875. if ((s2 != null)) {
  1876. s2.Close();
  1877. }
  1878. }
  1879. }
  1880. xs.Add(dsSchema);
  1881. return type;
  1882. }
  1883. }
  1884. /// <summary>
  1885. ///Represents the strongly named DataTable class.
  1886. ///</summary>
  1887. [global::System.Serializable()]
  1888. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1889. public partial class OrderStatusDataTable : global::System.Data.TypedTableBase<OrderStatusRow> {
  1890. private global::System.Data.DataColumn columnID;
  1891. private global::System.Data.DataColumn columnНазвание;
  1892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1894. public OrderStatusDataTable() {
  1895. this.TableName = "OrderStatus";
  1896. this.BeginInit();
  1897. this.InitClass();
  1898. this.EndInit();
  1899. }
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1902. internal OrderStatusDataTable(global::System.Data.DataTable table) {
  1903. this.TableName = table.TableName;
  1904. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1905. this.CaseSensitive = table.CaseSensitive;
  1906. }
  1907. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1908. this.Locale = table.Locale;
  1909. }
  1910. if ((table.Namespace != table.DataSet.Namespace)) {
  1911. this.Namespace = table.Namespace;
  1912. }
  1913. this.Prefix = table.Prefix;
  1914. this.MinimumCapacity = table.MinimumCapacity;
  1915. }
  1916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1918. protected OrderStatusDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1919. base(info, context) {
  1920. this.InitVars();
  1921. }
  1922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1924. public global::System.Data.DataColumn IDColumn {
  1925. get {
  1926. return this.columnID;
  1927. }
  1928. }
  1929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1931. public global::System.Data.DataColumn НазваниеColumn {
  1932. get {
  1933. return this.columnНазвание;
  1934. }
  1935. }
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1938. [global::System.ComponentModel.Browsable(false)]
  1939. public int Count {
  1940. get {
  1941. return this.Rows.Count;
  1942. }
  1943. }
  1944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1946. public OrderStatusRow this[int index] {
  1947. get {
  1948. return ((OrderStatusRow)(this.Rows[index]));
  1949. }
  1950. }
  1951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1952. public event OrderStatusRowChangeEventHandler OrderStatusRowChanging;
  1953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1954. public event OrderStatusRowChangeEventHandler OrderStatusRowChanged;
  1955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1956. public event OrderStatusRowChangeEventHandler OrderStatusRowDeleting;
  1957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1958. public event OrderStatusRowChangeEventHandler OrderStatusRowDeleted;
  1959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1961. public void AddOrderStatusRow(OrderStatusRow row) {
  1962. this.Rows.Add(row);
  1963. }
  1964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1966. public OrderStatusRow AddOrderStatusRow(string Название) {
  1967. OrderStatusRow rowOrderStatusRow = ((OrderStatusRow)(this.NewRow()));
  1968. object[] columnValuesArray = new object[] {
  1969. null,
  1970. Название};
  1971. rowOrderStatusRow.ItemArray = columnValuesArray;
  1972. this.Rows.Add(rowOrderStatusRow);
  1973. return rowOrderStatusRow;
  1974. }
  1975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1977. public OrderStatusRow FindByID(int ID) {
  1978. return ((OrderStatusRow)(this.Rows.Find(new object[] {
  1979. ID})));
  1980. }
  1981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1983. public override global::System.Data.DataTable Clone() {
  1984. OrderStatusDataTable cln = ((OrderStatusDataTable)(base.Clone()));
  1985. cln.InitVars();
  1986. return cln;
  1987. }
  1988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1990. protected override global::System.Data.DataTable CreateInstance() {
  1991. return new OrderStatusDataTable();
  1992. }
  1993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1995. internal void InitVars() {
  1996. this.columnID = base.Columns["ID"];
  1997. this.columnНазвание = base.Columns["Название"];
  1998. }
  1999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2001. private void InitClass() {
  2002. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2003. base.Columns.Add(this.columnID);
  2004. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  2005. base.Columns.Add(this.columnНазвание);
  2006. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2007. this.columnID}, true));
  2008. this.columnID.AutoIncrement = true;
  2009. this.columnID.AutoIncrementSeed = -1;
  2010. this.columnID.AutoIncrementStep = -1;
  2011. this.columnID.AllowDBNull = false;
  2012. this.columnID.ReadOnly = true;
  2013. this.columnID.Unique = true;
  2014. this.columnНазвание.MaxLength = 50;
  2015. }
  2016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2018. public OrderStatusRow NewOrderStatusRow() {
  2019. return ((OrderStatusRow)(this.NewRow()));
  2020. }
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2023. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2024. return new OrderStatusRow(builder);
  2025. }
  2026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2028. protected override global::System.Type GetRowType() {
  2029. return typeof(OrderStatusRow);
  2030. }
  2031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2033. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2034. base.OnRowChanged(e);
  2035. if ((this.OrderStatusRowChanged != null)) {
  2036. this.OrderStatusRowChanged(this, new OrderStatusRowChangeEvent(((OrderStatusRow)(e.Row)), e.Action));
  2037. }
  2038. }
  2039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2041. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2042. base.OnRowChanging(e);
  2043. if ((this.OrderStatusRowChanging != null)) {
  2044. this.OrderStatusRowChanging(this, new OrderStatusRowChangeEvent(((OrderStatusRow)(e.Row)), e.Action));
  2045. }
  2046. }
  2047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2049. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2050. base.OnRowDeleted(e);
  2051. if ((this.OrderStatusRowDeleted != null)) {
  2052. this.OrderStatusRowDeleted(this, new OrderStatusRowChangeEvent(((OrderStatusRow)(e.Row)), e.Action));
  2053. }
  2054. }
  2055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2057. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2058. base.OnRowDeleting(e);
  2059. if ((this.OrderStatusRowDeleting != null)) {
  2060. this.OrderStatusRowDeleting(this, new OrderStatusRowChangeEvent(((OrderStatusRow)(e.Row)), e.Action));
  2061. }
  2062. }
  2063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2065. public void RemoveOrderStatusRow(OrderStatusRow row) {
  2066. this.Rows.Remove(row);
  2067. }
  2068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2070. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2071. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2072. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2073. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  2074. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2075. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2076. any1.MinOccurs = new decimal(0);
  2077. any1.MaxOccurs = decimal.MaxValue;
  2078. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2079. sequence.Items.Add(any1);
  2080. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2081. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2082. any2.MinOccurs = new decimal(1);
  2083. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2084. sequence.Items.Add(any2);
  2085. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2086. attribute1.Name = "namespace";
  2087. attribute1.FixedValue = ds.Namespace;
  2088. type.Attributes.Add(attribute1);
  2089. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2090. attribute2.Name = "tableTypeName";
  2091. attribute2.FixedValue = "OrderStatusDataTable";
  2092. type.Attributes.Add(attribute2);
  2093. type.Particle = sequence;
  2094. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2095. if (xs.Contains(dsSchema.TargetNamespace)) {
  2096. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2097. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2098. try {
  2099. global::System.Xml.Schema.XmlSchema schema = null;
  2100. dsSchema.Write(s1);
  2101. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2102. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2103. s2.SetLength(0);
  2104. schema.Write(s2);
  2105. if ((s1.Length == s2.Length)) {
  2106. s1.Position = 0;
  2107. s2.Position = 0;
  2108. for (; ((s1.Position != s1.Length)
  2109. && (s1.ReadByte() == s2.ReadByte())); ) {
  2110. ;
  2111. }
  2112. if ((s1.Position == s1.Length)) {
  2113. return type;
  2114. }
  2115. }
  2116. }
  2117. }
  2118. finally {
  2119. if ((s1 != null)) {
  2120. s1.Close();
  2121. }
  2122. if ((s2 != null)) {
  2123. s2.Close();
  2124. }
  2125. }
  2126. }
  2127. xs.Add(dsSchema);
  2128. return type;
  2129. }
  2130. }
  2131. /// <summary>
  2132. ///Represents the strongly named DataTable class.
  2133. ///</summary>
  2134. [global::System.Serializable()]
  2135. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2136. public partial class PaymentMethodDataTable : global::System.Data.TypedTableBase<PaymentMethodRow> {
  2137. private global::System.Data.DataColumn columnID;
  2138. private global::System.Data.DataColumn columnНазвание;
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2141. public PaymentMethodDataTable() {
  2142. this.TableName = "PaymentMethod";
  2143. this.BeginInit();
  2144. this.InitClass();
  2145. this.EndInit();
  2146. }
  2147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2149. internal PaymentMethodDataTable(global::System.Data.DataTable table) {
  2150. this.TableName = table.TableName;
  2151. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2152. this.CaseSensitive = table.CaseSensitive;
  2153. }
  2154. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2155. this.Locale = table.Locale;
  2156. }
  2157. if ((table.Namespace != table.DataSet.Namespace)) {
  2158. this.Namespace = table.Namespace;
  2159. }
  2160. this.Prefix = table.Prefix;
  2161. this.MinimumCapacity = table.MinimumCapacity;
  2162. }
  2163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2165. protected PaymentMethodDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2166. base(info, context) {
  2167. this.InitVars();
  2168. }
  2169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2171. public global::System.Data.DataColumn IDColumn {
  2172. get {
  2173. return this.columnID;
  2174. }
  2175. }
  2176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2178. public global::System.Data.DataColumn НазваниеColumn {
  2179. get {
  2180. return this.columnНазвание;
  2181. }
  2182. }
  2183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2185. [global::System.ComponentModel.Browsable(false)]
  2186. public int Count {
  2187. get {
  2188. return this.Rows.Count;
  2189. }
  2190. }
  2191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2193. public PaymentMethodRow this[int index] {
  2194. get {
  2195. return ((PaymentMethodRow)(this.Rows[index]));
  2196. }
  2197. }
  2198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2199. public event PaymentMethodRowChangeEventHandler PaymentMethodRowChanging;
  2200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2201. public event PaymentMethodRowChangeEventHandler PaymentMethodRowChanged;
  2202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2203. public event PaymentMethodRowChangeEventHandler PaymentMethodRowDeleting;
  2204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2205. public event PaymentMethodRowChangeEventHandler PaymentMethodRowDeleted;
  2206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2208. public void AddPaymentMethodRow(PaymentMethodRow row) {
  2209. this.Rows.Add(row);
  2210. }
  2211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2213. public PaymentMethodRow AddPaymentMethodRow(string Название) {
  2214. PaymentMethodRow rowPaymentMethodRow = ((PaymentMethodRow)(this.NewRow()));
  2215. object[] columnValuesArray = new object[] {
  2216. null,
  2217. Название};
  2218. rowPaymentMethodRow.ItemArray = columnValuesArray;
  2219. this.Rows.Add(rowPaymentMethodRow);
  2220. return rowPaymentMethodRow;
  2221. }
  2222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2224. public PaymentMethodRow FindByID(int ID) {
  2225. return ((PaymentMethodRow)(this.Rows.Find(new object[] {
  2226. ID})));
  2227. }
  2228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2230. public override global::System.Data.DataTable Clone() {
  2231. PaymentMethodDataTable cln = ((PaymentMethodDataTable)(base.Clone()));
  2232. cln.InitVars();
  2233. return cln;
  2234. }
  2235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2237. protected override global::System.Data.DataTable CreateInstance() {
  2238. return new PaymentMethodDataTable();
  2239. }
  2240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2242. internal void InitVars() {
  2243. this.columnID = base.Columns["ID"];
  2244. this.columnНазвание = base.Columns["Название"];
  2245. }
  2246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2248. private void InitClass() {
  2249. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2250. base.Columns.Add(this.columnID);
  2251. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  2252. base.Columns.Add(this.columnНазвание);
  2253. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2254. this.columnID}, true));
  2255. this.columnID.AutoIncrement = true;
  2256. this.columnID.AutoIncrementSeed = -1;
  2257. this.columnID.AutoIncrementStep = -1;
  2258. this.columnID.AllowDBNull = false;
  2259. this.columnID.ReadOnly = true;
  2260. this.columnID.Unique = true;
  2261. this.columnНазвание.MaxLength = 50;
  2262. }
  2263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2265. public PaymentMethodRow NewPaymentMethodRow() {
  2266. return ((PaymentMethodRow)(this.NewRow()));
  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.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2271. return new PaymentMethodRow(builder);
  2272. }
  2273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2275. protected override global::System.Type GetRowType() {
  2276. return typeof(PaymentMethodRow);
  2277. }
  2278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2280. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2281. base.OnRowChanged(e);
  2282. if ((this.PaymentMethodRowChanged != null)) {
  2283. this.PaymentMethodRowChanged(this, new PaymentMethodRowChangeEvent(((PaymentMethodRow)(e.Row)), e.Action));
  2284. }
  2285. }
  2286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2288. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2289. base.OnRowChanging(e);
  2290. if ((this.PaymentMethodRowChanging != null)) {
  2291. this.PaymentMethodRowChanging(this, new PaymentMethodRowChangeEvent(((PaymentMethodRow)(e.Row)), e.Action));
  2292. }
  2293. }
  2294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2296. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2297. base.OnRowDeleted(e);
  2298. if ((this.PaymentMethodRowDeleted != null)) {
  2299. this.PaymentMethodRowDeleted(this, new PaymentMethodRowChangeEvent(((PaymentMethodRow)(e.Row)), e.Action));
  2300. }
  2301. }
  2302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2304. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2305. base.OnRowDeleting(e);
  2306. if ((this.PaymentMethodRowDeleting != null)) {
  2307. this.PaymentMethodRowDeleting(this, new PaymentMethodRowChangeEvent(((PaymentMethodRow)(e.Row)), e.Action));
  2308. }
  2309. }
  2310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2312. public void RemovePaymentMethodRow(PaymentMethodRow row) {
  2313. this.Rows.Remove(row);
  2314. }
  2315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2317. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2318. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2319. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2320. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  2321. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2322. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2323. any1.MinOccurs = new decimal(0);
  2324. any1.MaxOccurs = decimal.MaxValue;
  2325. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2326. sequence.Items.Add(any1);
  2327. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2328. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2329. any2.MinOccurs = new decimal(1);
  2330. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2331. sequence.Items.Add(any2);
  2332. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2333. attribute1.Name = "namespace";
  2334. attribute1.FixedValue = ds.Namespace;
  2335. type.Attributes.Add(attribute1);
  2336. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2337. attribute2.Name = "tableTypeName";
  2338. attribute2.FixedValue = "PaymentMethodDataTable";
  2339. type.Attributes.Add(attribute2);
  2340. type.Particle = sequence;
  2341. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2342. if (xs.Contains(dsSchema.TargetNamespace)) {
  2343. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2344. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2345. try {
  2346. global::System.Xml.Schema.XmlSchema schema = null;
  2347. dsSchema.Write(s1);
  2348. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2349. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2350. s2.SetLength(0);
  2351. schema.Write(s2);
  2352. if ((s1.Length == s2.Length)) {
  2353. s1.Position = 0;
  2354. s2.Position = 0;
  2355. for (; ((s1.Position != s1.Length)
  2356. && (s1.ReadByte() == s2.ReadByte())); ) {
  2357. ;
  2358. }
  2359. if ((s1.Position == s1.Length)) {
  2360. return type;
  2361. }
  2362. }
  2363. }
  2364. }
  2365. finally {
  2366. if ((s1 != null)) {
  2367. s1.Close();
  2368. }
  2369. if ((s2 != null)) {
  2370. s2.Close();
  2371. }
  2372. }
  2373. }
  2374. xs.Add(dsSchema);
  2375. return type;
  2376. }
  2377. }
  2378. /// <summary>
  2379. ///Represents the strongly named DataTable class.
  2380. ///</summary>
  2381. [global::System.Serializable()]
  2382. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2383. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2384. private global::System.Data.DataColumn columnID;
  2385. private global::System.Data.DataColumn columnНазвание;
  2386. private global::System.Data.DataColumn columnКатегория;
  2387. private global::System.Data.DataColumn columnОписание;
  2388. private global::System.Data.DataColumn columnЦена;
  2389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2391. public ProductDataTable() {
  2392. this.TableName = "Product";
  2393. this.BeginInit();
  2394. this.InitClass();
  2395. this.EndInit();
  2396. }
  2397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2399. internal ProductDataTable(global::System.Data.DataTable table) {
  2400. this.TableName = table.TableName;
  2401. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2402. this.CaseSensitive = table.CaseSensitive;
  2403. }
  2404. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2405. this.Locale = table.Locale;
  2406. }
  2407. if ((table.Namespace != table.DataSet.Namespace)) {
  2408. this.Namespace = table.Namespace;
  2409. }
  2410. this.Prefix = table.Prefix;
  2411. this.MinimumCapacity = table.MinimumCapacity;
  2412. }
  2413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2415. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2416. base(info, context) {
  2417. this.InitVars();
  2418. }
  2419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2421. public global::System.Data.DataColumn IDColumn {
  2422. get {
  2423. return this.columnID;
  2424. }
  2425. }
  2426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2428. public global::System.Data.DataColumn НазваниеColumn {
  2429. get {
  2430. return this.columnНазвание;
  2431. }
  2432. }
  2433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2435. public global::System.Data.DataColumn КатегорияColumn {
  2436. get {
  2437. return this.columnКатегория;
  2438. }
  2439. }
  2440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2442. public global::System.Data.DataColumn ОписаниеColumn {
  2443. get {
  2444. return this.columnОписание;
  2445. }
  2446. }
  2447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2449. public global::System.Data.DataColumn ЦенаColumn {
  2450. get {
  2451. return this.columnЦена;
  2452. }
  2453. }
  2454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2456. [global::System.ComponentModel.Browsable(false)]
  2457. public int Count {
  2458. get {
  2459. return this.Rows.Count;
  2460. }
  2461. }
  2462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2464. public ProductRow this[int index] {
  2465. get {
  2466. return ((ProductRow)(this.Rows[index]));
  2467. }
  2468. }
  2469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2470. public event ProductRowChangeEventHandler ProductRowChanging;
  2471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2472. public event ProductRowChangeEventHandler ProductRowChanged;
  2473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2474. public event ProductRowChangeEventHandler ProductRowDeleting;
  2475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2476. public event ProductRowChangeEventHandler ProductRowDeleted;
  2477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2479. public void AddProductRow(ProductRow row) {
  2480. this.Rows.Add(row);
  2481. }
  2482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2484. public ProductRow AddProductRow(string Название, СategoriesRow parentСategoriesRowByFK_Product_Сategories, string Описание, string Цена) {
  2485. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2486. object[] columnValuesArray = new object[] {
  2487. null,
  2488. Название,
  2489. null,
  2490. Описание,
  2491. Цена};
  2492. if ((parentСategoriesRowByFK_Product_Сategories != null)) {
  2493. columnValuesArray[2] = parentСategoriesRowByFK_Product_Сategories[0];
  2494. }
  2495. rowProductRow.ItemArray = columnValuesArray;
  2496. this.Rows.Add(rowProductRow);
  2497. return rowProductRow;
  2498. }
  2499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2501. public ProductRow FindByID(int ID) {
  2502. return ((ProductRow)(this.Rows.Find(new object[] {
  2503. ID})));
  2504. }
  2505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2507. public override global::System.Data.DataTable Clone() {
  2508. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2509. cln.InitVars();
  2510. return cln;
  2511. }
  2512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2514. protected override global::System.Data.DataTable CreateInstance() {
  2515. return new ProductDataTable();
  2516. }
  2517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2519. internal void InitVars() {
  2520. this.columnID = base.Columns["ID"];
  2521. this.columnНазвание = base.Columns["Название"];
  2522. this.columnКатегория = base.Columns["Категория"];
  2523. this.columnОписание = base.Columns["Описание"];
  2524. this.columnЦена = base.Columns["Цена"];
  2525. }
  2526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2528. private void InitClass() {
  2529. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2530. base.Columns.Add(this.columnID);
  2531. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  2532. base.Columns.Add(this.columnНазвание);
  2533. this.columnКатегория = new global::System.Data.DataColumn("Категория", typeof(int), null, global::System.Data.MappingType.Element);
  2534. base.Columns.Add(this.columnКатегория);
  2535. this.columnОписание = new global::System.Data.DataColumn("Описание", typeof(string), null, global::System.Data.MappingType.Element);
  2536. base.Columns.Add(this.columnОписание);
  2537. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(string), null, global::System.Data.MappingType.Element);
  2538. base.Columns.Add(this.columnЦена);
  2539. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2540. this.columnID}, true));
  2541. this.columnID.AutoIncrement = true;
  2542. this.columnID.AutoIncrementSeed = -1;
  2543. this.columnID.AutoIncrementStep = -1;
  2544. this.columnID.AllowDBNull = false;
  2545. this.columnID.ReadOnly = true;
  2546. this.columnID.Unique = true;
  2547. this.columnНазвание.MaxLength = 50;
  2548. this.columnОписание.MaxLength = 2147483647;
  2549. this.columnЦена.MaxLength = 100;
  2550. }
  2551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2553. public ProductRow NewProductRow() {
  2554. return ((ProductRow)(this.NewRow()));
  2555. }
  2556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2558. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2559. return new ProductRow(builder);
  2560. }
  2561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2563. protected override global::System.Type GetRowType() {
  2564. return typeof(ProductRow);
  2565. }
  2566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2568. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2569. base.OnRowChanged(e);
  2570. if ((this.ProductRowChanged != null)) {
  2571. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2572. }
  2573. }
  2574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2576. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2577. base.OnRowChanging(e);
  2578. if ((this.ProductRowChanging != null)) {
  2579. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2580. }
  2581. }
  2582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2584. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2585. base.OnRowDeleted(e);
  2586. if ((this.ProductRowDeleted != null)) {
  2587. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2588. }
  2589. }
  2590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2592. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2593. base.OnRowDeleting(e);
  2594. if ((this.ProductRowDeleting != null)) {
  2595. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2596. }
  2597. }
  2598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2600. public void RemoveProductRow(ProductRow row) {
  2601. this.Rows.Remove(row);
  2602. }
  2603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2605. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2606. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2607. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2608. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  2609. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2610. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2611. any1.MinOccurs = new decimal(0);
  2612. any1.MaxOccurs = decimal.MaxValue;
  2613. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2614. sequence.Items.Add(any1);
  2615. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2616. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2617. any2.MinOccurs = new decimal(1);
  2618. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2619. sequence.Items.Add(any2);
  2620. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2621. attribute1.Name = "namespace";
  2622. attribute1.FixedValue = ds.Namespace;
  2623. type.Attributes.Add(attribute1);
  2624. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2625. attribute2.Name = "tableTypeName";
  2626. attribute2.FixedValue = "ProductDataTable";
  2627. type.Attributes.Add(attribute2);
  2628. type.Particle = sequence;
  2629. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2630. if (xs.Contains(dsSchema.TargetNamespace)) {
  2631. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2632. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2633. try {
  2634. global::System.Xml.Schema.XmlSchema schema = null;
  2635. dsSchema.Write(s1);
  2636. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2637. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2638. s2.SetLength(0);
  2639. schema.Write(s2);
  2640. if ((s1.Length == s2.Length)) {
  2641. s1.Position = 0;
  2642. s2.Position = 0;
  2643. for (; ((s1.Position != s1.Length)
  2644. && (s1.ReadByte() == s2.ReadByte())); ) {
  2645. ;
  2646. }
  2647. if ((s1.Position == s1.Length)) {
  2648. return type;
  2649. }
  2650. }
  2651. }
  2652. }
  2653. finally {
  2654. if ((s1 != null)) {
  2655. s1.Close();
  2656. }
  2657. if ((s2 != null)) {
  2658. s2.Close();
  2659. }
  2660. }
  2661. }
  2662. xs.Add(dsSchema);
  2663. return type;
  2664. }
  2665. }
  2666. /// <summary>
  2667. ///Represents the strongly named DataTable class.
  2668. ///</summary>
  2669. [global::System.Serializable()]
  2670. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2671. public partial class RolesDataTable : global::System.Data.TypedTableBase<RolesRow> {
  2672. private global::System.Data.DataColumn columnID;
  2673. private global::System.Data.DataColumn columnНазвание;
  2674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2676. public RolesDataTable() {
  2677. this.TableName = "Roles";
  2678. this.BeginInit();
  2679. this.InitClass();
  2680. this.EndInit();
  2681. }
  2682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2684. internal RolesDataTable(global::System.Data.DataTable table) {
  2685. this.TableName = table.TableName;
  2686. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2687. this.CaseSensitive = table.CaseSensitive;
  2688. }
  2689. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2690. this.Locale = table.Locale;
  2691. }
  2692. if ((table.Namespace != table.DataSet.Namespace)) {
  2693. this.Namespace = table.Namespace;
  2694. }
  2695. this.Prefix = table.Prefix;
  2696. this.MinimumCapacity = table.MinimumCapacity;
  2697. }
  2698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2700. protected RolesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2701. base(info, context) {
  2702. this.InitVars();
  2703. }
  2704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2706. public global::System.Data.DataColumn IDColumn {
  2707. get {
  2708. return this.columnID;
  2709. }
  2710. }
  2711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2713. public global::System.Data.DataColumn НазваниеColumn {
  2714. get {
  2715. return this.columnНазвание;
  2716. }
  2717. }
  2718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2720. [global::System.ComponentModel.Browsable(false)]
  2721. public int Count {
  2722. get {
  2723. return this.Rows.Count;
  2724. }
  2725. }
  2726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2728. public RolesRow this[int index] {
  2729. get {
  2730. return ((RolesRow)(this.Rows[index]));
  2731. }
  2732. }
  2733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2734. public event RolesRowChangeEventHandler RolesRowChanging;
  2735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2736. public event RolesRowChangeEventHandler RolesRowChanged;
  2737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2738. public event RolesRowChangeEventHandler RolesRowDeleting;
  2739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2740. public event RolesRowChangeEventHandler RolesRowDeleted;
  2741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2743. public void AddRolesRow(RolesRow row) {
  2744. this.Rows.Add(row);
  2745. }
  2746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2748. public RolesRow AddRolesRow(string Название) {
  2749. RolesRow rowRolesRow = ((RolesRow)(this.NewRow()));
  2750. object[] columnValuesArray = new object[] {
  2751. null,
  2752. Название};
  2753. rowRolesRow.ItemArray = columnValuesArray;
  2754. this.Rows.Add(rowRolesRow);
  2755. return rowRolesRow;
  2756. }
  2757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2759. public RolesRow FindByID(int ID) {
  2760. return ((RolesRow)(this.Rows.Find(new object[] {
  2761. ID})));
  2762. }
  2763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2765. public override global::System.Data.DataTable Clone() {
  2766. RolesDataTable cln = ((RolesDataTable)(base.Clone()));
  2767. cln.InitVars();
  2768. return cln;
  2769. }
  2770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2772. protected override global::System.Data.DataTable CreateInstance() {
  2773. return new RolesDataTable();
  2774. }
  2775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2777. internal void InitVars() {
  2778. this.columnID = base.Columns["ID"];
  2779. this.columnНазвание = base.Columns["Название"];
  2780. }
  2781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2783. private void InitClass() {
  2784. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2785. base.Columns.Add(this.columnID);
  2786. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  2787. base.Columns.Add(this.columnНазвание);
  2788. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2789. this.columnID}, true));
  2790. this.columnID.AutoIncrement = true;
  2791. this.columnID.AutoIncrementSeed = -1;
  2792. this.columnID.AutoIncrementStep = -1;
  2793. this.columnID.AllowDBNull = false;
  2794. this.columnID.ReadOnly = true;
  2795. this.columnID.Unique = true;
  2796. this.columnНазвание.MaxLength = 50;
  2797. }
  2798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2800. public RolesRow NewRolesRow() {
  2801. return ((RolesRow)(this.NewRow()));
  2802. }
  2803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2805. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2806. return new RolesRow(builder);
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2810. protected override global::System.Type GetRowType() {
  2811. return typeof(RolesRow);
  2812. }
  2813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2815. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2816. base.OnRowChanged(e);
  2817. if ((this.RolesRowChanged != null)) {
  2818. this.RolesRowChanged(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  2819. }
  2820. }
  2821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2823. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2824. base.OnRowChanging(e);
  2825. if ((this.RolesRowChanging != null)) {
  2826. this.RolesRowChanging(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  2827. }
  2828. }
  2829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2831. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2832. base.OnRowDeleted(e);
  2833. if ((this.RolesRowDeleted != null)) {
  2834. this.RolesRowDeleted(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  2835. }
  2836. }
  2837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2839. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2840. base.OnRowDeleting(e);
  2841. if ((this.RolesRowDeleting != null)) {
  2842. this.RolesRowDeleting(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  2843. }
  2844. }
  2845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2847. public void RemoveRolesRow(RolesRow row) {
  2848. this.Rows.Remove(row);
  2849. }
  2850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2852. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2853. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2854. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2855. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  2856. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2857. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2858. any1.MinOccurs = new decimal(0);
  2859. any1.MaxOccurs = decimal.MaxValue;
  2860. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2861. sequence.Items.Add(any1);
  2862. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2863. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2864. any2.MinOccurs = new decimal(1);
  2865. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2866. sequence.Items.Add(any2);
  2867. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2868. attribute1.Name = "namespace";
  2869. attribute1.FixedValue = ds.Namespace;
  2870. type.Attributes.Add(attribute1);
  2871. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2872. attribute2.Name = "tableTypeName";
  2873. attribute2.FixedValue = "RolesDataTable";
  2874. type.Attributes.Add(attribute2);
  2875. type.Particle = sequence;
  2876. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2877. if (xs.Contains(dsSchema.TargetNamespace)) {
  2878. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2879. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2880. try {
  2881. global::System.Xml.Schema.XmlSchema schema = null;
  2882. dsSchema.Write(s1);
  2883. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2884. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2885. s2.SetLength(0);
  2886. schema.Write(s2);
  2887. if ((s1.Length == s2.Length)) {
  2888. s1.Position = 0;
  2889. s2.Position = 0;
  2890. for (; ((s1.Position != s1.Length)
  2891. && (s1.ReadByte() == s2.ReadByte())); ) {
  2892. ;
  2893. }
  2894. if ((s1.Position == s1.Length)) {
  2895. return type;
  2896. }
  2897. }
  2898. }
  2899. }
  2900. finally {
  2901. if ((s1 != null)) {
  2902. s1.Close();
  2903. }
  2904. if ((s2 != null)) {
  2905. s2.Close();
  2906. }
  2907. }
  2908. }
  2909. xs.Add(dsSchema);
  2910. return type;
  2911. }
  2912. }
  2913. /// <summary>
  2914. ///Represents the strongly named DataTable class.
  2915. ///</summary>
  2916. [global::System.Serializable()]
  2917. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2918. public partial class TablesDataTable : global::System.Data.TypedTableBase<TablesRow> {
  2919. private global::System.Data.DataColumn columnID;
  2920. private global::System.Data.DataColumn columnНазвание;
  2921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2923. public TablesDataTable() {
  2924. this.TableName = "Tables";
  2925. this.BeginInit();
  2926. this.InitClass();
  2927. this.EndInit();
  2928. }
  2929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2931. internal TablesDataTable(global::System.Data.DataTable table) {
  2932. this.TableName = table.TableName;
  2933. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2934. this.CaseSensitive = table.CaseSensitive;
  2935. }
  2936. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2937. this.Locale = table.Locale;
  2938. }
  2939. if ((table.Namespace != table.DataSet.Namespace)) {
  2940. this.Namespace = table.Namespace;
  2941. }
  2942. this.Prefix = table.Prefix;
  2943. this.MinimumCapacity = table.MinimumCapacity;
  2944. }
  2945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2947. protected TablesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2948. base(info, context) {
  2949. this.InitVars();
  2950. }
  2951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2953. public global::System.Data.DataColumn IDColumn {
  2954. get {
  2955. return this.columnID;
  2956. }
  2957. }
  2958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2960. public global::System.Data.DataColumn НазваниеColumn {
  2961. get {
  2962. return this.columnНазвание;
  2963. }
  2964. }
  2965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2967. [global::System.ComponentModel.Browsable(false)]
  2968. public int Count {
  2969. get {
  2970. return this.Rows.Count;
  2971. }
  2972. }
  2973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2975. public TablesRow this[int index] {
  2976. get {
  2977. return ((TablesRow)(this.Rows[index]));
  2978. }
  2979. }
  2980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2981. public event TablesRowChangeEventHandler TablesRowChanging;
  2982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2983. public event TablesRowChangeEventHandler TablesRowChanged;
  2984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2985. public event TablesRowChangeEventHandler TablesRowDeleting;
  2986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2987. public event TablesRowChangeEventHandler TablesRowDeleted;
  2988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2990. public void AddTablesRow(TablesRow row) {
  2991. this.Rows.Add(row);
  2992. }
  2993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2995. public TablesRow AddTablesRow(string Название) {
  2996. TablesRow rowTablesRow = ((TablesRow)(this.NewRow()));
  2997. object[] columnValuesArray = new object[] {
  2998. null,
  2999. Название};
  3000. rowTablesRow.ItemArray = columnValuesArray;
  3001. this.Rows.Add(rowTablesRow);
  3002. return rowTablesRow;
  3003. }
  3004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3006. public TablesRow FindByID(int ID) {
  3007. return ((TablesRow)(this.Rows.Find(new object[] {
  3008. ID})));
  3009. }
  3010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3012. public override global::System.Data.DataTable Clone() {
  3013. TablesDataTable cln = ((TablesDataTable)(base.Clone()));
  3014. cln.InitVars();
  3015. return cln;
  3016. }
  3017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3019. protected override global::System.Data.DataTable CreateInstance() {
  3020. return new TablesDataTable();
  3021. }
  3022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3024. internal void InitVars() {
  3025. this.columnID = base.Columns["ID"];
  3026. this.columnНазвание = base.Columns["Название"];
  3027. }
  3028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3030. private void InitClass() {
  3031. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3032. base.Columns.Add(this.columnID);
  3033. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  3034. base.Columns.Add(this.columnНазвание);
  3035. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3036. this.columnID}, true));
  3037. this.columnID.AutoIncrement = true;
  3038. this.columnID.AutoIncrementSeed = -1;
  3039. this.columnID.AutoIncrementStep = -1;
  3040. this.columnID.AllowDBNull = false;
  3041. this.columnID.ReadOnly = true;
  3042. this.columnID.Unique = true;
  3043. this.columnНазвание.MaxLength = 50;
  3044. this.ExtendedProperties.Add("Generator_TablePropName", "_Tables");
  3045. this.ExtendedProperties.Add("Generator_UserTableName", "Tables");
  3046. }
  3047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3049. public TablesRow NewTablesRow() {
  3050. return ((TablesRow)(this.NewRow()));
  3051. }
  3052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3054. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3055. return new TablesRow(builder);
  3056. }
  3057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3059. protected override global::System.Type GetRowType() {
  3060. return typeof(TablesRow);
  3061. }
  3062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3064. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3065. base.OnRowChanged(e);
  3066. if ((this.TablesRowChanged != null)) {
  3067. this.TablesRowChanged(this, new TablesRowChangeEvent(((TablesRow)(e.Row)), e.Action));
  3068. }
  3069. }
  3070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3072. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3073. base.OnRowChanging(e);
  3074. if ((this.TablesRowChanging != null)) {
  3075. this.TablesRowChanging(this, new TablesRowChangeEvent(((TablesRow)(e.Row)), e.Action));
  3076. }
  3077. }
  3078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3080. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3081. base.OnRowDeleted(e);
  3082. if ((this.TablesRowDeleted != null)) {
  3083. this.TablesRowDeleted(this, new TablesRowChangeEvent(((TablesRow)(e.Row)), e.Action));
  3084. }
  3085. }
  3086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3088. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3089. base.OnRowDeleting(e);
  3090. if ((this.TablesRowDeleting != null)) {
  3091. this.TablesRowDeleting(this, new TablesRowChangeEvent(((TablesRow)(e.Row)), e.Action));
  3092. }
  3093. }
  3094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3096. public void RemoveTablesRow(TablesRow row) {
  3097. this.Rows.Remove(row);
  3098. }
  3099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3101. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3102. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3103. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3104. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  3105. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3106. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3107. any1.MinOccurs = new decimal(0);
  3108. any1.MaxOccurs = decimal.MaxValue;
  3109. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3110. sequence.Items.Add(any1);
  3111. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3112. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3113. any2.MinOccurs = new decimal(1);
  3114. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3115. sequence.Items.Add(any2);
  3116. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3117. attribute1.Name = "namespace";
  3118. attribute1.FixedValue = ds.Namespace;
  3119. type.Attributes.Add(attribute1);
  3120. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3121. attribute2.Name = "tableTypeName";
  3122. attribute2.FixedValue = "TablesDataTable";
  3123. type.Attributes.Add(attribute2);
  3124. type.Particle = sequence;
  3125. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3126. if (xs.Contains(dsSchema.TargetNamespace)) {
  3127. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3128. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3129. try {
  3130. global::System.Xml.Schema.XmlSchema schema = null;
  3131. dsSchema.Write(s1);
  3132. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3133. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3134. s2.SetLength(0);
  3135. schema.Write(s2);
  3136. if ((s1.Length == s2.Length)) {
  3137. s1.Position = 0;
  3138. s2.Position = 0;
  3139. for (; ((s1.Position != s1.Length)
  3140. && (s1.ReadByte() == s2.ReadByte())); ) {
  3141. ;
  3142. }
  3143. if ((s1.Position == s1.Length)) {
  3144. return type;
  3145. }
  3146. }
  3147. }
  3148. }
  3149. finally {
  3150. if ((s1 != null)) {
  3151. s1.Close();
  3152. }
  3153. if ((s2 != null)) {
  3154. s2.Close();
  3155. }
  3156. }
  3157. }
  3158. xs.Add(dsSchema);
  3159. return type;
  3160. }
  3161. }
  3162. /// <summary>
  3163. ///Represents the strongly named DataTable class.
  3164. ///</summary>
  3165. [global::System.Serializable()]
  3166. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3167. public partial class WaitersDataTable : global::System.Data.TypedTableBase<WaitersRow> {
  3168. private global::System.Data.DataColumn columnIDОфицианта;
  3169. private global::System.Data.DataColumn columnФамилия;
  3170. private global::System.Data.DataColumn columnИмя;
  3171. private global::System.Data.DataColumn columnОтчество;
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3174. public WaitersDataTable() {
  3175. this.TableName = "Waiters";
  3176. this.BeginInit();
  3177. this.InitClass();
  3178. this.EndInit();
  3179. }
  3180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3182. internal WaitersDataTable(global::System.Data.DataTable table) {
  3183. this.TableName = table.TableName;
  3184. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3185. this.CaseSensitive = table.CaseSensitive;
  3186. }
  3187. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3188. this.Locale = table.Locale;
  3189. }
  3190. if ((table.Namespace != table.DataSet.Namespace)) {
  3191. this.Namespace = table.Namespace;
  3192. }
  3193. this.Prefix = table.Prefix;
  3194. this.MinimumCapacity = table.MinimumCapacity;
  3195. }
  3196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3198. protected WaitersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3199. base(info, context) {
  3200. this.InitVars();
  3201. }
  3202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3204. public global::System.Data.DataColumn IDОфициантаColumn {
  3205. get {
  3206. return this.columnIDОфицианта;
  3207. }
  3208. }
  3209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3211. public global::System.Data.DataColumn ФамилияColumn {
  3212. get {
  3213. return this.columnФамилия;
  3214. }
  3215. }
  3216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3218. public global::System.Data.DataColumn ИмяColumn {
  3219. get {
  3220. return this.columnИмя;
  3221. }
  3222. }
  3223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3225. public global::System.Data.DataColumn ОтчествоColumn {
  3226. get {
  3227. return this.columnОтчество;
  3228. }
  3229. }
  3230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3232. [global::System.ComponentModel.Browsable(false)]
  3233. public int Count {
  3234. get {
  3235. return this.Rows.Count;
  3236. }
  3237. }
  3238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3240. public WaitersRow this[int index] {
  3241. get {
  3242. return ((WaitersRow)(this.Rows[index]));
  3243. }
  3244. }
  3245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3246. public event WaitersRowChangeEventHandler WaitersRowChanging;
  3247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3248. public event WaitersRowChangeEventHandler WaitersRowChanged;
  3249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3250. public event WaitersRowChangeEventHandler WaitersRowDeleting;
  3251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3252. public event WaitersRowChangeEventHandler WaitersRowDeleted;
  3253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3255. public void AddWaitersRow(WaitersRow row) {
  3256. this.Rows.Add(row);
  3257. }
  3258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3260. public WaitersRow AddWaitersRow(EmployeesRow parentEmployeesRowByFK_Waiters_Employees1, string Фамилия, string Имя, string Отчество) {
  3261. WaitersRow rowWaitersRow = ((WaitersRow)(this.NewRow()));
  3262. object[] columnValuesArray = new object[] {
  3263. null,
  3264. Фамилия,
  3265. Имя,
  3266. Отчество};
  3267. if ((parentEmployeesRowByFK_Waiters_Employees1 != null)) {
  3268. columnValuesArray[0] = parentEmployeesRowByFK_Waiters_Employees1[0];
  3269. }
  3270. rowWaitersRow.ItemArray = columnValuesArray;
  3271. this.Rows.Add(rowWaitersRow);
  3272. return rowWaitersRow;
  3273. }
  3274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3276. public WaitersRow FindByIDОфицианта(int IDОфицианта) {
  3277. return ((WaitersRow)(this.Rows.Find(new object[] {
  3278. IDОфицианта})));
  3279. }
  3280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3282. public override global::System.Data.DataTable Clone() {
  3283. WaitersDataTable cln = ((WaitersDataTable)(base.Clone()));
  3284. cln.InitVars();
  3285. return cln;
  3286. }
  3287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3289. protected override global::System.Data.DataTable CreateInstance() {
  3290. return new WaitersDataTable();
  3291. }
  3292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3294. internal void InitVars() {
  3295. this.columnIDОфицианта = base.Columns["IDОфицианта"];
  3296. this.columnФамилия = base.Columns["Фамилия"];
  3297. this.columnИмя = base.Columns["Имя"];
  3298. this.columnОтчество = base.Columns["Отчество"];
  3299. }
  3300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3302. private void InitClass() {
  3303. this.columnIDОфицианта = new global::System.Data.DataColumn("IDОфицианта", typeof(int), null, global::System.Data.MappingType.Element);
  3304. base.Columns.Add(this.columnIDОфицианта);
  3305. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  3306. base.Columns.Add(this.columnФамилия);
  3307. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  3308. base.Columns.Add(this.columnИмя);
  3309. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  3310. base.Columns.Add(this.columnОтчество);
  3311. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3312. this.columnIDОфицианта}, true));
  3313. this.columnIDОфицианта.AllowDBNull = false;
  3314. this.columnIDОфицианта.Unique = true;
  3315. this.columnФамилия.MaxLength = 50;
  3316. this.columnИмя.MaxLength = 50;
  3317. this.columnОтчество.MaxLength = 50;
  3318. }
  3319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3321. public WaitersRow NewWaitersRow() {
  3322. return ((WaitersRow)(this.NewRow()));
  3323. }
  3324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3326. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3327. return new WaitersRow(builder);
  3328. }
  3329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3331. protected override global::System.Type GetRowType() {
  3332. return typeof(WaitersRow);
  3333. }
  3334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3336. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3337. base.OnRowChanged(e);
  3338. if ((this.WaitersRowChanged != null)) {
  3339. this.WaitersRowChanged(this, new WaitersRowChangeEvent(((WaitersRow)(e.Row)), e.Action));
  3340. }
  3341. }
  3342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3344. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3345. base.OnRowChanging(e);
  3346. if ((this.WaitersRowChanging != null)) {
  3347. this.WaitersRowChanging(this, new WaitersRowChangeEvent(((WaitersRow)(e.Row)), e.Action));
  3348. }
  3349. }
  3350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3352. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3353. base.OnRowDeleted(e);
  3354. if ((this.WaitersRowDeleted != null)) {
  3355. this.WaitersRowDeleted(this, new WaitersRowChangeEvent(((WaitersRow)(e.Row)), e.Action));
  3356. }
  3357. }
  3358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3360. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3361. base.OnRowDeleting(e);
  3362. if ((this.WaitersRowDeleting != null)) {
  3363. this.WaitersRowDeleting(this, new WaitersRowChangeEvent(((WaitersRow)(e.Row)), e.Action));
  3364. }
  3365. }
  3366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3368. public void RemoveWaitersRow(WaitersRow row) {
  3369. this.Rows.Remove(row);
  3370. }
  3371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3373. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3374. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3375. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3376. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  3377. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3378. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3379. any1.MinOccurs = new decimal(0);
  3380. any1.MaxOccurs = decimal.MaxValue;
  3381. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3382. sequence.Items.Add(any1);
  3383. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3384. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3385. any2.MinOccurs = new decimal(1);
  3386. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3387. sequence.Items.Add(any2);
  3388. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3389. attribute1.Name = "namespace";
  3390. attribute1.FixedValue = ds.Namespace;
  3391. type.Attributes.Add(attribute1);
  3392. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3393. attribute2.Name = "tableTypeName";
  3394. attribute2.FixedValue = "WaitersDataTable";
  3395. type.Attributes.Add(attribute2);
  3396. type.Particle = sequence;
  3397. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3398. if (xs.Contains(dsSchema.TargetNamespace)) {
  3399. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3400. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3401. try {
  3402. global::System.Xml.Schema.XmlSchema schema = null;
  3403. dsSchema.Write(s1);
  3404. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3405. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3406. s2.SetLength(0);
  3407. schema.Write(s2);
  3408. if ((s1.Length == s2.Length)) {
  3409. s1.Position = 0;
  3410. s2.Position = 0;
  3411. for (; ((s1.Position != s1.Length)
  3412. && (s1.ReadByte() == s2.ReadByte())); ) {
  3413. ;
  3414. }
  3415. if ((s1.Position == s1.Length)) {
  3416. return type;
  3417. }
  3418. }
  3419. }
  3420. }
  3421. finally {
  3422. if ((s1 != null)) {
  3423. s1.Close();
  3424. }
  3425. if ((s2 != null)) {
  3426. s2.Close();
  3427. }
  3428. }
  3429. }
  3430. xs.Add(dsSchema);
  3431. return type;
  3432. }
  3433. }
  3434. /// <summary>
  3435. ///Represents the strongly named DataTable class.
  3436. ///</summary>
  3437. [global::System.Serializable()]
  3438. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3439. public partial class WorkShiftDataTable : global::System.Data.TypedTableBase<WorkShiftRow> {
  3440. private global::System.Data.DataColumn columnID;
  3441. private global::System.Data.DataColumn columnIDОфицианта;
  3442. private global::System.Data.DataColumn columnIDПовара;
  3443. private global::System.Data.DataColumn columnДатаСмены;
  3444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3446. public WorkShiftDataTable() {
  3447. this.TableName = "WorkShift";
  3448. this.BeginInit();
  3449. this.InitClass();
  3450. this.EndInit();
  3451. }
  3452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3454. internal WorkShiftDataTable(global::System.Data.DataTable table) {
  3455. this.TableName = table.TableName;
  3456. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3457. this.CaseSensitive = table.CaseSensitive;
  3458. }
  3459. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3460. this.Locale = table.Locale;
  3461. }
  3462. if ((table.Namespace != table.DataSet.Namespace)) {
  3463. this.Namespace = table.Namespace;
  3464. }
  3465. this.Prefix = table.Prefix;
  3466. this.MinimumCapacity = table.MinimumCapacity;
  3467. }
  3468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3470. protected WorkShiftDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3471. base(info, context) {
  3472. this.InitVars();
  3473. }
  3474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3476. public global::System.Data.DataColumn IDColumn {
  3477. get {
  3478. return this.columnID;
  3479. }
  3480. }
  3481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3483. public global::System.Data.DataColumn IDОфициантаColumn {
  3484. get {
  3485. return this.columnIDОфицианта;
  3486. }
  3487. }
  3488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3490. public global::System.Data.DataColumn IDПовараColumn {
  3491. get {
  3492. return this.columnIDПовара;
  3493. }
  3494. }
  3495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3497. public global::System.Data.DataColumn ДатаСменыColumn {
  3498. get {
  3499. return this.columnДатаСмены;
  3500. }
  3501. }
  3502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3504. [global::System.ComponentModel.Browsable(false)]
  3505. public int Count {
  3506. get {
  3507. return this.Rows.Count;
  3508. }
  3509. }
  3510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3512. public WorkShiftRow this[int index] {
  3513. get {
  3514. return ((WorkShiftRow)(this.Rows[index]));
  3515. }
  3516. }
  3517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3518. public event WorkShiftRowChangeEventHandler WorkShiftRowChanging;
  3519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3520. public event WorkShiftRowChangeEventHandler WorkShiftRowChanged;
  3521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3522. public event WorkShiftRowChangeEventHandler WorkShiftRowDeleting;
  3523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3524. public event WorkShiftRowChangeEventHandler WorkShiftRowDeleted;
  3525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3527. public void AddWorkShiftRow(WorkShiftRow row) {
  3528. this.Rows.Add(row);
  3529. }
  3530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3532. public WorkShiftRow AddWorkShiftRow(WaitersRow parentWaitersRowByFK_WorkShift_Waiters, CooksRow parentCooksRowByFK_WorkShift_Cooks, System.DateTime ДатаСмены) {
  3533. WorkShiftRow rowWorkShiftRow = ((WorkShiftRow)(this.NewRow()));
  3534. object[] columnValuesArray = new object[] {
  3535. null,
  3536. null,
  3537. null,
  3538. ДатаСмены};
  3539. if ((parentWaitersRowByFK_WorkShift_Waiters != null)) {
  3540. columnValuesArray[1] = parentWaitersRowByFK_WorkShift_Waiters[0];
  3541. }
  3542. if ((parentCooksRowByFK_WorkShift_Cooks != null)) {
  3543. columnValuesArray[2] = parentCooksRowByFK_WorkShift_Cooks[0];
  3544. }
  3545. rowWorkShiftRow.ItemArray = columnValuesArray;
  3546. this.Rows.Add(rowWorkShiftRow);
  3547. return rowWorkShiftRow;
  3548. }
  3549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3551. public WorkShiftRow FindByID(int ID) {
  3552. return ((WorkShiftRow)(this.Rows.Find(new object[] {
  3553. ID})));
  3554. }
  3555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3557. public override global::System.Data.DataTable Clone() {
  3558. WorkShiftDataTable cln = ((WorkShiftDataTable)(base.Clone()));
  3559. cln.InitVars();
  3560. return cln;
  3561. }
  3562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3564. protected override global::System.Data.DataTable CreateInstance() {
  3565. return new WorkShiftDataTable();
  3566. }
  3567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3569. internal void InitVars() {
  3570. this.columnID = base.Columns["ID"];
  3571. this.columnIDОфицианта = base.Columns["IDОфицианта"];
  3572. this.columnIDПовара = base.Columns["IDПовара"];
  3573. this.columnДатаСмены = base.Columns["ДатаСмены"];
  3574. }
  3575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3577. private void InitClass() {
  3578. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3579. base.Columns.Add(this.columnID);
  3580. this.columnIDОфицианта = new global::System.Data.DataColumn("IDОфицианта", typeof(int), null, global::System.Data.MappingType.Element);
  3581. base.Columns.Add(this.columnIDОфицианта);
  3582. this.columnIDПовара = new global::System.Data.DataColumn("IDПовара", typeof(int), null, global::System.Data.MappingType.Element);
  3583. base.Columns.Add(this.columnIDПовара);
  3584. this.columnДатаСмены = new global::System.Data.DataColumn("ДатаСмены", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3585. base.Columns.Add(this.columnДатаСмены);
  3586. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3587. this.columnID}, true));
  3588. this.columnID.AutoIncrement = true;
  3589. this.columnID.AutoIncrementSeed = -1;
  3590. this.columnID.AutoIncrementStep = -1;
  3591. this.columnID.AllowDBNull = false;
  3592. this.columnID.ReadOnly = true;
  3593. this.columnID.Unique = true;
  3594. }
  3595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3597. public WorkShiftRow NewWorkShiftRow() {
  3598. return ((WorkShiftRow)(this.NewRow()));
  3599. }
  3600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3602. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3603. return new WorkShiftRow(builder);
  3604. }
  3605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3607. protected override global::System.Type GetRowType() {
  3608. return typeof(WorkShiftRow);
  3609. }
  3610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3612. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3613. base.OnRowChanged(e);
  3614. if ((this.WorkShiftRowChanged != null)) {
  3615. this.WorkShiftRowChanged(this, new WorkShiftRowChangeEvent(((WorkShiftRow)(e.Row)), e.Action));
  3616. }
  3617. }
  3618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3620. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3621. base.OnRowChanging(e);
  3622. if ((this.WorkShiftRowChanging != null)) {
  3623. this.WorkShiftRowChanging(this, new WorkShiftRowChangeEvent(((WorkShiftRow)(e.Row)), e.Action));
  3624. }
  3625. }
  3626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3628. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3629. base.OnRowDeleted(e);
  3630. if ((this.WorkShiftRowDeleted != null)) {
  3631. this.WorkShiftRowDeleted(this, new WorkShiftRowChangeEvent(((WorkShiftRow)(e.Row)), e.Action));
  3632. }
  3633. }
  3634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3636. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3637. base.OnRowDeleting(e);
  3638. if ((this.WorkShiftRowDeleting != null)) {
  3639. this.WorkShiftRowDeleting(this, new WorkShiftRowChangeEvent(((WorkShiftRow)(e.Row)), e.Action));
  3640. }
  3641. }
  3642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3644. public void RemoveWorkShiftRow(WorkShiftRow row) {
  3645. this.Rows.Remove(row);
  3646. }
  3647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3649. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3650. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3651. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3652. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  3653. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3654. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3655. any1.MinOccurs = new decimal(0);
  3656. any1.MaxOccurs = decimal.MaxValue;
  3657. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3658. sequence.Items.Add(any1);
  3659. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3660. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3661. any2.MinOccurs = new decimal(1);
  3662. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3663. sequence.Items.Add(any2);
  3664. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3665. attribute1.Name = "namespace";
  3666. attribute1.FixedValue = ds.Namespace;
  3667. type.Attributes.Add(attribute1);
  3668. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3669. attribute2.Name = "tableTypeName";
  3670. attribute2.FixedValue = "WorkShiftDataTable";
  3671. type.Attributes.Add(attribute2);
  3672. type.Particle = sequence;
  3673. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3674. if (xs.Contains(dsSchema.TargetNamespace)) {
  3675. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3676. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3677. try {
  3678. global::System.Xml.Schema.XmlSchema schema = null;
  3679. dsSchema.Write(s1);
  3680. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3681. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3682. s2.SetLength(0);
  3683. schema.Write(s2);
  3684. if ((s1.Length == s2.Length)) {
  3685. s1.Position = 0;
  3686. s2.Position = 0;
  3687. for (; ((s1.Position != s1.Length)
  3688. && (s1.ReadByte() == s2.ReadByte())); ) {
  3689. ;
  3690. }
  3691. if ((s1.Position == s1.Length)) {
  3692. return type;
  3693. }
  3694. }
  3695. }
  3696. }
  3697. finally {
  3698. if ((s1 != null)) {
  3699. s1.Close();
  3700. }
  3701. if ((s2 != null)) {
  3702. s2.Close();
  3703. }
  3704. }
  3705. }
  3706. xs.Add(dsSchema);
  3707. return type;
  3708. }
  3709. }
  3710. /// <summary>
  3711. ///Represents the strongly named DataTable class.
  3712. ///</summary>
  3713. [global::System.Serializable()]
  3714. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3715. public partial class СategoriesDataTable : global::System.Data.TypedTableBase<СategoriesRow> {
  3716. private global::System.Data.DataColumn columnID;
  3717. private global::System.Data.DataColumn columnНазвание;
  3718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3720. public СategoriesDataTable() {
  3721. this.TableName = "Сategories";
  3722. this.BeginInit();
  3723. this.InitClass();
  3724. this.EndInit();
  3725. }
  3726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3728. internal СategoriesDataTable(global::System.Data.DataTable table) {
  3729. this.TableName = table.TableName;
  3730. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3731. this.CaseSensitive = table.CaseSensitive;
  3732. }
  3733. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3734. this.Locale = table.Locale;
  3735. }
  3736. if ((table.Namespace != table.DataSet.Namespace)) {
  3737. this.Namespace = table.Namespace;
  3738. }
  3739. this.Prefix = table.Prefix;
  3740. this.MinimumCapacity = table.MinimumCapacity;
  3741. }
  3742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3744. protected СategoriesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3745. base(info, context) {
  3746. this.InitVars();
  3747. }
  3748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3750. public global::System.Data.DataColumn IDColumn {
  3751. get {
  3752. return this.columnID;
  3753. }
  3754. }
  3755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3757. public global::System.Data.DataColumn НазваниеColumn {
  3758. get {
  3759. return this.columnНазвание;
  3760. }
  3761. }
  3762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3764. [global::System.ComponentModel.Browsable(false)]
  3765. public int Count {
  3766. get {
  3767. return this.Rows.Count;
  3768. }
  3769. }
  3770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3772. public СategoriesRow this[int index] {
  3773. get {
  3774. return ((СategoriesRow)(this.Rows[index]));
  3775. }
  3776. }
  3777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3778. public event СategoriesRowChangeEventHandler СategoriesRowChanging;
  3779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3780. public event СategoriesRowChangeEventHandler СategoriesRowChanged;
  3781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3782. public event СategoriesRowChangeEventHandler СategoriesRowDeleting;
  3783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3784. public event СategoriesRowChangeEventHandler СategoriesRowDeleted;
  3785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3787. public void AddСategoriesRow(СategoriesRow row) {
  3788. this.Rows.Add(row);
  3789. }
  3790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3792. public СategoriesRow AddСategoriesRow(string Название) {
  3793. СategoriesRow rowСategoriesRow = ((СategoriesRow)(this.NewRow()));
  3794. object[] columnValuesArray = new object[] {
  3795. null,
  3796. Название};
  3797. rowСategoriesRow.ItemArray = columnValuesArray;
  3798. this.Rows.Add(rowСategoriesRow);
  3799. return rowСategoriesRow;
  3800. }
  3801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3803. public СategoriesRow FindByID(int ID) {
  3804. return ((СategoriesRow)(this.Rows.Find(new object[] {
  3805. ID})));
  3806. }
  3807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3809. public override global::System.Data.DataTable Clone() {
  3810. СategoriesDataTable cln = ((СategoriesDataTable)(base.Clone()));
  3811. cln.InitVars();
  3812. return cln;
  3813. }
  3814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3816. protected override global::System.Data.DataTable CreateInstance() {
  3817. return new СategoriesDataTable();
  3818. }
  3819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3821. internal void InitVars() {
  3822. this.columnID = base.Columns["ID"];
  3823. this.columnНазвание = base.Columns["Название"];
  3824. }
  3825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3827. private void InitClass() {
  3828. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3829. base.Columns.Add(this.columnID);
  3830. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  3831. base.Columns.Add(this.columnНазвание);
  3832. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3833. this.columnID}, true));
  3834. this.columnID.AutoIncrement = true;
  3835. this.columnID.AutoIncrementSeed = -1;
  3836. this.columnID.AutoIncrementStep = -1;
  3837. this.columnID.AllowDBNull = false;
  3838. this.columnID.ReadOnly = true;
  3839. this.columnID.Unique = true;
  3840. this.columnНазвание.MaxLength = 50;
  3841. }
  3842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3844. public СategoriesRow NewСategoriesRow() {
  3845. return ((СategoriesRow)(this.NewRow()));
  3846. }
  3847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3849. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3850. return new СategoriesRow(builder);
  3851. }
  3852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3854. protected override global::System.Type GetRowType() {
  3855. return typeof(СategoriesRow);
  3856. }
  3857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3859. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3860. base.OnRowChanged(e);
  3861. if ((this.СategoriesRowChanged != null)) {
  3862. this.СategoriesRowChanged(this, new СategoriesRowChangeEvent(((СategoriesRow)(e.Row)), e.Action));
  3863. }
  3864. }
  3865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3867. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3868. base.OnRowChanging(e);
  3869. if ((this.СategoriesRowChanging != null)) {
  3870. this.СategoriesRowChanging(this, new СategoriesRowChangeEvent(((СategoriesRow)(e.Row)), e.Action));
  3871. }
  3872. }
  3873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3875. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3876. base.OnRowDeleted(e);
  3877. if ((this.СategoriesRowDeleted != null)) {
  3878. this.СategoriesRowDeleted(this, new СategoriesRowChangeEvent(((СategoriesRow)(e.Row)), e.Action));
  3879. }
  3880. }
  3881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3883. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3884. base.OnRowDeleting(e);
  3885. if ((this.СategoriesRowDeleting != null)) {
  3886. this.СategoriesRowDeleting(this, new СategoriesRowChangeEvent(((СategoriesRow)(e.Row)), e.Action));
  3887. }
  3888. }
  3889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3891. public void RemoveСategoriesRow(СategoriesRow row) {
  3892. this.Rows.Remove(row);
  3893. }
  3894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3896. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3897. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3898. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3899. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  3900. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3901. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3902. any1.MinOccurs = new decimal(0);
  3903. any1.MaxOccurs = decimal.MaxValue;
  3904. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3905. sequence.Items.Add(any1);
  3906. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3907. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3908. any2.MinOccurs = new decimal(1);
  3909. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3910. sequence.Items.Add(any2);
  3911. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3912. attribute1.Name = "namespace";
  3913. attribute1.FixedValue = ds.Namespace;
  3914. type.Attributes.Add(attribute1);
  3915. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3916. attribute2.Name = "tableTypeName";
  3917. attribute2.FixedValue = "СategoriesDataTable";
  3918. type.Attributes.Add(attribute2);
  3919. type.Particle = sequence;
  3920. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3921. if (xs.Contains(dsSchema.TargetNamespace)) {
  3922. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3923. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3924. try {
  3925. global::System.Xml.Schema.XmlSchema schema = null;
  3926. dsSchema.Write(s1);
  3927. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3928. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3929. s2.SetLength(0);
  3930. schema.Write(s2);
  3931. if ((s1.Length == s2.Length)) {
  3932. s1.Position = 0;
  3933. s2.Position = 0;
  3934. for (; ((s1.Position != s1.Length)
  3935. && (s1.ReadByte() == s2.ReadByte())); ) {
  3936. ;
  3937. }
  3938. if ((s1.Position == s1.Length)) {
  3939. return type;
  3940. }
  3941. }
  3942. }
  3943. }
  3944. finally {
  3945. if ((s1 != null)) {
  3946. s1.Close();
  3947. }
  3948. if ((s2 != null)) {
  3949. s2.Close();
  3950. }
  3951. }
  3952. }
  3953. xs.Add(dsSchema);
  3954. return type;
  3955. }
  3956. }
  3957. /// <summary>
  3958. ///Represents the strongly named DataTable class.
  3959. ///</summary>
  3960. [global::System.Serializable()]
  3961. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3962. public partial class СменыDataTable : global::System.Data.TypedTableBase<СменыRow> {
  3963. private global::System.Data.DataColumn columnДатаСмены;
  3964. private global::System.Data.DataColumn columnПовар;
  3965. private global::System.Data.DataColumn columnОфициант;
  3966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3968. public СменыDataTable() {
  3969. this.TableName = "Смены";
  3970. this.BeginInit();
  3971. this.InitClass();
  3972. this.EndInit();
  3973. }
  3974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3976. internal СменыDataTable(global::System.Data.DataTable table) {
  3977. this.TableName = table.TableName;
  3978. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3979. this.CaseSensitive = table.CaseSensitive;
  3980. }
  3981. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3982. this.Locale = table.Locale;
  3983. }
  3984. if ((table.Namespace != table.DataSet.Namespace)) {
  3985. this.Namespace = table.Namespace;
  3986. }
  3987. this.Prefix = table.Prefix;
  3988. this.MinimumCapacity = table.MinimumCapacity;
  3989. }
  3990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3992. protected СменыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3993. base(info, context) {
  3994. this.InitVars();
  3995. }
  3996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3998. public global::System.Data.DataColumn ДатаСменыColumn {
  3999. get {
  4000. return this.columnДатаСмены;
  4001. }
  4002. }
  4003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4005. public global::System.Data.DataColumn ПоварColumn {
  4006. get {
  4007. return this.columnПовар;
  4008. }
  4009. }
  4010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4012. public global::System.Data.DataColumn ОфициантColumn {
  4013. get {
  4014. return this.columnОфициант;
  4015. }
  4016. }
  4017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4019. [global::System.ComponentModel.Browsable(false)]
  4020. public int Count {
  4021. get {
  4022. return this.Rows.Count;
  4023. }
  4024. }
  4025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4027. public СменыRow this[int index] {
  4028. get {
  4029. return ((СменыRow)(this.Rows[index]));
  4030. }
  4031. }
  4032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4033. public event СменыRowChangeEventHandler СменыRowChanging;
  4034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4035. public event СменыRowChangeEventHandler СменыRowChanged;
  4036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4037. public event СменыRowChangeEventHandler СменыRowDeleting;
  4038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4039. public event СменыRowChangeEventHandler СменыRowDeleted;
  4040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4042. public void AddСменыRow(СменыRow row) {
  4043. this.Rows.Add(row);
  4044. }
  4045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4047. public СменыRow AddСменыRow(System.DateTime ДатаСмены, string Повар, string Официант) {
  4048. СменыRow rowСменыRow = ((СменыRow)(this.NewRow()));
  4049. object[] columnValuesArray = new object[] {
  4050. ДатаСмены,
  4051. Повар,
  4052. Официант};
  4053. rowСменыRow.ItemArray = columnValuesArray;
  4054. this.Rows.Add(rowСменыRow);
  4055. return rowСменыRow;
  4056. }
  4057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4059. public override global::System.Data.DataTable Clone() {
  4060. СменыDataTable cln = ((СменыDataTable)(base.Clone()));
  4061. cln.InitVars();
  4062. return cln;
  4063. }
  4064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4066. protected override global::System.Data.DataTable CreateInstance() {
  4067. return new СменыDataTable();
  4068. }
  4069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4071. internal void InitVars() {
  4072. this.columnДатаСмены = base.Columns["ДатаСмены"];
  4073. this.columnПовар = base.Columns["Повар"];
  4074. this.columnОфициант = base.Columns["Официант"];
  4075. }
  4076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4078. private void InitClass() {
  4079. this.columnДатаСмены = new global::System.Data.DataColumn("ДатаСмены", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  4080. base.Columns.Add(this.columnДатаСмены);
  4081. this.columnПовар = new global::System.Data.DataColumn("Повар", typeof(string), null, global::System.Data.MappingType.Element);
  4082. base.Columns.Add(this.columnПовар);
  4083. this.columnОфициант = new global::System.Data.DataColumn("Официант", typeof(string), null, global::System.Data.MappingType.Element);
  4084. base.Columns.Add(this.columnОфициант);
  4085. this.columnПовар.MaxLength = 50;
  4086. this.columnОфициант.MaxLength = 50;
  4087. }
  4088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4090. public СменыRow NewСменыRow() {
  4091. return ((СменыRow)(this.NewRow()));
  4092. }
  4093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4095. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4096. return new СменыRow(builder);
  4097. }
  4098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4100. protected override global::System.Type GetRowType() {
  4101. return typeof(СменыRow);
  4102. }
  4103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4105. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4106. base.OnRowChanged(e);
  4107. if ((this.СменыRowChanged != null)) {
  4108. this.СменыRowChanged(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  4109. }
  4110. }
  4111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4113. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4114. base.OnRowChanging(e);
  4115. if ((this.СменыRowChanging != null)) {
  4116. this.СменыRowChanging(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  4117. }
  4118. }
  4119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4121. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4122. base.OnRowDeleted(e);
  4123. if ((this.СменыRowDeleted != null)) {
  4124. this.СменыRowDeleted(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  4125. }
  4126. }
  4127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4129. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4130. base.OnRowDeleting(e);
  4131. if ((this.СменыRowDeleting != null)) {
  4132. this.СменыRowDeleting(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  4133. }
  4134. }
  4135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4137. public void RemoveСменыRow(СменыRow row) {
  4138. this.Rows.Remove(row);
  4139. }
  4140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4142. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4143. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4144. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4145. KazarinKafeDataSet ds = new KazarinKafeDataSet();
  4146. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4147. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4148. any1.MinOccurs = new decimal(0);
  4149. any1.MaxOccurs = decimal.MaxValue;
  4150. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4151. sequence.Items.Add(any1);
  4152. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4153. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4154. any2.MinOccurs = new decimal(1);
  4155. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4156. sequence.Items.Add(any2);
  4157. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4158. attribute1.Name = "namespace";
  4159. attribute1.FixedValue = ds.Namespace;
  4160. type.Attributes.Add(attribute1);
  4161. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4162. attribute2.Name = "tableTypeName";
  4163. attribute2.FixedValue = "СменыDataTable";
  4164. type.Attributes.Add(attribute2);
  4165. type.Particle = sequence;
  4166. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4167. if (xs.Contains(dsSchema.TargetNamespace)) {
  4168. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4169. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4170. try {
  4171. global::System.Xml.Schema.XmlSchema schema = null;
  4172. dsSchema.Write(s1);
  4173. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4174. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4175. s2.SetLength(0);
  4176. schema.Write(s2);
  4177. if ((s1.Length == s2.Length)) {
  4178. s1.Position = 0;
  4179. s2.Position = 0;
  4180. for (; ((s1.Position != s1.Length)
  4181. && (s1.ReadByte() == s2.ReadByte())); ) {
  4182. ;
  4183. }
  4184. if ((s1.Position == s1.Length)) {
  4185. return type;
  4186. }
  4187. }
  4188. }
  4189. }
  4190. finally {
  4191. if ((s1 != null)) {
  4192. s1.Close();
  4193. }
  4194. if ((s2 != null)) {
  4195. s2.Close();
  4196. }
  4197. }
  4198. }
  4199. xs.Add(dsSchema);
  4200. return type;
  4201. }
  4202. }
  4203. /// <summary>
  4204. ///Represents strongly named DataRow class.
  4205. ///</summary>
  4206. public partial class CooksRow : global::System.Data.DataRow {
  4207. private CooksDataTable tableCooks;
  4208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4210. internal CooksRow(global::System.Data.DataRowBuilder rb) :
  4211. base(rb) {
  4212. this.tableCooks = ((CooksDataTable)(this.Table));
  4213. }
  4214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4216. public int IDПовара {
  4217. get {
  4218. return ((int)(this[this.tableCooks.IDПовараColumn]));
  4219. }
  4220. set {
  4221. this[this.tableCooks.IDПовараColumn] = value;
  4222. }
  4223. }
  4224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4226. public string Фамилия {
  4227. get {
  4228. try {
  4229. return ((string)(this[this.tableCooks.ФамилияColumn]));
  4230. }
  4231. catch (global::System.InvalidCastException e) {
  4232. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Cooks\' равно DBNull.", e);
  4233. }
  4234. }
  4235. set {
  4236. this[this.tableCooks.ФамилияColumn] = value;
  4237. }
  4238. }
  4239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4241. public string Имя {
  4242. get {
  4243. try {
  4244. return ((string)(this[this.tableCooks.ИмяColumn]));
  4245. }
  4246. catch (global::System.InvalidCastException e) {
  4247. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'Cooks\' равно DBNull.", e);
  4248. }
  4249. }
  4250. set {
  4251. this[this.tableCooks.ИмяColumn] = value;
  4252. }
  4253. }
  4254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4256. public string Отчество {
  4257. get {
  4258. try {
  4259. return ((string)(this[this.tableCooks.ОтчествоColumn]));
  4260. }
  4261. catch (global::System.InvalidCastException e) {
  4262. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'Cooks\' равно DBNull.", e);
  4263. }
  4264. }
  4265. set {
  4266. this[this.tableCooks.ОтчествоColumn] = value;
  4267. }
  4268. }
  4269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4271. public EmployeesRow EmployeesRow {
  4272. get {
  4273. return ((EmployeesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Cooks_Employees1"])));
  4274. }
  4275. set {
  4276. this.SetParentRow(value, this.Table.ParentRelations["FK_Cooks_Employees1"]);
  4277. }
  4278. }
  4279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4281. public bool IsФамилияNull() {
  4282. return this.IsNull(this.tableCooks.ФамилияColumn);
  4283. }
  4284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4286. public void SetФамилияNull() {
  4287. this[this.tableCooks.ФамилияColumn] = global::System.Convert.DBNull;
  4288. }
  4289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4291. public bool IsИмяNull() {
  4292. return this.IsNull(this.tableCooks.ИмяColumn);
  4293. }
  4294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4296. public void SetИмяNull() {
  4297. this[this.tableCooks.ИмяColumn] = global::System.Convert.DBNull;
  4298. }
  4299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4301. public bool IsОтчествоNull() {
  4302. return this.IsNull(this.tableCooks.ОтчествоColumn);
  4303. }
  4304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4306. public void SetОтчествоNull() {
  4307. this[this.tableCooks.ОтчествоColumn] = global::System.Convert.DBNull;
  4308. }
  4309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4311. public WorkShiftRow[] GetWorkShiftRows() {
  4312. if ((this.Table.ChildRelations["FK_WorkShift_Cooks"] == null)) {
  4313. return new WorkShiftRow[0];
  4314. }
  4315. else {
  4316. return ((WorkShiftRow[])(base.GetChildRows(this.Table.ChildRelations["FK_WorkShift_Cooks"])));
  4317. }
  4318. }
  4319. }
  4320. /// <summary>
  4321. ///Represents strongly named DataRow class.
  4322. ///</summary>
  4323. public partial class EmployeesRow : global::System.Data.DataRow {
  4324. private EmployeesDataTable tableEmployees;
  4325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4327. internal EmployeesRow(global::System.Data.DataRowBuilder rb) :
  4328. base(rb) {
  4329. this.tableEmployees = ((EmployeesDataTable)(this.Table));
  4330. }
  4331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4333. public int ID {
  4334. get {
  4335. return ((int)(this[this.tableEmployees.IDColumn]));
  4336. }
  4337. set {
  4338. this[this.tableEmployees.IDColumn] = value;
  4339. }
  4340. }
  4341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4343. public int Роль {
  4344. get {
  4345. try {
  4346. return ((int)(this[this.tableEmployees.РольColumn]));
  4347. }
  4348. catch (global::System.InvalidCastException e) {
  4349. throw new global::System.Data.StrongTypingException("Значение для столбца \'Роль\' в таблице \'Employees\' равно DBNull.", e);
  4350. }
  4351. }
  4352. set {
  4353. this[this.tableEmployees.РольColumn] = value;
  4354. }
  4355. }
  4356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4358. public System.DateTime ДатаРождения {
  4359. get {
  4360. try {
  4361. return ((global::System.DateTime)(this[this.tableEmployees.ДатаРожденияColumn]));
  4362. }
  4363. catch (global::System.InvalidCastException e) {
  4364. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаРождения\' в таблице \'Employees\' равно DBNull.", e);
  4365. }
  4366. }
  4367. set {
  4368. this[this.tableEmployees.ДатаРожденияColumn] = value;
  4369. }
  4370. }
  4371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4373. public string Телефон {
  4374. get {
  4375. try {
  4376. return ((string)(this[this.tableEmployees.ТелефонColumn]));
  4377. }
  4378. catch (global::System.InvalidCastException e) {
  4379. throw new global::System.Data.StrongTypingException("Значение для столбца \'Телефон\' в таблице \'Employees\' равно DBNull.", e);
  4380. }
  4381. }
  4382. set {
  4383. this[this.tableEmployees.ТелефонColumn] = value;
  4384. }
  4385. }
  4386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4388. public string Адрес {
  4389. get {
  4390. try {
  4391. return ((string)(this[this.tableEmployees.АдресColumn]));
  4392. }
  4393. catch (global::System.InvalidCastException e) {
  4394. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес\' в таблице \'Employees\' равно DBNull.", e);
  4395. }
  4396. }
  4397. set {
  4398. this[this.tableEmployees.АдресColumn] = value;
  4399. }
  4400. }
  4401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4403. public string Username {
  4404. get {
  4405. try {
  4406. return ((string)(this[this.tableEmployees.UsernameColumn]));
  4407. }
  4408. catch (global::System.InvalidCastException e) {
  4409. throw new global::System.Data.StrongTypingException("Значение для столбца \'Username\' в таблице \'Employees\' равно DBNull.", e);
  4410. }
  4411. }
  4412. set {
  4413. this[this.tableEmployees.UsernameColumn] = value;
  4414. }
  4415. }
  4416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4418. public string Password {
  4419. get {
  4420. try {
  4421. return ((string)(this[this.tableEmployees.PasswordColumn]));
  4422. }
  4423. catch (global::System.InvalidCastException e) {
  4424. throw new global::System.Data.StrongTypingException("Значение для столбца \'Password\' в таблице \'Employees\' равно DBNull.", e);
  4425. }
  4426. }
  4427. set {
  4428. this[this.tableEmployees.PasswordColumn] = value;
  4429. }
  4430. }
  4431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4433. public int Статус {
  4434. get {
  4435. try {
  4436. return ((int)(this[this.tableEmployees.СтатусColumn]));
  4437. }
  4438. catch (global::System.InvalidCastException e) {
  4439. throw new global::System.Data.StrongTypingException("Значение для столбца \'Статус\' в таблице \'Employees\' равно DBNull.", e);
  4440. }
  4441. }
  4442. set {
  4443. this[this.tableEmployees.СтатусColumn] = value;
  4444. }
  4445. }
  4446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4448. public RolesRow RolesRow {
  4449. get {
  4450. return ((RolesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Employees_Roles"])));
  4451. }
  4452. set {
  4453. this.SetParentRow(value, this.Table.ParentRelations["FK_Employees_Roles"]);
  4454. }
  4455. }
  4456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4458. public bool IsРольNull() {
  4459. return this.IsNull(this.tableEmployees.РольColumn);
  4460. }
  4461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4463. public void SetРольNull() {
  4464. this[this.tableEmployees.РольColumn] = global::System.Convert.DBNull;
  4465. }
  4466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4468. public bool IsДатаРожденияNull() {
  4469. return this.IsNull(this.tableEmployees.ДатаРожденияColumn);
  4470. }
  4471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4473. public void SetДатаРожденияNull() {
  4474. this[this.tableEmployees.ДатаРожденияColumn] = global::System.Convert.DBNull;
  4475. }
  4476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4478. public bool IsТелефонNull() {
  4479. return this.IsNull(this.tableEmployees.ТелефонColumn);
  4480. }
  4481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4483. public void SetТелефонNull() {
  4484. this[this.tableEmployees.ТелефонColumn] = global::System.Convert.DBNull;
  4485. }
  4486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4488. public bool IsАдресNull() {
  4489. return this.IsNull(this.tableEmployees.АдресColumn);
  4490. }
  4491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4493. public void SetАдресNull() {
  4494. this[this.tableEmployees.АдресColumn] = global::System.Convert.DBNull;
  4495. }
  4496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4498. public bool IsUsernameNull() {
  4499. return this.IsNull(this.tableEmployees.UsernameColumn);
  4500. }
  4501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4503. public void SetUsernameNull() {
  4504. this[this.tableEmployees.UsernameColumn] = global::System.Convert.DBNull;
  4505. }
  4506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4508. public bool IsPasswordNull() {
  4509. return this.IsNull(this.tableEmployees.PasswordColumn);
  4510. }
  4511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4513. public void SetPasswordNull() {
  4514. this[this.tableEmployees.PasswordColumn] = global::System.Convert.DBNull;
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4518. public bool IsСтатусNull() {
  4519. return this.IsNull(this.tableEmployees.СтатусColumn);
  4520. }
  4521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4523. public void SetСтатусNull() {
  4524. this[this.tableEmployees.СтатусColumn] = global::System.Convert.DBNull;
  4525. }
  4526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4528. public CooksRow[] GetCooksRows() {
  4529. if ((this.Table.ChildRelations["FK_Cooks_Employees1"] == null)) {
  4530. return new CooksRow[0];
  4531. }
  4532. else {
  4533. return ((CooksRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Cooks_Employees1"])));
  4534. }
  4535. }
  4536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4538. public WaitersRow[] GetWaitersRows() {
  4539. if ((this.Table.ChildRelations["FK_Waiters_Employees1"] == null)) {
  4540. return new WaitersRow[0];
  4541. }
  4542. else {
  4543. return ((WaitersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Waiters_Employees1"])));
  4544. }
  4545. }
  4546. }
  4547. /// <summary>
  4548. ///Represents strongly named DataRow class.
  4549. ///</summary>
  4550. public partial class OrderedDishesRow : global::System.Data.DataRow {
  4551. private OrderedDishesDataTable tableOrderedDishes;
  4552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4554. internal OrderedDishesRow(global::System.Data.DataRowBuilder rb) :
  4555. base(rb) {
  4556. this.tableOrderedDishes = ((OrderedDishesDataTable)(this.Table));
  4557. }
  4558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4560. public int ID {
  4561. get {
  4562. return ((int)(this[this.tableOrderedDishes.IDColumn]));
  4563. }
  4564. set {
  4565. this[this.tableOrderedDishes.IDColumn] = value;
  4566. }
  4567. }
  4568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4570. public int IDЗаказа {
  4571. get {
  4572. try {
  4573. return ((int)(this[this.tableOrderedDishes.IDЗаказаColumn]));
  4574. }
  4575. catch (global::System.InvalidCastException e) {
  4576. throw new global::System.Data.StrongTypingException("Значение для столбца \'IDЗаказа\' в таблице \'OrderedDishes\' равно DBNull.", e);
  4577. }
  4578. }
  4579. set {
  4580. this[this.tableOrderedDishes.IDЗаказаColumn] = value;
  4581. }
  4582. }
  4583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4585. public int IDПродукт {
  4586. get {
  4587. try {
  4588. return ((int)(this[this.tableOrderedDishes.IDПродуктColumn]));
  4589. }
  4590. catch (global::System.InvalidCastException e) {
  4591. throw new global::System.Data.StrongTypingException("Значение для столбца \'IDПродукт\' в таблице \'OrderedDishes\' равно DBNull.", e);
  4592. }
  4593. }
  4594. set {
  4595. this[this.tableOrderedDishes.IDПродуктColumn] = value;
  4596. }
  4597. }
  4598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4600. public int Количество {
  4601. get {
  4602. try {
  4603. return ((int)(this[this.tableOrderedDishes.КоличествоColumn]));
  4604. }
  4605. catch (global::System.InvalidCastException e) {
  4606. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'OrderedDishes\' равно DBNull.", e);
  4607. }
  4608. }
  4609. set {
  4610. this[this.tableOrderedDishes.КоличествоColumn] = value;
  4611. }
  4612. }
  4613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4615. public OrdersRow OrdersRow {
  4616. get {
  4617. return ((OrdersRow)(this.GetParentRow(this.Table.ParentRelations["FK_OrderedDishes_Orders"])));
  4618. }
  4619. set {
  4620. this.SetParentRow(value, this.Table.ParentRelations["FK_OrderedDishes_Orders"]);
  4621. }
  4622. }
  4623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4625. public ProductRow ProductRow {
  4626. get {
  4627. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_OrderedDishes_Product"])));
  4628. }
  4629. set {
  4630. this.SetParentRow(value, this.Table.ParentRelations["FK_OrderedDishes_Product"]);
  4631. }
  4632. }
  4633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4635. public bool IsIDЗаказаNull() {
  4636. return this.IsNull(this.tableOrderedDishes.IDЗаказаColumn);
  4637. }
  4638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4640. public void SetIDЗаказаNull() {
  4641. this[this.tableOrderedDishes.IDЗаказаColumn] = global::System.Convert.DBNull;
  4642. }
  4643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4645. public bool IsIDПродуктNull() {
  4646. return this.IsNull(this.tableOrderedDishes.IDПродуктColumn);
  4647. }
  4648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4650. public void SetIDПродуктNull() {
  4651. this[this.tableOrderedDishes.IDПродуктColumn] = global::System.Convert.DBNull;
  4652. }
  4653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4655. public bool IsКоличествоNull() {
  4656. return this.IsNull(this.tableOrderedDishes.КоличествоColumn);
  4657. }
  4658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4660. public void SetКоличествоNull() {
  4661. this[this.tableOrderedDishes.КоличествоColumn] = global::System.Convert.DBNull;
  4662. }
  4663. }
  4664. /// <summary>
  4665. ///Represents strongly named DataRow class.
  4666. ///</summary>
  4667. public partial class OrdersRow : global::System.Data.DataRow {
  4668. private OrdersDataTable tableOrders;
  4669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4671. internal OrdersRow(global::System.Data.DataRowBuilder rb) :
  4672. base(rb) {
  4673. this.tableOrders = ((OrdersDataTable)(this.Table));
  4674. }
  4675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4677. public int ID {
  4678. get {
  4679. return ((int)(this[this.tableOrders.IDColumn]));
  4680. }
  4681. set {
  4682. this[this.tableOrders.IDColumn] = value;
  4683. }
  4684. }
  4685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4687. public System.DateTime ДатаЗаказа {
  4688. get {
  4689. try {
  4690. return ((global::System.DateTime)(this[this.tableOrders.ДатаЗаказаColumn]));
  4691. }
  4692. catch (global::System.InvalidCastException e) {
  4693. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаЗаказа\' в таблице \'Orders\' равно DBNull.", e);
  4694. }
  4695. }
  4696. set {
  4697. this[this.tableOrders.ДатаЗаказаColumn] = value;
  4698. }
  4699. }
  4700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4702. public int СтатусЗаказа {
  4703. get {
  4704. try {
  4705. return ((int)(this[this.tableOrders.СтатусЗаказаColumn]));
  4706. }
  4707. catch (global::System.InvalidCastException e) {
  4708. throw new global::System.Data.StrongTypingException("Значение для столбца \'СтатусЗаказа\' в таблице \'Orders\' равно DBNull.", e);
  4709. }
  4710. }
  4711. set {
  4712. this[this.tableOrders.СтатусЗаказаColumn] = value;
  4713. }
  4714. }
  4715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4717. public int СпособОплаты {
  4718. get {
  4719. try {
  4720. return ((int)(this[this.tableOrders.СпособОплатыColumn]));
  4721. }
  4722. catch (global::System.InvalidCastException e) {
  4723. throw new global::System.Data.StrongTypingException("Значение для столбца \'СпособОплаты\' в таблице \'Orders\' равно DBNull.", e);
  4724. }
  4725. }
  4726. set {
  4727. this[this.tableOrders.СпособОплатыColumn] = value;
  4728. }
  4729. }
  4730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4732. public decimal Стоимость {
  4733. get {
  4734. try {
  4735. return ((decimal)(this[this.tableOrders.СтоимостьColumn]));
  4736. }
  4737. catch (global::System.InvalidCastException e) {
  4738. throw new global::System.Data.StrongTypingException("Значение для столбца \'Стоимость\' в таблице \'Orders\' равно DBNull.", e);
  4739. }
  4740. }
  4741. set {
  4742. this[this.tableOrders.СтоимостьColumn] = value;
  4743. }
  4744. }
  4745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4747. public int Столик {
  4748. get {
  4749. try {
  4750. return ((int)(this[this.tableOrders.СтоликColumn]));
  4751. }
  4752. catch (global::System.InvalidCastException e) {
  4753. throw new global::System.Data.StrongTypingException("Значение для столбца \'Столик\' в таблице \'Orders\' равно DBNull.", e);
  4754. }
  4755. }
  4756. set {
  4757. this[this.tableOrders.СтоликColumn] = value;
  4758. }
  4759. }
  4760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4762. public int IDСмены {
  4763. get {
  4764. try {
  4765. return ((int)(this[this.tableOrders.IDСменыColumn]));
  4766. }
  4767. catch (global::System.InvalidCastException e) {
  4768. throw new global::System.Data.StrongTypingException("Значение для столбца \'IDСмены\' в таблице \'Orders\' равно DBNull.", e);
  4769. }
  4770. }
  4771. set {
  4772. this[this.tableOrders.IDСменыColumn] = value;
  4773. }
  4774. }
  4775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4777. public OrderStatusRow OrderStatusRow {
  4778. get {
  4779. return ((OrderStatusRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_OrderStatus"])));
  4780. }
  4781. set {
  4782. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_OrderStatus"]);
  4783. }
  4784. }
  4785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4787. public PaymentMethodRow PaymentMethodRow {
  4788. get {
  4789. return ((PaymentMethodRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_PaymentMethod"])));
  4790. }
  4791. set {
  4792. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_PaymentMethod"]);
  4793. }
  4794. }
  4795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4797. public TablesRow TablesRow {
  4798. get {
  4799. return ((TablesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Tables"])));
  4800. }
  4801. set {
  4802. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Tables"]);
  4803. }
  4804. }
  4805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4807. public WorkShiftRow WorkShiftRow {
  4808. get {
  4809. return ((WorkShiftRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_WorkShift"])));
  4810. }
  4811. set {
  4812. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_WorkShift"]);
  4813. }
  4814. }
  4815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4817. public bool IsДатаЗаказаNull() {
  4818. return this.IsNull(this.tableOrders.ДатаЗаказаColumn);
  4819. }
  4820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4822. public void SetДатаЗаказаNull() {
  4823. this[this.tableOrders.ДатаЗаказаColumn] = global::System.Convert.DBNull;
  4824. }
  4825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4827. public bool IsСтатусЗаказаNull() {
  4828. return this.IsNull(this.tableOrders.СтатусЗаказаColumn);
  4829. }
  4830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4832. public void SetСтатусЗаказаNull() {
  4833. this[this.tableOrders.СтатусЗаказаColumn] = global::System.Convert.DBNull;
  4834. }
  4835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4837. public bool IsСпособОплатыNull() {
  4838. return this.IsNull(this.tableOrders.СпособОплатыColumn);
  4839. }
  4840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4842. public void SetСпособОплатыNull() {
  4843. this[this.tableOrders.СпособОплатыColumn] = global::System.Convert.DBNull;
  4844. }
  4845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4847. public bool IsСтоимостьNull() {
  4848. return this.IsNull(this.tableOrders.СтоимостьColumn);
  4849. }
  4850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4852. public void SetСтоимостьNull() {
  4853. this[this.tableOrders.СтоимостьColumn] = global::System.Convert.DBNull;
  4854. }
  4855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4857. public bool IsСтоликNull() {
  4858. return this.IsNull(this.tableOrders.СтоликColumn);
  4859. }
  4860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4862. public void SetСтоликNull() {
  4863. this[this.tableOrders.СтоликColumn] = global::System.Convert.DBNull;
  4864. }
  4865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4867. public bool IsIDСменыNull() {
  4868. return this.IsNull(this.tableOrders.IDСменыColumn);
  4869. }
  4870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4872. public void SetIDСменыNull() {
  4873. this[this.tableOrders.IDСменыColumn] = global::System.Convert.DBNull;
  4874. }
  4875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4877. public OrderedDishesRow[] GetOrderedDishesRows() {
  4878. if ((this.Table.ChildRelations["FK_OrderedDishes_Orders"] == null)) {
  4879. return new OrderedDishesRow[0];
  4880. }
  4881. else {
  4882. return ((OrderedDishesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_OrderedDishes_Orders"])));
  4883. }
  4884. }
  4885. }
  4886. /// <summary>
  4887. ///Represents strongly named DataRow class.
  4888. ///</summary>
  4889. public partial class OrderStatusRow : global::System.Data.DataRow {
  4890. private OrderStatusDataTable tableOrderStatus;
  4891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4893. internal OrderStatusRow(global::System.Data.DataRowBuilder rb) :
  4894. base(rb) {
  4895. this.tableOrderStatus = ((OrderStatusDataTable)(this.Table));
  4896. }
  4897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4899. public int ID {
  4900. get {
  4901. return ((int)(this[this.tableOrderStatus.IDColumn]));
  4902. }
  4903. set {
  4904. this[this.tableOrderStatus.IDColumn] = value;
  4905. }
  4906. }
  4907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4909. public string Название {
  4910. get {
  4911. try {
  4912. return ((string)(this[this.tableOrderStatus.НазваниеColumn]));
  4913. }
  4914. catch (global::System.InvalidCastException e) {
  4915. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'OrderStatus\' равно DBNull.", e);
  4916. }
  4917. }
  4918. set {
  4919. this[this.tableOrderStatus.НазваниеColumn] = value;
  4920. }
  4921. }
  4922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4924. public bool IsНазваниеNull() {
  4925. return this.IsNull(this.tableOrderStatus.НазваниеColumn);
  4926. }
  4927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4929. public void SetНазваниеNull() {
  4930. this[this.tableOrderStatus.НазваниеColumn] = global::System.Convert.DBNull;
  4931. }
  4932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4934. public OrdersRow[] GetOrdersRows() {
  4935. if ((this.Table.ChildRelations["FK_Orders_OrderStatus"] == null)) {
  4936. return new OrdersRow[0];
  4937. }
  4938. else {
  4939. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_OrderStatus"])));
  4940. }
  4941. }
  4942. }
  4943. /// <summary>
  4944. ///Represents strongly named DataRow class.
  4945. ///</summary>
  4946. public partial class PaymentMethodRow : global::System.Data.DataRow {
  4947. private PaymentMethodDataTable tablePaymentMethod;
  4948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4950. internal PaymentMethodRow(global::System.Data.DataRowBuilder rb) :
  4951. base(rb) {
  4952. this.tablePaymentMethod = ((PaymentMethodDataTable)(this.Table));
  4953. }
  4954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4956. public int ID {
  4957. get {
  4958. return ((int)(this[this.tablePaymentMethod.IDColumn]));
  4959. }
  4960. set {
  4961. this[this.tablePaymentMethod.IDColumn] = value;
  4962. }
  4963. }
  4964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4966. public string Название {
  4967. get {
  4968. try {
  4969. return ((string)(this[this.tablePaymentMethod.НазваниеColumn]));
  4970. }
  4971. catch (global::System.InvalidCastException e) {
  4972. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'PaymentMethod\' равно DBNull.", e);
  4973. }
  4974. }
  4975. set {
  4976. this[this.tablePaymentMethod.НазваниеColumn] = value;
  4977. }
  4978. }
  4979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4981. public bool IsНазваниеNull() {
  4982. return this.IsNull(this.tablePaymentMethod.НазваниеColumn);
  4983. }
  4984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4986. public void SetНазваниеNull() {
  4987. this[this.tablePaymentMethod.НазваниеColumn] = global::System.Convert.DBNull;
  4988. }
  4989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4991. public OrdersRow[] GetOrdersRows() {
  4992. if ((this.Table.ChildRelations["FK_Orders_PaymentMethod"] == null)) {
  4993. return new OrdersRow[0];
  4994. }
  4995. else {
  4996. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_PaymentMethod"])));
  4997. }
  4998. }
  4999. }
  5000. /// <summary>
  5001. ///Represents strongly named DataRow class.
  5002. ///</summary>
  5003. public partial class ProductRow : global::System.Data.DataRow {
  5004. private ProductDataTable tableProduct;
  5005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5007. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  5008. base(rb) {
  5009. this.tableProduct = ((ProductDataTable)(this.Table));
  5010. }
  5011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5013. public int ID {
  5014. get {
  5015. return ((int)(this[this.tableProduct.IDColumn]));
  5016. }
  5017. set {
  5018. this[this.tableProduct.IDColumn] = value;
  5019. }
  5020. }
  5021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5023. public string Название {
  5024. get {
  5025. try {
  5026. return ((string)(this[this.tableProduct.НазваниеColumn]));
  5027. }
  5028. catch (global::System.InvalidCastException e) {
  5029. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Product\' равно DBNull.", e);
  5030. }
  5031. }
  5032. set {
  5033. this[this.tableProduct.НазваниеColumn] = value;
  5034. }
  5035. }
  5036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5038. public int Категория {
  5039. get {
  5040. try {
  5041. return ((int)(this[this.tableProduct.КатегорияColumn]));
  5042. }
  5043. catch (global::System.InvalidCastException e) {
  5044. throw new global::System.Data.StrongTypingException("Значение для столбца \'Категория\' в таблице \'Product\' равно DBNull.", e);
  5045. }
  5046. }
  5047. set {
  5048. this[this.tableProduct.КатегорияColumn] = value;
  5049. }
  5050. }
  5051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5053. public string Описание {
  5054. get {
  5055. try {
  5056. return ((string)(this[this.tableProduct.ОписаниеColumn]));
  5057. }
  5058. catch (global::System.InvalidCastException e) {
  5059. throw new global::System.Data.StrongTypingException("Значение для столбца \'Описание\' в таблице \'Product\' равно DBNull.", e);
  5060. }
  5061. }
  5062. set {
  5063. this[this.tableProduct.ОписаниеColumn] = value;
  5064. }
  5065. }
  5066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5068. public string Цена {
  5069. get {
  5070. try {
  5071. return ((string)(this[this.tableProduct.ЦенаColumn]));
  5072. }
  5073. catch (global::System.InvalidCastException e) {
  5074. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Product\' равно DBNull.", e);
  5075. }
  5076. }
  5077. set {
  5078. this[this.tableProduct.ЦенаColumn] = value;
  5079. }
  5080. }
  5081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5083. public СategoriesRow СategoriesRow {
  5084. get {
  5085. return ((СategoriesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Сategories"])));
  5086. }
  5087. set {
  5088. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Сategories"]);
  5089. }
  5090. }
  5091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5093. public bool IsНазваниеNull() {
  5094. return this.IsNull(this.tableProduct.НазваниеColumn);
  5095. }
  5096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5098. public void SetНазваниеNull() {
  5099. this[this.tableProduct.НазваниеColumn] = global::System.Convert.DBNull;
  5100. }
  5101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5103. public bool IsКатегорияNull() {
  5104. return this.IsNull(this.tableProduct.КатегорияColumn);
  5105. }
  5106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5108. public void SetКатегорияNull() {
  5109. this[this.tableProduct.КатегорияColumn] = global::System.Convert.DBNull;
  5110. }
  5111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5113. public bool IsОписаниеNull() {
  5114. return this.IsNull(this.tableProduct.ОписаниеColumn);
  5115. }
  5116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5118. public void SetОписаниеNull() {
  5119. this[this.tableProduct.ОписаниеColumn] = global::System.Convert.DBNull;
  5120. }
  5121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5123. public bool IsЦенаNull() {
  5124. return this.IsNull(this.tableProduct.ЦенаColumn);
  5125. }
  5126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5128. public void SetЦенаNull() {
  5129. this[this.tableProduct.ЦенаColumn] = global::System.Convert.DBNull;
  5130. }
  5131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5133. public OrderedDishesRow[] GetOrderedDishesRows() {
  5134. if ((this.Table.ChildRelations["FK_OrderedDishes_Product"] == null)) {
  5135. return new OrderedDishesRow[0];
  5136. }
  5137. else {
  5138. return ((OrderedDishesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_OrderedDishes_Product"])));
  5139. }
  5140. }
  5141. }
  5142. /// <summary>
  5143. ///Represents strongly named DataRow class.
  5144. ///</summary>
  5145. public partial class RolesRow : global::System.Data.DataRow {
  5146. private RolesDataTable tableRoles;
  5147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5149. internal RolesRow(global::System.Data.DataRowBuilder rb) :
  5150. base(rb) {
  5151. this.tableRoles = ((RolesDataTable)(this.Table));
  5152. }
  5153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5155. public int ID {
  5156. get {
  5157. return ((int)(this[this.tableRoles.IDColumn]));
  5158. }
  5159. set {
  5160. this[this.tableRoles.IDColumn] = value;
  5161. }
  5162. }
  5163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5165. public string Название {
  5166. get {
  5167. try {
  5168. return ((string)(this[this.tableRoles.НазваниеColumn]));
  5169. }
  5170. catch (global::System.InvalidCastException e) {
  5171. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Roles\' равно DBNull.", e);
  5172. }
  5173. }
  5174. set {
  5175. this[this.tableRoles.НазваниеColumn] = value;
  5176. }
  5177. }
  5178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5180. public bool IsНазваниеNull() {
  5181. return this.IsNull(this.tableRoles.НазваниеColumn);
  5182. }
  5183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5185. public void SetНазваниеNull() {
  5186. this[this.tableRoles.НазваниеColumn] = global::System.Convert.DBNull;
  5187. }
  5188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5190. public EmployeesRow[] GetEmployeesRows() {
  5191. if ((this.Table.ChildRelations["FK_Employees_Roles"] == null)) {
  5192. return new EmployeesRow[0];
  5193. }
  5194. else {
  5195. return ((EmployeesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Employees_Roles"])));
  5196. }
  5197. }
  5198. }
  5199. /// <summary>
  5200. ///Represents strongly named DataRow class.
  5201. ///</summary>
  5202. public partial class TablesRow : global::System.Data.DataRow {
  5203. private TablesDataTable tableTables;
  5204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5206. internal TablesRow(global::System.Data.DataRowBuilder rb) :
  5207. base(rb) {
  5208. this.tableTables = ((TablesDataTable)(this.Table));
  5209. }
  5210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5212. public int ID {
  5213. get {
  5214. return ((int)(this[this.tableTables.IDColumn]));
  5215. }
  5216. set {
  5217. this[this.tableTables.IDColumn] = value;
  5218. }
  5219. }
  5220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5222. public string Название {
  5223. get {
  5224. try {
  5225. return ((string)(this[this.tableTables.НазваниеColumn]));
  5226. }
  5227. catch (global::System.InvalidCastException e) {
  5228. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Tables\' равно DBNull.", e);
  5229. }
  5230. }
  5231. set {
  5232. this[this.tableTables.НазваниеColumn] = value;
  5233. }
  5234. }
  5235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5237. public bool IsНазваниеNull() {
  5238. return this.IsNull(this.tableTables.НазваниеColumn);
  5239. }
  5240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5242. public void SetНазваниеNull() {
  5243. this[this.tableTables.НазваниеColumn] = global::System.Convert.DBNull;
  5244. }
  5245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5247. public OrdersRow[] GetOrdersRows() {
  5248. if ((this.Table.ChildRelations["FK_Orders_Tables"] == null)) {
  5249. return new OrdersRow[0];
  5250. }
  5251. else {
  5252. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Tables"])));
  5253. }
  5254. }
  5255. }
  5256. /// <summary>
  5257. ///Represents strongly named DataRow class.
  5258. ///</summary>
  5259. public partial class WaitersRow : global::System.Data.DataRow {
  5260. private WaitersDataTable tableWaiters;
  5261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5263. internal WaitersRow(global::System.Data.DataRowBuilder rb) :
  5264. base(rb) {
  5265. this.tableWaiters = ((WaitersDataTable)(this.Table));
  5266. }
  5267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5269. public int IDОфицианта {
  5270. get {
  5271. return ((int)(this[this.tableWaiters.IDОфициантаColumn]));
  5272. }
  5273. set {
  5274. this[this.tableWaiters.IDОфициантаColumn] = value;
  5275. }
  5276. }
  5277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5279. public string Фамилия {
  5280. get {
  5281. try {
  5282. return ((string)(this[this.tableWaiters.ФамилияColumn]));
  5283. }
  5284. catch (global::System.InvalidCastException e) {
  5285. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Waiters\' равно DBNull.", e);
  5286. }
  5287. }
  5288. set {
  5289. this[this.tableWaiters.ФамилияColumn] = value;
  5290. }
  5291. }
  5292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5294. public string Имя {
  5295. get {
  5296. try {
  5297. return ((string)(this[this.tableWaiters.ИмяColumn]));
  5298. }
  5299. catch (global::System.InvalidCastException e) {
  5300. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'Waiters\' равно DBNull.", e);
  5301. }
  5302. }
  5303. set {
  5304. this[this.tableWaiters.ИмяColumn] = value;
  5305. }
  5306. }
  5307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5309. public string Отчество {
  5310. get {
  5311. try {
  5312. return ((string)(this[this.tableWaiters.ОтчествоColumn]));
  5313. }
  5314. catch (global::System.InvalidCastException e) {
  5315. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'Waiters\' равно DBNull.", e);
  5316. }
  5317. }
  5318. set {
  5319. this[this.tableWaiters.ОтчествоColumn] = value;
  5320. }
  5321. }
  5322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5324. public EmployeesRow EmployeesRow {
  5325. get {
  5326. return ((EmployeesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Waiters_Employees1"])));
  5327. }
  5328. set {
  5329. this.SetParentRow(value, this.Table.ParentRelations["FK_Waiters_Employees1"]);
  5330. }
  5331. }
  5332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5334. public bool IsФамилияNull() {
  5335. return this.IsNull(this.tableWaiters.ФамилияColumn);
  5336. }
  5337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5339. public void SetФамилияNull() {
  5340. this[this.tableWaiters.ФамилияColumn] = global::System.Convert.DBNull;
  5341. }
  5342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5344. public bool IsИмяNull() {
  5345. return this.IsNull(this.tableWaiters.ИмяColumn);
  5346. }
  5347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5349. public void SetИмяNull() {
  5350. this[this.tableWaiters.ИмяColumn] = global::System.Convert.DBNull;
  5351. }
  5352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5354. public bool IsОтчествоNull() {
  5355. return this.IsNull(this.tableWaiters.ОтчествоColumn);
  5356. }
  5357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5359. public void SetОтчествоNull() {
  5360. this[this.tableWaiters.ОтчествоColumn] = global::System.Convert.DBNull;
  5361. }
  5362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5364. public WorkShiftRow[] GetWorkShiftRows() {
  5365. if ((this.Table.ChildRelations["FK_WorkShift_Waiters"] == null)) {
  5366. return new WorkShiftRow[0];
  5367. }
  5368. else {
  5369. return ((WorkShiftRow[])(base.GetChildRows(this.Table.ChildRelations["FK_WorkShift_Waiters"])));
  5370. }
  5371. }
  5372. }
  5373. /// <summary>
  5374. ///Represents strongly named DataRow class.
  5375. ///</summary>
  5376. public partial class WorkShiftRow : global::System.Data.DataRow {
  5377. private WorkShiftDataTable tableWorkShift;
  5378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5380. internal WorkShiftRow(global::System.Data.DataRowBuilder rb) :
  5381. base(rb) {
  5382. this.tableWorkShift = ((WorkShiftDataTable)(this.Table));
  5383. }
  5384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5386. public int ID {
  5387. get {
  5388. return ((int)(this[this.tableWorkShift.IDColumn]));
  5389. }
  5390. set {
  5391. this[this.tableWorkShift.IDColumn] = value;
  5392. }
  5393. }
  5394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5396. public int IDОфицианта {
  5397. get {
  5398. try {
  5399. return ((int)(this[this.tableWorkShift.IDОфициантаColumn]));
  5400. }
  5401. catch (global::System.InvalidCastException e) {
  5402. throw new global::System.Data.StrongTypingException("Значение для столбца \'IDОфицианта\' в таблице \'WorkShift\' равно DBNull.", e);
  5403. }
  5404. }
  5405. set {
  5406. this[this.tableWorkShift.IDОфициантаColumn] = value;
  5407. }
  5408. }
  5409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5411. public int IDПовара {
  5412. get {
  5413. try {
  5414. return ((int)(this[this.tableWorkShift.IDПовараColumn]));
  5415. }
  5416. catch (global::System.InvalidCastException e) {
  5417. throw new global::System.Data.StrongTypingException("Значение для столбца \'IDПовара\' в таблице \'WorkShift\' равно DBNull.", e);
  5418. }
  5419. }
  5420. set {
  5421. this[this.tableWorkShift.IDПовараColumn] = value;
  5422. }
  5423. }
  5424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5426. public System.DateTime ДатаСмены {
  5427. get {
  5428. try {
  5429. return ((global::System.DateTime)(this[this.tableWorkShift.ДатаСменыColumn]));
  5430. }
  5431. catch (global::System.InvalidCastException e) {
  5432. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаСмены\' в таблице \'WorkShift\' равно DBNull.", e);
  5433. }
  5434. }
  5435. set {
  5436. this[this.tableWorkShift.ДатаСменыColumn] = value;
  5437. }
  5438. }
  5439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5441. public CooksRow CooksRow {
  5442. get {
  5443. return ((CooksRow)(this.GetParentRow(this.Table.ParentRelations["FK_WorkShift_Cooks"])));
  5444. }
  5445. set {
  5446. this.SetParentRow(value, this.Table.ParentRelations["FK_WorkShift_Cooks"]);
  5447. }
  5448. }
  5449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5451. public WaitersRow WaitersRow {
  5452. get {
  5453. return ((WaitersRow)(this.GetParentRow(this.Table.ParentRelations["FK_WorkShift_Waiters"])));
  5454. }
  5455. set {
  5456. this.SetParentRow(value, this.Table.ParentRelations["FK_WorkShift_Waiters"]);
  5457. }
  5458. }
  5459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5461. public bool IsIDОфициантаNull() {
  5462. return this.IsNull(this.tableWorkShift.IDОфициантаColumn);
  5463. }
  5464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5466. public void SetIDОфициантаNull() {
  5467. this[this.tableWorkShift.IDОфициантаColumn] = global::System.Convert.DBNull;
  5468. }
  5469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5471. public bool IsIDПовараNull() {
  5472. return this.IsNull(this.tableWorkShift.IDПовараColumn);
  5473. }
  5474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5476. public void SetIDПовараNull() {
  5477. this[this.tableWorkShift.IDПовараColumn] = global::System.Convert.DBNull;
  5478. }
  5479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5481. public bool IsДатаСменыNull() {
  5482. return this.IsNull(this.tableWorkShift.ДатаСменыColumn);
  5483. }
  5484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5486. public void SetДатаСменыNull() {
  5487. this[this.tableWorkShift.ДатаСменыColumn] = global::System.Convert.DBNull;
  5488. }
  5489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5491. public OrdersRow[] GetOrdersRows() {
  5492. if ((this.Table.ChildRelations["FK_Orders_WorkShift"] == null)) {
  5493. return new OrdersRow[0];
  5494. }
  5495. else {
  5496. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_WorkShift"])));
  5497. }
  5498. }
  5499. }
  5500. /// <summary>
  5501. ///Represents strongly named DataRow class.
  5502. ///</summary>
  5503. public partial class СategoriesRow : global::System.Data.DataRow {
  5504. private СategoriesDataTable tableСategories;
  5505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5507. internal СategoriesRow(global::System.Data.DataRowBuilder rb) :
  5508. base(rb) {
  5509. this.tableСategories = ((СategoriesDataTable)(this.Table));
  5510. }
  5511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5513. public int ID {
  5514. get {
  5515. return ((int)(this[this.tableСategories.IDColumn]));
  5516. }
  5517. set {
  5518. this[this.tableСategories.IDColumn] = value;
  5519. }
  5520. }
  5521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5523. public string Название {
  5524. get {
  5525. try {
  5526. return ((string)(this[this.tableСategories.НазваниеColumn]));
  5527. }
  5528. catch (global::System.InvalidCastException e) {
  5529. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Сategories\' равно DBNull.", e);
  5530. }
  5531. }
  5532. set {
  5533. this[this.tableСategories.НазваниеColumn] = value;
  5534. }
  5535. }
  5536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5538. public bool IsНазваниеNull() {
  5539. return this.IsNull(this.tableСategories.НазваниеColumn);
  5540. }
  5541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5543. public void SetНазваниеNull() {
  5544. this[this.tableСategories.НазваниеColumn] = global::System.Convert.DBNull;
  5545. }
  5546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5548. public ProductRow[] GetProductRows() {
  5549. if ((this.Table.ChildRelations["FK_Product_Сategories"] == null)) {
  5550. return new ProductRow[0];
  5551. }
  5552. else {
  5553. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Сategories"])));
  5554. }
  5555. }
  5556. }
  5557. /// <summary>
  5558. ///Represents strongly named DataRow class.
  5559. ///</summary>
  5560. public partial class СменыRow : global::System.Data.DataRow {
  5561. private СменыDataTable tableСмены;
  5562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5564. internal СменыRow(global::System.Data.DataRowBuilder rb) :
  5565. base(rb) {
  5566. this.tableСмены = ((СменыDataTable)(this.Table));
  5567. }
  5568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5570. public System.DateTime ДатаСмены {
  5571. get {
  5572. try {
  5573. return ((global::System.DateTime)(this[this.tableСмены.ДатаСменыColumn]));
  5574. }
  5575. catch (global::System.InvalidCastException e) {
  5576. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаСмены\' в таблице \'Смены\' равно DBNull.", e);
  5577. }
  5578. }
  5579. set {
  5580. this[this.tableСмены.ДатаСменыColumn] = value;
  5581. }
  5582. }
  5583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5585. public string Повар {
  5586. get {
  5587. try {
  5588. return ((string)(this[this.tableСмены.ПоварColumn]));
  5589. }
  5590. catch (global::System.InvalidCastException e) {
  5591. throw new global::System.Data.StrongTypingException("Значение для столбца \'Повар\' в таблице \'Смены\' равно DBNull.", e);
  5592. }
  5593. }
  5594. set {
  5595. this[this.tableСмены.ПоварColumn] = value;
  5596. }
  5597. }
  5598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5600. public string Официант {
  5601. get {
  5602. try {
  5603. return ((string)(this[this.tableСмены.ОфициантColumn]));
  5604. }
  5605. catch (global::System.InvalidCastException e) {
  5606. throw new global::System.Data.StrongTypingException("Значение для столбца \'Официант\' в таблице \'Смены\' равно DBNull.", e);
  5607. }
  5608. }
  5609. set {
  5610. this[this.tableСмены.ОфициантColumn] = value;
  5611. }
  5612. }
  5613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5615. public bool IsДатаСменыNull() {
  5616. return this.IsNull(this.tableСмены.ДатаСменыColumn);
  5617. }
  5618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5620. public void SetДатаСменыNull() {
  5621. this[this.tableСмены.ДатаСменыColumn] = global::System.Convert.DBNull;
  5622. }
  5623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5625. public bool IsПоварNull() {
  5626. return this.IsNull(this.tableСмены.ПоварColumn);
  5627. }
  5628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5630. public void SetПоварNull() {
  5631. this[this.tableСмены.ПоварColumn] = global::System.Convert.DBNull;
  5632. }
  5633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5635. public bool IsОфициантNull() {
  5636. return this.IsNull(this.tableСмены.ОфициантColumn);
  5637. }
  5638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5640. public void SetОфициантNull() {
  5641. this[this.tableСмены.ОфициантColumn] = global::System.Convert.DBNull;
  5642. }
  5643. }
  5644. /// <summary>
  5645. ///Row event argument class
  5646. ///</summary>
  5647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5648. public class CooksRowChangeEvent : global::System.EventArgs {
  5649. private CooksRow eventRow;
  5650. private global::System.Data.DataRowAction eventAction;
  5651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5653. public CooksRowChangeEvent(CooksRow row, global::System.Data.DataRowAction action) {
  5654. this.eventRow = row;
  5655. this.eventAction = action;
  5656. }
  5657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5659. public CooksRow Row {
  5660. get {
  5661. return this.eventRow;
  5662. }
  5663. }
  5664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5666. public global::System.Data.DataRowAction Action {
  5667. get {
  5668. return this.eventAction;
  5669. }
  5670. }
  5671. }
  5672. /// <summary>
  5673. ///Row event argument class
  5674. ///</summary>
  5675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5676. public class EmployeesRowChangeEvent : global::System.EventArgs {
  5677. private EmployeesRow eventRow;
  5678. private global::System.Data.DataRowAction eventAction;
  5679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5681. public EmployeesRowChangeEvent(EmployeesRow row, global::System.Data.DataRowAction action) {
  5682. this.eventRow = row;
  5683. this.eventAction = action;
  5684. }
  5685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5687. public EmployeesRow Row {
  5688. get {
  5689. return this.eventRow;
  5690. }
  5691. }
  5692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5694. public global::System.Data.DataRowAction Action {
  5695. get {
  5696. return this.eventAction;
  5697. }
  5698. }
  5699. }
  5700. /// <summary>
  5701. ///Row event argument class
  5702. ///</summary>
  5703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5704. public class OrderedDishesRowChangeEvent : global::System.EventArgs {
  5705. private OrderedDishesRow eventRow;
  5706. private global::System.Data.DataRowAction eventAction;
  5707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5709. public OrderedDishesRowChangeEvent(OrderedDishesRow row, global::System.Data.DataRowAction action) {
  5710. this.eventRow = row;
  5711. this.eventAction = action;
  5712. }
  5713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5715. public OrderedDishesRow Row {
  5716. get {
  5717. return this.eventRow;
  5718. }
  5719. }
  5720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5722. public global::System.Data.DataRowAction Action {
  5723. get {
  5724. return this.eventAction;
  5725. }
  5726. }
  5727. }
  5728. /// <summary>
  5729. ///Row event argument class
  5730. ///</summary>
  5731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5732. public class OrdersRowChangeEvent : global::System.EventArgs {
  5733. private OrdersRow eventRow;
  5734. private global::System.Data.DataRowAction eventAction;
  5735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5737. public OrdersRowChangeEvent(OrdersRow row, global::System.Data.DataRowAction action) {
  5738. this.eventRow = row;
  5739. this.eventAction = action;
  5740. }
  5741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5743. public OrdersRow Row {
  5744. get {
  5745. return this.eventRow;
  5746. }
  5747. }
  5748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5750. public global::System.Data.DataRowAction Action {
  5751. get {
  5752. return this.eventAction;
  5753. }
  5754. }
  5755. }
  5756. /// <summary>
  5757. ///Row event argument class
  5758. ///</summary>
  5759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5760. public class OrderStatusRowChangeEvent : global::System.EventArgs {
  5761. private OrderStatusRow eventRow;
  5762. private global::System.Data.DataRowAction eventAction;
  5763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5765. public OrderStatusRowChangeEvent(OrderStatusRow row, global::System.Data.DataRowAction action) {
  5766. this.eventRow = row;
  5767. this.eventAction = action;
  5768. }
  5769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5771. public OrderStatusRow Row {
  5772. get {
  5773. return this.eventRow;
  5774. }
  5775. }
  5776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5778. public global::System.Data.DataRowAction Action {
  5779. get {
  5780. return this.eventAction;
  5781. }
  5782. }
  5783. }
  5784. /// <summary>
  5785. ///Row event argument class
  5786. ///</summary>
  5787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5788. public class PaymentMethodRowChangeEvent : global::System.EventArgs {
  5789. private PaymentMethodRow eventRow;
  5790. private global::System.Data.DataRowAction eventAction;
  5791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5793. public PaymentMethodRowChangeEvent(PaymentMethodRow row, global::System.Data.DataRowAction action) {
  5794. this.eventRow = row;
  5795. this.eventAction = action;
  5796. }
  5797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5799. public PaymentMethodRow Row {
  5800. get {
  5801. return this.eventRow;
  5802. }
  5803. }
  5804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5806. public global::System.Data.DataRowAction Action {
  5807. get {
  5808. return this.eventAction;
  5809. }
  5810. }
  5811. }
  5812. /// <summary>
  5813. ///Row event argument class
  5814. ///</summary>
  5815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5816. public class ProductRowChangeEvent : global::System.EventArgs {
  5817. private ProductRow eventRow;
  5818. private global::System.Data.DataRowAction eventAction;
  5819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5821. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  5822. this.eventRow = row;
  5823. this.eventAction = action;
  5824. }
  5825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5827. public ProductRow Row {
  5828. get {
  5829. return this.eventRow;
  5830. }
  5831. }
  5832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5834. public global::System.Data.DataRowAction Action {
  5835. get {
  5836. return this.eventAction;
  5837. }
  5838. }
  5839. }
  5840. /// <summary>
  5841. ///Row event argument class
  5842. ///</summary>
  5843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5844. public class RolesRowChangeEvent : global::System.EventArgs {
  5845. private RolesRow eventRow;
  5846. private global::System.Data.DataRowAction eventAction;
  5847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5849. public RolesRowChangeEvent(RolesRow row, global::System.Data.DataRowAction action) {
  5850. this.eventRow = row;
  5851. this.eventAction = action;
  5852. }
  5853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5855. public RolesRow Row {
  5856. get {
  5857. return this.eventRow;
  5858. }
  5859. }
  5860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5862. public global::System.Data.DataRowAction Action {
  5863. get {
  5864. return this.eventAction;
  5865. }
  5866. }
  5867. }
  5868. /// <summary>
  5869. ///Row event argument class
  5870. ///</summary>
  5871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5872. public class TablesRowChangeEvent : global::System.EventArgs {
  5873. private TablesRow eventRow;
  5874. private global::System.Data.DataRowAction eventAction;
  5875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5877. public TablesRowChangeEvent(TablesRow row, global::System.Data.DataRowAction action) {
  5878. this.eventRow = row;
  5879. this.eventAction = action;
  5880. }
  5881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5883. public TablesRow Row {
  5884. get {
  5885. return this.eventRow;
  5886. }
  5887. }
  5888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5890. public global::System.Data.DataRowAction Action {
  5891. get {
  5892. return this.eventAction;
  5893. }
  5894. }
  5895. }
  5896. /// <summary>
  5897. ///Row event argument class
  5898. ///</summary>
  5899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5900. public class WaitersRowChangeEvent : global::System.EventArgs {
  5901. private WaitersRow eventRow;
  5902. private global::System.Data.DataRowAction eventAction;
  5903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5905. public WaitersRowChangeEvent(WaitersRow row, global::System.Data.DataRowAction action) {
  5906. this.eventRow = row;
  5907. this.eventAction = action;
  5908. }
  5909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5911. public WaitersRow Row {
  5912. get {
  5913. return this.eventRow;
  5914. }
  5915. }
  5916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5918. public global::System.Data.DataRowAction Action {
  5919. get {
  5920. return this.eventAction;
  5921. }
  5922. }
  5923. }
  5924. /// <summary>
  5925. ///Row event argument class
  5926. ///</summary>
  5927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5928. public class WorkShiftRowChangeEvent : global::System.EventArgs {
  5929. private WorkShiftRow eventRow;
  5930. private global::System.Data.DataRowAction eventAction;
  5931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5933. public WorkShiftRowChangeEvent(WorkShiftRow row, global::System.Data.DataRowAction action) {
  5934. this.eventRow = row;
  5935. this.eventAction = action;
  5936. }
  5937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5939. public WorkShiftRow Row {
  5940. get {
  5941. return this.eventRow;
  5942. }
  5943. }
  5944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5946. public global::System.Data.DataRowAction Action {
  5947. get {
  5948. return this.eventAction;
  5949. }
  5950. }
  5951. }
  5952. /// <summary>
  5953. ///Row event argument class
  5954. ///</summary>
  5955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5956. public class СategoriesRowChangeEvent : global::System.EventArgs {
  5957. private СategoriesRow eventRow;
  5958. private global::System.Data.DataRowAction eventAction;
  5959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5961. public СategoriesRowChangeEvent(СategoriesRow row, global::System.Data.DataRowAction action) {
  5962. this.eventRow = row;
  5963. this.eventAction = action;
  5964. }
  5965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5967. public СategoriesRow Row {
  5968. get {
  5969. return this.eventRow;
  5970. }
  5971. }
  5972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5974. public global::System.Data.DataRowAction Action {
  5975. get {
  5976. return this.eventAction;
  5977. }
  5978. }
  5979. }
  5980. /// <summary>
  5981. ///Row event argument class
  5982. ///</summary>
  5983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5984. public class СменыRowChangeEvent : global::System.EventArgs {
  5985. private СменыRow eventRow;
  5986. private global::System.Data.DataRowAction eventAction;
  5987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5989. public СменыRowChangeEvent(СменыRow row, global::System.Data.DataRowAction action) {
  5990. this.eventRow = row;
  5991. this.eventAction = action;
  5992. }
  5993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5995. public СменыRow Row {
  5996. get {
  5997. return this.eventRow;
  5998. }
  5999. }
  6000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6002. public global::System.Data.DataRowAction Action {
  6003. get {
  6004. return this.eventAction;
  6005. }
  6006. }
  6007. }
  6008. }
  6009. }
  6010. namespace KafeKazarin03.KazarinKafeDataSetTableAdapters {
  6011. /// <summary>
  6012. ///Represents the connection and commands used to retrieve and save data.
  6013. ///</summary>
  6014. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6015. [global::System.ComponentModel.ToolboxItem(true)]
  6016. [global::System.ComponentModel.DataObjectAttribute(true)]
  6017. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6018. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6019. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6020. public partial class CooksTableAdapter : global::System.ComponentModel.Component {
  6021. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6022. private global::System.Data.SqlClient.SqlConnection _connection;
  6023. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6024. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6025. private bool _clearBeforeFill;
  6026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6028. public CooksTableAdapter() {
  6029. this.ClearBeforeFill = true;
  6030. }
  6031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6033. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6034. get {
  6035. if ((this._adapter == null)) {
  6036. this.InitAdapter();
  6037. }
  6038. return this._adapter;
  6039. }
  6040. }
  6041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6043. internal global::System.Data.SqlClient.SqlConnection Connection {
  6044. get {
  6045. if ((this._connection == null)) {
  6046. this.InitConnection();
  6047. }
  6048. return this._connection;
  6049. }
  6050. set {
  6051. this._connection = value;
  6052. if ((this.Adapter.InsertCommand != null)) {
  6053. this.Adapter.InsertCommand.Connection = value;
  6054. }
  6055. if ((this.Adapter.DeleteCommand != null)) {
  6056. this.Adapter.DeleteCommand.Connection = value;
  6057. }
  6058. if ((this.Adapter.UpdateCommand != null)) {
  6059. this.Adapter.UpdateCommand.Connection = value;
  6060. }
  6061. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6062. if ((this.CommandCollection[i] != null)) {
  6063. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6064. }
  6065. }
  6066. }
  6067. }
  6068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6070. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6071. get {
  6072. return this._transaction;
  6073. }
  6074. set {
  6075. this._transaction = value;
  6076. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6077. this.CommandCollection[i].Transaction = this._transaction;
  6078. }
  6079. if (((this.Adapter != null)
  6080. && (this.Adapter.DeleteCommand != null))) {
  6081. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6082. }
  6083. if (((this.Adapter != null)
  6084. && (this.Adapter.InsertCommand != null))) {
  6085. this.Adapter.InsertCommand.Transaction = this._transaction;
  6086. }
  6087. if (((this.Adapter != null)
  6088. && (this.Adapter.UpdateCommand != null))) {
  6089. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6090. }
  6091. }
  6092. }
  6093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6095. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6096. get {
  6097. if ((this._commandCollection == null)) {
  6098. this.InitCommandCollection();
  6099. }
  6100. return this._commandCollection;
  6101. }
  6102. }
  6103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6105. public bool ClearBeforeFill {
  6106. get {
  6107. return this._clearBeforeFill;
  6108. }
  6109. set {
  6110. this._clearBeforeFill = value;
  6111. }
  6112. }
  6113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6115. private void InitAdapter() {
  6116. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6117. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6118. tableMapping.SourceTable = "Table";
  6119. tableMapping.DataSetTable = "Cooks";
  6120. tableMapping.ColumnMappings.Add("IDПовара", "IDПовара");
  6121. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  6122. tableMapping.ColumnMappings.Add("Имя", "Имя");
  6123. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  6124. this._adapter.TableMappings.Add(tableMapping);
  6125. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6126. this._adapter.DeleteCommand.Connection = this.Connection;
  6127. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Cooks] WHERE (([IDПовара] = @Original_IDПовара) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)))";
  6128. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6129. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDПовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПовара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6130. 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, "", "", ""));
  6131. 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, "", "", ""));
  6132. 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, "", "", ""));
  6133. 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, "", "", ""));
  6134. 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, "", "", ""));
  6135. 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, "", "", ""));
  6136. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6137. this._adapter.InsertCommand.Connection = this.Connection;
  6138. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Cooks] ([IDПовара], [Фамилия], [Имя], [Отчество]) VALUES (@IDП" +
  6139. "овара, @Фамилия, @Имя, @Отчество);\r\nSELECT IDПовара, Фамилия, Имя, Отчество FROM" +
  6140. " Cooks WHERE (IDПовара = @IDПовара)";
  6141. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6142. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDПовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПовара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6143. 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, "", "", ""));
  6144. 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, "", "", ""));
  6145. 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, "", "", ""));
  6146. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6147. this._adapter.UpdateCommand.Connection = this.Connection;
  6148. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Cooks] SET [IDПовара] = @IDПовара, [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество WHERE (([IDПовара] = @Original_IDПовара) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)));
  6149. SELECT IDПовара, Фамилия, Имя, Отчество FROM Cooks WHERE (IDПовара = @IDПовара)";
  6150. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6151. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDПовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПовара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6152. 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, "", "", ""));
  6153. 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, "", "", ""));
  6154. 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, "", "", ""));
  6155. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDПовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПовара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6156. 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, "", "", ""));
  6157. 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, "", "", ""));
  6158. 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, "", "", ""));
  6159. 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, "", "", ""));
  6160. 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, "", "", ""));
  6161. 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, "", "", ""));
  6162. }
  6163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6165. private void InitConnection() {
  6166. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6167. this._connection.ConnectionString = global::KafeKazarin03.Properties.Settings.Default.KazarinKafeConnectionString;
  6168. }
  6169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6171. private void InitCommandCollection() {
  6172. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6173. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6174. this._commandCollection[0].Connection = this.Connection;
  6175. this._commandCollection[0].CommandText = "SELECT IDПовара, Фамилия, Имя, Отчество FROM dbo.Cooks";
  6176. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6177. }
  6178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6180. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6181. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6182. public virtual int Fill(KazarinKafeDataSet.CooksDataTable dataTable) {
  6183. this.Adapter.SelectCommand = this.CommandCollection[0];
  6184. if ((this.ClearBeforeFill == true)) {
  6185. dataTable.Clear();
  6186. }
  6187. int returnValue = this.Adapter.Fill(dataTable);
  6188. return returnValue;
  6189. }
  6190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6192. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6193. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6194. public virtual KazarinKafeDataSet.CooksDataTable GetData() {
  6195. this.Adapter.SelectCommand = this.CommandCollection[0];
  6196. KazarinKafeDataSet.CooksDataTable dataTable = new KazarinKafeDataSet.CooksDataTable();
  6197. this.Adapter.Fill(dataTable);
  6198. return dataTable;
  6199. }
  6200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6202. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6203. public virtual int Update(KazarinKafeDataSet.CooksDataTable dataTable) {
  6204. return this.Adapter.Update(dataTable);
  6205. }
  6206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6208. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6209. public virtual int Update(KazarinKafeDataSet dataSet) {
  6210. return this.Adapter.Update(dataSet, "Cooks");
  6211. }
  6212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6214. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6215. public virtual int Update(global::System.Data.DataRow dataRow) {
  6216. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6217. dataRow});
  6218. }
  6219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6221. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6222. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6223. return this.Adapter.Update(dataRows);
  6224. }
  6225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6227. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6228. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6229. public virtual int Delete(int Original_IDПовара, string Original_Фамилия, string Original_Имя, string Original_Отчество) {
  6230. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDПовара));
  6231. if ((Original_Фамилия == null)) {
  6232. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6233. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6234. }
  6235. else {
  6236. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6237. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Фамилия));
  6238. }
  6239. if ((Original_Имя == null)) {
  6240. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6241. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6242. }
  6243. else {
  6244. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6245. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Имя));
  6246. }
  6247. if ((Original_Отчество == null)) {
  6248. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6249. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6250. }
  6251. else {
  6252. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6253. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Отчество));
  6254. }
  6255. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6256. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6257. != global::System.Data.ConnectionState.Open)) {
  6258. this.Adapter.DeleteCommand.Connection.Open();
  6259. }
  6260. try {
  6261. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6262. return returnValue;
  6263. }
  6264. finally {
  6265. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6266. this.Adapter.DeleteCommand.Connection.Close();
  6267. }
  6268. }
  6269. }
  6270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6272. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6273. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6274. public virtual int Insert(int IDПовара, string Фамилия, string Имя, string Отчество) {
  6275. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDПовара));
  6276. if ((Фамилия == null)) {
  6277. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6278. }
  6279. else {
  6280. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фамилия));
  6281. }
  6282. if ((Имя == null)) {
  6283. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6284. }
  6285. else {
  6286. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Имя));
  6287. }
  6288. if ((Отчество == null)) {
  6289. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6290. }
  6291. else {
  6292. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Отчество));
  6293. }
  6294. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6295. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6296. != global::System.Data.ConnectionState.Open)) {
  6297. this.Adapter.InsertCommand.Connection.Open();
  6298. }
  6299. try {
  6300. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6301. return returnValue;
  6302. }
  6303. finally {
  6304. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6305. this.Adapter.InsertCommand.Connection.Close();
  6306. }
  6307. }
  6308. }
  6309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6311. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6312. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6313. public virtual int Update(int IDПовара, string Фамилия, string Имя, string Отчество, int Original_IDПовара, string Original_Фамилия, string Original_Имя, string Original_Отчество) {
  6314. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDПовара));
  6315. if ((Фамилия == null)) {
  6316. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6317. }
  6318. else {
  6319. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фамилия));
  6320. }
  6321. if ((Имя == null)) {
  6322. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6323. }
  6324. else {
  6325. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Имя));
  6326. }
  6327. if ((Отчество == null)) {
  6328. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6329. }
  6330. else {
  6331. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Отчество));
  6332. }
  6333. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IDПовара));
  6334. if ((Original_Фамилия == null)) {
  6335. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  6336. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6337. }
  6338. else {
  6339. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  6340. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Фамилия));
  6341. }
  6342. if ((Original_Имя == null)) {
  6343. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  6344. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6345. }
  6346. else {
  6347. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6348. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Имя));
  6349. }
  6350. if ((Original_Отчество == null)) {
  6351. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  6352. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6353. }
  6354. else {
  6355. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  6356. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Отчество));
  6357. }
  6358. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6359. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6360. != global::System.Data.ConnectionState.Open)) {
  6361. this.Adapter.UpdateCommand.Connection.Open();
  6362. }
  6363. try {
  6364. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6365. return returnValue;
  6366. }
  6367. finally {
  6368. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6369. this.Adapter.UpdateCommand.Connection.Close();
  6370. }
  6371. }
  6372. }
  6373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6375. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6376. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6377. public virtual int Update(string Фамилия, string Имя, string Отчество, int Original_IDПовара, string Original_Фамилия, string Original_Имя, string Original_Отчество) {
  6378. return this.Update(Original_IDПовара, Фамилия, Имя, Отчество, Original_IDПовара, Original_Фамилия, Original_Имя, Original_Отчество);
  6379. }
  6380. }
  6381. /// <summary>
  6382. ///Represents the connection and commands used to retrieve and save data.
  6383. ///</summary>
  6384. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6385. [global::System.ComponentModel.ToolboxItem(true)]
  6386. [global::System.ComponentModel.DataObjectAttribute(true)]
  6387. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6388. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6389. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6390. public partial class EmployeesTableAdapter : global::System.ComponentModel.Component {
  6391. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6392. private global::System.Data.SqlClient.SqlConnection _connection;
  6393. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6394. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6395. private bool _clearBeforeFill;
  6396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6398. public EmployeesTableAdapter() {
  6399. this.ClearBeforeFill = true;
  6400. }
  6401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6403. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6404. get {
  6405. if ((this._adapter == null)) {
  6406. this.InitAdapter();
  6407. }
  6408. return this._adapter;
  6409. }
  6410. }
  6411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6413. internal global::System.Data.SqlClient.SqlConnection Connection {
  6414. get {
  6415. if ((this._connection == null)) {
  6416. this.InitConnection();
  6417. }
  6418. return this._connection;
  6419. }
  6420. set {
  6421. this._connection = value;
  6422. if ((this.Adapter.InsertCommand != null)) {
  6423. this.Adapter.InsertCommand.Connection = value;
  6424. }
  6425. if ((this.Adapter.DeleteCommand != null)) {
  6426. this.Adapter.DeleteCommand.Connection = value;
  6427. }
  6428. if ((this.Adapter.UpdateCommand != null)) {
  6429. this.Adapter.UpdateCommand.Connection = value;
  6430. }
  6431. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6432. if ((this.CommandCollection[i] != null)) {
  6433. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6434. }
  6435. }
  6436. }
  6437. }
  6438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6440. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6441. get {
  6442. return this._transaction;
  6443. }
  6444. set {
  6445. this._transaction = value;
  6446. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6447. this.CommandCollection[i].Transaction = this._transaction;
  6448. }
  6449. if (((this.Adapter != null)
  6450. && (this.Adapter.DeleteCommand != null))) {
  6451. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6452. }
  6453. if (((this.Adapter != null)
  6454. && (this.Adapter.InsertCommand != null))) {
  6455. this.Adapter.InsertCommand.Transaction = this._transaction;
  6456. }
  6457. if (((this.Adapter != null)
  6458. && (this.Adapter.UpdateCommand != null))) {
  6459. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6460. }
  6461. }
  6462. }
  6463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6465. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6466. get {
  6467. if ((this._commandCollection == null)) {
  6468. this.InitCommandCollection();
  6469. }
  6470. return this._commandCollection;
  6471. }
  6472. }
  6473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6475. public bool ClearBeforeFill {
  6476. get {
  6477. return this._clearBeforeFill;
  6478. }
  6479. set {
  6480. this._clearBeforeFill = value;
  6481. }
  6482. }
  6483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6485. private void InitAdapter() {
  6486. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6487. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6488. tableMapping.SourceTable = "Table";
  6489. tableMapping.DataSetTable = "Employees";
  6490. tableMapping.ColumnMappings.Add("ID", "ID");
  6491. tableMapping.ColumnMappings.Add("Роль", "Роль");
  6492. tableMapping.ColumnMappings.Add("ДатаРождения", "ДатаРождения");
  6493. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  6494. tableMapping.ColumnMappings.Add("Адрес", "Адрес");
  6495. tableMapping.ColumnMappings.Add("Username", "Username");
  6496. tableMapping.ColumnMappings.Add("Password", "Password");
  6497. tableMapping.ColumnMappings.Add("Статус", "Статус");
  6498. this._adapter.TableMappings.Add(tableMapping);
  6499. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6500. this._adapter.DeleteCommand.Connection = this.Connection;
  6501. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Employees] WHERE (([ID] = @Original_ID) 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_Username = 1 AND [Username] IS NULL) OR ([Username] = @Original_Username)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Статус = 1 AND [Статус] IS NULL) OR ([Статус] = @Original_Статус)))";
  6502. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6503. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6504. 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, "", "", ""));
  6505. 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, "", "", ""));
  6506. 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, "", "", ""));
  6507. 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, "", "", ""));
  6508. 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, "", "", ""));
  6509. 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, "", "", ""));
  6510. 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, "", "", ""));
  6511. 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, "", "", ""));
  6512. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Username", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Username", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6513. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Username", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6514. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6515. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6516. 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, "", "", ""));
  6517. 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, "", "", ""));
  6518. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6519. this._adapter.InsertCommand.Connection = this.Connection;
  6520. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Employees] ([Роль], [ДатаРождения], [Телефон], [Адрес], [Username], [Password], [Статус]) VALUES (@Роль, @ДатаРождения, @Телефон, @Адрес, @Username, @Password, @Статус);
  6521. SELECT ID, Роль, ДатаРождения, Телефон, Адрес, Username, Password, Статус FROM Employees WHERE (ID = SCOPE_IDENTITY())";
  6522. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6523. 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, "", "", ""));
  6524. 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, "", "", ""));
  6525. 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, "", "", ""));
  6526. 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, "", "", ""));
  6527. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Username", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6528. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6529. 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, "", "", ""));
  6530. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6531. this._adapter.UpdateCommand.Connection = this.Connection;
  6532. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Employees] SET [Роль] = @Роль, [ДатаРождения] = @ДатаРождения, [Телефон] = @Телефон, [Адрес] = @Адрес, [Username] = @Username, [Password] = @Password, [Статус] = @Статус WHERE (([ID] = @Original_ID) 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_Username = 1 AND [Username] IS NULL) OR ([Username] = @Original_Username)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Статус = 1 AND [Статус] IS NULL) OR ([Статус] = @Original_Статус)));
  6533. SELECT ID, Роль, ДатаРождения, Телефон, Адрес, Username, Password, Статус FROM Employees WHERE (ID = @ID)";
  6534. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6535. 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, "", "", ""));
  6536. 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, "", "", ""));
  6537. 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, "", "", ""));
  6538. 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, "", "", ""));
  6539. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Username", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6540. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6541. 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, "", "", ""));
  6542. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6543. 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, "", "", ""));
  6544. 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, "", "", ""));
  6545. 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, "", "", ""));
  6546. 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, "", "", ""));
  6547. 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, "", "", ""));
  6548. 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, "", "", ""));
  6549. 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, "", "", ""));
  6550. 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, "", "", ""));
  6551. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Username", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Username", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6552. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Username", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6553. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6554. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6555. 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, "", "", ""));
  6556. 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, "", "", ""));
  6557. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6558. }
  6559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6561. private void InitConnection() {
  6562. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6563. this._connection.ConnectionString = global::KafeKazarin03.Properties.Settings.Default.KazarinKafeConnectionString;
  6564. }
  6565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6567. private void InitCommandCollection() {
  6568. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6569. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6570. this._commandCollection[0].Connection = this.Connection;
  6571. this._commandCollection[0].CommandText = "SELECT ID, Роль, ДатаРождения, Телефон, Адрес, Username, Password, Статус FROM db" +
  6572. "o.Employees";
  6573. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6574. }
  6575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6577. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6578. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6579. public virtual int Fill(KazarinKafeDataSet.EmployeesDataTable dataTable) {
  6580. this.Adapter.SelectCommand = this.CommandCollection[0];
  6581. if ((this.ClearBeforeFill == true)) {
  6582. dataTable.Clear();
  6583. }
  6584. int returnValue = this.Adapter.Fill(dataTable);
  6585. return returnValue;
  6586. }
  6587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6589. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6590. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6591. public virtual KazarinKafeDataSet.EmployeesDataTable GetData() {
  6592. this.Adapter.SelectCommand = this.CommandCollection[0];
  6593. KazarinKafeDataSet.EmployeesDataTable dataTable = new KazarinKafeDataSet.EmployeesDataTable();
  6594. this.Adapter.Fill(dataTable);
  6595. return dataTable;
  6596. }
  6597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6599. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6600. public virtual int Update(KazarinKafeDataSet.EmployeesDataTable dataTable) {
  6601. return this.Adapter.Update(dataTable);
  6602. }
  6603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6605. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6606. public virtual int Update(KazarinKafeDataSet dataSet) {
  6607. return this.Adapter.Update(dataSet, "Employees");
  6608. }
  6609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6611. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6612. public virtual int Update(global::System.Data.DataRow dataRow) {
  6613. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6614. dataRow});
  6615. }
  6616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6618. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6619. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6620. return this.Adapter.Update(dataRows);
  6621. }
  6622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6624. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6625. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6626. public virtual int Delete(int Original_ID, global::System.Nullable<int> Original_Роль, global::System.Nullable<global::System.DateTime> Original_ДатаРождения, string Original_Телефон, string Original_Адрес, string Original_Username, string Original_Password, global::System.Nullable<int> Original_Статус) {
  6627. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6628. if ((Original_Роль.HasValue == true)) {
  6629. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6630. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Роль.Value));
  6631. }
  6632. else {
  6633. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6634. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6635. }
  6636. if ((Original_ДатаРождения.HasValue == true)) {
  6637. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6638. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_ДатаРождения.Value));
  6639. }
  6640. else {
  6641. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6642. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6643. }
  6644. if ((Original_Телефон == null)) {
  6645. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6646. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6647. }
  6648. else {
  6649. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6650. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Телефон));
  6651. }
  6652. if ((Original_Адрес == null)) {
  6653. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6654. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6655. }
  6656. else {
  6657. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6658. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Адрес));
  6659. }
  6660. if ((Original_Username == null)) {
  6661. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6662. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6663. }
  6664. else {
  6665. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6666. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Username));
  6667. }
  6668. if ((Original_Password == null)) {
  6669. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6670. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6671. }
  6672. else {
  6673. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6674. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Password));
  6675. }
  6676. if ((Original_Статус.HasValue == true)) {
  6677. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  6678. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_Статус.Value));
  6679. }
  6680. else {
  6681. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  6682. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  6683. }
  6684. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6685. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6686. != global::System.Data.ConnectionState.Open)) {
  6687. this.Adapter.DeleteCommand.Connection.Open();
  6688. }
  6689. try {
  6690. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6691. return returnValue;
  6692. }
  6693. finally {
  6694. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6695. this.Adapter.DeleteCommand.Connection.Close();
  6696. }
  6697. }
  6698. }
  6699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6701. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6702. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6703. public virtual int Insert(global::System.Nullable<int> Роль, global::System.Nullable<global::System.DateTime> ДатаРождения, string Телефон, string Адрес, string Username, string Password, global::System.Nullable<int> Статус) {
  6704. if ((Роль.HasValue == true)) {
  6705. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Роль.Value));
  6706. }
  6707. else {
  6708. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6709. }
  6710. if ((ДатаРождения.HasValue == true)) {
  6711. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(ДатаРождения.Value));
  6712. }
  6713. else {
  6714. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6715. }
  6716. if ((Телефон == null)) {
  6717. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6718. }
  6719. else {
  6720. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Телефон));
  6721. }
  6722. if ((Адрес == null)) {
  6723. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6724. }
  6725. else {
  6726. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Адрес));
  6727. }
  6728. if ((Username == null)) {
  6729. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6730. }
  6731. else {
  6732. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Username));
  6733. }
  6734. if ((Password == null)) {
  6735. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6736. }
  6737. else {
  6738. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Password));
  6739. }
  6740. if ((Статус.HasValue == true)) {
  6741. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(Статус.Value));
  6742. }
  6743. else {
  6744. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  6745. }
  6746. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6747. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6748. != global::System.Data.ConnectionState.Open)) {
  6749. this.Adapter.InsertCommand.Connection.Open();
  6750. }
  6751. try {
  6752. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6753. return returnValue;
  6754. }
  6755. finally {
  6756. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6757. this.Adapter.InsertCommand.Connection.Close();
  6758. }
  6759. }
  6760. }
  6761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6763. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6764. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6765. public virtual int Update(
  6766. global::System.Nullable<int> Роль,
  6767. global::System.Nullable<global::System.DateTime> ДатаРождения,
  6768. string Телефон,
  6769. string Адрес,
  6770. string Username,
  6771. string Password,
  6772. global::System.Nullable<int> Статус,
  6773. int Original_ID,
  6774. global::System.Nullable<int> Original_Роль,
  6775. global::System.Nullable<global::System.DateTime> Original_ДатаРождения,
  6776. string Original_Телефон,
  6777. string Original_Адрес,
  6778. string Original_Username,
  6779. string Original_Password,
  6780. global::System.Nullable<int> Original_Статус,
  6781. int ID) {
  6782. if ((Роль.HasValue == true)) {
  6783. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Роль.Value));
  6784. }
  6785. else {
  6786. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6787. }
  6788. if ((ДатаРождения.HasValue == true)) {
  6789. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(ДатаРождения.Value));
  6790. }
  6791. else {
  6792. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6793. }
  6794. if ((Телефон == null)) {
  6795. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6796. }
  6797. else {
  6798. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Телефон));
  6799. }
  6800. if ((Адрес == null)) {
  6801. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6802. }
  6803. else {
  6804. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Адрес));
  6805. }
  6806. if ((Username == null)) {
  6807. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6808. }
  6809. else {
  6810. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Username));
  6811. }
  6812. if ((Password == null)) {
  6813. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6814. }
  6815. else {
  6816. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Password));
  6817. }
  6818. if ((Статус.HasValue == true)) {
  6819. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Статус.Value));
  6820. }
  6821. else {
  6822. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6823. }
  6824. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_ID));
  6825. if ((Original_Роль.HasValue == true)) {
  6826. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  6827. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Роль.Value));
  6828. }
  6829. else {
  6830. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  6831. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6832. }
  6833. if ((Original_ДатаРождения.HasValue == true)) {
  6834. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  6835. this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_ДатаРождения.Value));
  6836. }
  6837. else {
  6838. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  6839. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  6840. }
  6841. if ((Original_Телефон == null)) {
  6842. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  6843. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  6844. }
  6845. else {
  6846. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  6847. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Телефон));
  6848. }
  6849. if ((Original_Адрес == null)) {
  6850. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  6851. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  6852. }
  6853. else {
  6854. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  6855. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Адрес));
  6856. }
  6857. if ((Original_Username == null)) {
  6858. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  6859. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  6860. }
  6861. else {
  6862. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  6863. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Username));
  6864. }
  6865. if ((Original_Password == null)) {
  6866. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  6867. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  6868. }
  6869. else {
  6870. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  6871. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Password));
  6872. }
  6873. if ((Original_Статус.HasValue == true)) {
  6874. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  6875. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_Статус.Value));
  6876. }
  6877. else {
  6878. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  6879. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  6880. }
  6881. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(ID));
  6882. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6883. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6884. != global::System.Data.ConnectionState.Open)) {
  6885. this.Adapter.UpdateCommand.Connection.Open();
  6886. }
  6887. try {
  6888. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6889. return returnValue;
  6890. }
  6891. finally {
  6892. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6893. this.Adapter.UpdateCommand.Connection.Close();
  6894. }
  6895. }
  6896. }
  6897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6899. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6900. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6901. public virtual int Update(global::System.Nullable<int> Роль, global::System.Nullable<global::System.DateTime> ДатаРождения, string Телефон, string Адрес, string Username, string Password, global::System.Nullable<int> Статус, int Original_ID, global::System.Nullable<int> Original_Роль, global::System.Nullable<global::System.DateTime> Original_ДатаРождения, string Original_Телефон, string Original_Адрес, string Original_Username, string Original_Password, global::System.Nullable<int> Original_Статус) {
  6902. return this.Update(Роль, ДатаРождения, Телефон, Адрес, Username, Password, Статус, Original_ID, Original_Роль, Original_ДатаРождения, Original_Телефон, Original_Адрес, Original_Username, Original_Password, Original_Статус, Original_ID);
  6903. }
  6904. }
  6905. /// <summary>
  6906. ///Represents the connection and commands used to retrieve and save data.
  6907. ///</summary>
  6908. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6909. [global::System.ComponentModel.ToolboxItem(true)]
  6910. [global::System.ComponentModel.DataObjectAttribute(true)]
  6911. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6912. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6913. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6914. public partial class OrderedDishesTableAdapter : global::System.ComponentModel.Component {
  6915. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6916. private global::System.Data.SqlClient.SqlConnection _connection;
  6917. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6918. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6919. private bool _clearBeforeFill;
  6920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6922. public OrderedDishesTableAdapter() {
  6923. this.ClearBeforeFill = true;
  6924. }
  6925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6927. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6928. get {
  6929. if ((this._adapter == null)) {
  6930. this.InitAdapter();
  6931. }
  6932. return this._adapter;
  6933. }
  6934. }
  6935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6937. internal global::System.Data.SqlClient.SqlConnection Connection {
  6938. get {
  6939. if ((this._connection == null)) {
  6940. this.InitConnection();
  6941. }
  6942. return this._connection;
  6943. }
  6944. set {
  6945. this._connection = value;
  6946. if ((this.Adapter.InsertCommand != null)) {
  6947. this.Adapter.InsertCommand.Connection = value;
  6948. }
  6949. if ((this.Adapter.DeleteCommand != null)) {
  6950. this.Adapter.DeleteCommand.Connection = value;
  6951. }
  6952. if ((this.Adapter.UpdateCommand != null)) {
  6953. this.Adapter.UpdateCommand.Connection = value;
  6954. }
  6955. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6956. if ((this.CommandCollection[i] != null)) {
  6957. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6958. }
  6959. }
  6960. }
  6961. }
  6962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6964. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6965. get {
  6966. return this._transaction;
  6967. }
  6968. set {
  6969. this._transaction = value;
  6970. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6971. this.CommandCollection[i].Transaction = this._transaction;
  6972. }
  6973. if (((this.Adapter != null)
  6974. && (this.Adapter.DeleteCommand != null))) {
  6975. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6976. }
  6977. if (((this.Adapter != null)
  6978. && (this.Adapter.InsertCommand != null))) {
  6979. this.Adapter.InsertCommand.Transaction = this._transaction;
  6980. }
  6981. if (((this.Adapter != null)
  6982. && (this.Adapter.UpdateCommand != null))) {
  6983. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6984. }
  6985. }
  6986. }
  6987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6989. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6990. get {
  6991. if ((this._commandCollection == null)) {
  6992. this.InitCommandCollection();
  6993. }
  6994. return this._commandCollection;
  6995. }
  6996. }
  6997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6999. public bool ClearBeforeFill {
  7000. get {
  7001. return this._clearBeforeFill;
  7002. }
  7003. set {
  7004. this._clearBeforeFill = value;
  7005. }
  7006. }
  7007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7009. private void InitAdapter() {
  7010. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7011. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7012. tableMapping.SourceTable = "Table";
  7013. tableMapping.DataSetTable = "OrderedDishes";
  7014. tableMapping.ColumnMappings.Add("ID", "ID");
  7015. tableMapping.ColumnMappings.Add("IDЗаказа", "IDЗаказа");
  7016. tableMapping.ColumnMappings.Add("IDПродукт", "IDПродукт");
  7017. tableMapping.ColumnMappings.Add("Количество", "Количество");
  7018. this._adapter.TableMappings.Add(tableMapping);
  7019. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7020. this._adapter.DeleteCommand.Connection = this.Connection;
  7021. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[OrderedDishes] WHERE (([ID] = @Original_ID) AND ((@IsNull_IDЗаказа = 1 AND [IDЗаказа] IS NULL) OR ([IDЗаказа] = @Original_IDЗаказа)) AND ((@IsNull_IDПродукт = 1 AND [IDПродукт] IS NULL) OR ([IDПродукт] = @Original_IDПродукт)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)))";
  7022. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7023. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7024. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDЗаказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDЗаказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7025. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDЗаказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDЗаказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7026. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDПродукт", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПродукт", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7027. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDПродукт", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПродукт", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7028. 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, "", "", ""));
  7029. 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, "", "", ""));
  7030. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7031. this._adapter.InsertCommand.Connection = this.Connection;
  7032. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[OrderedDishes] ([IDЗаказа], [IDПродукт], [Количество]) VALUES " +
  7033. "(@IDЗаказа, @IDПродукт, @Количество);\r\nSELECT ID, IDЗаказа, IDПродукт, Количеств" +
  7034. "о FROM OrderedDishes WHERE (ID = SCOPE_IDENTITY())";
  7035. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7036. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDЗаказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDЗаказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7037. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDПродукт", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПродукт", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7038. 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, "", "", ""));
  7039. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7040. this._adapter.UpdateCommand.Connection = this.Connection;
  7041. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrderedDishes] SET [IDЗаказа] = @IDЗаказа, [IDПродукт] = @IDПродукт, [Количество] = @Количество WHERE (([ID] = @Original_ID) AND ((@IsNull_IDЗаказа = 1 AND [IDЗаказа] IS NULL) OR ([IDЗаказа] = @Original_IDЗаказа)) AND ((@IsNull_IDПродукт = 1 AND [IDПродукт] IS NULL) OR ([IDПродукт] = @Original_IDПродукт)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)));
  7042. SELECT ID, IDЗаказа, IDПродукт, Количество FROM OrderedDishes WHERE (ID = @ID)";
  7043. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7044. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDЗаказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDЗаказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7045. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDПродукт", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПродукт", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7046. 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, "", "", ""));
  7047. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7048. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDЗаказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDЗаказа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7049. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDЗаказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDЗаказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7050. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDПродукт", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПродукт", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7051. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDПродукт", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПродукт", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7052. 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, "", "", ""));
  7053. 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, "", "", ""));
  7054. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7055. }
  7056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7058. private void InitConnection() {
  7059. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7060. this._connection.ConnectionString = global::KafeKazarin03.Properties.Settings.Default.KazarinKafeConnectionString;
  7061. }
  7062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7064. private void InitCommandCollection() {
  7065. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7066. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7067. this._commandCollection[0].Connection = this.Connection;
  7068. this._commandCollection[0].CommandText = "SELECT ID, IDЗаказа, IDПродукт, Количество FROM dbo.OrderedDishes";
  7069. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7070. }
  7071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7073. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7074. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7075. public virtual int Fill(KazarinKafeDataSet.OrderedDishesDataTable dataTable) {
  7076. this.Adapter.SelectCommand = this.CommandCollection[0];
  7077. if ((this.ClearBeforeFill == true)) {
  7078. dataTable.Clear();
  7079. }
  7080. int returnValue = this.Adapter.Fill(dataTable);
  7081. return returnValue;
  7082. }
  7083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7085. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7086. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7087. public virtual KazarinKafeDataSet.OrderedDishesDataTable GetData() {
  7088. this.Adapter.SelectCommand = this.CommandCollection[0];
  7089. KazarinKafeDataSet.OrderedDishesDataTable dataTable = new KazarinKafeDataSet.OrderedDishesDataTable();
  7090. this.Adapter.Fill(dataTable);
  7091. return dataTable;
  7092. }
  7093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7095. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7096. public virtual int Update(KazarinKafeDataSet.OrderedDishesDataTable dataTable) {
  7097. return this.Adapter.Update(dataTable);
  7098. }
  7099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7101. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7102. public virtual int Update(KazarinKafeDataSet dataSet) {
  7103. return this.Adapter.Update(dataSet, "OrderedDishes");
  7104. }
  7105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7107. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7108. public virtual int Update(global::System.Data.DataRow dataRow) {
  7109. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7110. dataRow});
  7111. }
  7112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7114. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7115. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7116. return this.Adapter.Update(dataRows);
  7117. }
  7118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7120. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7121. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7122. public virtual int Delete(int Original_ID, global::System.Nullable<int> Original_IDЗаказа, global::System.Nullable<int> Original_IDПродукт, global::System.Nullable<int> Original_Количество) {
  7123. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7124. if ((Original_IDЗаказа.HasValue == true)) {
  7125. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7126. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IDЗаказа.Value));
  7127. }
  7128. else {
  7129. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7130. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7131. }
  7132. if ((Original_IDПродукт.HasValue == true)) {
  7133. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7134. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IDПродукт.Value));
  7135. }
  7136. else {
  7137. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7138. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7139. }
  7140. if ((Original_Количество.HasValue == true)) {
  7141. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7142. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Количество.Value));
  7143. }
  7144. else {
  7145. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7146. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7147. }
  7148. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7149. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7150. != global::System.Data.ConnectionState.Open)) {
  7151. this.Adapter.DeleteCommand.Connection.Open();
  7152. }
  7153. try {
  7154. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7155. return returnValue;
  7156. }
  7157. finally {
  7158. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7159. this.Adapter.DeleteCommand.Connection.Close();
  7160. }
  7161. }
  7162. }
  7163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7165. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7166. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7167. public virtual int Insert(global::System.Nullable<int> IDЗаказа, global::System.Nullable<int> IDПродукт, global::System.Nullable<int> Количество) {
  7168. if ((IDЗаказа.HasValue == true)) {
  7169. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDЗаказа.Value));
  7170. }
  7171. else {
  7172. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7173. }
  7174. if ((IDПродукт.HasValue == true)) {
  7175. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IDПродукт.Value));
  7176. }
  7177. else {
  7178. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7179. }
  7180. if ((Количество.HasValue == true)) {
  7181. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Количество.Value));
  7182. }
  7183. else {
  7184. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7185. }
  7186. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7187. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7188. != global::System.Data.ConnectionState.Open)) {
  7189. this.Adapter.InsertCommand.Connection.Open();
  7190. }
  7191. try {
  7192. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7193. return returnValue;
  7194. }
  7195. finally {
  7196. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7197. this.Adapter.InsertCommand.Connection.Close();
  7198. }
  7199. }
  7200. }
  7201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7203. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7204. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7205. public virtual int Update(global::System.Nullable<int> IDЗаказа, global::System.Nullable<int> IDПродукт, global::System.Nullable<int> Количество, int Original_ID, global::System.Nullable<int> Original_IDЗаказа, global::System.Nullable<int> Original_IDПродукт, global::System.Nullable<int> Original_Количество, int ID) {
  7206. if ((IDЗаказа.HasValue == true)) {
  7207. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDЗаказа.Value));
  7208. }
  7209. else {
  7210. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7211. }
  7212. if ((IDПродукт.HasValue == true)) {
  7213. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IDПродукт.Value));
  7214. }
  7215. else {
  7216. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7217. }
  7218. if ((Количество.HasValue == true)) {
  7219. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Количество.Value));
  7220. }
  7221. else {
  7222. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7223. }
  7224. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  7225. if ((Original_IDЗаказа.HasValue == true)) {
  7226. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  7227. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IDЗаказа.Value));
  7228. }
  7229. else {
  7230. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  7231. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7232. }
  7233. if ((Original_IDПродукт.HasValue == true)) {
  7234. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  7235. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IDПродукт.Value));
  7236. }
  7237. else {
  7238. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  7239. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7240. }
  7241. if ((Original_Количество.HasValue == true)) {
  7242. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  7243. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Количество.Value));
  7244. }
  7245. else {
  7246. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  7247. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7248. }
  7249. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  7250. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7251. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7252. != global::System.Data.ConnectionState.Open)) {
  7253. this.Adapter.UpdateCommand.Connection.Open();
  7254. }
  7255. try {
  7256. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7257. return returnValue;
  7258. }
  7259. finally {
  7260. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7261. this.Adapter.UpdateCommand.Connection.Close();
  7262. }
  7263. }
  7264. }
  7265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7267. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7268. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7269. public virtual int Update(global::System.Nullable<int> IDЗаказа, global::System.Nullable<int> IDПродукт, global::System.Nullable<int> Количество, int Original_ID, global::System.Nullable<int> Original_IDЗаказа, global::System.Nullable<int> Original_IDПродукт, global::System.Nullable<int> Original_Количество) {
  7270. return this.Update(IDЗаказа, IDПродукт, Количество, Original_ID, Original_IDЗаказа, Original_IDПродукт, Original_Количество, Original_ID);
  7271. }
  7272. }
  7273. /// <summary>
  7274. ///Represents the connection and commands used to retrieve and save data.
  7275. ///</summary>
  7276. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7277. [global::System.ComponentModel.ToolboxItem(true)]
  7278. [global::System.ComponentModel.DataObjectAttribute(true)]
  7279. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7280. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7281. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7282. public partial class OrdersTableAdapter : global::System.ComponentModel.Component {
  7283. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7284. private global::System.Data.SqlClient.SqlConnection _connection;
  7285. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7286. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7287. private bool _clearBeforeFill;
  7288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7290. public OrdersTableAdapter() {
  7291. this.ClearBeforeFill = true;
  7292. }
  7293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7295. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7296. get {
  7297. if ((this._adapter == null)) {
  7298. this.InitAdapter();
  7299. }
  7300. return this._adapter;
  7301. }
  7302. }
  7303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7305. internal global::System.Data.SqlClient.SqlConnection Connection {
  7306. get {
  7307. if ((this._connection == null)) {
  7308. this.InitConnection();
  7309. }
  7310. return this._connection;
  7311. }
  7312. set {
  7313. this._connection = value;
  7314. if ((this.Adapter.InsertCommand != null)) {
  7315. this.Adapter.InsertCommand.Connection = value;
  7316. }
  7317. if ((this.Adapter.DeleteCommand != null)) {
  7318. this.Adapter.DeleteCommand.Connection = value;
  7319. }
  7320. if ((this.Adapter.UpdateCommand != null)) {
  7321. this.Adapter.UpdateCommand.Connection = value;
  7322. }
  7323. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7324. if ((this.CommandCollection[i] != null)) {
  7325. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7326. }
  7327. }
  7328. }
  7329. }
  7330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7332. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7333. get {
  7334. return this._transaction;
  7335. }
  7336. set {
  7337. this._transaction = value;
  7338. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7339. this.CommandCollection[i].Transaction = this._transaction;
  7340. }
  7341. if (((this.Adapter != null)
  7342. && (this.Adapter.DeleteCommand != null))) {
  7343. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7344. }
  7345. if (((this.Adapter != null)
  7346. && (this.Adapter.InsertCommand != null))) {
  7347. this.Adapter.InsertCommand.Transaction = this._transaction;
  7348. }
  7349. if (((this.Adapter != null)
  7350. && (this.Adapter.UpdateCommand != null))) {
  7351. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7352. }
  7353. }
  7354. }
  7355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7357. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7358. get {
  7359. if ((this._commandCollection == null)) {
  7360. this.InitCommandCollection();
  7361. }
  7362. return this._commandCollection;
  7363. }
  7364. }
  7365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7367. public bool ClearBeforeFill {
  7368. get {
  7369. return this._clearBeforeFill;
  7370. }
  7371. set {
  7372. this._clearBeforeFill = value;
  7373. }
  7374. }
  7375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7377. private void InitAdapter() {
  7378. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7379. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7380. tableMapping.SourceTable = "Table";
  7381. tableMapping.DataSetTable = "Orders";
  7382. tableMapping.ColumnMappings.Add("ID", "ID");
  7383. tableMapping.ColumnMappings.Add("ДатаЗаказа", "ДатаЗаказа");
  7384. tableMapping.ColumnMappings.Add("СтатусЗаказа", "СтатусЗаказа");
  7385. tableMapping.ColumnMappings.Add("СпособОплаты", "СпособОплаты");
  7386. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  7387. tableMapping.ColumnMappings.Add("Столик", "Столик");
  7388. tableMapping.ColumnMappings.Add("IDСмены", "IDСмены");
  7389. this._adapter.TableMappings.Add(tableMapping);
  7390. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7391. this._adapter.DeleteCommand.Connection = this.Connection;
  7392. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Orders] WHERE (([ID] = @Original_ID) 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_IDСмены = 1 AND [IDСмены] IS NULL) OR ([IDСмены] = @Original_IDСмены)))";
  7393. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7394. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7395. 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, "", "", ""));
  7396. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаЗаказа", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЗаказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7397. 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, "", "", ""));
  7398. 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, "", "", ""));
  7399. 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, "", "", ""));
  7400. 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, "", "", ""));
  7401. 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, "", "", ""));
  7402. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7403. 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, "", "", ""));
  7404. 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, "", "", ""));
  7405. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDСмены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDСмены", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7406. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDСмены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDСмены", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7407. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7408. this._adapter.InsertCommand.Connection = this.Connection;
  7409. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Orders] ([ДатаЗаказа], [СтатусЗаказа], [СпособОплаты], [Стоимость], [Столик], [IDСмены]) VALUES (@ДатаЗаказа, @СтатусЗаказа, @СпособОплаты, @Стоимость, @Столик, @IDСмены);
  7410. SELECT ID, ДатаЗаказа, СтатусЗаказа, СпособОплаты, Стоимость, Столик, IDСмены FROM Orders WHERE (ID = SCOPE_IDENTITY())";
  7411. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7412. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаЗаказа", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЗаказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7413. 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, "", "", ""));
  7414. 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, "", "", ""));
  7415. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7416. 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, "", "", ""));
  7417. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDСмены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDСмены", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7418. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7419. this._adapter.UpdateCommand.Connection = this.Connection;
  7420. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Orders] SET [ДатаЗаказа] = @ДатаЗаказа, [СтатусЗаказа] = @СтатусЗаказа, [СпособОплаты] = @СпособОплаты, [Стоимость] = @Стоимость, [Столик] = @Столик, [IDСмены] = @IDСмены WHERE (([ID] = @Original_ID) 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_IDСмены = 1 AND [IDСмены] IS NULL) OR ([IDСмены] = @Original_IDСмены)));
  7421. SELECT ID, ДатаЗаказа, СтатусЗаказа, СпособОплаты, Стоимость, Столик, IDСмены FROM Orders WHERE (ID = @ID)";
  7422. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7423. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаЗаказа", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЗаказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7424. 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, "", "", ""));
  7425. 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, "", "", ""));
  7426. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7427. 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, "", "", ""));
  7428. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDСмены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDСмены", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7429. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7430. 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, "", "", ""));
  7431. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаЗаказа", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЗаказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7432. 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, "", "", ""));
  7433. 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, "", "", ""));
  7434. 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, "", "", ""));
  7435. 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, "", "", ""));
  7436. 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, "", "", ""));
  7437. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7438. 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, "", "", ""));
  7439. 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, "", "", ""));
  7440. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDСмены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDСмены", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7441. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDСмены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDСмены", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7442. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7443. }
  7444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7446. private void InitConnection() {
  7447. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7448. this._connection.ConnectionString = global::KafeKazarin03.Properties.Settings.Default.KazarinKafeConnectionString;
  7449. }
  7450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7452. private void InitCommandCollection() {
  7453. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7454. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7455. this._commandCollection[0].Connection = this.Connection;
  7456. this._commandCollection[0].CommandText = "SELECT ID, ДатаЗаказа, СтатусЗаказа, СпособОплаты, Стоимость, Столик, IDСмены FRO" +
  7457. "M dbo.Orders";
  7458. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7459. }
  7460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7462. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7463. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7464. public virtual int Fill(KazarinKafeDataSet.OrdersDataTable dataTable) {
  7465. this.Adapter.SelectCommand = this.CommandCollection[0];
  7466. if ((this.ClearBeforeFill == true)) {
  7467. dataTable.Clear();
  7468. }
  7469. int returnValue = this.Adapter.Fill(dataTable);
  7470. return returnValue;
  7471. }
  7472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7474. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7475. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7476. public virtual KazarinKafeDataSet.OrdersDataTable GetData() {
  7477. this.Adapter.SelectCommand = this.CommandCollection[0];
  7478. KazarinKafeDataSet.OrdersDataTable dataTable = new KazarinKafeDataSet.OrdersDataTable();
  7479. this.Adapter.Fill(dataTable);
  7480. return dataTable;
  7481. }
  7482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7484. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7485. public virtual int Update(KazarinKafeDataSet.OrdersDataTable dataTable) {
  7486. return this.Adapter.Update(dataTable);
  7487. }
  7488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7490. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7491. public virtual int Update(KazarinKafeDataSet dataSet) {
  7492. return this.Adapter.Update(dataSet, "Orders");
  7493. }
  7494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7496. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7497. public virtual int Update(global::System.Data.DataRow dataRow) {
  7498. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7499. dataRow});
  7500. }
  7501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7503. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7504. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7505. return this.Adapter.Update(dataRows);
  7506. }
  7507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7509. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7510. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7511. public virtual int Delete(int Original_ID, global::System.Nullable<global::System.DateTime> Original_ДатаЗаказа, global::System.Nullable<int> Original_СтатусЗаказа, global::System.Nullable<int> Original_СпособОплаты, global::System.Nullable<decimal> Original_Стоимость, global::System.Nullable<int> Original_Столик, global::System.Nullable<int> Original_IDСмены) {
  7512. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7513. if ((Original_ДатаЗаказа.HasValue == true)) {
  7514. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7515. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_ДатаЗаказа.Value));
  7516. }
  7517. else {
  7518. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7519. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7520. }
  7521. if ((Original_СтатусЗаказа.HasValue == true)) {
  7522. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7523. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_СтатусЗаказа.Value));
  7524. }
  7525. else {
  7526. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7527. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7528. }
  7529. if ((Original_СпособОплаты.HasValue == true)) {
  7530. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7531. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_СпособОплаты.Value));
  7532. }
  7533. else {
  7534. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7535. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7536. }
  7537. if ((Original_Стоимость.HasValue == true)) {
  7538. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7539. this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_Стоимость.Value));
  7540. }
  7541. else {
  7542. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7543. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7544. }
  7545. if ((Original_Столик.HasValue == true)) {
  7546. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  7547. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_Столик.Value));
  7548. }
  7549. else {
  7550. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  7551. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  7552. }
  7553. if ((Original_IDСмены.HasValue == true)) {
  7554. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  7555. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_IDСмены.Value));
  7556. }
  7557. else {
  7558. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  7559. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  7560. }
  7561. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7562. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7563. != global::System.Data.ConnectionState.Open)) {
  7564. this.Adapter.DeleteCommand.Connection.Open();
  7565. }
  7566. try {
  7567. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7568. return returnValue;
  7569. }
  7570. finally {
  7571. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7572. this.Adapter.DeleteCommand.Connection.Close();
  7573. }
  7574. }
  7575. }
  7576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7578. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7579. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7580. public virtual int Insert(global::System.Nullable<global::System.DateTime> ДатаЗаказа, global::System.Nullable<int> СтатусЗаказа, global::System.Nullable<int> СпособОплаты, global::System.Nullable<decimal> Стоимость, global::System.Nullable<int> Столик, global::System.Nullable<int> IDСмены) {
  7581. if ((ДатаЗаказа.HasValue == true)) {
  7582. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(ДатаЗаказа.Value));
  7583. }
  7584. else {
  7585. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7586. }
  7587. if ((СтатусЗаказа.HasValue == true)) {
  7588. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(СтатусЗаказа.Value));
  7589. }
  7590. else {
  7591. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7592. }
  7593. if ((СпособОплаты.HasValue == true)) {
  7594. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(СпособОплаты.Value));
  7595. }
  7596. else {
  7597. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7598. }
  7599. if ((Стоимость.HasValue == true)) {
  7600. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(Стоимость.Value));
  7601. }
  7602. else {
  7603. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7604. }
  7605. if ((Столик.HasValue == true)) {
  7606. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Столик.Value));
  7607. }
  7608. else {
  7609. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  7610. }
  7611. if ((IDСмены.HasValue == true)) {
  7612. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(IDСмены.Value));
  7613. }
  7614. else {
  7615. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  7616. }
  7617. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7618. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7619. != global::System.Data.ConnectionState.Open)) {
  7620. this.Adapter.InsertCommand.Connection.Open();
  7621. }
  7622. try {
  7623. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7624. return returnValue;
  7625. }
  7626. finally {
  7627. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7628. this.Adapter.InsertCommand.Connection.Close();
  7629. }
  7630. }
  7631. }
  7632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7635. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7636. public virtual int Update(global::System.Nullable<global::System.DateTime> ДатаЗаказа, global::System.Nullable<int> СтатусЗаказа, global::System.Nullable<int> СпособОплаты, global::System.Nullable<decimal> Стоимость, global::System.Nullable<int> Столик, global::System.Nullable<int> IDСмены, int Original_ID, global::System.Nullable<global::System.DateTime> Original_ДатаЗаказа, global::System.Nullable<int> Original_СтатусЗаказа, global::System.Nullable<int> Original_СпособОплаты, global::System.Nullable<decimal> Original_Стоимость, global::System.Nullable<int> Original_Столик, global::System.Nullable<int> Original_IDСмены, int ID) {
  7637. if ((ДатаЗаказа.HasValue == true)) {
  7638. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(ДатаЗаказа.Value));
  7639. }
  7640. else {
  7641. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7642. }
  7643. if ((СтатусЗаказа.HasValue == true)) {
  7644. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(СтатусЗаказа.Value));
  7645. }
  7646. else {
  7647. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7648. }
  7649. if ((СпособОплаты.HasValue == true)) {
  7650. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(СпособОплаты.Value));
  7651. }
  7652. else {
  7653. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7654. }
  7655. if ((Стоимость.HasValue == true)) {
  7656. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(Стоимость.Value));
  7657. }
  7658. else {
  7659. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7660. }
  7661. if ((Столик.HasValue == true)) {
  7662. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Столик.Value));
  7663. }
  7664. else {
  7665. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7666. }
  7667. if ((IDСмены.HasValue == true)) {
  7668. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(IDСмены.Value));
  7669. }
  7670. else {
  7671. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7672. }
  7673. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  7674. if ((Original_ДатаЗаказа.HasValue == true)) {
  7675. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  7676. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_ДатаЗаказа.Value));
  7677. }
  7678. else {
  7679. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  7680. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7681. }
  7682. if ((Original_СтатусЗаказа.HasValue == true)) {
  7683. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  7684. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_СтатусЗаказа.Value));
  7685. }
  7686. else {
  7687. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  7688. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7689. }
  7690. if ((Original_СпособОплаты.HasValue == true)) {
  7691. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  7692. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_СпособОплаты.Value));
  7693. }
  7694. else {
  7695. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  7696. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7697. }
  7698. if ((Original_Стоимость.HasValue == true)) {
  7699. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  7700. this.Adapter.UpdateCommand.Parameters[14].Value = ((decimal)(Original_Стоимость.Value));
  7701. }
  7702. else {
  7703. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  7704. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  7705. }
  7706. if ((Original_Столик.HasValue == true)) {
  7707. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  7708. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_Столик.Value));
  7709. }
  7710. else {
  7711. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  7712. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  7713. }
  7714. if ((Original_IDСмены.HasValue == true)) {
  7715. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  7716. this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_IDСмены.Value));
  7717. }
  7718. else {
  7719. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  7720. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  7721. }
  7722. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(ID));
  7723. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7724. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7725. != global::System.Data.ConnectionState.Open)) {
  7726. this.Adapter.UpdateCommand.Connection.Open();
  7727. }
  7728. try {
  7729. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7730. return returnValue;
  7731. }
  7732. finally {
  7733. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7734. this.Adapter.UpdateCommand.Connection.Close();
  7735. }
  7736. }
  7737. }
  7738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7740. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7741. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7742. public virtual int Update(global::System.Nullable<global::System.DateTime> ДатаЗаказа, global::System.Nullable<int> СтатусЗаказа, global::System.Nullable<int> СпособОплаты, global::System.Nullable<decimal> Стоимость, global::System.Nullable<int> Столик, global::System.Nullable<int> IDСмены, int Original_ID, global::System.Nullable<global::System.DateTime> Original_ДатаЗаказа, global::System.Nullable<int> Original_СтатусЗаказа, global::System.Nullable<int> Original_СпособОплаты, global::System.Nullable<decimal> Original_Стоимость, global::System.Nullable<int> Original_Столик, global::System.Nullable<int> Original_IDСмены) {
  7743. return this.Update(ДатаЗаказа, СтатусЗаказа, СпособОплаты, Стоимость, Столик, IDСмены, Original_ID, Original_ДатаЗаказа, Original_СтатусЗаказа, Original_СпособОплаты, Original_Стоимость, Original_Столик, Original_IDСмены, Original_ID);
  7744. }
  7745. }
  7746. /// <summary>
  7747. ///Represents the connection and commands used to retrieve and save data.
  7748. ///</summary>
  7749. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7750. [global::System.ComponentModel.ToolboxItem(true)]
  7751. [global::System.ComponentModel.DataObjectAttribute(true)]
  7752. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7753. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7754. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7755. public partial class OrderStatusTableAdapter : global::System.ComponentModel.Component {
  7756. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7757. private global::System.Data.SqlClient.SqlConnection _connection;
  7758. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7759. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7760. private bool _clearBeforeFill;
  7761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7763. public OrderStatusTableAdapter() {
  7764. this.ClearBeforeFill = true;
  7765. }
  7766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7768. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7769. get {
  7770. if ((this._adapter == null)) {
  7771. this.InitAdapter();
  7772. }
  7773. return this._adapter;
  7774. }
  7775. }
  7776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7778. internal global::System.Data.SqlClient.SqlConnection Connection {
  7779. get {
  7780. if ((this._connection == null)) {
  7781. this.InitConnection();
  7782. }
  7783. return this._connection;
  7784. }
  7785. set {
  7786. this._connection = value;
  7787. if ((this.Adapter.InsertCommand != null)) {
  7788. this.Adapter.InsertCommand.Connection = value;
  7789. }
  7790. if ((this.Adapter.DeleteCommand != null)) {
  7791. this.Adapter.DeleteCommand.Connection = value;
  7792. }
  7793. if ((this.Adapter.UpdateCommand != null)) {
  7794. this.Adapter.UpdateCommand.Connection = value;
  7795. }
  7796. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7797. if ((this.CommandCollection[i] != null)) {
  7798. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7799. }
  7800. }
  7801. }
  7802. }
  7803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7805. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7806. get {
  7807. return this._transaction;
  7808. }
  7809. set {
  7810. this._transaction = value;
  7811. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7812. this.CommandCollection[i].Transaction = this._transaction;
  7813. }
  7814. if (((this.Adapter != null)
  7815. && (this.Adapter.DeleteCommand != null))) {
  7816. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7817. }
  7818. if (((this.Adapter != null)
  7819. && (this.Adapter.InsertCommand != null))) {
  7820. this.Adapter.InsertCommand.Transaction = this._transaction;
  7821. }
  7822. if (((this.Adapter != null)
  7823. && (this.Adapter.UpdateCommand != null))) {
  7824. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7825. }
  7826. }
  7827. }
  7828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7830. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7831. get {
  7832. if ((this._commandCollection == null)) {
  7833. this.InitCommandCollection();
  7834. }
  7835. return this._commandCollection;
  7836. }
  7837. }
  7838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7840. public bool ClearBeforeFill {
  7841. get {
  7842. return this._clearBeforeFill;
  7843. }
  7844. set {
  7845. this._clearBeforeFill = value;
  7846. }
  7847. }
  7848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7850. private void InitAdapter() {
  7851. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7852. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7853. tableMapping.SourceTable = "Table";
  7854. tableMapping.DataSetTable = "OrderStatus";
  7855. tableMapping.ColumnMappings.Add("ID", "ID");
  7856. tableMapping.ColumnMappings.Add("Название", "Название");
  7857. this._adapter.TableMappings.Add(tableMapping);
  7858. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7859. this._adapter.DeleteCommand.Connection = this.Connection;
  7860. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[OrderStatus] WHERE (([ID] = @Original_ID) AND ((@IsNull_Назван" +
  7861. "ие = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)))";
  7862. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7863. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7864. 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, "", "", ""));
  7865. 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, "", "", ""));
  7866. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7867. this._adapter.InsertCommand.Connection = this.Connection;
  7868. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[OrderStatus] ([Название]) VALUES (@Название);\r\nSELECT ID, Назв" +
  7869. "ание FROM OrderStatus WHERE (ID = SCOPE_IDENTITY())";
  7870. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7871. 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, "", "", ""));
  7872. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7873. this._adapter.UpdateCommand.Connection = this.Connection;
  7874. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[OrderStatus] SET [Название] = @Название WHERE (([ID] = @Original_ID" +
  7875. ") AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_" +
  7876. "Название)));\r\nSELECT ID, Название FROM OrderStatus WHERE (ID = @ID)";
  7877. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7878. 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, "", "", ""));
  7879. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7880. 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, "", "", ""));
  7881. 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, "", "", ""));
  7882. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7883. }
  7884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7886. private void InitConnection() {
  7887. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7888. this._connection.ConnectionString = global::KafeKazarin03.Properties.Settings.Default.KazarinKafeConnectionString;
  7889. }
  7890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7892. private void InitCommandCollection() {
  7893. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7894. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7895. this._commandCollection[0].Connection = this.Connection;
  7896. this._commandCollection[0].CommandText = "SELECT ID, Название FROM dbo.OrderStatus";
  7897. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7898. }
  7899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7901. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7902. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7903. public virtual int Fill(KazarinKafeDataSet.OrderStatusDataTable dataTable) {
  7904. this.Adapter.SelectCommand = this.CommandCollection[0];
  7905. if ((this.ClearBeforeFill == true)) {
  7906. dataTable.Clear();
  7907. }
  7908. int returnValue = this.Adapter.Fill(dataTable);
  7909. return returnValue;
  7910. }
  7911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7913. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7914. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7915. public virtual KazarinKafeDataSet.OrderStatusDataTable GetData() {
  7916. this.Adapter.SelectCommand = this.CommandCollection[0];
  7917. KazarinKafeDataSet.OrderStatusDataTable dataTable = new KazarinKafeDataSet.OrderStatusDataTable();
  7918. this.Adapter.Fill(dataTable);
  7919. return dataTable;
  7920. }
  7921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7923. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7924. public virtual int Update(KazarinKafeDataSet.OrderStatusDataTable dataTable) {
  7925. return this.Adapter.Update(dataTable);
  7926. }
  7927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7929. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7930. public virtual int Update(KazarinKafeDataSet dataSet) {
  7931. return this.Adapter.Update(dataSet, "OrderStatus");
  7932. }
  7933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7935. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7936. public virtual int Update(global::System.Data.DataRow dataRow) {
  7937. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7938. dataRow});
  7939. }
  7940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7942. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7943. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7944. return this.Adapter.Update(dataRows);
  7945. }
  7946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7948. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7949. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7950. public virtual int Delete(int Original_ID, string Original_Название) {
  7951. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7952. if ((Original_Название == null)) {
  7953. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7954. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7955. }
  7956. else {
  7957. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7958. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  7959. }
  7960. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7961. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7962. != global::System.Data.ConnectionState.Open)) {
  7963. this.Adapter.DeleteCommand.Connection.Open();
  7964. }
  7965. try {
  7966. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7967. return returnValue;
  7968. }
  7969. finally {
  7970. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7971. this.Adapter.DeleteCommand.Connection.Close();
  7972. }
  7973. }
  7974. }
  7975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7977. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7978. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7979. public virtual int Insert(string Название) {
  7980. if ((Название == null)) {
  7981. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7982. }
  7983. else {
  7984. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  7985. }
  7986. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7987. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7988. != global::System.Data.ConnectionState.Open)) {
  7989. this.Adapter.InsertCommand.Connection.Open();
  7990. }
  7991. try {
  7992. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7993. return returnValue;
  7994. }
  7995. finally {
  7996. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7997. this.Adapter.InsertCommand.Connection.Close();
  7998. }
  7999. }
  8000. }
  8001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8003. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8004. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8005. public virtual int Update(string Название, int Original_ID, string Original_Название, int ID) {
  8006. if ((Название == null)) {
  8007. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8008. }
  8009. else {
  8010. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  8011. }
  8012. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID));
  8013. if ((Original_Название == null)) {
  8014. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8015. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8016. }
  8017. else {
  8018. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  8019. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Название));
  8020. }
  8021. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ID));
  8022. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8023. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8024. != global::System.Data.ConnectionState.Open)) {
  8025. this.Adapter.UpdateCommand.Connection.Open();
  8026. }
  8027. try {
  8028. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8029. return returnValue;
  8030. }
  8031. finally {
  8032. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8033. this.Adapter.UpdateCommand.Connection.Close();
  8034. }
  8035. }
  8036. }
  8037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8039. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8040. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8041. public virtual int Update(string Название, int Original_ID, string Original_Название) {
  8042. return this.Update(Название, Original_ID, Original_Название, Original_ID);
  8043. }
  8044. }
  8045. /// <summary>
  8046. ///Represents the connection and commands used to retrieve and save data.
  8047. ///</summary>
  8048. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8049. [global::System.ComponentModel.ToolboxItem(true)]
  8050. [global::System.ComponentModel.DataObjectAttribute(true)]
  8051. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8052. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8053. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8054. public partial class PaymentMethodTableAdapter : global::System.ComponentModel.Component {
  8055. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8056. private global::System.Data.SqlClient.SqlConnection _connection;
  8057. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8058. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8059. private bool _clearBeforeFill;
  8060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8062. public PaymentMethodTableAdapter() {
  8063. this.ClearBeforeFill = true;
  8064. }
  8065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8067. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8068. get {
  8069. if ((this._adapter == null)) {
  8070. this.InitAdapter();
  8071. }
  8072. return this._adapter;
  8073. }
  8074. }
  8075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8077. internal global::System.Data.SqlClient.SqlConnection Connection {
  8078. get {
  8079. if ((this._connection == null)) {
  8080. this.InitConnection();
  8081. }
  8082. return this._connection;
  8083. }
  8084. set {
  8085. this._connection = value;
  8086. if ((this.Adapter.InsertCommand != null)) {
  8087. this.Adapter.InsertCommand.Connection = value;
  8088. }
  8089. if ((this.Adapter.DeleteCommand != null)) {
  8090. this.Adapter.DeleteCommand.Connection = value;
  8091. }
  8092. if ((this.Adapter.UpdateCommand != null)) {
  8093. this.Adapter.UpdateCommand.Connection = value;
  8094. }
  8095. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8096. if ((this.CommandCollection[i] != null)) {
  8097. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8098. }
  8099. }
  8100. }
  8101. }
  8102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8104. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8105. get {
  8106. return this._transaction;
  8107. }
  8108. set {
  8109. this._transaction = value;
  8110. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8111. this.CommandCollection[i].Transaction = this._transaction;
  8112. }
  8113. if (((this.Adapter != null)
  8114. && (this.Adapter.DeleteCommand != null))) {
  8115. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8116. }
  8117. if (((this.Adapter != null)
  8118. && (this.Adapter.InsertCommand != null))) {
  8119. this.Adapter.InsertCommand.Transaction = this._transaction;
  8120. }
  8121. if (((this.Adapter != null)
  8122. && (this.Adapter.UpdateCommand != null))) {
  8123. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8124. }
  8125. }
  8126. }
  8127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8129. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8130. get {
  8131. if ((this._commandCollection == null)) {
  8132. this.InitCommandCollection();
  8133. }
  8134. return this._commandCollection;
  8135. }
  8136. }
  8137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8139. public bool ClearBeforeFill {
  8140. get {
  8141. return this._clearBeforeFill;
  8142. }
  8143. set {
  8144. this._clearBeforeFill = value;
  8145. }
  8146. }
  8147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8149. private void InitAdapter() {
  8150. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8151. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8152. tableMapping.SourceTable = "Table";
  8153. tableMapping.DataSetTable = "PaymentMethod";
  8154. tableMapping.ColumnMappings.Add("ID", "ID");
  8155. tableMapping.ColumnMappings.Add("Название", "Название");
  8156. this._adapter.TableMappings.Add(tableMapping);
  8157. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8158. this._adapter.DeleteCommand.Connection = this.Connection;
  8159. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[PaymentMethod] WHERE (([ID] = @Original_ID) AND ((@IsNull_Назв" +
  8160. "ание = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)))";
  8161. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8162. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8163. 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, "", "", ""));
  8164. 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, "", "", ""));
  8165. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8166. this._adapter.InsertCommand.Connection = this.Connection;
  8167. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[PaymentMethod] ([Название]) VALUES (@Название);\r\nSELECT ID, На" +
  8168. "звание FROM PaymentMethod WHERE (ID = SCOPE_IDENTITY())";
  8169. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8170. 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, "", "", ""));
  8171. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8172. this._adapter.UpdateCommand.Connection = this.Connection;
  8173. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[PaymentMethod] SET [Название] = @Название WHERE (([ID] = @Original_" +
  8174. "ID) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Origina" +
  8175. "l_Название)));\r\nSELECT ID, Название FROM PaymentMethod WHERE (ID = @ID)";
  8176. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8177. 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, "", "", ""));
  8178. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8179. 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, "", "", ""));
  8180. 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, "", "", ""));
  8181. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8182. }
  8183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8185. private void InitConnection() {
  8186. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8187. this._connection.ConnectionString = global::KafeKazarin03.Properties.Settings.Default.KazarinKafeConnectionString;
  8188. }
  8189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8191. private void InitCommandCollection() {
  8192. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8193. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8194. this._commandCollection[0].Connection = this.Connection;
  8195. this._commandCollection[0].CommandText = "SELECT ID, Название FROM dbo.PaymentMethod";
  8196. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8197. }
  8198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8200. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8201. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8202. public virtual int Fill(KazarinKafeDataSet.PaymentMethodDataTable dataTable) {
  8203. this.Adapter.SelectCommand = this.CommandCollection[0];
  8204. if ((this.ClearBeforeFill == true)) {
  8205. dataTable.Clear();
  8206. }
  8207. int returnValue = this.Adapter.Fill(dataTable);
  8208. return returnValue;
  8209. }
  8210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8212. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8213. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8214. public virtual KazarinKafeDataSet.PaymentMethodDataTable GetData() {
  8215. this.Adapter.SelectCommand = this.CommandCollection[0];
  8216. KazarinKafeDataSet.PaymentMethodDataTable dataTable = new KazarinKafeDataSet.PaymentMethodDataTable();
  8217. this.Adapter.Fill(dataTable);
  8218. return dataTable;
  8219. }
  8220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8222. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8223. public virtual int Update(KazarinKafeDataSet.PaymentMethodDataTable dataTable) {
  8224. return this.Adapter.Update(dataTable);
  8225. }
  8226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8228. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8229. public virtual int Update(KazarinKafeDataSet dataSet) {
  8230. return this.Adapter.Update(dataSet, "PaymentMethod");
  8231. }
  8232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8234. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8235. public virtual int Update(global::System.Data.DataRow dataRow) {
  8236. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8237. dataRow});
  8238. }
  8239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8241. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8242. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8243. return this.Adapter.Update(dataRows);
  8244. }
  8245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8247. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8248. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8249. public virtual int Delete(int Original_ID, string Original_Название) {
  8250. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8251. if ((Original_Название == null)) {
  8252. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8253. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8254. }
  8255. else {
  8256. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8257. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  8258. }
  8259. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8260. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8261. != global::System.Data.ConnectionState.Open)) {
  8262. this.Adapter.DeleteCommand.Connection.Open();
  8263. }
  8264. try {
  8265. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8266. return returnValue;
  8267. }
  8268. finally {
  8269. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8270. this.Adapter.DeleteCommand.Connection.Close();
  8271. }
  8272. }
  8273. }
  8274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8276. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8277. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8278. public virtual int Insert(string Название) {
  8279. if ((Название == null)) {
  8280. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8281. }
  8282. else {
  8283. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  8284. }
  8285. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8286. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8287. != global::System.Data.ConnectionState.Open)) {
  8288. this.Adapter.InsertCommand.Connection.Open();
  8289. }
  8290. try {
  8291. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8292. return returnValue;
  8293. }
  8294. finally {
  8295. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8296. this.Adapter.InsertCommand.Connection.Close();
  8297. }
  8298. }
  8299. }
  8300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8302. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8303. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8304. public virtual int Update(string Название, int Original_ID, string Original_Название, int ID) {
  8305. if ((Название == null)) {
  8306. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8307. }
  8308. else {
  8309. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  8310. }
  8311. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID));
  8312. if ((Original_Название == null)) {
  8313. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8314. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8315. }
  8316. else {
  8317. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  8318. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Название));
  8319. }
  8320. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ID));
  8321. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8322. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8323. != global::System.Data.ConnectionState.Open)) {
  8324. this.Adapter.UpdateCommand.Connection.Open();
  8325. }
  8326. try {
  8327. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8328. return returnValue;
  8329. }
  8330. finally {
  8331. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8332. this.Adapter.UpdateCommand.Connection.Close();
  8333. }
  8334. }
  8335. }
  8336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8338. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8339. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8340. public virtual int Update(string Название, int Original_ID, string Original_Название) {
  8341. return this.Update(Название, Original_ID, Original_Название, Original_ID);
  8342. }
  8343. }
  8344. /// <summary>
  8345. ///Represents the connection and commands used to retrieve and save data.
  8346. ///</summary>
  8347. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8348. [global::System.ComponentModel.ToolboxItem(true)]
  8349. [global::System.ComponentModel.DataObjectAttribute(true)]
  8350. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8351. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8352. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8353. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  8354. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8355. private global::System.Data.SqlClient.SqlConnection _connection;
  8356. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8357. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8358. private bool _clearBeforeFill;
  8359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8361. public ProductTableAdapter() {
  8362. this.ClearBeforeFill = true;
  8363. }
  8364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8366. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8367. get {
  8368. if ((this._adapter == null)) {
  8369. this.InitAdapter();
  8370. }
  8371. return this._adapter;
  8372. }
  8373. }
  8374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8376. internal global::System.Data.SqlClient.SqlConnection Connection {
  8377. get {
  8378. if ((this._connection == null)) {
  8379. this.InitConnection();
  8380. }
  8381. return this._connection;
  8382. }
  8383. set {
  8384. this._connection = value;
  8385. if ((this.Adapter.InsertCommand != null)) {
  8386. this.Adapter.InsertCommand.Connection = value;
  8387. }
  8388. if ((this.Adapter.DeleteCommand != null)) {
  8389. this.Adapter.DeleteCommand.Connection = value;
  8390. }
  8391. if ((this.Adapter.UpdateCommand != null)) {
  8392. this.Adapter.UpdateCommand.Connection = value;
  8393. }
  8394. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8395. if ((this.CommandCollection[i] != null)) {
  8396. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8397. }
  8398. }
  8399. }
  8400. }
  8401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8403. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8404. get {
  8405. return this._transaction;
  8406. }
  8407. set {
  8408. this._transaction = value;
  8409. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8410. this.CommandCollection[i].Transaction = this._transaction;
  8411. }
  8412. if (((this.Adapter != null)
  8413. && (this.Adapter.DeleteCommand != null))) {
  8414. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8415. }
  8416. if (((this.Adapter != null)
  8417. && (this.Adapter.InsertCommand != null))) {
  8418. this.Adapter.InsertCommand.Transaction = this._transaction;
  8419. }
  8420. if (((this.Adapter != null)
  8421. && (this.Adapter.UpdateCommand != null))) {
  8422. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8423. }
  8424. }
  8425. }
  8426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8428. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8429. get {
  8430. if ((this._commandCollection == null)) {
  8431. this.InitCommandCollection();
  8432. }
  8433. return this._commandCollection;
  8434. }
  8435. }
  8436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8438. public bool ClearBeforeFill {
  8439. get {
  8440. return this._clearBeforeFill;
  8441. }
  8442. set {
  8443. this._clearBeforeFill = value;
  8444. }
  8445. }
  8446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8448. private void InitAdapter() {
  8449. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8450. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8451. tableMapping.SourceTable = "Table";
  8452. tableMapping.DataSetTable = "Product";
  8453. tableMapping.ColumnMappings.Add("ID", "ID");
  8454. tableMapping.ColumnMappings.Add("Название", "Название");
  8455. tableMapping.ColumnMappings.Add("Категория", "Категория");
  8456. tableMapping.ColumnMappings.Add("Описание", "Описание");
  8457. tableMapping.ColumnMappings.Add("Цена", "Цена");
  8458. this._adapter.TableMappings.Add(tableMapping);
  8459. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8460. this._adapter.DeleteCommand.Connection = this.Connection;
  8461. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Категория = 1 AND [Категория] IS NULL) OR ([Категория] = @Original_Категория)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)))";
  8462. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8463. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8464. 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, "", "", ""));
  8465. 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, "", "", ""));
  8466. 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, "", "", ""));
  8467. 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, "", "", ""));
  8468. 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, "", "", ""));
  8469. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8470. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8471. this._adapter.InsertCommand.Connection = this.Connection;
  8472. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Product] ([Название], [Категория], [Описание], [Цена]) VALUES " +
  8473. "(@Название, @Категория, @Описание, @Цена);\r\nSELECT ID, Название, Категория, Опис" +
  8474. "ание, Цена FROM Product WHERE (ID = SCOPE_IDENTITY())";
  8475. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8476. 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, "", "", ""));
  8477. 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, "", "", ""));
  8478. 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, "", "", ""));
  8479. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8480. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8481. this._adapter.UpdateCommand.Connection = this.Connection;
  8482. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [Название] = @Название, [Категория] = @Категория, [Описание] = @Описание, [Цена] = @Цена WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Категория = 1 AND [Категория] IS NULL) OR ([Категория] = @Original_Категория)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)));
  8483. SELECT ID, Название, Категория, Описание, Цена FROM Product WHERE (ID = @ID)";
  8484. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8485. 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, "", "", ""));
  8486. 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, "", "", ""));
  8487. 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, "", "", ""));
  8488. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8489. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8490. 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, "", "", ""));
  8491. 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, "", "", ""));
  8492. 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, "", "", ""));
  8493. 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, "", "", ""));
  8494. 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, "", "", ""));
  8495. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8496. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8497. }
  8498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8500. private void InitConnection() {
  8501. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8502. this._connection.ConnectionString = global::KafeKazarin03.Properties.Settings.Default.KazarinKafeConnectionString;
  8503. }
  8504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8506. private void InitCommandCollection() {
  8507. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8508. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8509. this._commandCollection[0].Connection = this.Connection;
  8510. this._commandCollection[0].CommandText = "SELECT ID, Название, Категория, Описание, Цена FROM dbo.Product";
  8511. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8512. }
  8513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8515. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8516. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8517. public virtual int Fill(KazarinKafeDataSet.ProductDataTable dataTable) {
  8518. this.Adapter.SelectCommand = this.CommandCollection[0];
  8519. if ((this.ClearBeforeFill == true)) {
  8520. dataTable.Clear();
  8521. }
  8522. int returnValue = this.Adapter.Fill(dataTable);
  8523. return returnValue;
  8524. }
  8525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8527. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8528. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8529. public virtual KazarinKafeDataSet.ProductDataTable GetData() {
  8530. this.Adapter.SelectCommand = this.CommandCollection[0];
  8531. KazarinKafeDataSet.ProductDataTable dataTable = new KazarinKafeDataSet.ProductDataTable();
  8532. this.Adapter.Fill(dataTable);
  8533. return dataTable;
  8534. }
  8535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8537. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8538. public virtual int Update(KazarinKafeDataSet.ProductDataTable dataTable) {
  8539. return this.Adapter.Update(dataTable);
  8540. }
  8541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8543. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8544. public virtual int Update(KazarinKafeDataSet dataSet) {
  8545. return this.Adapter.Update(dataSet, "Product");
  8546. }
  8547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8549. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8550. public virtual int Update(global::System.Data.DataRow dataRow) {
  8551. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8552. dataRow});
  8553. }
  8554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8556. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8557. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8558. return this.Adapter.Update(dataRows);
  8559. }
  8560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8562. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8563. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8564. public virtual int Delete(int Original_ID, string Original_Название, global::System.Nullable<int> Original_Категория, string Original_Цена) {
  8565. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8566. if ((Original_Название == null)) {
  8567. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8568. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8569. }
  8570. else {
  8571. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8572. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  8573. }
  8574. if ((Original_Категория.HasValue == true)) {
  8575. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8576. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Категория.Value));
  8577. }
  8578. else {
  8579. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8580. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8581. }
  8582. if ((Original_Цена == null)) {
  8583. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  8584. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  8585. }
  8586. else {
  8587. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  8588. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Цена));
  8589. }
  8590. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8591. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8592. != global::System.Data.ConnectionState.Open)) {
  8593. this.Adapter.DeleteCommand.Connection.Open();
  8594. }
  8595. try {
  8596. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8597. return returnValue;
  8598. }
  8599. finally {
  8600. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8601. this.Adapter.DeleteCommand.Connection.Close();
  8602. }
  8603. }
  8604. }
  8605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8607. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8608. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8609. public virtual int Insert(string Название, global::System.Nullable<int> Категория, string Описание, string Цена) {
  8610. if ((Название == null)) {
  8611. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8612. }
  8613. else {
  8614. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  8615. }
  8616. if ((Категория.HasValue == true)) {
  8617. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Категория.Value));
  8618. }
  8619. else {
  8620. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8621. }
  8622. if ((Описание == null)) {
  8623. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8624. }
  8625. else {
  8626. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Описание));
  8627. }
  8628. if ((Цена == null)) {
  8629. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8630. }
  8631. else {
  8632. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Цена));
  8633. }
  8634. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8635. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8636. != global::System.Data.ConnectionState.Open)) {
  8637. this.Adapter.InsertCommand.Connection.Open();
  8638. }
  8639. try {
  8640. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8641. return returnValue;
  8642. }
  8643. finally {
  8644. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8645. this.Adapter.InsertCommand.Connection.Close();
  8646. }
  8647. }
  8648. }
  8649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8651. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8652. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8653. public virtual int Update(string Название, global::System.Nullable<int> Категория, string Описание, string Цена, int Original_ID, string Original_Название, global::System.Nullable<int> Original_Категория, string Original_Цена, int ID) {
  8654. if ((Название == null)) {
  8655. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8656. }
  8657. else {
  8658. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  8659. }
  8660. if ((Категория.HasValue == true)) {
  8661. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Категория.Value));
  8662. }
  8663. else {
  8664. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8665. }
  8666. if ((Описание == null)) {
  8667. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8668. }
  8669. else {
  8670. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Описание));
  8671. }
  8672. if ((Цена == null)) {
  8673. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8674. }
  8675. else {
  8676. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Цена));
  8677. }
  8678. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  8679. if ((Original_Название == null)) {
  8680. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8681. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8682. }
  8683. else {
  8684. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8685. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Название));
  8686. }
  8687. if ((Original_Категория.HasValue == true)) {
  8688. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  8689. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_Категория.Value));
  8690. }
  8691. else {
  8692. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  8693. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  8694. }
  8695. if ((Original_Цена == null)) {
  8696. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8697. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8698. }
  8699. else {
  8700. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8701. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Цена));
  8702. }
  8703. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(ID));
  8704. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8705. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8706. != global::System.Data.ConnectionState.Open)) {
  8707. this.Adapter.UpdateCommand.Connection.Open();
  8708. }
  8709. try {
  8710. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8711. return returnValue;
  8712. }
  8713. finally {
  8714. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8715. this.Adapter.UpdateCommand.Connection.Close();
  8716. }
  8717. }
  8718. }
  8719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8721. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8722. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8723. public virtual int Update(string Название, global::System.Nullable<int> Категория, string Описание, string Цена, int Original_ID, string Original_Название, global::System.Nullable<int> Original_Категория, string Original_Цена) {
  8724. return this.Update(Название, Категория, Описание, Цена, Original_ID, Original_Название, Original_Категория, Original_Цена, Original_ID);
  8725. }
  8726. }
  8727. /// <summary>
  8728. ///Represents the connection and commands used to retrieve and save data.
  8729. ///</summary>
  8730. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8731. [global::System.ComponentModel.ToolboxItem(true)]
  8732. [global::System.ComponentModel.DataObjectAttribute(true)]
  8733. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8734. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8735. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8736. public partial class RolesTableAdapter : global::System.ComponentModel.Component {
  8737. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8738. private global::System.Data.SqlClient.SqlConnection _connection;
  8739. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8740. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8741. private bool _clearBeforeFill;
  8742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8744. public RolesTableAdapter() {
  8745. this.ClearBeforeFill = true;
  8746. }
  8747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8749. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8750. get {
  8751. if ((this._adapter == null)) {
  8752. this.InitAdapter();
  8753. }
  8754. return this._adapter;
  8755. }
  8756. }
  8757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8759. internal global::System.Data.SqlClient.SqlConnection Connection {
  8760. get {
  8761. if ((this._connection == null)) {
  8762. this.InitConnection();
  8763. }
  8764. return this._connection;
  8765. }
  8766. set {
  8767. this._connection = value;
  8768. if ((this.Adapter.InsertCommand != null)) {
  8769. this.Adapter.InsertCommand.Connection = value;
  8770. }
  8771. if ((this.Adapter.DeleteCommand != null)) {
  8772. this.Adapter.DeleteCommand.Connection = value;
  8773. }
  8774. if ((this.Adapter.UpdateCommand != null)) {
  8775. this.Adapter.UpdateCommand.Connection = value;
  8776. }
  8777. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8778. if ((this.CommandCollection[i] != null)) {
  8779. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8780. }
  8781. }
  8782. }
  8783. }
  8784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8786. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8787. get {
  8788. return this._transaction;
  8789. }
  8790. set {
  8791. this._transaction = value;
  8792. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8793. this.CommandCollection[i].Transaction = this._transaction;
  8794. }
  8795. if (((this.Adapter != null)
  8796. && (this.Adapter.DeleteCommand != null))) {
  8797. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8798. }
  8799. if (((this.Adapter != null)
  8800. && (this.Adapter.InsertCommand != null))) {
  8801. this.Adapter.InsertCommand.Transaction = this._transaction;
  8802. }
  8803. if (((this.Adapter != null)
  8804. && (this.Adapter.UpdateCommand != null))) {
  8805. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8806. }
  8807. }
  8808. }
  8809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8811. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8812. get {
  8813. if ((this._commandCollection == null)) {
  8814. this.InitCommandCollection();
  8815. }
  8816. return this._commandCollection;
  8817. }
  8818. }
  8819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8821. public bool ClearBeforeFill {
  8822. get {
  8823. return this._clearBeforeFill;
  8824. }
  8825. set {
  8826. this._clearBeforeFill = value;
  8827. }
  8828. }
  8829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8831. private void InitAdapter() {
  8832. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8833. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8834. tableMapping.SourceTable = "Table";
  8835. tableMapping.DataSetTable = "Roles";
  8836. tableMapping.ColumnMappings.Add("ID", "ID");
  8837. tableMapping.ColumnMappings.Add("Название", "Название");
  8838. this._adapter.TableMappings.Add(tableMapping);
  8839. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8840. this._adapter.DeleteCommand.Connection = this.Connection;
  8841. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Roles] WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = 1" +
  8842. " AND [Название] IS NULL) OR ([Название] = @Original_Название)))";
  8843. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8844. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8845. 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, "", "", ""));
  8846. 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, "", "", ""));
  8847. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8848. this._adapter.InsertCommand.Connection = this.Connection;
  8849. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Roles] ([Название]) VALUES (@Название);\r\nSELECT ID, Название F" +
  8850. "ROM Roles WHERE (ID = SCOPE_IDENTITY())";
  8851. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8852. 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, "", "", ""));
  8853. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8854. this._adapter.UpdateCommand.Connection = this.Connection;
  8855. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Roles] SET [Название] = @Название WHERE (([ID] = @Original_ID) AND " +
  8856. "((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Назван" +
  8857. "ие)));\r\nSELECT ID, Название FROM Roles WHERE (ID = @ID)";
  8858. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8859. 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, "", "", ""));
  8860. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8861. 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, "", "", ""));
  8862. 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, "", "", ""));
  8863. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8864. }
  8865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8867. private void InitConnection() {
  8868. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8869. this._connection.ConnectionString = global::KafeKazarin03.Properties.Settings.Default.KazarinKafeConnectionString;
  8870. }
  8871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8873. private void InitCommandCollection() {
  8874. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8875. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8876. this._commandCollection[0].Connection = this.Connection;
  8877. this._commandCollection[0].CommandText = "SELECT ID, Название FROM dbo.Roles";
  8878. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8879. }
  8880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8882. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8883. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8884. public virtual int Fill(KazarinKafeDataSet.RolesDataTable dataTable) {
  8885. this.Adapter.SelectCommand = this.CommandCollection[0];
  8886. if ((this.ClearBeforeFill == true)) {
  8887. dataTable.Clear();
  8888. }
  8889. int returnValue = this.Adapter.Fill(dataTable);
  8890. return returnValue;
  8891. }
  8892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8894. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8895. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8896. public virtual KazarinKafeDataSet.RolesDataTable GetData() {
  8897. this.Adapter.SelectCommand = this.CommandCollection[0];
  8898. KazarinKafeDataSet.RolesDataTable dataTable = new KazarinKafeDataSet.RolesDataTable();
  8899. this.Adapter.Fill(dataTable);
  8900. return dataTable;
  8901. }
  8902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8904. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8905. public virtual int Update(KazarinKafeDataSet.RolesDataTable dataTable) {
  8906. return this.Adapter.Update(dataTable);
  8907. }
  8908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8910. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8911. public virtual int Update(KazarinKafeDataSet dataSet) {
  8912. return this.Adapter.Update(dataSet, "Roles");
  8913. }
  8914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8916. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8917. public virtual int Update(global::System.Data.DataRow dataRow) {
  8918. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8919. dataRow});
  8920. }
  8921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8923. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8924. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8925. return this.Adapter.Update(dataRows);
  8926. }
  8927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8929. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8930. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8931. public virtual int Delete(int Original_ID, string Original_Название) {
  8932. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8933. if ((Original_Название == null)) {
  8934. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8935. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8936. }
  8937. else {
  8938. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8939. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  8940. }
  8941. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8942. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8943. != global::System.Data.ConnectionState.Open)) {
  8944. this.Adapter.DeleteCommand.Connection.Open();
  8945. }
  8946. try {
  8947. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8948. return returnValue;
  8949. }
  8950. finally {
  8951. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8952. this.Adapter.DeleteCommand.Connection.Close();
  8953. }
  8954. }
  8955. }
  8956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8958. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8959. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8960. public virtual int Insert(string Название) {
  8961. if ((Название == null)) {
  8962. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8963. }
  8964. else {
  8965. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  8966. }
  8967. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8968. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8969. != global::System.Data.ConnectionState.Open)) {
  8970. this.Adapter.InsertCommand.Connection.Open();
  8971. }
  8972. try {
  8973. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8974. return returnValue;
  8975. }
  8976. finally {
  8977. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8978. this.Adapter.InsertCommand.Connection.Close();
  8979. }
  8980. }
  8981. }
  8982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8984. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8985. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8986. public virtual int Update(string Название, int Original_ID, string Original_Название, int ID) {
  8987. if ((Название == null)) {
  8988. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8989. }
  8990. else {
  8991. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  8992. }
  8993. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID));
  8994. if ((Original_Название == null)) {
  8995. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8996. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8997. }
  8998. else {
  8999. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9000. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Название));
  9001. }
  9002. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ID));
  9003. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9004. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9005. != global::System.Data.ConnectionState.Open)) {
  9006. this.Adapter.UpdateCommand.Connection.Open();
  9007. }
  9008. try {
  9009. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9010. return returnValue;
  9011. }
  9012. finally {
  9013. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9014. this.Adapter.UpdateCommand.Connection.Close();
  9015. }
  9016. }
  9017. }
  9018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9021. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9022. public virtual int Update(string Название, int Original_ID, string Original_Название) {
  9023. return this.Update(Название, Original_ID, Original_Название, Original_ID);
  9024. }
  9025. }
  9026. /// <summary>
  9027. ///Represents the connection and commands used to retrieve and save data.
  9028. ///</summary>
  9029. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9030. [global::System.ComponentModel.ToolboxItem(true)]
  9031. [global::System.ComponentModel.DataObjectAttribute(true)]
  9032. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9033. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9034. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9035. public partial class TablesTableAdapter : global::System.ComponentModel.Component {
  9036. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9037. private global::System.Data.SqlClient.SqlConnection _connection;
  9038. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9039. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9040. private bool _clearBeforeFill;
  9041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9043. public TablesTableAdapter() {
  9044. this.ClearBeforeFill = true;
  9045. }
  9046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9048. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9049. get {
  9050. if ((this._adapter == null)) {
  9051. this.InitAdapter();
  9052. }
  9053. return this._adapter;
  9054. }
  9055. }
  9056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9058. internal global::System.Data.SqlClient.SqlConnection Connection {
  9059. get {
  9060. if ((this._connection == null)) {
  9061. this.InitConnection();
  9062. }
  9063. return this._connection;
  9064. }
  9065. set {
  9066. this._connection = value;
  9067. if ((this.Adapter.InsertCommand != null)) {
  9068. this.Adapter.InsertCommand.Connection = value;
  9069. }
  9070. if ((this.Adapter.DeleteCommand != null)) {
  9071. this.Adapter.DeleteCommand.Connection = value;
  9072. }
  9073. if ((this.Adapter.UpdateCommand != null)) {
  9074. this.Adapter.UpdateCommand.Connection = value;
  9075. }
  9076. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9077. if ((this.CommandCollection[i] != null)) {
  9078. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9079. }
  9080. }
  9081. }
  9082. }
  9083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9085. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9086. get {
  9087. return this._transaction;
  9088. }
  9089. set {
  9090. this._transaction = value;
  9091. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9092. this.CommandCollection[i].Transaction = this._transaction;
  9093. }
  9094. if (((this.Adapter != null)
  9095. && (this.Adapter.DeleteCommand != null))) {
  9096. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9097. }
  9098. if (((this.Adapter != null)
  9099. && (this.Adapter.InsertCommand != null))) {
  9100. this.Adapter.InsertCommand.Transaction = this._transaction;
  9101. }
  9102. if (((this.Adapter != null)
  9103. && (this.Adapter.UpdateCommand != null))) {
  9104. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9105. }
  9106. }
  9107. }
  9108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9110. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9111. get {
  9112. if ((this._commandCollection == null)) {
  9113. this.InitCommandCollection();
  9114. }
  9115. return this._commandCollection;
  9116. }
  9117. }
  9118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9120. public bool ClearBeforeFill {
  9121. get {
  9122. return this._clearBeforeFill;
  9123. }
  9124. set {
  9125. this._clearBeforeFill = value;
  9126. }
  9127. }
  9128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9130. private void InitAdapter() {
  9131. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9132. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9133. tableMapping.SourceTable = "Table";
  9134. tableMapping.DataSetTable = "Tables";
  9135. tableMapping.ColumnMappings.Add("ID", "ID");
  9136. tableMapping.ColumnMappings.Add("Название", "Название");
  9137. this._adapter.TableMappings.Add(tableMapping);
  9138. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9139. this._adapter.DeleteCommand.Connection = this.Connection;
  9140. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tables] WHERE (([ID] = @Original_ID) AND ((@IsNull_Название = " +
  9141. "1 AND [Название] IS NULL) OR ([Название] = @Original_Название)))";
  9142. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9143. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9144. 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, "", "", ""));
  9145. 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, "", "", ""));
  9146. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9147. this._adapter.InsertCommand.Connection = this.Connection;
  9148. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tables] ([Название]) VALUES (@Название);\r\nSELECT ID, Название " +
  9149. "FROM Tables WHERE (ID = SCOPE_IDENTITY())";
  9150. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9151. 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, "", "", ""));
  9152. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9153. this._adapter.UpdateCommand.Connection = this.Connection;
  9154. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tables] SET [Название] = @Название WHERE (([ID] = @Original_ID) AND" +
  9155. " ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Назва" +
  9156. "ние)));\r\nSELECT ID, Название FROM Tables WHERE (ID = @ID)";
  9157. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9158. 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, "", "", ""));
  9159. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9160. 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, "", "", ""));
  9161. 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, "", "", ""));
  9162. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9163. }
  9164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9166. private void InitConnection() {
  9167. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9168. this._connection.ConnectionString = global::KafeKazarin03.Properties.Settings.Default.KazarinKafeConnectionString;
  9169. }
  9170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9172. private void InitCommandCollection() {
  9173. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9174. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9175. this._commandCollection[0].Connection = this.Connection;
  9176. this._commandCollection[0].CommandText = "SELECT ID, Название FROM dbo.Tables";
  9177. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9178. }
  9179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9181. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9182. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9183. public virtual int Fill(KazarinKafeDataSet.TablesDataTable dataTable) {
  9184. this.Adapter.SelectCommand = this.CommandCollection[0];
  9185. if ((this.ClearBeforeFill == true)) {
  9186. dataTable.Clear();
  9187. }
  9188. int returnValue = this.Adapter.Fill(dataTable);
  9189. return returnValue;
  9190. }
  9191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9193. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9194. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9195. public virtual KazarinKafeDataSet.TablesDataTable GetData() {
  9196. this.Adapter.SelectCommand = this.CommandCollection[0];
  9197. KazarinKafeDataSet.TablesDataTable dataTable = new KazarinKafeDataSet.TablesDataTable();
  9198. this.Adapter.Fill(dataTable);
  9199. return dataTable;
  9200. }
  9201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9203. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9204. public virtual int Update(KazarinKafeDataSet.TablesDataTable dataTable) {
  9205. return this.Adapter.Update(dataTable);
  9206. }
  9207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9209. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9210. public virtual int Update(KazarinKafeDataSet dataSet) {
  9211. return this.Adapter.Update(dataSet, "Tables");
  9212. }
  9213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9215. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9216. public virtual int Update(global::System.Data.DataRow dataRow) {
  9217. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9218. dataRow});
  9219. }
  9220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9222. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9223. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9224. return this.Adapter.Update(dataRows);
  9225. }
  9226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9228. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9229. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9230. public virtual int Delete(int Original_ID, string Original_Название) {
  9231. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9232. if ((Original_Название == null)) {
  9233. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9234. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9235. }
  9236. else {
  9237. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9238. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  9239. }
  9240. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9241. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9242. != global::System.Data.ConnectionState.Open)) {
  9243. this.Adapter.DeleteCommand.Connection.Open();
  9244. }
  9245. try {
  9246. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9247. return returnValue;
  9248. }
  9249. finally {
  9250. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9251. this.Adapter.DeleteCommand.Connection.Close();
  9252. }
  9253. }
  9254. }
  9255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9257. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9258. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9259. public virtual int Insert(string Название) {
  9260. if ((Название == null)) {
  9261. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9262. }
  9263. else {
  9264. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  9265. }
  9266. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9267. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9268. != global::System.Data.ConnectionState.Open)) {
  9269. this.Adapter.InsertCommand.Connection.Open();
  9270. }
  9271. try {
  9272. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9273. return returnValue;
  9274. }
  9275. finally {
  9276. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9277. this.Adapter.InsertCommand.Connection.Close();
  9278. }
  9279. }
  9280. }
  9281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9283. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9284. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9285. public virtual int Update(string Название, int Original_ID, string Original_Название, int ID) {
  9286. if ((Название == null)) {
  9287. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9288. }
  9289. else {
  9290. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  9291. }
  9292. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID));
  9293. if ((Original_Название == null)) {
  9294. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  9295. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9296. }
  9297. else {
  9298. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9299. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Название));
  9300. }
  9301. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ID));
  9302. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9303. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9304. != global::System.Data.ConnectionState.Open)) {
  9305. this.Adapter.UpdateCommand.Connection.Open();
  9306. }
  9307. try {
  9308. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9309. return returnValue;
  9310. }
  9311. finally {
  9312. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9313. this.Adapter.UpdateCommand.Connection.Close();
  9314. }
  9315. }
  9316. }
  9317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9319. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9320. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9321. public virtual int Update(string Название, int Original_ID, string Original_Название) {
  9322. return this.Update(Название, Original_ID, Original_Название, Original_ID);
  9323. }
  9324. }
  9325. /// <summary>
  9326. ///Represents the connection and commands used to retrieve and save data.
  9327. ///</summary>
  9328. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9329. [global::System.ComponentModel.ToolboxItem(true)]
  9330. [global::System.ComponentModel.DataObjectAttribute(true)]
  9331. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9332. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9333. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9334. public partial class WaitersTableAdapter : global::System.ComponentModel.Component {
  9335. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9336. private global::System.Data.SqlClient.SqlConnection _connection;
  9337. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9338. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9339. private bool _clearBeforeFill;
  9340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9342. public WaitersTableAdapter() {
  9343. this.ClearBeforeFill = true;
  9344. }
  9345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9347. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9348. get {
  9349. if ((this._adapter == null)) {
  9350. this.InitAdapter();
  9351. }
  9352. return this._adapter;
  9353. }
  9354. }
  9355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9357. internal global::System.Data.SqlClient.SqlConnection Connection {
  9358. get {
  9359. if ((this._connection == null)) {
  9360. this.InitConnection();
  9361. }
  9362. return this._connection;
  9363. }
  9364. set {
  9365. this._connection = value;
  9366. if ((this.Adapter.InsertCommand != null)) {
  9367. this.Adapter.InsertCommand.Connection = value;
  9368. }
  9369. if ((this.Adapter.DeleteCommand != null)) {
  9370. this.Adapter.DeleteCommand.Connection = value;
  9371. }
  9372. if ((this.Adapter.UpdateCommand != null)) {
  9373. this.Adapter.UpdateCommand.Connection = value;
  9374. }
  9375. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9376. if ((this.CommandCollection[i] != null)) {
  9377. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9378. }
  9379. }
  9380. }
  9381. }
  9382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9384. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9385. get {
  9386. return this._transaction;
  9387. }
  9388. set {
  9389. this._transaction = value;
  9390. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9391. this.CommandCollection[i].Transaction = this._transaction;
  9392. }
  9393. if (((this.Adapter != null)
  9394. && (this.Adapter.DeleteCommand != null))) {
  9395. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9396. }
  9397. if (((this.Adapter != null)
  9398. && (this.Adapter.InsertCommand != null))) {
  9399. this.Adapter.InsertCommand.Transaction = this._transaction;
  9400. }
  9401. if (((this.Adapter != null)
  9402. && (this.Adapter.UpdateCommand != null))) {
  9403. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9404. }
  9405. }
  9406. }
  9407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9409. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9410. get {
  9411. if ((this._commandCollection == null)) {
  9412. this.InitCommandCollection();
  9413. }
  9414. return this._commandCollection;
  9415. }
  9416. }
  9417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9419. public bool ClearBeforeFill {
  9420. get {
  9421. return this._clearBeforeFill;
  9422. }
  9423. set {
  9424. this._clearBeforeFill = value;
  9425. }
  9426. }
  9427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9429. private void InitAdapter() {
  9430. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9431. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9432. tableMapping.SourceTable = "Table";
  9433. tableMapping.DataSetTable = "Waiters";
  9434. tableMapping.ColumnMappings.Add("IDОфицианта", "IDОфицианта");
  9435. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  9436. tableMapping.ColumnMappings.Add("Имя", "Имя");
  9437. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  9438. this._adapter.TableMappings.Add(tableMapping);
  9439. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9440. this._adapter.DeleteCommand.Connection = this.Connection;
  9441. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Waiters] WHERE (([IDОфицианта] = @Original_IDОфицианта) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)))";
  9442. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9443. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDОфицианта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDОфицианта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9444. 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, "", "", ""));
  9445. 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, "", "", ""));
  9446. 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, "", "", ""));
  9447. 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, "", "", ""));
  9448. 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, "", "", ""));
  9449. 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, "", "", ""));
  9450. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9451. this._adapter.InsertCommand.Connection = this.Connection;
  9452. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Waiters] ([IDОфицианта], [Фамилия], [Имя], [Отчество]) VALUES " +
  9453. "(@IDОфицианта, @Фамилия, @Имя, @Отчество);\r\nSELECT IDОфицианта, Фамилия, Имя, От" +
  9454. "чество FROM Waiters WHERE (IDОфицианта = @IDОфицианта)";
  9455. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9456. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDОфицианта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDОфицианта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9457. 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, "", "", ""));
  9458. 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, "", "", ""));
  9459. 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, "", "", ""));
  9460. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9461. this._adapter.UpdateCommand.Connection = this.Connection;
  9462. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Waiters] SET [IDОфицианта] = @IDОфицианта, [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество WHERE (([IDОфицианта] = @Original_IDОфицианта) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)));
  9463. SELECT IDОфицианта, Фамилия, Имя, Отчество FROM Waiters WHERE (IDОфицианта = @IDОфицианта)";
  9464. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9465. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDОфицианта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDОфицианта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9466. 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, "", "", ""));
  9467. 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, "", "", ""));
  9468. 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, "", "", ""));
  9469. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDОфицианта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDОфицианта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9470. 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, "", "", ""));
  9471. 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, "", "", ""));
  9472. 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, "", "", ""));
  9473. 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, "", "", ""));
  9474. 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, "", "", ""));
  9475. 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, "", "", ""));
  9476. }
  9477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9479. private void InitConnection() {
  9480. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9481. this._connection.ConnectionString = global::KafeKazarin03.Properties.Settings.Default.KazarinKafeConnectionString;
  9482. }
  9483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9485. private void InitCommandCollection() {
  9486. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9487. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9488. this._commandCollection[0].Connection = this.Connection;
  9489. this._commandCollection[0].CommandText = "SELECT IDОфицианта, Фамилия, Имя, Отчество FROM dbo.Waiters";
  9490. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9491. }
  9492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9495. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9496. public virtual int Fill(KazarinKafeDataSet.WaitersDataTable dataTable) {
  9497. this.Adapter.SelectCommand = this.CommandCollection[0];
  9498. if ((this.ClearBeforeFill == true)) {
  9499. dataTable.Clear();
  9500. }
  9501. int returnValue = this.Adapter.Fill(dataTable);
  9502. return returnValue;
  9503. }
  9504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9506. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9507. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9508. public virtual KazarinKafeDataSet.WaitersDataTable GetData() {
  9509. this.Adapter.SelectCommand = this.CommandCollection[0];
  9510. KazarinKafeDataSet.WaitersDataTable dataTable = new KazarinKafeDataSet.WaitersDataTable();
  9511. this.Adapter.Fill(dataTable);
  9512. return dataTable;
  9513. }
  9514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9516. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9517. public virtual int Update(KazarinKafeDataSet.WaitersDataTable dataTable) {
  9518. return this.Adapter.Update(dataTable);
  9519. }
  9520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9522. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9523. public virtual int Update(KazarinKafeDataSet dataSet) {
  9524. return this.Adapter.Update(dataSet, "Waiters");
  9525. }
  9526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9528. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9529. public virtual int Update(global::System.Data.DataRow dataRow) {
  9530. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9531. dataRow});
  9532. }
  9533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9535. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9536. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9537. return this.Adapter.Update(dataRows);
  9538. }
  9539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9541. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9542. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9543. public virtual int Delete(int Original_IDОфицианта, string Original_Фамилия, string Original_Имя, string Original_Отчество) {
  9544. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDОфицианта));
  9545. if ((Original_Фамилия == null)) {
  9546. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9547. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9548. }
  9549. else {
  9550. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9551. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Фамилия));
  9552. }
  9553. if ((Original_Имя == null)) {
  9554. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9555. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9556. }
  9557. else {
  9558. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9559. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Имя));
  9560. }
  9561. if ((Original_Отчество == null)) {
  9562. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  9563. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  9564. }
  9565. else {
  9566. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  9567. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Отчество));
  9568. }
  9569. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9570. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9571. != global::System.Data.ConnectionState.Open)) {
  9572. this.Adapter.DeleteCommand.Connection.Open();
  9573. }
  9574. try {
  9575. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9576. return returnValue;
  9577. }
  9578. finally {
  9579. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9580. this.Adapter.DeleteCommand.Connection.Close();
  9581. }
  9582. }
  9583. }
  9584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9586. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9587. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9588. public virtual int Insert(int IDОфицианта, string Фамилия, string Имя, string Отчество) {
  9589. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDОфицианта));
  9590. if ((Фамилия == null)) {
  9591. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9592. }
  9593. else {
  9594. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фамилия));
  9595. }
  9596. if ((Имя == null)) {
  9597. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9598. }
  9599. else {
  9600. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Имя));
  9601. }
  9602. if ((Отчество == null)) {
  9603. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9604. }
  9605. else {
  9606. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Отчество));
  9607. }
  9608. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9609. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9610. != global::System.Data.ConnectionState.Open)) {
  9611. this.Adapter.InsertCommand.Connection.Open();
  9612. }
  9613. try {
  9614. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9615. return returnValue;
  9616. }
  9617. finally {
  9618. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9619. this.Adapter.InsertCommand.Connection.Close();
  9620. }
  9621. }
  9622. }
  9623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9625. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9626. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9627. public virtual int Update(int IDОфицианта, string Фамилия, string Имя, string Отчество, int Original_IDОфицианта, string Original_Фамилия, string Original_Имя, string Original_Отчество) {
  9628. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDОфицианта));
  9629. if ((Фамилия == null)) {
  9630. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9631. }
  9632. else {
  9633. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фамилия));
  9634. }
  9635. if ((Имя == null)) {
  9636. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  9637. }
  9638. else {
  9639. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Имя));
  9640. }
  9641. if ((Отчество == null)) {
  9642. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9643. }
  9644. else {
  9645. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Отчество));
  9646. }
  9647. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IDОфицианта));
  9648. if ((Original_Фамилия == null)) {
  9649. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  9650. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9651. }
  9652. else {
  9653. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  9654. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Фамилия));
  9655. }
  9656. if ((Original_Имя == null)) {
  9657. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  9658. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  9659. }
  9660. else {
  9661. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  9662. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Имя));
  9663. }
  9664. if ((Original_Отчество == null)) {
  9665. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  9666. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  9667. }
  9668. else {
  9669. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  9670. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Отчество));
  9671. }
  9672. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9673. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9674. != global::System.Data.ConnectionState.Open)) {
  9675. this.Adapter.UpdateCommand.Connection.Open();
  9676. }
  9677. try {
  9678. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9679. return returnValue;
  9680. }
  9681. finally {
  9682. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9683. this.Adapter.UpdateCommand.Connection.Close();
  9684. }
  9685. }
  9686. }
  9687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9689. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9690. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9691. public virtual int Update(string Фамилия, string Имя, string Отчество, int Original_IDОфицианта, string Original_Фамилия, string Original_Имя, string Original_Отчество) {
  9692. return this.Update(Original_IDОфицианта, Фамилия, Имя, Отчество, Original_IDОфицианта, Original_Фамилия, Original_Имя, Original_Отчество);
  9693. }
  9694. }
  9695. /// <summary>
  9696. ///Represents the connection and commands used to retrieve and save data.
  9697. ///</summary>
  9698. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9699. [global::System.ComponentModel.ToolboxItem(true)]
  9700. [global::System.ComponentModel.DataObjectAttribute(true)]
  9701. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9702. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9703. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9704. public partial class WorkShiftTableAdapter : global::System.ComponentModel.Component {
  9705. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9706. private global::System.Data.SqlClient.SqlConnection _connection;
  9707. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9708. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9709. private bool _clearBeforeFill;
  9710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9712. public WorkShiftTableAdapter() {
  9713. this.ClearBeforeFill = true;
  9714. }
  9715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9717. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9718. get {
  9719. if ((this._adapter == null)) {
  9720. this.InitAdapter();
  9721. }
  9722. return this._adapter;
  9723. }
  9724. }
  9725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9727. internal global::System.Data.SqlClient.SqlConnection Connection {
  9728. get {
  9729. if ((this._connection == null)) {
  9730. this.InitConnection();
  9731. }
  9732. return this._connection;
  9733. }
  9734. set {
  9735. this._connection = value;
  9736. if ((this.Adapter.InsertCommand != null)) {
  9737. this.Adapter.InsertCommand.Connection = value;
  9738. }
  9739. if ((this.Adapter.DeleteCommand != null)) {
  9740. this.Adapter.DeleteCommand.Connection = value;
  9741. }
  9742. if ((this.Adapter.UpdateCommand != null)) {
  9743. this.Adapter.UpdateCommand.Connection = value;
  9744. }
  9745. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9746. if ((this.CommandCollection[i] != null)) {
  9747. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9748. }
  9749. }
  9750. }
  9751. }
  9752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9754. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9755. get {
  9756. return this._transaction;
  9757. }
  9758. set {
  9759. this._transaction = value;
  9760. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9761. this.CommandCollection[i].Transaction = this._transaction;
  9762. }
  9763. if (((this.Adapter != null)
  9764. && (this.Adapter.DeleteCommand != null))) {
  9765. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9766. }
  9767. if (((this.Adapter != null)
  9768. && (this.Adapter.InsertCommand != null))) {
  9769. this.Adapter.InsertCommand.Transaction = this._transaction;
  9770. }
  9771. if (((this.Adapter != null)
  9772. && (this.Adapter.UpdateCommand != null))) {
  9773. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9774. }
  9775. }
  9776. }
  9777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9779. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9780. get {
  9781. if ((this._commandCollection == null)) {
  9782. this.InitCommandCollection();
  9783. }
  9784. return this._commandCollection;
  9785. }
  9786. }
  9787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9789. public bool ClearBeforeFill {
  9790. get {
  9791. return this._clearBeforeFill;
  9792. }
  9793. set {
  9794. this._clearBeforeFill = value;
  9795. }
  9796. }
  9797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9799. private void InitAdapter() {
  9800. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9801. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9802. tableMapping.SourceTable = "Table";
  9803. tableMapping.DataSetTable = "WorkShift";
  9804. tableMapping.ColumnMappings.Add("ID", "ID");
  9805. tableMapping.ColumnMappings.Add("IDОфицианта", "IDОфицианта");
  9806. tableMapping.ColumnMappings.Add("IDПовара", "IDПовара");
  9807. tableMapping.ColumnMappings.Add("ДатаСмены", "ДатаСмены");
  9808. this._adapter.TableMappings.Add(tableMapping);
  9809. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9810. this._adapter.DeleteCommand.Connection = this.Connection;
  9811. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[WorkShift] WHERE (([ID] = @Original_ID) AND ((@IsNull_IDОфицианта = 1 AND [IDОфицианта] IS NULL) OR ([IDОфицианта] = @Original_IDОфицианта)) AND ((@IsNull_IDПовара = 1 AND [IDПовара] IS NULL) OR ([IDПовара] = @Original_IDПовара)) AND ((@IsNull_ДатаСмены = 1 AND [ДатаСмены] IS NULL) OR ([ДатаСмены] = @Original_ДатаСмены)))";
  9812. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9813. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9814. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDОфицианта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDОфицианта", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9815. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDОфицианта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDОфицианта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9816. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDПовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПовара", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9817. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDПовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПовара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9818. 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, "", "", ""));
  9819. 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, "", "", ""));
  9820. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9821. this._adapter.InsertCommand.Connection = this.Connection;
  9822. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[WorkShift] ([IDОфицианта], [IDПовара], [ДатаСмены]) VALUES (@I" +
  9823. "DОфицианта, @IDПовара, @ДатаСмены);\r\nSELECT ID, IDОфицианта, IDПовара, ДатаСмены" +
  9824. " FROM WorkShift WHERE (ID = SCOPE_IDENTITY())";
  9825. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9826. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDОфицианта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDОфицианта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9827. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDПовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПовара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9828. 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, "", "", ""));
  9829. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9830. this._adapter.UpdateCommand.Connection = this.Connection;
  9831. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[WorkShift] SET [IDОфицианта] = @IDОфицианта, [IDПовара] = @IDПовара, [ДатаСмены] = @ДатаСмены WHERE (([ID] = @Original_ID) AND ((@IsNull_IDОфицианта = 1 AND [IDОфицианта] IS NULL) OR ([IDОфицианта] = @Original_IDОфицианта)) AND ((@IsNull_IDПовара = 1 AND [IDПовара] IS NULL) OR ([IDПовара] = @Original_IDПовара)) AND ((@IsNull_ДатаСмены = 1 AND [ДатаСмены] IS NULL) OR ([ДатаСмены] = @Original_ДатаСмены)));
  9832. SELECT ID, IDОфицианта, IDПовара, ДатаСмены FROM WorkShift WHERE (ID = @ID)";
  9833. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9834. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDОфицианта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDОфицианта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9835. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDПовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПовара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9836. 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, "", "", ""));
  9837. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9838. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDОфицианта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDОфицианта", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9839. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDОфицианта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDОфицианта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9840. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDПовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПовара", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9841. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDПовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDПовара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9842. 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, "", "", ""));
  9843. 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, "", "", ""));
  9844. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9845. }
  9846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9848. private void InitConnection() {
  9849. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9850. this._connection.ConnectionString = global::KafeKazarin03.Properties.Settings.Default.KazarinKafeConnectionString;
  9851. }
  9852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9854. private void InitCommandCollection() {
  9855. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9856. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9857. this._commandCollection[0].Connection = this.Connection;
  9858. this._commandCollection[0].CommandText = "SELECT ID, IDОфицианта, IDПовара, ДатаСмены FROM dbo.WorkShift";
  9859. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9860. }
  9861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9863. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9864. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9865. public virtual int Fill(KazarinKafeDataSet.WorkShiftDataTable dataTable) {
  9866. this.Adapter.SelectCommand = this.CommandCollection[0];
  9867. if ((this.ClearBeforeFill == true)) {
  9868. dataTable.Clear();
  9869. }
  9870. int returnValue = this.Adapter.Fill(dataTable);
  9871. return returnValue;
  9872. }
  9873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9875. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9876. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9877. public virtual KazarinKafeDataSet.WorkShiftDataTable GetData() {
  9878. this.Adapter.SelectCommand = this.CommandCollection[0];
  9879. KazarinKafeDataSet.WorkShiftDataTable dataTable = new KazarinKafeDataSet.WorkShiftDataTable();
  9880. this.Adapter.Fill(dataTable);
  9881. return dataTable;
  9882. }
  9883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9885. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9886. public virtual int Update(KazarinKafeDataSet.WorkShiftDataTable dataTable) {
  9887. return this.Adapter.Update(dataTable);
  9888. }
  9889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9891. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9892. public virtual int Update(KazarinKafeDataSet dataSet) {
  9893. return this.Adapter.Update(dataSet, "WorkShift");
  9894. }
  9895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9897. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9898. public virtual int Update(global::System.Data.DataRow dataRow) {
  9899. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9900. dataRow});
  9901. }
  9902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9904. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9905. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9906. return this.Adapter.Update(dataRows);
  9907. }
  9908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9910. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9911. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9912. public virtual int Delete(int Original_ID, global::System.Nullable<int> Original_IDОфицианта, global::System.Nullable<int> Original_IDПовара, global::System.Nullable<global::System.DateTime> Original_ДатаСмены) {
  9913. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9914. if ((Original_IDОфицианта.HasValue == true)) {
  9915. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9916. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IDОфицианта.Value));
  9917. }
  9918. else {
  9919. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9920. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9921. }
  9922. if ((Original_IDПовара.HasValue == true)) {
  9923. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9924. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IDПовара.Value));
  9925. }
  9926. else {
  9927. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9928. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9929. }
  9930. if ((Original_ДатаСмены.HasValue == true)) {
  9931. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  9932. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_ДатаСмены.Value));
  9933. }
  9934. else {
  9935. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  9936. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  9937. }
  9938. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9939. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9940. != global::System.Data.ConnectionState.Open)) {
  9941. this.Adapter.DeleteCommand.Connection.Open();
  9942. }
  9943. try {
  9944. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9945. return returnValue;
  9946. }
  9947. finally {
  9948. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9949. this.Adapter.DeleteCommand.Connection.Close();
  9950. }
  9951. }
  9952. }
  9953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9955. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9956. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9957. public virtual int Insert(global::System.Nullable<int> IDОфицианта, global::System.Nullable<int> IDПовара, global::System.Nullable<global::System.DateTime> ДатаСмены) {
  9958. if ((IDОфицианта.HasValue == true)) {
  9959. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDОфицианта.Value));
  9960. }
  9961. else {
  9962. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9963. }
  9964. if ((IDПовара.HasValue == true)) {
  9965. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IDПовара.Value));
  9966. }
  9967. else {
  9968. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9969. }
  9970. if ((ДатаСмены.HasValue == true)) {
  9971. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(ДатаСмены.Value));
  9972. }
  9973. else {
  9974. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9975. }
  9976. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9977. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9978. != global::System.Data.ConnectionState.Open)) {
  9979. this.Adapter.InsertCommand.Connection.Open();
  9980. }
  9981. try {
  9982. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9983. return returnValue;
  9984. }
  9985. finally {
  9986. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9987. this.Adapter.InsertCommand.Connection.Close();
  9988. }
  9989. }
  9990. }
  9991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9993. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9994. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9995. public virtual int Update(global::System.Nullable<int> IDОфицианта, global::System.Nullable<int> IDПовара, global::System.Nullable<global::System.DateTime> ДатаСмены, int Original_ID, global::System.Nullable<int> Original_IDОфицианта, global::System.Nullable<int> Original_IDПовара, global::System.Nullable<global::System.DateTime> Original_ДатаСмены, int ID) {
  9996. if ((IDОфицианта.HasValue == true)) {
  9997. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDОфицианта.Value));
  9998. }
  9999. else {
  10000. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  10001. }
  10002. if ((IDПовара.HasValue == true)) {
  10003. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IDПовара.Value));
  10004. }
  10005. else {
  10006. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  10007. }
  10008. if ((ДатаСмены.HasValue == true)) {
  10009. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(ДатаСмены.Value));
  10010. }
  10011. else {
  10012. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  10013. }
  10014. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  10015. if ((Original_IDОфицианта.HasValue == true)) {
  10016. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  10017. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_IDОфицианта.Value));
  10018. }
  10019. else {
  10020. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  10021. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  10022. }
  10023. if ((Original_IDПовара.HasValue == true)) {
  10024. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  10025. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IDПовара.Value));
  10026. }
  10027. else {
  10028. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  10029. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  10030. }
  10031. if ((Original_ДатаСмены.HasValue == true)) {
  10032. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  10033. this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_ДатаСмены.Value));
  10034. }
  10035. else {
  10036. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  10037. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  10038. }
  10039. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  10040. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10041. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10042. != global::System.Data.ConnectionState.Open)) {
  10043. this.Adapter.UpdateCommand.Connection.Open();
  10044. }
  10045. try {
  10046. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10047. return returnValue;
  10048. }
  10049. finally {
  10050. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10051. this.Adapter.UpdateCommand.Connection.Close();
  10052. }
  10053. }
  10054. }
  10055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10057. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10058. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10059. public virtual int Update(global::System.Nullable<int> IDОфицианта, global::System.Nullable<int> IDПовара, global::System.Nullable<global::System.DateTime> ДатаСмены, int Original_ID, global::System.Nullable<int> Original_IDОфицианта, global::System.Nullable<int> Original_IDПовара, global::System.Nullable<global::System.DateTime> Original_ДатаСмены) {
  10060. return this.Update(IDОфицианта, IDПовара, ДатаСмены, Original_ID, Original_IDОфицианта, Original_IDПовара, Original_ДатаСмены, Original_ID);
  10061. }
  10062. }
  10063. /// <summary>
  10064. ///Represents the connection and commands used to retrieve and save data.
  10065. ///</summary>
  10066. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10067. [global::System.ComponentModel.ToolboxItem(true)]
  10068. [global::System.ComponentModel.DataObjectAttribute(true)]
  10069. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10070. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10071. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10072. public partial class СategoriesTableAdapter : global::System.ComponentModel.Component {
  10073. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10074. private global::System.Data.SqlClient.SqlConnection _connection;
  10075. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10076. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10077. private bool _clearBeforeFill;
  10078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10080. public СategoriesTableAdapter() {
  10081. this.ClearBeforeFill = true;
  10082. }
  10083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10085. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10086. get {
  10087. if ((this._adapter == null)) {
  10088. this.InitAdapter();
  10089. }
  10090. return this._adapter;
  10091. }
  10092. }
  10093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10095. internal global::System.Data.SqlClient.SqlConnection Connection {
  10096. get {
  10097. if ((this._connection == null)) {
  10098. this.InitConnection();
  10099. }
  10100. return this._connection;
  10101. }
  10102. set {
  10103. this._connection = value;
  10104. if ((this.Adapter.InsertCommand != null)) {
  10105. this.Adapter.InsertCommand.Connection = value;
  10106. }
  10107. if ((this.Adapter.DeleteCommand != null)) {
  10108. this.Adapter.DeleteCommand.Connection = value;
  10109. }
  10110. if ((this.Adapter.UpdateCommand != null)) {
  10111. this.Adapter.UpdateCommand.Connection = value;
  10112. }
  10113. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10114. if ((this.CommandCollection[i] != null)) {
  10115. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10116. }
  10117. }
  10118. }
  10119. }
  10120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10122. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10123. get {
  10124. return this._transaction;
  10125. }
  10126. set {
  10127. this._transaction = value;
  10128. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10129. this.CommandCollection[i].Transaction = this._transaction;
  10130. }
  10131. if (((this.Adapter != null)
  10132. && (this.Adapter.DeleteCommand != null))) {
  10133. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10134. }
  10135. if (((this.Adapter != null)
  10136. && (this.Adapter.InsertCommand != null))) {
  10137. this.Adapter.InsertCommand.Transaction = this._transaction;
  10138. }
  10139. if (((this.Adapter != null)
  10140. && (this.Adapter.UpdateCommand != null))) {
  10141. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10142. }
  10143. }
  10144. }
  10145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10147. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10148. get {
  10149. if ((this._commandCollection == null)) {
  10150. this.InitCommandCollection();
  10151. }
  10152. return this._commandCollection;
  10153. }
  10154. }
  10155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10157. public bool ClearBeforeFill {
  10158. get {
  10159. return this._clearBeforeFill;
  10160. }
  10161. set {
  10162. this._clearBeforeFill = value;
  10163. }
  10164. }
  10165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10167. private void InitAdapter() {
  10168. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10169. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10170. tableMapping.SourceTable = "Table";
  10171. tableMapping.DataSetTable = "Сategories";
  10172. tableMapping.ColumnMappings.Add("ID", "ID");
  10173. tableMapping.ColumnMappings.Add("Название", "Название");
  10174. this._adapter.TableMappings.Add(tableMapping);
  10175. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10176. this._adapter.DeleteCommand.Connection = this.Connection;
  10177. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Сategories] WHERE (([ID] = @Original_ID) AND ((@IsNull_Названи" +
  10178. "е = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)))";
  10179. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10180. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10181. 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, "", "", ""));
  10182. 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, "", "", ""));
  10183. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10184. this._adapter.InsertCommand.Connection = this.Connection;
  10185. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Сategories] ([Название]) VALUES (@Название);\r\nSELECT ID, Назва" +
  10186. "ние FROM Сategories WHERE (ID = SCOPE_IDENTITY())";
  10187. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10188. 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, "", "", ""));
  10189. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10190. this._adapter.UpdateCommand.Connection = this.Connection;
  10191. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Сategories] SET [Название] = @Название WHERE (([ID] = @Original_ID)" +
  10192. " AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Н" +
  10193. "азвание)));\r\nSELECT ID, Название FROM Сategories WHERE (ID = @ID)";
  10194. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10195. 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, "", "", ""));
  10196. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10197. 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, "", "", ""));
  10198. 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, "", "", ""));
  10199. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10200. }
  10201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10203. private void InitConnection() {
  10204. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10205. this._connection.ConnectionString = global::KafeKazarin03.Properties.Settings.Default.KazarinKafeConnectionString;
  10206. }
  10207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10209. private void InitCommandCollection() {
  10210. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10211. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10212. this._commandCollection[0].Connection = this.Connection;
  10213. this._commandCollection[0].CommandText = "SELECT ID, Название FROM dbo.Сategories";
  10214. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10215. }
  10216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10218. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10219. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10220. public virtual int Fill(KazarinKafeDataSet.СategoriesDataTable dataTable) {
  10221. this.Adapter.SelectCommand = this.CommandCollection[0];
  10222. if ((this.ClearBeforeFill == true)) {
  10223. dataTable.Clear();
  10224. }
  10225. int returnValue = this.Adapter.Fill(dataTable);
  10226. return returnValue;
  10227. }
  10228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10230. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10231. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10232. public virtual KazarinKafeDataSet.СategoriesDataTable GetData() {
  10233. this.Adapter.SelectCommand = this.CommandCollection[0];
  10234. KazarinKafeDataSet.СategoriesDataTable dataTable = new KazarinKafeDataSet.СategoriesDataTable();
  10235. this.Adapter.Fill(dataTable);
  10236. return dataTable;
  10237. }
  10238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10240. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10241. public virtual int Update(KazarinKafeDataSet.СategoriesDataTable dataTable) {
  10242. return this.Adapter.Update(dataTable);
  10243. }
  10244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10246. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10247. public virtual int Update(KazarinKafeDataSet dataSet) {
  10248. return this.Adapter.Update(dataSet, "Сategories");
  10249. }
  10250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10252. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10253. public virtual int Update(global::System.Data.DataRow dataRow) {
  10254. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10255. dataRow});
  10256. }
  10257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10259. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10260. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10261. return this.Adapter.Update(dataRows);
  10262. }
  10263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10265. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10266. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10267. public virtual int Delete(int Original_ID, string Original_Название) {
  10268. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10269. if ((Original_Название == null)) {
  10270. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  10271. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  10272. }
  10273. else {
  10274. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  10275. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  10276. }
  10277. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10278. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10279. != global::System.Data.ConnectionState.Open)) {
  10280. this.Adapter.DeleteCommand.Connection.Open();
  10281. }
  10282. try {
  10283. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10284. return returnValue;
  10285. }
  10286. finally {
  10287. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10288. this.Adapter.DeleteCommand.Connection.Close();
  10289. }
  10290. }
  10291. }
  10292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10294. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10295. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10296. public virtual int Insert(string Название) {
  10297. if ((Название == null)) {
  10298. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  10299. }
  10300. else {
  10301. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  10302. }
  10303. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10304. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10305. != global::System.Data.ConnectionState.Open)) {
  10306. this.Adapter.InsertCommand.Connection.Open();
  10307. }
  10308. try {
  10309. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10310. return returnValue;
  10311. }
  10312. finally {
  10313. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10314. this.Adapter.InsertCommand.Connection.Close();
  10315. }
  10316. }
  10317. }
  10318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10320. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10321. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10322. public virtual int Update(string Название, int Original_ID, string Original_Название, int ID) {
  10323. if ((Название == null)) {
  10324. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  10325. }
  10326. else {
  10327. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  10328. }
  10329. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID));
  10330. if ((Original_Название == null)) {
  10331. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  10332. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  10333. }
  10334. else {
  10335. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  10336. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Название));
  10337. }
  10338. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ID));
  10339. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10340. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10341. != global::System.Data.ConnectionState.Open)) {
  10342. this.Adapter.UpdateCommand.Connection.Open();
  10343. }
  10344. try {
  10345. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10346. return returnValue;
  10347. }
  10348. finally {
  10349. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10350. this.Adapter.UpdateCommand.Connection.Close();
  10351. }
  10352. }
  10353. }
  10354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10356. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10357. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10358. public virtual int Update(string Название, int Original_ID, string Original_Название) {
  10359. return this.Update(Название, Original_ID, Original_Название, Original_ID);
  10360. }
  10361. }
  10362. /// <summary>
  10363. ///Represents the connection and commands used to retrieve and save data.
  10364. ///</summary>
  10365. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10366. [global::System.ComponentModel.ToolboxItem(true)]
  10367. [global::System.ComponentModel.DataObjectAttribute(true)]
  10368. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10369. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10370. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10371. public partial class СменыTableAdapter : global::System.ComponentModel.Component {
  10372. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10373. private global::System.Data.SqlClient.SqlConnection _connection;
  10374. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10375. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10376. private bool _clearBeforeFill;
  10377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10379. public СменыTableAdapter() {
  10380. this.ClearBeforeFill = true;
  10381. }
  10382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10384. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10385. get {
  10386. if ((this._adapter == null)) {
  10387. this.InitAdapter();
  10388. }
  10389. return this._adapter;
  10390. }
  10391. }
  10392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10394. internal global::System.Data.SqlClient.SqlConnection Connection {
  10395. get {
  10396. if ((this._connection == null)) {
  10397. this.InitConnection();
  10398. }
  10399. return this._connection;
  10400. }
  10401. set {
  10402. this._connection = value;
  10403. if ((this.Adapter.InsertCommand != null)) {
  10404. this.Adapter.InsertCommand.Connection = value;
  10405. }
  10406. if ((this.Adapter.DeleteCommand != null)) {
  10407. this.Adapter.DeleteCommand.Connection = value;
  10408. }
  10409. if ((this.Adapter.UpdateCommand != null)) {
  10410. this.Adapter.UpdateCommand.Connection = value;
  10411. }
  10412. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10413. if ((this.CommandCollection[i] != null)) {
  10414. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10415. }
  10416. }
  10417. }
  10418. }
  10419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10421. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10422. get {
  10423. return this._transaction;
  10424. }
  10425. set {
  10426. this._transaction = value;
  10427. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10428. this.CommandCollection[i].Transaction = this._transaction;
  10429. }
  10430. if (((this.Adapter != null)
  10431. && (this.Adapter.DeleteCommand != null))) {
  10432. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10433. }
  10434. if (((this.Adapter != null)
  10435. && (this.Adapter.InsertCommand != null))) {
  10436. this.Adapter.InsertCommand.Transaction = this._transaction;
  10437. }
  10438. if (((this.Adapter != null)
  10439. && (this.Adapter.UpdateCommand != null))) {
  10440. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10441. }
  10442. }
  10443. }
  10444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10446. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10447. get {
  10448. if ((this._commandCollection == null)) {
  10449. this.InitCommandCollection();
  10450. }
  10451. return this._commandCollection;
  10452. }
  10453. }
  10454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10456. public bool ClearBeforeFill {
  10457. get {
  10458. return this._clearBeforeFill;
  10459. }
  10460. set {
  10461. this._clearBeforeFill = value;
  10462. }
  10463. }
  10464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10466. private void InitAdapter() {
  10467. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10468. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10469. tableMapping.SourceTable = "Table";
  10470. tableMapping.DataSetTable = "Смены";
  10471. tableMapping.ColumnMappings.Add("ДатаСмены", "ДатаСмены");
  10472. tableMapping.ColumnMappings.Add("Повар", "Повар");
  10473. tableMapping.ColumnMappings.Add("Официант", "Официант");
  10474. this._adapter.TableMappings.Add(tableMapping);
  10475. }
  10476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10478. private void InitConnection() {
  10479. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10480. this._connection.ConnectionString = global::KafeKazarin03.Properties.Settings.Default.KazarinKafeConnectionString;
  10481. }
  10482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10484. private void InitCommandCollection() {
  10485. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10486. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10487. this._commandCollection[0].Connection = this.Connection;
  10488. this._commandCollection[0].CommandText = "SELECT ДатаСмены, Повар, Официант FROM dbo.Смены";
  10489. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10490. }
  10491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10493. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10494. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10495. public virtual int Fill(KazarinKafeDataSet.СменыDataTable dataTable) {
  10496. this.Adapter.SelectCommand = this.CommandCollection[0];
  10497. if ((this.ClearBeforeFill == true)) {
  10498. dataTable.Clear();
  10499. }
  10500. int returnValue = this.Adapter.Fill(dataTable);
  10501. return returnValue;
  10502. }
  10503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10505. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10506. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10507. public virtual KazarinKafeDataSet.СменыDataTable GetData() {
  10508. this.Adapter.SelectCommand = this.CommandCollection[0];
  10509. KazarinKafeDataSet.СменыDataTable dataTable = new KazarinKafeDataSet.СменыDataTable();
  10510. this.Adapter.Fill(dataTable);
  10511. return dataTable;
  10512. }
  10513. }
  10514. /// <summary>
  10515. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10516. ///</summary>
  10517. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10518. [global::System.ComponentModel.ToolboxItem(true)]
  10519. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10520. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10521. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10522. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10523. private UpdateOrderOption _updateOrder;
  10524. private CooksTableAdapter _cooksTableAdapter;
  10525. private EmployeesTableAdapter _employeesTableAdapter;
  10526. private OrderedDishesTableAdapter _orderedDishesTableAdapter;
  10527. private OrdersTableAdapter _ordersTableAdapter;
  10528. private OrderStatusTableAdapter _orderStatusTableAdapter;
  10529. private PaymentMethodTableAdapter _paymentMethodTableAdapter;
  10530. private ProductTableAdapter _productTableAdapter;
  10531. private RolesTableAdapter _rolesTableAdapter;
  10532. private TablesTableAdapter _tablesTableAdapter;
  10533. private WaitersTableAdapter _waitersTableAdapter;
  10534. private WorkShiftTableAdapter _workShiftTableAdapter;
  10535. private СategoriesTableAdapter _сategoriesTableAdapter;
  10536. private bool _backupDataSetBeforeUpdate;
  10537. private global::System.Data.IDbConnection _connection;
  10538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10540. public UpdateOrderOption UpdateOrder {
  10541. get {
  10542. return this._updateOrder;
  10543. }
  10544. set {
  10545. this._updateOrder = value;
  10546. }
  10547. }
  10548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10550. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10551. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10552. "a", "System.Drawing.Design.UITypeEditor")]
  10553. public CooksTableAdapter CooksTableAdapter {
  10554. get {
  10555. return this._cooksTableAdapter;
  10556. }
  10557. set {
  10558. this._cooksTableAdapter = value;
  10559. }
  10560. }
  10561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10563. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10564. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10565. "a", "System.Drawing.Design.UITypeEditor")]
  10566. public EmployeesTableAdapter EmployeesTableAdapter {
  10567. get {
  10568. return this._employeesTableAdapter;
  10569. }
  10570. set {
  10571. this._employeesTableAdapter = value;
  10572. }
  10573. }
  10574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10576. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10577. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10578. "a", "System.Drawing.Design.UITypeEditor")]
  10579. public OrderedDishesTableAdapter OrderedDishesTableAdapter {
  10580. get {
  10581. return this._orderedDishesTableAdapter;
  10582. }
  10583. set {
  10584. this._orderedDishesTableAdapter = value;
  10585. }
  10586. }
  10587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10589. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10590. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10591. "a", "System.Drawing.Design.UITypeEditor")]
  10592. public OrdersTableAdapter OrdersTableAdapter {
  10593. get {
  10594. return this._ordersTableAdapter;
  10595. }
  10596. set {
  10597. this._ordersTableAdapter = value;
  10598. }
  10599. }
  10600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10602. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10603. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10604. "a", "System.Drawing.Design.UITypeEditor")]
  10605. public OrderStatusTableAdapter OrderStatusTableAdapter {
  10606. get {
  10607. return this._orderStatusTableAdapter;
  10608. }
  10609. set {
  10610. this._orderStatusTableAdapter = value;
  10611. }
  10612. }
  10613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10615. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10616. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10617. "a", "System.Drawing.Design.UITypeEditor")]
  10618. public PaymentMethodTableAdapter PaymentMethodTableAdapter {
  10619. get {
  10620. return this._paymentMethodTableAdapter;
  10621. }
  10622. set {
  10623. this._paymentMethodTableAdapter = value;
  10624. }
  10625. }
  10626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10628. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10629. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10630. "a", "System.Drawing.Design.UITypeEditor")]
  10631. public ProductTableAdapter ProductTableAdapter {
  10632. get {
  10633. return this._productTableAdapter;
  10634. }
  10635. set {
  10636. this._productTableAdapter = value;
  10637. }
  10638. }
  10639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10641. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10642. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10643. "a", "System.Drawing.Design.UITypeEditor")]
  10644. public RolesTableAdapter RolesTableAdapter {
  10645. get {
  10646. return this._rolesTableAdapter;
  10647. }
  10648. set {
  10649. this._rolesTableAdapter = value;
  10650. }
  10651. }
  10652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10654. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10655. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10656. "a", "System.Drawing.Design.UITypeEditor")]
  10657. public TablesTableAdapter TablesTableAdapter {
  10658. get {
  10659. return this._tablesTableAdapter;
  10660. }
  10661. set {
  10662. this._tablesTableAdapter = value;
  10663. }
  10664. }
  10665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10667. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10668. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10669. "a", "System.Drawing.Design.UITypeEditor")]
  10670. public WaitersTableAdapter WaitersTableAdapter {
  10671. get {
  10672. return this._waitersTableAdapter;
  10673. }
  10674. set {
  10675. this._waitersTableAdapter = value;
  10676. }
  10677. }
  10678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10680. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10681. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10682. "a", "System.Drawing.Design.UITypeEditor")]
  10683. public WorkShiftTableAdapter WorkShiftTableAdapter {
  10684. get {
  10685. return this._workShiftTableAdapter;
  10686. }
  10687. set {
  10688. this._workShiftTableAdapter = value;
  10689. }
  10690. }
  10691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10693. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10694. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10695. "a", "System.Drawing.Design.UITypeEditor")]
  10696. public СategoriesTableAdapter СategoriesTableAdapter {
  10697. get {
  10698. return this._сategoriesTableAdapter;
  10699. }
  10700. set {
  10701. this._сategoriesTableAdapter = value;
  10702. }
  10703. }
  10704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10706. public bool BackupDataSetBeforeUpdate {
  10707. get {
  10708. return this._backupDataSetBeforeUpdate;
  10709. }
  10710. set {
  10711. this._backupDataSetBeforeUpdate = value;
  10712. }
  10713. }
  10714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10716. [global::System.ComponentModel.Browsable(false)]
  10717. public global::System.Data.IDbConnection Connection {
  10718. get {
  10719. if ((this._connection != null)) {
  10720. return this._connection;
  10721. }
  10722. if (((this._cooksTableAdapter != null)
  10723. && (this._cooksTableAdapter.Connection != null))) {
  10724. return this._cooksTableAdapter.Connection;
  10725. }
  10726. if (((this._employeesTableAdapter != null)
  10727. && (this._employeesTableAdapter.Connection != null))) {
  10728. return this._employeesTableAdapter.Connection;
  10729. }
  10730. if (((this._orderedDishesTableAdapter != null)
  10731. && (this._orderedDishesTableAdapter.Connection != null))) {
  10732. return this._orderedDishesTableAdapter.Connection;
  10733. }
  10734. if (((this._ordersTableAdapter != null)
  10735. && (this._ordersTableAdapter.Connection != null))) {
  10736. return this._ordersTableAdapter.Connection;
  10737. }
  10738. if (((this._orderStatusTableAdapter != null)
  10739. && (this._orderStatusTableAdapter.Connection != null))) {
  10740. return this._orderStatusTableAdapter.Connection;
  10741. }
  10742. if (((this._paymentMethodTableAdapter != null)
  10743. && (this._paymentMethodTableAdapter.Connection != null))) {
  10744. return this._paymentMethodTableAdapter.Connection;
  10745. }
  10746. if (((this._productTableAdapter != null)
  10747. && (this._productTableAdapter.Connection != null))) {
  10748. return this._productTableAdapter.Connection;
  10749. }
  10750. if (((this._rolesTableAdapter != null)
  10751. && (this._rolesTableAdapter.Connection != null))) {
  10752. return this._rolesTableAdapter.Connection;
  10753. }
  10754. if (((this._tablesTableAdapter != null)
  10755. && (this._tablesTableAdapter.Connection != null))) {
  10756. return this._tablesTableAdapter.Connection;
  10757. }
  10758. if (((this._waitersTableAdapter != null)
  10759. && (this._waitersTableAdapter.Connection != null))) {
  10760. return this._waitersTableAdapter.Connection;
  10761. }
  10762. if (((this._workShiftTableAdapter != null)
  10763. && (this._workShiftTableAdapter.Connection != null))) {
  10764. return this._workShiftTableAdapter.Connection;
  10765. }
  10766. if (((this._сategoriesTableAdapter != null)
  10767. && (this._сategoriesTableAdapter.Connection != null))) {
  10768. return this._сategoriesTableAdapter.Connection;
  10769. }
  10770. return null;
  10771. }
  10772. set {
  10773. this._connection = value;
  10774. }
  10775. }
  10776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10778. [global::System.ComponentModel.Browsable(false)]
  10779. public int TableAdapterInstanceCount {
  10780. get {
  10781. int count = 0;
  10782. if ((this._cooksTableAdapter != null)) {
  10783. count = (count + 1);
  10784. }
  10785. if ((this._employeesTableAdapter != null)) {
  10786. count = (count + 1);
  10787. }
  10788. if ((this._orderedDishesTableAdapter != null)) {
  10789. count = (count + 1);
  10790. }
  10791. if ((this._ordersTableAdapter != null)) {
  10792. count = (count + 1);
  10793. }
  10794. if ((this._orderStatusTableAdapter != null)) {
  10795. count = (count + 1);
  10796. }
  10797. if ((this._paymentMethodTableAdapter != null)) {
  10798. count = (count + 1);
  10799. }
  10800. if ((this._productTableAdapter != null)) {
  10801. count = (count + 1);
  10802. }
  10803. if ((this._rolesTableAdapter != null)) {
  10804. count = (count + 1);
  10805. }
  10806. if ((this._tablesTableAdapter != null)) {
  10807. count = (count + 1);
  10808. }
  10809. if ((this._waitersTableAdapter != null)) {
  10810. count = (count + 1);
  10811. }
  10812. if ((this._workShiftTableAdapter != null)) {
  10813. count = (count + 1);
  10814. }
  10815. if ((this._сategoriesTableAdapter != null)) {
  10816. count = (count + 1);
  10817. }
  10818. return count;
  10819. }
  10820. }
  10821. /// <summary>
  10822. ///Update rows in top-down order.
  10823. ///</summary>
  10824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10826. private int UpdateUpdatedRows(KazarinKafeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10827. int result = 0;
  10828. if ((this._rolesTableAdapter != null)) {
  10829. global::System.Data.DataRow[] updatedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10830. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10831. if (((updatedRows != null)
  10832. && (0 < updatedRows.Length))) {
  10833. result = (result + this._rolesTableAdapter.Update(updatedRows));
  10834. allChangedRows.AddRange(updatedRows);
  10835. }
  10836. }
  10837. if ((this._employeesTableAdapter != null)) {
  10838. global::System.Data.DataRow[] updatedRows = dataSet.Employees.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10839. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10840. if (((updatedRows != null)
  10841. && (0 < updatedRows.Length))) {
  10842. result = (result + this._employeesTableAdapter.Update(updatedRows));
  10843. allChangedRows.AddRange(updatedRows);
  10844. }
  10845. }
  10846. if ((this._cooksTableAdapter != null)) {
  10847. global::System.Data.DataRow[] updatedRows = dataSet.Cooks.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10848. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10849. if (((updatedRows != null)
  10850. && (0 < updatedRows.Length))) {
  10851. result = (result + this._cooksTableAdapter.Update(updatedRows));
  10852. allChangedRows.AddRange(updatedRows);
  10853. }
  10854. }
  10855. if ((this._waitersTableAdapter != null)) {
  10856. global::System.Data.DataRow[] updatedRows = dataSet.Waiters.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10857. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10858. if (((updatedRows != null)
  10859. && (0 < updatedRows.Length))) {
  10860. result = (result + this._waitersTableAdapter.Update(updatedRows));
  10861. allChangedRows.AddRange(updatedRows);
  10862. }
  10863. }
  10864. if ((this._orderStatusTableAdapter != null)) {
  10865. global::System.Data.DataRow[] updatedRows = dataSet.OrderStatus.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10866. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10867. if (((updatedRows != null)
  10868. && (0 < updatedRows.Length))) {
  10869. result = (result + this._orderStatusTableAdapter.Update(updatedRows));
  10870. allChangedRows.AddRange(updatedRows);
  10871. }
  10872. }
  10873. if ((this._paymentMethodTableAdapter != null)) {
  10874. global::System.Data.DataRow[] updatedRows = dataSet.PaymentMethod.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10875. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10876. if (((updatedRows != null)
  10877. && (0 < updatedRows.Length))) {
  10878. result = (result + this._paymentMethodTableAdapter.Update(updatedRows));
  10879. allChangedRows.AddRange(updatedRows);
  10880. }
  10881. }
  10882. if ((this._tablesTableAdapter != null)) {
  10883. global::System.Data.DataRow[] updatedRows = dataSet._Tables.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10884. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10885. if (((updatedRows != null)
  10886. && (0 < updatedRows.Length))) {
  10887. result = (result + this._tablesTableAdapter.Update(updatedRows));
  10888. allChangedRows.AddRange(updatedRows);
  10889. }
  10890. }
  10891. if ((this._workShiftTableAdapter != null)) {
  10892. global::System.Data.DataRow[] updatedRows = dataSet.WorkShift.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10893. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10894. if (((updatedRows != null)
  10895. && (0 < updatedRows.Length))) {
  10896. result = (result + this._workShiftTableAdapter.Update(updatedRows));
  10897. allChangedRows.AddRange(updatedRows);
  10898. }
  10899. }
  10900. if ((this._сategoriesTableAdapter != null)) {
  10901. global::System.Data.DataRow[] updatedRows = dataSet.Сategories.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10902. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10903. if (((updatedRows != null)
  10904. && (0 < updatedRows.Length))) {
  10905. result = (result + this._сategoriesTableAdapter.Update(updatedRows));
  10906. allChangedRows.AddRange(updatedRows);
  10907. }
  10908. }
  10909. if ((this._ordersTableAdapter != null)) {
  10910. global::System.Data.DataRow[] updatedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10911. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10912. if (((updatedRows != null)
  10913. && (0 < updatedRows.Length))) {
  10914. result = (result + this._ordersTableAdapter.Update(updatedRows));
  10915. allChangedRows.AddRange(updatedRows);
  10916. }
  10917. }
  10918. if ((this._productTableAdapter != null)) {
  10919. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10920. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10921. if (((updatedRows != null)
  10922. && (0 < updatedRows.Length))) {
  10923. result = (result + this._productTableAdapter.Update(updatedRows));
  10924. allChangedRows.AddRange(updatedRows);
  10925. }
  10926. }
  10927. if ((this._orderedDishesTableAdapter != null)) {
  10928. global::System.Data.DataRow[] updatedRows = dataSet.OrderedDishes.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10929. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10930. if (((updatedRows != null)
  10931. && (0 < updatedRows.Length))) {
  10932. result = (result + this._orderedDishesTableAdapter.Update(updatedRows));
  10933. allChangedRows.AddRange(updatedRows);
  10934. }
  10935. }
  10936. return result;
  10937. }
  10938. /// <summary>
  10939. ///Insert rows in top-down order.
  10940. ///</summary>
  10941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10943. private int UpdateInsertedRows(KazarinKafeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10944. int result = 0;
  10945. if ((this._rolesTableAdapter != null)) {
  10946. global::System.Data.DataRow[] addedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.Added);
  10947. if (((addedRows != null)
  10948. && (0 < addedRows.Length))) {
  10949. result = (result + this._rolesTableAdapter.Update(addedRows));
  10950. allAddedRows.AddRange(addedRows);
  10951. }
  10952. }
  10953. if ((this._employeesTableAdapter != null)) {
  10954. global::System.Data.DataRow[] addedRows = dataSet.Employees.Select(null, null, global::System.Data.DataViewRowState.Added);
  10955. if (((addedRows != null)
  10956. && (0 < addedRows.Length))) {
  10957. result = (result + this._employeesTableAdapter.Update(addedRows));
  10958. allAddedRows.AddRange(addedRows);
  10959. }
  10960. }
  10961. if ((this._cooksTableAdapter != null)) {
  10962. global::System.Data.DataRow[] addedRows = dataSet.Cooks.Select(null, null, global::System.Data.DataViewRowState.Added);
  10963. if (((addedRows != null)
  10964. && (0 < addedRows.Length))) {
  10965. result = (result + this._cooksTableAdapter.Update(addedRows));
  10966. allAddedRows.AddRange(addedRows);
  10967. }
  10968. }
  10969. if ((this._waitersTableAdapter != null)) {
  10970. global::System.Data.DataRow[] addedRows = dataSet.Waiters.Select(null, null, global::System.Data.DataViewRowState.Added);
  10971. if (((addedRows != null)
  10972. && (0 < addedRows.Length))) {
  10973. result = (result + this._waitersTableAdapter.Update(addedRows));
  10974. allAddedRows.AddRange(addedRows);
  10975. }
  10976. }
  10977. if ((this._orderStatusTableAdapter != null)) {
  10978. global::System.Data.DataRow[] addedRows = dataSet.OrderStatus.Select(null, null, global::System.Data.DataViewRowState.Added);
  10979. if (((addedRows != null)
  10980. && (0 < addedRows.Length))) {
  10981. result = (result + this._orderStatusTableAdapter.Update(addedRows));
  10982. allAddedRows.AddRange(addedRows);
  10983. }
  10984. }
  10985. if ((this._paymentMethodTableAdapter != null)) {
  10986. global::System.Data.DataRow[] addedRows = dataSet.PaymentMethod.Select(null, null, global::System.Data.DataViewRowState.Added);
  10987. if (((addedRows != null)
  10988. && (0 < addedRows.Length))) {
  10989. result = (result + this._paymentMethodTableAdapter.Update(addedRows));
  10990. allAddedRows.AddRange(addedRows);
  10991. }
  10992. }
  10993. if ((this._tablesTableAdapter != null)) {
  10994. global::System.Data.DataRow[] addedRows = dataSet._Tables.Select(null, null, global::System.Data.DataViewRowState.Added);
  10995. if (((addedRows != null)
  10996. && (0 < addedRows.Length))) {
  10997. result = (result + this._tablesTableAdapter.Update(addedRows));
  10998. allAddedRows.AddRange(addedRows);
  10999. }
  11000. }
  11001. if ((this._workShiftTableAdapter != null)) {
  11002. global::System.Data.DataRow[] addedRows = dataSet.WorkShift.Select(null, null, global::System.Data.DataViewRowState.Added);
  11003. if (((addedRows != null)
  11004. && (0 < addedRows.Length))) {
  11005. result = (result + this._workShiftTableAdapter.Update(addedRows));
  11006. allAddedRows.AddRange(addedRows);
  11007. }
  11008. }
  11009. if ((this._сategoriesTableAdapter != null)) {
  11010. global::System.Data.DataRow[] addedRows = dataSet.Сategories.Select(null, null, global::System.Data.DataViewRowState.Added);
  11011. if (((addedRows != null)
  11012. && (0 < addedRows.Length))) {
  11013. result = (result + this._сategoriesTableAdapter.Update(addedRows));
  11014. allAddedRows.AddRange(addedRows);
  11015. }
  11016. }
  11017. if ((this._ordersTableAdapter != null)) {
  11018. global::System.Data.DataRow[] addedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.Added);
  11019. if (((addedRows != null)
  11020. && (0 < addedRows.Length))) {
  11021. result = (result + this._ordersTableAdapter.Update(addedRows));
  11022. allAddedRows.AddRange(addedRows);
  11023. }
  11024. }
  11025. if ((this._productTableAdapter != null)) {
  11026. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  11027. if (((addedRows != null)
  11028. && (0 < addedRows.Length))) {
  11029. result = (result + this._productTableAdapter.Update(addedRows));
  11030. allAddedRows.AddRange(addedRows);
  11031. }
  11032. }
  11033. if ((this._orderedDishesTableAdapter != null)) {
  11034. global::System.Data.DataRow[] addedRows = dataSet.OrderedDishes.Select(null, null, global::System.Data.DataViewRowState.Added);
  11035. if (((addedRows != null)
  11036. && (0 < addedRows.Length))) {
  11037. result = (result + this._orderedDishesTableAdapter.Update(addedRows));
  11038. allAddedRows.AddRange(addedRows);
  11039. }
  11040. }
  11041. return result;
  11042. }
  11043. /// <summary>
  11044. ///Delete rows in bottom-up order.
  11045. ///</summary>
  11046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11048. private int UpdateDeletedRows(KazarinKafeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  11049. int result = 0;
  11050. if ((this._orderedDishesTableAdapter != null)) {
  11051. global::System.Data.DataRow[] deletedRows = dataSet.OrderedDishes.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11052. if (((deletedRows != null)
  11053. && (0 < deletedRows.Length))) {
  11054. result = (result + this._orderedDishesTableAdapter.Update(deletedRows));
  11055. allChangedRows.AddRange(deletedRows);
  11056. }
  11057. }
  11058. if ((this._productTableAdapter != null)) {
  11059. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11060. if (((deletedRows != null)
  11061. && (0 < deletedRows.Length))) {
  11062. result = (result + this._productTableAdapter.Update(deletedRows));
  11063. allChangedRows.AddRange(deletedRows);
  11064. }
  11065. }
  11066. if ((this._ordersTableAdapter != null)) {
  11067. global::System.Data.DataRow[] deletedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11068. if (((deletedRows != null)
  11069. && (0 < deletedRows.Length))) {
  11070. result = (result + this._ordersTableAdapter.Update(deletedRows));
  11071. allChangedRows.AddRange(deletedRows);
  11072. }
  11073. }
  11074. if ((this._сategoriesTableAdapter != null)) {
  11075. global::System.Data.DataRow[] deletedRows = dataSet.Сategories.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11076. if (((deletedRows != null)
  11077. && (0 < deletedRows.Length))) {
  11078. result = (result + this._сategoriesTableAdapter.Update(deletedRows));
  11079. allChangedRows.AddRange(deletedRows);
  11080. }
  11081. }
  11082. if ((this._workShiftTableAdapter != null)) {
  11083. global::System.Data.DataRow[] deletedRows = dataSet.WorkShift.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11084. if (((deletedRows != null)
  11085. && (0 < deletedRows.Length))) {
  11086. result = (result + this._workShiftTableAdapter.Update(deletedRows));
  11087. allChangedRows.AddRange(deletedRows);
  11088. }
  11089. }
  11090. if ((this._tablesTableAdapter != null)) {
  11091. global::System.Data.DataRow[] deletedRows = dataSet._Tables.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11092. if (((deletedRows != null)
  11093. && (0 < deletedRows.Length))) {
  11094. result = (result + this._tablesTableAdapter.Update(deletedRows));
  11095. allChangedRows.AddRange(deletedRows);
  11096. }
  11097. }
  11098. if ((this._paymentMethodTableAdapter != null)) {
  11099. global::System.Data.DataRow[] deletedRows = dataSet.PaymentMethod.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11100. if (((deletedRows != null)
  11101. && (0 < deletedRows.Length))) {
  11102. result = (result + this._paymentMethodTableAdapter.Update(deletedRows));
  11103. allChangedRows.AddRange(deletedRows);
  11104. }
  11105. }
  11106. if ((this._orderStatusTableAdapter != null)) {
  11107. global::System.Data.DataRow[] deletedRows = dataSet.OrderStatus.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11108. if (((deletedRows != null)
  11109. && (0 < deletedRows.Length))) {
  11110. result = (result + this._orderStatusTableAdapter.Update(deletedRows));
  11111. allChangedRows.AddRange(deletedRows);
  11112. }
  11113. }
  11114. if ((this._waitersTableAdapter != null)) {
  11115. global::System.Data.DataRow[] deletedRows = dataSet.Waiters.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11116. if (((deletedRows != null)
  11117. && (0 < deletedRows.Length))) {
  11118. result = (result + this._waitersTableAdapter.Update(deletedRows));
  11119. allChangedRows.AddRange(deletedRows);
  11120. }
  11121. }
  11122. if ((this._cooksTableAdapter != null)) {
  11123. global::System.Data.DataRow[] deletedRows = dataSet.Cooks.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11124. if (((deletedRows != null)
  11125. && (0 < deletedRows.Length))) {
  11126. result = (result + this._cooksTableAdapter.Update(deletedRows));
  11127. allChangedRows.AddRange(deletedRows);
  11128. }
  11129. }
  11130. if ((this._employeesTableAdapter != null)) {
  11131. global::System.Data.DataRow[] deletedRows = dataSet.Employees.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11132. if (((deletedRows != null)
  11133. && (0 < deletedRows.Length))) {
  11134. result = (result + this._employeesTableAdapter.Update(deletedRows));
  11135. allChangedRows.AddRange(deletedRows);
  11136. }
  11137. }
  11138. if ((this._rolesTableAdapter != null)) {
  11139. global::System.Data.DataRow[] deletedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11140. if (((deletedRows != null)
  11141. && (0 < deletedRows.Length))) {
  11142. result = (result + this._rolesTableAdapter.Update(deletedRows));
  11143. allChangedRows.AddRange(deletedRows);
  11144. }
  11145. }
  11146. return result;
  11147. }
  11148. /// <summary>
  11149. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  11150. ///</summary>
  11151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11153. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11154. if (((updatedRows == null)
  11155. || (updatedRows.Length < 1))) {
  11156. return updatedRows;
  11157. }
  11158. if (((allAddedRows == null)
  11159. || (allAddedRows.Count < 1))) {
  11160. return updatedRows;
  11161. }
  11162. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11163. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  11164. global::System.Data.DataRow row = updatedRows[i];
  11165. if ((allAddedRows.Contains(row) == false)) {
  11166. realUpdatedRows.Add(row);
  11167. }
  11168. }
  11169. return realUpdatedRows.ToArray();
  11170. }
  11171. /// <summary>
  11172. ///Update all changes to the dataset.
  11173. ///</summary>
  11174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11176. public virtual int UpdateAll(KazarinKafeDataSet dataSet) {
  11177. if ((dataSet == null)) {
  11178. throw new global::System.ArgumentNullException("dataSet");
  11179. }
  11180. if ((dataSet.HasChanges() == false)) {
  11181. return 0;
  11182. }
  11183. if (((this._cooksTableAdapter != null)
  11184. && (this.MatchTableAdapterConnection(this._cooksTableAdapter.Connection) == false))) {
  11185. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11186. "r, должны использовать одинаковую строку подключения.");
  11187. }
  11188. if (((this._employeesTableAdapter != null)
  11189. && (this.MatchTableAdapterConnection(this._employeesTableAdapter.Connection) == false))) {
  11190. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11191. "r, должны использовать одинаковую строку подключения.");
  11192. }
  11193. if (((this._orderedDishesTableAdapter != null)
  11194. && (this.MatchTableAdapterConnection(this._orderedDishesTableAdapter.Connection) == false))) {
  11195. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11196. "r, должны использовать одинаковую строку подключения.");
  11197. }
  11198. if (((this._ordersTableAdapter != null)
  11199. && (this.MatchTableAdapterConnection(this._ordersTableAdapter.Connection) == false))) {
  11200. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11201. "r, должны использовать одинаковую строку подключения.");
  11202. }
  11203. if (((this._orderStatusTableAdapter != null)
  11204. && (this.MatchTableAdapterConnection(this._orderStatusTableAdapter.Connection) == false))) {
  11205. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11206. "r, должны использовать одинаковую строку подключения.");
  11207. }
  11208. if (((this._paymentMethodTableAdapter != null)
  11209. && (this.MatchTableAdapterConnection(this._paymentMethodTableAdapter.Connection) == false))) {
  11210. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11211. "r, должны использовать одинаковую строку подключения.");
  11212. }
  11213. if (((this._productTableAdapter != null)
  11214. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  11215. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11216. "r, должны использовать одинаковую строку подключения.");
  11217. }
  11218. if (((this._rolesTableAdapter != null)
  11219. && (this.MatchTableAdapterConnection(this._rolesTableAdapter.Connection) == false))) {
  11220. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11221. "r, должны использовать одинаковую строку подключения.");
  11222. }
  11223. if (((this._tablesTableAdapter != null)
  11224. && (this.MatchTableAdapterConnection(this._tablesTableAdapter.Connection) == false))) {
  11225. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11226. "r, должны использовать одинаковую строку подключения.");
  11227. }
  11228. if (((this._waitersTableAdapter != null)
  11229. && (this.MatchTableAdapterConnection(this._waitersTableAdapter.Connection) == false))) {
  11230. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11231. "r, должны использовать одинаковую строку подключения.");
  11232. }
  11233. if (((this._workShiftTableAdapter != null)
  11234. && (this.MatchTableAdapterConnection(this._workShiftTableAdapter.Connection) == false))) {
  11235. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11236. "r, должны использовать одинаковую строку подключения.");
  11237. }
  11238. if (((this._сategoriesTableAdapter != null)
  11239. && (this.MatchTableAdapterConnection(this._сategoriesTableAdapter.Connection) == false))) {
  11240. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11241. "r, должны использовать одинаковую строку подключения.");
  11242. }
  11243. global::System.Data.IDbConnection workConnection = this.Connection;
  11244. if ((workConnection == null)) {
  11245. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  11246. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  11247. }
  11248. bool workConnOpened = false;
  11249. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  11250. == global::System.Data.ConnectionState.Broken)) {
  11251. workConnection.Close();
  11252. }
  11253. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  11254. workConnection.Open();
  11255. workConnOpened = true;
  11256. }
  11257. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  11258. if ((workTransaction == null)) {
  11259. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  11260. "и или текущее состояние не позволяет начать транзакцию.");
  11261. }
  11262. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11263. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11264. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  11265. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  11266. int result = 0;
  11267. global::System.Data.DataSet backupDataSet = null;
  11268. if (this.BackupDataSetBeforeUpdate) {
  11269. backupDataSet = new global::System.Data.DataSet();
  11270. backupDataSet.Merge(dataSet);
  11271. }
  11272. try {
  11273. // ---- Prepare for update -----------
  11274. //
  11275. if ((this._cooksTableAdapter != null)) {
  11276. revertConnections.Add(this._cooksTableAdapter, this._cooksTableAdapter.Connection);
  11277. this._cooksTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11278. this._cooksTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11279. if (this._cooksTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11280. this._cooksTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11281. adaptersWithAcceptChangesDuringUpdate.Add(this._cooksTableAdapter.Adapter);
  11282. }
  11283. }
  11284. if ((this._employeesTableAdapter != null)) {
  11285. revertConnections.Add(this._employeesTableAdapter, this._employeesTableAdapter.Connection);
  11286. this._employeesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11287. this._employeesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11288. if (this._employeesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11289. this._employeesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11290. adaptersWithAcceptChangesDuringUpdate.Add(this._employeesTableAdapter.Adapter);
  11291. }
  11292. }
  11293. if ((this._orderedDishesTableAdapter != null)) {
  11294. revertConnections.Add(this._orderedDishesTableAdapter, this._orderedDishesTableAdapter.Connection);
  11295. this._orderedDishesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11296. this._orderedDishesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11297. if (this._orderedDishesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11298. this._orderedDishesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11299. adaptersWithAcceptChangesDuringUpdate.Add(this._orderedDishesTableAdapter.Adapter);
  11300. }
  11301. }
  11302. if ((this._ordersTableAdapter != null)) {
  11303. revertConnections.Add(this._ordersTableAdapter, this._ordersTableAdapter.Connection);
  11304. this._ordersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11305. this._ordersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11306. if (this._ordersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11307. this._ordersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11308. adaptersWithAcceptChangesDuringUpdate.Add(this._ordersTableAdapter.Adapter);
  11309. }
  11310. }
  11311. if ((this._orderStatusTableAdapter != null)) {
  11312. revertConnections.Add(this._orderStatusTableAdapter, this._orderStatusTableAdapter.Connection);
  11313. this._orderStatusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11314. this._orderStatusTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11315. if (this._orderStatusTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11316. this._orderStatusTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11317. adaptersWithAcceptChangesDuringUpdate.Add(this._orderStatusTableAdapter.Adapter);
  11318. }
  11319. }
  11320. if ((this._paymentMethodTableAdapter != null)) {
  11321. revertConnections.Add(this._paymentMethodTableAdapter, this._paymentMethodTableAdapter.Connection);
  11322. this._paymentMethodTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11323. this._paymentMethodTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11324. if (this._paymentMethodTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11325. this._paymentMethodTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11326. adaptersWithAcceptChangesDuringUpdate.Add(this._paymentMethodTableAdapter.Adapter);
  11327. }
  11328. }
  11329. if ((this._productTableAdapter != null)) {
  11330. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  11331. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11332. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11333. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11334. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11335. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  11336. }
  11337. }
  11338. if ((this._rolesTableAdapter != null)) {
  11339. revertConnections.Add(this._rolesTableAdapter, this._rolesTableAdapter.Connection);
  11340. this._rolesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11341. this._rolesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11342. if (this._rolesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11343. this._rolesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11344. adaptersWithAcceptChangesDuringUpdate.Add(this._rolesTableAdapter.Adapter);
  11345. }
  11346. }
  11347. if ((this._tablesTableAdapter != null)) {
  11348. revertConnections.Add(this._tablesTableAdapter, this._tablesTableAdapter.Connection);
  11349. this._tablesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11350. this._tablesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11351. if (this._tablesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11352. this._tablesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11353. adaptersWithAcceptChangesDuringUpdate.Add(this._tablesTableAdapter.Adapter);
  11354. }
  11355. }
  11356. if ((this._waitersTableAdapter != null)) {
  11357. revertConnections.Add(this._waitersTableAdapter, this._waitersTableAdapter.Connection);
  11358. this._waitersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11359. this._waitersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11360. if (this._waitersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11361. this._waitersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11362. adaptersWithAcceptChangesDuringUpdate.Add(this._waitersTableAdapter.Adapter);
  11363. }
  11364. }
  11365. if ((this._workShiftTableAdapter != null)) {
  11366. revertConnections.Add(this._workShiftTableAdapter, this._workShiftTableAdapter.Connection);
  11367. this._workShiftTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11368. this._workShiftTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11369. if (this._workShiftTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11370. this._workShiftTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11371. adaptersWithAcceptChangesDuringUpdate.Add(this._workShiftTableAdapter.Adapter);
  11372. }
  11373. }
  11374. if ((this._сategoriesTableAdapter != null)) {
  11375. revertConnections.Add(this._сategoriesTableAdapter, this._сategoriesTableAdapter.Connection);
  11376. this._сategoriesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11377. this._сategoriesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11378. if (this._сategoriesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11379. this._сategoriesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11380. adaptersWithAcceptChangesDuringUpdate.Add(this._сategoriesTableAdapter.Adapter);
  11381. }
  11382. }
  11383. //
  11384. //---- Perform updates -----------
  11385. //
  11386. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  11387. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11388. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11389. }
  11390. else {
  11391. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11392. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11393. }
  11394. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  11395. //
  11396. //---- Commit updates -----------
  11397. //
  11398. workTransaction.Commit();
  11399. if ((0 < allAddedRows.Count)) {
  11400. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11401. allAddedRows.CopyTo(rows);
  11402. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11403. global::System.Data.DataRow row = rows[i];
  11404. row.AcceptChanges();
  11405. }
  11406. }
  11407. if ((0 < allChangedRows.Count)) {
  11408. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  11409. allChangedRows.CopyTo(rows);
  11410. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11411. global::System.Data.DataRow row = rows[i];
  11412. row.AcceptChanges();
  11413. }
  11414. }
  11415. }
  11416. catch (global::System.Exception ex) {
  11417. workTransaction.Rollback();
  11418. // ---- Restore the dataset -----------
  11419. if (this.BackupDataSetBeforeUpdate) {
  11420. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  11421. dataSet.Clear();
  11422. dataSet.Merge(backupDataSet);
  11423. }
  11424. else {
  11425. if ((0 < allAddedRows.Count)) {
  11426. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11427. allAddedRows.CopyTo(rows);
  11428. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11429. global::System.Data.DataRow row = rows[i];
  11430. row.AcceptChanges();
  11431. row.SetAdded();
  11432. }
  11433. }
  11434. }
  11435. throw ex;
  11436. }
  11437. finally {
  11438. if (workConnOpened) {
  11439. workConnection.Close();
  11440. }
  11441. if ((this._cooksTableAdapter != null)) {
  11442. this._cooksTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._cooksTableAdapter]));
  11443. this._cooksTableAdapter.Transaction = null;
  11444. }
  11445. if ((this._employeesTableAdapter != null)) {
  11446. this._employeesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._employeesTableAdapter]));
  11447. this._employeesTableAdapter.Transaction = null;
  11448. }
  11449. if ((this._orderedDishesTableAdapter != null)) {
  11450. this._orderedDishesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderedDishesTableAdapter]));
  11451. this._orderedDishesTableAdapter.Transaction = null;
  11452. }
  11453. if ((this._ordersTableAdapter != null)) {
  11454. this._ordersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ordersTableAdapter]));
  11455. this._ordersTableAdapter.Transaction = null;
  11456. }
  11457. if ((this._orderStatusTableAdapter != null)) {
  11458. this._orderStatusTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderStatusTableAdapter]));
  11459. this._orderStatusTableAdapter.Transaction = null;
  11460. }
  11461. if ((this._paymentMethodTableAdapter != null)) {
  11462. this._paymentMethodTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._paymentMethodTableAdapter]));
  11463. this._paymentMethodTableAdapter.Transaction = null;
  11464. }
  11465. if ((this._productTableAdapter != null)) {
  11466. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  11467. this._productTableAdapter.Transaction = null;
  11468. }
  11469. if ((this._rolesTableAdapter != null)) {
  11470. this._rolesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._rolesTableAdapter]));
  11471. this._rolesTableAdapter.Transaction = null;
  11472. }
  11473. if ((this._tablesTableAdapter != null)) {
  11474. this._tablesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tablesTableAdapter]));
  11475. this._tablesTableAdapter.Transaction = null;
  11476. }
  11477. if ((this._waitersTableAdapter != null)) {
  11478. this._waitersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._waitersTableAdapter]));
  11479. this._waitersTableAdapter.Transaction = null;
  11480. }
  11481. if ((this._workShiftTableAdapter != null)) {
  11482. this._workShiftTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._workShiftTableAdapter]));
  11483. this._workShiftTableAdapter.Transaction = null;
  11484. }
  11485. if ((this._сategoriesTableAdapter != null)) {
  11486. this._сategoriesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сategoriesTableAdapter]));
  11487. this._сategoriesTableAdapter.Transaction = null;
  11488. }
  11489. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  11490. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  11491. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  11492. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  11493. global::System.Data.Common.DataAdapter adapter = adapters[i];
  11494. adapter.AcceptChangesDuringUpdate = true;
  11495. }
  11496. }
  11497. }
  11498. return result;
  11499. }
  11500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11502. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  11503. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  11504. }
  11505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11507. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  11508. if ((this._connection != null)) {
  11509. return true;
  11510. }
  11511. if (((this.Connection == null)
  11512. || (inputConnection == null))) {
  11513. return true;
  11514. }
  11515. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  11516. return true;
  11517. }
  11518. return false;
  11519. }
  11520. /// <summary>
  11521. ///Update Order Option
  11522. ///</summary>
  11523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11524. public enum UpdateOrderOption {
  11525. InsertUpdateDelete = 0,
  11526. UpdateInsertDelete = 1,
  11527. }
  11528. /// <summary>
  11529. ///Used to sort self-referenced table's rows
  11530. ///</summary>
  11531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11532. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  11533. private global::System.Data.DataRelation _relation;
  11534. private int _childFirst;
  11535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11537. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  11538. this._relation = relation;
  11539. if (childFirst) {
  11540. this._childFirst = -1;
  11541. }
  11542. else {
  11543. this._childFirst = 1;
  11544. }
  11545. }
  11546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11548. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  11549. global::System.Diagnostics.Debug.Assert((row != null));
  11550. global::System.Data.DataRow root = row;
  11551. distance = 0;
  11552. 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>();
  11553. traversedRows[row] = row;
  11554. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11555. for (
  11556. ; ((parent != null)
  11557. && (traversedRows.ContainsKey(parent) == false));
  11558. ) {
  11559. distance = (distance + 1);
  11560. root = parent;
  11561. traversedRows[parent] = parent;
  11562. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11563. }
  11564. if ((distance == 0)) {
  11565. traversedRows.Clear();
  11566. traversedRows[row] = row;
  11567. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11568. for (
  11569. ; ((parent != null)
  11570. && (traversedRows.ContainsKey(parent) == false));
  11571. ) {
  11572. distance = (distance + 1);
  11573. root = parent;
  11574. traversedRows[parent] = parent;
  11575. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11576. }
  11577. }
  11578. return root;
  11579. }
  11580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11582. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11583. if (object.ReferenceEquals(row1, row2)) {
  11584. return 0;
  11585. }
  11586. if ((row1 == null)) {
  11587. return -1;
  11588. }
  11589. if ((row2 == null)) {
  11590. return 1;
  11591. }
  11592. int distance1 = 0;
  11593. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11594. int distance2 = 0;
  11595. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11596. if (object.ReferenceEquals(root1, root2)) {
  11597. return (this._childFirst * distance1.CompareTo(distance2));
  11598. }
  11599. else {
  11600. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11601. && (root2.Table != null)));
  11602. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11603. return -1;
  11604. }
  11605. else {
  11606. return 1;
  11607. }
  11608. }
  11609. }
  11610. }
  11611. }
  11612. }
  11613. #pragma warning restore 1591