lebcafeDataSet.Designer.cs 718 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Cafe11 {
  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("lebcafeDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class lebcafeDataSet : global::System.Data.DataSet {
  22. private БлюдаНапиткиDataTable tableБлюдаНапитки;
  23. private Заказанные_блюдаDataTable tableЗаказанные_блюда;
  24. private ЗаказыDataTable tableЗаказы;
  25. private ОфициантыDataTable tableОфицианты;
  26. private ПовараDataTable tableПовара;
  27. private ПользователиDataTable tableПользователи;
  28. private РолиDataTable tableРоли;
  29. private СменыDataTable tableСмены;
  30. private СтатусЗаказаDataTable tableСтатусЗаказа;
  31. private СтатусСотрудникаDataTable tableСтатусСотрудника;
  32. private СтоликиDataTable tableСтолики;
  33. private RABOCHIEAdminDataTable tableRABOCHIEAdmin;
  34. private global::System.Data.DataRelation relationFK_Заказанные_блюда_БлюдаНапитки;
  35. private global::System.Data.DataRelation relationFK_Заказанные_блюда_Заказы;
  36. private global::System.Data.DataRelation relationFK_Заказы_СтатусЗаказа;
  37. private global::System.Data.DataRelation relationFK_Заказы_Столики;
  38. private global::System.Data.DataRelation relationFK_Пользователи_Официанты;
  39. private global::System.Data.DataRelation relationFK_Пользователи_Повара;
  40. private global::System.Data.DataRelation relationFK_Пользователи_Роли1;
  41. private global::System.Data.DataRelation relationFK_Пользователи_СтатусСотрудника;
  42. private global::System.Data.DataRelation relationFK_Смены_Официанты;
  43. private global::System.Data.DataRelation relationFK_Смены_Повара;
  44. private global::System.Data.DataRelation relationFK_Официанты_Пользователи;
  45. private global::System.Data.DataRelation relationFK_Повара_Пользователи;
  46. private global::System.Data.DataRelation relationFK_Заказы_Смены;
  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 lebcafeDataSet() {
  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 lebcafeDataSet(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["БлюдаНапитки"] != null)) {
  74. base.Tables.Add(new БлюдаНапиткиDataTable(ds.Tables["БлюдаНапитки"]));
  75. }
  76. if ((ds.Tables["Заказанные блюда"] != null)) {
  77. base.Tables.Add(new Заказанные_блюдаDataTable(ds.Tables["Заказанные блюда"]));
  78. }
  79. if ((ds.Tables["Заказы"] != null)) {
  80. base.Tables.Add(new ЗаказыDataTable(ds.Tables["Заказы"]));
  81. }
  82. if ((ds.Tables["Официанты"] != null)) {
  83. base.Tables.Add(new ОфициантыDataTable(ds.Tables["Официанты"]));
  84. }
  85. if ((ds.Tables["Повара"] != null)) {
  86. base.Tables.Add(new ПовараDataTable(ds.Tables["Повара"]));
  87. }
  88. if ((ds.Tables["Пользователи"] != null)) {
  89. base.Tables.Add(new ПользователиDataTable(ds.Tables["Пользователи"]));
  90. }
  91. if ((ds.Tables["Роли"] != null)) {
  92. base.Tables.Add(new РолиDataTable(ds.Tables["Роли"]));
  93. }
  94. if ((ds.Tables["Смены"] != null)) {
  95. base.Tables.Add(new СменыDataTable(ds.Tables["Смены"]));
  96. }
  97. if ((ds.Tables["СтатусЗаказа"] != null)) {
  98. base.Tables.Add(new СтатусЗаказаDataTable(ds.Tables["СтатусЗаказа"]));
  99. }
  100. if ((ds.Tables["СтатусСотрудника"] != null)) {
  101. base.Tables.Add(new СтатусСотрудникаDataTable(ds.Tables["СтатусСотрудника"]));
  102. }
  103. if ((ds.Tables["Столики"] != null)) {
  104. base.Tables.Add(new СтоликиDataTable(ds.Tables["Столики"]));
  105. }
  106. if ((ds.Tables["RABOCHIEAdmin"] != null)) {
  107. base.Tables.Add(new RABOCHIEAdminDataTable(ds.Tables["RABOCHIEAdmin"]));
  108. }
  109. this.DataSetName = ds.DataSetName;
  110. this.Prefix = ds.Prefix;
  111. this.Namespace = ds.Namespace;
  112. this.Locale = ds.Locale;
  113. this.CaseSensitive = ds.CaseSensitive;
  114. this.EnforceConstraints = ds.EnforceConstraints;
  115. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  116. this.InitVars();
  117. }
  118. else {
  119. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  120. }
  121. this.GetSerializationData(info, context);
  122. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  123. base.Tables.CollectionChanged += schemaChangedHandler;
  124. this.Relations.CollectionChanged += schemaChangedHandler;
  125. }
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  128. [global::System.ComponentModel.Browsable(false)]
  129. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  130. public БлюдаНапиткиDataTable БлюдаНапитки {
  131. get {
  132. return this.tableБлюдаНапитки;
  133. }
  134. }
  135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  137. [global::System.ComponentModel.Browsable(false)]
  138. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  139. public Заказанные_блюдаDataTable Заказанные_блюда {
  140. get {
  141. return this.tableЗаказанные_блюда;
  142. }
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  146. [global::System.ComponentModel.Browsable(false)]
  147. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  148. public ЗаказыDataTable Заказы {
  149. get {
  150. return this.tableЗаказы;
  151. }
  152. }
  153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  155. [global::System.ComponentModel.Browsable(false)]
  156. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  157. public ОфициантыDataTable Официанты {
  158. get {
  159. return this.tableОфицианты;
  160. }
  161. }
  162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  164. [global::System.ComponentModel.Browsable(false)]
  165. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  166. public ПовараDataTable Повара {
  167. get {
  168. return this.tableПовара;
  169. }
  170. }
  171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  173. [global::System.ComponentModel.Browsable(false)]
  174. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  175. public ПользователиDataTable Пользователи {
  176. get {
  177. return this.tableПользователи;
  178. }
  179. }
  180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  182. [global::System.ComponentModel.Browsable(false)]
  183. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  184. public РолиDataTable Роли {
  185. get {
  186. return this.tableРоли;
  187. }
  188. }
  189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  191. [global::System.ComponentModel.Browsable(false)]
  192. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  193. public СменыDataTable Смены {
  194. get {
  195. return this.tableСмены;
  196. }
  197. }
  198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  200. [global::System.ComponentModel.Browsable(false)]
  201. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  202. public СтатусЗаказаDataTable СтатусЗаказа {
  203. get {
  204. return this.tableСтатусЗаказа;
  205. }
  206. }
  207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  209. [global::System.ComponentModel.Browsable(false)]
  210. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  211. public СтатусСотрудникаDataTable СтатусСотрудника {
  212. get {
  213. return this.tableСтатусСотрудника;
  214. }
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  218. [global::System.ComponentModel.Browsable(false)]
  219. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  220. public СтоликиDataTable Столики {
  221. get {
  222. return this.tableСтолики;
  223. }
  224. }
  225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  227. [global::System.ComponentModel.Browsable(false)]
  228. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  229. public RABOCHIEAdminDataTable RABOCHIEAdmin {
  230. get {
  231. return this.tableRABOCHIEAdmin;
  232. }
  233. }
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  236. [global::System.ComponentModel.BrowsableAttribute(true)]
  237. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  238. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  239. get {
  240. return this._schemaSerializationMode;
  241. }
  242. set {
  243. this._schemaSerializationMode = value;
  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.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  249. public new global::System.Data.DataTableCollection Tables {
  250. get {
  251. return base.Tables;
  252. }
  253. }
  254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  256. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  257. public new global::System.Data.DataRelationCollection Relations {
  258. get {
  259. return base.Relations;
  260. }
  261. }
  262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  264. protected override void InitializeDerivedDataSet() {
  265. this.BeginInit();
  266. this.InitClass();
  267. this.EndInit();
  268. }
  269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  271. public override global::System.Data.DataSet Clone() {
  272. lebcafeDataSet cln = ((lebcafeDataSet)(base.Clone()));
  273. cln.InitVars();
  274. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  275. return cln;
  276. }
  277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  279. protected override bool ShouldSerializeTables() {
  280. return false;
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  284. protected override bool ShouldSerializeRelations() {
  285. return false;
  286. }
  287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  289. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  290. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  291. this.Reset();
  292. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  293. ds.ReadXml(reader);
  294. if ((ds.Tables["БлюдаНапитки"] != null)) {
  295. base.Tables.Add(new БлюдаНапиткиDataTable(ds.Tables["БлюдаНапитки"]));
  296. }
  297. if ((ds.Tables["Заказанные блюда"] != null)) {
  298. base.Tables.Add(new Заказанные_блюдаDataTable(ds.Tables["Заказанные блюда"]));
  299. }
  300. if ((ds.Tables["Заказы"] != null)) {
  301. base.Tables.Add(new ЗаказыDataTable(ds.Tables["Заказы"]));
  302. }
  303. if ((ds.Tables["Официанты"] != null)) {
  304. base.Tables.Add(new ОфициантыDataTable(ds.Tables["Официанты"]));
  305. }
  306. if ((ds.Tables["Повара"] != null)) {
  307. base.Tables.Add(new ПовараDataTable(ds.Tables["Повара"]));
  308. }
  309. if ((ds.Tables["Пользователи"] != null)) {
  310. base.Tables.Add(new ПользователиDataTable(ds.Tables["Пользователи"]));
  311. }
  312. if ((ds.Tables["Роли"] != null)) {
  313. base.Tables.Add(new РолиDataTable(ds.Tables["Роли"]));
  314. }
  315. if ((ds.Tables["Смены"] != null)) {
  316. base.Tables.Add(new СменыDataTable(ds.Tables["Смены"]));
  317. }
  318. if ((ds.Tables["СтатусЗаказа"] != null)) {
  319. base.Tables.Add(new СтатусЗаказаDataTable(ds.Tables["СтатусЗаказа"]));
  320. }
  321. if ((ds.Tables["СтатусСотрудника"] != null)) {
  322. base.Tables.Add(new СтатусСотрудникаDataTable(ds.Tables["СтатусСотрудника"]));
  323. }
  324. if ((ds.Tables["Столики"] != null)) {
  325. base.Tables.Add(new СтоликиDataTable(ds.Tables["Столики"]));
  326. }
  327. if ((ds.Tables["RABOCHIEAdmin"] != null)) {
  328. base.Tables.Add(new RABOCHIEAdminDataTable(ds.Tables["RABOCHIEAdmin"]));
  329. }
  330. this.DataSetName = ds.DataSetName;
  331. this.Prefix = ds.Prefix;
  332. this.Namespace = ds.Namespace;
  333. this.Locale = ds.Locale;
  334. this.CaseSensitive = ds.CaseSensitive;
  335. this.EnforceConstraints = ds.EnforceConstraints;
  336. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  337. this.InitVars();
  338. }
  339. else {
  340. this.ReadXml(reader);
  341. this.InitVars();
  342. }
  343. }
  344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  346. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  347. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  348. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  349. stream.Position = 0;
  350. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  351. }
  352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  354. internal void InitVars() {
  355. this.InitVars(true);
  356. }
  357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  359. internal void InitVars(bool initTable) {
  360. this.tableБлюдаНапитки = ((БлюдаНапиткиDataTable)(base.Tables["БлюдаНапитки"]));
  361. if ((initTable == true)) {
  362. if ((this.tableБлюдаНапитки != null)) {
  363. this.tableБлюдаНапитки.InitVars();
  364. }
  365. }
  366. this.tableЗаказанные_блюда = ((Заказанные_блюдаDataTable)(base.Tables["Заказанные блюда"]));
  367. if ((initTable == true)) {
  368. if ((this.tableЗаказанные_блюда != null)) {
  369. this.tableЗаказанные_блюда.InitVars();
  370. }
  371. }
  372. this.tableЗаказы = ((ЗаказыDataTable)(base.Tables["Заказы"]));
  373. if ((initTable == true)) {
  374. if ((this.tableЗаказы != null)) {
  375. this.tableЗаказы.InitVars();
  376. }
  377. }
  378. this.tableОфицианты = ((ОфициантыDataTable)(base.Tables["Официанты"]));
  379. if ((initTable == true)) {
  380. if ((this.tableОфицианты != null)) {
  381. this.tableОфицианты.InitVars();
  382. }
  383. }
  384. this.tableПовара = ((ПовараDataTable)(base.Tables["Повара"]));
  385. if ((initTable == true)) {
  386. if ((this.tableПовара != null)) {
  387. this.tableПовара.InitVars();
  388. }
  389. }
  390. this.tableПользователи = ((ПользователиDataTable)(base.Tables["Пользователи"]));
  391. if ((initTable == true)) {
  392. if ((this.tableПользователи != null)) {
  393. this.tableПользователи.InitVars();
  394. }
  395. }
  396. this.tableРоли = ((РолиDataTable)(base.Tables["Роли"]));
  397. if ((initTable == true)) {
  398. if ((this.tableРоли != null)) {
  399. this.tableРоли.InitVars();
  400. }
  401. }
  402. this.tableСмены = ((СменыDataTable)(base.Tables["Смены"]));
  403. if ((initTable == true)) {
  404. if ((this.tableСмены != null)) {
  405. this.tableСмены.InitVars();
  406. }
  407. }
  408. this.tableСтатусЗаказа = ((СтатусЗаказаDataTable)(base.Tables["СтатусЗаказа"]));
  409. if ((initTable == true)) {
  410. if ((this.tableСтатусЗаказа != null)) {
  411. this.tableСтатусЗаказа.InitVars();
  412. }
  413. }
  414. this.tableСтатусСотрудника = ((СтатусСотрудникаDataTable)(base.Tables["СтатусСотрудника"]));
  415. if ((initTable == true)) {
  416. if ((this.tableСтатусСотрудника != null)) {
  417. this.tableСтатусСотрудника.InitVars();
  418. }
  419. }
  420. this.tableСтолики = ((СтоликиDataTable)(base.Tables["Столики"]));
  421. if ((initTable == true)) {
  422. if ((this.tableСтолики != null)) {
  423. this.tableСтолики.InitVars();
  424. }
  425. }
  426. this.tableRABOCHIEAdmin = ((RABOCHIEAdminDataTable)(base.Tables["RABOCHIEAdmin"]));
  427. if ((initTable == true)) {
  428. if ((this.tableRABOCHIEAdmin != null)) {
  429. this.tableRABOCHIEAdmin.InitVars();
  430. }
  431. }
  432. this.relationFK_Заказанные_блюда_БлюдаНапитки = this.Relations["FK_Заказанные блюда_БлюдаНапитки"];
  433. this.relationFK_Заказанные_блюда_Заказы = this.Relations["FK_Заказанные блюда_Заказы"];
  434. this.relationFK_Заказы_СтатусЗаказа = this.Relations["FK_Заказы_СтатусЗаказа"];
  435. this.relationFK_Заказы_Столики = this.Relations["FK_Заказы_Столики"];
  436. this.relationFK_Пользователи_Официанты = this.Relations["FK_Пользователи_Официанты"];
  437. this.relationFK_Пользователи_Повара = this.Relations["FK_Пользователи_Повара"];
  438. this.relationFK_Пользователи_Роли1 = this.Relations["FK_Пользователи_Роли1"];
  439. this.relationFK_Пользователи_СтатусСотрудника = this.Relations["FK_Пользователи_СтатусСотрудника"];
  440. this.relationFK_Смены_Официанты = this.Relations["FK_Смены_Официанты"];
  441. this.relationFK_Смены_Повара = this.Relations["FK_Смены_Повара"];
  442. this.relationFK_Официанты_Пользователи = this.Relations["FK_Официанты_Пользователи"];
  443. this.relationFK_Повара_Пользователи = this.Relations["FK_Повара_Пользователи"];
  444. this.relationFK_Заказы_Смены = this.Relations["FK_Заказы_Смены"];
  445. }
  446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  448. private void InitClass() {
  449. this.DataSetName = "lebcafeDataSet";
  450. this.Prefix = "";
  451. this.Namespace = "http://tempuri.org/lebcafeDataSet.xsd";
  452. this.EnforceConstraints = true;
  453. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  454. this.tableБлюдаНапитки = new БлюдаНапиткиDataTable();
  455. base.Tables.Add(this.tableБлюдаНапитки);
  456. this.tableЗаказанные_блюда = new Заказанные_блюдаDataTable();
  457. base.Tables.Add(this.tableЗаказанные_блюда);
  458. this.tableЗаказы = new ЗаказыDataTable();
  459. base.Tables.Add(this.tableЗаказы);
  460. this.tableОфицианты = new ОфициантыDataTable();
  461. base.Tables.Add(this.tableОфицианты);
  462. this.tableПовара = new ПовараDataTable();
  463. base.Tables.Add(this.tableПовара);
  464. this.tableПользователи = new ПользователиDataTable();
  465. base.Tables.Add(this.tableПользователи);
  466. this.tableРоли = new РолиDataTable();
  467. base.Tables.Add(this.tableРоли);
  468. this.tableСмены = new СменыDataTable();
  469. base.Tables.Add(this.tableСмены);
  470. this.tableСтатусЗаказа = new СтатусЗаказаDataTable();
  471. base.Tables.Add(this.tableСтатусЗаказа);
  472. this.tableСтатусСотрудника = new СтатусСотрудникаDataTable();
  473. base.Tables.Add(this.tableСтатусСотрудника);
  474. this.tableСтолики = new СтоликиDataTable();
  475. base.Tables.Add(this.tableСтолики);
  476. this.tableRABOCHIEAdmin = new RABOCHIEAdminDataTable();
  477. base.Tables.Add(this.tableRABOCHIEAdmin);
  478. this.relationFK_Заказанные_блюда_БлюдаНапитки = new global::System.Data.DataRelation("FK_Заказанные блюда_БлюдаНапитки", new global::System.Data.DataColumn[] {
  479. this.tableБлюдаНапитки.ID_БлюдаНапиткаColumn}, new global::System.Data.DataColumn[] {
  480. this.tableЗаказанные_блюда.ID_БлюдаColumn}, false);
  481. this.Relations.Add(this.relationFK_Заказанные_блюда_БлюдаНапитки);
  482. this.relationFK_Заказанные_блюда_Заказы = new global::System.Data.DataRelation("FK_Заказанные блюда_Заказы", new global::System.Data.DataColumn[] {
  483. this.tableЗаказы.ID_ЗаказаColumn}, new global::System.Data.DataColumn[] {
  484. this.tableЗаказанные_блюда.ID_ЗаказаColumn}, false);
  485. this.Relations.Add(this.relationFK_Заказанные_блюда_Заказы);
  486. this.relationFK_Заказы_СтатусЗаказа = new global::System.Data.DataRelation("FK_Заказы_СтатусЗаказа", new global::System.Data.DataColumn[] {
  487. this.tableСтатусЗаказа.ID_СтатусаЗаказаColumn}, new global::System.Data.DataColumn[] {
  488. this.tableЗаказы.ID_СтатусаColumn}, false);
  489. this.Relations.Add(this.relationFK_Заказы_СтатусЗаказа);
  490. this.relationFK_Заказы_Столики = new global::System.Data.DataRelation("FK_Заказы_Столики", new global::System.Data.DataColumn[] {
  491. this.tableСтолики.ID_СтоликаColumn}, new global::System.Data.DataColumn[] {
  492. this.tableЗаказы.ID_СтоликаColumn}, false);
  493. this.Relations.Add(this.relationFK_Заказы_Столики);
  494. this.relationFK_Пользователи_Официанты = new global::System.Data.DataRelation("FK_Пользователи_Официанты", new global::System.Data.DataColumn[] {
  495. this.tableОфицианты.ID_ОфициантаColumn}, new global::System.Data.DataColumn[] {
  496. this.tableПользователи.ID_ПользователяColumn}, false);
  497. this.Relations.Add(this.relationFK_Пользователи_Официанты);
  498. this.relationFK_Пользователи_Повара = new global::System.Data.DataRelation("FK_Пользователи_Повара", new global::System.Data.DataColumn[] {
  499. this.tableПовара.ID_ПовараColumn}, new global::System.Data.DataColumn[] {
  500. this.tableПользователи.ID_ПользователяColumn}, false);
  501. this.Relations.Add(this.relationFK_Пользователи_Повара);
  502. this.relationFK_Пользователи_Роли1 = new global::System.Data.DataRelation("FK_Пользователи_Роли1", new global::System.Data.DataColumn[] {
  503. this.tableРоли.id_РолиColumn}, new global::System.Data.DataColumn[] {
  504. this.tableПользователи.ID_РолиColumn}, false);
  505. this.Relations.Add(this.relationFK_Пользователи_Роли1);
  506. this.relationFK_Пользователи_СтатусСотрудника = new global::System.Data.DataRelation("FK_Пользователи_СтатусСотрудника", new global::System.Data.DataColumn[] {
  507. this.tableСтатусСотрудника.ID_СтатусаColumn}, new global::System.Data.DataColumn[] {
  508. this.tableПользователи.ID_СтатусаColumn}, false);
  509. this.Relations.Add(this.relationFK_Пользователи_СтатусСотрудника);
  510. this.relationFK_Смены_Официанты = new global::System.Data.DataRelation("FK_Смены_Официанты", new global::System.Data.DataColumn[] {
  511. this.tableОфицианты.ID_ОфициантаColumn}, new global::System.Data.DataColumn[] {
  512. this.tableСмены.id_ОфициантаColumn}, false);
  513. this.Relations.Add(this.relationFK_Смены_Официанты);
  514. this.relationFK_Смены_Повара = new global::System.Data.DataRelation("FK_Смены_Повара", new global::System.Data.DataColumn[] {
  515. this.tableПовара.ID_ПовараColumn}, new global::System.Data.DataColumn[] {
  516. this.tableСмены.id_ПовараColumn}, false);
  517. this.Relations.Add(this.relationFK_Смены_Повара);
  518. this.relationFK_Официанты_Пользователи = new global::System.Data.DataRelation("FK_Официанты_Пользователи", new global::System.Data.DataColumn[] {
  519. this.tableПользователи.ID_ПользователяColumn}, new global::System.Data.DataColumn[] {
  520. this.tableОфицианты.ID_ОфициантаColumn}, false);
  521. this.Relations.Add(this.relationFK_Официанты_Пользователи);
  522. this.relationFK_Повара_Пользователи = new global::System.Data.DataRelation("FK_Повара_Пользователи", new global::System.Data.DataColumn[] {
  523. this.tableПользователи.ID_ПользователяColumn}, new global::System.Data.DataColumn[] {
  524. this.tableПовара.ID_ПовараColumn}, false);
  525. this.Relations.Add(this.relationFK_Повара_Пользователи);
  526. this.relationFK_Заказы_Смены = new global::System.Data.DataRelation("FK_Заказы_Смены", new global::System.Data.DataColumn[] {
  527. this.tableСмены.ID_СменыColumn}, new global::System.Data.DataColumn[] {
  528. this.tableЗаказы.ID_СменыColumn}, false);
  529. this.Relations.Add(this.relationFK_Заказы_Смены);
  530. }
  531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  533. private bool ShouldSerializeБлюдаНапитки() {
  534. return false;
  535. }
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  538. private bool ShouldSerializeЗаказанные_блюда() {
  539. return false;
  540. }
  541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  543. private bool ShouldSerializeЗаказы() {
  544. return false;
  545. }
  546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  548. private bool ShouldSerializeОфицианты() {
  549. return false;
  550. }
  551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  553. private bool ShouldSerializeПовара() {
  554. return false;
  555. }
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  558. private bool ShouldSerializeПользователи() {
  559. return false;
  560. }
  561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  563. private bool ShouldSerializeРоли() {
  564. return false;
  565. }
  566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  568. private bool ShouldSerializeСмены() {
  569. return false;
  570. }
  571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  573. private bool ShouldSerializeСтатусЗаказа() {
  574. return false;
  575. }
  576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  578. private bool ShouldSerializeСтатусСотрудника() {
  579. return false;
  580. }
  581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  583. private bool ShouldSerializeСтолики() {
  584. return false;
  585. }
  586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  588. private bool ShouldSerializeRABOCHIEAdmin() {
  589. return false;
  590. }
  591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  593. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  594. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  595. this.InitVars();
  596. }
  597. }
  598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  600. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  601. lebcafeDataSet ds = new lebcafeDataSet();
  602. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  603. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  604. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  605. any.Namespace = ds.Namespace;
  606. sequence.Items.Add(any);
  607. type.Particle = sequence;
  608. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  609. if (xs.Contains(dsSchema.TargetNamespace)) {
  610. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  611. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  612. try {
  613. global::System.Xml.Schema.XmlSchema schema = null;
  614. dsSchema.Write(s1);
  615. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  616. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  617. s2.SetLength(0);
  618. schema.Write(s2);
  619. if ((s1.Length == s2.Length)) {
  620. s1.Position = 0;
  621. s2.Position = 0;
  622. for (; ((s1.Position != s1.Length)
  623. && (s1.ReadByte() == s2.ReadByte())); ) {
  624. ;
  625. }
  626. if ((s1.Position == s1.Length)) {
  627. return type;
  628. }
  629. }
  630. }
  631. }
  632. finally {
  633. if ((s1 != null)) {
  634. s1.Close();
  635. }
  636. if ((s2 != null)) {
  637. s2.Close();
  638. }
  639. }
  640. }
  641. xs.Add(dsSchema);
  642. return type;
  643. }
  644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  645. public delegate void БлюдаНапиткиRowChangeEventHandler(object sender, БлюдаНапиткиRowChangeEvent e);
  646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  647. public delegate void Заказанные_блюдаRowChangeEventHandler(object sender, Заказанные_блюдаRowChangeEvent e);
  648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  649. public delegate void ЗаказыRowChangeEventHandler(object sender, ЗаказыRowChangeEvent e);
  650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  651. public delegate void ОфициантыRowChangeEventHandler(object sender, ОфициантыRowChangeEvent e);
  652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  653. public delegate void ПовараRowChangeEventHandler(object sender, ПовараRowChangeEvent e);
  654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  655. public delegate void ПользователиRowChangeEventHandler(object sender, ПользователиRowChangeEvent e);
  656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  657. public delegate void РолиRowChangeEventHandler(object sender, РолиRowChangeEvent e);
  658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  659. public delegate void СменыRowChangeEventHandler(object sender, СменыRowChangeEvent e);
  660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  661. public delegate void СтатусЗаказаRowChangeEventHandler(object sender, СтатусЗаказаRowChangeEvent e);
  662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  663. public delegate void СтатусСотрудникаRowChangeEventHandler(object sender, СтатусСотрудникаRowChangeEvent e);
  664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  665. public delegate void СтоликиRowChangeEventHandler(object sender, СтоликиRowChangeEvent e);
  666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  667. public delegate void RABOCHIEAdminRowChangeEventHandler(object sender, RABOCHIEAdminRowChangeEvent e);
  668. /// <summary>
  669. ///Represents the strongly named DataTable class.
  670. ///</summary>
  671. [global::System.Serializable()]
  672. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  673. public partial class БлюдаНапиткиDataTable : global::System.Data.TypedTableBase<БлюдаНапиткиRow> {
  674. private global::System.Data.DataColumn columnID_БлюдаНапитка;
  675. private global::System.Data.DataColumn columnНазвание;
  676. private global::System.Data.DataColumn columnЦена;
  677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  679. public БлюдаНапиткиDataTable() {
  680. this.TableName = "БлюдаНапитки";
  681. this.BeginInit();
  682. this.InitClass();
  683. this.EndInit();
  684. }
  685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  687. internal БлюдаНапиткиDataTable(global::System.Data.DataTable table) {
  688. this.TableName = table.TableName;
  689. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  690. this.CaseSensitive = table.CaseSensitive;
  691. }
  692. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  693. this.Locale = table.Locale;
  694. }
  695. if ((table.Namespace != table.DataSet.Namespace)) {
  696. this.Namespace = table.Namespace;
  697. }
  698. this.Prefix = table.Prefix;
  699. this.MinimumCapacity = table.MinimumCapacity;
  700. }
  701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  703. protected БлюдаНапиткиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  704. base(info, context) {
  705. this.InitVars();
  706. }
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. public global::System.Data.DataColumn ID_БлюдаНапиткаColumn {
  710. get {
  711. return this.columnID_БлюдаНапитка;
  712. }
  713. }
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  716. public global::System.Data.DataColumn НазваниеColumn {
  717. get {
  718. return this.columnНазвание;
  719. }
  720. }
  721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  723. public global::System.Data.DataColumn ЦенаColumn {
  724. get {
  725. return this.columnЦена;
  726. }
  727. }
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  730. [global::System.ComponentModel.Browsable(false)]
  731. public int Count {
  732. get {
  733. return this.Rows.Count;
  734. }
  735. }
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  738. public БлюдаНапиткиRow this[int index] {
  739. get {
  740. return ((БлюдаНапиткиRow)(this.Rows[index]));
  741. }
  742. }
  743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  744. public event БлюдаНапиткиRowChangeEventHandler БлюдаНапиткиRowChanging;
  745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  746. public event БлюдаНапиткиRowChangeEventHandler БлюдаНапиткиRowChanged;
  747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  748. public event БлюдаНапиткиRowChangeEventHandler БлюдаНапиткиRowDeleting;
  749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  750. public event БлюдаНапиткиRowChangeEventHandler БлюдаНапиткиRowDeleted;
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  753. public void AddБлюдаНапиткиRow(БлюдаНапиткиRow row) {
  754. this.Rows.Add(row);
  755. }
  756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  758. public БлюдаНапиткиRow AddБлюдаНапиткиRow(int ID_БлюдаНапитка, string Название, int Цена) {
  759. БлюдаНапиткиRow rowБлюдаНапиткиRow = ((БлюдаНапиткиRow)(this.NewRow()));
  760. object[] columnValuesArray = new object[] {
  761. ID_БлюдаНапитка,
  762. Название,
  763. Цена};
  764. rowБлюдаНапиткиRow.ItemArray = columnValuesArray;
  765. this.Rows.Add(rowБлюдаНапиткиRow);
  766. return rowБлюдаНапиткиRow;
  767. }
  768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  770. public БлюдаНапиткиRow FindByID_БлюдаНапитка(int ID_БлюдаНапитка) {
  771. return ((БлюдаНапиткиRow)(this.Rows.Find(new object[] {
  772. ID_БлюдаНапитка})));
  773. }
  774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  776. public override global::System.Data.DataTable Clone() {
  777. БлюдаНапиткиDataTable cln = ((БлюдаНапиткиDataTable)(base.Clone()));
  778. cln.InitVars();
  779. return cln;
  780. }
  781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  783. protected override global::System.Data.DataTable CreateInstance() {
  784. return new БлюдаНапиткиDataTable();
  785. }
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  788. internal void InitVars() {
  789. this.columnID_БлюдаНапитка = base.Columns["ID_БлюдаНапитка"];
  790. this.columnНазвание = base.Columns["Название"];
  791. this.columnЦена = base.Columns["Цена"];
  792. }
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  795. private void InitClass() {
  796. this.columnID_БлюдаНапитка = new global::System.Data.DataColumn("ID_БлюдаНапитка", typeof(int), null, global::System.Data.MappingType.Element);
  797. base.Columns.Add(this.columnID_БлюдаНапитка);
  798. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  799. base.Columns.Add(this.columnНазвание);
  800. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(int), null, global::System.Data.MappingType.Element);
  801. base.Columns.Add(this.columnЦена);
  802. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  803. this.columnID_БлюдаНапитка}, true));
  804. this.columnID_БлюдаНапитка.AllowDBNull = false;
  805. this.columnID_БлюдаНапитка.Unique = true;
  806. this.columnНазвание.MaxLength = 50;
  807. }
  808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  810. public БлюдаНапиткиRow NewБлюдаНапиткиRow() {
  811. return ((БлюдаНапиткиRow)(this.NewRow()));
  812. }
  813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  815. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  816. return new БлюдаНапиткиRow(builder);
  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.Type GetRowType() {
  821. return typeof(БлюдаНапиткиRow);
  822. }
  823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  825. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  826. base.OnRowChanged(e);
  827. if ((this.БлюдаНапиткиRowChanged != null)) {
  828. this.БлюдаНапиткиRowChanged(this, new БлюдаНапиткиRowChangeEvent(((БлюдаНапиткиRow)(e.Row)), e.Action));
  829. }
  830. }
  831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  833. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  834. base.OnRowChanging(e);
  835. if ((this.БлюдаНапиткиRowChanging != null)) {
  836. this.БлюдаНапиткиRowChanging(this, new БлюдаНапиткиRowChangeEvent(((БлюдаНапиткиRow)(e.Row)), e.Action));
  837. }
  838. }
  839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  841. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  842. base.OnRowDeleted(e);
  843. if ((this.БлюдаНапиткиRowDeleted != null)) {
  844. this.БлюдаНапиткиRowDeleted(this, new БлюдаНапиткиRowChangeEvent(((БлюдаНапиткиRow)(e.Row)), e.Action));
  845. }
  846. }
  847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  849. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  850. base.OnRowDeleting(e);
  851. if ((this.БлюдаНапиткиRowDeleting != null)) {
  852. this.БлюдаНапиткиRowDeleting(this, new БлюдаНапиткиRowChangeEvent(((БлюдаНапиткиRow)(e.Row)), e.Action));
  853. }
  854. }
  855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  857. public void RemoveБлюдаНапиткиRow(БлюдаНапиткиRow row) {
  858. this.Rows.Remove(row);
  859. }
  860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  862. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  863. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  864. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  865. lebcafeDataSet ds = new lebcafeDataSet();
  866. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  867. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  868. any1.MinOccurs = new decimal(0);
  869. any1.MaxOccurs = decimal.MaxValue;
  870. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  871. sequence.Items.Add(any1);
  872. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  873. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  874. any2.MinOccurs = new decimal(1);
  875. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  876. sequence.Items.Add(any2);
  877. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  878. attribute1.Name = "namespace";
  879. attribute1.FixedValue = ds.Namespace;
  880. type.Attributes.Add(attribute1);
  881. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  882. attribute2.Name = "tableTypeName";
  883. attribute2.FixedValue = "БлюдаНапиткиDataTable";
  884. type.Attributes.Add(attribute2);
  885. type.Particle = sequence;
  886. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  887. if (xs.Contains(dsSchema.TargetNamespace)) {
  888. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  889. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  890. try {
  891. global::System.Xml.Schema.XmlSchema schema = null;
  892. dsSchema.Write(s1);
  893. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  894. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  895. s2.SetLength(0);
  896. schema.Write(s2);
  897. if ((s1.Length == s2.Length)) {
  898. s1.Position = 0;
  899. s2.Position = 0;
  900. for (; ((s1.Position != s1.Length)
  901. && (s1.ReadByte() == s2.ReadByte())); ) {
  902. ;
  903. }
  904. if ((s1.Position == s1.Length)) {
  905. return type;
  906. }
  907. }
  908. }
  909. }
  910. finally {
  911. if ((s1 != null)) {
  912. s1.Close();
  913. }
  914. if ((s2 != null)) {
  915. s2.Close();
  916. }
  917. }
  918. }
  919. xs.Add(dsSchema);
  920. return type;
  921. }
  922. }
  923. /// <summary>
  924. ///Represents the strongly named DataTable class.
  925. ///</summary>
  926. [global::System.Serializable()]
  927. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  928. public partial class Заказанные_блюдаDataTable : global::System.Data.TypedTableBase<Заказанные_блюдаRow> {
  929. private global::System.Data.DataColumn columnID_Заказа;
  930. private global::System.Data.DataColumn columnID_Блюда;
  931. private global::System.Data.DataColumn columnКоличество;
  932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  934. public Заказанные_блюдаDataTable() {
  935. this.TableName = "Заказанные блюда";
  936. this.BeginInit();
  937. this.InitClass();
  938. this.EndInit();
  939. }
  940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  942. internal Заказанные_блюдаDataTable(global::System.Data.DataTable table) {
  943. this.TableName = table.TableName;
  944. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  945. this.CaseSensitive = table.CaseSensitive;
  946. }
  947. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  948. this.Locale = table.Locale;
  949. }
  950. if ((table.Namespace != table.DataSet.Namespace)) {
  951. this.Namespace = table.Namespace;
  952. }
  953. this.Prefix = table.Prefix;
  954. this.MinimumCapacity = table.MinimumCapacity;
  955. }
  956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  958. protected Заказанные_блюдаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  959. base(info, context) {
  960. this.InitVars();
  961. }
  962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  964. public global::System.Data.DataColumn ID_ЗаказаColumn {
  965. get {
  966. return this.columnID_Заказа;
  967. }
  968. }
  969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  971. public global::System.Data.DataColumn ID_БлюдаColumn {
  972. get {
  973. return this.columnID_Блюда;
  974. }
  975. }
  976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  978. public global::System.Data.DataColumn КоличествоColumn {
  979. get {
  980. return this.columnКоличество;
  981. }
  982. }
  983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  985. [global::System.ComponentModel.Browsable(false)]
  986. public int Count {
  987. get {
  988. return this.Rows.Count;
  989. }
  990. }
  991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  993. public Заказанные_блюдаRow this[int index] {
  994. get {
  995. return ((Заказанные_блюдаRow)(this.Rows[index]));
  996. }
  997. }
  998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  999. public event Заказанные_блюдаRowChangeEventHandler Заказанные_блюдаRowChanging;
  1000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1001. public event Заказанные_блюдаRowChangeEventHandler Заказанные_блюдаRowChanged;
  1002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1003. public event Заказанные_блюдаRowChangeEventHandler Заказанные_блюдаRowDeleting;
  1004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1005. public event Заказанные_блюдаRowChangeEventHandler Заказанные_блюдаRowDeleted;
  1006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1008. public void AddЗаказанные_блюдаRow(Заказанные_блюдаRow row) {
  1009. this.Rows.Add(row);
  1010. }
  1011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1013. public Заказанные_блюдаRow AddЗаказанные_блюдаRow(ЗаказыRow parentЗаказыRowByFK_Заказанные_блюда_Заказы, БлюдаНапиткиRow parentБлюдаНапиткиRowByFK_Заказанные_блюда_БлюдаНапитки, int Количество) {
  1014. Заказанные_блюдаRow rowЗаказанные_блюдаRow = ((Заказанные_блюдаRow)(this.NewRow()));
  1015. object[] columnValuesArray = new object[] {
  1016. null,
  1017. null,
  1018. Количество};
  1019. if ((parentЗаказыRowByFK_Заказанные_блюда_Заказы != null)) {
  1020. columnValuesArray[0] = parentЗаказыRowByFK_Заказанные_блюда_Заказы[0];
  1021. }
  1022. if ((parentБлюдаНапиткиRowByFK_Заказанные_блюда_БлюдаНапитки != null)) {
  1023. columnValuesArray[1] = parentБлюдаНапиткиRowByFK_Заказанные_блюда_БлюдаНапитки[0];
  1024. }
  1025. rowЗаказанные_блюдаRow.ItemArray = columnValuesArray;
  1026. this.Rows.Add(rowЗаказанные_блюдаRow);
  1027. return rowЗаказанные_блюдаRow;
  1028. }
  1029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1031. public override global::System.Data.DataTable Clone() {
  1032. Заказанные_блюдаDataTable cln = ((Заказанные_блюдаDataTable)(base.Clone()));
  1033. cln.InitVars();
  1034. return cln;
  1035. }
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1038. protected override global::System.Data.DataTable CreateInstance() {
  1039. return new Заказанные_блюдаDataTable();
  1040. }
  1041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1043. internal void InitVars() {
  1044. this.columnID_Заказа = base.Columns["ID_Заказа"];
  1045. this.columnID_Блюда = base.Columns["ID_Блюда"];
  1046. this.columnКоличество = base.Columns["Количество"];
  1047. }
  1048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1050. private void InitClass() {
  1051. this.columnID_Заказа = new global::System.Data.DataColumn("ID_Заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1052. base.Columns.Add(this.columnID_Заказа);
  1053. this.columnID_Блюда = new global::System.Data.DataColumn("ID_Блюда", typeof(int), null, global::System.Data.MappingType.Element);
  1054. base.Columns.Add(this.columnID_Блюда);
  1055. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  1056. base.Columns.Add(this.columnКоличество);
  1057. this.columnID_Заказа.AllowDBNull = false;
  1058. }
  1059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1061. public Заказанные_блюдаRow NewЗаказанные_блюдаRow() {
  1062. return ((Заказанные_блюдаRow)(this.NewRow()));
  1063. }
  1064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1066. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1067. return new Заказанные_блюдаRow(builder);
  1068. }
  1069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1071. protected override global::System.Type GetRowType() {
  1072. return typeof(Заказанные_блюдаRow);
  1073. }
  1074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1076. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1077. base.OnRowChanged(e);
  1078. if ((this.Заказанные_блюдаRowChanged != null)) {
  1079. this.Заказанные_блюдаRowChanged(this, new Заказанные_блюдаRowChangeEvent(((Заказанные_блюдаRow)(e.Row)), e.Action));
  1080. }
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1084. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1085. base.OnRowChanging(e);
  1086. if ((this.Заказанные_блюдаRowChanging != null)) {
  1087. this.Заказанные_блюдаRowChanging(this, new Заказанные_блюдаRowChangeEvent(((Заказанные_блюдаRow)(e.Row)), e.Action));
  1088. }
  1089. }
  1090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1092. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1093. base.OnRowDeleted(e);
  1094. if ((this.Заказанные_блюдаRowDeleted != null)) {
  1095. this.Заказанные_блюдаRowDeleted(this, new Заказанные_блюдаRowChangeEvent(((Заказанные_блюдаRow)(e.Row)), e.Action));
  1096. }
  1097. }
  1098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1100. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1101. base.OnRowDeleting(e);
  1102. if ((this.Заказанные_блюдаRowDeleting != null)) {
  1103. this.Заказанные_блюдаRowDeleting(this, new Заказанные_блюдаRowChangeEvent(((Заказанные_блюдаRow)(e.Row)), e.Action));
  1104. }
  1105. }
  1106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1108. public void RemoveЗаказанные_блюдаRow(Заказанные_блюдаRow row) {
  1109. this.Rows.Remove(row);
  1110. }
  1111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1113. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1114. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1115. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1116. lebcafeDataSet ds = new lebcafeDataSet();
  1117. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1118. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1119. any1.MinOccurs = new decimal(0);
  1120. any1.MaxOccurs = decimal.MaxValue;
  1121. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1122. sequence.Items.Add(any1);
  1123. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1124. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1125. any2.MinOccurs = new decimal(1);
  1126. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1127. sequence.Items.Add(any2);
  1128. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1129. attribute1.Name = "namespace";
  1130. attribute1.FixedValue = ds.Namespace;
  1131. type.Attributes.Add(attribute1);
  1132. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1133. attribute2.Name = "tableTypeName";
  1134. attribute2.FixedValue = "Заказанные_блюдаDataTable";
  1135. type.Attributes.Add(attribute2);
  1136. type.Particle = sequence;
  1137. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1138. if (xs.Contains(dsSchema.TargetNamespace)) {
  1139. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1140. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1141. try {
  1142. global::System.Xml.Schema.XmlSchema schema = null;
  1143. dsSchema.Write(s1);
  1144. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1145. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1146. s2.SetLength(0);
  1147. schema.Write(s2);
  1148. if ((s1.Length == s2.Length)) {
  1149. s1.Position = 0;
  1150. s2.Position = 0;
  1151. for (; ((s1.Position != s1.Length)
  1152. && (s1.ReadByte() == s2.ReadByte())); ) {
  1153. ;
  1154. }
  1155. if ((s1.Position == s1.Length)) {
  1156. return type;
  1157. }
  1158. }
  1159. }
  1160. }
  1161. finally {
  1162. if ((s1 != null)) {
  1163. s1.Close();
  1164. }
  1165. if ((s2 != null)) {
  1166. s2.Close();
  1167. }
  1168. }
  1169. }
  1170. xs.Add(dsSchema);
  1171. return type;
  1172. }
  1173. }
  1174. /// <summary>
  1175. ///Represents the strongly named DataTable class.
  1176. ///</summary>
  1177. [global::System.Serializable()]
  1178. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1179. public partial class ЗаказыDataTable : global::System.Data.TypedTableBase<ЗаказыRow> {
  1180. private global::System.Data.DataColumn columnID_Заказа;
  1181. private global::System.Data.DataColumn columnID_Столика;
  1182. private global::System.Data.DataColumn columnКоличествоКлиентов;
  1183. private global::System.Data.DataColumn columnID_Статуса;
  1184. private global::System.Data.DataColumn columnДатаЗаказа;
  1185. private global::System.Data.DataColumn columnСуммаЗаказа;
  1186. private global::System.Data.DataColumn columnID_Смены;
  1187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1189. public ЗаказыDataTable() {
  1190. this.TableName = "Заказы";
  1191. this.BeginInit();
  1192. this.InitClass();
  1193. this.EndInit();
  1194. }
  1195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1197. internal ЗаказыDataTable(global::System.Data.DataTable table) {
  1198. this.TableName = table.TableName;
  1199. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1200. this.CaseSensitive = table.CaseSensitive;
  1201. }
  1202. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1203. this.Locale = table.Locale;
  1204. }
  1205. if ((table.Namespace != table.DataSet.Namespace)) {
  1206. this.Namespace = table.Namespace;
  1207. }
  1208. this.Prefix = table.Prefix;
  1209. this.MinimumCapacity = table.MinimumCapacity;
  1210. }
  1211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1213. protected ЗаказыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1214. base(info, context) {
  1215. this.InitVars();
  1216. }
  1217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1219. public global::System.Data.DataColumn ID_ЗаказаColumn {
  1220. get {
  1221. return this.columnID_Заказа;
  1222. }
  1223. }
  1224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1226. public global::System.Data.DataColumn ID_СтоликаColumn {
  1227. get {
  1228. return this.columnID_Столика;
  1229. }
  1230. }
  1231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1233. public global::System.Data.DataColumn КоличествоКлиентовColumn {
  1234. get {
  1235. return this.columnКоличествоКлиентов;
  1236. }
  1237. }
  1238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1240. public global::System.Data.DataColumn ID_СтатусаColumn {
  1241. get {
  1242. return this.columnID_Статуса;
  1243. }
  1244. }
  1245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1247. public global::System.Data.DataColumn ДатаЗаказаColumn {
  1248. get {
  1249. return this.columnДатаЗаказа;
  1250. }
  1251. }
  1252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1254. public global::System.Data.DataColumn СуммаЗаказаColumn {
  1255. get {
  1256. return this.columnСуммаЗаказа;
  1257. }
  1258. }
  1259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1261. public global::System.Data.DataColumn ID_СменыColumn {
  1262. get {
  1263. return this.columnID_Смены;
  1264. }
  1265. }
  1266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1268. [global::System.ComponentModel.Browsable(false)]
  1269. public int Count {
  1270. get {
  1271. return this.Rows.Count;
  1272. }
  1273. }
  1274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1276. public ЗаказыRow this[int index] {
  1277. get {
  1278. return ((ЗаказыRow)(this.Rows[index]));
  1279. }
  1280. }
  1281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1282. public event ЗаказыRowChangeEventHandler ЗаказыRowChanging;
  1283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1284. public event ЗаказыRowChangeEventHandler ЗаказыRowChanged;
  1285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1286. public event ЗаказыRowChangeEventHandler ЗаказыRowDeleting;
  1287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1288. public event ЗаказыRowChangeEventHandler ЗаказыRowDeleted;
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1291. public void AddЗаказыRow(ЗаказыRow row) {
  1292. this.Rows.Add(row);
  1293. }
  1294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1296. public ЗаказыRow AddЗаказыRow(int ID_Заказа, СтоликиRow parentСтоликиRowByFK_Заказы_Столики, int КоличествоКлиентов, СтатусЗаказаRow parentСтатусЗаказаRowByFK_Заказы_СтатусЗаказа, System.DateTime ДатаЗаказа, decimal СуммаЗаказа, СменыRow parentСменыRowByFK_Заказы_Смены) {
  1297. ЗаказыRow rowЗаказыRow = ((ЗаказыRow)(this.NewRow()));
  1298. object[] columnValuesArray = new object[] {
  1299. ID_Заказа,
  1300. null,
  1301. КоличествоКлиентов,
  1302. null,
  1303. ДатаЗаказа,
  1304. СуммаЗаказа,
  1305. null};
  1306. if ((parentСтоликиRowByFK_Заказы_Столики != null)) {
  1307. columnValuesArray[1] = parentСтоликиRowByFK_Заказы_Столики[0];
  1308. }
  1309. if ((parentСтатусЗаказаRowByFK_Заказы_СтатусЗаказа != null)) {
  1310. columnValuesArray[3] = parentСтатусЗаказаRowByFK_Заказы_СтатусЗаказа[0];
  1311. }
  1312. if ((parentСменыRowByFK_Заказы_Смены != null)) {
  1313. columnValuesArray[6] = parentСменыRowByFK_Заказы_Смены[0];
  1314. }
  1315. rowЗаказыRow.ItemArray = columnValuesArray;
  1316. this.Rows.Add(rowЗаказыRow);
  1317. return rowЗаказыRow;
  1318. }
  1319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1321. public ЗаказыRow FindByID_Заказа(int ID_Заказа) {
  1322. return ((ЗаказыRow)(this.Rows.Find(new object[] {
  1323. ID_Заказа})));
  1324. }
  1325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1327. public override global::System.Data.DataTable Clone() {
  1328. ЗаказыDataTable cln = ((ЗаказыDataTable)(base.Clone()));
  1329. cln.InitVars();
  1330. return cln;
  1331. }
  1332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1334. protected override global::System.Data.DataTable CreateInstance() {
  1335. return new ЗаказыDataTable();
  1336. }
  1337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1339. internal void InitVars() {
  1340. this.columnID_Заказа = base.Columns["ID_Заказа"];
  1341. this.columnID_Столика = base.Columns["ID_Столика"];
  1342. this.columnКоличествоКлиентов = base.Columns["КоличествоКлиентов"];
  1343. this.columnID_Статуса = base.Columns["ID_Статуса"];
  1344. this.columnДатаЗаказа = base.Columns["ДатаЗаказа"];
  1345. this.columnСуммаЗаказа = base.Columns["СуммаЗаказа"];
  1346. this.columnID_Смены = base.Columns["ID_Смены"];
  1347. }
  1348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1350. private void InitClass() {
  1351. this.columnID_Заказа = new global::System.Data.DataColumn("ID_Заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1352. base.Columns.Add(this.columnID_Заказа);
  1353. this.columnID_Столика = new global::System.Data.DataColumn("ID_Столика", typeof(int), null, global::System.Data.MappingType.Element);
  1354. base.Columns.Add(this.columnID_Столика);
  1355. this.columnКоличествоКлиентов = new global::System.Data.DataColumn("КоличествоКлиентов", typeof(int), null, global::System.Data.MappingType.Element);
  1356. base.Columns.Add(this.columnКоличествоКлиентов);
  1357. this.columnID_Статуса = new global::System.Data.DataColumn("ID_Статуса", typeof(int), null, global::System.Data.MappingType.Element);
  1358. base.Columns.Add(this.columnID_Статуса);
  1359. this.columnДатаЗаказа = new global::System.Data.DataColumn("ДатаЗаказа", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1360. base.Columns.Add(this.columnДатаЗаказа);
  1361. this.columnСуммаЗаказа = new global::System.Data.DataColumn("СуммаЗаказа", typeof(decimal), null, global::System.Data.MappingType.Element);
  1362. base.Columns.Add(this.columnСуммаЗаказа);
  1363. this.columnID_Смены = new global::System.Data.DataColumn("ID_Смены", typeof(int), null, global::System.Data.MappingType.Element);
  1364. base.Columns.Add(this.columnID_Смены);
  1365. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1366. this.columnID_Заказа}, true));
  1367. this.columnID_Заказа.AllowDBNull = false;
  1368. this.columnID_Заказа.Unique = true;
  1369. }
  1370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1372. public ЗаказыRow NewЗаказыRow() {
  1373. return ((ЗаказыRow)(this.NewRow()));
  1374. }
  1375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1377. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1378. return new ЗаказыRow(builder);
  1379. }
  1380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1382. protected override global::System.Type GetRowType() {
  1383. return typeof(ЗаказыRow);
  1384. }
  1385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1387. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1388. base.OnRowChanged(e);
  1389. if ((this.ЗаказыRowChanged != null)) {
  1390. this.ЗаказыRowChanged(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1391. }
  1392. }
  1393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1395. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1396. base.OnRowChanging(e);
  1397. if ((this.ЗаказыRowChanging != null)) {
  1398. this.ЗаказыRowChanging(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1399. }
  1400. }
  1401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1403. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1404. base.OnRowDeleted(e);
  1405. if ((this.ЗаказыRowDeleted != null)) {
  1406. this.ЗаказыRowDeleted(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1407. }
  1408. }
  1409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1411. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1412. base.OnRowDeleting(e);
  1413. if ((this.ЗаказыRowDeleting != null)) {
  1414. this.ЗаказыRowDeleting(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1415. }
  1416. }
  1417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1419. public void RemoveЗаказыRow(ЗаказыRow row) {
  1420. this.Rows.Remove(row);
  1421. }
  1422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1424. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1425. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1426. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1427. lebcafeDataSet ds = new lebcafeDataSet();
  1428. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1429. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1430. any1.MinOccurs = new decimal(0);
  1431. any1.MaxOccurs = decimal.MaxValue;
  1432. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1433. sequence.Items.Add(any1);
  1434. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1435. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1436. any2.MinOccurs = new decimal(1);
  1437. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1438. sequence.Items.Add(any2);
  1439. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1440. attribute1.Name = "namespace";
  1441. attribute1.FixedValue = ds.Namespace;
  1442. type.Attributes.Add(attribute1);
  1443. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1444. attribute2.Name = "tableTypeName";
  1445. attribute2.FixedValue = "ЗаказыDataTable";
  1446. type.Attributes.Add(attribute2);
  1447. type.Particle = sequence;
  1448. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1449. if (xs.Contains(dsSchema.TargetNamespace)) {
  1450. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1451. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1452. try {
  1453. global::System.Xml.Schema.XmlSchema schema = null;
  1454. dsSchema.Write(s1);
  1455. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1456. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1457. s2.SetLength(0);
  1458. schema.Write(s2);
  1459. if ((s1.Length == s2.Length)) {
  1460. s1.Position = 0;
  1461. s2.Position = 0;
  1462. for (; ((s1.Position != s1.Length)
  1463. && (s1.ReadByte() == s2.ReadByte())); ) {
  1464. ;
  1465. }
  1466. if ((s1.Position == s1.Length)) {
  1467. return type;
  1468. }
  1469. }
  1470. }
  1471. }
  1472. finally {
  1473. if ((s1 != null)) {
  1474. s1.Close();
  1475. }
  1476. if ((s2 != null)) {
  1477. s2.Close();
  1478. }
  1479. }
  1480. }
  1481. xs.Add(dsSchema);
  1482. return type;
  1483. }
  1484. }
  1485. /// <summary>
  1486. ///Represents the strongly named DataTable class.
  1487. ///</summary>
  1488. [global::System.Serializable()]
  1489. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1490. public partial class ОфициантыDataTable : global::System.Data.TypedTableBase<ОфициантыRow> {
  1491. private global::System.Data.DataColumn columnID_Официанта;
  1492. private global::System.Data.DataColumn columnФамилия;
  1493. private global::System.Data.DataColumn columnИмя;
  1494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1496. public ОфициантыDataTable() {
  1497. this.TableName = "Официанты";
  1498. this.BeginInit();
  1499. this.InitClass();
  1500. this.EndInit();
  1501. }
  1502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1504. internal ОфициантыDataTable(global::System.Data.DataTable table) {
  1505. this.TableName = table.TableName;
  1506. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1507. this.CaseSensitive = table.CaseSensitive;
  1508. }
  1509. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1510. this.Locale = table.Locale;
  1511. }
  1512. if ((table.Namespace != table.DataSet.Namespace)) {
  1513. this.Namespace = table.Namespace;
  1514. }
  1515. this.Prefix = table.Prefix;
  1516. this.MinimumCapacity = table.MinimumCapacity;
  1517. }
  1518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1520. protected ОфициантыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1521. base(info, context) {
  1522. this.InitVars();
  1523. }
  1524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1526. public global::System.Data.DataColumn ID_ОфициантаColumn {
  1527. get {
  1528. return this.columnID_Официанта;
  1529. }
  1530. }
  1531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1533. public global::System.Data.DataColumn ФамилияColumn {
  1534. get {
  1535. return this.columnФамилия;
  1536. }
  1537. }
  1538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1540. public global::System.Data.DataColumn ИмяColumn {
  1541. get {
  1542. return this.columnИмя;
  1543. }
  1544. }
  1545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1547. [global::System.ComponentModel.Browsable(false)]
  1548. public int Count {
  1549. get {
  1550. return this.Rows.Count;
  1551. }
  1552. }
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1555. public ОфициантыRow this[int index] {
  1556. get {
  1557. return ((ОфициантыRow)(this.Rows[index]));
  1558. }
  1559. }
  1560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1561. public event ОфициантыRowChangeEventHandler ОфициантыRowChanging;
  1562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1563. public event ОфициантыRowChangeEventHandler ОфициантыRowChanged;
  1564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1565. public event ОфициантыRowChangeEventHandler ОфициантыRowDeleting;
  1566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1567. public event ОфициантыRowChangeEventHandler ОфициантыRowDeleted;
  1568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1570. public void AddОфициантыRow(ОфициантыRow row) {
  1571. this.Rows.Add(row);
  1572. }
  1573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1575. public ОфициантыRow AddОфициантыRow(ПользователиRow parentПользователиRowByFK_Официанты_Пользователи, string Фамилия, string Имя) {
  1576. ОфициантыRow rowОфициантыRow = ((ОфициантыRow)(this.NewRow()));
  1577. object[] columnValuesArray = new object[] {
  1578. null,
  1579. Фамилия,
  1580. Имя};
  1581. if ((parentПользователиRowByFK_Официанты_Пользователи != null)) {
  1582. columnValuesArray[0] = parentПользователиRowByFK_Официанты_Пользователи[0];
  1583. }
  1584. rowОфициантыRow.ItemArray = columnValuesArray;
  1585. this.Rows.Add(rowОфициантыRow);
  1586. return rowОфициантыRow;
  1587. }
  1588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1590. public ОфициантыRow FindByID_Официанта(int ID_Официанта) {
  1591. return ((ОфициантыRow)(this.Rows.Find(new object[] {
  1592. ID_Официанта})));
  1593. }
  1594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1596. public override global::System.Data.DataTable Clone() {
  1597. ОфициантыDataTable cln = ((ОфициантыDataTable)(base.Clone()));
  1598. cln.InitVars();
  1599. return cln;
  1600. }
  1601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1603. protected override global::System.Data.DataTable CreateInstance() {
  1604. return new ОфициантыDataTable();
  1605. }
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1608. internal void InitVars() {
  1609. this.columnID_Официанта = base.Columns["ID_Официанта"];
  1610. this.columnФамилия = base.Columns["Фамилия"];
  1611. this.columnИмя = base.Columns["Имя"];
  1612. }
  1613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1615. private void InitClass() {
  1616. this.columnID_Официанта = new global::System.Data.DataColumn("ID_Официанта", typeof(int), null, global::System.Data.MappingType.Element);
  1617. base.Columns.Add(this.columnID_Официанта);
  1618. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1619. base.Columns.Add(this.columnФамилия);
  1620. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1621. base.Columns.Add(this.columnИмя);
  1622. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1623. this.columnID_Официанта}, true));
  1624. this.columnID_Официанта.AllowDBNull = false;
  1625. this.columnID_Официанта.Unique = true;
  1626. this.columnФамилия.MaxLength = 50;
  1627. this.columnИмя.MaxLength = 50;
  1628. }
  1629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1631. public ОфициантыRow NewОфициантыRow() {
  1632. return ((ОфициантыRow)(this.NewRow()));
  1633. }
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1636. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1637. return new ОфициантыRow(builder);
  1638. }
  1639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1641. protected override global::System.Type GetRowType() {
  1642. return typeof(ОфициантыRow);
  1643. }
  1644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1646. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1647. base.OnRowChanged(e);
  1648. if ((this.ОфициантыRowChanged != null)) {
  1649. this.ОфициантыRowChanged(this, new ОфициантыRowChangeEvent(((ОфициантыRow)(e.Row)), e.Action));
  1650. }
  1651. }
  1652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1654. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1655. base.OnRowChanging(e);
  1656. if ((this.ОфициантыRowChanging != null)) {
  1657. this.ОфициантыRowChanging(this, new ОфициантыRowChangeEvent(((ОфициантыRow)(e.Row)), e.Action));
  1658. }
  1659. }
  1660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1662. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1663. base.OnRowDeleted(e);
  1664. if ((this.ОфициантыRowDeleted != null)) {
  1665. this.ОфициантыRowDeleted(this, new ОфициантыRowChangeEvent(((ОфициантыRow)(e.Row)), e.Action));
  1666. }
  1667. }
  1668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1670. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1671. base.OnRowDeleting(e);
  1672. if ((this.ОфициантыRowDeleting != null)) {
  1673. this.ОфициантыRowDeleting(this, new ОфициантыRowChangeEvent(((ОфициантыRow)(e.Row)), e.Action));
  1674. }
  1675. }
  1676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1678. public void RemoveОфициантыRow(ОфициантыRow row) {
  1679. this.Rows.Remove(row);
  1680. }
  1681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1683. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1684. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1685. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1686. lebcafeDataSet ds = new lebcafeDataSet();
  1687. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1688. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1689. any1.MinOccurs = new decimal(0);
  1690. any1.MaxOccurs = decimal.MaxValue;
  1691. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1692. sequence.Items.Add(any1);
  1693. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1694. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1695. any2.MinOccurs = new decimal(1);
  1696. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1697. sequence.Items.Add(any2);
  1698. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1699. attribute1.Name = "namespace";
  1700. attribute1.FixedValue = ds.Namespace;
  1701. type.Attributes.Add(attribute1);
  1702. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1703. attribute2.Name = "tableTypeName";
  1704. attribute2.FixedValue = "ОфициантыDataTable";
  1705. type.Attributes.Add(attribute2);
  1706. type.Particle = sequence;
  1707. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1708. if (xs.Contains(dsSchema.TargetNamespace)) {
  1709. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1710. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1711. try {
  1712. global::System.Xml.Schema.XmlSchema schema = null;
  1713. dsSchema.Write(s1);
  1714. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1715. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1716. s2.SetLength(0);
  1717. schema.Write(s2);
  1718. if ((s1.Length == s2.Length)) {
  1719. s1.Position = 0;
  1720. s2.Position = 0;
  1721. for (; ((s1.Position != s1.Length)
  1722. && (s1.ReadByte() == s2.ReadByte())); ) {
  1723. ;
  1724. }
  1725. if ((s1.Position == s1.Length)) {
  1726. return type;
  1727. }
  1728. }
  1729. }
  1730. }
  1731. finally {
  1732. if ((s1 != null)) {
  1733. s1.Close();
  1734. }
  1735. if ((s2 != null)) {
  1736. s2.Close();
  1737. }
  1738. }
  1739. }
  1740. xs.Add(dsSchema);
  1741. return type;
  1742. }
  1743. }
  1744. /// <summary>
  1745. ///Represents the strongly named DataTable class.
  1746. ///</summary>
  1747. [global::System.Serializable()]
  1748. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1749. public partial class ПовараDataTable : global::System.Data.TypedTableBase<ПовараRow> {
  1750. private global::System.Data.DataColumn columnID_Повара;
  1751. private global::System.Data.DataColumn columnФамилия;
  1752. private global::System.Data.DataColumn columnИмя;
  1753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1755. public ПовараDataTable() {
  1756. this.TableName = "Повара";
  1757. this.BeginInit();
  1758. this.InitClass();
  1759. this.EndInit();
  1760. }
  1761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1763. internal ПовараDataTable(global::System.Data.DataTable table) {
  1764. this.TableName = table.TableName;
  1765. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1766. this.CaseSensitive = table.CaseSensitive;
  1767. }
  1768. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1769. this.Locale = table.Locale;
  1770. }
  1771. if ((table.Namespace != table.DataSet.Namespace)) {
  1772. this.Namespace = table.Namespace;
  1773. }
  1774. this.Prefix = table.Prefix;
  1775. this.MinimumCapacity = table.MinimumCapacity;
  1776. }
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1779. protected ПовараDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1780. base(info, context) {
  1781. this.InitVars();
  1782. }
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1785. public global::System.Data.DataColumn ID_ПовараColumn {
  1786. get {
  1787. return this.columnID_Повара;
  1788. }
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1792. public global::System.Data.DataColumn ФамилияColumn {
  1793. get {
  1794. return this.columnФамилия;
  1795. }
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1799. public global::System.Data.DataColumn ИмяColumn {
  1800. get {
  1801. return this.columnИмя;
  1802. }
  1803. }
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1806. [global::System.ComponentModel.Browsable(false)]
  1807. public int Count {
  1808. get {
  1809. return this.Rows.Count;
  1810. }
  1811. }
  1812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1814. public ПовараRow this[int index] {
  1815. get {
  1816. return ((ПовараRow)(this.Rows[index]));
  1817. }
  1818. }
  1819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1820. public event ПовараRowChangeEventHandler ПовараRowChanging;
  1821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1822. public event ПовараRowChangeEventHandler ПовараRowChanged;
  1823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1824. public event ПовараRowChangeEventHandler ПовараRowDeleting;
  1825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1826. public event ПовараRowChangeEventHandler ПовараRowDeleted;
  1827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1829. public void AddПовараRow(ПовараRow row) {
  1830. this.Rows.Add(row);
  1831. }
  1832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1834. public ПовараRow AddПовараRow(ПользователиRow parentПользователиRowByFK_Повара_Пользователи, string Фамилия, string Имя) {
  1835. ПовараRow rowПовараRow = ((ПовараRow)(this.NewRow()));
  1836. object[] columnValuesArray = new object[] {
  1837. null,
  1838. Фамилия,
  1839. Имя};
  1840. if ((parentПользователиRowByFK_Повара_Пользователи != null)) {
  1841. columnValuesArray[0] = parentПользователиRowByFK_Повара_Пользователи[0];
  1842. }
  1843. rowПовараRow.ItemArray = columnValuesArray;
  1844. this.Rows.Add(rowПовараRow);
  1845. return rowПовараRow;
  1846. }
  1847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1849. public ПовараRow FindByID_Повара(int ID_Повара) {
  1850. return ((ПовараRow)(this.Rows.Find(new object[] {
  1851. ID_Повара})));
  1852. }
  1853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1855. public override global::System.Data.DataTable Clone() {
  1856. ПовараDataTable cln = ((ПовараDataTable)(base.Clone()));
  1857. cln.InitVars();
  1858. return cln;
  1859. }
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1862. protected override global::System.Data.DataTable CreateInstance() {
  1863. return new ПовараDataTable();
  1864. }
  1865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1867. internal void InitVars() {
  1868. this.columnID_Повара = base.Columns["ID_Повара"];
  1869. this.columnФамилия = base.Columns["Фамилия"];
  1870. this.columnИмя = base.Columns["Имя"];
  1871. }
  1872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1874. private void InitClass() {
  1875. this.columnID_Повара = new global::System.Data.DataColumn("ID_Повара", typeof(int), null, global::System.Data.MappingType.Element);
  1876. base.Columns.Add(this.columnID_Повара);
  1877. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1878. base.Columns.Add(this.columnФамилия);
  1879. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1880. base.Columns.Add(this.columnИмя);
  1881. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1882. this.columnID_Повара}, true));
  1883. this.columnID_Повара.AllowDBNull = false;
  1884. this.columnID_Повара.Unique = true;
  1885. this.columnФамилия.MaxLength = 50;
  1886. this.columnИмя.MaxLength = 50;
  1887. }
  1888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1890. public ПовараRow NewПовараRow() {
  1891. return ((ПовараRow)(this.NewRow()));
  1892. }
  1893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1895. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1896. return new ПовараRow(builder);
  1897. }
  1898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1900. protected override global::System.Type GetRowType() {
  1901. return typeof(ПовараRow);
  1902. }
  1903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1905. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1906. base.OnRowChanged(e);
  1907. if ((this.ПовараRowChanged != null)) {
  1908. this.ПовараRowChanged(this, new ПовараRowChangeEvent(((ПовараRow)(e.Row)), e.Action));
  1909. }
  1910. }
  1911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1913. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1914. base.OnRowChanging(e);
  1915. if ((this.ПовараRowChanging != null)) {
  1916. this.ПовараRowChanging(this, new ПовараRowChangeEvent(((ПовараRow)(e.Row)), e.Action));
  1917. }
  1918. }
  1919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1921. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1922. base.OnRowDeleted(e);
  1923. if ((this.ПовараRowDeleted != null)) {
  1924. this.ПовараRowDeleted(this, new ПовараRowChangeEvent(((ПовараRow)(e.Row)), e.Action));
  1925. }
  1926. }
  1927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1929. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1930. base.OnRowDeleting(e);
  1931. if ((this.ПовараRowDeleting != null)) {
  1932. this.ПовараRowDeleting(this, new ПовараRowChangeEvent(((ПовараRow)(e.Row)), e.Action));
  1933. }
  1934. }
  1935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1937. public void RemoveПовараRow(ПовараRow row) {
  1938. this.Rows.Remove(row);
  1939. }
  1940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1942. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1943. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1944. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1945. lebcafeDataSet ds = new lebcafeDataSet();
  1946. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1947. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1948. any1.MinOccurs = new decimal(0);
  1949. any1.MaxOccurs = decimal.MaxValue;
  1950. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1951. sequence.Items.Add(any1);
  1952. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1953. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1954. any2.MinOccurs = new decimal(1);
  1955. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1956. sequence.Items.Add(any2);
  1957. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1958. attribute1.Name = "namespace";
  1959. attribute1.FixedValue = ds.Namespace;
  1960. type.Attributes.Add(attribute1);
  1961. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1962. attribute2.Name = "tableTypeName";
  1963. attribute2.FixedValue = "ПовараDataTable";
  1964. type.Attributes.Add(attribute2);
  1965. type.Particle = sequence;
  1966. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1967. if (xs.Contains(dsSchema.TargetNamespace)) {
  1968. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1969. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1970. try {
  1971. global::System.Xml.Schema.XmlSchema schema = null;
  1972. dsSchema.Write(s1);
  1973. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1974. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1975. s2.SetLength(0);
  1976. schema.Write(s2);
  1977. if ((s1.Length == s2.Length)) {
  1978. s1.Position = 0;
  1979. s2.Position = 0;
  1980. for (; ((s1.Position != s1.Length)
  1981. && (s1.ReadByte() == s2.ReadByte())); ) {
  1982. ;
  1983. }
  1984. if ((s1.Position == s1.Length)) {
  1985. return type;
  1986. }
  1987. }
  1988. }
  1989. }
  1990. finally {
  1991. if ((s1 != null)) {
  1992. s1.Close();
  1993. }
  1994. if ((s2 != null)) {
  1995. s2.Close();
  1996. }
  1997. }
  1998. }
  1999. xs.Add(dsSchema);
  2000. return type;
  2001. }
  2002. }
  2003. /// <summary>
  2004. ///Represents the strongly named DataTable class.
  2005. ///</summary>
  2006. [global::System.Serializable()]
  2007. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2008. public partial class ПользователиDataTable : global::System.Data.TypedTableBase<ПользователиRow> {
  2009. private global::System.Data.DataColumn columnID_Пользователя;
  2010. private global::System.Data.DataColumn columnЛогин;
  2011. private global::System.Data.DataColumn columnПароль;
  2012. private global::System.Data.DataColumn columnФамилия;
  2013. private global::System.Data.DataColumn columnID_Роли;
  2014. private global::System.Data.DataColumn columnID_Статуса;
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2017. public ПользователиDataTable() {
  2018. this.TableName = "Пользователи";
  2019. this.BeginInit();
  2020. this.InitClass();
  2021. this.EndInit();
  2022. }
  2023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2025. internal ПользователиDataTable(global::System.Data.DataTable table) {
  2026. this.TableName = table.TableName;
  2027. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2028. this.CaseSensitive = table.CaseSensitive;
  2029. }
  2030. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2031. this.Locale = table.Locale;
  2032. }
  2033. if ((table.Namespace != table.DataSet.Namespace)) {
  2034. this.Namespace = table.Namespace;
  2035. }
  2036. this.Prefix = table.Prefix;
  2037. this.MinimumCapacity = table.MinimumCapacity;
  2038. }
  2039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2041. protected ПользователиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2042. base(info, context) {
  2043. this.InitVars();
  2044. }
  2045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2047. public global::System.Data.DataColumn ID_ПользователяColumn {
  2048. get {
  2049. return this.columnID_Пользователя;
  2050. }
  2051. }
  2052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2054. public global::System.Data.DataColumn ЛогинColumn {
  2055. get {
  2056. return this.columnЛогин;
  2057. }
  2058. }
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2061. public global::System.Data.DataColumn ПарольColumn {
  2062. get {
  2063. return this.columnПароль;
  2064. }
  2065. }
  2066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2068. public global::System.Data.DataColumn ФамилияColumn {
  2069. get {
  2070. return this.columnФамилия;
  2071. }
  2072. }
  2073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2075. public global::System.Data.DataColumn ID_РолиColumn {
  2076. get {
  2077. return this.columnID_Роли;
  2078. }
  2079. }
  2080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2082. public global::System.Data.DataColumn ID_СтатусаColumn {
  2083. get {
  2084. return this.columnID_Статуса;
  2085. }
  2086. }
  2087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2089. [global::System.ComponentModel.Browsable(false)]
  2090. public int Count {
  2091. get {
  2092. return this.Rows.Count;
  2093. }
  2094. }
  2095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2097. public ПользователиRow this[int index] {
  2098. get {
  2099. return ((ПользователиRow)(this.Rows[index]));
  2100. }
  2101. }
  2102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2103. public event ПользователиRowChangeEventHandler ПользователиRowChanging;
  2104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2105. public event ПользователиRowChangeEventHandler ПользователиRowChanged;
  2106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2107. public event ПользователиRowChangeEventHandler ПользователиRowDeleting;
  2108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2109. public event ПользователиRowChangeEventHandler ПользователиRowDeleted;
  2110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2112. public void AddПользователиRow(ПользователиRow row) {
  2113. this.Rows.Add(row);
  2114. }
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2117. public ПользователиRow AddПользователиRow(ОфициантыRow parentОфициантыRowByFK_Пользователи_Официанты, string Логин, string Пароль, string Фамилия, РолиRow parentРолиRowByFK_Пользователи_Роли1, СтатусСотрудникаRow parentСтатусСотрудникаRowByFK_Пользователи_СтатусСотрудника) {
  2118. ПользователиRow rowПользователиRow = ((ПользователиRow)(this.NewRow()));
  2119. object[] columnValuesArray = new object[] {
  2120. null,
  2121. Логин,
  2122. Пароль,
  2123. Фамилия,
  2124. null,
  2125. null};
  2126. if ((parentОфициантыRowByFK_Пользователи_Официанты != null)) {
  2127. columnValuesArray[0] = parentОфициантыRowByFK_Пользователи_Официанты[0];
  2128. }
  2129. if ((parentРолиRowByFK_Пользователи_Роли1 != null)) {
  2130. columnValuesArray[4] = parentРолиRowByFK_Пользователи_Роли1[0];
  2131. }
  2132. if ((parentСтатусСотрудникаRowByFK_Пользователи_СтатусСотрудника != null)) {
  2133. columnValuesArray[5] = parentСтатусСотрудникаRowByFK_Пользователи_СтатусСотрудника[0];
  2134. }
  2135. rowПользователиRow.ItemArray = columnValuesArray;
  2136. this.Rows.Add(rowПользователиRow);
  2137. return rowПользователиRow;
  2138. }
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2141. public ПользователиRow FindByID_Пользователя(int ID_Пользователя) {
  2142. return ((ПользователиRow)(this.Rows.Find(new object[] {
  2143. ID_Пользователя})));
  2144. }
  2145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2147. public override global::System.Data.DataTable Clone() {
  2148. ПользователиDataTable cln = ((ПользователиDataTable)(base.Clone()));
  2149. cln.InitVars();
  2150. return cln;
  2151. }
  2152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2154. protected override global::System.Data.DataTable CreateInstance() {
  2155. return new ПользователиDataTable();
  2156. }
  2157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2159. internal void InitVars() {
  2160. this.columnID_Пользователя = base.Columns["ID_Пользователя"];
  2161. this.columnЛогин = base.Columns["Логин"];
  2162. this.columnПароль = base.Columns["Пароль"];
  2163. this.columnФамилия = base.Columns["Фамилия"];
  2164. this.columnID_Роли = base.Columns["ID_Роли"];
  2165. this.columnID_Статуса = base.Columns["ID_Статуса"];
  2166. }
  2167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2169. private void InitClass() {
  2170. this.columnID_Пользователя = new global::System.Data.DataColumn("ID_Пользователя", typeof(int), null, global::System.Data.MappingType.Element);
  2171. base.Columns.Add(this.columnID_Пользователя);
  2172. this.columnЛогин = new global::System.Data.DataColumn("Логин", typeof(string), null, global::System.Data.MappingType.Element);
  2173. base.Columns.Add(this.columnЛогин);
  2174. this.columnПароль = new global::System.Data.DataColumn("Пароль", typeof(string), null, global::System.Data.MappingType.Element);
  2175. base.Columns.Add(this.columnПароль);
  2176. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  2177. base.Columns.Add(this.columnФамилия);
  2178. this.columnID_Роли = new global::System.Data.DataColumn("ID_Роли", typeof(int), null, global::System.Data.MappingType.Element);
  2179. base.Columns.Add(this.columnID_Роли);
  2180. this.columnID_Статуса = new global::System.Data.DataColumn("ID_Статуса", typeof(int), null, global::System.Data.MappingType.Element);
  2181. base.Columns.Add(this.columnID_Статуса);
  2182. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2183. this.columnID_Пользователя}, true));
  2184. this.columnID_Пользователя.AllowDBNull = false;
  2185. this.columnID_Пользователя.Unique = true;
  2186. this.columnЛогин.MaxLength = 50;
  2187. this.columnПароль.MaxLength = 50;
  2188. this.columnФамилия.MaxLength = 50;
  2189. }
  2190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2192. public ПользователиRow NewПользователиRow() {
  2193. return ((ПользователиRow)(this.NewRow()));
  2194. }
  2195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2197. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2198. return new ПользователиRow(builder);
  2199. }
  2200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2202. protected override global::System.Type GetRowType() {
  2203. return typeof(ПользователиRow);
  2204. }
  2205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2207. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2208. base.OnRowChanged(e);
  2209. if ((this.ПользователиRowChanged != null)) {
  2210. this.ПользователиRowChanged(this, new ПользователиRowChangeEvent(((ПользователиRow)(e.Row)), e.Action));
  2211. }
  2212. }
  2213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2215. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2216. base.OnRowChanging(e);
  2217. if ((this.ПользователиRowChanging != null)) {
  2218. this.ПользователиRowChanging(this, new ПользователиRowChangeEvent(((ПользователиRow)(e.Row)), e.Action));
  2219. }
  2220. }
  2221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2223. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2224. base.OnRowDeleted(e);
  2225. if ((this.ПользователиRowDeleted != null)) {
  2226. this.ПользователиRowDeleted(this, new ПользователиRowChangeEvent(((ПользователиRow)(e.Row)), e.Action));
  2227. }
  2228. }
  2229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2231. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2232. base.OnRowDeleting(e);
  2233. if ((this.ПользователиRowDeleting != null)) {
  2234. this.ПользователиRowDeleting(this, new ПользователиRowChangeEvent(((ПользователиRow)(e.Row)), e.Action));
  2235. }
  2236. }
  2237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2239. public void RemoveПользователиRow(ПользователиRow row) {
  2240. this.Rows.Remove(row);
  2241. }
  2242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2244. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2245. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2246. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2247. lebcafeDataSet ds = new lebcafeDataSet();
  2248. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2249. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2250. any1.MinOccurs = new decimal(0);
  2251. any1.MaxOccurs = decimal.MaxValue;
  2252. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2253. sequence.Items.Add(any1);
  2254. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2255. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2256. any2.MinOccurs = new decimal(1);
  2257. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2258. sequence.Items.Add(any2);
  2259. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2260. attribute1.Name = "namespace";
  2261. attribute1.FixedValue = ds.Namespace;
  2262. type.Attributes.Add(attribute1);
  2263. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2264. attribute2.Name = "tableTypeName";
  2265. attribute2.FixedValue = "ПользователиDataTable";
  2266. type.Attributes.Add(attribute2);
  2267. type.Particle = sequence;
  2268. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2269. if (xs.Contains(dsSchema.TargetNamespace)) {
  2270. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2271. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2272. try {
  2273. global::System.Xml.Schema.XmlSchema schema = null;
  2274. dsSchema.Write(s1);
  2275. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2276. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2277. s2.SetLength(0);
  2278. schema.Write(s2);
  2279. if ((s1.Length == s2.Length)) {
  2280. s1.Position = 0;
  2281. s2.Position = 0;
  2282. for (; ((s1.Position != s1.Length)
  2283. && (s1.ReadByte() == s2.ReadByte())); ) {
  2284. ;
  2285. }
  2286. if ((s1.Position == s1.Length)) {
  2287. return type;
  2288. }
  2289. }
  2290. }
  2291. }
  2292. finally {
  2293. if ((s1 != null)) {
  2294. s1.Close();
  2295. }
  2296. if ((s2 != null)) {
  2297. s2.Close();
  2298. }
  2299. }
  2300. }
  2301. xs.Add(dsSchema);
  2302. return type;
  2303. }
  2304. }
  2305. /// <summary>
  2306. ///Represents the strongly named DataTable class.
  2307. ///</summary>
  2308. [global::System.Serializable()]
  2309. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2310. public partial class РолиDataTable : global::System.Data.TypedTableBase<РолиRow> {
  2311. private global::System.Data.DataColumn columnid_Роли;
  2312. private global::System.Data.DataColumn columnНазвание;
  2313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2315. public РолиDataTable() {
  2316. this.TableName = "Роли";
  2317. this.BeginInit();
  2318. this.InitClass();
  2319. this.EndInit();
  2320. }
  2321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2323. internal РолиDataTable(global::System.Data.DataTable table) {
  2324. this.TableName = table.TableName;
  2325. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2326. this.CaseSensitive = table.CaseSensitive;
  2327. }
  2328. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2329. this.Locale = table.Locale;
  2330. }
  2331. if ((table.Namespace != table.DataSet.Namespace)) {
  2332. this.Namespace = table.Namespace;
  2333. }
  2334. this.Prefix = table.Prefix;
  2335. this.MinimumCapacity = table.MinimumCapacity;
  2336. }
  2337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2339. protected РолиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2340. base(info, context) {
  2341. this.InitVars();
  2342. }
  2343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2345. public global::System.Data.DataColumn id_РолиColumn {
  2346. get {
  2347. return this.columnid_Роли;
  2348. }
  2349. }
  2350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2352. public global::System.Data.DataColumn НазваниеColumn {
  2353. get {
  2354. return this.columnНазвание;
  2355. }
  2356. }
  2357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2359. [global::System.ComponentModel.Browsable(false)]
  2360. public int Count {
  2361. get {
  2362. return this.Rows.Count;
  2363. }
  2364. }
  2365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2367. public РолиRow this[int index] {
  2368. get {
  2369. return ((РолиRow)(this.Rows[index]));
  2370. }
  2371. }
  2372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2373. public event РолиRowChangeEventHandler РолиRowChanging;
  2374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2375. public event РолиRowChangeEventHandler РолиRowChanged;
  2376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2377. public event РолиRowChangeEventHandler РолиRowDeleting;
  2378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2379. public event РолиRowChangeEventHandler РолиRowDeleted;
  2380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2382. public void AddРолиRow(РолиRow row) {
  2383. this.Rows.Add(row);
  2384. }
  2385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2387. public РолиRow AddРолиRow(int id_Роли, string Название) {
  2388. РолиRow rowРолиRow = ((РолиRow)(this.NewRow()));
  2389. object[] columnValuesArray = new object[] {
  2390. id_Роли,
  2391. Название};
  2392. rowРолиRow.ItemArray = columnValuesArray;
  2393. this.Rows.Add(rowРолиRow);
  2394. return rowРолиRow;
  2395. }
  2396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2398. public РолиRow FindByid_Роли(int id_Роли) {
  2399. return ((РолиRow)(this.Rows.Find(new object[] {
  2400. id_Роли})));
  2401. }
  2402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2404. public override global::System.Data.DataTable Clone() {
  2405. РолиDataTable cln = ((РолиDataTable)(base.Clone()));
  2406. cln.InitVars();
  2407. return cln;
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2411. protected override global::System.Data.DataTable CreateInstance() {
  2412. return new РолиDataTable();
  2413. }
  2414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2416. internal void InitVars() {
  2417. this.columnid_Роли = base.Columns["id_Роли"];
  2418. this.columnНазвание = base.Columns["Название"];
  2419. }
  2420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2422. private void InitClass() {
  2423. this.columnid_Роли = new global::System.Data.DataColumn("id_Роли", typeof(int), null, global::System.Data.MappingType.Element);
  2424. base.Columns.Add(this.columnid_Роли);
  2425. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  2426. base.Columns.Add(this.columnНазвание);
  2427. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2428. this.columnid_Роли}, true));
  2429. this.columnid_Роли.AllowDBNull = false;
  2430. this.columnid_Роли.Unique = true;
  2431. this.columnНазвание.MaxLength = 50;
  2432. }
  2433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2435. public РолиRow NewРолиRow() {
  2436. return ((РолиRow)(this.NewRow()));
  2437. }
  2438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2440. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2441. return new РолиRow(builder);
  2442. }
  2443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2445. protected override global::System.Type GetRowType() {
  2446. return typeof(РолиRow);
  2447. }
  2448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2450. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2451. base.OnRowChanged(e);
  2452. if ((this.РолиRowChanged != null)) {
  2453. this.РолиRowChanged(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2454. }
  2455. }
  2456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2458. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2459. base.OnRowChanging(e);
  2460. if ((this.РолиRowChanging != null)) {
  2461. this.РолиRowChanging(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2462. }
  2463. }
  2464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2466. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2467. base.OnRowDeleted(e);
  2468. if ((this.РолиRowDeleted != null)) {
  2469. this.РолиRowDeleted(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2470. }
  2471. }
  2472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2474. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2475. base.OnRowDeleting(e);
  2476. if ((this.РолиRowDeleting != null)) {
  2477. this.РолиRowDeleting(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2478. }
  2479. }
  2480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2482. public void RemoveРолиRow(РолиRow row) {
  2483. this.Rows.Remove(row);
  2484. }
  2485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2487. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2488. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2489. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2490. lebcafeDataSet ds = new lebcafeDataSet();
  2491. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2492. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2493. any1.MinOccurs = new decimal(0);
  2494. any1.MaxOccurs = decimal.MaxValue;
  2495. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2496. sequence.Items.Add(any1);
  2497. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2498. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2499. any2.MinOccurs = new decimal(1);
  2500. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2501. sequence.Items.Add(any2);
  2502. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2503. attribute1.Name = "namespace";
  2504. attribute1.FixedValue = ds.Namespace;
  2505. type.Attributes.Add(attribute1);
  2506. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2507. attribute2.Name = "tableTypeName";
  2508. attribute2.FixedValue = "РолиDataTable";
  2509. type.Attributes.Add(attribute2);
  2510. type.Particle = sequence;
  2511. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2512. if (xs.Contains(dsSchema.TargetNamespace)) {
  2513. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2514. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2515. try {
  2516. global::System.Xml.Schema.XmlSchema schema = null;
  2517. dsSchema.Write(s1);
  2518. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2519. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2520. s2.SetLength(0);
  2521. schema.Write(s2);
  2522. if ((s1.Length == s2.Length)) {
  2523. s1.Position = 0;
  2524. s2.Position = 0;
  2525. for (; ((s1.Position != s1.Length)
  2526. && (s1.ReadByte() == s2.ReadByte())); ) {
  2527. ;
  2528. }
  2529. if ((s1.Position == s1.Length)) {
  2530. return type;
  2531. }
  2532. }
  2533. }
  2534. }
  2535. finally {
  2536. if ((s1 != null)) {
  2537. s1.Close();
  2538. }
  2539. if ((s2 != null)) {
  2540. s2.Close();
  2541. }
  2542. }
  2543. }
  2544. xs.Add(dsSchema);
  2545. return type;
  2546. }
  2547. }
  2548. /// <summary>
  2549. ///Represents the strongly named DataTable class.
  2550. ///</summary>
  2551. [global::System.Serializable()]
  2552. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2553. public partial class СменыDataTable : global::System.Data.TypedTableBase<СменыRow> {
  2554. private global::System.Data.DataColumn columnID_Смены;
  2555. private global::System.Data.DataColumn columnДатаCмены;
  2556. private global::System.Data.DataColumn columnid_Официанта;
  2557. private global::System.Data.DataColumn columnid_Повара;
  2558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2560. public СменыDataTable() {
  2561. this.TableName = "Смены";
  2562. this.BeginInit();
  2563. this.InitClass();
  2564. this.EndInit();
  2565. }
  2566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2568. internal СменыDataTable(global::System.Data.DataTable table) {
  2569. this.TableName = table.TableName;
  2570. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2571. this.CaseSensitive = table.CaseSensitive;
  2572. }
  2573. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2574. this.Locale = table.Locale;
  2575. }
  2576. if ((table.Namespace != table.DataSet.Namespace)) {
  2577. this.Namespace = table.Namespace;
  2578. }
  2579. this.Prefix = table.Prefix;
  2580. this.MinimumCapacity = table.MinimumCapacity;
  2581. }
  2582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2584. protected СменыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2585. base(info, context) {
  2586. this.InitVars();
  2587. }
  2588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2590. public global::System.Data.DataColumn ID_СменыColumn {
  2591. get {
  2592. return this.columnID_Смены;
  2593. }
  2594. }
  2595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2597. public global::System.Data.DataColumn ДатаCменыColumn {
  2598. get {
  2599. return this.columnДатаCмены;
  2600. }
  2601. }
  2602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2604. public global::System.Data.DataColumn id_ОфициантаColumn {
  2605. get {
  2606. return this.columnid_Официанта;
  2607. }
  2608. }
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2611. public global::System.Data.DataColumn id_ПовараColumn {
  2612. get {
  2613. return this.columnid_Повара;
  2614. }
  2615. }
  2616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2618. [global::System.ComponentModel.Browsable(false)]
  2619. public int Count {
  2620. get {
  2621. return this.Rows.Count;
  2622. }
  2623. }
  2624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2626. public СменыRow this[int index] {
  2627. get {
  2628. return ((СменыRow)(this.Rows[index]));
  2629. }
  2630. }
  2631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2632. public event СменыRowChangeEventHandler СменыRowChanging;
  2633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2634. public event СменыRowChangeEventHandler СменыRowChanged;
  2635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2636. public event СменыRowChangeEventHandler СменыRowDeleting;
  2637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2638. public event СменыRowChangeEventHandler СменыRowDeleted;
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2641. public void AddСменыRow(СменыRow row) {
  2642. this.Rows.Add(row);
  2643. }
  2644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2646. public СменыRow AddСменыRow(int ID_Смены, System.DateTime ДатаCмены, ОфициантыRow parentОфициантыRowByFK_Смены_Официанты, ПовараRow parentПовараRowByFK_Смены_Повара) {
  2647. СменыRow rowСменыRow = ((СменыRow)(this.NewRow()));
  2648. object[] columnValuesArray = new object[] {
  2649. ID_Смены,
  2650. ДатаCмены,
  2651. null,
  2652. null};
  2653. if ((parentОфициантыRowByFK_Смены_Официанты != null)) {
  2654. columnValuesArray[2] = parentОфициантыRowByFK_Смены_Официанты[0];
  2655. }
  2656. if ((parentПовараRowByFK_Смены_Повара != null)) {
  2657. columnValuesArray[3] = parentПовараRowByFK_Смены_Повара[0];
  2658. }
  2659. rowСменыRow.ItemArray = columnValuesArray;
  2660. this.Rows.Add(rowСменыRow);
  2661. return rowСменыRow;
  2662. }
  2663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2665. public СменыRow FindByID_Смены(int ID_Смены) {
  2666. return ((СменыRow)(this.Rows.Find(new object[] {
  2667. ID_Смены})));
  2668. }
  2669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2671. public override global::System.Data.DataTable Clone() {
  2672. СменыDataTable cln = ((СменыDataTable)(base.Clone()));
  2673. cln.InitVars();
  2674. return cln;
  2675. }
  2676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2678. protected override global::System.Data.DataTable CreateInstance() {
  2679. return new СменыDataTable();
  2680. }
  2681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2683. internal void InitVars() {
  2684. this.columnID_Смены = base.Columns["ID_Смены"];
  2685. this.columnДатаCмены = base.Columns["ДатаCмены"];
  2686. this.columnid_Официанта = base.Columns["id_Официанта"];
  2687. this.columnid_Повара = base.Columns["id_Повара"];
  2688. }
  2689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2691. private void InitClass() {
  2692. this.columnID_Смены = new global::System.Data.DataColumn("ID_Смены", typeof(int), null, global::System.Data.MappingType.Element);
  2693. base.Columns.Add(this.columnID_Смены);
  2694. this.columnДатаCмены = new global::System.Data.DataColumn("ДатаCмены", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2695. base.Columns.Add(this.columnДатаCмены);
  2696. this.columnid_Официанта = new global::System.Data.DataColumn("id_Официанта", typeof(int), null, global::System.Data.MappingType.Element);
  2697. base.Columns.Add(this.columnid_Официанта);
  2698. this.columnid_Повара = new global::System.Data.DataColumn("id_Повара", typeof(int), null, global::System.Data.MappingType.Element);
  2699. base.Columns.Add(this.columnid_Повара);
  2700. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2701. this.columnID_Смены}, true));
  2702. this.columnID_Смены.AllowDBNull = false;
  2703. this.columnID_Смены.Unique = true;
  2704. }
  2705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2707. public СменыRow NewСменыRow() {
  2708. return ((СменыRow)(this.NewRow()));
  2709. }
  2710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2712. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2713. return new СменыRow(builder);
  2714. }
  2715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2717. protected override global::System.Type GetRowType() {
  2718. return typeof(СменыRow);
  2719. }
  2720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2722. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2723. base.OnRowChanged(e);
  2724. if ((this.СменыRowChanged != null)) {
  2725. this.СменыRowChanged(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  2726. }
  2727. }
  2728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2730. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2731. base.OnRowChanging(e);
  2732. if ((this.СменыRowChanging != null)) {
  2733. this.СменыRowChanging(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  2734. }
  2735. }
  2736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2738. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2739. base.OnRowDeleted(e);
  2740. if ((this.СменыRowDeleted != null)) {
  2741. this.СменыRowDeleted(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  2742. }
  2743. }
  2744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2746. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2747. base.OnRowDeleting(e);
  2748. if ((this.СменыRowDeleting != null)) {
  2749. this.СменыRowDeleting(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  2750. }
  2751. }
  2752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2754. public void RemoveСменыRow(СменыRow row) {
  2755. this.Rows.Remove(row);
  2756. }
  2757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2759. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2760. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2761. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2762. lebcafeDataSet ds = new lebcafeDataSet();
  2763. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2764. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2765. any1.MinOccurs = new decimal(0);
  2766. any1.MaxOccurs = decimal.MaxValue;
  2767. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2768. sequence.Items.Add(any1);
  2769. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2770. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2771. any2.MinOccurs = new decimal(1);
  2772. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2773. sequence.Items.Add(any2);
  2774. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2775. attribute1.Name = "namespace";
  2776. attribute1.FixedValue = ds.Namespace;
  2777. type.Attributes.Add(attribute1);
  2778. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2779. attribute2.Name = "tableTypeName";
  2780. attribute2.FixedValue = "СменыDataTable";
  2781. type.Attributes.Add(attribute2);
  2782. type.Particle = sequence;
  2783. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2784. if (xs.Contains(dsSchema.TargetNamespace)) {
  2785. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2786. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2787. try {
  2788. global::System.Xml.Schema.XmlSchema schema = null;
  2789. dsSchema.Write(s1);
  2790. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2791. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2792. s2.SetLength(0);
  2793. schema.Write(s2);
  2794. if ((s1.Length == s2.Length)) {
  2795. s1.Position = 0;
  2796. s2.Position = 0;
  2797. for (; ((s1.Position != s1.Length)
  2798. && (s1.ReadByte() == s2.ReadByte())); ) {
  2799. ;
  2800. }
  2801. if ((s1.Position == s1.Length)) {
  2802. return type;
  2803. }
  2804. }
  2805. }
  2806. }
  2807. finally {
  2808. if ((s1 != null)) {
  2809. s1.Close();
  2810. }
  2811. if ((s2 != null)) {
  2812. s2.Close();
  2813. }
  2814. }
  2815. }
  2816. xs.Add(dsSchema);
  2817. return type;
  2818. }
  2819. }
  2820. /// <summary>
  2821. ///Represents the strongly named DataTable class.
  2822. ///</summary>
  2823. [global::System.Serializable()]
  2824. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2825. public partial class СтатусЗаказаDataTable : global::System.Data.TypedTableBase<СтатусЗаказаRow> {
  2826. private global::System.Data.DataColumn columnID_СтатусаЗаказа;
  2827. private global::System.Data.DataColumn columnНазваниеСтатусаЗаказа;
  2828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2830. public СтатусЗаказаDataTable() {
  2831. this.TableName = "СтатусЗаказа";
  2832. this.BeginInit();
  2833. this.InitClass();
  2834. this.EndInit();
  2835. }
  2836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2838. internal СтатусЗаказаDataTable(global::System.Data.DataTable table) {
  2839. this.TableName = table.TableName;
  2840. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2841. this.CaseSensitive = table.CaseSensitive;
  2842. }
  2843. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2844. this.Locale = table.Locale;
  2845. }
  2846. if ((table.Namespace != table.DataSet.Namespace)) {
  2847. this.Namespace = table.Namespace;
  2848. }
  2849. this.Prefix = table.Prefix;
  2850. this.MinimumCapacity = table.MinimumCapacity;
  2851. }
  2852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2854. protected СтатусЗаказаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2855. base(info, context) {
  2856. this.InitVars();
  2857. }
  2858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2860. public global::System.Data.DataColumn ID_СтатусаЗаказаColumn {
  2861. get {
  2862. return this.columnID_СтатусаЗаказа;
  2863. }
  2864. }
  2865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2867. public global::System.Data.DataColumn НазваниеСтатусаЗаказаColumn {
  2868. get {
  2869. return this.columnНазваниеСтатусаЗаказа;
  2870. }
  2871. }
  2872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2874. [global::System.ComponentModel.Browsable(false)]
  2875. public int Count {
  2876. get {
  2877. return this.Rows.Count;
  2878. }
  2879. }
  2880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2882. public СтатусЗаказаRow this[int index] {
  2883. get {
  2884. return ((СтатусЗаказаRow)(this.Rows[index]));
  2885. }
  2886. }
  2887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2888. public event СтатусЗаказаRowChangeEventHandler СтатусЗаказаRowChanging;
  2889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2890. public event СтатусЗаказаRowChangeEventHandler СтатусЗаказаRowChanged;
  2891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2892. public event СтатусЗаказаRowChangeEventHandler СтатусЗаказаRowDeleting;
  2893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2894. public event СтатусЗаказаRowChangeEventHandler СтатусЗаказаRowDeleted;
  2895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2897. public void AddСтатусЗаказаRow(СтатусЗаказаRow row) {
  2898. this.Rows.Add(row);
  2899. }
  2900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2902. public СтатусЗаказаRow AddСтатусЗаказаRow(int ID_СтатусаЗаказа, string НазваниеСтатусаЗаказа) {
  2903. СтатусЗаказаRow rowСтатусЗаказаRow = ((СтатусЗаказаRow)(this.NewRow()));
  2904. object[] columnValuesArray = new object[] {
  2905. ID_СтатусаЗаказа,
  2906. НазваниеСтатусаЗаказа};
  2907. rowСтатусЗаказаRow.ItemArray = columnValuesArray;
  2908. this.Rows.Add(rowСтатусЗаказаRow);
  2909. return rowСтатусЗаказаRow;
  2910. }
  2911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2913. public СтатусЗаказаRow FindByID_СтатусаЗаказа(int ID_СтатусаЗаказа) {
  2914. return ((СтатусЗаказаRow)(this.Rows.Find(new object[] {
  2915. ID_СтатусаЗаказа})));
  2916. }
  2917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2919. public override global::System.Data.DataTable Clone() {
  2920. СтатусЗаказаDataTable cln = ((СтатусЗаказаDataTable)(base.Clone()));
  2921. cln.InitVars();
  2922. return cln;
  2923. }
  2924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2926. protected override global::System.Data.DataTable CreateInstance() {
  2927. return new СтатусЗаказаDataTable();
  2928. }
  2929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2931. internal void InitVars() {
  2932. this.columnID_СтатусаЗаказа = base.Columns["ID_СтатусаЗаказа"];
  2933. this.columnНазваниеСтатусаЗаказа = base.Columns["НазваниеСтатусаЗаказа"];
  2934. }
  2935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2937. private void InitClass() {
  2938. this.columnID_СтатусаЗаказа = new global::System.Data.DataColumn("ID_СтатусаЗаказа", typeof(int), null, global::System.Data.MappingType.Element);
  2939. base.Columns.Add(this.columnID_СтатусаЗаказа);
  2940. this.columnНазваниеСтатусаЗаказа = new global::System.Data.DataColumn("НазваниеСтатусаЗаказа", typeof(string), null, global::System.Data.MappingType.Element);
  2941. base.Columns.Add(this.columnНазваниеСтатусаЗаказа);
  2942. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2943. this.columnID_СтатусаЗаказа}, true));
  2944. this.columnID_СтатусаЗаказа.AllowDBNull = false;
  2945. this.columnID_СтатусаЗаказа.Unique = true;
  2946. this.columnНазваниеСтатусаЗаказа.MaxLength = 10;
  2947. }
  2948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2950. public СтатусЗаказаRow NewСтатусЗаказаRow() {
  2951. return ((СтатусЗаказаRow)(this.NewRow()));
  2952. }
  2953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2955. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2956. return new СтатусЗаказаRow(builder);
  2957. }
  2958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2960. protected override global::System.Type GetRowType() {
  2961. return typeof(СтатусЗаказаRow);
  2962. }
  2963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2965. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2966. base.OnRowChanged(e);
  2967. if ((this.СтатусЗаказаRowChanged != null)) {
  2968. this.СтатусЗаказаRowChanged(this, new СтатусЗаказаRowChangeEvent(((СтатусЗаказаRow)(e.Row)), e.Action));
  2969. }
  2970. }
  2971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2973. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2974. base.OnRowChanging(e);
  2975. if ((this.СтатусЗаказаRowChanging != null)) {
  2976. this.СтатусЗаказаRowChanging(this, new СтатусЗаказаRowChangeEvent(((СтатусЗаказаRow)(e.Row)), e.Action));
  2977. }
  2978. }
  2979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2981. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2982. base.OnRowDeleted(e);
  2983. if ((this.СтатусЗаказаRowDeleted != null)) {
  2984. this.СтатусЗаказаRowDeleted(this, new СтатусЗаказаRowChangeEvent(((СтатусЗаказаRow)(e.Row)), e.Action));
  2985. }
  2986. }
  2987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2989. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2990. base.OnRowDeleting(e);
  2991. if ((this.СтатусЗаказаRowDeleting != null)) {
  2992. this.СтатусЗаказаRowDeleting(this, new СтатусЗаказаRowChangeEvent(((СтатусЗаказаRow)(e.Row)), e.Action));
  2993. }
  2994. }
  2995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2997. public void RemoveСтатусЗаказаRow(СтатусЗаказаRow row) {
  2998. this.Rows.Remove(row);
  2999. }
  3000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3002. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3003. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3004. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3005. lebcafeDataSet ds = new lebcafeDataSet();
  3006. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3007. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3008. any1.MinOccurs = new decimal(0);
  3009. any1.MaxOccurs = decimal.MaxValue;
  3010. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3011. sequence.Items.Add(any1);
  3012. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3013. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3014. any2.MinOccurs = new decimal(1);
  3015. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3016. sequence.Items.Add(any2);
  3017. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3018. attribute1.Name = "namespace";
  3019. attribute1.FixedValue = ds.Namespace;
  3020. type.Attributes.Add(attribute1);
  3021. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3022. attribute2.Name = "tableTypeName";
  3023. attribute2.FixedValue = "СтатусЗаказаDataTable";
  3024. type.Attributes.Add(attribute2);
  3025. type.Particle = sequence;
  3026. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3027. if (xs.Contains(dsSchema.TargetNamespace)) {
  3028. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3029. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3030. try {
  3031. global::System.Xml.Schema.XmlSchema schema = null;
  3032. dsSchema.Write(s1);
  3033. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3034. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3035. s2.SetLength(0);
  3036. schema.Write(s2);
  3037. if ((s1.Length == s2.Length)) {
  3038. s1.Position = 0;
  3039. s2.Position = 0;
  3040. for (; ((s1.Position != s1.Length)
  3041. && (s1.ReadByte() == s2.ReadByte())); ) {
  3042. ;
  3043. }
  3044. if ((s1.Position == s1.Length)) {
  3045. return type;
  3046. }
  3047. }
  3048. }
  3049. }
  3050. finally {
  3051. if ((s1 != null)) {
  3052. s1.Close();
  3053. }
  3054. if ((s2 != null)) {
  3055. s2.Close();
  3056. }
  3057. }
  3058. }
  3059. xs.Add(dsSchema);
  3060. return type;
  3061. }
  3062. }
  3063. /// <summary>
  3064. ///Represents the strongly named DataTable class.
  3065. ///</summary>
  3066. [global::System.Serializable()]
  3067. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3068. public partial class СтатусСотрудникаDataTable : global::System.Data.TypedTableBase<СтатусСотрудникаRow> {
  3069. private global::System.Data.DataColumn columnID_Статуса;
  3070. private global::System.Data.DataColumn columnНазваниеСтатусаСотрудника;
  3071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3073. public СтатусСотрудникаDataTable() {
  3074. this.TableName = "СтатусСотрудника";
  3075. this.BeginInit();
  3076. this.InitClass();
  3077. this.EndInit();
  3078. }
  3079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3081. internal СтатусСотрудникаDataTable(global::System.Data.DataTable table) {
  3082. this.TableName = table.TableName;
  3083. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3084. this.CaseSensitive = table.CaseSensitive;
  3085. }
  3086. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3087. this.Locale = table.Locale;
  3088. }
  3089. if ((table.Namespace != table.DataSet.Namespace)) {
  3090. this.Namespace = table.Namespace;
  3091. }
  3092. this.Prefix = table.Prefix;
  3093. this.MinimumCapacity = table.MinimumCapacity;
  3094. }
  3095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3097. protected СтатусСотрудникаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3098. base(info, context) {
  3099. this.InitVars();
  3100. }
  3101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3103. public global::System.Data.DataColumn ID_СтатусаColumn {
  3104. get {
  3105. return this.columnID_Статуса;
  3106. }
  3107. }
  3108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3110. public global::System.Data.DataColumn НазваниеСтатусаСотрудникаColumn {
  3111. get {
  3112. return this.columnНазваниеСтатусаСотрудника;
  3113. }
  3114. }
  3115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3117. [global::System.ComponentModel.Browsable(false)]
  3118. public int Count {
  3119. get {
  3120. return this.Rows.Count;
  3121. }
  3122. }
  3123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3125. public СтатусСотрудникаRow this[int index] {
  3126. get {
  3127. return ((СтатусСотрудникаRow)(this.Rows[index]));
  3128. }
  3129. }
  3130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3131. public event СтатусСотрудникаRowChangeEventHandler СтатусСотрудникаRowChanging;
  3132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3133. public event СтатусСотрудникаRowChangeEventHandler СтатусСотрудникаRowChanged;
  3134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3135. public event СтатусСотрудникаRowChangeEventHandler СтатусСотрудникаRowDeleting;
  3136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3137. public event СтатусСотрудникаRowChangeEventHandler СтатусСотрудникаRowDeleted;
  3138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3140. public void AddСтатусСотрудникаRow(СтатусСотрудникаRow row) {
  3141. this.Rows.Add(row);
  3142. }
  3143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3145. public СтатусСотрудникаRow AddСтатусСотрудникаRow(int ID_Статуса, string НазваниеСтатусаСотрудника) {
  3146. СтатусСотрудникаRow rowСтатусСотрудникаRow = ((СтатусСотрудникаRow)(this.NewRow()));
  3147. object[] columnValuesArray = new object[] {
  3148. ID_Статуса,
  3149. НазваниеСтатусаСотрудника};
  3150. rowСтатусСотрудникаRow.ItemArray = columnValuesArray;
  3151. this.Rows.Add(rowСтатусСотрудникаRow);
  3152. return rowСтатусСотрудникаRow;
  3153. }
  3154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3156. public СтатусСотрудникаRow FindByID_Статуса(int ID_Статуса) {
  3157. return ((СтатусСотрудникаRow)(this.Rows.Find(new object[] {
  3158. ID_Статуса})));
  3159. }
  3160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3162. public override global::System.Data.DataTable Clone() {
  3163. СтатусСотрудникаDataTable cln = ((СтатусСотрудникаDataTable)(base.Clone()));
  3164. cln.InitVars();
  3165. return cln;
  3166. }
  3167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3169. protected override global::System.Data.DataTable CreateInstance() {
  3170. return new СтатусСотрудникаDataTable();
  3171. }
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3174. internal void InitVars() {
  3175. this.columnID_Статуса = base.Columns["ID_Статуса"];
  3176. this.columnНазваниеСтатусаСотрудника = base.Columns["НазваниеСтатусаСотрудника"];
  3177. }
  3178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3180. private void InitClass() {
  3181. this.columnID_Статуса = new global::System.Data.DataColumn("ID_Статуса", typeof(int), null, global::System.Data.MappingType.Element);
  3182. base.Columns.Add(this.columnID_Статуса);
  3183. this.columnНазваниеСтатусаСотрудника = new global::System.Data.DataColumn("НазваниеСтатусаСотрудника", typeof(string), null, global::System.Data.MappingType.Element);
  3184. base.Columns.Add(this.columnНазваниеСтатусаСотрудника);
  3185. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3186. this.columnID_Статуса}, true));
  3187. this.columnID_Статуса.AllowDBNull = false;
  3188. this.columnID_Статуса.Unique = true;
  3189. this.columnНазваниеСтатусаСотрудника.MaxLength = 50;
  3190. }
  3191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3193. public СтатусСотрудникаRow NewСтатусСотрудникаRow() {
  3194. return ((СтатусСотрудникаRow)(this.NewRow()));
  3195. }
  3196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3198. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3199. return new СтатусСотрудникаRow(builder);
  3200. }
  3201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3203. protected override global::System.Type GetRowType() {
  3204. return typeof(СтатусСотрудникаRow);
  3205. }
  3206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3208. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3209. base.OnRowChanged(e);
  3210. if ((this.СтатусСотрудникаRowChanged != null)) {
  3211. this.СтатусСотрудникаRowChanged(this, new СтатусСотрудникаRowChangeEvent(((СтатусСотрудникаRow)(e.Row)), e.Action));
  3212. }
  3213. }
  3214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3216. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3217. base.OnRowChanging(e);
  3218. if ((this.СтатусСотрудникаRowChanging != null)) {
  3219. this.СтатусСотрудникаRowChanging(this, new СтатусСотрудникаRowChangeEvent(((СтатусСотрудникаRow)(e.Row)), e.Action));
  3220. }
  3221. }
  3222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3224. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3225. base.OnRowDeleted(e);
  3226. if ((this.СтатусСотрудникаRowDeleted != null)) {
  3227. this.СтатусСотрудникаRowDeleted(this, new СтатусСотрудникаRowChangeEvent(((СтатусСотрудникаRow)(e.Row)), e.Action));
  3228. }
  3229. }
  3230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3232. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3233. base.OnRowDeleting(e);
  3234. if ((this.СтатусСотрудникаRowDeleting != null)) {
  3235. this.СтатусСотрудникаRowDeleting(this, new СтатусСотрудникаRowChangeEvent(((СтатусСотрудникаRow)(e.Row)), e.Action));
  3236. }
  3237. }
  3238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3240. public void RemoveСтатусСотрудникаRow(СтатусСотрудникаRow row) {
  3241. this.Rows.Remove(row);
  3242. }
  3243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3245. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3246. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3247. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3248. lebcafeDataSet ds = new lebcafeDataSet();
  3249. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3250. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3251. any1.MinOccurs = new decimal(0);
  3252. any1.MaxOccurs = decimal.MaxValue;
  3253. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3254. sequence.Items.Add(any1);
  3255. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3256. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3257. any2.MinOccurs = new decimal(1);
  3258. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3259. sequence.Items.Add(any2);
  3260. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3261. attribute1.Name = "namespace";
  3262. attribute1.FixedValue = ds.Namespace;
  3263. type.Attributes.Add(attribute1);
  3264. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3265. attribute2.Name = "tableTypeName";
  3266. attribute2.FixedValue = "СтатусСотрудникаDataTable";
  3267. type.Attributes.Add(attribute2);
  3268. type.Particle = sequence;
  3269. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3270. if (xs.Contains(dsSchema.TargetNamespace)) {
  3271. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3272. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3273. try {
  3274. global::System.Xml.Schema.XmlSchema schema = null;
  3275. dsSchema.Write(s1);
  3276. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3277. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3278. s2.SetLength(0);
  3279. schema.Write(s2);
  3280. if ((s1.Length == s2.Length)) {
  3281. s1.Position = 0;
  3282. s2.Position = 0;
  3283. for (; ((s1.Position != s1.Length)
  3284. && (s1.ReadByte() == s2.ReadByte())); ) {
  3285. ;
  3286. }
  3287. if ((s1.Position == s1.Length)) {
  3288. return type;
  3289. }
  3290. }
  3291. }
  3292. }
  3293. finally {
  3294. if ((s1 != null)) {
  3295. s1.Close();
  3296. }
  3297. if ((s2 != null)) {
  3298. s2.Close();
  3299. }
  3300. }
  3301. }
  3302. xs.Add(dsSchema);
  3303. return type;
  3304. }
  3305. }
  3306. /// <summary>
  3307. ///Represents the strongly named DataTable class.
  3308. ///</summary>
  3309. [global::System.Serializable()]
  3310. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3311. public partial class СтоликиDataTable : global::System.Data.TypedTableBase<СтоликиRow> {
  3312. private global::System.Data.DataColumn columnID_Столика;
  3313. private global::System.Data.DataColumn columnНазвание;
  3314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3316. public СтоликиDataTable() {
  3317. this.TableName = "Столики";
  3318. this.BeginInit();
  3319. this.InitClass();
  3320. this.EndInit();
  3321. }
  3322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3324. internal СтоликиDataTable(global::System.Data.DataTable table) {
  3325. this.TableName = table.TableName;
  3326. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3327. this.CaseSensitive = table.CaseSensitive;
  3328. }
  3329. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3330. this.Locale = table.Locale;
  3331. }
  3332. if ((table.Namespace != table.DataSet.Namespace)) {
  3333. this.Namespace = table.Namespace;
  3334. }
  3335. this.Prefix = table.Prefix;
  3336. this.MinimumCapacity = table.MinimumCapacity;
  3337. }
  3338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3340. protected СтоликиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3341. base(info, context) {
  3342. this.InitVars();
  3343. }
  3344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3346. public global::System.Data.DataColumn ID_СтоликаColumn {
  3347. get {
  3348. return this.columnID_Столика;
  3349. }
  3350. }
  3351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3353. public global::System.Data.DataColumn НазваниеColumn {
  3354. get {
  3355. return this.columnНазвание;
  3356. }
  3357. }
  3358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3360. [global::System.ComponentModel.Browsable(false)]
  3361. public int Count {
  3362. get {
  3363. return this.Rows.Count;
  3364. }
  3365. }
  3366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3368. public СтоликиRow this[int index] {
  3369. get {
  3370. return ((СтоликиRow)(this.Rows[index]));
  3371. }
  3372. }
  3373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3374. public event СтоликиRowChangeEventHandler СтоликиRowChanging;
  3375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3376. public event СтоликиRowChangeEventHandler СтоликиRowChanged;
  3377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3378. public event СтоликиRowChangeEventHandler СтоликиRowDeleting;
  3379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3380. public event СтоликиRowChangeEventHandler СтоликиRowDeleted;
  3381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3383. public void AddСтоликиRow(СтоликиRow row) {
  3384. this.Rows.Add(row);
  3385. }
  3386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3388. public СтоликиRow AddСтоликиRow(int ID_Столика, string Название) {
  3389. СтоликиRow rowСтоликиRow = ((СтоликиRow)(this.NewRow()));
  3390. object[] columnValuesArray = new object[] {
  3391. ID_Столика,
  3392. Название};
  3393. rowСтоликиRow.ItemArray = columnValuesArray;
  3394. this.Rows.Add(rowСтоликиRow);
  3395. return rowСтоликиRow;
  3396. }
  3397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3399. public СтоликиRow FindByID_Столика(int ID_Столика) {
  3400. return ((СтоликиRow)(this.Rows.Find(new object[] {
  3401. ID_Столика})));
  3402. }
  3403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3405. public override global::System.Data.DataTable Clone() {
  3406. СтоликиDataTable cln = ((СтоликиDataTable)(base.Clone()));
  3407. cln.InitVars();
  3408. return cln;
  3409. }
  3410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3412. protected override global::System.Data.DataTable CreateInstance() {
  3413. return new СтоликиDataTable();
  3414. }
  3415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3417. internal void InitVars() {
  3418. this.columnID_Столика = base.Columns["ID_Столика"];
  3419. this.columnНазвание = base.Columns["Название"];
  3420. }
  3421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3423. private void InitClass() {
  3424. this.columnID_Столика = new global::System.Data.DataColumn("ID_Столика", typeof(int), null, global::System.Data.MappingType.Element);
  3425. base.Columns.Add(this.columnID_Столика);
  3426. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  3427. base.Columns.Add(this.columnНазвание);
  3428. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3429. this.columnID_Столика}, true));
  3430. this.columnID_Столика.AllowDBNull = false;
  3431. this.columnID_Столика.Unique = true;
  3432. this.columnНазвание.MaxLength = 50;
  3433. }
  3434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3436. public СтоликиRow NewСтоликиRow() {
  3437. return ((СтоликиRow)(this.NewRow()));
  3438. }
  3439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3441. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3442. return new СтоликиRow(builder);
  3443. }
  3444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3446. protected override global::System.Type GetRowType() {
  3447. return typeof(СтоликиRow);
  3448. }
  3449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3451. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3452. base.OnRowChanged(e);
  3453. if ((this.СтоликиRowChanged != null)) {
  3454. this.СтоликиRowChanged(this, new СтоликиRowChangeEvent(((СтоликиRow)(e.Row)), e.Action));
  3455. }
  3456. }
  3457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3459. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3460. base.OnRowChanging(e);
  3461. if ((this.СтоликиRowChanging != null)) {
  3462. this.СтоликиRowChanging(this, new СтоликиRowChangeEvent(((СтоликиRow)(e.Row)), e.Action));
  3463. }
  3464. }
  3465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3467. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3468. base.OnRowDeleted(e);
  3469. if ((this.СтоликиRowDeleted != null)) {
  3470. this.СтоликиRowDeleted(this, new СтоликиRowChangeEvent(((СтоликиRow)(e.Row)), e.Action));
  3471. }
  3472. }
  3473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3475. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3476. base.OnRowDeleting(e);
  3477. if ((this.СтоликиRowDeleting != null)) {
  3478. this.СтоликиRowDeleting(this, new СтоликиRowChangeEvent(((СтоликиRow)(e.Row)), e.Action));
  3479. }
  3480. }
  3481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3483. public void RemoveСтоликиRow(СтоликиRow row) {
  3484. this.Rows.Remove(row);
  3485. }
  3486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3488. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3489. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3490. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3491. lebcafeDataSet ds = new lebcafeDataSet();
  3492. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3493. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3494. any1.MinOccurs = new decimal(0);
  3495. any1.MaxOccurs = decimal.MaxValue;
  3496. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3497. sequence.Items.Add(any1);
  3498. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3499. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3500. any2.MinOccurs = new decimal(1);
  3501. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3502. sequence.Items.Add(any2);
  3503. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3504. attribute1.Name = "namespace";
  3505. attribute1.FixedValue = ds.Namespace;
  3506. type.Attributes.Add(attribute1);
  3507. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3508. attribute2.Name = "tableTypeName";
  3509. attribute2.FixedValue = "СтоликиDataTable";
  3510. type.Attributes.Add(attribute2);
  3511. type.Particle = sequence;
  3512. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3513. if (xs.Contains(dsSchema.TargetNamespace)) {
  3514. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3515. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3516. try {
  3517. global::System.Xml.Schema.XmlSchema schema = null;
  3518. dsSchema.Write(s1);
  3519. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3520. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3521. s2.SetLength(0);
  3522. schema.Write(s2);
  3523. if ((s1.Length == s2.Length)) {
  3524. s1.Position = 0;
  3525. s2.Position = 0;
  3526. for (; ((s1.Position != s1.Length)
  3527. && (s1.ReadByte() == s2.ReadByte())); ) {
  3528. ;
  3529. }
  3530. if ((s1.Position == s1.Length)) {
  3531. return type;
  3532. }
  3533. }
  3534. }
  3535. }
  3536. finally {
  3537. if ((s1 != null)) {
  3538. s1.Close();
  3539. }
  3540. if ((s2 != null)) {
  3541. s2.Close();
  3542. }
  3543. }
  3544. }
  3545. xs.Add(dsSchema);
  3546. return type;
  3547. }
  3548. }
  3549. /// <summary>
  3550. ///Represents the strongly named DataTable class.
  3551. ///</summary>
  3552. [global::System.Serializable()]
  3553. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3554. public partial class RABOCHIEAdminDataTable : global::System.Data.TypedTableBase<RABOCHIEAdminRow> {
  3555. private global::System.Data.DataColumn columnID_Пользователя;
  3556. private global::System.Data.DataColumn columnФамилия;
  3557. private global::System.Data.DataColumn columnНазвание;
  3558. private global::System.Data.DataColumn columnНазваниеСтатусаСотрудника;
  3559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3561. public RABOCHIEAdminDataTable() {
  3562. this.TableName = "RABOCHIEAdmin";
  3563. this.BeginInit();
  3564. this.InitClass();
  3565. this.EndInit();
  3566. }
  3567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3569. internal RABOCHIEAdminDataTable(global::System.Data.DataTable table) {
  3570. this.TableName = table.TableName;
  3571. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3572. this.CaseSensitive = table.CaseSensitive;
  3573. }
  3574. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3575. this.Locale = table.Locale;
  3576. }
  3577. if ((table.Namespace != table.DataSet.Namespace)) {
  3578. this.Namespace = table.Namespace;
  3579. }
  3580. this.Prefix = table.Prefix;
  3581. this.MinimumCapacity = table.MinimumCapacity;
  3582. }
  3583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3585. protected RABOCHIEAdminDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3586. base(info, context) {
  3587. this.InitVars();
  3588. }
  3589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3591. public global::System.Data.DataColumn ID_ПользователяColumn {
  3592. get {
  3593. return this.columnID_Пользователя;
  3594. }
  3595. }
  3596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3598. public global::System.Data.DataColumn ФамилияColumn {
  3599. get {
  3600. return this.columnФамилия;
  3601. }
  3602. }
  3603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3605. public global::System.Data.DataColumn НазваниеColumn {
  3606. get {
  3607. return this.columnНазвание;
  3608. }
  3609. }
  3610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3612. public global::System.Data.DataColumn НазваниеСтатусаСотрудникаColumn {
  3613. get {
  3614. return this.columnНазваниеСтатусаСотрудника;
  3615. }
  3616. }
  3617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3619. [global::System.ComponentModel.Browsable(false)]
  3620. public int Count {
  3621. get {
  3622. return this.Rows.Count;
  3623. }
  3624. }
  3625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3627. public RABOCHIEAdminRow this[int index] {
  3628. get {
  3629. return ((RABOCHIEAdminRow)(this.Rows[index]));
  3630. }
  3631. }
  3632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3633. public event RABOCHIEAdminRowChangeEventHandler RABOCHIEAdminRowChanging;
  3634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3635. public event RABOCHIEAdminRowChangeEventHandler RABOCHIEAdminRowChanged;
  3636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3637. public event RABOCHIEAdminRowChangeEventHandler RABOCHIEAdminRowDeleting;
  3638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3639. public event RABOCHIEAdminRowChangeEventHandler RABOCHIEAdminRowDeleted;
  3640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3642. public void AddRABOCHIEAdminRow(RABOCHIEAdminRow row) {
  3643. this.Rows.Add(row);
  3644. }
  3645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3647. public RABOCHIEAdminRow AddRABOCHIEAdminRow(int ID_Пользователя, string Фамилия, string Название, string НазваниеСтатусаСотрудника) {
  3648. RABOCHIEAdminRow rowRABOCHIEAdminRow = ((RABOCHIEAdminRow)(this.NewRow()));
  3649. object[] columnValuesArray = new object[] {
  3650. ID_Пользователя,
  3651. Фамилия,
  3652. Название,
  3653. НазваниеСтатусаСотрудника};
  3654. rowRABOCHIEAdminRow.ItemArray = columnValuesArray;
  3655. this.Rows.Add(rowRABOCHIEAdminRow);
  3656. return rowRABOCHIEAdminRow;
  3657. }
  3658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3660. public RABOCHIEAdminRow FindByID_Пользователя(int ID_Пользователя) {
  3661. return ((RABOCHIEAdminRow)(this.Rows.Find(new object[] {
  3662. ID_Пользователя})));
  3663. }
  3664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3666. public override global::System.Data.DataTable Clone() {
  3667. RABOCHIEAdminDataTable cln = ((RABOCHIEAdminDataTable)(base.Clone()));
  3668. cln.InitVars();
  3669. return cln;
  3670. }
  3671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3673. protected override global::System.Data.DataTable CreateInstance() {
  3674. return new RABOCHIEAdminDataTable();
  3675. }
  3676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3678. internal void InitVars() {
  3679. this.columnID_Пользователя = base.Columns["ID_Пользователя"];
  3680. this.columnФамилия = base.Columns["Фамилия"];
  3681. this.columnНазвание = base.Columns["Название"];
  3682. this.columnНазваниеСтатусаСотрудника = base.Columns["НазваниеСтатусаСотрудника"];
  3683. }
  3684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3686. private void InitClass() {
  3687. this.columnID_Пользователя = new global::System.Data.DataColumn("ID_Пользователя", typeof(int), null, global::System.Data.MappingType.Element);
  3688. base.Columns.Add(this.columnID_Пользователя);
  3689. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  3690. base.Columns.Add(this.columnФамилия);
  3691. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  3692. base.Columns.Add(this.columnНазвание);
  3693. this.columnНазваниеСтатусаСотрудника = new global::System.Data.DataColumn("НазваниеСтатусаСотрудника", typeof(string), null, global::System.Data.MappingType.Element);
  3694. base.Columns.Add(this.columnНазваниеСтатусаСотрудника);
  3695. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3696. this.columnID_Пользователя}, true));
  3697. this.columnID_Пользователя.AllowDBNull = false;
  3698. this.columnID_Пользователя.Unique = true;
  3699. this.columnФамилия.MaxLength = 50;
  3700. this.columnНазвание.MaxLength = 50;
  3701. this.columnНазваниеСтатусаСотрудника.MaxLength = 50;
  3702. }
  3703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3705. public RABOCHIEAdminRow NewRABOCHIEAdminRow() {
  3706. return ((RABOCHIEAdminRow)(this.NewRow()));
  3707. }
  3708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3710. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3711. return new RABOCHIEAdminRow(builder);
  3712. }
  3713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3715. protected override global::System.Type GetRowType() {
  3716. return typeof(RABOCHIEAdminRow);
  3717. }
  3718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3720. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3721. base.OnRowChanged(e);
  3722. if ((this.RABOCHIEAdminRowChanged != null)) {
  3723. this.RABOCHIEAdminRowChanged(this, new RABOCHIEAdminRowChangeEvent(((RABOCHIEAdminRow)(e.Row)), e.Action));
  3724. }
  3725. }
  3726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3728. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3729. base.OnRowChanging(e);
  3730. if ((this.RABOCHIEAdminRowChanging != null)) {
  3731. this.RABOCHIEAdminRowChanging(this, new RABOCHIEAdminRowChangeEvent(((RABOCHIEAdminRow)(e.Row)), e.Action));
  3732. }
  3733. }
  3734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3736. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3737. base.OnRowDeleted(e);
  3738. if ((this.RABOCHIEAdminRowDeleted != null)) {
  3739. this.RABOCHIEAdminRowDeleted(this, new RABOCHIEAdminRowChangeEvent(((RABOCHIEAdminRow)(e.Row)), e.Action));
  3740. }
  3741. }
  3742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3744. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3745. base.OnRowDeleting(e);
  3746. if ((this.RABOCHIEAdminRowDeleting != null)) {
  3747. this.RABOCHIEAdminRowDeleting(this, new RABOCHIEAdminRowChangeEvent(((RABOCHIEAdminRow)(e.Row)), e.Action));
  3748. }
  3749. }
  3750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3752. public void RemoveRABOCHIEAdminRow(RABOCHIEAdminRow row) {
  3753. this.Rows.Remove(row);
  3754. }
  3755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3757. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3758. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3759. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3760. lebcafeDataSet ds = new lebcafeDataSet();
  3761. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3762. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3763. any1.MinOccurs = new decimal(0);
  3764. any1.MaxOccurs = decimal.MaxValue;
  3765. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3766. sequence.Items.Add(any1);
  3767. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3768. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3769. any2.MinOccurs = new decimal(1);
  3770. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3771. sequence.Items.Add(any2);
  3772. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3773. attribute1.Name = "namespace";
  3774. attribute1.FixedValue = ds.Namespace;
  3775. type.Attributes.Add(attribute1);
  3776. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3777. attribute2.Name = "tableTypeName";
  3778. attribute2.FixedValue = "RABOCHIEAdminDataTable";
  3779. type.Attributes.Add(attribute2);
  3780. type.Particle = sequence;
  3781. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3782. if (xs.Contains(dsSchema.TargetNamespace)) {
  3783. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3784. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3785. try {
  3786. global::System.Xml.Schema.XmlSchema schema = null;
  3787. dsSchema.Write(s1);
  3788. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3789. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3790. s2.SetLength(0);
  3791. schema.Write(s2);
  3792. if ((s1.Length == s2.Length)) {
  3793. s1.Position = 0;
  3794. s2.Position = 0;
  3795. for (; ((s1.Position != s1.Length)
  3796. && (s1.ReadByte() == s2.ReadByte())); ) {
  3797. ;
  3798. }
  3799. if ((s1.Position == s1.Length)) {
  3800. return type;
  3801. }
  3802. }
  3803. }
  3804. }
  3805. finally {
  3806. if ((s1 != null)) {
  3807. s1.Close();
  3808. }
  3809. if ((s2 != null)) {
  3810. s2.Close();
  3811. }
  3812. }
  3813. }
  3814. xs.Add(dsSchema);
  3815. return type;
  3816. }
  3817. }
  3818. /// <summary>
  3819. ///Represents strongly named DataRow class.
  3820. ///</summary>
  3821. public partial class БлюдаНапиткиRow : global::System.Data.DataRow {
  3822. private БлюдаНапиткиDataTable tableБлюдаНапитки;
  3823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3825. internal БлюдаНапиткиRow(global::System.Data.DataRowBuilder rb) :
  3826. base(rb) {
  3827. this.tableБлюдаНапитки = ((БлюдаНапиткиDataTable)(this.Table));
  3828. }
  3829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3831. public int ID_БлюдаНапитка {
  3832. get {
  3833. return ((int)(this[this.tableБлюдаНапитки.ID_БлюдаНапиткаColumn]));
  3834. }
  3835. set {
  3836. this[this.tableБлюдаНапитки.ID_БлюдаНапиткаColumn] = value;
  3837. }
  3838. }
  3839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3841. public string Название {
  3842. get {
  3843. try {
  3844. return ((string)(this[this.tableБлюдаНапитки.НазваниеColumn]));
  3845. }
  3846. catch (global::System.InvalidCastException e) {
  3847. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'БлюдаНапитки\' равно DBNull.", e);
  3848. }
  3849. }
  3850. set {
  3851. this[this.tableБлюдаНапитки.НазваниеColumn] = value;
  3852. }
  3853. }
  3854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3856. public int Цена {
  3857. get {
  3858. try {
  3859. return ((int)(this[this.tableБлюдаНапитки.ЦенаColumn]));
  3860. }
  3861. catch (global::System.InvalidCastException e) {
  3862. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'БлюдаНапитки\' равно DBNull.", e);
  3863. }
  3864. }
  3865. set {
  3866. this[this.tableБлюдаНапитки.ЦенаColumn] = value;
  3867. }
  3868. }
  3869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3871. public bool IsНазваниеNull() {
  3872. return this.IsNull(this.tableБлюдаНапитки.НазваниеColumn);
  3873. }
  3874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3876. public void SetНазваниеNull() {
  3877. this[this.tableБлюдаНапитки.НазваниеColumn] = global::System.Convert.DBNull;
  3878. }
  3879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3881. public bool IsЦенаNull() {
  3882. return this.IsNull(this.tableБлюдаНапитки.ЦенаColumn);
  3883. }
  3884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3886. public void SetЦенаNull() {
  3887. this[this.tableБлюдаНапитки.ЦенаColumn] = global::System.Convert.DBNull;
  3888. }
  3889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3891. public Заказанные_блюдаRow[] GetЗаказанные_блюдаRows() {
  3892. if ((this.Table.ChildRelations["FK_Заказанные блюда_БлюдаНапитки"] == null)) {
  3893. return new Заказанные_блюдаRow[0];
  3894. }
  3895. else {
  3896. return ((Заказанные_блюдаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказанные блюда_БлюдаНапитки"])));
  3897. }
  3898. }
  3899. }
  3900. /// <summary>
  3901. ///Represents strongly named DataRow class.
  3902. ///</summary>
  3903. public partial class Заказанные_блюдаRow : global::System.Data.DataRow {
  3904. private Заказанные_блюдаDataTable tableЗаказанные_блюда;
  3905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3907. internal Заказанные_блюдаRow(global::System.Data.DataRowBuilder rb) :
  3908. base(rb) {
  3909. this.tableЗаказанные_блюда = ((Заказанные_блюдаDataTable)(this.Table));
  3910. }
  3911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3913. public int ID_Заказа {
  3914. get {
  3915. return ((int)(this[this.tableЗаказанные_блюда.ID_ЗаказаColumn]));
  3916. }
  3917. set {
  3918. this[this.tableЗаказанные_блюда.ID_ЗаказаColumn] = value;
  3919. }
  3920. }
  3921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3923. public int ID_Блюда {
  3924. get {
  3925. try {
  3926. return ((int)(this[this.tableЗаказанные_блюда.ID_БлюдаColumn]));
  3927. }
  3928. catch (global::System.InvalidCastException e) {
  3929. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Блюда\' в таблице \'Заказанные блюда\' равно DBNull.", e);
  3930. }
  3931. }
  3932. set {
  3933. this[this.tableЗаказанные_блюда.ID_БлюдаColumn] = value;
  3934. }
  3935. }
  3936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3938. public int Количество {
  3939. get {
  3940. try {
  3941. return ((int)(this[this.tableЗаказанные_блюда.КоличествоColumn]));
  3942. }
  3943. catch (global::System.InvalidCastException e) {
  3944. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Заказанные блюда\' равно DBNull.", e);
  3945. }
  3946. }
  3947. set {
  3948. this[this.tableЗаказанные_блюда.КоличествоColumn] = value;
  3949. }
  3950. }
  3951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3953. public БлюдаНапиткиRow БлюдаНапиткиRow {
  3954. get {
  3955. return ((БлюдаНапиткиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказанные блюда_БлюдаНапитки"])));
  3956. }
  3957. set {
  3958. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказанные блюда_БлюдаНапитки"]);
  3959. }
  3960. }
  3961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3963. public ЗаказыRow ЗаказыRow {
  3964. get {
  3965. return ((ЗаказыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказанные блюда_Заказы"])));
  3966. }
  3967. set {
  3968. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказанные блюда_Заказы"]);
  3969. }
  3970. }
  3971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3973. public bool IsID_БлюдаNull() {
  3974. return this.IsNull(this.tableЗаказанные_блюда.ID_БлюдаColumn);
  3975. }
  3976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3978. public void SetID_БлюдаNull() {
  3979. this[this.tableЗаказанные_блюда.ID_БлюдаColumn] = global::System.Convert.DBNull;
  3980. }
  3981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3983. public bool IsКоличествоNull() {
  3984. return this.IsNull(this.tableЗаказанные_блюда.КоличествоColumn);
  3985. }
  3986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3988. public void SetКоличествоNull() {
  3989. this[this.tableЗаказанные_блюда.КоличествоColumn] = global::System.Convert.DBNull;
  3990. }
  3991. }
  3992. /// <summary>
  3993. ///Represents strongly named DataRow class.
  3994. ///</summary>
  3995. public partial class ЗаказыRow : global::System.Data.DataRow {
  3996. private ЗаказыDataTable tableЗаказы;
  3997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3999. internal ЗаказыRow(global::System.Data.DataRowBuilder rb) :
  4000. base(rb) {
  4001. this.tableЗаказы = ((ЗаказыDataTable)(this.Table));
  4002. }
  4003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4005. public int ID_Заказа {
  4006. get {
  4007. return ((int)(this[this.tableЗаказы.ID_ЗаказаColumn]));
  4008. }
  4009. set {
  4010. this[this.tableЗаказы.ID_ЗаказаColumn] = value;
  4011. }
  4012. }
  4013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4015. public int ID_Столика {
  4016. get {
  4017. try {
  4018. return ((int)(this[this.tableЗаказы.ID_СтоликаColumn]));
  4019. }
  4020. catch (global::System.InvalidCastException e) {
  4021. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Столика\' в таблице \'Заказы\' равно DBNull.", e);
  4022. }
  4023. }
  4024. set {
  4025. this[this.tableЗаказы.ID_СтоликаColumn] = value;
  4026. }
  4027. }
  4028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4030. public int КоличествоКлиентов {
  4031. get {
  4032. try {
  4033. return ((int)(this[this.tableЗаказы.КоличествоКлиентовColumn]));
  4034. }
  4035. catch (global::System.InvalidCastException e) {
  4036. throw new global::System.Data.StrongTypingException("Значение для столбца \'КоличествоКлиентов\' в таблице \'Заказы\' равно DBNull.", e);
  4037. }
  4038. }
  4039. set {
  4040. this[this.tableЗаказы.КоличествоКлиентовColumn] = value;
  4041. }
  4042. }
  4043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4045. public int ID_Статуса {
  4046. get {
  4047. try {
  4048. return ((int)(this[this.tableЗаказы.ID_СтатусаColumn]));
  4049. }
  4050. catch (global::System.InvalidCastException e) {
  4051. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Статуса\' в таблице \'Заказы\' равно DBNull.", e);
  4052. }
  4053. }
  4054. set {
  4055. this[this.tableЗаказы.ID_СтатусаColumn] = value;
  4056. }
  4057. }
  4058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4060. public System.DateTime ДатаЗаказа {
  4061. get {
  4062. try {
  4063. return ((global::System.DateTime)(this[this.tableЗаказы.ДатаЗаказаColumn]));
  4064. }
  4065. catch (global::System.InvalidCastException e) {
  4066. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаЗаказа\' в таблице \'Заказы\' равно DBNull.", e);
  4067. }
  4068. }
  4069. set {
  4070. this[this.tableЗаказы.ДатаЗаказаColumn] = value;
  4071. }
  4072. }
  4073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4075. public decimal СуммаЗаказа {
  4076. get {
  4077. try {
  4078. return ((decimal)(this[this.tableЗаказы.СуммаЗаказаColumn]));
  4079. }
  4080. catch (global::System.InvalidCastException e) {
  4081. throw new global::System.Data.StrongTypingException("Значение для столбца \'СуммаЗаказа\' в таблице \'Заказы\' равно DBNull.", e);
  4082. }
  4083. }
  4084. set {
  4085. this[this.tableЗаказы.СуммаЗаказаColumn] = value;
  4086. }
  4087. }
  4088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4090. public int ID_Смены {
  4091. get {
  4092. try {
  4093. return ((int)(this[this.tableЗаказы.ID_СменыColumn]));
  4094. }
  4095. catch (global::System.InvalidCastException e) {
  4096. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Смены\' в таблице \'Заказы\' равно DBNull.", e);
  4097. }
  4098. }
  4099. set {
  4100. this[this.tableЗаказы.ID_СменыColumn] = value;
  4101. }
  4102. }
  4103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4105. public СтатусЗаказаRow СтатусЗаказаRow {
  4106. get {
  4107. return ((СтатусЗаказаRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_СтатусЗаказа"])));
  4108. }
  4109. set {
  4110. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_СтатусЗаказа"]);
  4111. }
  4112. }
  4113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4115. public СтоликиRow СтоликиRow {
  4116. get {
  4117. return ((СтоликиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_Столики"])));
  4118. }
  4119. set {
  4120. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_Столики"]);
  4121. }
  4122. }
  4123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4125. public СменыRow СменыRow {
  4126. get {
  4127. return ((СменыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_Смены"])));
  4128. }
  4129. set {
  4130. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_Смены"]);
  4131. }
  4132. }
  4133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4135. public bool IsID_СтоликаNull() {
  4136. return this.IsNull(this.tableЗаказы.ID_СтоликаColumn);
  4137. }
  4138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4140. public void SetID_СтоликаNull() {
  4141. this[this.tableЗаказы.ID_СтоликаColumn] = global::System.Convert.DBNull;
  4142. }
  4143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4145. public bool IsКоличествоКлиентовNull() {
  4146. return this.IsNull(this.tableЗаказы.КоличествоКлиентовColumn);
  4147. }
  4148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4150. public void SetКоличествоКлиентовNull() {
  4151. this[this.tableЗаказы.КоличествоКлиентовColumn] = global::System.Convert.DBNull;
  4152. }
  4153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4155. public bool IsID_СтатусаNull() {
  4156. return this.IsNull(this.tableЗаказы.ID_СтатусаColumn);
  4157. }
  4158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4160. public void SetID_СтатусаNull() {
  4161. this[this.tableЗаказы.ID_СтатусаColumn] = global::System.Convert.DBNull;
  4162. }
  4163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4165. public bool IsДатаЗаказаNull() {
  4166. return this.IsNull(this.tableЗаказы.ДатаЗаказаColumn);
  4167. }
  4168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4170. public void SetДатаЗаказаNull() {
  4171. this[this.tableЗаказы.ДатаЗаказаColumn] = global::System.Convert.DBNull;
  4172. }
  4173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4175. public bool IsСуммаЗаказаNull() {
  4176. return this.IsNull(this.tableЗаказы.СуммаЗаказаColumn);
  4177. }
  4178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4180. public void SetСуммаЗаказаNull() {
  4181. this[this.tableЗаказы.СуммаЗаказаColumn] = global::System.Convert.DBNull;
  4182. }
  4183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4185. public bool IsID_СменыNull() {
  4186. return this.IsNull(this.tableЗаказы.ID_СменыColumn);
  4187. }
  4188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4190. public void SetID_СменыNull() {
  4191. this[this.tableЗаказы.ID_СменыColumn] = global::System.Convert.DBNull;
  4192. }
  4193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4195. public Заказанные_блюдаRow[] GetЗаказанные_блюдаRows() {
  4196. if ((this.Table.ChildRelations["FK_Заказанные блюда_Заказы"] == null)) {
  4197. return new Заказанные_блюдаRow[0];
  4198. }
  4199. else {
  4200. return ((Заказанные_блюдаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказанные блюда_Заказы"])));
  4201. }
  4202. }
  4203. }
  4204. /// <summary>
  4205. ///Represents strongly named DataRow class.
  4206. ///</summary>
  4207. public partial class ОфициантыRow : global::System.Data.DataRow {
  4208. private ОфициантыDataTable tableОфицианты;
  4209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4211. internal ОфициантыRow(global::System.Data.DataRowBuilder rb) :
  4212. base(rb) {
  4213. this.tableОфицианты = ((ОфициантыDataTable)(this.Table));
  4214. }
  4215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4217. public int ID_Официанта {
  4218. get {
  4219. return ((int)(this[this.tableОфицианты.ID_ОфициантаColumn]));
  4220. }
  4221. set {
  4222. this[this.tableОфицианты.ID_ОфициантаColumn] = value;
  4223. }
  4224. }
  4225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4227. public string Фамилия {
  4228. get {
  4229. try {
  4230. return ((string)(this[this.tableОфицианты.ФамилияColumn]));
  4231. }
  4232. catch (global::System.InvalidCastException e) {
  4233. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Официанты\' равно DBNull.", e);
  4234. }
  4235. }
  4236. set {
  4237. this[this.tableОфицианты.ФамилияColumn] = value;
  4238. }
  4239. }
  4240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4242. public string Имя {
  4243. get {
  4244. try {
  4245. return ((string)(this[this.tableОфицианты.ИмяColumn]));
  4246. }
  4247. catch (global::System.InvalidCastException e) {
  4248. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'Официанты\' равно DBNull.", e);
  4249. }
  4250. }
  4251. set {
  4252. this[this.tableОфицианты.ИмяColumn] = value;
  4253. }
  4254. }
  4255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4257. public ПользователиRow ПользователиRow {
  4258. get {
  4259. return ((ПользователиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Официанты_Пользователи"])));
  4260. }
  4261. set {
  4262. this.SetParentRow(value, this.Table.ParentRelations["FK_Официанты_Пользователи"]);
  4263. }
  4264. }
  4265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4267. public bool IsФамилияNull() {
  4268. return this.IsNull(this.tableОфицианты.ФамилияColumn);
  4269. }
  4270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4272. public void SetФамилияNull() {
  4273. this[this.tableОфицианты.ФамилияColumn] = global::System.Convert.DBNull;
  4274. }
  4275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4277. public bool IsИмяNull() {
  4278. return this.IsNull(this.tableОфицианты.ИмяColumn);
  4279. }
  4280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4282. public void SetИмяNull() {
  4283. this[this.tableОфицианты.ИмяColumn] = global::System.Convert.DBNull;
  4284. }
  4285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4287. public ПользователиRow[] GetПользователиRows() {
  4288. if ((this.Table.ChildRelations["FK_Пользователи_Официанты"] == null)) {
  4289. return new ПользователиRow[0];
  4290. }
  4291. else {
  4292. return ((ПользователиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Пользователи_Официанты"])));
  4293. }
  4294. }
  4295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4297. public СменыRow[] GetСменыRows() {
  4298. if ((this.Table.ChildRelations["FK_Смены_Официанты"] == null)) {
  4299. return new СменыRow[0];
  4300. }
  4301. else {
  4302. return ((СменыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Смены_Официанты"])));
  4303. }
  4304. }
  4305. }
  4306. /// <summary>
  4307. ///Represents strongly named DataRow class.
  4308. ///</summary>
  4309. public partial class ПовараRow : global::System.Data.DataRow {
  4310. private ПовараDataTable tableПовара;
  4311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4313. internal ПовараRow(global::System.Data.DataRowBuilder rb) :
  4314. base(rb) {
  4315. this.tableПовара = ((ПовараDataTable)(this.Table));
  4316. }
  4317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4319. public int ID_Повара {
  4320. get {
  4321. return ((int)(this[this.tableПовара.ID_ПовараColumn]));
  4322. }
  4323. set {
  4324. this[this.tableПовара.ID_ПовараColumn] = value;
  4325. }
  4326. }
  4327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4329. public string Фамилия {
  4330. get {
  4331. try {
  4332. return ((string)(this[this.tableПовара.ФамилияColumn]));
  4333. }
  4334. catch (global::System.InvalidCastException e) {
  4335. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Повара\' равно DBNull.", e);
  4336. }
  4337. }
  4338. set {
  4339. this[this.tableПовара.ФамилияColumn] = value;
  4340. }
  4341. }
  4342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4344. public string Имя {
  4345. get {
  4346. try {
  4347. return ((string)(this[this.tableПовара.ИмяColumn]));
  4348. }
  4349. catch (global::System.InvalidCastException e) {
  4350. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'Повара\' равно DBNull.", e);
  4351. }
  4352. }
  4353. set {
  4354. this[this.tableПовара.ИмяColumn] = value;
  4355. }
  4356. }
  4357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4359. public ПользователиRow ПользователиRow {
  4360. get {
  4361. return ((ПользователиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Повара_Пользователи"])));
  4362. }
  4363. set {
  4364. this.SetParentRow(value, this.Table.ParentRelations["FK_Повара_Пользователи"]);
  4365. }
  4366. }
  4367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4369. public bool IsФамилияNull() {
  4370. return this.IsNull(this.tableПовара.ФамилияColumn);
  4371. }
  4372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4374. public void SetФамилияNull() {
  4375. this[this.tableПовара.ФамилияColumn] = global::System.Convert.DBNull;
  4376. }
  4377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4379. public bool IsИмяNull() {
  4380. return this.IsNull(this.tableПовара.ИмяColumn);
  4381. }
  4382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4384. public void SetИмяNull() {
  4385. this[this.tableПовара.ИмяColumn] = global::System.Convert.DBNull;
  4386. }
  4387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4389. public ПользователиRow[] GetПользователиRows() {
  4390. if ((this.Table.ChildRelations["FK_Пользователи_Повара"] == null)) {
  4391. return new ПользователиRow[0];
  4392. }
  4393. else {
  4394. return ((ПользователиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Пользователи_Повара"])));
  4395. }
  4396. }
  4397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4399. public СменыRow[] GetСменыRows() {
  4400. if ((this.Table.ChildRelations["FK_Смены_Повара"] == null)) {
  4401. return new СменыRow[0];
  4402. }
  4403. else {
  4404. return ((СменыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Смены_Повара"])));
  4405. }
  4406. }
  4407. }
  4408. /// <summary>
  4409. ///Represents strongly named DataRow class.
  4410. ///</summary>
  4411. public partial class ПользователиRow : global::System.Data.DataRow {
  4412. private ПользователиDataTable tableПользователи;
  4413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4415. internal ПользователиRow(global::System.Data.DataRowBuilder rb) :
  4416. base(rb) {
  4417. this.tableПользователи = ((ПользователиDataTable)(this.Table));
  4418. }
  4419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4421. public int ID_Пользователя {
  4422. get {
  4423. return ((int)(this[this.tableПользователи.ID_ПользователяColumn]));
  4424. }
  4425. set {
  4426. this[this.tableПользователи.ID_ПользователяColumn] = value;
  4427. }
  4428. }
  4429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4431. public string Логин {
  4432. get {
  4433. try {
  4434. return ((string)(this[this.tableПользователи.ЛогинColumn]));
  4435. }
  4436. catch (global::System.InvalidCastException e) {
  4437. throw new global::System.Data.StrongTypingException("Значение для столбца \'Логин\' в таблице \'Пользователи\' равно DBNull.", e);
  4438. }
  4439. }
  4440. set {
  4441. this[this.tableПользователи.ЛогинColumn] = value;
  4442. }
  4443. }
  4444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4446. public string Пароль {
  4447. get {
  4448. try {
  4449. return ((string)(this[this.tableПользователи.ПарольColumn]));
  4450. }
  4451. catch (global::System.InvalidCastException e) {
  4452. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пароль\' в таблице \'Пользователи\' равно DBNull.", e);
  4453. }
  4454. }
  4455. set {
  4456. this[this.tableПользователи.ПарольColumn] = value;
  4457. }
  4458. }
  4459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4461. public string Фамилия {
  4462. get {
  4463. try {
  4464. return ((string)(this[this.tableПользователи.ФамилияColumn]));
  4465. }
  4466. catch (global::System.InvalidCastException e) {
  4467. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Пользователи\' равно DBNull.", e);
  4468. }
  4469. }
  4470. set {
  4471. this[this.tableПользователи.ФамилияColumn] = value;
  4472. }
  4473. }
  4474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4476. public int ID_Роли {
  4477. get {
  4478. try {
  4479. return ((int)(this[this.tableПользователи.ID_РолиColumn]));
  4480. }
  4481. catch (global::System.InvalidCastException e) {
  4482. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Роли\' в таблице \'Пользователи\' равно DBNull.", e);
  4483. }
  4484. }
  4485. set {
  4486. this[this.tableПользователи.ID_РолиColumn] = value;
  4487. }
  4488. }
  4489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4491. public int ID_Статуса {
  4492. get {
  4493. try {
  4494. return ((int)(this[this.tableПользователи.ID_СтатусаColumn]));
  4495. }
  4496. catch (global::System.InvalidCastException e) {
  4497. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Статуса\' в таблице \'Пользователи\' равно DBNull.", e);
  4498. }
  4499. }
  4500. set {
  4501. this[this.tableПользователи.ID_СтатусаColumn] = value;
  4502. }
  4503. }
  4504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4506. public ОфициантыRow ОфициантыRow {
  4507. get {
  4508. return ((ОфициантыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Пользователи_Официанты"])));
  4509. }
  4510. set {
  4511. this.SetParentRow(value, this.Table.ParentRelations["FK_Пользователи_Официанты"]);
  4512. }
  4513. }
  4514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4516. public ПовараRow ПовараRow {
  4517. get {
  4518. return ((ПовараRow)(this.GetParentRow(this.Table.ParentRelations["FK_Пользователи_Повара"])));
  4519. }
  4520. set {
  4521. this.SetParentRow(value, this.Table.ParentRelations["FK_Пользователи_Повара"]);
  4522. }
  4523. }
  4524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4526. public РолиRow РолиRow {
  4527. get {
  4528. return ((РолиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Пользователи_Роли1"])));
  4529. }
  4530. set {
  4531. this.SetParentRow(value, this.Table.ParentRelations["FK_Пользователи_Роли1"]);
  4532. }
  4533. }
  4534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4536. public СтатусСотрудникаRow СтатусСотрудникаRow {
  4537. get {
  4538. return ((СтатусСотрудникаRow)(this.GetParentRow(this.Table.ParentRelations["FK_Пользователи_СтатусСотрудника"])));
  4539. }
  4540. set {
  4541. this.SetParentRow(value, this.Table.ParentRelations["FK_Пользователи_СтатусСотрудника"]);
  4542. }
  4543. }
  4544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4546. public bool IsЛогинNull() {
  4547. return this.IsNull(this.tableПользователи.ЛогинColumn);
  4548. }
  4549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4551. public void SetЛогинNull() {
  4552. this[this.tableПользователи.ЛогинColumn] = global::System.Convert.DBNull;
  4553. }
  4554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4556. public bool IsПарольNull() {
  4557. return this.IsNull(this.tableПользователи.ПарольColumn);
  4558. }
  4559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4561. public void SetПарольNull() {
  4562. this[this.tableПользователи.ПарольColumn] = global::System.Convert.DBNull;
  4563. }
  4564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4566. public bool IsФамилияNull() {
  4567. return this.IsNull(this.tableПользователи.ФамилияColumn);
  4568. }
  4569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4571. public void SetФамилияNull() {
  4572. this[this.tableПользователи.ФамилияColumn] = global::System.Convert.DBNull;
  4573. }
  4574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4576. public bool IsID_РолиNull() {
  4577. return this.IsNull(this.tableПользователи.ID_РолиColumn);
  4578. }
  4579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4581. public void SetID_РолиNull() {
  4582. this[this.tableПользователи.ID_РолиColumn] = global::System.Convert.DBNull;
  4583. }
  4584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4586. public bool IsID_СтатусаNull() {
  4587. return this.IsNull(this.tableПользователи.ID_СтатусаColumn);
  4588. }
  4589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4591. public void SetID_СтатусаNull() {
  4592. this[this.tableПользователи.ID_СтатусаColumn] = global::System.Convert.DBNull;
  4593. }
  4594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4596. public ОфициантыRow[] GetОфициантыRows() {
  4597. if ((this.Table.ChildRelations["FK_Официанты_Пользователи"] == null)) {
  4598. return new ОфициантыRow[0];
  4599. }
  4600. else {
  4601. return ((ОфициантыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Официанты_Пользователи"])));
  4602. }
  4603. }
  4604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4606. public ПовараRow[] GetПовараRows() {
  4607. if ((this.Table.ChildRelations["FK_Повара_Пользователи"] == null)) {
  4608. return new ПовараRow[0];
  4609. }
  4610. else {
  4611. return ((ПовараRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Повара_Пользователи"])));
  4612. }
  4613. }
  4614. }
  4615. /// <summary>
  4616. ///Represents strongly named DataRow class.
  4617. ///</summary>
  4618. public partial class РолиRow : global::System.Data.DataRow {
  4619. private РолиDataTable tableРоли;
  4620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4622. internal РолиRow(global::System.Data.DataRowBuilder rb) :
  4623. base(rb) {
  4624. this.tableРоли = ((РолиDataTable)(this.Table));
  4625. }
  4626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4628. public int id_Роли {
  4629. get {
  4630. return ((int)(this[this.tableРоли.id_РолиColumn]));
  4631. }
  4632. set {
  4633. this[this.tableРоли.id_РолиColumn] = value;
  4634. }
  4635. }
  4636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4638. public string Название {
  4639. get {
  4640. try {
  4641. return ((string)(this[this.tableРоли.НазваниеColumn]));
  4642. }
  4643. catch (global::System.InvalidCastException e) {
  4644. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Роли\' равно DBNull.", e);
  4645. }
  4646. }
  4647. set {
  4648. this[this.tableРоли.НазваниеColumn] = value;
  4649. }
  4650. }
  4651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4653. public bool IsНазваниеNull() {
  4654. return this.IsNull(this.tableРоли.НазваниеColumn);
  4655. }
  4656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4658. public void SetНазваниеNull() {
  4659. this[this.tableРоли.НазваниеColumn] = global::System.Convert.DBNull;
  4660. }
  4661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4663. public ПользователиRow[] GetПользователиRows() {
  4664. if ((this.Table.ChildRelations["FK_Пользователи_Роли1"] == null)) {
  4665. return new ПользователиRow[0];
  4666. }
  4667. else {
  4668. return ((ПользователиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Пользователи_Роли1"])));
  4669. }
  4670. }
  4671. }
  4672. /// <summary>
  4673. ///Represents strongly named DataRow class.
  4674. ///</summary>
  4675. public partial class СменыRow : global::System.Data.DataRow {
  4676. private СменыDataTable tableСмены;
  4677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4679. internal СменыRow(global::System.Data.DataRowBuilder rb) :
  4680. base(rb) {
  4681. this.tableСмены = ((СменыDataTable)(this.Table));
  4682. }
  4683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4685. public int ID_Смены {
  4686. get {
  4687. return ((int)(this[this.tableСмены.ID_СменыColumn]));
  4688. }
  4689. set {
  4690. this[this.tableСмены.ID_СменыColumn] = value;
  4691. }
  4692. }
  4693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4695. public System.DateTime ДатаCмены {
  4696. get {
  4697. try {
  4698. return ((global::System.DateTime)(this[this.tableСмены.ДатаCменыColumn]));
  4699. }
  4700. catch (global::System.InvalidCastException e) {
  4701. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаCмены\' в таблице \'Смены\' равно DBNull.", e);
  4702. }
  4703. }
  4704. set {
  4705. this[this.tableСмены.ДатаCменыColumn] = value;
  4706. }
  4707. }
  4708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4710. public int id_Официанта {
  4711. get {
  4712. try {
  4713. return ((int)(this[this.tableСмены.id_ОфициантаColumn]));
  4714. }
  4715. catch (global::System.InvalidCastException e) {
  4716. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_Официанта\' в таблице \'Смены\' равно DBNull.", e);
  4717. }
  4718. }
  4719. set {
  4720. this[this.tableСмены.id_ОфициантаColumn] = value;
  4721. }
  4722. }
  4723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4725. public int id_Повара {
  4726. get {
  4727. try {
  4728. return ((int)(this[this.tableСмены.id_ПовараColumn]));
  4729. }
  4730. catch (global::System.InvalidCastException e) {
  4731. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_Повара\' в таблице \'Смены\' равно DBNull.", e);
  4732. }
  4733. }
  4734. set {
  4735. this[this.tableСмены.id_ПовараColumn] = value;
  4736. }
  4737. }
  4738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4740. public ОфициантыRow ОфициантыRow {
  4741. get {
  4742. return ((ОфициантыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Смены_Официанты"])));
  4743. }
  4744. set {
  4745. this.SetParentRow(value, this.Table.ParentRelations["FK_Смены_Официанты"]);
  4746. }
  4747. }
  4748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4750. public ПовараRow ПовараRow {
  4751. get {
  4752. return ((ПовараRow)(this.GetParentRow(this.Table.ParentRelations["FK_Смены_Повара"])));
  4753. }
  4754. set {
  4755. this.SetParentRow(value, this.Table.ParentRelations["FK_Смены_Повара"]);
  4756. }
  4757. }
  4758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4760. public bool IsДатаCменыNull() {
  4761. return this.IsNull(this.tableСмены.ДатаCменыColumn);
  4762. }
  4763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4765. public void SetДатаCменыNull() {
  4766. this[this.tableСмены.ДатаCменыColumn] = global::System.Convert.DBNull;
  4767. }
  4768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4770. public bool Isid_ОфициантаNull() {
  4771. return this.IsNull(this.tableСмены.id_ОфициантаColumn);
  4772. }
  4773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4775. public void Setid_ОфициантаNull() {
  4776. this[this.tableСмены.id_ОфициантаColumn] = global::System.Convert.DBNull;
  4777. }
  4778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4780. public bool Isid_ПовараNull() {
  4781. return this.IsNull(this.tableСмены.id_ПовараColumn);
  4782. }
  4783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4785. public void Setid_ПовараNull() {
  4786. this[this.tableСмены.id_ПовараColumn] = global::System.Convert.DBNull;
  4787. }
  4788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4790. public ЗаказыRow[] GetЗаказыRows() {
  4791. if ((this.Table.ChildRelations["FK_Заказы_Смены"] == null)) {
  4792. return new ЗаказыRow[0];
  4793. }
  4794. else {
  4795. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_Смены"])));
  4796. }
  4797. }
  4798. }
  4799. /// <summary>
  4800. ///Represents strongly named DataRow class.
  4801. ///</summary>
  4802. public partial class СтатусЗаказаRow : global::System.Data.DataRow {
  4803. private СтатусЗаказаDataTable tableСтатусЗаказа;
  4804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4806. internal СтатусЗаказаRow(global::System.Data.DataRowBuilder rb) :
  4807. base(rb) {
  4808. this.tableСтатусЗаказа = ((СтатусЗаказаDataTable)(this.Table));
  4809. }
  4810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4812. public int ID_СтатусаЗаказа {
  4813. get {
  4814. return ((int)(this[this.tableСтатусЗаказа.ID_СтатусаЗаказаColumn]));
  4815. }
  4816. set {
  4817. this[this.tableСтатусЗаказа.ID_СтатусаЗаказаColumn] = value;
  4818. }
  4819. }
  4820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4822. public string НазваниеСтатусаЗаказа {
  4823. get {
  4824. try {
  4825. return ((string)(this[this.tableСтатусЗаказа.НазваниеСтатусаЗаказаColumn]));
  4826. }
  4827. catch (global::System.InvalidCastException e) {
  4828. throw new global::System.Data.StrongTypingException("Значение для столбца \'НазваниеСтатусаЗаказа\' в таблице \'СтатусЗаказа\' равно DBNul" +
  4829. "l.", e);
  4830. }
  4831. }
  4832. set {
  4833. this[this.tableСтатусЗаказа.НазваниеСтатусаЗаказаColumn] = value;
  4834. }
  4835. }
  4836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4838. public bool IsНазваниеСтатусаЗаказаNull() {
  4839. return this.IsNull(this.tableСтатусЗаказа.НазваниеСтатусаЗаказаColumn);
  4840. }
  4841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4843. public void SetНазваниеСтатусаЗаказаNull() {
  4844. this[this.tableСтатусЗаказа.НазваниеСтатусаЗаказаColumn] = global::System.Convert.DBNull;
  4845. }
  4846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4848. public ЗаказыRow[] GetЗаказыRows() {
  4849. if ((this.Table.ChildRelations["FK_Заказы_СтатусЗаказа"] == null)) {
  4850. return new ЗаказыRow[0];
  4851. }
  4852. else {
  4853. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_СтатусЗаказа"])));
  4854. }
  4855. }
  4856. }
  4857. /// <summary>
  4858. ///Represents strongly named DataRow class.
  4859. ///</summary>
  4860. public partial class СтатусСотрудникаRow : global::System.Data.DataRow {
  4861. private СтатусСотрудникаDataTable tableСтатусСотрудника;
  4862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4864. internal СтатусСотрудникаRow(global::System.Data.DataRowBuilder rb) :
  4865. base(rb) {
  4866. this.tableСтатусСотрудника = ((СтатусСотрудникаDataTable)(this.Table));
  4867. }
  4868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4870. public int ID_Статуса {
  4871. get {
  4872. return ((int)(this[this.tableСтатусСотрудника.ID_СтатусаColumn]));
  4873. }
  4874. set {
  4875. this[this.tableСтатусСотрудника.ID_СтатусаColumn] = value;
  4876. }
  4877. }
  4878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4880. public string НазваниеСтатусаСотрудника {
  4881. get {
  4882. try {
  4883. return ((string)(this[this.tableСтатусСотрудника.НазваниеСтатусаСотрудникаColumn]));
  4884. }
  4885. catch (global::System.InvalidCastException e) {
  4886. throw new global::System.Data.StrongTypingException("Значение для столбца \'НазваниеСтатусаСотрудника\' в таблице \'СтатусСотрудника\' рав" +
  4887. "но DBNull.", e);
  4888. }
  4889. }
  4890. set {
  4891. this[this.tableСтатусСотрудника.НазваниеСтатусаСотрудникаColumn] = value;
  4892. }
  4893. }
  4894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4896. public bool IsНазваниеСтатусаСотрудникаNull() {
  4897. return this.IsNull(this.tableСтатусСотрудника.НазваниеСтатусаСотрудникаColumn);
  4898. }
  4899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4901. public void SetНазваниеСтатусаСотрудникаNull() {
  4902. this[this.tableСтатусСотрудника.НазваниеСтатусаСотрудникаColumn] = global::System.Convert.DBNull;
  4903. }
  4904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4906. public ПользователиRow[] GetПользователиRows() {
  4907. if ((this.Table.ChildRelations["FK_Пользователи_СтатусСотрудника"] == null)) {
  4908. return new ПользователиRow[0];
  4909. }
  4910. else {
  4911. return ((ПользователиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Пользователи_СтатусСотрудника"])));
  4912. }
  4913. }
  4914. }
  4915. /// <summary>
  4916. ///Represents strongly named DataRow class.
  4917. ///</summary>
  4918. public partial class СтоликиRow : global::System.Data.DataRow {
  4919. private СтоликиDataTable tableСтолики;
  4920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4922. internal СтоликиRow(global::System.Data.DataRowBuilder rb) :
  4923. base(rb) {
  4924. this.tableСтолики = ((СтоликиDataTable)(this.Table));
  4925. }
  4926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4928. public int ID_Столика {
  4929. get {
  4930. return ((int)(this[this.tableСтолики.ID_СтоликаColumn]));
  4931. }
  4932. set {
  4933. this[this.tableСтолики.ID_СтоликаColumn] = value;
  4934. }
  4935. }
  4936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4938. public string Название {
  4939. get {
  4940. try {
  4941. return ((string)(this[this.tableСтолики.НазваниеColumn]));
  4942. }
  4943. catch (global::System.InvalidCastException e) {
  4944. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Столики\' равно DBNull.", e);
  4945. }
  4946. }
  4947. set {
  4948. this[this.tableСтолики.НазваниеColumn] = value;
  4949. }
  4950. }
  4951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4953. public bool IsНазваниеNull() {
  4954. return this.IsNull(this.tableСтолики.НазваниеColumn);
  4955. }
  4956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4958. public void SetНазваниеNull() {
  4959. this[this.tableСтолики.НазваниеColumn] = global::System.Convert.DBNull;
  4960. }
  4961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4963. public ЗаказыRow[] GetЗаказыRows() {
  4964. if ((this.Table.ChildRelations["FK_Заказы_Столики"] == null)) {
  4965. return new ЗаказыRow[0];
  4966. }
  4967. else {
  4968. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_Столики"])));
  4969. }
  4970. }
  4971. }
  4972. /// <summary>
  4973. ///Represents strongly named DataRow class.
  4974. ///</summary>
  4975. public partial class RABOCHIEAdminRow : global::System.Data.DataRow {
  4976. private RABOCHIEAdminDataTable tableRABOCHIEAdmin;
  4977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4979. internal RABOCHIEAdminRow(global::System.Data.DataRowBuilder rb) :
  4980. base(rb) {
  4981. this.tableRABOCHIEAdmin = ((RABOCHIEAdminDataTable)(this.Table));
  4982. }
  4983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4985. public int ID_Пользователя {
  4986. get {
  4987. return ((int)(this[this.tableRABOCHIEAdmin.ID_ПользователяColumn]));
  4988. }
  4989. set {
  4990. this[this.tableRABOCHIEAdmin.ID_ПользователяColumn] = value;
  4991. }
  4992. }
  4993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4995. public string Фамилия {
  4996. get {
  4997. try {
  4998. return ((string)(this[this.tableRABOCHIEAdmin.ФамилияColumn]));
  4999. }
  5000. catch (global::System.InvalidCastException e) {
  5001. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'RABOCHIEAdmin\' равно DBNull.", e);
  5002. }
  5003. }
  5004. set {
  5005. this[this.tableRABOCHIEAdmin.ФамилияColumn] = value;
  5006. }
  5007. }
  5008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5010. public string Название {
  5011. get {
  5012. try {
  5013. return ((string)(this[this.tableRABOCHIEAdmin.НазваниеColumn]));
  5014. }
  5015. catch (global::System.InvalidCastException e) {
  5016. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'RABOCHIEAdmin\' равно DBNull.", e);
  5017. }
  5018. }
  5019. set {
  5020. this[this.tableRABOCHIEAdmin.НазваниеColumn] = value;
  5021. }
  5022. }
  5023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5025. public string НазваниеСтатусаСотрудника {
  5026. get {
  5027. try {
  5028. return ((string)(this[this.tableRABOCHIEAdmin.НазваниеСтатусаСотрудникаColumn]));
  5029. }
  5030. catch (global::System.InvalidCastException e) {
  5031. throw new global::System.Data.StrongTypingException("Значение для столбца \'НазваниеСтатусаСотрудника\' в таблице \'RABOCHIEAdmin\' равно " +
  5032. "DBNull.", e);
  5033. }
  5034. }
  5035. set {
  5036. this[this.tableRABOCHIEAdmin.НазваниеСтатусаСотрудникаColumn] = value;
  5037. }
  5038. }
  5039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5041. public bool IsФамилияNull() {
  5042. return this.IsNull(this.tableRABOCHIEAdmin.ФамилияColumn);
  5043. }
  5044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5046. public void SetФамилияNull() {
  5047. this[this.tableRABOCHIEAdmin.ФамилияColumn] = global::System.Convert.DBNull;
  5048. }
  5049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5051. public bool IsНазваниеNull() {
  5052. return this.IsNull(this.tableRABOCHIEAdmin.НазваниеColumn);
  5053. }
  5054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5056. public void SetНазваниеNull() {
  5057. this[this.tableRABOCHIEAdmin.НазваниеColumn] = global::System.Convert.DBNull;
  5058. }
  5059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5061. public bool IsНазваниеСтатусаСотрудникаNull() {
  5062. return this.IsNull(this.tableRABOCHIEAdmin.НазваниеСтатусаСотрудникаColumn);
  5063. }
  5064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5066. public void SetНазваниеСтатусаСотрудникаNull() {
  5067. this[this.tableRABOCHIEAdmin.НазваниеСтатусаСотрудникаColumn] = global::System.Convert.DBNull;
  5068. }
  5069. }
  5070. /// <summary>
  5071. ///Row event argument class
  5072. ///</summary>
  5073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5074. public class БлюдаНапиткиRowChangeEvent : global::System.EventArgs {
  5075. private БлюдаНапиткиRow eventRow;
  5076. private global::System.Data.DataRowAction eventAction;
  5077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5079. public БлюдаНапиткиRowChangeEvent(БлюдаНапиткиRow row, global::System.Data.DataRowAction action) {
  5080. this.eventRow = row;
  5081. this.eventAction = action;
  5082. }
  5083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5085. public БлюдаНапиткиRow Row {
  5086. get {
  5087. return this.eventRow;
  5088. }
  5089. }
  5090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5092. public global::System.Data.DataRowAction Action {
  5093. get {
  5094. return this.eventAction;
  5095. }
  5096. }
  5097. }
  5098. /// <summary>
  5099. ///Row event argument class
  5100. ///</summary>
  5101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5102. public class Заказанные_блюдаRowChangeEvent : global::System.EventArgs {
  5103. private Заказанные_блюдаRow eventRow;
  5104. private global::System.Data.DataRowAction eventAction;
  5105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5107. public Заказанные_блюдаRowChangeEvent(Заказанные_блюдаRow row, global::System.Data.DataRowAction action) {
  5108. this.eventRow = row;
  5109. this.eventAction = action;
  5110. }
  5111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5113. public Заказанные_блюдаRow Row {
  5114. get {
  5115. return this.eventRow;
  5116. }
  5117. }
  5118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5120. public global::System.Data.DataRowAction Action {
  5121. get {
  5122. return this.eventAction;
  5123. }
  5124. }
  5125. }
  5126. /// <summary>
  5127. ///Row event argument class
  5128. ///</summary>
  5129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5130. public class ЗаказыRowChangeEvent : global::System.EventArgs {
  5131. private ЗаказыRow eventRow;
  5132. private global::System.Data.DataRowAction eventAction;
  5133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5135. public ЗаказыRowChangeEvent(ЗаказыRow row, global::System.Data.DataRowAction action) {
  5136. this.eventRow = row;
  5137. this.eventAction = action;
  5138. }
  5139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5141. public ЗаказыRow Row {
  5142. get {
  5143. return this.eventRow;
  5144. }
  5145. }
  5146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5148. public global::System.Data.DataRowAction Action {
  5149. get {
  5150. return this.eventAction;
  5151. }
  5152. }
  5153. }
  5154. /// <summary>
  5155. ///Row event argument class
  5156. ///</summary>
  5157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5158. public class ОфициантыRowChangeEvent : global::System.EventArgs {
  5159. private ОфициантыRow eventRow;
  5160. private global::System.Data.DataRowAction eventAction;
  5161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5163. public ОфициантыRowChangeEvent(ОфициантыRow row, global::System.Data.DataRowAction action) {
  5164. this.eventRow = row;
  5165. this.eventAction = action;
  5166. }
  5167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5169. public ОфициантыRow Row {
  5170. get {
  5171. return this.eventRow;
  5172. }
  5173. }
  5174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5176. public global::System.Data.DataRowAction Action {
  5177. get {
  5178. return this.eventAction;
  5179. }
  5180. }
  5181. }
  5182. /// <summary>
  5183. ///Row event argument class
  5184. ///</summary>
  5185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5186. public class ПовараRowChangeEvent : global::System.EventArgs {
  5187. private ПовараRow eventRow;
  5188. private global::System.Data.DataRowAction eventAction;
  5189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5191. public ПовараRowChangeEvent(ПовараRow row, global::System.Data.DataRowAction action) {
  5192. this.eventRow = row;
  5193. this.eventAction = action;
  5194. }
  5195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5197. public ПовараRow Row {
  5198. get {
  5199. return this.eventRow;
  5200. }
  5201. }
  5202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5204. public global::System.Data.DataRowAction Action {
  5205. get {
  5206. return this.eventAction;
  5207. }
  5208. }
  5209. }
  5210. /// <summary>
  5211. ///Row event argument class
  5212. ///</summary>
  5213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5214. public class ПользователиRowChangeEvent : global::System.EventArgs {
  5215. private ПользователиRow eventRow;
  5216. private global::System.Data.DataRowAction eventAction;
  5217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5219. public ПользователиRowChangeEvent(ПользователиRow row, global::System.Data.DataRowAction action) {
  5220. this.eventRow = row;
  5221. this.eventAction = action;
  5222. }
  5223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5225. public ПользователиRow Row {
  5226. get {
  5227. return this.eventRow;
  5228. }
  5229. }
  5230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5232. public global::System.Data.DataRowAction Action {
  5233. get {
  5234. return this.eventAction;
  5235. }
  5236. }
  5237. }
  5238. /// <summary>
  5239. ///Row event argument class
  5240. ///</summary>
  5241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5242. public class РолиRowChangeEvent : global::System.EventArgs {
  5243. private РолиRow eventRow;
  5244. private global::System.Data.DataRowAction eventAction;
  5245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5247. public РолиRowChangeEvent(РолиRow row, global::System.Data.DataRowAction action) {
  5248. this.eventRow = row;
  5249. this.eventAction = action;
  5250. }
  5251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5253. public РолиRow Row {
  5254. get {
  5255. return this.eventRow;
  5256. }
  5257. }
  5258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5260. public global::System.Data.DataRowAction Action {
  5261. get {
  5262. return this.eventAction;
  5263. }
  5264. }
  5265. }
  5266. /// <summary>
  5267. ///Row event argument class
  5268. ///</summary>
  5269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5270. public class СменыRowChangeEvent : global::System.EventArgs {
  5271. private СменыRow eventRow;
  5272. private global::System.Data.DataRowAction eventAction;
  5273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5275. public СменыRowChangeEvent(СменыRow row, global::System.Data.DataRowAction action) {
  5276. this.eventRow = row;
  5277. this.eventAction = action;
  5278. }
  5279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5281. public СменыRow Row {
  5282. get {
  5283. return this.eventRow;
  5284. }
  5285. }
  5286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5288. public global::System.Data.DataRowAction Action {
  5289. get {
  5290. return this.eventAction;
  5291. }
  5292. }
  5293. }
  5294. /// <summary>
  5295. ///Row event argument class
  5296. ///</summary>
  5297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5298. public class СтатусЗаказаRowChangeEvent : global::System.EventArgs {
  5299. private СтатусЗаказаRow eventRow;
  5300. private global::System.Data.DataRowAction eventAction;
  5301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5303. public СтатусЗаказаRowChangeEvent(СтатусЗаказаRow row, global::System.Data.DataRowAction action) {
  5304. this.eventRow = row;
  5305. this.eventAction = action;
  5306. }
  5307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5309. public СтатусЗаказаRow Row {
  5310. get {
  5311. return this.eventRow;
  5312. }
  5313. }
  5314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5316. public global::System.Data.DataRowAction Action {
  5317. get {
  5318. return this.eventAction;
  5319. }
  5320. }
  5321. }
  5322. /// <summary>
  5323. ///Row event argument class
  5324. ///</summary>
  5325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5326. public class СтатусСотрудникаRowChangeEvent : global::System.EventArgs {
  5327. private СтатусСотрудникаRow eventRow;
  5328. private global::System.Data.DataRowAction eventAction;
  5329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5331. public СтатусСотрудникаRowChangeEvent(СтатусСотрудникаRow row, global::System.Data.DataRowAction action) {
  5332. this.eventRow = row;
  5333. this.eventAction = action;
  5334. }
  5335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5337. public СтатусСотрудникаRow Row {
  5338. get {
  5339. return this.eventRow;
  5340. }
  5341. }
  5342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5344. public global::System.Data.DataRowAction Action {
  5345. get {
  5346. return this.eventAction;
  5347. }
  5348. }
  5349. }
  5350. /// <summary>
  5351. ///Row event argument class
  5352. ///</summary>
  5353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5354. public class СтоликиRowChangeEvent : global::System.EventArgs {
  5355. private СтоликиRow eventRow;
  5356. private global::System.Data.DataRowAction eventAction;
  5357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5359. public СтоликиRowChangeEvent(СтоликиRow row, global::System.Data.DataRowAction action) {
  5360. this.eventRow = row;
  5361. this.eventAction = action;
  5362. }
  5363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5365. public СтоликиRow Row {
  5366. get {
  5367. return this.eventRow;
  5368. }
  5369. }
  5370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5372. public global::System.Data.DataRowAction Action {
  5373. get {
  5374. return this.eventAction;
  5375. }
  5376. }
  5377. }
  5378. /// <summary>
  5379. ///Row event argument class
  5380. ///</summary>
  5381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5382. public class RABOCHIEAdminRowChangeEvent : global::System.EventArgs {
  5383. private RABOCHIEAdminRow eventRow;
  5384. private global::System.Data.DataRowAction eventAction;
  5385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5387. public RABOCHIEAdminRowChangeEvent(RABOCHIEAdminRow row, global::System.Data.DataRowAction action) {
  5388. this.eventRow = row;
  5389. this.eventAction = action;
  5390. }
  5391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5393. public RABOCHIEAdminRow Row {
  5394. get {
  5395. return this.eventRow;
  5396. }
  5397. }
  5398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5400. public global::System.Data.DataRowAction Action {
  5401. get {
  5402. return this.eventAction;
  5403. }
  5404. }
  5405. }
  5406. }
  5407. }
  5408. namespace Cafe11.lebcafeDataSetTableAdapters {
  5409. /// <summary>
  5410. ///Represents the connection and commands used to retrieve and save data.
  5411. ///</summary>
  5412. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5413. [global::System.ComponentModel.ToolboxItem(true)]
  5414. [global::System.ComponentModel.DataObjectAttribute(true)]
  5415. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5416. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5417. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5418. public partial class БлюдаНапиткиTableAdapter : global::System.ComponentModel.Component {
  5419. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5420. private global::System.Data.SqlClient.SqlConnection _connection;
  5421. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5422. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5423. private bool _clearBeforeFill;
  5424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5426. public БлюдаНапиткиTableAdapter() {
  5427. this.ClearBeforeFill = true;
  5428. }
  5429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5431. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5432. get {
  5433. if ((this._adapter == null)) {
  5434. this.InitAdapter();
  5435. }
  5436. return this._adapter;
  5437. }
  5438. }
  5439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5441. internal global::System.Data.SqlClient.SqlConnection Connection {
  5442. get {
  5443. if ((this._connection == null)) {
  5444. this.InitConnection();
  5445. }
  5446. return this._connection;
  5447. }
  5448. set {
  5449. this._connection = value;
  5450. if ((this.Adapter.InsertCommand != null)) {
  5451. this.Adapter.InsertCommand.Connection = value;
  5452. }
  5453. if ((this.Adapter.DeleteCommand != null)) {
  5454. this.Adapter.DeleteCommand.Connection = value;
  5455. }
  5456. if ((this.Adapter.UpdateCommand != null)) {
  5457. this.Adapter.UpdateCommand.Connection = value;
  5458. }
  5459. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5460. if ((this.CommandCollection[i] != null)) {
  5461. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5462. }
  5463. }
  5464. }
  5465. }
  5466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5468. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5469. get {
  5470. return this._transaction;
  5471. }
  5472. set {
  5473. this._transaction = value;
  5474. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5475. this.CommandCollection[i].Transaction = this._transaction;
  5476. }
  5477. if (((this.Adapter != null)
  5478. && (this.Adapter.DeleteCommand != null))) {
  5479. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5480. }
  5481. if (((this.Adapter != null)
  5482. && (this.Adapter.InsertCommand != null))) {
  5483. this.Adapter.InsertCommand.Transaction = this._transaction;
  5484. }
  5485. if (((this.Adapter != null)
  5486. && (this.Adapter.UpdateCommand != null))) {
  5487. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5488. }
  5489. }
  5490. }
  5491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5493. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5494. get {
  5495. if ((this._commandCollection == null)) {
  5496. this.InitCommandCollection();
  5497. }
  5498. return this._commandCollection;
  5499. }
  5500. }
  5501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5503. public bool ClearBeforeFill {
  5504. get {
  5505. return this._clearBeforeFill;
  5506. }
  5507. set {
  5508. this._clearBeforeFill = value;
  5509. }
  5510. }
  5511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5513. private void InitAdapter() {
  5514. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5515. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5516. tableMapping.SourceTable = "Table";
  5517. tableMapping.DataSetTable = "БлюдаНапитки";
  5518. tableMapping.ColumnMappings.Add("ID_БлюдаНапитка", "ID_БлюдаНапитка");
  5519. tableMapping.ColumnMappings.Add("Название", "Название");
  5520. tableMapping.ColumnMappings.Add("Цена", "Цена");
  5521. this._adapter.TableMappings.Add(tableMapping);
  5522. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5523. this._adapter.DeleteCommand.Connection = this.Connection;
  5524. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[БлюдаНапитки] WHERE (([ID_БлюдаНапитка] = @Original_ID_БлюдаНа" +
  5525. "питка) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Orig" +
  5526. "inal_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Origina" +
  5527. "l_Цена)))";
  5528. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5529. 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, "", "", ""));
  5530. 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, "", "", ""));
  5531. 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, "", "", ""));
  5532. 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, "", "", ""));
  5533. 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, "", "", ""));
  5534. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5535. this._adapter.InsertCommand.Connection = this.Connection;
  5536. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[БлюдаНапитки] ([ID_БлюдаНапитка], [Название], [Цена]) VALUES (" +
  5537. "@ID_БлюдаНапитка, @Название, @Цена);\r\nSELECT ID_БлюдаНапитка, Название, Цена FRO" +
  5538. "M БлюдаНапитки WHERE (ID_БлюдаНапитка = @ID_БлюдаНапитка)";
  5539. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5540. 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, "", "", ""));
  5541. 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, "", "", ""));
  5542. 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, "", "", ""));
  5543. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5544. this._adapter.UpdateCommand.Connection = this.Connection;
  5545. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[БлюдаНапитки] SET [ID_БлюдаНапитка] = @ID_БлюдаНапитка, [Название] = @Название, [Цена] = @Цена WHERE (([ID_БлюдаНапитка] = @Original_ID_БлюдаНапитка) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)));
  5546. SELECT ID_БлюдаНапитка, Название, Цена FROM БлюдаНапитки WHERE (ID_БлюдаНапитка = @ID_БлюдаНапитка)";
  5547. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5548. 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, "", "", ""));
  5549. 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, "", "", ""));
  5550. 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, "", "", ""));
  5551. 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, "", "", ""));
  5552. 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, "", "", ""));
  5553. 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, "", "", ""));
  5554. 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, "", "", ""));
  5555. 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, "", "", ""));
  5556. }
  5557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5559. private void InitConnection() {
  5560. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5561. this._connection.ConnectionString = global::Cafe11.Properties.Settings.Default.lebcafeConnectionString;
  5562. }
  5563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5565. private void InitCommandCollection() {
  5566. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5567. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5568. this._commandCollection[0].Connection = this.Connection;
  5569. this._commandCollection[0].CommandText = "SELECT ID_БлюдаНапитка, Название, Цена FROM dbo.БлюдаНапитки";
  5570. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5571. }
  5572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5574. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5575. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5576. public virtual int Fill(lebcafeDataSet.БлюдаНапиткиDataTable dataTable) {
  5577. this.Adapter.SelectCommand = this.CommandCollection[0];
  5578. if ((this.ClearBeforeFill == true)) {
  5579. dataTable.Clear();
  5580. }
  5581. int returnValue = this.Adapter.Fill(dataTable);
  5582. return returnValue;
  5583. }
  5584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5586. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5587. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5588. public virtual lebcafeDataSet.БлюдаНапиткиDataTable GetData() {
  5589. this.Adapter.SelectCommand = this.CommandCollection[0];
  5590. lebcafeDataSet.БлюдаНапиткиDataTable dataTable = new lebcafeDataSet.БлюдаНапиткиDataTable();
  5591. this.Adapter.Fill(dataTable);
  5592. return dataTable;
  5593. }
  5594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5596. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5597. public virtual int Update(lebcafeDataSet.БлюдаНапиткиDataTable dataTable) {
  5598. return this.Adapter.Update(dataTable);
  5599. }
  5600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5602. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5603. public virtual int Update(lebcafeDataSet dataSet) {
  5604. return this.Adapter.Update(dataSet, "БлюдаНапитки");
  5605. }
  5606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5608. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5609. public virtual int Update(global::System.Data.DataRow dataRow) {
  5610. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5611. dataRow});
  5612. }
  5613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5615. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5616. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5617. return this.Adapter.Update(dataRows);
  5618. }
  5619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5621. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5622. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5623. public virtual int Delete(int Original_ID_БлюдаНапитка, string Original_Название, global::System.Nullable<int> Original_Цена) {
  5624. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_БлюдаНапитка));
  5625. if ((Original_Название == null)) {
  5626. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5627. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5628. }
  5629. else {
  5630. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5631. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  5632. }
  5633. if ((Original_Цена.HasValue == true)) {
  5634. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5635. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Цена.Value));
  5636. }
  5637. else {
  5638. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5639. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5640. }
  5641. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5642. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5643. != global::System.Data.ConnectionState.Open)) {
  5644. this.Adapter.DeleteCommand.Connection.Open();
  5645. }
  5646. try {
  5647. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5648. return returnValue;
  5649. }
  5650. finally {
  5651. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5652. this.Adapter.DeleteCommand.Connection.Close();
  5653. }
  5654. }
  5655. }
  5656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5658. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5659. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5660. public virtual int Insert(int ID_БлюдаНапитка, string Название, global::System.Nullable<int> Цена) {
  5661. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_БлюдаНапитка));
  5662. if ((Название == null)) {
  5663. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5664. }
  5665. else {
  5666. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название));
  5667. }
  5668. if ((Цена.HasValue == true)) {
  5669. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Цена.Value));
  5670. }
  5671. else {
  5672. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5673. }
  5674. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5675. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5676. != global::System.Data.ConnectionState.Open)) {
  5677. this.Adapter.InsertCommand.Connection.Open();
  5678. }
  5679. try {
  5680. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5681. return returnValue;
  5682. }
  5683. finally {
  5684. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5685. this.Adapter.InsertCommand.Connection.Close();
  5686. }
  5687. }
  5688. }
  5689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5691. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5692. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5693. public virtual int Update(int ID_БлюдаНапитка, string Название, global::System.Nullable<int> Цена, int Original_ID_БлюдаНапитка, string Original_Название, global::System.Nullable<int> Original_Цена) {
  5694. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_БлюдаНапитка));
  5695. if ((Название == null)) {
  5696. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5697. }
  5698. else {
  5699. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Название));
  5700. }
  5701. if ((Цена.HasValue == true)) {
  5702. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Цена.Value));
  5703. }
  5704. else {
  5705. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5706. }
  5707. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID_БлюдаНапитка));
  5708. if ((Original_Название == null)) {
  5709. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  5710. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5711. }
  5712. else {
  5713. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  5714. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Название));
  5715. }
  5716. if ((Original_Цена.HasValue == true)) {
  5717. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  5718. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Цена.Value));
  5719. }
  5720. else {
  5721. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  5722. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5723. }
  5724. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5725. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5726. != global::System.Data.ConnectionState.Open)) {
  5727. this.Adapter.UpdateCommand.Connection.Open();
  5728. }
  5729. try {
  5730. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5731. return returnValue;
  5732. }
  5733. finally {
  5734. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5735. this.Adapter.UpdateCommand.Connection.Close();
  5736. }
  5737. }
  5738. }
  5739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5742. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5743. public virtual int Update(string Название, global::System.Nullable<int> Цена, int Original_ID_БлюдаНапитка, string Original_Название, global::System.Nullable<int> Original_Цена) {
  5744. return this.Update(Original_ID_БлюдаНапитка, Название, Цена, Original_ID_БлюдаНапитка, Original_Название, Original_Цена);
  5745. }
  5746. }
  5747. /// <summary>
  5748. ///Represents the connection and commands used to retrieve and save data.
  5749. ///</summary>
  5750. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5751. [global::System.ComponentModel.ToolboxItem(true)]
  5752. [global::System.ComponentModel.DataObjectAttribute(true)]
  5753. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5754. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5755. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5756. public partial class Заказанные_блюдаTableAdapter : global::System.ComponentModel.Component {
  5757. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5758. private global::System.Data.SqlClient.SqlConnection _connection;
  5759. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5760. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5761. private bool _clearBeforeFill;
  5762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5764. public Заказанные_блюдаTableAdapter() {
  5765. this.ClearBeforeFill = true;
  5766. }
  5767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5769. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5770. get {
  5771. if ((this._adapter == null)) {
  5772. this.InitAdapter();
  5773. }
  5774. return this._adapter;
  5775. }
  5776. }
  5777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5779. internal global::System.Data.SqlClient.SqlConnection Connection {
  5780. get {
  5781. if ((this._connection == null)) {
  5782. this.InitConnection();
  5783. }
  5784. return this._connection;
  5785. }
  5786. set {
  5787. this._connection = value;
  5788. if ((this.Adapter.InsertCommand != null)) {
  5789. this.Adapter.InsertCommand.Connection = value;
  5790. }
  5791. if ((this.Adapter.DeleteCommand != null)) {
  5792. this.Adapter.DeleteCommand.Connection = value;
  5793. }
  5794. if ((this.Adapter.UpdateCommand != null)) {
  5795. this.Adapter.UpdateCommand.Connection = value;
  5796. }
  5797. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5798. if ((this.CommandCollection[i] != null)) {
  5799. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5800. }
  5801. }
  5802. }
  5803. }
  5804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5806. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5807. get {
  5808. return this._transaction;
  5809. }
  5810. set {
  5811. this._transaction = value;
  5812. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5813. this.CommandCollection[i].Transaction = this._transaction;
  5814. }
  5815. if (((this.Adapter != null)
  5816. && (this.Adapter.DeleteCommand != null))) {
  5817. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5818. }
  5819. if (((this.Adapter != null)
  5820. && (this.Adapter.InsertCommand != null))) {
  5821. this.Adapter.InsertCommand.Transaction = this._transaction;
  5822. }
  5823. if (((this.Adapter != null)
  5824. && (this.Adapter.UpdateCommand != null))) {
  5825. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5826. }
  5827. }
  5828. }
  5829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5831. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5832. get {
  5833. if ((this._commandCollection == null)) {
  5834. this.InitCommandCollection();
  5835. }
  5836. return this._commandCollection;
  5837. }
  5838. }
  5839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5841. public bool ClearBeforeFill {
  5842. get {
  5843. return this._clearBeforeFill;
  5844. }
  5845. set {
  5846. this._clearBeforeFill = value;
  5847. }
  5848. }
  5849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5851. private void InitAdapter() {
  5852. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5853. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5854. tableMapping.SourceTable = "Table";
  5855. tableMapping.DataSetTable = "Заказанные блюда";
  5856. tableMapping.ColumnMappings.Add("ID_Заказа", "ID_Заказа");
  5857. tableMapping.ColumnMappings.Add("ID_Блюда", "ID_Блюда");
  5858. tableMapping.ColumnMappings.Add("Количество", "Количество");
  5859. this._adapter.TableMappings.Add(tableMapping);
  5860. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5861. this._adapter.InsertCommand.Connection = this.Connection;
  5862. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Заказанные блюда] ([ID_Заказа], [ID_Блюда], [Количество]) VALU" +
  5863. "ES (@ID_Заказа, @ID_Блюда, @Количество)";
  5864. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5865. 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, "", "", ""));
  5866. 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, "", "", ""));
  5867. 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, "", "", ""));
  5868. }
  5869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5871. private void InitConnection() {
  5872. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5873. this._connection.ConnectionString = global::Cafe11.Properties.Settings.Default.lebcafeConnectionString;
  5874. }
  5875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5877. private void InitCommandCollection() {
  5878. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5879. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5880. this._commandCollection[0].Connection = this.Connection;
  5881. this._commandCollection[0].CommandText = "SELECT ID_Заказа, ID_Блюда, Количество FROM dbo.[Заказанные блюда]";
  5882. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5883. }
  5884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5886. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5887. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5888. public virtual int Fill(lebcafeDataSet.Заказанные_блюдаDataTable dataTable) {
  5889. this.Adapter.SelectCommand = this.CommandCollection[0];
  5890. if ((this.ClearBeforeFill == true)) {
  5891. dataTable.Clear();
  5892. }
  5893. int returnValue = this.Adapter.Fill(dataTable);
  5894. return returnValue;
  5895. }
  5896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5898. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5899. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5900. public virtual lebcafeDataSet.Заказанные_блюдаDataTable GetData() {
  5901. this.Adapter.SelectCommand = this.CommandCollection[0];
  5902. lebcafeDataSet.Заказанные_блюдаDataTable dataTable = new lebcafeDataSet.Заказанные_блюдаDataTable();
  5903. this.Adapter.Fill(dataTable);
  5904. return dataTable;
  5905. }
  5906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5908. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5909. public virtual int Update(lebcafeDataSet.Заказанные_блюдаDataTable dataTable) {
  5910. return this.Adapter.Update(dataTable);
  5911. }
  5912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5914. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5915. public virtual int Update(lebcafeDataSet dataSet) {
  5916. return this.Adapter.Update(dataSet, "Заказанные блюда");
  5917. }
  5918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5920. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5921. public virtual int Update(global::System.Data.DataRow dataRow) {
  5922. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5923. dataRow});
  5924. }
  5925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5927. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5928. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5929. return this.Adapter.Update(dataRows);
  5930. }
  5931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5933. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5934. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5935. public virtual int Insert(int ID_Заказа, global::System.Nullable<int> ID_Блюда, global::System.Nullable<int> Количество) {
  5936. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Заказа));
  5937. if ((ID_Блюда.HasValue == true)) {
  5938. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ID_Блюда.Value));
  5939. }
  5940. else {
  5941. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5942. }
  5943. if ((Количество.HasValue == true)) {
  5944. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Количество.Value));
  5945. }
  5946. else {
  5947. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5948. }
  5949. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5950. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5951. != global::System.Data.ConnectionState.Open)) {
  5952. this.Adapter.InsertCommand.Connection.Open();
  5953. }
  5954. try {
  5955. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5956. return returnValue;
  5957. }
  5958. finally {
  5959. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5960. this.Adapter.InsertCommand.Connection.Close();
  5961. }
  5962. }
  5963. }
  5964. }
  5965. /// <summary>
  5966. ///Represents the connection and commands used to retrieve and save data.
  5967. ///</summary>
  5968. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5969. [global::System.ComponentModel.ToolboxItem(true)]
  5970. [global::System.ComponentModel.DataObjectAttribute(true)]
  5971. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5972. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5973. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5974. public partial class ЗаказыTableAdapter : global::System.ComponentModel.Component {
  5975. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5976. private global::System.Data.SqlClient.SqlConnection _connection;
  5977. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5978. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5979. private bool _clearBeforeFill;
  5980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5982. public ЗаказыTableAdapter() {
  5983. this.ClearBeforeFill = true;
  5984. }
  5985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5987. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5988. get {
  5989. if ((this._adapter == null)) {
  5990. this.InitAdapter();
  5991. }
  5992. return this._adapter;
  5993. }
  5994. }
  5995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5997. internal global::System.Data.SqlClient.SqlConnection Connection {
  5998. get {
  5999. if ((this._connection == null)) {
  6000. this.InitConnection();
  6001. }
  6002. return this._connection;
  6003. }
  6004. set {
  6005. this._connection = value;
  6006. if ((this.Adapter.InsertCommand != null)) {
  6007. this.Adapter.InsertCommand.Connection = value;
  6008. }
  6009. if ((this.Adapter.DeleteCommand != null)) {
  6010. this.Adapter.DeleteCommand.Connection = value;
  6011. }
  6012. if ((this.Adapter.UpdateCommand != null)) {
  6013. this.Adapter.UpdateCommand.Connection = value;
  6014. }
  6015. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6016. if ((this.CommandCollection[i] != null)) {
  6017. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6018. }
  6019. }
  6020. }
  6021. }
  6022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6024. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6025. get {
  6026. return this._transaction;
  6027. }
  6028. set {
  6029. this._transaction = value;
  6030. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6031. this.CommandCollection[i].Transaction = this._transaction;
  6032. }
  6033. if (((this.Adapter != null)
  6034. && (this.Adapter.DeleteCommand != null))) {
  6035. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6036. }
  6037. if (((this.Adapter != null)
  6038. && (this.Adapter.InsertCommand != null))) {
  6039. this.Adapter.InsertCommand.Transaction = this._transaction;
  6040. }
  6041. if (((this.Adapter != null)
  6042. && (this.Adapter.UpdateCommand != null))) {
  6043. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6044. }
  6045. }
  6046. }
  6047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6049. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6050. get {
  6051. if ((this._commandCollection == null)) {
  6052. this.InitCommandCollection();
  6053. }
  6054. return this._commandCollection;
  6055. }
  6056. }
  6057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6059. public bool ClearBeforeFill {
  6060. get {
  6061. return this._clearBeforeFill;
  6062. }
  6063. set {
  6064. this._clearBeforeFill = value;
  6065. }
  6066. }
  6067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6069. private void InitAdapter() {
  6070. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6071. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6072. tableMapping.SourceTable = "Table";
  6073. tableMapping.DataSetTable = "Заказы";
  6074. tableMapping.ColumnMappings.Add("ID_Заказа", "ID_Заказа");
  6075. tableMapping.ColumnMappings.Add("ID_Столика", "ID_Столика");
  6076. tableMapping.ColumnMappings.Add("КоличествоКлиентов", "КоличествоКлиентов");
  6077. tableMapping.ColumnMappings.Add("ID_Статуса", "ID_Статуса");
  6078. tableMapping.ColumnMappings.Add("ДатаЗаказа", "ДатаЗаказа");
  6079. tableMapping.ColumnMappings.Add("СуммаЗаказа", "СуммаЗаказа");
  6080. tableMapping.ColumnMappings.Add("ID_Смены", "ID_Смены");
  6081. this._adapter.TableMappings.Add(tableMapping);
  6082. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6083. this._adapter.DeleteCommand.Connection = this.Connection;
  6084. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Заказы] WHERE (([ID_Заказа] = @Original_ID_Заказа) AND ((@IsNull_ID_Столика = 1 AND [ID_Столика] IS NULL) OR ([ID_Столика] = @Original_ID_Столика)) AND ((@IsNull_КоличествоКлиентов = 1 AND [КоличествоКлиентов] IS NULL) OR ([КоличествоКлиентов] = @Original_КоличествоКлиентов)) 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_ДатаЗаказа)) AND ((@IsNull_СуммаЗаказа = 1 AND [СуммаЗаказа] IS NULL) OR ([СуммаЗаказа] = @Original_СуммаЗаказа)))";
  6085. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6086. 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, "", "", ""));
  6087. 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, "", "", ""));
  6088. 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, "", "", ""));
  6089. 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, "", "", ""));
  6090. 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, "", "", ""));
  6091. 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, "", "", ""));
  6092. 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, "", "", ""));
  6093. 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, "", "", ""));
  6094. 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, "", "", ""));
  6095. 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, "", "", ""));
  6096. 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, "", "", ""));
  6097. 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, "", "", ""));
  6098. 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, "", "", ""));
  6099. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6100. this._adapter.InsertCommand.Connection = this.Connection;
  6101. this._adapter.InsertCommand.CommandText = @"INSERT INTO [Заказы] ([ID_Столика], [КоличествоКлиентов], [ID_Статуса], [ID_Смены], [ДатаЗаказа], [СуммаЗаказа]) VALUES (@ID_Столика, @КоличествоКлиентов, @ID_Статуса, @ID_Смены, @ДатаЗаказа, @СуммаЗаказа);
  6102. SELECT ID_Заказа, ID_Столика, КоличествоКлиентов, ID_Статуса, ID_Смены, ДатаЗаказа, СуммаЗаказа FROM Заказы WHERE (ID_Заказа = SCOPE_IDENTITY())";
  6103. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6104. 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, "", "", ""));
  6105. 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, "", "", ""));
  6106. 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, "", "", ""));
  6107. 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, "", "", ""));
  6108. 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, "", "", ""));
  6109. 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, "", "", ""));
  6110. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6111. this._adapter.UpdateCommand.Connection = this.Connection;
  6112. this._adapter.UpdateCommand.CommandText = @"UPDATE [Заказы] SET [ID_Столика] = @ID_Столика, [КоличествоКлиентов] = @КоличествоКлиентов, [ID_Статуса] = @ID_Статуса, [ID_Смены] = @ID_Смены, [ДатаЗаказа] = @ДатаЗаказа, [СуммаЗаказа] = @СуммаЗаказа WHERE (([ID_Заказа] = @Original_ID_Заказа) AND ((@IsNull_ID_Столика = 1 AND [ID_Столика] IS NULL) OR ([ID_Столика] = @Original_ID_Столика)) AND ((@IsNull_КоличествоКлиентов = 1 AND [КоличествоКлиентов] IS NULL) OR ([КоличествоКлиентов] = @Original_КоличествоКлиентов)) 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_ДатаЗаказа)) AND ((@IsNull_СуммаЗаказа = 1 AND [СуммаЗаказа] IS NULL) OR ([СуммаЗаказа] = @Original_СуммаЗаказа)));
  6113. SELECT ID_Заказа, ID_Столика, КоличествоКлиентов, ID_Статуса, ID_Смены, ДатаЗаказа, СуммаЗаказа FROM Заказы WHERE (ID_Заказа = @ID_Заказа)";
  6114. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6115. 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, "", "", ""));
  6116. 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, "", "", ""));
  6117. 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, "", "", ""));
  6118. 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, "", "", ""));
  6119. 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, "", "", ""));
  6120. 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, "", "", ""));
  6121. 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, "", "", ""));
  6122. 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, "", "", ""));
  6123. 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, "", "", ""));
  6124. 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, "", "", ""));
  6125. 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, "", "", ""));
  6126. 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, "", "", ""));
  6127. 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, "", "", ""));
  6128. 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, "", "", ""));
  6129. 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, "", "", ""));
  6130. 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, "", "", ""));
  6131. 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, "", "", ""));
  6132. 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, "", "", ""));
  6133. 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, "", "", ""));
  6134. 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, "", "", ""));
  6135. }
  6136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6138. private void InitConnection() {
  6139. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6140. this._connection.ConnectionString = global::Cafe11.Properties.Settings.Default.lebcafeConnectionString;
  6141. }
  6142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6144. private void InitCommandCollection() {
  6145. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6146. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6147. this._commandCollection[0].Connection = this.Connection;
  6148. this._commandCollection[0].CommandText = "SELECT ID_Заказа, ID_Столика, КоличествоКлиентов, ID_Статуса, ID_Смены, ДатаЗаказ" +
  6149. "а, СуммаЗаказа FROM Заказы";
  6150. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6151. }
  6152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6154. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6155. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6156. public virtual int Fill(lebcafeDataSet.ЗаказыDataTable dataTable) {
  6157. this.Adapter.SelectCommand = this.CommandCollection[0];
  6158. if ((this.ClearBeforeFill == true)) {
  6159. dataTable.Clear();
  6160. }
  6161. int returnValue = this.Adapter.Fill(dataTable);
  6162. return returnValue;
  6163. }
  6164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6166. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6167. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6168. public virtual lebcafeDataSet.ЗаказыDataTable GetData() {
  6169. this.Adapter.SelectCommand = this.CommandCollection[0];
  6170. lebcafeDataSet.ЗаказыDataTable dataTable = new lebcafeDataSet.ЗаказыDataTable();
  6171. this.Adapter.Fill(dataTable);
  6172. return dataTable;
  6173. }
  6174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6176. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6177. public virtual int Update(lebcafeDataSet.ЗаказыDataTable dataTable) {
  6178. return this.Adapter.Update(dataTable);
  6179. }
  6180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6182. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6183. public virtual int Update(lebcafeDataSet dataSet) {
  6184. return this.Adapter.Update(dataSet, "Заказы");
  6185. }
  6186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6188. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6189. public virtual int Update(global::System.Data.DataRow dataRow) {
  6190. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6191. dataRow});
  6192. }
  6193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6195. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6196. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6197. return this.Adapter.Update(dataRows);
  6198. }
  6199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6201. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6202. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6203. public virtual int Delete(int Original_ID_Заказа, global::System.Nullable<int> Original_ID_Столика, global::System.Nullable<int> Original_КоличествоКлиентов, global::System.Nullable<int> Original_ID_Статуса, global::System.Nullable<int> Original_ID_Смены, global::System.Nullable<global::System.DateTime> Original_ДатаЗаказа, global::System.Nullable<decimal> Original_СуммаЗаказа) {
  6204. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Заказа));
  6205. if ((Original_ID_Столика.HasValue == true)) {
  6206. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6207. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ID_Столика.Value));
  6208. }
  6209. else {
  6210. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6211. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6212. }
  6213. if ((Original_КоличествоКлиентов.HasValue == true)) {
  6214. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6215. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_КоличествоКлиентов.Value));
  6216. }
  6217. else {
  6218. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6219. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6220. }
  6221. if ((Original_ID_Статуса.HasValue == true)) {
  6222. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6223. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_ID_Статуса.Value));
  6224. }
  6225. else {
  6226. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6227. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6228. }
  6229. if ((Original_ID_Смены.HasValue == true)) {
  6230. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6231. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_ID_Смены.Value));
  6232. }
  6233. else {
  6234. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6235. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6236. }
  6237. if ((Original_ДатаЗаказа.HasValue == true)) {
  6238. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6239. this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_ДатаЗаказа.Value));
  6240. }
  6241. else {
  6242. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6243. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6244. }
  6245. if ((Original_СуммаЗаказа.HasValue == true)) {
  6246. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6247. this.Adapter.DeleteCommand.Parameters[12].Value = ((decimal)(Original_СуммаЗаказа.Value));
  6248. }
  6249. else {
  6250. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6251. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6252. }
  6253. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6254. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6255. != global::System.Data.ConnectionState.Open)) {
  6256. this.Adapter.DeleteCommand.Connection.Open();
  6257. }
  6258. try {
  6259. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6260. return returnValue;
  6261. }
  6262. finally {
  6263. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6264. this.Adapter.DeleteCommand.Connection.Close();
  6265. }
  6266. }
  6267. }
  6268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6270. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6271. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6272. public virtual int Insert(global::System.Nullable<int> ID_Столика, global::System.Nullable<int> КоличествоКлиентов, global::System.Nullable<int> ID_Статуса, global::System.Nullable<int> ID_Смены, global::System.Nullable<global::System.DateTime> ДатаЗаказа, global::System.Nullable<decimal> СуммаЗаказа) {
  6273. if ((ID_Столика.HasValue == true)) {
  6274. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Столика.Value));
  6275. }
  6276. else {
  6277. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6278. }
  6279. if ((КоличествоКлиентов.HasValue == true)) {
  6280. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(КоличествоКлиентов.Value));
  6281. }
  6282. else {
  6283. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6284. }
  6285. if ((ID_Статуса.HasValue == true)) {
  6286. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(ID_Статуса.Value));
  6287. }
  6288. else {
  6289. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6290. }
  6291. if ((ID_Смены.HasValue == true)) {
  6292. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ID_Смены.Value));
  6293. }
  6294. else {
  6295. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6296. }
  6297. if ((ДатаЗаказа.HasValue == true)) {
  6298. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(ДатаЗаказа.Value));
  6299. }
  6300. else {
  6301. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6302. }
  6303. if ((СуммаЗаказа.HasValue == true)) {
  6304. this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(СуммаЗаказа.Value));
  6305. }
  6306. else {
  6307. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6308. }
  6309. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6310. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6311. != global::System.Data.ConnectionState.Open)) {
  6312. this.Adapter.InsertCommand.Connection.Open();
  6313. }
  6314. try {
  6315. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6316. return returnValue;
  6317. }
  6318. finally {
  6319. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6320. this.Adapter.InsertCommand.Connection.Close();
  6321. }
  6322. }
  6323. }
  6324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6326. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6327. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6328. public virtual int Update(global::System.Nullable<int> ID_Столика, global::System.Nullable<int> КоличествоКлиентов, global::System.Nullable<int> ID_Статуса, global::System.Nullable<int> ID_Смены, global::System.Nullable<global::System.DateTime> ДатаЗаказа, global::System.Nullable<decimal> СуммаЗаказа, int Original_ID_Заказа, global::System.Nullable<int> Original_ID_Столика, global::System.Nullable<int> Original_КоличествоКлиентов, global::System.Nullable<int> Original_ID_Статуса, global::System.Nullable<int> Original_ID_Смены, global::System.Nullable<global::System.DateTime> Original_ДатаЗаказа, global::System.Nullable<decimal> Original_СуммаЗаказа, int ID_Заказа) {
  6329. if ((ID_Столика.HasValue == true)) {
  6330. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Столика.Value));
  6331. }
  6332. else {
  6333. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6334. }
  6335. if ((КоличествоКлиентов.HasValue == true)) {
  6336. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(КоличествоКлиентов.Value));
  6337. }
  6338. else {
  6339. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6340. }
  6341. if ((ID_Статуса.HasValue == true)) {
  6342. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(ID_Статуса.Value));
  6343. }
  6344. else {
  6345. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6346. }
  6347. if ((ID_Смены.HasValue == true)) {
  6348. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ID_Смены.Value));
  6349. }
  6350. else {
  6351. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6352. }
  6353. if ((ДатаЗаказа.HasValue == true)) {
  6354. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(ДатаЗаказа.Value));
  6355. }
  6356. else {
  6357. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6358. }
  6359. if ((СуммаЗаказа.HasValue == true)) {
  6360. this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(СуммаЗаказа.Value));
  6361. }
  6362. else {
  6363. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6364. }
  6365. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID_Заказа));
  6366. if ((Original_ID_Столика.HasValue == true)) {
  6367. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6368. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_ID_Столика.Value));
  6369. }
  6370. else {
  6371. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  6372. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6373. }
  6374. if ((Original_КоличествоКлиентов.HasValue == true)) {
  6375. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  6376. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_КоличествоКлиентов.Value));
  6377. }
  6378. else {
  6379. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  6380. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6381. }
  6382. if ((Original_ID_Статуса.HasValue == true)) {
  6383. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  6384. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_ID_Статуса.Value));
  6385. }
  6386. else {
  6387. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  6388. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6389. }
  6390. if ((Original_ID_Смены.HasValue == true)) {
  6391. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  6392. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_ID_Смены.Value));
  6393. }
  6394. else {
  6395. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  6396. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  6397. }
  6398. if ((Original_ДатаЗаказа.HasValue == true)) {
  6399. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  6400. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_ДатаЗаказа.Value));
  6401. }
  6402. else {
  6403. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  6404. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  6405. }
  6406. if ((Original_СуммаЗаказа.HasValue == true)) {
  6407. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  6408. this.Adapter.UpdateCommand.Parameters[18].Value = ((decimal)(Original_СуммаЗаказа.Value));
  6409. }
  6410. else {
  6411. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  6412. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  6413. }
  6414. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(ID_Заказа));
  6415. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6416. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6417. != global::System.Data.ConnectionState.Open)) {
  6418. this.Adapter.UpdateCommand.Connection.Open();
  6419. }
  6420. try {
  6421. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6422. return returnValue;
  6423. }
  6424. finally {
  6425. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6426. this.Adapter.UpdateCommand.Connection.Close();
  6427. }
  6428. }
  6429. }
  6430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6432. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6433. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6434. public virtual int Update(global::System.Nullable<int> ID_Столика, global::System.Nullable<int> КоличествоКлиентов, global::System.Nullable<int> ID_Статуса, global::System.Nullable<int> ID_Смены, global::System.Nullable<global::System.DateTime> ДатаЗаказа, global::System.Nullable<decimal> СуммаЗаказа, int Original_ID_Заказа, global::System.Nullable<int> Original_ID_Столика, global::System.Nullable<int> Original_КоличествоКлиентов, global::System.Nullable<int> Original_ID_Статуса, global::System.Nullable<int> Original_ID_Смены, global::System.Nullable<global::System.DateTime> Original_ДатаЗаказа, global::System.Nullable<decimal> Original_СуммаЗаказа) {
  6435. return this.Update(ID_Столика, КоличествоКлиентов, ID_Статуса, ID_Смены, ДатаЗаказа, СуммаЗаказа, Original_ID_Заказа, Original_ID_Столика, Original_КоличествоКлиентов, Original_ID_Статуса, Original_ID_Смены, Original_ДатаЗаказа, Original_СуммаЗаказа, Original_ID_Заказа);
  6436. }
  6437. }
  6438. /// <summary>
  6439. ///Represents the connection and commands used to retrieve and save data.
  6440. ///</summary>
  6441. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6442. [global::System.ComponentModel.ToolboxItem(true)]
  6443. [global::System.ComponentModel.DataObjectAttribute(true)]
  6444. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6445. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6446. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6447. public partial class ОфициантыTableAdapter : global::System.ComponentModel.Component {
  6448. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6449. private global::System.Data.SqlClient.SqlConnection _connection;
  6450. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6451. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6452. private bool _clearBeforeFill;
  6453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6455. public ОфициантыTableAdapter() {
  6456. this.ClearBeforeFill = true;
  6457. }
  6458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6460. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6461. get {
  6462. if ((this._adapter == null)) {
  6463. this.InitAdapter();
  6464. }
  6465. return this._adapter;
  6466. }
  6467. }
  6468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6470. internal global::System.Data.SqlClient.SqlConnection Connection {
  6471. get {
  6472. if ((this._connection == null)) {
  6473. this.InitConnection();
  6474. }
  6475. return this._connection;
  6476. }
  6477. set {
  6478. this._connection = value;
  6479. if ((this.Adapter.InsertCommand != null)) {
  6480. this.Adapter.InsertCommand.Connection = value;
  6481. }
  6482. if ((this.Adapter.DeleteCommand != null)) {
  6483. this.Adapter.DeleteCommand.Connection = value;
  6484. }
  6485. if ((this.Adapter.UpdateCommand != null)) {
  6486. this.Adapter.UpdateCommand.Connection = value;
  6487. }
  6488. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6489. if ((this.CommandCollection[i] != null)) {
  6490. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6491. }
  6492. }
  6493. }
  6494. }
  6495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6497. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6498. get {
  6499. return this._transaction;
  6500. }
  6501. set {
  6502. this._transaction = value;
  6503. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6504. this.CommandCollection[i].Transaction = this._transaction;
  6505. }
  6506. if (((this.Adapter != null)
  6507. && (this.Adapter.DeleteCommand != null))) {
  6508. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6509. }
  6510. if (((this.Adapter != null)
  6511. && (this.Adapter.InsertCommand != null))) {
  6512. this.Adapter.InsertCommand.Transaction = this._transaction;
  6513. }
  6514. if (((this.Adapter != null)
  6515. && (this.Adapter.UpdateCommand != null))) {
  6516. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6517. }
  6518. }
  6519. }
  6520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6522. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6523. get {
  6524. if ((this._commandCollection == null)) {
  6525. this.InitCommandCollection();
  6526. }
  6527. return this._commandCollection;
  6528. }
  6529. }
  6530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6532. public bool ClearBeforeFill {
  6533. get {
  6534. return this._clearBeforeFill;
  6535. }
  6536. set {
  6537. this._clearBeforeFill = value;
  6538. }
  6539. }
  6540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6542. private void InitAdapter() {
  6543. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6544. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6545. tableMapping.SourceTable = "Table";
  6546. tableMapping.DataSetTable = "Официанты";
  6547. tableMapping.ColumnMappings.Add("ID_Официанта", "ID_Официанта");
  6548. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  6549. tableMapping.ColumnMappings.Add("Имя", "Имя");
  6550. this._adapter.TableMappings.Add(tableMapping);
  6551. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6552. this._adapter.DeleteCommand.Connection = this.Connection;
  6553. this._adapter.DeleteCommand.CommandText = "DELETE FROM [Официанты] WHERE (([ID_Официанта] = @Original_ID_Официанта) AND ((@I" +
  6554. "sNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Фамил" +
  6555. "ия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)))";
  6556. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6557. 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, "", "", ""));
  6558. 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, "", "", ""));
  6559. 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, "", "", ""));
  6560. 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, "", "", ""));
  6561. 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, "", "", ""));
  6562. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6563. this._adapter.InsertCommand.Connection = this.Connection;
  6564. this._adapter.InsertCommand.CommandText = "INSERT INTO [Официанты] ([ID_Официанта], [Имя], [Фамилия]) VALUES (@ID_Официанта," +
  6565. " @Имя, @Фамилия);\r\nSELECT ID_Официанта, Имя, Фамилия FROM Официанты WHERE (ID_Оф" +
  6566. "ицианта = @ID_Официанта)";
  6567. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6568. 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, "", "", ""));
  6569. 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, "", "", ""));
  6570. 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, "", "", ""));
  6571. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6572. this._adapter.UpdateCommand.Connection = this.Connection;
  6573. this._adapter.UpdateCommand.CommandText = @"UPDATE [Официанты] SET [ID_Официанта] = @ID_Официанта, [Имя] = @Имя, [Фамилия] = @Фамилия WHERE (([ID_Официанта] = @Original_ID_Официанта) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)));
  6574. SELECT ID_Официанта, Имя, Фамилия FROM Официанты WHERE (ID_Официанта = @ID_Официанта)";
  6575. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6576. 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, "", "", ""));
  6577. 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, "", "", ""));
  6578. 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, "", "", ""));
  6579. 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, "", "", ""));
  6580. 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, "", "", ""));
  6581. 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, "", "", ""));
  6582. 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, "", "", ""));
  6583. 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, "", "", ""));
  6584. }
  6585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6587. private void InitConnection() {
  6588. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6589. this._connection.ConnectionString = global::Cafe11.Properties.Settings.Default.lebcafeConnectionString;
  6590. }
  6591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6593. private void InitCommandCollection() {
  6594. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6595. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6596. this._commandCollection[0].Connection = this.Connection;
  6597. this._commandCollection[0].CommandText = "SELECT ID_Официанта, Имя, Фамилия FROM Официанты";
  6598. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6599. }
  6600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6602. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6603. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6604. public virtual int Fill(lebcafeDataSet.ОфициантыDataTable dataTable) {
  6605. this.Adapter.SelectCommand = this.CommandCollection[0];
  6606. if ((this.ClearBeforeFill == true)) {
  6607. dataTable.Clear();
  6608. }
  6609. int returnValue = this.Adapter.Fill(dataTable);
  6610. return returnValue;
  6611. }
  6612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6614. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6615. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6616. public virtual lebcafeDataSet.ОфициантыDataTable GetData() {
  6617. this.Adapter.SelectCommand = this.CommandCollection[0];
  6618. lebcafeDataSet.ОфициантыDataTable dataTable = new lebcafeDataSet.ОфициантыDataTable();
  6619. this.Adapter.Fill(dataTable);
  6620. return dataTable;
  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. public virtual int Update(lebcafeDataSet.ОфициантыDataTable dataTable) {
  6626. return this.Adapter.Update(dataTable);
  6627. }
  6628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6630. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6631. public virtual int Update(lebcafeDataSet dataSet) {
  6632. return this.Adapter.Update(dataSet, "Официанты");
  6633. }
  6634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6636. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6637. public virtual int Update(global::System.Data.DataRow dataRow) {
  6638. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6639. dataRow});
  6640. }
  6641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6643. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6644. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6645. return this.Adapter.Update(dataRows);
  6646. }
  6647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6649. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6650. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6651. public virtual int Delete(int Original_ID_Официанта, string Original_Имя, string Original_Фамилия) {
  6652. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Официанта));
  6653. if ((Original_Имя == null)) {
  6654. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6655. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6656. }
  6657. else {
  6658. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6659. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Имя));
  6660. }
  6661. if ((Original_Фамилия == null)) {
  6662. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6663. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6664. }
  6665. else {
  6666. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6667. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Фамилия));
  6668. }
  6669. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6670. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6671. != global::System.Data.ConnectionState.Open)) {
  6672. this.Adapter.DeleteCommand.Connection.Open();
  6673. }
  6674. try {
  6675. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6676. return returnValue;
  6677. }
  6678. finally {
  6679. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6680. this.Adapter.DeleteCommand.Connection.Close();
  6681. }
  6682. }
  6683. }
  6684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6686. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6687. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6688. public virtual int Insert(int ID_Официанта, string Имя, string Фамилия) {
  6689. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Официанта));
  6690. if ((Имя == null)) {
  6691. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6692. }
  6693. else {
  6694. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Имя));
  6695. }
  6696. if ((Фамилия == null)) {
  6697. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6698. }
  6699. else {
  6700. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Фамилия));
  6701. }
  6702. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6703. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6704. != global::System.Data.ConnectionState.Open)) {
  6705. this.Adapter.InsertCommand.Connection.Open();
  6706. }
  6707. try {
  6708. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6709. return returnValue;
  6710. }
  6711. finally {
  6712. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6713. this.Adapter.InsertCommand.Connection.Close();
  6714. }
  6715. }
  6716. }
  6717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6719. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6720. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6721. public virtual int Update(int ID_Официанта, string Имя, string Фамилия, int Original_ID_Официанта, string Original_Имя, string Original_Фамилия) {
  6722. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Официанта));
  6723. if ((Имя == null)) {
  6724. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6725. }
  6726. else {
  6727. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Имя));
  6728. }
  6729. if ((Фамилия == null)) {
  6730. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6731. }
  6732. else {
  6733. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Фамилия));
  6734. }
  6735. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID_Официанта));
  6736. if ((Original_Имя == null)) {
  6737. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  6738. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6739. }
  6740. else {
  6741. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  6742. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Имя));
  6743. }
  6744. if ((Original_Фамилия == null)) {
  6745. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  6746. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6747. }
  6748. else {
  6749. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  6750. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Фамилия));
  6751. }
  6752. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6753. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6754. != global::System.Data.ConnectionState.Open)) {
  6755. this.Adapter.UpdateCommand.Connection.Open();
  6756. }
  6757. try {
  6758. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6759. return returnValue;
  6760. }
  6761. finally {
  6762. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6763. this.Adapter.UpdateCommand.Connection.Close();
  6764. }
  6765. }
  6766. }
  6767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6769. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6770. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6771. public virtual int Update(string Имя, string Фамилия, int Original_ID_Официанта, string Original_Имя, string Original_Фамилия) {
  6772. return this.Update(Original_ID_Официанта, Имя, Фамилия, Original_ID_Официанта, Original_Имя, Original_Фамилия);
  6773. }
  6774. }
  6775. /// <summary>
  6776. ///Represents the connection and commands used to retrieve and save data.
  6777. ///</summary>
  6778. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6779. [global::System.ComponentModel.ToolboxItem(true)]
  6780. [global::System.ComponentModel.DataObjectAttribute(true)]
  6781. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6782. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6783. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6784. public partial class ПовараTableAdapter : global::System.ComponentModel.Component {
  6785. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6786. private global::System.Data.SqlClient.SqlConnection _connection;
  6787. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6788. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6789. private bool _clearBeforeFill;
  6790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6792. public ПовараTableAdapter() {
  6793. this.ClearBeforeFill = true;
  6794. }
  6795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6797. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6798. get {
  6799. if ((this._adapter == null)) {
  6800. this.InitAdapter();
  6801. }
  6802. return this._adapter;
  6803. }
  6804. }
  6805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6807. internal global::System.Data.SqlClient.SqlConnection Connection {
  6808. get {
  6809. if ((this._connection == null)) {
  6810. this.InitConnection();
  6811. }
  6812. return this._connection;
  6813. }
  6814. set {
  6815. this._connection = value;
  6816. if ((this.Adapter.InsertCommand != null)) {
  6817. this.Adapter.InsertCommand.Connection = value;
  6818. }
  6819. if ((this.Adapter.DeleteCommand != null)) {
  6820. this.Adapter.DeleteCommand.Connection = value;
  6821. }
  6822. if ((this.Adapter.UpdateCommand != null)) {
  6823. this.Adapter.UpdateCommand.Connection = value;
  6824. }
  6825. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6826. if ((this.CommandCollection[i] != null)) {
  6827. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6828. }
  6829. }
  6830. }
  6831. }
  6832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6834. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6835. get {
  6836. return this._transaction;
  6837. }
  6838. set {
  6839. this._transaction = value;
  6840. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6841. this.CommandCollection[i].Transaction = this._transaction;
  6842. }
  6843. if (((this.Adapter != null)
  6844. && (this.Adapter.DeleteCommand != null))) {
  6845. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6846. }
  6847. if (((this.Adapter != null)
  6848. && (this.Adapter.InsertCommand != null))) {
  6849. this.Adapter.InsertCommand.Transaction = this._transaction;
  6850. }
  6851. if (((this.Adapter != null)
  6852. && (this.Adapter.UpdateCommand != null))) {
  6853. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6854. }
  6855. }
  6856. }
  6857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6859. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6860. get {
  6861. if ((this._commandCollection == null)) {
  6862. this.InitCommandCollection();
  6863. }
  6864. return this._commandCollection;
  6865. }
  6866. }
  6867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6869. public bool ClearBeforeFill {
  6870. get {
  6871. return this._clearBeforeFill;
  6872. }
  6873. set {
  6874. this._clearBeforeFill = value;
  6875. }
  6876. }
  6877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6879. private void InitAdapter() {
  6880. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6881. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6882. tableMapping.SourceTable = "Table";
  6883. tableMapping.DataSetTable = "Повара";
  6884. tableMapping.ColumnMappings.Add("ID_Повара", "ID_Повара");
  6885. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  6886. tableMapping.ColumnMappings.Add("Имя", "Имя");
  6887. this._adapter.TableMappings.Add(tableMapping);
  6888. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6889. this._adapter.DeleteCommand.Connection = this.Connection;
  6890. this._adapter.DeleteCommand.CommandText = "DELETE FROM [Повара] WHERE (([ID_Повара] = @Original_ID_Повара) AND ((@IsNull_Имя" +
  6891. " = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Фамилия = 1 AN" +
  6892. "D [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)))";
  6893. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6894. 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, "", "", ""));
  6895. 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, "", "", ""));
  6896. 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, "", "", ""));
  6897. 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, "", "", ""));
  6898. 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, "", "", ""));
  6899. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6900. this._adapter.InsertCommand.Connection = this.Connection;
  6901. this._adapter.InsertCommand.CommandText = "INSERT INTO [Повара] ([ID_Повара], [Имя], [Фамилия]) VALUES (@ID_Повара, @Имя, @Ф" +
  6902. "амилия);\r\nSELECT ID_Повара, Имя, Фамилия FROM Повара WHERE (ID_Повара = @ID_Пова" +
  6903. "ра)";
  6904. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6905. 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, "", "", ""));
  6906. 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, "", "", ""));
  6907. 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, "", "", ""));
  6908. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6909. this._adapter.UpdateCommand.Connection = this.Connection;
  6910. this._adapter.UpdateCommand.CommandText = @"UPDATE [Повара] SET [ID_Повара] = @ID_Повара, [Имя] = @Имя, [Фамилия] = @Фамилия WHERE (([ID_Повара] = @Original_ID_Повара) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)));
  6911. SELECT ID_Повара, Имя, Фамилия FROM Повара WHERE (ID_Повара = @ID_Повара)";
  6912. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6913. 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, "", "", ""));
  6914. 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, "", "", ""));
  6915. 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, "", "", ""));
  6916. 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, "", "", ""));
  6917. 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, "", "", ""));
  6918. 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, "", "", ""));
  6919. 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, "", "", ""));
  6920. 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, "", "", ""));
  6921. }
  6922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6924. private void InitConnection() {
  6925. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6926. this._connection.ConnectionString = global::Cafe11.Properties.Settings.Default.lebcafeConnectionString;
  6927. }
  6928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6930. private void InitCommandCollection() {
  6931. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6932. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6933. this._commandCollection[0].Connection = this.Connection;
  6934. this._commandCollection[0].CommandText = "SELECT ID_Повара, Имя, Фамилия FROM Повара";
  6935. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6936. }
  6937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6939. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6940. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6941. public virtual int Fill(lebcafeDataSet.ПовараDataTable dataTable) {
  6942. this.Adapter.SelectCommand = this.CommandCollection[0];
  6943. if ((this.ClearBeforeFill == true)) {
  6944. dataTable.Clear();
  6945. }
  6946. int returnValue = this.Adapter.Fill(dataTable);
  6947. return returnValue;
  6948. }
  6949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6951. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6952. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6953. public virtual lebcafeDataSet.ПовараDataTable GetData() {
  6954. this.Adapter.SelectCommand = this.CommandCollection[0];
  6955. lebcafeDataSet.ПовараDataTable dataTable = new lebcafeDataSet.ПовараDataTable();
  6956. this.Adapter.Fill(dataTable);
  6957. return dataTable;
  6958. }
  6959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6961. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6962. public virtual int Update(lebcafeDataSet.ПовараDataTable dataTable) {
  6963. return this.Adapter.Update(dataTable);
  6964. }
  6965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6967. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6968. public virtual int Update(lebcafeDataSet dataSet) {
  6969. return this.Adapter.Update(dataSet, "Повара");
  6970. }
  6971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6973. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6974. public virtual int Update(global::System.Data.DataRow dataRow) {
  6975. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6976. dataRow});
  6977. }
  6978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6980. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6981. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6982. return this.Adapter.Update(dataRows);
  6983. }
  6984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6986. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6987. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6988. public virtual int Delete(int Original_ID_Повара, string Original_Имя, string Original_Фамилия) {
  6989. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Повара));
  6990. if ((Original_Имя == null)) {
  6991. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6992. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6993. }
  6994. else {
  6995. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6996. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Имя));
  6997. }
  6998. if ((Original_Фамилия == null)) {
  6999. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7000. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7001. }
  7002. else {
  7003. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7004. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Фамилия));
  7005. }
  7006. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7007. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7008. != global::System.Data.ConnectionState.Open)) {
  7009. this.Adapter.DeleteCommand.Connection.Open();
  7010. }
  7011. try {
  7012. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7013. return returnValue;
  7014. }
  7015. finally {
  7016. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7017. this.Adapter.DeleteCommand.Connection.Close();
  7018. }
  7019. }
  7020. }
  7021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7023. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7024. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7025. public virtual int Insert(int ID_Повара, string Имя, string Фамилия) {
  7026. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Повара));
  7027. if ((Имя == null)) {
  7028. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7029. }
  7030. else {
  7031. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Имя));
  7032. }
  7033. if ((Фамилия == null)) {
  7034. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7035. }
  7036. else {
  7037. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Фамилия));
  7038. }
  7039. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7040. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7041. != global::System.Data.ConnectionState.Open)) {
  7042. this.Adapter.InsertCommand.Connection.Open();
  7043. }
  7044. try {
  7045. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7046. return returnValue;
  7047. }
  7048. finally {
  7049. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7050. this.Adapter.InsertCommand.Connection.Close();
  7051. }
  7052. }
  7053. }
  7054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7056. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7057. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7058. public virtual int Update(int ID_Повара, string Имя, string Фамилия, int Original_ID_Повара, string Original_Имя, string Original_Фамилия) {
  7059. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Повара));
  7060. if ((Имя == null)) {
  7061. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7062. }
  7063. else {
  7064. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Имя));
  7065. }
  7066. if ((Фамилия == null)) {
  7067. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7068. }
  7069. else {
  7070. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Фамилия));
  7071. }
  7072. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID_Повара));
  7073. if ((Original_Имя == null)) {
  7074. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  7075. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7076. }
  7077. else {
  7078. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  7079. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Имя));
  7080. }
  7081. if ((Original_Фамилия == null)) {
  7082. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  7083. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7084. }
  7085. else {
  7086. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  7087. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Фамилия));
  7088. }
  7089. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7090. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7091. != global::System.Data.ConnectionState.Open)) {
  7092. this.Adapter.UpdateCommand.Connection.Open();
  7093. }
  7094. try {
  7095. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7096. return returnValue;
  7097. }
  7098. finally {
  7099. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7100. this.Adapter.UpdateCommand.Connection.Close();
  7101. }
  7102. }
  7103. }
  7104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7106. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7107. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7108. public virtual int Update(string Имя, string Фамилия, int Original_ID_Повара, string Original_Имя, string Original_Фамилия) {
  7109. return this.Update(Original_ID_Повара, Имя, Фамилия, Original_ID_Повара, Original_Имя, Original_Фамилия);
  7110. }
  7111. }
  7112. /// <summary>
  7113. ///Represents the connection and commands used to retrieve and save data.
  7114. ///</summary>
  7115. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7116. [global::System.ComponentModel.ToolboxItem(true)]
  7117. [global::System.ComponentModel.DataObjectAttribute(true)]
  7118. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7119. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7120. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7121. public partial class ПользователиTableAdapter : global::System.ComponentModel.Component {
  7122. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7123. private global::System.Data.SqlClient.SqlConnection _connection;
  7124. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7125. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7126. private bool _clearBeforeFill;
  7127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7129. public ПользователиTableAdapter() {
  7130. this.ClearBeforeFill = true;
  7131. }
  7132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7134. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7135. get {
  7136. if ((this._adapter == null)) {
  7137. this.InitAdapter();
  7138. }
  7139. return this._adapter;
  7140. }
  7141. }
  7142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7144. internal global::System.Data.SqlClient.SqlConnection Connection {
  7145. get {
  7146. if ((this._connection == null)) {
  7147. this.InitConnection();
  7148. }
  7149. return this._connection;
  7150. }
  7151. set {
  7152. this._connection = value;
  7153. if ((this.Adapter.InsertCommand != null)) {
  7154. this.Adapter.InsertCommand.Connection = value;
  7155. }
  7156. if ((this.Adapter.DeleteCommand != null)) {
  7157. this.Adapter.DeleteCommand.Connection = value;
  7158. }
  7159. if ((this.Adapter.UpdateCommand != null)) {
  7160. this.Adapter.UpdateCommand.Connection = value;
  7161. }
  7162. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7163. if ((this.CommandCollection[i] != null)) {
  7164. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7165. }
  7166. }
  7167. }
  7168. }
  7169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7171. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7172. get {
  7173. return this._transaction;
  7174. }
  7175. set {
  7176. this._transaction = value;
  7177. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7178. this.CommandCollection[i].Transaction = this._transaction;
  7179. }
  7180. if (((this.Adapter != null)
  7181. && (this.Adapter.DeleteCommand != null))) {
  7182. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7183. }
  7184. if (((this.Adapter != null)
  7185. && (this.Adapter.InsertCommand != null))) {
  7186. this.Adapter.InsertCommand.Transaction = this._transaction;
  7187. }
  7188. if (((this.Adapter != null)
  7189. && (this.Adapter.UpdateCommand != null))) {
  7190. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7191. }
  7192. }
  7193. }
  7194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7196. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7197. get {
  7198. if ((this._commandCollection == null)) {
  7199. this.InitCommandCollection();
  7200. }
  7201. return this._commandCollection;
  7202. }
  7203. }
  7204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7206. public bool ClearBeforeFill {
  7207. get {
  7208. return this._clearBeforeFill;
  7209. }
  7210. set {
  7211. this._clearBeforeFill = value;
  7212. }
  7213. }
  7214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7216. private void InitAdapter() {
  7217. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7218. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7219. tableMapping.SourceTable = "Table";
  7220. tableMapping.DataSetTable = "Пользователи";
  7221. tableMapping.ColumnMappings.Add("ID_Пользователя", "ID_Пользователя");
  7222. tableMapping.ColumnMappings.Add("Логин", "Логин");
  7223. tableMapping.ColumnMappings.Add("Пароль", "Пароль");
  7224. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  7225. tableMapping.ColumnMappings.Add("ID_Роли", "ID_Роли");
  7226. tableMapping.ColumnMappings.Add("ID_Статуса", "ID_Статуса");
  7227. this._adapter.TableMappings.Add(tableMapping);
  7228. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7229. this._adapter.DeleteCommand.Connection = this.Connection;
  7230. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Пользователи] 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_ID_Роли = 1 AND [ID_Роли] IS NULL) OR ([ID_Роли] = @Original_ID_Роли)) AND ((@IsNull_ID_Статуса = 1 AND [ID_Статуса] IS NULL) OR ([ID_Статуса] = @Original_ID_Статуса)))";
  7231. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7232. 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, "", "", ""));
  7233. 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, "", "", ""));
  7234. 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, "", "", ""));
  7235. 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, "", "", ""));
  7236. 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, "", "", ""));
  7237. 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, "", "", ""));
  7238. 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, "", "", ""));
  7239. 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, "", "", ""));
  7240. 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, "", "", ""));
  7241. 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, "", "", ""));
  7242. 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, "", "", ""));
  7243. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7244. this._adapter.InsertCommand.Connection = this.Connection;
  7245. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Пользователи] ([ID_Пользователя], [Логин], [Пароль], [Фамилия], [ID_Роли], [ID_Статуса]) VALUES (@ID_Пользователя, @Логин, @Пароль, @Фамилия, @ID_Роли, @ID_Статуса);
  7246. SELECT ID_Пользователя, Логин, Пароль, Фамилия, ID_Роли, ID_Статуса FROM Пользователи WHERE (ID_Пользователя = @ID_Пользователя)";
  7247. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7248. 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, "", "", ""));
  7249. 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, "", "", ""));
  7250. 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, "", "", ""));
  7251. 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, "", "", ""));
  7252. 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, "", "", ""));
  7253. 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, "", "", ""));
  7254. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7255. this._adapter.UpdateCommand.Connection = this.Connection;
  7256. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Пользователи] SET [ID_Пользователя] = @ID_Пользователя, [Логин] = @Логин, [Пароль] = @Пароль, [Фамилия] = @Фамилия, [ID_Роли] = @ID_Роли, [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_ID_Роли = 1 AND [ID_Роли] IS NULL) OR ([ID_Роли] = @Original_ID_Роли)) AND ((@IsNull_ID_Статуса = 1 AND [ID_Статуса] IS NULL) OR ([ID_Статуса] = @Original_ID_Статуса)));
  7257. SELECT ID_Пользователя, Логин, Пароль, Фамилия, ID_Роли, ID_Статуса FROM Пользователи WHERE (ID_Пользователя = @ID_Пользователя)";
  7258. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7259. 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, "", "", ""));
  7260. 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, "", "", ""));
  7261. 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, "", "", ""));
  7262. 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, "", "", ""));
  7263. 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, "", "", ""));
  7264. 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, "", "", ""));
  7265. 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, "", "", ""));
  7266. 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, "", "", ""));
  7267. 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, "", "", ""));
  7268. 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, "", "", ""));
  7269. 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, "", "", ""));
  7270. 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, "", "", ""));
  7271. 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, "", "", ""));
  7272. 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, "", "", ""));
  7273. 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, "", "", ""));
  7274. 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, "", "", ""));
  7275. 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, "", "", ""));
  7276. }
  7277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7279. private void InitConnection() {
  7280. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7281. this._connection.ConnectionString = global::Cafe11.Properties.Settings.Default.lebcafeConnectionString;
  7282. }
  7283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7285. private void InitCommandCollection() {
  7286. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7287. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7288. this._commandCollection[0].Connection = this.Connection;
  7289. this._commandCollection[0].CommandText = "SELECT ID_Пользователя, Логин, Пароль, Фамилия, ID_Роли, ID_Статуса FROM dbo.Поль" +
  7290. "зователи";
  7291. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7292. }
  7293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7295. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7296. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7297. public virtual int Fill(lebcafeDataSet.ПользователиDataTable dataTable) {
  7298. this.Adapter.SelectCommand = this.CommandCollection[0];
  7299. if ((this.ClearBeforeFill == true)) {
  7300. dataTable.Clear();
  7301. }
  7302. int returnValue = this.Adapter.Fill(dataTable);
  7303. return returnValue;
  7304. }
  7305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7307. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7308. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7309. public virtual lebcafeDataSet.ПользователиDataTable GetData() {
  7310. this.Adapter.SelectCommand = this.CommandCollection[0];
  7311. lebcafeDataSet.ПользователиDataTable dataTable = new lebcafeDataSet.ПользователиDataTable();
  7312. this.Adapter.Fill(dataTable);
  7313. return dataTable;
  7314. }
  7315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7317. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7318. public virtual int Update(lebcafeDataSet.ПользователиDataTable dataTable) {
  7319. return this.Adapter.Update(dataTable);
  7320. }
  7321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7323. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7324. public virtual int Update(lebcafeDataSet dataSet) {
  7325. return this.Adapter.Update(dataSet, "Пользователи");
  7326. }
  7327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7329. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7330. public virtual int Update(global::System.Data.DataRow dataRow) {
  7331. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7332. dataRow});
  7333. }
  7334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7336. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7337. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7338. return this.Adapter.Update(dataRows);
  7339. }
  7340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7342. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7343. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7344. public virtual int Delete(int Original_ID_Пользователя, string Original_Логин, string Original_Пароль, string Original_Фамилия, global::System.Nullable<int> Original_ID_Роли, global::System.Nullable<int> Original_ID_Статуса) {
  7345. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Пользователя));
  7346. if ((Original_Логин == null)) {
  7347. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7348. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7349. }
  7350. else {
  7351. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7352. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Логин));
  7353. }
  7354. if ((Original_Пароль == null)) {
  7355. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7356. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7357. }
  7358. else {
  7359. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7360. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Пароль));
  7361. }
  7362. if ((Original_Фамилия == null)) {
  7363. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7364. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7365. }
  7366. else {
  7367. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7368. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Фамилия));
  7369. }
  7370. if ((Original_ID_Роли.HasValue == true)) {
  7371. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7372. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_ID_Роли.Value));
  7373. }
  7374. else {
  7375. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7376. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7377. }
  7378. if ((Original_ID_Статуса.HasValue == true)) {
  7379. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  7380. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_ID_Статуса.Value));
  7381. }
  7382. else {
  7383. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  7384. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  7385. }
  7386. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7387. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7388. != global::System.Data.ConnectionState.Open)) {
  7389. this.Adapter.DeleteCommand.Connection.Open();
  7390. }
  7391. try {
  7392. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7393. return returnValue;
  7394. }
  7395. finally {
  7396. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7397. this.Adapter.DeleteCommand.Connection.Close();
  7398. }
  7399. }
  7400. }
  7401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7403. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7404. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7405. public virtual int Insert(int ID_Пользователя, string Логин, string Пароль, string Фамилия, global::System.Nullable<int> ID_Роли, global::System.Nullable<int> ID_Статуса) {
  7406. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Пользователя));
  7407. if ((Логин == null)) {
  7408. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7409. }
  7410. else {
  7411. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Логин));
  7412. }
  7413. if ((Пароль == null)) {
  7414. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7415. }
  7416. else {
  7417. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Пароль));
  7418. }
  7419. if ((Фамилия == null)) {
  7420. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7421. }
  7422. else {
  7423. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Фамилия));
  7424. }
  7425. if ((ID_Роли.HasValue == true)) {
  7426. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(ID_Роли.Value));
  7427. }
  7428. else {
  7429. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  7430. }
  7431. if ((ID_Статуса.HasValue == true)) {
  7432. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ID_Статуса.Value));
  7433. }
  7434. else {
  7435. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  7436. }
  7437. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7438. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7439. != global::System.Data.ConnectionState.Open)) {
  7440. this.Adapter.InsertCommand.Connection.Open();
  7441. }
  7442. try {
  7443. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7444. return returnValue;
  7445. }
  7446. finally {
  7447. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7448. this.Adapter.InsertCommand.Connection.Close();
  7449. }
  7450. }
  7451. }
  7452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7454. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7455. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7456. public virtual int Update(int ID_Пользователя, string Логин, string Пароль, string Фамилия, global::System.Nullable<int> ID_Роли, global::System.Nullable<int> ID_Статуса, int Original_ID_Пользователя, string Original_Логин, string Original_Пароль, string Original_Фамилия, global::System.Nullable<int> Original_ID_Роли, global::System.Nullable<int> Original_ID_Статуса) {
  7457. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Пользователя));
  7458. if ((Логин == null)) {
  7459. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7460. }
  7461. else {
  7462. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Логин));
  7463. }
  7464. if ((Пароль == null)) {
  7465. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7466. }
  7467. else {
  7468. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Пароль));
  7469. }
  7470. if ((Фамилия == null)) {
  7471. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7472. }
  7473. else {
  7474. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Фамилия));
  7475. }
  7476. if ((ID_Роли.HasValue == true)) {
  7477. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ID_Роли.Value));
  7478. }
  7479. else {
  7480. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7481. }
  7482. if ((ID_Статуса.HasValue == true)) {
  7483. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID_Статуса.Value));
  7484. }
  7485. else {
  7486. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7487. }
  7488. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID_Пользователя));
  7489. if ((Original_Логин == null)) {
  7490. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  7491. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7492. }
  7493. else {
  7494. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  7495. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Логин));
  7496. }
  7497. if ((Original_Пароль == null)) {
  7498. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  7499. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7500. }
  7501. else {
  7502. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  7503. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Пароль));
  7504. }
  7505. if ((Original_Фамилия == null)) {
  7506. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  7507. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7508. }
  7509. else {
  7510. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  7511. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Фамилия));
  7512. }
  7513. if ((Original_ID_Роли.HasValue == true)) {
  7514. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  7515. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_ID_Роли.Value));
  7516. }
  7517. else {
  7518. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  7519. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  7520. }
  7521. if ((Original_ID_Статуса.HasValue == true)) {
  7522. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  7523. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_ID_Статуса.Value));
  7524. }
  7525. else {
  7526. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  7527. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  7528. }
  7529. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7530. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7531. != global::System.Data.ConnectionState.Open)) {
  7532. this.Adapter.UpdateCommand.Connection.Open();
  7533. }
  7534. try {
  7535. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7536. return returnValue;
  7537. }
  7538. finally {
  7539. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7540. this.Adapter.UpdateCommand.Connection.Close();
  7541. }
  7542. }
  7543. }
  7544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7546. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7547. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7548. public virtual int Update(string Логин, string Пароль, string Фамилия, global::System.Nullable<int> ID_Роли, global::System.Nullable<int> ID_Статуса, int Original_ID_Пользователя, string Original_Логин, string Original_Пароль, string Original_Фамилия, global::System.Nullable<int> Original_ID_Роли, global::System.Nullable<int> Original_ID_Статуса) {
  7549. return this.Update(Original_ID_Пользователя, Логин, Пароль, Фамилия, ID_Роли, ID_Статуса, Original_ID_Пользователя, Original_Логин, Original_Пароль, Original_Фамилия, Original_ID_Роли, Original_ID_Статуса);
  7550. }
  7551. }
  7552. /// <summary>
  7553. ///Represents the connection and commands used to retrieve and save data.
  7554. ///</summary>
  7555. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7556. [global::System.ComponentModel.ToolboxItem(true)]
  7557. [global::System.ComponentModel.DataObjectAttribute(true)]
  7558. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7559. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7560. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7561. public partial class РолиTableAdapter : global::System.ComponentModel.Component {
  7562. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7563. private global::System.Data.SqlClient.SqlConnection _connection;
  7564. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7565. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7566. private bool _clearBeforeFill;
  7567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7569. public РолиTableAdapter() {
  7570. this.ClearBeforeFill = true;
  7571. }
  7572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7574. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7575. get {
  7576. if ((this._adapter == null)) {
  7577. this.InitAdapter();
  7578. }
  7579. return this._adapter;
  7580. }
  7581. }
  7582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7584. internal global::System.Data.SqlClient.SqlConnection Connection {
  7585. get {
  7586. if ((this._connection == null)) {
  7587. this.InitConnection();
  7588. }
  7589. return this._connection;
  7590. }
  7591. set {
  7592. this._connection = value;
  7593. if ((this.Adapter.InsertCommand != null)) {
  7594. this.Adapter.InsertCommand.Connection = value;
  7595. }
  7596. if ((this.Adapter.DeleteCommand != null)) {
  7597. this.Adapter.DeleteCommand.Connection = value;
  7598. }
  7599. if ((this.Adapter.UpdateCommand != null)) {
  7600. this.Adapter.UpdateCommand.Connection = value;
  7601. }
  7602. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7603. if ((this.CommandCollection[i] != null)) {
  7604. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7605. }
  7606. }
  7607. }
  7608. }
  7609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7611. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7612. get {
  7613. return this._transaction;
  7614. }
  7615. set {
  7616. this._transaction = value;
  7617. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7618. this.CommandCollection[i].Transaction = this._transaction;
  7619. }
  7620. if (((this.Adapter != null)
  7621. && (this.Adapter.DeleteCommand != null))) {
  7622. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7623. }
  7624. if (((this.Adapter != null)
  7625. && (this.Adapter.InsertCommand != null))) {
  7626. this.Adapter.InsertCommand.Transaction = this._transaction;
  7627. }
  7628. if (((this.Adapter != null)
  7629. && (this.Adapter.UpdateCommand != null))) {
  7630. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7631. }
  7632. }
  7633. }
  7634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7636. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7637. get {
  7638. if ((this._commandCollection == null)) {
  7639. this.InitCommandCollection();
  7640. }
  7641. return this._commandCollection;
  7642. }
  7643. }
  7644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7646. public bool ClearBeforeFill {
  7647. get {
  7648. return this._clearBeforeFill;
  7649. }
  7650. set {
  7651. this._clearBeforeFill = value;
  7652. }
  7653. }
  7654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7656. private void InitAdapter() {
  7657. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7658. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7659. tableMapping.SourceTable = "Table";
  7660. tableMapping.DataSetTable = "Роли";
  7661. tableMapping.ColumnMappings.Add("id_Роли", "id_Роли");
  7662. tableMapping.ColumnMappings.Add("Название", "Название");
  7663. this._adapter.TableMappings.Add(tableMapping);
  7664. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7665. this._adapter.DeleteCommand.Connection = this.Connection;
  7666. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Роли] WHERE (([id_Роли] = @Original_id_Роли) AND ((@IsNull_Наз" +
  7667. "вание = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)))";
  7668. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7669. 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, "", "", ""));
  7670. 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, "", "", ""));
  7671. 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, "", "", ""));
  7672. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7673. this._adapter.InsertCommand.Connection = this.Connection;
  7674. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Роли] ([id_Роли], [Название]) VALUES (@id_Роли, @Название);\r\nS" +
  7675. "ELECT id_Роли, Название FROM Роли WHERE (id_Роли = @id_Роли)";
  7676. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7677. 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, "", "", ""));
  7678. 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, "", "", ""));
  7679. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7680. this._adapter.UpdateCommand.Connection = this.Connection;
  7681. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Роли] SET [id_Роли] = @id_Роли, [Название] = @Название WHERE (([id_Роли] = @Original_id_Роли) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)));
  7682. SELECT id_Роли, Название FROM Роли WHERE (id_Роли = @id_Роли)";
  7683. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7684. 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, "", "", ""));
  7685. 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, "", "", ""));
  7686. 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, "", "", ""));
  7687. 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, "", "", ""));
  7688. 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, "", "", ""));
  7689. }
  7690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7692. private void InitConnection() {
  7693. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7694. this._connection.ConnectionString = global::Cafe11.Properties.Settings.Default.lebcafeConnectionString;
  7695. }
  7696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7698. private void InitCommandCollection() {
  7699. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7700. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7701. this._commandCollection[0].Connection = this.Connection;
  7702. this._commandCollection[0].CommandText = "SELECT id_Роли, Название FROM dbo.Роли";
  7703. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7704. }
  7705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7707. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7708. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7709. public virtual int Fill(lebcafeDataSet.РолиDataTable dataTable) {
  7710. this.Adapter.SelectCommand = this.CommandCollection[0];
  7711. if ((this.ClearBeforeFill == true)) {
  7712. dataTable.Clear();
  7713. }
  7714. int returnValue = this.Adapter.Fill(dataTable);
  7715. return returnValue;
  7716. }
  7717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7719. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7720. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7721. public virtual lebcafeDataSet.РолиDataTable GetData() {
  7722. this.Adapter.SelectCommand = this.CommandCollection[0];
  7723. lebcafeDataSet.РолиDataTable dataTable = new lebcafeDataSet.РолиDataTable();
  7724. this.Adapter.Fill(dataTable);
  7725. return dataTable;
  7726. }
  7727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7729. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7730. public virtual int Update(lebcafeDataSet.РолиDataTable dataTable) {
  7731. return this.Adapter.Update(dataTable);
  7732. }
  7733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7735. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7736. public virtual int Update(lebcafeDataSet dataSet) {
  7737. return this.Adapter.Update(dataSet, "Роли");
  7738. }
  7739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7742. public virtual int Update(global::System.Data.DataRow dataRow) {
  7743. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7744. dataRow});
  7745. }
  7746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7748. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7749. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7750. return this.Adapter.Update(dataRows);
  7751. }
  7752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7754. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7755. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7756. public virtual int Delete(int Original_id_Роли, string Original_Название) {
  7757. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_Роли));
  7758. if ((Original_Название == null)) {
  7759. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7760. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7761. }
  7762. else {
  7763. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7764. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  7765. }
  7766. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7767. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7768. != global::System.Data.ConnectionState.Open)) {
  7769. this.Adapter.DeleteCommand.Connection.Open();
  7770. }
  7771. try {
  7772. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7773. return returnValue;
  7774. }
  7775. finally {
  7776. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7777. this.Adapter.DeleteCommand.Connection.Close();
  7778. }
  7779. }
  7780. }
  7781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7783. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7784. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7785. public virtual int Insert(int id_Роли, string Название) {
  7786. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id_Роли));
  7787. if ((Название == null)) {
  7788. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7789. }
  7790. else {
  7791. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название));
  7792. }
  7793. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7794. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7795. != global::System.Data.ConnectionState.Open)) {
  7796. this.Adapter.InsertCommand.Connection.Open();
  7797. }
  7798. try {
  7799. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7800. return returnValue;
  7801. }
  7802. finally {
  7803. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7804. this.Adapter.InsertCommand.Connection.Close();
  7805. }
  7806. }
  7807. }
  7808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7810. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7811. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7812. public virtual int Update(int id_Роли, string Название, int Original_id_Роли, string Original_Название) {
  7813. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id_Роли));
  7814. if ((Название == null)) {
  7815. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7816. }
  7817. else {
  7818. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Название));
  7819. }
  7820. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_id_Роли));
  7821. if ((Original_Название == null)) {
  7822. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7823. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7824. }
  7825. else {
  7826. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7827. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Название));
  7828. }
  7829. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7830. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7831. != global::System.Data.ConnectionState.Open)) {
  7832. this.Adapter.UpdateCommand.Connection.Open();
  7833. }
  7834. try {
  7835. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7836. return returnValue;
  7837. }
  7838. finally {
  7839. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7840. this.Adapter.UpdateCommand.Connection.Close();
  7841. }
  7842. }
  7843. }
  7844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7846. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7847. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7848. public virtual int Update(string Название, int Original_id_Роли, string Original_Название) {
  7849. return this.Update(Original_id_Роли, Название, Original_id_Роли, Original_Название);
  7850. }
  7851. }
  7852. /// <summary>
  7853. ///Represents the connection and commands used to retrieve and save data.
  7854. ///</summary>
  7855. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7856. [global::System.ComponentModel.ToolboxItem(true)]
  7857. [global::System.ComponentModel.DataObjectAttribute(true)]
  7858. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7859. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7860. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7861. public partial class СменыTableAdapter : global::System.ComponentModel.Component {
  7862. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7863. private global::System.Data.SqlClient.SqlConnection _connection;
  7864. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7865. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7866. private bool _clearBeforeFill;
  7867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7869. public СменыTableAdapter() {
  7870. this.ClearBeforeFill = true;
  7871. }
  7872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7874. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7875. get {
  7876. if ((this._adapter == null)) {
  7877. this.InitAdapter();
  7878. }
  7879. return this._adapter;
  7880. }
  7881. }
  7882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7884. internal global::System.Data.SqlClient.SqlConnection Connection {
  7885. get {
  7886. if ((this._connection == null)) {
  7887. this.InitConnection();
  7888. }
  7889. return this._connection;
  7890. }
  7891. set {
  7892. this._connection = value;
  7893. if ((this.Adapter.InsertCommand != null)) {
  7894. this.Adapter.InsertCommand.Connection = value;
  7895. }
  7896. if ((this.Adapter.DeleteCommand != null)) {
  7897. this.Adapter.DeleteCommand.Connection = value;
  7898. }
  7899. if ((this.Adapter.UpdateCommand != null)) {
  7900. this.Adapter.UpdateCommand.Connection = value;
  7901. }
  7902. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7903. if ((this.CommandCollection[i] != null)) {
  7904. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7905. }
  7906. }
  7907. }
  7908. }
  7909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7911. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7912. get {
  7913. return this._transaction;
  7914. }
  7915. set {
  7916. this._transaction = value;
  7917. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7918. this.CommandCollection[i].Transaction = this._transaction;
  7919. }
  7920. if (((this.Adapter != null)
  7921. && (this.Adapter.DeleteCommand != null))) {
  7922. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7923. }
  7924. if (((this.Adapter != null)
  7925. && (this.Adapter.InsertCommand != null))) {
  7926. this.Adapter.InsertCommand.Transaction = this._transaction;
  7927. }
  7928. if (((this.Adapter != null)
  7929. && (this.Adapter.UpdateCommand != null))) {
  7930. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7931. }
  7932. }
  7933. }
  7934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7936. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7937. get {
  7938. if ((this._commandCollection == null)) {
  7939. this.InitCommandCollection();
  7940. }
  7941. return this._commandCollection;
  7942. }
  7943. }
  7944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7946. public bool ClearBeforeFill {
  7947. get {
  7948. return this._clearBeforeFill;
  7949. }
  7950. set {
  7951. this._clearBeforeFill = value;
  7952. }
  7953. }
  7954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7956. private void InitAdapter() {
  7957. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7958. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7959. tableMapping.SourceTable = "Table";
  7960. tableMapping.DataSetTable = "Смены";
  7961. tableMapping.ColumnMappings.Add("ID_Смены", "ID_Смены");
  7962. tableMapping.ColumnMappings.Add("ДатаCмены", "ДатаCмены");
  7963. tableMapping.ColumnMappings.Add("id_Официанта", "id_Официанта");
  7964. tableMapping.ColumnMappings.Add("id_Повара", "id_Повара");
  7965. this._adapter.TableMappings.Add(tableMapping);
  7966. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7967. this._adapter.DeleteCommand.Connection = this.Connection;
  7968. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Смены] WHERE (([ID_Смены] = @Original_ID_Смены) AND ((@IsNull_ДатаCмены = 1 AND [ДатаCмены] IS NULL) OR ([ДатаCмены] = @Original_ДатаCмены)) AND ((@IsNull_id_Официанта = 1 AND [id_Официанта] IS NULL) OR ([id_Официанта] = @Original_id_Официанта)) AND ((@IsNull_id_Повара = 1 AND [id_Повара] IS NULL) OR ([id_Повара] = @Original_id_Повара)))";
  7969. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7970. 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, "", "", ""));
  7971. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаCмены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаCмены", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7972. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаCмены", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаCмены", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7973. 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, "", "", ""));
  7974. 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, "", "", ""));
  7975. 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, "", "", ""));
  7976. 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, "", "", ""));
  7977. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7978. this._adapter.InsertCommand.Connection = this.Connection;
  7979. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Смены] ([ID_Смены], [ДатаCмены], [id_Официанта], [id_Повара]) " +
  7980. "VALUES (@ID_Смены, @ДатаCмены, @id_Официанта, @id_Повара);\r\nSELECT ID_Смены, Дат" +
  7981. "аCмены, id_Официанта, id_Повара FROM Смены WHERE (ID_Смены = @ID_Смены)";
  7982. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7983. 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, "", "", ""));
  7984. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаCмены", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаCмены", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7985. 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, "", "", ""));
  7986. 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, "", "", ""));
  7987. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7988. this._adapter.UpdateCommand.Connection = this.Connection;
  7989. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Смены] SET [ID_Смены] = @ID_Смены, [ДатаCмены] = @ДатаCмены, [id_Официанта] = @id_Официанта, [id_Повара] = @id_Повара WHERE (([ID_Смены] = @Original_ID_Смены) AND ((@IsNull_ДатаCмены = 1 AND [ДатаCмены] IS NULL) OR ([ДатаCмены] = @Original_ДатаCмены)) AND ((@IsNull_id_Официанта = 1 AND [id_Официанта] IS NULL) OR ([id_Официанта] = @Original_id_Официанта)) AND ((@IsNull_id_Повара = 1 AND [id_Повара] IS NULL) OR ([id_Повара] = @Original_id_Повара)));
  7990. SELECT ID_Смены, ДатаCмены, id_Официанта, id_Повара FROM Смены WHERE (ID_Смены = @ID_Смены)";
  7991. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7992. 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, "", "", ""));
  7993. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаCмены", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаCмены", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7994. 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, "", "", ""));
  7995. 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, "", "", ""));
  7996. 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, "", "", ""));
  7997. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаCмены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаCмены", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7998. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаCмены", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаCмены", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7999. 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, "", "", ""));
  8000. 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, "", "", ""));
  8001. 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, "", "", ""));
  8002. 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, "", "", ""));
  8003. }
  8004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8006. private void InitConnection() {
  8007. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8008. this._connection.ConnectionString = global::Cafe11.Properties.Settings.Default.lebcafeConnectionString;
  8009. }
  8010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8012. private void InitCommandCollection() {
  8013. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8014. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8015. this._commandCollection[0].Connection = this.Connection;
  8016. this._commandCollection[0].CommandText = "SELECT ID_Смены, ДатаCмены, id_Официанта, id_Повара FROM dbo.Смены";
  8017. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8018. }
  8019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8021. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8022. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8023. public virtual int Fill(lebcafeDataSet.СменыDataTable dataTable) {
  8024. this.Adapter.SelectCommand = this.CommandCollection[0];
  8025. if ((this.ClearBeforeFill == true)) {
  8026. dataTable.Clear();
  8027. }
  8028. int returnValue = this.Adapter.Fill(dataTable);
  8029. return returnValue;
  8030. }
  8031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8033. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8034. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8035. public virtual lebcafeDataSet.СменыDataTable GetData() {
  8036. this.Adapter.SelectCommand = this.CommandCollection[0];
  8037. lebcafeDataSet.СменыDataTable dataTable = new lebcafeDataSet.СменыDataTable();
  8038. this.Adapter.Fill(dataTable);
  8039. return dataTable;
  8040. }
  8041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8043. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8044. public virtual int Update(lebcafeDataSet.СменыDataTable dataTable) {
  8045. return this.Adapter.Update(dataTable);
  8046. }
  8047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8049. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8050. public virtual int Update(lebcafeDataSet dataSet) {
  8051. return this.Adapter.Update(dataSet, "Смены");
  8052. }
  8053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8055. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8056. public virtual int Update(global::System.Data.DataRow dataRow) {
  8057. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8058. dataRow});
  8059. }
  8060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8062. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8063. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8064. return this.Adapter.Update(dataRows);
  8065. }
  8066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8068. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8069. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8070. public virtual int Delete(int Original_ID_Смены, global::System.Nullable<global::System.DateTime> Original_ДатаCмены, global::System.Nullable<int> Original_id_Официанта, global::System.Nullable<int> Original_id_Повара) {
  8071. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Смены));
  8072. if ((Original_ДатаCмены.HasValue == true)) {
  8073. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8074. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_ДатаCмены.Value));
  8075. }
  8076. else {
  8077. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8078. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8079. }
  8080. if ((Original_id_Официанта.HasValue == true)) {
  8081. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8082. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_id_Официанта.Value));
  8083. }
  8084. else {
  8085. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8086. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8087. }
  8088. if ((Original_id_Повара.HasValue == true)) {
  8089. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  8090. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_id_Повара.Value));
  8091. }
  8092. else {
  8093. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  8094. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  8095. }
  8096. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8097. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8098. != global::System.Data.ConnectionState.Open)) {
  8099. this.Adapter.DeleteCommand.Connection.Open();
  8100. }
  8101. try {
  8102. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8103. return returnValue;
  8104. }
  8105. finally {
  8106. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8107. this.Adapter.DeleteCommand.Connection.Close();
  8108. }
  8109. }
  8110. }
  8111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8113. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8114. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8115. public virtual int Insert(int ID_Смены, global::System.Nullable<global::System.DateTime> ДатаCмены, global::System.Nullable<int> id_Официанта, global::System.Nullable<int> id_Повара) {
  8116. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Смены));
  8117. if ((ДатаCмены.HasValue == true)) {
  8118. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(ДатаCмены.Value));
  8119. }
  8120. else {
  8121. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8122. }
  8123. if ((id_Официанта.HasValue == true)) {
  8124. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(id_Официанта.Value));
  8125. }
  8126. else {
  8127. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8128. }
  8129. if ((id_Повара.HasValue == true)) {
  8130. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(id_Повара.Value));
  8131. }
  8132. else {
  8133. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8134. }
  8135. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8136. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8137. != global::System.Data.ConnectionState.Open)) {
  8138. this.Adapter.InsertCommand.Connection.Open();
  8139. }
  8140. try {
  8141. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8142. return returnValue;
  8143. }
  8144. finally {
  8145. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8146. this.Adapter.InsertCommand.Connection.Close();
  8147. }
  8148. }
  8149. }
  8150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8152. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8153. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8154. public virtual int Update(int ID_Смены, global::System.Nullable<global::System.DateTime> ДатаCмены, global::System.Nullable<int> id_Официанта, global::System.Nullable<int> id_Повара, int Original_ID_Смены, global::System.Nullable<global::System.DateTime> Original_ДатаCмены, global::System.Nullable<int> Original_id_Официанта, global::System.Nullable<int> Original_id_Повара) {
  8155. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Смены));
  8156. if ((ДатаCмены.HasValue == true)) {
  8157. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(ДатаCмены.Value));
  8158. }
  8159. else {
  8160. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8161. }
  8162. if ((id_Официанта.HasValue == true)) {
  8163. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(id_Официанта.Value));
  8164. }
  8165. else {
  8166. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8167. }
  8168. if ((id_Повара.HasValue == true)) {
  8169. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(id_Повара.Value));
  8170. }
  8171. else {
  8172. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8173. }
  8174. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID_Смены));
  8175. if ((Original_ДатаCмены.HasValue == true)) {
  8176. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8177. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_ДатаCмены.Value));
  8178. }
  8179. else {
  8180. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8181. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8182. }
  8183. if ((Original_id_Официанта.HasValue == true)) {
  8184. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  8185. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_id_Официанта.Value));
  8186. }
  8187. else {
  8188. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  8189. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  8190. }
  8191. if ((Original_id_Повара.HasValue == true)) {
  8192. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8193. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_id_Повара.Value));
  8194. }
  8195. else {
  8196. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8197. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8198. }
  8199. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8200. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8201. != global::System.Data.ConnectionState.Open)) {
  8202. this.Adapter.UpdateCommand.Connection.Open();
  8203. }
  8204. try {
  8205. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8206. return returnValue;
  8207. }
  8208. finally {
  8209. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8210. this.Adapter.UpdateCommand.Connection.Close();
  8211. }
  8212. }
  8213. }
  8214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8216. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8217. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8218. public virtual int Update(global::System.Nullable<global::System.DateTime> ДатаCмены, global::System.Nullable<int> id_Официанта, global::System.Nullable<int> id_Повара, int Original_ID_Смены, global::System.Nullable<global::System.DateTime> Original_ДатаCмены, global::System.Nullable<int> Original_id_Официанта, global::System.Nullable<int> Original_id_Повара) {
  8219. return this.Update(Original_ID_Смены, ДатаCмены, id_Официанта, id_Повара, Original_ID_Смены, Original_ДатаCмены, Original_id_Официанта, Original_id_Повара);
  8220. }
  8221. }
  8222. /// <summary>
  8223. ///Represents the connection and commands used to retrieve and save data.
  8224. ///</summary>
  8225. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8226. [global::System.ComponentModel.ToolboxItem(true)]
  8227. [global::System.ComponentModel.DataObjectAttribute(true)]
  8228. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8229. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8230. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8231. public partial class СтатусЗаказаTableAdapter : global::System.ComponentModel.Component {
  8232. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8233. private global::System.Data.SqlClient.SqlConnection _connection;
  8234. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8235. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8236. private bool _clearBeforeFill;
  8237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8239. public СтатусЗаказаTableAdapter() {
  8240. this.ClearBeforeFill = true;
  8241. }
  8242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8244. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8245. get {
  8246. if ((this._adapter == null)) {
  8247. this.InitAdapter();
  8248. }
  8249. return this._adapter;
  8250. }
  8251. }
  8252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8254. internal global::System.Data.SqlClient.SqlConnection Connection {
  8255. get {
  8256. if ((this._connection == null)) {
  8257. this.InitConnection();
  8258. }
  8259. return this._connection;
  8260. }
  8261. set {
  8262. this._connection = value;
  8263. if ((this.Adapter.InsertCommand != null)) {
  8264. this.Adapter.InsertCommand.Connection = value;
  8265. }
  8266. if ((this.Adapter.DeleteCommand != null)) {
  8267. this.Adapter.DeleteCommand.Connection = value;
  8268. }
  8269. if ((this.Adapter.UpdateCommand != null)) {
  8270. this.Adapter.UpdateCommand.Connection = value;
  8271. }
  8272. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8273. if ((this.CommandCollection[i] != null)) {
  8274. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8275. }
  8276. }
  8277. }
  8278. }
  8279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8281. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8282. get {
  8283. return this._transaction;
  8284. }
  8285. set {
  8286. this._transaction = value;
  8287. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8288. this.CommandCollection[i].Transaction = this._transaction;
  8289. }
  8290. if (((this.Adapter != null)
  8291. && (this.Adapter.DeleteCommand != null))) {
  8292. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8293. }
  8294. if (((this.Adapter != null)
  8295. && (this.Adapter.InsertCommand != null))) {
  8296. this.Adapter.InsertCommand.Transaction = this._transaction;
  8297. }
  8298. if (((this.Adapter != null)
  8299. && (this.Adapter.UpdateCommand != null))) {
  8300. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8301. }
  8302. }
  8303. }
  8304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8306. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8307. get {
  8308. if ((this._commandCollection == null)) {
  8309. this.InitCommandCollection();
  8310. }
  8311. return this._commandCollection;
  8312. }
  8313. }
  8314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8316. public bool ClearBeforeFill {
  8317. get {
  8318. return this._clearBeforeFill;
  8319. }
  8320. set {
  8321. this._clearBeforeFill = value;
  8322. }
  8323. }
  8324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8326. private void InitAdapter() {
  8327. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8328. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8329. tableMapping.SourceTable = "Table";
  8330. tableMapping.DataSetTable = "СтатусЗаказа";
  8331. tableMapping.ColumnMappings.Add("ID_СтатусаЗаказа", "ID_СтатусаЗаказа");
  8332. tableMapping.ColumnMappings.Add("НазваниеСтатусаЗаказа", "НазваниеСтатусаЗаказа");
  8333. this._adapter.TableMappings.Add(tableMapping);
  8334. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8335. this._adapter.DeleteCommand.Connection = this.Connection;
  8336. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[СтатусЗаказа] WHERE (([ID_СтатусаЗаказа] = @Original_ID_Статус" +
  8337. "аЗаказа) AND ((@IsNull_НазваниеСтатусаЗаказа = 1 AND [НазваниеСтатусаЗаказа] IS " +
  8338. "NULL) OR ([НазваниеСтатусаЗаказа] = @Original_НазваниеСтатусаЗаказа)))";
  8339. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8340. 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, "", "", ""));
  8341. 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, "", "", ""));
  8342. 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, "", "", ""));
  8343. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8344. this._adapter.InsertCommand.Connection = this.Connection;
  8345. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[СтатусЗаказа] ([ID_СтатусаЗаказа], [НазваниеСтатусаЗаказа]) VA" +
  8346. "LUES (@ID_СтатусаЗаказа, @НазваниеСтатусаЗаказа);\r\nSELECT ID_СтатусаЗаказа, Назв" +
  8347. "аниеСтатусаЗаказа FROM СтатусЗаказа WHERE (ID_СтатусаЗаказа = @ID_СтатусаЗаказа)" +
  8348. "";
  8349. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8350. 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, "", "", ""));
  8351. 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, "", "", ""));
  8352. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8353. this._adapter.UpdateCommand.Connection = this.Connection;
  8354. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[СтатусЗаказа] SET [ID_СтатусаЗаказа] = @ID_СтатусаЗаказа, [НазваниеСтатусаЗаказа] = @НазваниеСтатусаЗаказа WHERE (([ID_СтатусаЗаказа] = @Original_ID_СтатусаЗаказа) AND ((@IsNull_НазваниеСтатусаЗаказа = 1 AND [НазваниеСтатусаЗаказа] IS NULL) OR ([НазваниеСтатусаЗаказа] = @Original_НазваниеСтатусаЗаказа)));
  8355. SELECT ID_СтатусаЗаказа, НазваниеСтатусаЗаказа FROM СтатусЗаказа WHERE (ID_СтатусаЗаказа = @ID_СтатусаЗаказа)";
  8356. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8357. 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, "", "", ""));
  8358. 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, "", "", ""));
  8359. 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, "", "", ""));
  8360. 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, "", "", ""));
  8361. 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, "", "", ""));
  8362. }
  8363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8365. private void InitConnection() {
  8366. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8367. this._connection.ConnectionString = global::Cafe11.Properties.Settings.Default.lebcafeConnectionString;
  8368. }
  8369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8371. private void InitCommandCollection() {
  8372. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8373. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8374. this._commandCollection[0].Connection = this.Connection;
  8375. this._commandCollection[0].CommandText = "SELECT ID_СтатусаЗаказа, НазваниеСтатусаЗаказа FROM dbo.СтатусЗаказа";
  8376. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8377. }
  8378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8380. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8381. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8382. public virtual int Fill(lebcafeDataSet.СтатусЗаказаDataTable dataTable) {
  8383. this.Adapter.SelectCommand = this.CommandCollection[0];
  8384. if ((this.ClearBeforeFill == true)) {
  8385. dataTable.Clear();
  8386. }
  8387. int returnValue = this.Adapter.Fill(dataTable);
  8388. return returnValue;
  8389. }
  8390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8392. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8393. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8394. public virtual lebcafeDataSet.СтатусЗаказаDataTable GetData() {
  8395. this.Adapter.SelectCommand = this.CommandCollection[0];
  8396. lebcafeDataSet.СтатусЗаказаDataTable dataTable = new lebcafeDataSet.СтатусЗаказаDataTable();
  8397. this.Adapter.Fill(dataTable);
  8398. return dataTable;
  8399. }
  8400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8402. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8403. public virtual int Update(lebcafeDataSet.СтатусЗаказаDataTable dataTable) {
  8404. return this.Adapter.Update(dataTable);
  8405. }
  8406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8408. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8409. public virtual int Update(lebcafeDataSet dataSet) {
  8410. return this.Adapter.Update(dataSet, "СтатусЗаказа");
  8411. }
  8412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8414. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8415. public virtual int Update(global::System.Data.DataRow dataRow) {
  8416. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8417. dataRow});
  8418. }
  8419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8421. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8422. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8423. return this.Adapter.Update(dataRows);
  8424. }
  8425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8427. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8428. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8429. public virtual int Delete(int Original_ID_СтатусаЗаказа, string Original_НазваниеСтатусаЗаказа) {
  8430. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_СтатусаЗаказа));
  8431. if ((Original_НазваниеСтатусаЗаказа == null)) {
  8432. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8433. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8434. }
  8435. else {
  8436. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8437. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_НазваниеСтатусаЗаказа));
  8438. }
  8439. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8440. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8441. != global::System.Data.ConnectionState.Open)) {
  8442. this.Adapter.DeleteCommand.Connection.Open();
  8443. }
  8444. try {
  8445. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8446. return returnValue;
  8447. }
  8448. finally {
  8449. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8450. this.Adapter.DeleteCommand.Connection.Close();
  8451. }
  8452. }
  8453. }
  8454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8456. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8457. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8458. public virtual int Insert(int ID_СтатусаЗаказа, string НазваниеСтатусаЗаказа) {
  8459. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_СтатусаЗаказа));
  8460. if ((НазваниеСтатусаЗаказа == null)) {
  8461. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8462. }
  8463. else {
  8464. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(НазваниеСтатусаЗаказа));
  8465. }
  8466. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8467. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8468. != global::System.Data.ConnectionState.Open)) {
  8469. this.Adapter.InsertCommand.Connection.Open();
  8470. }
  8471. try {
  8472. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8473. return returnValue;
  8474. }
  8475. finally {
  8476. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8477. this.Adapter.InsertCommand.Connection.Close();
  8478. }
  8479. }
  8480. }
  8481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8483. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8484. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8485. public virtual int Update(int ID_СтатусаЗаказа, string НазваниеСтатусаЗаказа, int Original_ID_СтатусаЗаказа, string Original_НазваниеСтатусаЗаказа) {
  8486. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_СтатусаЗаказа));
  8487. if ((НазваниеСтатусаЗаказа == null)) {
  8488. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8489. }
  8490. else {
  8491. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(НазваниеСтатусаЗаказа));
  8492. }
  8493. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID_СтатусаЗаказа));
  8494. if ((Original_НазваниеСтатусаЗаказа == null)) {
  8495. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  8496. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8497. }
  8498. else {
  8499. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  8500. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_НазваниеСтатусаЗаказа));
  8501. }
  8502. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8503. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8504. != global::System.Data.ConnectionState.Open)) {
  8505. this.Adapter.UpdateCommand.Connection.Open();
  8506. }
  8507. try {
  8508. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8509. return returnValue;
  8510. }
  8511. finally {
  8512. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8513. this.Adapter.UpdateCommand.Connection.Close();
  8514. }
  8515. }
  8516. }
  8517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8519. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8520. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8521. public virtual int Update(string НазваниеСтатусаЗаказа, int Original_ID_СтатусаЗаказа, string Original_НазваниеСтатусаЗаказа) {
  8522. return this.Update(Original_ID_СтатусаЗаказа, НазваниеСтатусаЗаказа, Original_ID_СтатусаЗаказа, Original_НазваниеСтатусаЗаказа);
  8523. }
  8524. }
  8525. /// <summary>
  8526. ///Represents the connection and commands used to retrieve and save data.
  8527. ///</summary>
  8528. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8529. [global::System.ComponentModel.ToolboxItem(true)]
  8530. [global::System.ComponentModel.DataObjectAttribute(true)]
  8531. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8532. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8533. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8534. public partial class СтатусСотрудникаTableAdapter : global::System.ComponentModel.Component {
  8535. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8536. private global::System.Data.SqlClient.SqlConnection _connection;
  8537. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8538. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8539. private bool _clearBeforeFill;
  8540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8542. public СтатусСотрудникаTableAdapter() {
  8543. this.ClearBeforeFill = true;
  8544. }
  8545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8547. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8548. get {
  8549. if ((this._adapter == null)) {
  8550. this.InitAdapter();
  8551. }
  8552. return this._adapter;
  8553. }
  8554. }
  8555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8557. internal global::System.Data.SqlClient.SqlConnection Connection {
  8558. get {
  8559. if ((this._connection == null)) {
  8560. this.InitConnection();
  8561. }
  8562. return this._connection;
  8563. }
  8564. set {
  8565. this._connection = value;
  8566. if ((this.Adapter.InsertCommand != null)) {
  8567. this.Adapter.InsertCommand.Connection = value;
  8568. }
  8569. if ((this.Adapter.DeleteCommand != null)) {
  8570. this.Adapter.DeleteCommand.Connection = value;
  8571. }
  8572. if ((this.Adapter.UpdateCommand != null)) {
  8573. this.Adapter.UpdateCommand.Connection = value;
  8574. }
  8575. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8576. if ((this.CommandCollection[i] != null)) {
  8577. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8578. }
  8579. }
  8580. }
  8581. }
  8582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8584. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8585. get {
  8586. return this._transaction;
  8587. }
  8588. set {
  8589. this._transaction = value;
  8590. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8591. this.CommandCollection[i].Transaction = this._transaction;
  8592. }
  8593. if (((this.Adapter != null)
  8594. && (this.Adapter.DeleteCommand != null))) {
  8595. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8596. }
  8597. if (((this.Adapter != null)
  8598. && (this.Adapter.InsertCommand != null))) {
  8599. this.Adapter.InsertCommand.Transaction = this._transaction;
  8600. }
  8601. if (((this.Adapter != null)
  8602. && (this.Adapter.UpdateCommand != null))) {
  8603. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8604. }
  8605. }
  8606. }
  8607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8609. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8610. get {
  8611. if ((this._commandCollection == null)) {
  8612. this.InitCommandCollection();
  8613. }
  8614. return this._commandCollection;
  8615. }
  8616. }
  8617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8619. public bool ClearBeforeFill {
  8620. get {
  8621. return this._clearBeforeFill;
  8622. }
  8623. set {
  8624. this._clearBeforeFill = value;
  8625. }
  8626. }
  8627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8629. private void InitAdapter() {
  8630. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8631. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8632. tableMapping.SourceTable = "Table";
  8633. tableMapping.DataSetTable = "СтатусСотрудника";
  8634. tableMapping.ColumnMappings.Add("ID_Статуса", "ID_Статуса");
  8635. tableMapping.ColumnMappings.Add("НазваниеСтатусаСотрудника", "НазваниеСтатусаСотрудника");
  8636. this._adapter.TableMappings.Add(tableMapping);
  8637. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8638. this._adapter.DeleteCommand.Connection = this.Connection;
  8639. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[СтатусСотрудника] WHERE (([ID_Статуса] = @Original_ID_Статуса)" +
  8640. " AND ((@IsNull_НазваниеСтатусаСотрудника = 1 AND [НазваниеСтатусаСотрудника] IS " +
  8641. "NULL) OR ([НазваниеСтатусаСотрудника] = @Original_НазваниеСтатусаСотрудника)))";
  8642. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8643. 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, "", "", ""));
  8644. 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, "", "", ""));
  8645. 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, "", "", ""));
  8646. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8647. this._adapter.InsertCommand.Connection = this.Connection;
  8648. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[СтатусСотрудника] ([ID_Статуса], [НазваниеСтатусаСотрудника]) " +
  8649. "VALUES (@ID_Статуса, @НазваниеСтатусаСотрудника);\r\nSELECT ID_Статуса, НазваниеСт" +
  8650. "атусаСотрудника FROM СтатусСотрудника WHERE (ID_Статуса = @ID_Статуса)";
  8651. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8652. 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, "", "", ""));
  8653. 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, "", "", ""));
  8654. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8655. this._adapter.UpdateCommand.Connection = this.Connection;
  8656. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[СтатусСотрудника] SET [ID_Статуса] = @ID_Статуса, [НазваниеСтатусаСотрудника] = @НазваниеСтатусаСотрудника WHERE (([ID_Статуса] = @Original_ID_Статуса) AND ((@IsNull_НазваниеСтатусаСотрудника = 1 AND [НазваниеСтатусаСотрудника] IS NULL) OR ([НазваниеСтатусаСотрудника] = @Original_НазваниеСтатусаСотрудника)));
  8657. SELECT ID_Статуса, НазваниеСтатусаСотрудника FROM СтатусСотрудника WHERE (ID_Статуса = @ID_Статуса)";
  8658. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8659. 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, "", "", ""));
  8660. 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, "", "", ""));
  8661. 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, "", "", ""));
  8662. 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, "", "", ""));
  8663. 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, "", "", ""));
  8664. }
  8665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8667. private void InitConnection() {
  8668. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8669. this._connection.ConnectionString = global::Cafe11.Properties.Settings.Default.lebcafeConnectionString;
  8670. }
  8671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8673. private void InitCommandCollection() {
  8674. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8675. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8676. this._commandCollection[0].Connection = this.Connection;
  8677. this._commandCollection[0].CommandText = "SELECT ID_Статуса, НазваниеСтатусаСотрудника FROM dbo.СтатусСотрудника";
  8678. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8679. }
  8680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8682. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8683. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8684. public virtual int Fill(lebcafeDataSet.СтатусСотрудникаDataTable dataTable) {
  8685. this.Adapter.SelectCommand = this.CommandCollection[0];
  8686. if ((this.ClearBeforeFill == true)) {
  8687. dataTable.Clear();
  8688. }
  8689. int returnValue = this.Adapter.Fill(dataTable);
  8690. return returnValue;
  8691. }
  8692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8694. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8695. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8696. public virtual lebcafeDataSet.СтатусСотрудникаDataTable GetData() {
  8697. this.Adapter.SelectCommand = this.CommandCollection[0];
  8698. lebcafeDataSet.СтатусСотрудникаDataTable dataTable = new lebcafeDataSet.СтатусСотрудникаDataTable();
  8699. this.Adapter.Fill(dataTable);
  8700. return dataTable;
  8701. }
  8702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8704. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8705. public virtual int Update(lebcafeDataSet.СтатусСотрудникаDataTable dataTable) {
  8706. return this.Adapter.Update(dataTable);
  8707. }
  8708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8710. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8711. public virtual int Update(lebcafeDataSet dataSet) {
  8712. return this.Adapter.Update(dataSet, "СтатусСотрудника");
  8713. }
  8714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8716. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8717. public virtual int Update(global::System.Data.DataRow dataRow) {
  8718. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8719. dataRow});
  8720. }
  8721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8723. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8724. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8725. return this.Adapter.Update(dataRows);
  8726. }
  8727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8729. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8730. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8731. public virtual int Delete(int Original_ID_Статуса, string Original_НазваниеСтатусаСотрудника) {
  8732. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Статуса));
  8733. if ((Original_НазваниеСтатусаСотрудника == null)) {
  8734. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8735. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8736. }
  8737. else {
  8738. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8739. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_НазваниеСтатусаСотрудника));
  8740. }
  8741. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8742. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8743. != global::System.Data.ConnectionState.Open)) {
  8744. this.Adapter.DeleteCommand.Connection.Open();
  8745. }
  8746. try {
  8747. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8748. return returnValue;
  8749. }
  8750. finally {
  8751. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8752. this.Adapter.DeleteCommand.Connection.Close();
  8753. }
  8754. }
  8755. }
  8756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8758. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8759. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8760. public virtual int Insert(int ID_Статуса, string НазваниеСтатусаСотрудника) {
  8761. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Статуса));
  8762. if ((НазваниеСтатусаСотрудника == null)) {
  8763. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8764. }
  8765. else {
  8766. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(НазваниеСтатусаСотрудника));
  8767. }
  8768. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8769. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8770. != global::System.Data.ConnectionState.Open)) {
  8771. this.Adapter.InsertCommand.Connection.Open();
  8772. }
  8773. try {
  8774. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8775. return returnValue;
  8776. }
  8777. finally {
  8778. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8779. this.Adapter.InsertCommand.Connection.Close();
  8780. }
  8781. }
  8782. }
  8783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8785. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8786. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8787. public virtual int Update(int ID_Статуса, string НазваниеСтатусаСотрудника, int Original_ID_Статуса, string Original_НазваниеСтатусаСотрудника) {
  8788. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Статуса));
  8789. if ((НазваниеСтатусаСотрудника == null)) {
  8790. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8791. }
  8792. else {
  8793. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(НазваниеСтатусаСотрудника));
  8794. }
  8795. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID_Статуса));
  8796. if ((Original_НазваниеСтатусаСотрудника == null)) {
  8797. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  8798. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8799. }
  8800. else {
  8801. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  8802. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_НазваниеСтатусаСотрудника));
  8803. }
  8804. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8805. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8806. != global::System.Data.ConnectionState.Open)) {
  8807. this.Adapter.UpdateCommand.Connection.Open();
  8808. }
  8809. try {
  8810. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8811. return returnValue;
  8812. }
  8813. finally {
  8814. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8815. this.Adapter.UpdateCommand.Connection.Close();
  8816. }
  8817. }
  8818. }
  8819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8821. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8822. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8823. public virtual int Update(string НазваниеСтатусаСотрудника, int Original_ID_Статуса, string Original_НазваниеСтатусаСотрудника) {
  8824. return this.Update(Original_ID_Статуса, НазваниеСтатусаСотрудника, Original_ID_Статуса, Original_НазваниеСтатусаСотрудника);
  8825. }
  8826. }
  8827. /// <summary>
  8828. ///Represents the connection and commands used to retrieve and save data.
  8829. ///</summary>
  8830. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8831. [global::System.ComponentModel.ToolboxItem(true)]
  8832. [global::System.ComponentModel.DataObjectAttribute(true)]
  8833. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8834. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8835. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8836. public partial class СтоликиTableAdapter : global::System.ComponentModel.Component {
  8837. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8838. private global::System.Data.SqlClient.SqlConnection _connection;
  8839. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8840. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8841. private bool _clearBeforeFill;
  8842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8844. public СтоликиTableAdapter() {
  8845. this.ClearBeforeFill = true;
  8846. }
  8847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8849. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8850. get {
  8851. if ((this._adapter == null)) {
  8852. this.InitAdapter();
  8853. }
  8854. return this._adapter;
  8855. }
  8856. }
  8857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8859. internal global::System.Data.SqlClient.SqlConnection Connection {
  8860. get {
  8861. if ((this._connection == null)) {
  8862. this.InitConnection();
  8863. }
  8864. return this._connection;
  8865. }
  8866. set {
  8867. this._connection = value;
  8868. if ((this.Adapter.InsertCommand != null)) {
  8869. this.Adapter.InsertCommand.Connection = value;
  8870. }
  8871. if ((this.Adapter.DeleteCommand != null)) {
  8872. this.Adapter.DeleteCommand.Connection = value;
  8873. }
  8874. if ((this.Adapter.UpdateCommand != null)) {
  8875. this.Adapter.UpdateCommand.Connection = value;
  8876. }
  8877. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8878. if ((this.CommandCollection[i] != null)) {
  8879. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8880. }
  8881. }
  8882. }
  8883. }
  8884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8886. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8887. get {
  8888. return this._transaction;
  8889. }
  8890. set {
  8891. this._transaction = value;
  8892. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8893. this.CommandCollection[i].Transaction = this._transaction;
  8894. }
  8895. if (((this.Adapter != null)
  8896. && (this.Adapter.DeleteCommand != null))) {
  8897. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8898. }
  8899. if (((this.Adapter != null)
  8900. && (this.Adapter.InsertCommand != null))) {
  8901. this.Adapter.InsertCommand.Transaction = this._transaction;
  8902. }
  8903. if (((this.Adapter != null)
  8904. && (this.Adapter.UpdateCommand != null))) {
  8905. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8906. }
  8907. }
  8908. }
  8909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8911. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8912. get {
  8913. if ((this._commandCollection == null)) {
  8914. this.InitCommandCollection();
  8915. }
  8916. return this._commandCollection;
  8917. }
  8918. }
  8919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8921. public bool ClearBeforeFill {
  8922. get {
  8923. return this._clearBeforeFill;
  8924. }
  8925. set {
  8926. this._clearBeforeFill = value;
  8927. }
  8928. }
  8929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8931. private void InitAdapter() {
  8932. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8933. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8934. tableMapping.SourceTable = "Table";
  8935. tableMapping.DataSetTable = "Столики";
  8936. tableMapping.ColumnMappings.Add("ID_Столика", "ID_Столика");
  8937. tableMapping.ColumnMappings.Add("Название", "Название");
  8938. this._adapter.TableMappings.Add(tableMapping);
  8939. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8940. this._adapter.DeleteCommand.Connection = this.Connection;
  8941. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Столики] WHERE (([ID_Столика] = @Original_ID_Столика) AND ((@I" +
  8942. "sNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название))" +
  8943. ")";
  8944. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8945. 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, "", "", ""));
  8946. 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, "", "", ""));
  8947. 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, "", "", ""));
  8948. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8949. this._adapter.InsertCommand.Connection = this.Connection;
  8950. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Столики] ([ID_Столика], [Название]) VALUES (@ID_Столика, @Назв" +
  8951. "ание);\r\nSELECT ID_Столика, Название FROM Столики WHERE (ID_Столика = @ID_Столика" +
  8952. ")";
  8953. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8954. 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, "", "", ""));
  8955. 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, "", "", ""));
  8956. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8957. this._adapter.UpdateCommand.Connection = this.Connection;
  8958. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Столики] SET [ID_Столика] = @ID_Столика, [Название] = @Название WHERE (([ID_Столика] = @Original_ID_Столика) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)));
  8959. SELECT ID_Столика, Название FROM Столики WHERE (ID_Столика = @ID_Столика)";
  8960. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8961. 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, "", "", ""));
  8962. 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, "", "", ""));
  8963. 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, "", "", ""));
  8964. 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, "", "", ""));
  8965. 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, "", "", ""));
  8966. }
  8967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8969. private void InitConnection() {
  8970. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8971. this._connection.ConnectionString = global::Cafe11.Properties.Settings.Default.lebcafeConnectionString;
  8972. }
  8973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8975. private void InitCommandCollection() {
  8976. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8977. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8978. this._commandCollection[0].Connection = this.Connection;
  8979. this._commandCollection[0].CommandText = "SELECT ID_Столика, Название FROM dbo.Столики";
  8980. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  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.Fill, true)]
  8986. public virtual int Fill(lebcafeDataSet.СтоликиDataTable dataTable) {
  8987. this.Adapter.SelectCommand = this.CommandCollection[0];
  8988. if ((this.ClearBeforeFill == true)) {
  8989. dataTable.Clear();
  8990. }
  8991. int returnValue = this.Adapter.Fill(dataTable);
  8992. return returnValue;
  8993. }
  8994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8996. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8997. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8998. public virtual lebcafeDataSet.СтоликиDataTable GetData() {
  8999. this.Adapter.SelectCommand = this.CommandCollection[0];
  9000. lebcafeDataSet.СтоликиDataTable dataTable = new lebcafeDataSet.СтоликиDataTable();
  9001. this.Adapter.Fill(dataTable);
  9002. return dataTable;
  9003. }
  9004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9006. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9007. public virtual int Update(lebcafeDataSet.СтоликиDataTable dataTable) {
  9008. return this.Adapter.Update(dataTable);
  9009. }
  9010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9012. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9013. public virtual int Update(lebcafeDataSet dataSet) {
  9014. return this.Adapter.Update(dataSet, "Столики");
  9015. }
  9016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9018. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9019. public virtual int Update(global::System.Data.DataRow dataRow) {
  9020. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9021. dataRow});
  9022. }
  9023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9025. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9026. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9027. return this.Adapter.Update(dataRows);
  9028. }
  9029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9031. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9032. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9033. public virtual int Delete(int Original_ID_Столика, string Original_Название) {
  9034. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Столика));
  9035. if ((Original_Название == null)) {
  9036. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9037. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9038. }
  9039. else {
  9040. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9041. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  9042. }
  9043. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9044. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9045. != global::System.Data.ConnectionState.Open)) {
  9046. this.Adapter.DeleteCommand.Connection.Open();
  9047. }
  9048. try {
  9049. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9050. return returnValue;
  9051. }
  9052. finally {
  9053. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9054. this.Adapter.DeleteCommand.Connection.Close();
  9055. }
  9056. }
  9057. }
  9058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9060. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9061. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9062. public virtual int Insert(int ID_Столика, string Название) {
  9063. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Столика));
  9064. if ((Название == null)) {
  9065. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9066. }
  9067. else {
  9068. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название));
  9069. }
  9070. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9071. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9072. != global::System.Data.ConnectionState.Open)) {
  9073. this.Adapter.InsertCommand.Connection.Open();
  9074. }
  9075. try {
  9076. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9077. return returnValue;
  9078. }
  9079. finally {
  9080. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9081. this.Adapter.InsertCommand.Connection.Close();
  9082. }
  9083. }
  9084. }
  9085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9087. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9088. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9089. public virtual int Update(int ID_Столика, string Название, int Original_ID_Столика, string Original_Название) {
  9090. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Столика));
  9091. if ((Название == null)) {
  9092. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9093. }
  9094. else {
  9095. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Название));
  9096. }
  9097. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID_Столика));
  9098. if ((Original_Название == null)) {
  9099. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  9100. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9101. }
  9102. else {
  9103. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  9104. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Название));
  9105. }
  9106. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9107. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9108. != global::System.Data.ConnectionState.Open)) {
  9109. this.Adapter.UpdateCommand.Connection.Open();
  9110. }
  9111. try {
  9112. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9113. return returnValue;
  9114. }
  9115. finally {
  9116. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9117. this.Adapter.UpdateCommand.Connection.Close();
  9118. }
  9119. }
  9120. }
  9121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9123. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9124. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9125. public virtual int Update(string Название, int Original_ID_Столика, string Original_Название) {
  9126. return this.Update(Original_ID_Столика, Название, Original_ID_Столика, Original_Название);
  9127. }
  9128. }
  9129. /// <summary>
  9130. ///Represents the connection and commands used to retrieve and save data.
  9131. ///</summary>
  9132. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9133. [global::System.ComponentModel.ToolboxItem(true)]
  9134. [global::System.ComponentModel.DataObjectAttribute(true)]
  9135. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9136. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9137. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9138. public partial class RABOCHIEAdminTableAdapter : global::System.ComponentModel.Component {
  9139. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9140. private global::System.Data.SqlClient.SqlConnection _connection;
  9141. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9142. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9143. private bool _clearBeforeFill;
  9144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9146. public RABOCHIEAdminTableAdapter() {
  9147. this.ClearBeforeFill = true;
  9148. }
  9149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9151. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9152. get {
  9153. if ((this._adapter == null)) {
  9154. this.InitAdapter();
  9155. }
  9156. return this._adapter;
  9157. }
  9158. }
  9159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9161. internal global::System.Data.SqlClient.SqlConnection Connection {
  9162. get {
  9163. if ((this._connection == null)) {
  9164. this.InitConnection();
  9165. }
  9166. return this._connection;
  9167. }
  9168. set {
  9169. this._connection = value;
  9170. if ((this.Adapter.InsertCommand != null)) {
  9171. this.Adapter.InsertCommand.Connection = value;
  9172. }
  9173. if ((this.Adapter.DeleteCommand != null)) {
  9174. this.Adapter.DeleteCommand.Connection = value;
  9175. }
  9176. if ((this.Adapter.UpdateCommand != null)) {
  9177. this.Adapter.UpdateCommand.Connection = value;
  9178. }
  9179. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9180. if ((this.CommandCollection[i] != null)) {
  9181. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9182. }
  9183. }
  9184. }
  9185. }
  9186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9188. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9189. get {
  9190. return this._transaction;
  9191. }
  9192. set {
  9193. this._transaction = value;
  9194. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9195. this.CommandCollection[i].Transaction = this._transaction;
  9196. }
  9197. if (((this.Adapter != null)
  9198. && (this.Adapter.DeleteCommand != null))) {
  9199. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9200. }
  9201. if (((this.Adapter != null)
  9202. && (this.Adapter.InsertCommand != null))) {
  9203. this.Adapter.InsertCommand.Transaction = this._transaction;
  9204. }
  9205. if (((this.Adapter != null)
  9206. && (this.Adapter.UpdateCommand != null))) {
  9207. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9208. }
  9209. }
  9210. }
  9211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9213. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9214. get {
  9215. if ((this._commandCollection == null)) {
  9216. this.InitCommandCollection();
  9217. }
  9218. return this._commandCollection;
  9219. }
  9220. }
  9221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9223. public bool ClearBeforeFill {
  9224. get {
  9225. return this._clearBeforeFill;
  9226. }
  9227. set {
  9228. this._clearBeforeFill = value;
  9229. }
  9230. }
  9231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9233. private void InitAdapter() {
  9234. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9235. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9236. tableMapping.SourceTable = "Table";
  9237. tableMapping.DataSetTable = "RABOCHIEAdmin";
  9238. tableMapping.ColumnMappings.Add("ID_Пользователя", "ID_Пользователя");
  9239. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  9240. tableMapping.ColumnMappings.Add("Название", "Название");
  9241. tableMapping.ColumnMappings.Add("НазваниеСтатусаСотрудника", "НазваниеСтатусаСотрудника");
  9242. this._adapter.TableMappings.Add(tableMapping);
  9243. }
  9244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9246. private void InitConnection() {
  9247. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9248. this._connection.ConnectionString = global::Cafe11.Properties.Settings.Default.lebcafeConnectionString;
  9249. }
  9250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9252. private void InitCommandCollection() {
  9253. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9254. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9255. this._commandCollection[0].Connection = this.Connection;
  9256. this._commandCollection[0].CommandText = "SELECT ID_Пользователя, Фамилия, Название, НазваниеСтатусаСотрудника FROM dbo.RAB" +
  9257. "OCHIEAdmin";
  9258. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9259. }
  9260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9262. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9263. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9264. public virtual int Fill(lebcafeDataSet.RABOCHIEAdminDataTable dataTable) {
  9265. this.Adapter.SelectCommand = this.CommandCollection[0];
  9266. if ((this.ClearBeforeFill == true)) {
  9267. dataTable.Clear();
  9268. }
  9269. int returnValue = this.Adapter.Fill(dataTable);
  9270. return returnValue;
  9271. }
  9272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9274. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9275. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9276. public virtual lebcafeDataSet.RABOCHIEAdminDataTable GetData() {
  9277. this.Adapter.SelectCommand = this.CommandCollection[0];
  9278. lebcafeDataSet.RABOCHIEAdminDataTable dataTable = new lebcafeDataSet.RABOCHIEAdminDataTable();
  9279. this.Adapter.Fill(dataTable);
  9280. return dataTable;
  9281. }
  9282. }
  9283. /// <summary>
  9284. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  9285. ///</summary>
  9286. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9287. [global::System.ComponentModel.ToolboxItem(true)]
  9288. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  9289. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9290. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  9291. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  9292. private UpdateOrderOption _updateOrder;
  9293. private БлюдаНапиткиTableAdapter _блюдаНапиткиTableAdapter;
  9294. private Заказанные_блюдаTableAdapter _заказанные_блюдаTableAdapter;
  9295. private ЗаказыTableAdapter _заказыTableAdapter;
  9296. private ОфициантыTableAdapter _официантыTableAdapter;
  9297. private ПовараTableAdapter _повараTableAdapter;
  9298. private ПользователиTableAdapter _пользователиTableAdapter;
  9299. private РолиTableAdapter _ролиTableAdapter;
  9300. private СменыTableAdapter _сменыTableAdapter;
  9301. private СтатусЗаказаTableAdapter _статусЗаказаTableAdapter;
  9302. private СтатусСотрудникаTableAdapter _статусСотрудникаTableAdapter;
  9303. private СтоликиTableAdapter _столикиTableAdapter;
  9304. private bool _backupDataSetBeforeUpdate;
  9305. private global::System.Data.IDbConnection _connection;
  9306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9308. public UpdateOrderOption UpdateOrder {
  9309. get {
  9310. return this._updateOrder;
  9311. }
  9312. set {
  9313. this._updateOrder = value;
  9314. }
  9315. }
  9316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9318. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9319. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9320. "a", "System.Drawing.Design.UITypeEditor")]
  9321. public БлюдаНапиткиTableAdapter БлюдаНапиткиTableAdapter {
  9322. get {
  9323. return this._блюдаНапиткиTableAdapter;
  9324. }
  9325. set {
  9326. this._блюдаНапиткиTableAdapter = value;
  9327. }
  9328. }
  9329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9331. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9332. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9333. "a", "System.Drawing.Design.UITypeEditor")]
  9334. public Заказанные_блюдаTableAdapter Заказанные_блюдаTableAdapter {
  9335. get {
  9336. return this._заказанные_блюдаTableAdapter;
  9337. }
  9338. set {
  9339. this._заказанные_блюдаTableAdapter = value;
  9340. }
  9341. }
  9342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9344. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9345. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9346. "a", "System.Drawing.Design.UITypeEditor")]
  9347. public ЗаказыTableAdapter ЗаказыTableAdapter {
  9348. get {
  9349. return this._заказыTableAdapter;
  9350. }
  9351. set {
  9352. this._заказыTableAdapter = value;
  9353. }
  9354. }
  9355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9357. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9358. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9359. "a", "System.Drawing.Design.UITypeEditor")]
  9360. public ОфициантыTableAdapter ОфициантыTableAdapter {
  9361. get {
  9362. return this._официантыTableAdapter;
  9363. }
  9364. set {
  9365. this._официантыTableAdapter = value;
  9366. }
  9367. }
  9368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9370. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9371. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9372. "a", "System.Drawing.Design.UITypeEditor")]
  9373. public ПовараTableAdapter ПовараTableAdapter {
  9374. get {
  9375. return this._повараTableAdapter;
  9376. }
  9377. set {
  9378. this._повараTableAdapter = value;
  9379. }
  9380. }
  9381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9383. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9384. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9385. "a", "System.Drawing.Design.UITypeEditor")]
  9386. public ПользователиTableAdapter ПользователиTableAdapter {
  9387. get {
  9388. return this._пользователиTableAdapter;
  9389. }
  9390. set {
  9391. this._пользователиTableAdapter = value;
  9392. }
  9393. }
  9394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9396. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9397. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9398. "a", "System.Drawing.Design.UITypeEditor")]
  9399. public РолиTableAdapter РолиTableAdapter {
  9400. get {
  9401. return this._ролиTableAdapter;
  9402. }
  9403. set {
  9404. this._ролиTableAdapter = value;
  9405. }
  9406. }
  9407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9409. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9410. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9411. "a", "System.Drawing.Design.UITypeEditor")]
  9412. public СменыTableAdapter СменыTableAdapter {
  9413. get {
  9414. return this._сменыTableAdapter;
  9415. }
  9416. set {
  9417. this._сменыTableAdapter = value;
  9418. }
  9419. }
  9420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9422. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9423. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9424. "a", "System.Drawing.Design.UITypeEditor")]
  9425. public СтатусЗаказаTableAdapter СтатусЗаказаTableAdapter {
  9426. get {
  9427. return this._статусЗаказаTableAdapter;
  9428. }
  9429. set {
  9430. this._статусЗаказаTableAdapter = value;
  9431. }
  9432. }
  9433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9435. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9436. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9437. "a", "System.Drawing.Design.UITypeEditor")]
  9438. public СтатусСотрудникаTableAdapter СтатусСотрудникаTableAdapter {
  9439. get {
  9440. return this._статусСотрудникаTableAdapter;
  9441. }
  9442. set {
  9443. this._статусСотрудникаTableAdapter = value;
  9444. }
  9445. }
  9446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9448. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  9449. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  9450. "a", "System.Drawing.Design.UITypeEditor")]
  9451. public СтоликиTableAdapter СтоликиTableAdapter {
  9452. get {
  9453. return this._столикиTableAdapter;
  9454. }
  9455. set {
  9456. this._столикиTableAdapter = value;
  9457. }
  9458. }
  9459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9461. public bool BackupDataSetBeforeUpdate {
  9462. get {
  9463. return this._backupDataSetBeforeUpdate;
  9464. }
  9465. set {
  9466. this._backupDataSetBeforeUpdate = value;
  9467. }
  9468. }
  9469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9471. [global::System.ComponentModel.Browsable(false)]
  9472. public global::System.Data.IDbConnection Connection {
  9473. get {
  9474. if ((this._connection != null)) {
  9475. return this._connection;
  9476. }
  9477. if (((this._блюдаНапиткиTableAdapter != null)
  9478. && (this._блюдаНапиткиTableAdapter.Connection != null))) {
  9479. return this._блюдаНапиткиTableAdapter.Connection;
  9480. }
  9481. if (((this._заказанные_блюдаTableAdapter != null)
  9482. && (this._заказанные_блюдаTableAdapter.Connection != null))) {
  9483. return this._заказанные_блюдаTableAdapter.Connection;
  9484. }
  9485. if (((this._заказыTableAdapter != null)
  9486. && (this._заказыTableAdapter.Connection != null))) {
  9487. return this._заказыTableAdapter.Connection;
  9488. }
  9489. if (((this._официантыTableAdapter != null)
  9490. && (this._официантыTableAdapter.Connection != null))) {
  9491. return this._официантыTableAdapter.Connection;
  9492. }
  9493. if (((this._повараTableAdapter != null)
  9494. && (this._повараTableAdapter.Connection != null))) {
  9495. return this._повараTableAdapter.Connection;
  9496. }
  9497. if (((this._пользователиTableAdapter != null)
  9498. && (this._пользователиTableAdapter.Connection != null))) {
  9499. return this._пользователиTableAdapter.Connection;
  9500. }
  9501. if (((this._ролиTableAdapter != null)
  9502. && (this._ролиTableAdapter.Connection != null))) {
  9503. return this._ролиTableAdapter.Connection;
  9504. }
  9505. if (((this._сменыTableAdapter != null)
  9506. && (this._сменыTableAdapter.Connection != null))) {
  9507. return this._сменыTableAdapter.Connection;
  9508. }
  9509. if (((this._статусЗаказаTableAdapter != null)
  9510. && (this._статусЗаказаTableAdapter.Connection != null))) {
  9511. return this._статусЗаказаTableAdapter.Connection;
  9512. }
  9513. if (((this._статусСотрудникаTableAdapter != null)
  9514. && (this._статусСотрудникаTableAdapter.Connection != null))) {
  9515. return this._статусСотрудникаTableAdapter.Connection;
  9516. }
  9517. if (((this._столикиTableAdapter != null)
  9518. && (this._столикиTableAdapter.Connection != null))) {
  9519. return this._столикиTableAdapter.Connection;
  9520. }
  9521. return null;
  9522. }
  9523. set {
  9524. this._connection = value;
  9525. }
  9526. }
  9527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9529. [global::System.ComponentModel.Browsable(false)]
  9530. public int TableAdapterInstanceCount {
  9531. get {
  9532. int count = 0;
  9533. if ((this._блюдаНапиткиTableAdapter != null)) {
  9534. count = (count + 1);
  9535. }
  9536. if ((this._заказанные_блюдаTableAdapter != null)) {
  9537. count = (count + 1);
  9538. }
  9539. if ((this._заказыTableAdapter != null)) {
  9540. count = (count + 1);
  9541. }
  9542. if ((this._официантыTableAdapter != null)) {
  9543. count = (count + 1);
  9544. }
  9545. if ((this._повараTableAdapter != null)) {
  9546. count = (count + 1);
  9547. }
  9548. if ((this._пользователиTableAdapter != null)) {
  9549. count = (count + 1);
  9550. }
  9551. if ((this._ролиTableAdapter != null)) {
  9552. count = (count + 1);
  9553. }
  9554. if ((this._сменыTableAdapter != null)) {
  9555. count = (count + 1);
  9556. }
  9557. if ((this._статусЗаказаTableAdapter != null)) {
  9558. count = (count + 1);
  9559. }
  9560. if ((this._статусСотрудникаTableAdapter != null)) {
  9561. count = (count + 1);
  9562. }
  9563. if ((this._столикиTableAdapter != null)) {
  9564. count = (count + 1);
  9565. }
  9566. return count;
  9567. }
  9568. }
  9569. /// <summary>
  9570. ///Update rows in top-down order.
  9571. ///</summary>
  9572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9574. private int UpdateUpdatedRows(lebcafeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  9575. int result = 0;
  9576. if ((this._официантыTableAdapter != null)) {
  9577. global::System.Data.DataRow[] updatedRows = dataSet.Официанты.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9578. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9579. if (((updatedRows != null)
  9580. && (0 < updatedRows.Length))) {
  9581. result = (result + this._официантыTableAdapter.Update(updatedRows));
  9582. allChangedRows.AddRange(updatedRows);
  9583. }
  9584. }
  9585. if ((this._повараTableAdapter != null)) {
  9586. global::System.Data.DataRow[] updatedRows = dataSet.Повара.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9587. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9588. if (((updatedRows != null)
  9589. && (0 < updatedRows.Length))) {
  9590. result = (result + this._повараTableAdapter.Update(updatedRows));
  9591. allChangedRows.AddRange(updatedRows);
  9592. }
  9593. }
  9594. if ((this._ролиTableAdapter != null)) {
  9595. global::System.Data.DataRow[] updatedRows = dataSet.Роли.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9596. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9597. if (((updatedRows != null)
  9598. && (0 < updatedRows.Length))) {
  9599. result = (result + this._ролиTableAdapter.Update(updatedRows));
  9600. allChangedRows.AddRange(updatedRows);
  9601. }
  9602. }
  9603. if ((this._статусСотрудникаTableAdapter != null)) {
  9604. global::System.Data.DataRow[] updatedRows = dataSet.СтатусСотрудника.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9605. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9606. if (((updatedRows != null)
  9607. && (0 < updatedRows.Length))) {
  9608. result = (result + this._статусСотрудникаTableAdapter.Update(updatedRows));
  9609. allChangedRows.AddRange(updatedRows);
  9610. }
  9611. }
  9612. if ((this._пользователиTableAdapter != null)) {
  9613. global::System.Data.DataRow[] updatedRows = dataSet.Пользователи.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9614. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9615. if (((updatedRows != null)
  9616. && (0 < updatedRows.Length))) {
  9617. result = (result + this._пользователиTableAdapter.Update(updatedRows));
  9618. allChangedRows.AddRange(updatedRows);
  9619. }
  9620. }
  9621. if ((this._сменыTableAdapter != null)) {
  9622. global::System.Data.DataRow[] updatedRows = dataSet.Смены.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9623. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9624. if (((updatedRows != null)
  9625. && (0 < updatedRows.Length))) {
  9626. result = (result + this._сменыTableAdapter.Update(updatedRows));
  9627. allChangedRows.AddRange(updatedRows);
  9628. }
  9629. }
  9630. if ((this._статусЗаказаTableAdapter != null)) {
  9631. global::System.Data.DataRow[] updatedRows = dataSet.СтатусЗаказа.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9632. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9633. if (((updatedRows != null)
  9634. && (0 < updatedRows.Length))) {
  9635. result = (result + this._статусЗаказаTableAdapter.Update(updatedRows));
  9636. allChangedRows.AddRange(updatedRows);
  9637. }
  9638. }
  9639. if ((this._столикиTableAdapter != null)) {
  9640. global::System.Data.DataRow[] updatedRows = dataSet.Столики.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9641. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9642. if (((updatedRows != null)
  9643. && (0 < updatedRows.Length))) {
  9644. result = (result + this._столикиTableAdapter.Update(updatedRows));
  9645. allChangedRows.AddRange(updatedRows);
  9646. }
  9647. }
  9648. if ((this._блюдаНапиткиTableAdapter != null)) {
  9649. global::System.Data.DataRow[] updatedRows = dataSet.БлюдаНапитки.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9650. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9651. if (((updatedRows != null)
  9652. && (0 < updatedRows.Length))) {
  9653. result = (result + this._блюдаНапиткиTableAdapter.Update(updatedRows));
  9654. allChangedRows.AddRange(updatedRows);
  9655. }
  9656. }
  9657. if ((this._заказыTableAdapter != null)) {
  9658. global::System.Data.DataRow[] updatedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9659. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9660. if (((updatedRows != null)
  9661. && (0 < updatedRows.Length))) {
  9662. result = (result + this._заказыTableAdapter.Update(updatedRows));
  9663. allChangedRows.AddRange(updatedRows);
  9664. }
  9665. }
  9666. if ((this._заказанные_блюдаTableAdapter != null)) {
  9667. global::System.Data.DataRow[] updatedRows = dataSet.Заказанные_блюда.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9668. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9669. if (((updatedRows != null)
  9670. && (0 < updatedRows.Length))) {
  9671. result = (result + this._заказанные_блюдаTableAdapter.Update(updatedRows));
  9672. allChangedRows.AddRange(updatedRows);
  9673. }
  9674. }
  9675. return result;
  9676. }
  9677. /// <summary>
  9678. ///Insert rows in top-down order.
  9679. ///</summary>
  9680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9682. private int UpdateInsertedRows(lebcafeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  9683. int result = 0;
  9684. if ((this._официантыTableAdapter != null)) {
  9685. global::System.Data.DataRow[] addedRows = dataSet.Официанты.Select(null, null, global::System.Data.DataViewRowState.Added);
  9686. if (((addedRows != null)
  9687. && (0 < addedRows.Length))) {
  9688. result = (result + this._официантыTableAdapter.Update(addedRows));
  9689. allAddedRows.AddRange(addedRows);
  9690. }
  9691. }
  9692. if ((this._повараTableAdapter != null)) {
  9693. global::System.Data.DataRow[] addedRows = dataSet.Повара.Select(null, null, global::System.Data.DataViewRowState.Added);
  9694. if (((addedRows != null)
  9695. && (0 < addedRows.Length))) {
  9696. result = (result + this._повараTableAdapter.Update(addedRows));
  9697. allAddedRows.AddRange(addedRows);
  9698. }
  9699. }
  9700. if ((this._ролиTableAdapter != null)) {
  9701. global::System.Data.DataRow[] addedRows = dataSet.Роли.Select(null, null, global::System.Data.DataViewRowState.Added);
  9702. if (((addedRows != null)
  9703. && (0 < addedRows.Length))) {
  9704. result = (result + this._ролиTableAdapter.Update(addedRows));
  9705. allAddedRows.AddRange(addedRows);
  9706. }
  9707. }
  9708. if ((this._статусСотрудникаTableAdapter != null)) {
  9709. global::System.Data.DataRow[] addedRows = dataSet.СтатусСотрудника.Select(null, null, global::System.Data.DataViewRowState.Added);
  9710. if (((addedRows != null)
  9711. && (0 < addedRows.Length))) {
  9712. result = (result + this._статусСотрудникаTableAdapter.Update(addedRows));
  9713. allAddedRows.AddRange(addedRows);
  9714. }
  9715. }
  9716. if ((this._пользователиTableAdapter != null)) {
  9717. global::System.Data.DataRow[] addedRows = dataSet.Пользователи.Select(null, null, global::System.Data.DataViewRowState.Added);
  9718. if (((addedRows != null)
  9719. && (0 < addedRows.Length))) {
  9720. result = (result + this._пользователиTableAdapter.Update(addedRows));
  9721. allAddedRows.AddRange(addedRows);
  9722. }
  9723. }
  9724. if ((this._сменыTableAdapter != null)) {
  9725. global::System.Data.DataRow[] addedRows = dataSet.Смены.Select(null, null, global::System.Data.DataViewRowState.Added);
  9726. if (((addedRows != null)
  9727. && (0 < addedRows.Length))) {
  9728. result = (result + this._сменыTableAdapter.Update(addedRows));
  9729. allAddedRows.AddRange(addedRows);
  9730. }
  9731. }
  9732. if ((this._статусЗаказаTableAdapter != null)) {
  9733. global::System.Data.DataRow[] addedRows = dataSet.СтатусЗаказа.Select(null, null, global::System.Data.DataViewRowState.Added);
  9734. if (((addedRows != null)
  9735. && (0 < addedRows.Length))) {
  9736. result = (result + this._статусЗаказаTableAdapter.Update(addedRows));
  9737. allAddedRows.AddRange(addedRows);
  9738. }
  9739. }
  9740. if ((this._столикиTableAdapter != null)) {
  9741. global::System.Data.DataRow[] addedRows = dataSet.Столики.Select(null, null, global::System.Data.DataViewRowState.Added);
  9742. if (((addedRows != null)
  9743. && (0 < addedRows.Length))) {
  9744. result = (result + this._столикиTableAdapter.Update(addedRows));
  9745. allAddedRows.AddRange(addedRows);
  9746. }
  9747. }
  9748. if ((this._блюдаНапиткиTableAdapter != null)) {
  9749. global::System.Data.DataRow[] addedRows = dataSet.БлюдаНапитки.Select(null, null, global::System.Data.DataViewRowState.Added);
  9750. if (((addedRows != null)
  9751. && (0 < addedRows.Length))) {
  9752. result = (result + this._блюдаНапиткиTableAdapter.Update(addedRows));
  9753. allAddedRows.AddRange(addedRows);
  9754. }
  9755. }
  9756. if ((this._заказыTableAdapter != null)) {
  9757. global::System.Data.DataRow[] addedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.Added);
  9758. if (((addedRows != null)
  9759. && (0 < addedRows.Length))) {
  9760. result = (result + this._заказыTableAdapter.Update(addedRows));
  9761. allAddedRows.AddRange(addedRows);
  9762. }
  9763. }
  9764. if ((this._заказанные_блюдаTableAdapter != null)) {
  9765. global::System.Data.DataRow[] addedRows = dataSet.Заказанные_блюда.Select(null, null, global::System.Data.DataViewRowState.Added);
  9766. if (((addedRows != null)
  9767. && (0 < addedRows.Length))) {
  9768. result = (result + this._заказанные_блюдаTableAdapter.Update(addedRows));
  9769. allAddedRows.AddRange(addedRows);
  9770. }
  9771. }
  9772. return result;
  9773. }
  9774. /// <summary>
  9775. ///Delete rows in bottom-up order.
  9776. ///</summary>
  9777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9779. private int UpdateDeletedRows(lebcafeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  9780. int result = 0;
  9781. if ((this._заказанные_блюдаTableAdapter != null)) {
  9782. global::System.Data.DataRow[] deletedRows = dataSet.Заказанные_блюда.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9783. if (((deletedRows != null)
  9784. && (0 < deletedRows.Length))) {
  9785. result = (result + this._заказанные_блюдаTableAdapter.Update(deletedRows));
  9786. allChangedRows.AddRange(deletedRows);
  9787. }
  9788. }
  9789. if ((this._заказыTableAdapter != null)) {
  9790. global::System.Data.DataRow[] deletedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9791. if (((deletedRows != null)
  9792. && (0 < deletedRows.Length))) {
  9793. result = (result + this._заказыTableAdapter.Update(deletedRows));
  9794. allChangedRows.AddRange(deletedRows);
  9795. }
  9796. }
  9797. if ((this._блюдаНапиткиTableAdapter != null)) {
  9798. global::System.Data.DataRow[] deletedRows = dataSet.БлюдаНапитки.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9799. if (((deletedRows != null)
  9800. && (0 < deletedRows.Length))) {
  9801. result = (result + this._блюдаНапиткиTableAdapter.Update(deletedRows));
  9802. allChangedRows.AddRange(deletedRows);
  9803. }
  9804. }
  9805. if ((this._столикиTableAdapter != null)) {
  9806. global::System.Data.DataRow[] deletedRows = dataSet.Столики.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9807. if (((deletedRows != null)
  9808. && (0 < deletedRows.Length))) {
  9809. result = (result + this._столикиTableAdapter.Update(deletedRows));
  9810. allChangedRows.AddRange(deletedRows);
  9811. }
  9812. }
  9813. if ((this._статусЗаказаTableAdapter != null)) {
  9814. global::System.Data.DataRow[] deletedRows = dataSet.СтатусЗаказа.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9815. if (((deletedRows != null)
  9816. && (0 < deletedRows.Length))) {
  9817. result = (result + this._статусЗаказаTableAdapter.Update(deletedRows));
  9818. allChangedRows.AddRange(deletedRows);
  9819. }
  9820. }
  9821. if ((this._сменыTableAdapter != null)) {
  9822. global::System.Data.DataRow[] deletedRows = dataSet.Смены.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9823. if (((deletedRows != null)
  9824. && (0 < deletedRows.Length))) {
  9825. result = (result + this._сменыTableAdapter.Update(deletedRows));
  9826. allChangedRows.AddRange(deletedRows);
  9827. }
  9828. }
  9829. if ((this._пользователиTableAdapter != null)) {
  9830. global::System.Data.DataRow[] deletedRows = dataSet.Пользователи.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9831. if (((deletedRows != null)
  9832. && (0 < deletedRows.Length))) {
  9833. result = (result + this._пользователиTableAdapter.Update(deletedRows));
  9834. allChangedRows.AddRange(deletedRows);
  9835. }
  9836. }
  9837. if ((this._статусСотрудникаTableAdapter != null)) {
  9838. global::System.Data.DataRow[] deletedRows = dataSet.СтатусСотрудника.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9839. if (((deletedRows != null)
  9840. && (0 < deletedRows.Length))) {
  9841. result = (result + this._статусСотрудникаTableAdapter.Update(deletedRows));
  9842. allChangedRows.AddRange(deletedRows);
  9843. }
  9844. }
  9845. if ((this._ролиTableAdapter != null)) {
  9846. global::System.Data.DataRow[] deletedRows = dataSet.Роли.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9847. if (((deletedRows != null)
  9848. && (0 < deletedRows.Length))) {
  9849. result = (result + this._ролиTableAdapter.Update(deletedRows));
  9850. allChangedRows.AddRange(deletedRows);
  9851. }
  9852. }
  9853. if ((this._повараTableAdapter != null)) {
  9854. global::System.Data.DataRow[] deletedRows = dataSet.Повара.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9855. if (((deletedRows != null)
  9856. && (0 < deletedRows.Length))) {
  9857. result = (result + this._повараTableAdapter.Update(deletedRows));
  9858. allChangedRows.AddRange(deletedRows);
  9859. }
  9860. }
  9861. if ((this._официантыTableAdapter != null)) {
  9862. global::System.Data.DataRow[] deletedRows = dataSet.Официанты.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9863. if (((deletedRows != null)
  9864. && (0 < deletedRows.Length))) {
  9865. result = (result + this._официантыTableAdapter.Update(deletedRows));
  9866. allChangedRows.AddRange(deletedRows);
  9867. }
  9868. }
  9869. return result;
  9870. }
  9871. /// <summary>
  9872. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  9873. ///</summary>
  9874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9876. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  9877. if (((updatedRows == null)
  9878. || (updatedRows.Length < 1))) {
  9879. return updatedRows;
  9880. }
  9881. if (((allAddedRows == null)
  9882. || (allAddedRows.Count < 1))) {
  9883. return updatedRows;
  9884. }
  9885. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  9886. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  9887. global::System.Data.DataRow row = updatedRows[i];
  9888. if ((allAddedRows.Contains(row) == false)) {
  9889. realUpdatedRows.Add(row);
  9890. }
  9891. }
  9892. return realUpdatedRows.ToArray();
  9893. }
  9894. /// <summary>
  9895. ///Update all changes to the dataset.
  9896. ///</summary>
  9897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9899. public virtual int UpdateAll(lebcafeDataSet dataSet) {
  9900. if ((dataSet == null)) {
  9901. throw new global::System.ArgumentNullException("dataSet");
  9902. }
  9903. if ((dataSet.HasChanges() == false)) {
  9904. return 0;
  9905. }
  9906. if (((this._блюдаНапиткиTableAdapter != null)
  9907. && (this.MatchTableAdapterConnection(this._блюдаНапиткиTableAdapter.Connection) == false))) {
  9908. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9909. "r, должны использовать одинаковую строку подключения.");
  9910. }
  9911. if (((this._заказанные_блюдаTableAdapter != null)
  9912. && (this.MatchTableAdapterConnection(this._заказанные_блюдаTableAdapter.Connection) == false))) {
  9913. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9914. "r, должны использовать одинаковую строку подключения.");
  9915. }
  9916. if (((this._заказыTableAdapter != null)
  9917. && (this.MatchTableAdapterConnection(this._заказыTableAdapter.Connection) == false))) {
  9918. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9919. "r, должны использовать одинаковую строку подключения.");
  9920. }
  9921. if (((this._официантыTableAdapter != null)
  9922. && (this.MatchTableAdapterConnection(this._официантыTableAdapter.Connection) == false))) {
  9923. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9924. "r, должны использовать одинаковую строку подключения.");
  9925. }
  9926. if (((this._повараTableAdapter != null)
  9927. && (this.MatchTableAdapterConnection(this._повараTableAdapter.Connection) == false))) {
  9928. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9929. "r, должны использовать одинаковую строку подключения.");
  9930. }
  9931. if (((this._пользователиTableAdapter != null)
  9932. && (this.MatchTableAdapterConnection(this._пользователиTableAdapter.Connection) == false))) {
  9933. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9934. "r, должны использовать одинаковую строку подключения.");
  9935. }
  9936. if (((this._ролиTableAdapter != null)
  9937. && (this.MatchTableAdapterConnection(this._ролиTableAdapter.Connection) == false))) {
  9938. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9939. "r, должны использовать одинаковую строку подключения.");
  9940. }
  9941. if (((this._сменыTableAdapter != null)
  9942. && (this.MatchTableAdapterConnection(this._сменыTableAdapter.Connection) == false))) {
  9943. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9944. "r, должны использовать одинаковую строку подключения.");
  9945. }
  9946. if (((this._статусЗаказаTableAdapter != null)
  9947. && (this.MatchTableAdapterConnection(this._статусЗаказаTableAdapter.Connection) == false))) {
  9948. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9949. "r, должны использовать одинаковую строку подключения.");
  9950. }
  9951. if (((this._статусСотрудникаTableAdapter != null)
  9952. && (this.MatchTableAdapterConnection(this._статусСотрудникаTableAdapter.Connection) == false))) {
  9953. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9954. "r, должны использовать одинаковую строку подключения.");
  9955. }
  9956. if (((this._столикиTableAdapter != null)
  9957. && (this.MatchTableAdapterConnection(this._столикиTableAdapter.Connection) == false))) {
  9958. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9959. "r, должны использовать одинаковую строку подключения.");
  9960. }
  9961. global::System.Data.IDbConnection workConnection = this.Connection;
  9962. if ((workConnection == null)) {
  9963. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  9964. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  9965. }
  9966. bool workConnOpened = false;
  9967. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  9968. == global::System.Data.ConnectionState.Broken)) {
  9969. workConnection.Close();
  9970. }
  9971. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  9972. workConnection.Open();
  9973. workConnOpened = true;
  9974. }
  9975. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  9976. if ((workTransaction == null)) {
  9977. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  9978. "и или текущее состояние не позволяет начать транзакцию.");
  9979. }
  9980. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  9981. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  9982. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  9983. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  9984. int result = 0;
  9985. global::System.Data.DataSet backupDataSet = null;
  9986. if (this.BackupDataSetBeforeUpdate) {
  9987. backupDataSet = new global::System.Data.DataSet();
  9988. backupDataSet.Merge(dataSet);
  9989. }
  9990. try {
  9991. // ---- Prepare for update -----------
  9992. //
  9993. if ((this._блюдаНапиткиTableAdapter != null)) {
  9994. revertConnections.Add(this._блюдаНапиткиTableAdapter, this._блюдаНапиткиTableAdapter.Connection);
  9995. this._блюдаНапиткиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9996. this._блюдаНапиткиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9997. if (this._блюдаНапиткиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9998. this._блюдаНапиткиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9999. adaptersWithAcceptChangesDuringUpdate.Add(this._блюдаНапиткиTableAdapter.Adapter);
  10000. }
  10001. }
  10002. if ((this._заказанные_блюдаTableAdapter != null)) {
  10003. revertConnections.Add(this._заказанные_блюдаTableAdapter, this._заказанные_блюдаTableAdapter.Connection);
  10004. this._заказанные_блюдаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10005. this._заказанные_блюдаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10006. if (this._заказанные_блюдаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10007. this._заказанные_блюдаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10008. adaptersWithAcceptChangesDuringUpdate.Add(this._заказанные_блюдаTableAdapter.Adapter);
  10009. }
  10010. }
  10011. if ((this._заказыTableAdapter != null)) {
  10012. revertConnections.Add(this._заказыTableAdapter, this._заказыTableAdapter.Connection);
  10013. this._заказыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10014. this._заказыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10015. if (this._заказыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10016. this._заказыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10017. adaptersWithAcceptChangesDuringUpdate.Add(this._заказыTableAdapter.Adapter);
  10018. }
  10019. }
  10020. if ((this._официантыTableAdapter != null)) {
  10021. revertConnections.Add(this._официантыTableAdapter, this._официантыTableAdapter.Connection);
  10022. this._официантыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10023. this._официантыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10024. if (this._официантыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10025. this._официантыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10026. adaptersWithAcceptChangesDuringUpdate.Add(this._официантыTableAdapter.Adapter);
  10027. }
  10028. }
  10029. if ((this._повараTableAdapter != null)) {
  10030. revertConnections.Add(this._повараTableAdapter, this._повараTableAdapter.Connection);
  10031. this._повараTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10032. this._повараTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10033. if (this._повараTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10034. this._повараTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10035. adaptersWithAcceptChangesDuringUpdate.Add(this._повараTableAdapter.Adapter);
  10036. }
  10037. }
  10038. if ((this._пользователиTableAdapter != null)) {
  10039. revertConnections.Add(this._пользователиTableAdapter, this._пользователиTableAdapter.Connection);
  10040. this._пользователиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10041. this._пользователиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10042. if (this._пользователиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10043. this._пользователиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10044. adaptersWithAcceptChangesDuringUpdate.Add(this._пользователиTableAdapter.Adapter);
  10045. }
  10046. }
  10047. if ((this._ролиTableAdapter != null)) {
  10048. revertConnections.Add(this._ролиTableAdapter, this._ролиTableAdapter.Connection);
  10049. this._ролиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10050. this._ролиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10051. if (this._ролиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10052. this._ролиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10053. adaptersWithAcceptChangesDuringUpdate.Add(this._ролиTableAdapter.Adapter);
  10054. }
  10055. }
  10056. if ((this._сменыTableAdapter != null)) {
  10057. revertConnections.Add(this._сменыTableAdapter, this._сменыTableAdapter.Connection);
  10058. this._сменыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10059. this._сменыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10060. if (this._сменыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10061. this._сменыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10062. adaptersWithAcceptChangesDuringUpdate.Add(this._сменыTableAdapter.Adapter);
  10063. }
  10064. }
  10065. if ((this._статусЗаказаTableAdapter != null)) {
  10066. revertConnections.Add(this._статусЗаказаTableAdapter, this._статусЗаказаTableAdapter.Connection);
  10067. this._статусЗаказаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10068. this._статусЗаказаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10069. if (this._статусЗаказаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10070. this._статусЗаказаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10071. adaptersWithAcceptChangesDuringUpdate.Add(this._статусЗаказаTableAdapter.Adapter);
  10072. }
  10073. }
  10074. if ((this._статусСотрудникаTableAdapter != null)) {
  10075. revertConnections.Add(this._статусСотрудникаTableAdapter, this._статусСотрудникаTableAdapter.Connection);
  10076. this._статусСотрудникаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10077. this._статусСотрудникаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10078. if (this._статусСотрудникаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10079. this._статусСотрудникаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10080. adaptersWithAcceptChangesDuringUpdate.Add(this._статусСотрудникаTableAdapter.Adapter);
  10081. }
  10082. }
  10083. if ((this._столикиTableAdapter != null)) {
  10084. revertConnections.Add(this._столикиTableAdapter, this._столикиTableAdapter.Connection);
  10085. this._столикиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10086. this._столикиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10087. if (this._столикиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10088. this._столикиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10089. adaptersWithAcceptChangesDuringUpdate.Add(this._столикиTableAdapter.Adapter);
  10090. }
  10091. }
  10092. //
  10093. //---- Perform updates -----------
  10094. //
  10095. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  10096. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10097. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10098. }
  10099. else {
  10100. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10101. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10102. }
  10103. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  10104. //
  10105. //---- Commit updates -----------
  10106. //
  10107. workTransaction.Commit();
  10108. if ((0 < allAddedRows.Count)) {
  10109. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10110. allAddedRows.CopyTo(rows);
  10111. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10112. global::System.Data.DataRow row = rows[i];
  10113. row.AcceptChanges();
  10114. }
  10115. }
  10116. if ((0 < allChangedRows.Count)) {
  10117. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  10118. allChangedRows.CopyTo(rows);
  10119. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10120. global::System.Data.DataRow row = rows[i];
  10121. row.AcceptChanges();
  10122. }
  10123. }
  10124. }
  10125. catch (global::System.Exception ex) {
  10126. workTransaction.Rollback();
  10127. // ---- Restore the dataset -----------
  10128. if (this.BackupDataSetBeforeUpdate) {
  10129. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  10130. dataSet.Clear();
  10131. dataSet.Merge(backupDataSet);
  10132. }
  10133. else {
  10134. if ((0 < allAddedRows.Count)) {
  10135. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10136. allAddedRows.CopyTo(rows);
  10137. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10138. global::System.Data.DataRow row = rows[i];
  10139. row.AcceptChanges();
  10140. row.SetAdded();
  10141. }
  10142. }
  10143. }
  10144. throw ex;
  10145. }
  10146. finally {
  10147. if (workConnOpened) {
  10148. workConnection.Close();
  10149. }
  10150. if ((this._блюдаНапиткиTableAdapter != null)) {
  10151. this._блюдаНапиткиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._блюдаНапиткиTableAdapter]));
  10152. this._блюдаНапиткиTableAdapter.Transaction = null;
  10153. }
  10154. if ((this._заказанные_блюдаTableAdapter != null)) {
  10155. this._заказанные_блюдаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказанные_блюдаTableAdapter]));
  10156. this._заказанные_блюдаTableAdapter.Transaction = null;
  10157. }
  10158. if ((this._заказыTableAdapter != null)) {
  10159. this._заказыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказыTableAdapter]));
  10160. this._заказыTableAdapter.Transaction = null;
  10161. }
  10162. if ((this._официантыTableAdapter != null)) {
  10163. this._официантыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._официантыTableAdapter]));
  10164. this._официантыTableAdapter.Transaction = null;
  10165. }
  10166. if ((this._повараTableAdapter != null)) {
  10167. this._повараTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._повараTableAdapter]));
  10168. this._повараTableAdapter.Transaction = null;
  10169. }
  10170. if ((this._пользователиTableAdapter != null)) {
  10171. this._пользователиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._пользователиTableAdapter]));
  10172. this._пользователиTableAdapter.Transaction = null;
  10173. }
  10174. if ((this._ролиTableAdapter != null)) {
  10175. this._ролиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ролиTableAdapter]));
  10176. this._ролиTableAdapter.Transaction = null;
  10177. }
  10178. if ((this._сменыTableAdapter != null)) {
  10179. this._сменыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сменыTableAdapter]));
  10180. this._сменыTableAdapter.Transaction = null;
  10181. }
  10182. if ((this._статусЗаказаTableAdapter != null)) {
  10183. this._статусЗаказаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._статусЗаказаTableAdapter]));
  10184. this._статусЗаказаTableAdapter.Transaction = null;
  10185. }
  10186. if ((this._статусСотрудникаTableAdapter != null)) {
  10187. this._статусСотрудникаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._статусСотрудникаTableAdapter]));
  10188. this._статусСотрудникаTableAdapter.Transaction = null;
  10189. }
  10190. if ((this._столикиTableAdapter != null)) {
  10191. this._столикиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._столикиTableAdapter]));
  10192. this._столикиTableAdapter.Transaction = null;
  10193. }
  10194. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  10195. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  10196. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  10197. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  10198. global::System.Data.Common.DataAdapter adapter = adapters[i];
  10199. adapter.AcceptChangesDuringUpdate = true;
  10200. }
  10201. }
  10202. }
  10203. return result;
  10204. }
  10205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10207. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  10208. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  10209. }
  10210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10212. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  10213. if ((this._connection != null)) {
  10214. return true;
  10215. }
  10216. if (((this.Connection == null)
  10217. || (inputConnection == null))) {
  10218. return true;
  10219. }
  10220. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  10221. return true;
  10222. }
  10223. return false;
  10224. }
  10225. /// <summary>
  10226. ///Update Order Option
  10227. ///</summary>
  10228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10229. public enum UpdateOrderOption {
  10230. InsertUpdateDelete = 0,
  10231. UpdateInsertDelete = 1,
  10232. }
  10233. /// <summary>
  10234. ///Used to sort self-referenced table's rows
  10235. ///</summary>
  10236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10237. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  10238. private global::System.Data.DataRelation _relation;
  10239. private int _childFirst;
  10240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10242. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  10243. this._relation = relation;
  10244. if (childFirst) {
  10245. this._childFirst = -1;
  10246. }
  10247. else {
  10248. this._childFirst = 1;
  10249. }
  10250. }
  10251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10253. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  10254. global::System.Diagnostics.Debug.Assert((row != null));
  10255. global::System.Data.DataRow root = row;
  10256. distance = 0;
  10257. 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>();
  10258. traversedRows[row] = row;
  10259. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  10260. for (
  10261. ; ((parent != null)
  10262. && (traversedRows.ContainsKey(parent) == false));
  10263. ) {
  10264. distance = (distance + 1);
  10265. root = parent;
  10266. traversedRows[parent] = parent;
  10267. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  10268. }
  10269. if ((distance == 0)) {
  10270. traversedRows.Clear();
  10271. traversedRows[row] = row;
  10272. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  10273. for (
  10274. ; ((parent != null)
  10275. && (traversedRows.ContainsKey(parent) == false));
  10276. ) {
  10277. distance = (distance + 1);
  10278. root = parent;
  10279. traversedRows[parent] = parent;
  10280. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  10281. }
  10282. }
  10283. return root;
  10284. }
  10285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10287. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  10288. if (object.ReferenceEquals(row1, row2)) {
  10289. return 0;
  10290. }
  10291. if ((row1 == null)) {
  10292. return -1;
  10293. }
  10294. if ((row2 == null)) {
  10295. return 1;
  10296. }
  10297. int distance1 = 0;
  10298. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  10299. int distance2 = 0;
  10300. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  10301. if (object.ReferenceEquals(root1, root2)) {
  10302. return (this._childFirst * distance1.CompareTo(distance2));
  10303. }
  10304. else {
  10305. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  10306. && (root2.Table != null)));
  10307. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  10308. return -1;
  10309. }
  10310. else {
  10311. return 1;
  10312. }
  10313. }
  10314. }
  10315. }
  10316. }
  10317. }
  10318. #pragma warning restore 1591