ОООКафе_ЛорийDataSet.Designer.cs 640 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace kafe_Loriy {
  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("ОООКафе_ЛорийDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class ОООКафе_ЛорийDataSet : 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 global::System.Data.DataRelation relationFK_ЗаказаныеБН_БлюдаНапитки;
  33. private global::System.Data.DataRelation relationFK_ЗаказаныеБН_Заказы1;
  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_Сотрудники_СтатусыСотрудников;
  41. private global::System.Data.DataRelation relationFK_Официанты_Сотрудники;
  42. private global::System.Data.DataRelation relationFK_Повара_Сотрудники;
  43. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  44. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  45. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  46. public ОООКафе_ЛорийDataSet() {
  47. this.BeginInit();
  48. this.InitClass();
  49. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  50. base.Tables.CollectionChanged += schemaChangedHandler;
  51. base.Relations.CollectionChanged += schemaChangedHandler;
  52. this.EndInit();
  53. }
  54. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  55. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  56. protected ОООКафе_ЛорийDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  57. base(info, context, false) {
  58. if ((this.IsBinarySerialized(info, context) == true)) {
  59. this.InitVars(false);
  60. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  61. this.Tables.CollectionChanged += schemaChangedHandler1;
  62. this.Relations.CollectionChanged += schemaChangedHandler1;
  63. return;
  64. }
  65. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  66. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  67. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  68. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  69. if ((ds.Tables["БлюдаНапитки"] != null)) {
  70. base.Tables.Add(new БлюдаНапиткиDataTable(ds.Tables["БлюдаНапитки"]));
  71. }
  72. if ((ds.Tables["ЗаказаныеБН"] != null)) {
  73. base.Tables.Add(new ЗаказаныеБНDataTable(ds.Tables["ЗаказаныеБН"]));
  74. }
  75. if ((ds.Tables["Заказы"] != null)) {
  76. base.Tables.Add(new ЗаказыDataTable(ds.Tables["Заказы"]));
  77. }
  78. if ((ds.Tables["Официанты"] != null)) {
  79. base.Tables.Add(new ОфициантыDataTable(ds.Tables["Официанты"]));
  80. }
  81. if ((ds.Tables["Повара"] != null)) {
  82. base.Tables.Add(new ПовараDataTable(ds.Tables["Повара"]));
  83. }
  84. if ((ds.Tables["Роли"] != null)) {
  85. base.Tables.Add(new РолиDataTable(ds.Tables["Роли"]));
  86. }
  87. if ((ds.Tables["Смены"] != null)) {
  88. base.Tables.Add(new СменыDataTable(ds.Tables["Смены"]));
  89. }
  90. if ((ds.Tables["Сотрудники"] != null)) {
  91. base.Tables.Add(new СотрудникиDataTable(ds.Tables["Сотрудники"]));
  92. }
  93. if ((ds.Tables["СтатусыЗаказа"] != null)) {
  94. base.Tables.Add(new СтатусыЗаказаDataTable(ds.Tables["СтатусыЗаказа"]));
  95. }
  96. if ((ds.Tables["СтатусыСотрудников"] != null)) {
  97. base.Tables.Add(new СтатусыСотрудниковDataTable(ds.Tables["СтатусыСотрудников"]));
  98. }
  99. this.DataSetName = ds.DataSetName;
  100. this.Prefix = ds.Prefix;
  101. this.Namespace = ds.Namespace;
  102. this.Locale = ds.Locale;
  103. this.CaseSensitive = ds.CaseSensitive;
  104. this.EnforceConstraints = ds.EnforceConstraints;
  105. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  106. this.InitVars();
  107. }
  108. else {
  109. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  110. }
  111. this.GetSerializationData(info, context);
  112. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  113. base.Tables.CollectionChanged += schemaChangedHandler;
  114. this.Relations.CollectionChanged += schemaChangedHandler;
  115. }
  116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  118. [global::System.ComponentModel.Browsable(false)]
  119. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  120. public БлюдаНапиткиDataTable БлюдаНапитки {
  121. get {
  122. return this.tableБлюдаНапитки;
  123. }
  124. }
  125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  127. [global::System.ComponentModel.Browsable(false)]
  128. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  129. public ЗаказаныеБНDataTable ЗаказаныеБН {
  130. get {
  131. return this.tableЗаказаныеБН;
  132. }
  133. }
  134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  136. [global::System.ComponentModel.Browsable(false)]
  137. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  138. public ЗаказыDataTable Заказы {
  139. get {
  140. return this.tableЗаказы;
  141. }
  142. }
  143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  145. [global::System.ComponentModel.Browsable(false)]
  146. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  147. public ОфициантыDataTable Официанты {
  148. get {
  149. return this.tableОфицианты;
  150. }
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  154. [global::System.ComponentModel.Browsable(false)]
  155. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  156. public ПовараDataTable Повара {
  157. get {
  158. return this.tableПовара;
  159. }
  160. }
  161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  163. [global::System.ComponentModel.Browsable(false)]
  164. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  165. public РолиDataTable Роли {
  166. get {
  167. return this.tableРоли;
  168. }
  169. }
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  172. [global::System.ComponentModel.Browsable(false)]
  173. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  174. public СменыDataTable Смены {
  175. get {
  176. return this.tableСмены;
  177. }
  178. }
  179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  181. [global::System.ComponentModel.Browsable(false)]
  182. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  183. public СотрудникиDataTable Сотрудники {
  184. get {
  185. return this.tableСотрудники;
  186. }
  187. }
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  190. [global::System.ComponentModel.Browsable(false)]
  191. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  192. public СтатусыЗаказаDataTable СтатусыЗаказа {
  193. get {
  194. return this.tableСтатусыЗаказа;
  195. }
  196. }
  197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  199. [global::System.ComponentModel.Browsable(false)]
  200. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  201. public СтатусыСотрудниковDataTable СтатусыСотрудников {
  202. get {
  203. return this.tableСтатусыСотрудников;
  204. }
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  208. [global::System.ComponentModel.BrowsableAttribute(true)]
  209. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  210. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  211. get {
  212. return this._schemaSerializationMode;
  213. }
  214. set {
  215. this._schemaSerializationMode = value;
  216. }
  217. }
  218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  220. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  221. public new global::System.Data.DataTableCollection Tables {
  222. get {
  223. return base.Tables;
  224. }
  225. }
  226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  228. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  229. public new global::System.Data.DataRelationCollection Relations {
  230. get {
  231. return base.Relations;
  232. }
  233. }
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  236. protected override void InitializeDerivedDataSet() {
  237. this.BeginInit();
  238. this.InitClass();
  239. this.EndInit();
  240. }
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  243. public override global::System.Data.DataSet Clone() {
  244. ОООКафе_ЛорийDataSet cln = ((ОООКафе_ЛорийDataSet)(base.Clone()));
  245. cln.InitVars();
  246. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  247. return cln;
  248. }
  249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  251. protected override bool ShouldSerializeTables() {
  252. return false;
  253. }
  254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  256. protected override bool ShouldSerializeRelations() {
  257. return false;
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  261. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  262. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  263. this.Reset();
  264. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  265. ds.ReadXml(reader);
  266. if ((ds.Tables["БлюдаНапитки"] != null)) {
  267. base.Tables.Add(new БлюдаНапиткиDataTable(ds.Tables["БлюдаНапитки"]));
  268. }
  269. if ((ds.Tables["ЗаказаныеБН"] != null)) {
  270. base.Tables.Add(new ЗаказаныеБНDataTable(ds.Tables["ЗаказаныеБН"]));
  271. }
  272. if ((ds.Tables["Заказы"] != null)) {
  273. base.Tables.Add(new ЗаказыDataTable(ds.Tables["Заказы"]));
  274. }
  275. if ((ds.Tables["Официанты"] != null)) {
  276. base.Tables.Add(new ОфициантыDataTable(ds.Tables["Официанты"]));
  277. }
  278. if ((ds.Tables["Повара"] != null)) {
  279. base.Tables.Add(new ПовараDataTable(ds.Tables["Повара"]));
  280. }
  281. if ((ds.Tables["Роли"] != null)) {
  282. base.Tables.Add(new РолиDataTable(ds.Tables["Роли"]));
  283. }
  284. if ((ds.Tables["Смены"] != null)) {
  285. base.Tables.Add(new СменыDataTable(ds.Tables["Смены"]));
  286. }
  287. if ((ds.Tables["Сотрудники"] != null)) {
  288. base.Tables.Add(new СотрудникиDataTable(ds.Tables["Сотрудники"]));
  289. }
  290. if ((ds.Tables["СтатусыЗаказа"] != null)) {
  291. base.Tables.Add(new СтатусыЗаказаDataTable(ds.Tables["СтатусыЗаказа"]));
  292. }
  293. if ((ds.Tables["СтатусыСотрудников"] != null)) {
  294. base.Tables.Add(new СтатусыСотрудниковDataTable(ds.Tables["СтатусыСотрудников"]));
  295. }
  296. this.DataSetName = ds.DataSetName;
  297. this.Prefix = ds.Prefix;
  298. this.Namespace = ds.Namespace;
  299. this.Locale = ds.Locale;
  300. this.CaseSensitive = ds.CaseSensitive;
  301. this.EnforceConstraints = ds.EnforceConstraints;
  302. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  303. this.InitVars();
  304. }
  305. else {
  306. this.ReadXml(reader);
  307. this.InitVars();
  308. }
  309. }
  310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  312. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  313. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  314. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  315. stream.Position = 0;
  316. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  317. }
  318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  320. internal void InitVars() {
  321. this.InitVars(true);
  322. }
  323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  325. internal void InitVars(bool initTable) {
  326. this.tableБлюдаНапитки = ((БлюдаНапиткиDataTable)(base.Tables["БлюдаНапитки"]));
  327. if ((initTable == true)) {
  328. if ((this.tableБлюдаНапитки != null)) {
  329. this.tableБлюдаНапитки.InitVars();
  330. }
  331. }
  332. this.tableЗаказаныеБН = ((ЗаказаныеБНDataTable)(base.Tables["ЗаказаныеБН"]));
  333. if ((initTable == true)) {
  334. if ((this.tableЗаказаныеБН != null)) {
  335. this.tableЗаказаныеБН.InitVars();
  336. }
  337. }
  338. this.tableЗаказы = ((ЗаказыDataTable)(base.Tables["Заказы"]));
  339. if ((initTable == true)) {
  340. if ((this.tableЗаказы != null)) {
  341. this.tableЗаказы.InitVars();
  342. }
  343. }
  344. this.tableОфицианты = ((ОфициантыDataTable)(base.Tables["Официанты"]));
  345. if ((initTable == true)) {
  346. if ((this.tableОфицианты != null)) {
  347. this.tableОфицианты.InitVars();
  348. }
  349. }
  350. this.tableПовара = ((ПовараDataTable)(base.Tables["Повара"]));
  351. if ((initTable == true)) {
  352. if ((this.tableПовара != null)) {
  353. this.tableПовара.InitVars();
  354. }
  355. }
  356. this.tableРоли = ((РолиDataTable)(base.Tables["Роли"]));
  357. if ((initTable == true)) {
  358. if ((this.tableРоли != null)) {
  359. this.tableРоли.InitVars();
  360. }
  361. }
  362. this.tableСмены = ((СменыDataTable)(base.Tables["Смены"]));
  363. if ((initTable == true)) {
  364. if ((this.tableСмены != null)) {
  365. this.tableСмены.InitVars();
  366. }
  367. }
  368. this.tableСотрудники = ((СотрудникиDataTable)(base.Tables["Сотрудники"]));
  369. if ((initTable == true)) {
  370. if ((this.tableСотрудники != null)) {
  371. this.tableСотрудники.InitVars();
  372. }
  373. }
  374. this.tableСтатусыЗаказа = ((СтатусыЗаказаDataTable)(base.Tables["СтатусыЗаказа"]));
  375. if ((initTable == true)) {
  376. if ((this.tableСтатусыЗаказа != null)) {
  377. this.tableСтатусыЗаказа.InitVars();
  378. }
  379. }
  380. this.tableСтатусыСотрудников = ((СтатусыСотрудниковDataTable)(base.Tables["СтатусыСотрудников"]));
  381. if ((initTable == true)) {
  382. if ((this.tableСтатусыСотрудников != null)) {
  383. this.tableСтатусыСотрудников.InitVars();
  384. }
  385. }
  386. this.relationFK_ЗаказаныеБН_БлюдаНапитки = this.Relations["FK_ЗаказаныеБН_БлюдаНапитки"];
  387. this.relationFK_ЗаказаныеБН_Заказы1 = this.Relations["FK_ЗаказаныеБН_Заказы1"];
  388. this.relationFK_Заказы_СтатусыЗаказа = this.Relations["FK_Заказы_СтатусыЗаказа"];
  389. this.relationFK_Смены_Официанты = this.Relations["FK_Смены_Официанты"];
  390. this.relationFK_Смены_Повара = this.Relations["FK_Смены_Повара"];
  391. this.relationFK_Сотрудники_Официанты = this.Relations["FK_Сотрудники_Официанты"];
  392. this.relationFK_Сотрудники_Повара = this.Relations["FK_Сотрудники_Повара"];
  393. this.relationFK_Сотрудники_Роли = this.Relations["FK_Сотрудники_Роли"];
  394. this.relationFK_Сотрудники_СтатусыСотрудников = this.Relations["FK_Сотрудники_СтатусыСотрудников"];
  395. this.relationFK_Официанты_Сотрудники = this.Relations["FK_Официанты_Сотрудники"];
  396. this.relationFK_Повара_Сотрудники = this.Relations["FK_Повара_Сотрудники"];
  397. }
  398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  400. private void InitClass() {
  401. this.DataSetName = "ОООКафе_ЛорийDataSet";
  402. this.Prefix = "";
  403. this.Namespace = "http://tempuri.org/ОООКафе_ЛорийDataSet.xsd";
  404. this.EnforceConstraints = true;
  405. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  406. this.tableБлюдаНапитки = new БлюдаНапиткиDataTable();
  407. base.Tables.Add(this.tableБлюдаНапитки);
  408. this.tableЗаказаныеБН = new ЗаказаныеБНDataTable();
  409. base.Tables.Add(this.tableЗаказаныеБН);
  410. this.tableЗаказы = new ЗаказыDataTable();
  411. base.Tables.Add(this.tableЗаказы);
  412. this.tableОфицианты = new ОфициантыDataTable();
  413. base.Tables.Add(this.tableОфицианты);
  414. this.tableПовара = new ПовараDataTable();
  415. base.Tables.Add(this.tableПовара);
  416. this.tableРоли = new РолиDataTable();
  417. base.Tables.Add(this.tableРоли);
  418. this.tableСмены = new СменыDataTable();
  419. base.Tables.Add(this.tableСмены);
  420. this.tableСотрудники = new СотрудникиDataTable();
  421. base.Tables.Add(this.tableСотрудники);
  422. this.tableСтатусыЗаказа = new СтатусыЗаказаDataTable();
  423. base.Tables.Add(this.tableСтатусыЗаказа);
  424. this.tableСтатусыСотрудников = new СтатусыСотрудниковDataTable();
  425. base.Tables.Add(this.tableСтатусыСотрудников);
  426. this.relationFK_ЗаказаныеБН_БлюдаНапитки = new global::System.Data.DataRelation("FK_ЗаказаныеБН_БлюдаНапитки", new global::System.Data.DataColumn[] {
  427. this.tableБлюдаНапитки.IDColumn}, new global::System.Data.DataColumn[] {
  428. this.tableЗаказаныеБН.ЗаказаноеБНColumn}, false);
  429. this.Relations.Add(this.relationFK_ЗаказаныеБН_БлюдаНапитки);
  430. this.relationFK_ЗаказаныеБН_Заказы1 = new global::System.Data.DataRelation("FK_ЗаказаныеБН_Заказы1", new global::System.Data.DataColumn[] {
  431. this.tableЗаказы.IDColumn}, new global::System.Data.DataColumn[] {
  432. this.tableЗаказаныеБН.ЗаказColumn}, false);
  433. this.Relations.Add(this.relationFK_ЗаказаныеБН_Заказы1);
  434. this.relationFK_Заказы_СтатусыЗаказа = new global::System.Data.DataRelation("FK_Заказы_СтатусыЗаказа", new global::System.Data.DataColumn[] {
  435. this.tableСтатусыЗаказа.IDColumn}, new global::System.Data.DataColumn[] {
  436. this.tableЗаказы.СтатусColumn}, false);
  437. this.Relations.Add(this.relationFK_Заказы_СтатусыЗаказа);
  438. this.relationFK_Смены_Официанты = new global::System.Data.DataRelation("FK_Смены_Официанты", new global::System.Data.DataColumn[] {
  439. this.tableОфицианты.IDColumn}, new global::System.Data.DataColumn[] {
  440. this.tableСмены.ОфициантColumn}, false);
  441. this.Relations.Add(this.relationFK_Смены_Официанты);
  442. this.relationFK_Смены_Повара = new global::System.Data.DataRelation("FK_Смены_Повара", new global::System.Data.DataColumn[] {
  443. this.tableПовара.IDColumn}, new global::System.Data.DataColumn[] {
  444. this.tableСмены.ПоварColumn}, false);
  445. this.Relations.Add(this.relationFK_Смены_Повара);
  446. this.relationFK_Сотрудники_Официанты = new global::System.Data.DataRelation("FK_Сотрудники_Официанты", new global::System.Data.DataColumn[] {
  447. this.tableОфицианты.IDColumn}, new global::System.Data.DataColumn[] {
  448. this.tableСотрудники.IDColumn}, false);
  449. this.Relations.Add(this.relationFK_Сотрудники_Официанты);
  450. this.relationFK_Сотрудники_Повара = new global::System.Data.DataRelation("FK_Сотрудники_Повара", new global::System.Data.DataColumn[] {
  451. this.tableПовара.IDColumn}, new global::System.Data.DataColumn[] {
  452. this.tableСотрудники.IDColumn}, false);
  453. this.Relations.Add(this.relationFK_Сотрудники_Повара);
  454. this.relationFK_Сотрудники_Роли = new global::System.Data.DataRelation("FK_Сотрудники_Роли", new global::System.Data.DataColumn[] {
  455. this.tableРоли.IDColumn}, new global::System.Data.DataColumn[] {
  456. this.tableСотрудники.РольColumn}, false);
  457. this.Relations.Add(this.relationFK_Сотрудники_Роли);
  458. this.relationFK_Сотрудники_СтатусыСотрудников = new global::System.Data.DataRelation("FK_Сотрудники_СтатусыСотрудников", new global::System.Data.DataColumn[] {
  459. this.tableСтатусыСотрудников.IDColumn}, new global::System.Data.DataColumn[] {
  460. this.tableСотрудники.СтатусColumn}, false);
  461. this.Relations.Add(this.relationFK_Сотрудники_СтатусыСотрудников);
  462. this.relationFK_Официанты_Сотрудники = new global::System.Data.DataRelation("FK_Официанты_Сотрудники", new global::System.Data.DataColumn[] {
  463. this.tableСотрудники.IDColumn}, new global::System.Data.DataColumn[] {
  464. this.tableОфицианты.ID_СотрудникаColumn}, false);
  465. this.Relations.Add(this.relationFK_Официанты_Сотрудники);
  466. this.relationFK_Повара_Сотрудники = new global::System.Data.DataRelation("FK_Повара_Сотрудники", new global::System.Data.DataColumn[] {
  467. this.tableСотрудники.IDColumn}, new global::System.Data.DataColumn[] {
  468. this.tableПовара.ID_СотрудникаColumn}, false);
  469. this.Relations.Add(this.relationFK_Повара_Сотрудники);
  470. }
  471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  473. private bool ShouldSerializeБлюдаНапитки() {
  474. return false;
  475. }
  476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  478. private bool ShouldSerializeЗаказаныеБН() {
  479. return false;
  480. }
  481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  483. private bool ShouldSerializeЗаказы() {
  484. return false;
  485. }
  486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  488. private bool ShouldSerializeОфицианты() {
  489. return false;
  490. }
  491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  493. private bool ShouldSerializeПовара() {
  494. return false;
  495. }
  496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  498. private bool ShouldSerializeРоли() {
  499. return false;
  500. }
  501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  503. private bool ShouldSerializeСмены() {
  504. return false;
  505. }
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  508. private bool ShouldSerializeСотрудники() {
  509. return false;
  510. }
  511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  513. private bool ShouldSerializeСтатусыЗаказа() {
  514. return false;
  515. }
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  518. private bool ShouldSerializeСтатусыСотрудников() {
  519. return false;
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  523. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  524. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  525. this.InitVars();
  526. }
  527. }
  528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  530. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  531. ОООКафе_ЛорийDataSet ds = new ОООКафе_ЛорийDataSet();
  532. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  533. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  534. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  535. any.Namespace = ds.Namespace;
  536. sequence.Items.Add(any);
  537. type.Particle = sequence;
  538. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  539. if (xs.Contains(dsSchema.TargetNamespace)) {
  540. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  541. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  542. try {
  543. global::System.Xml.Schema.XmlSchema schema = null;
  544. dsSchema.Write(s1);
  545. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  546. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  547. s2.SetLength(0);
  548. schema.Write(s2);
  549. if ((s1.Length == s2.Length)) {
  550. s1.Position = 0;
  551. s2.Position = 0;
  552. for (; ((s1.Position != s1.Length)
  553. && (s1.ReadByte() == s2.ReadByte())); ) {
  554. ;
  555. }
  556. if ((s1.Position == s1.Length)) {
  557. return type;
  558. }
  559. }
  560. }
  561. }
  562. finally {
  563. if ((s1 != null)) {
  564. s1.Close();
  565. }
  566. if ((s2 != null)) {
  567. s2.Close();
  568. }
  569. }
  570. }
  571. xs.Add(dsSchema);
  572. return type;
  573. }
  574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  575. public delegate void БлюдаНапиткиRowChangeEventHandler(object sender, БлюдаНапиткиRowChangeEvent e);
  576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  577. public delegate void ЗаказаныеБНRowChangeEventHandler(object sender, ЗаказаныеБНRowChangeEvent e);
  578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  579. public delegate void ЗаказыRowChangeEventHandler(object sender, ЗаказыRowChangeEvent e);
  580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  581. public delegate void ОфициантыRowChangeEventHandler(object sender, ОфициантыRowChangeEvent e);
  582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  583. public delegate void ПовараRowChangeEventHandler(object sender, ПовараRowChangeEvent e);
  584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  585. public delegate void РолиRowChangeEventHandler(object sender, РолиRowChangeEvent e);
  586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  587. public delegate void СменыRowChangeEventHandler(object sender, СменыRowChangeEvent e);
  588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  589. public delegate void СотрудникиRowChangeEventHandler(object sender, СотрудникиRowChangeEvent e);
  590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  591. public delegate void СтатусыЗаказаRowChangeEventHandler(object sender, СтатусыЗаказаRowChangeEvent e);
  592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  593. public delegate void СтатусыСотрудниковRowChangeEventHandler(object sender, СтатусыСотрудниковRowChangeEvent e);
  594. /// <summary>
  595. ///Represents the strongly named DataTable class.
  596. ///</summary>
  597. [global::System.Serializable()]
  598. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  599. public partial class БлюдаНапиткиDataTable : global::System.Data.TypedTableBase<БлюдаНапиткиRow> {
  600. private global::System.Data.DataColumn columnID;
  601. private global::System.Data.DataColumn columnНазвание_Б_Н;
  602. private global::System.Data.DataColumn columnЦена;
  603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  605. public БлюдаНапиткиDataTable() {
  606. this.TableName = "БлюдаНапитки";
  607. this.BeginInit();
  608. this.InitClass();
  609. this.EndInit();
  610. }
  611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  613. internal БлюдаНапиткиDataTable(global::System.Data.DataTable table) {
  614. this.TableName = table.TableName;
  615. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  616. this.CaseSensitive = table.CaseSensitive;
  617. }
  618. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  619. this.Locale = table.Locale;
  620. }
  621. if ((table.Namespace != table.DataSet.Namespace)) {
  622. this.Namespace = table.Namespace;
  623. }
  624. this.Prefix = table.Prefix;
  625. this.MinimumCapacity = table.MinimumCapacity;
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. protected БлюдаНапиткиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  630. base(info, context) {
  631. this.InitVars();
  632. }
  633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  635. public global::System.Data.DataColumn IDColumn {
  636. get {
  637. return this.columnID;
  638. }
  639. }
  640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  642. public global::System.Data.DataColumn Название_Б_НColumn {
  643. get {
  644. return this.columnНазвание_Б_Н;
  645. }
  646. }
  647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  649. public global::System.Data.DataColumn ЦенаColumn {
  650. get {
  651. return this.columnЦена;
  652. }
  653. }
  654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  656. [global::System.ComponentModel.Browsable(false)]
  657. public int Count {
  658. get {
  659. return this.Rows.Count;
  660. }
  661. }
  662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  664. public БлюдаНапиткиRow this[int index] {
  665. get {
  666. return ((БлюдаНапиткиRow)(this.Rows[index]));
  667. }
  668. }
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  670. public event БлюдаНапиткиRowChangeEventHandler БлюдаНапиткиRowChanging;
  671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  672. public event БлюдаНапиткиRowChangeEventHandler БлюдаНапиткиRowChanged;
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  674. public event БлюдаНапиткиRowChangeEventHandler БлюдаНапиткиRowDeleting;
  675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  676. public event БлюдаНапиткиRowChangeEventHandler БлюдаНапиткиRowDeleted;
  677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  679. public void AddБлюдаНапиткиRow(БлюдаНапиткиRow row) {
  680. this.Rows.Add(row);
  681. }
  682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  684. public БлюдаНапиткиRow AddБлюдаНапиткиRow(string Название_Б_Н, decimal Цена) {
  685. БлюдаНапиткиRow rowБлюдаНапиткиRow = ((БлюдаНапиткиRow)(this.NewRow()));
  686. object[] columnValuesArray = new object[] {
  687. null,
  688. Название_Б_Н,
  689. Цена};
  690. rowБлюдаНапиткиRow.ItemArray = columnValuesArray;
  691. this.Rows.Add(rowБлюдаНапиткиRow);
  692. return rowБлюдаНапиткиRow;
  693. }
  694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  696. public БлюдаНапиткиRow FindByID(long ID) {
  697. return ((БлюдаНапиткиRow)(this.Rows.Find(new object[] {
  698. ID})));
  699. }
  700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  702. public override global::System.Data.DataTable Clone() {
  703. БлюдаНапиткиDataTable cln = ((БлюдаНапиткиDataTable)(base.Clone()));
  704. cln.InitVars();
  705. return cln;
  706. }
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. protected override global::System.Data.DataTable CreateInstance() {
  710. return new БлюдаНапиткиDataTable();
  711. }
  712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  714. internal void InitVars() {
  715. this.columnID = base.Columns["ID"];
  716. this.columnНазвание_Б_Н = base.Columns["Название_Б_Н"];
  717. this.columnЦена = base.Columns["Цена"];
  718. }
  719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  721. private void InitClass() {
  722. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  723. base.Columns.Add(this.columnID);
  724. this.columnНазвание_Б_Н = new global::System.Data.DataColumn("Название_Б_Н", typeof(string), null, global::System.Data.MappingType.Element);
  725. base.Columns.Add(this.columnНазвание_Б_Н);
  726. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  727. base.Columns.Add(this.columnЦена);
  728. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  729. this.columnID}, true));
  730. this.columnID.AutoIncrement = true;
  731. this.columnID.AutoIncrementSeed = -1;
  732. this.columnID.AutoIncrementStep = -1;
  733. this.columnID.AllowDBNull = false;
  734. this.columnID.ReadOnly = true;
  735. this.columnID.Unique = true;
  736. this.columnНазвание_Б_Н.MaxLength = 40;
  737. }
  738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  740. public БлюдаНапиткиRow NewБлюдаНапиткиRow() {
  741. return ((БлюдаНапиткиRow)(this.NewRow()));
  742. }
  743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  745. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  746. return new БлюдаНапиткиRow(builder);
  747. }
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  750. protected override global::System.Type GetRowType() {
  751. return typeof(БлюдаНапиткиRow);
  752. }
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  755. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  756. base.OnRowChanged(e);
  757. if ((this.БлюдаНапиткиRowChanged != null)) {
  758. this.БлюдаНапиткиRowChanged(this, new БлюдаНапиткиRowChangeEvent(((БлюдаНапиткиRow)(e.Row)), e.Action));
  759. }
  760. }
  761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  763. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  764. base.OnRowChanging(e);
  765. if ((this.БлюдаНапиткиRowChanging != null)) {
  766. this.БлюдаНапиткиRowChanging(this, new БлюдаНапиткиRowChangeEvent(((БлюдаНапиткиRow)(e.Row)), e.Action));
  767. }
  768. }
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  772. base.OnRowDeleted(e);
  773. if ((this.БлюдаНапиткиRowDeleted != null)) {
  774. this.БлюдаНапиткиRowDeleted(this, new БлюдаНапиткиRowChangeEvent(((БлюдаНапиткиRow)(e.Row)), e.Action));
  775. }
  776. }
  777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  779. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  780. base.OnRowDeleting(e);
  781. if ((this.БлюдаНапиткиRowDeleting != null)) {
  782. this.БлюдаНапиткиRowDeleting(this, new БлюдаНапиткиRowChangeEvent(((БлюдаНапиткиRow)(e.Row)), e.Action));
  783. }
  784. }
  785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  787. public void RemoveБлюдаНапиткиRow(БлюдаНапиткиRow row) {
  788. this.Rows.Remove(row);
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  793. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  794. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  795. ОООКафе_ЛорийDataSet ds = new ОООКафе_ЛорийDataSet();
  796. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  797. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  798. any1.MinOccurs = new decimal(0);
  799. any1.MaxOccurs = decimal.MaxValue;
  800. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  801. sequence.Items.Add(any1);
  802. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  803. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  804. any2.MinOccurs = new decimal(1);
  805. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  806. sequence.Items.Add(any2);
  807. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  808. attribute1.Name = "namespace";
  809. attribute1.FixedValue = ds.Namespace;
  810. type.Attributes.Add(attribute1);
  811. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  812. attribute2.Name = "tableTypeName";
  813. attribute2.FixedValue = "БлюдаНапиткиDataTable";
  814. type.Attributes.Add(attribute2);
  815. type.Particle = sequence;
  816. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  817. if (xs.Contains(dsSchema.TargetNamespace)) {
  818. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  819. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  820. try {
  821. global::System.Xml.Schema.XmlSchema schema = null;
  822. dsSchema.Write(s1);
  823. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  824. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  825. s2.SetLength(0);
  826. schema.Write(s2);
  827. if ((s1.Length == s2.Length)) {
  828. s1.Position = 0;
  829. s2.Position = 0;
  830. for (; ((s1.Position != s1.Length)
  831. && (s1.ReadByte() == s2.ReadByte())); ) {
  832. ;
  833. }
  834. if ((s1.Position == s1.Length)) {
  835. return type;
  836. }
  837. }
  838. }
  839. }
  840. finally {
  841. if ((s1 != null)) {
  842. s1.Close();
  843. }
  844. if ((s2 != null)) {
  845. s2.Close();
  846. }
  847. }
  848. }
  849. xs.Add(dsSchema);
  850. return type;
  851. }
  852. }
  853. /// <summary>
  854. ///Represents the strongly named DataTable class.
  855. ///</summary>
  856. [global::System.Serializable()]
  857. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  858. public partial class ЗаказаныеБНDataTable : global::System.Data.TypedTableBase<ЗаказаныеБНRow> {
  859. private global::System.Data.DataColumn columnID;
  860. private global::System.Data.DataColumn columnЗаказ;
  861. private global::System.Data.DataColumn columnЗаказаноеБН;
  862. private global::System.Data.DataColumn columnЦена;
  863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  865. public ЗаказаныеБНDataTable() {
  866. this.TableName = "ЗаказаныеБН";
  867. this.BeginInit();
  868. this.InitClass();
  869. this.EndInit();
  870. }
  871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  873. internal ЗаказаныеБНDataTable(global::System.Data.DataTable table) {
  874. this.TableName = table.TableName;
  875. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  876. this.CaseSensitive = table.CaseSensitive;
  877. }
  878. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  879. this.Locale = table.Locale;
  880. }
  881. if ((table.Namespace != table.DataSet.Namespace)) {
  882. this.Namespace = table.Namespace;
  883. }
  884. this.Prefix = table.Prefix;
  885. this.MinimumCapacity = table.MinimumCapacity;
  886. }
  887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  889. protected ЗаказаныеБНDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  890. base(info, context) {
  891. this.InitVars();
  892. }
  893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  895. public global::System.Data.DataColumn IDColumn {
  896. get {
  897. return this.columnID;
  898. }
  899. }
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  902. public global::System.Data.DataColumn ЗаказColumn {
  903. get {
  904. return this.columnЗаказ;
  905. }
  906. }
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  909. public global::System.Data.DataColumn ЗаказаноеБНColumn {
  910. get {
  911. return this.columnЗаказаноеБН;
  912. }
  913. }
  914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  916. public global::System.Data.DataColumn ЦенаColumn {
  917. get {
  918. return this.columnЦена;
  919. }
  920. }
  921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  923. [global::System.ComponentModel.Browsable(false)]
  924. public int Count {
  925. get {
  926. return this.Rows.Count;
  927. }
  928. }
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  931. public ЗаказаныеБНRow this[int index] {
  932. get {
  933. return ((ЗаказаныеБНRow)(this.Rows[index]));
  934. }
  935. }
  936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  937. public event ЗаказаныеБНRowChangeEventHandler ЗаказаныеБНRowChanging;
  938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  939. public event ЗаказаныеБНRowChangeEventHandler ЗаказаныеБНRowChanged;
  940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  941. public event ЗаказаныеБНRowChangeEventHandler ЗаказаныеБНRowDeleting;
  942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  943. public event ЗаказаныеБНRowChangeEventHandler ЗаказаныеБНRowDeleted;
  944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  946. public void AddЗаказаныеБНRow(ЗаказаныеБНRow row) {
  947. this.Rows.Add(row);
  948. }
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  951. public ЗаказаныеБНRow AddЗаказаныеБНRow(ЗаказыRow parentЗаказыRowByFK_ЗаказаныеБН_Заказы1, БлюдаНапиткиRow parentБлюдаНапиткиRowByFK_ЗаказаныеБН_БлюдаНапитки, decimal Цена) {
  952. ЗаказаныеБНRow rowЗаказаныеБНRow = ((ЗаказаныеБНRow)(this.NewRow()));
  953. object[] columnValuesArray = new object[] {
  954. null,
  955. null,
  956. null,
  957. Цена};
  958. if ((parentЗаказыRowByFK_ЗаказаныеБН_Заказы1 != null)) {
  959. columnValuesArray[1] = parentЗаказыRowByFK_ЗаказаныеБН_Заказы1[0];
  960. }
  961. if ((parentБлюдаНапиткиRowByFK_ЗаказаныеБН_БлюдаНапитки != null)) {
  962. columnValuesArray[2] = parentБлюдаНапиткиRowByFK_ЗаказаныеБН_БлюдаНапитки[0];
  963. }
  964. rowЗаказаныеБНRow.ItemArray = columnValuesArray;
  965. this.Rows.Add(rowЗаказаныеБНRow);
  966. return rowЗаказаныеБНRow;
  967. }
  968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  970. public ЗаказаныеБНRow FindByID(long ID) {
  971. return ((ЗаказаныеБНRow)(this.Rows.Find(new object[] {
  972. ID})));
  973. }
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  976. public override global::System.Data.DataTable Clone() {
  977. ЗаказаныеБНDataTable cln = ((ЗаказаныеБНDataTable)(base.Clone()));
  978. cln.InitVars();
  979. return cln;
  980. }
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  983. protected override global::System.Data.DataTable CreateInstance() {
  984. return new ЗаказаныеБНDataTable();
  985. }
  986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  988. internal void InitVars() {
  989. this.columnID = base.Columns["ID"];
  990. this.columnЗаказ = base.Columns["Заказ"];
  991. this.columnЗаказаноеБН = base.Columns["ЗаказаноеБН"];
  992. this.columnЦена = base.Columns["Цена"];
  993. }
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  996. private void InitClass() {
  997. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  998. base.Columns.Add(this.columnID);
  999. this.columnЗаказ = new global::System.Data.DataColumn("Заказ", typeof(long), null, global::System.Data.MappingType.Element);
  1000. base.Columns.Add(this.columnЗаказ);
  1001. this.columnЗаказаноеБН = new global::System.Data.DataColumn("ЗаказаноеБН", typeof(long), null, global::System.Data.MappingType.Element);
  1002. base.Columns.Add(this.columnЗаказаноеБН);
  1003. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  1004. base.Columns.Add(this.columnЦена);
  1005. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1006. this.columnID}, true));
  1007. this.columnID.AutoIncrement = true;
  1008. this.columnID.AutoIncrementSeed = -1;
  1009. this.columnID.AutoIncrementStep = -1;
  1010. this.columnID.AllowDBNull = false;
  1011. this.columnID.ReadOnly = true;
  1012. this.columnID.Unique = true;
  1013. }
  1014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1016. public ЗаказаныеБНRow NewЗаказаныеБНRow() {
  1017. return ((ЗаказаныеБНRow)(this.NewRow()));
  1018. }
  1019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1021. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1022. return new ЗаказаныеБНRow(builder);
  1023. }
  1024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1026. protected override global::System.Type GetRowType() {
  1027. return typeof(ЗаказаныеБНRow);
  1028. }
  1029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1031. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1032. base.OnRowChanged(e);
  1033. if ((this.ЗаказаныеБНRowChanged != null)) {
  1034. this.ЗаказаныеБНRowChanged(this, new ЗаказаныеБНRowChangeEvent(((ЗаказаныеБНRow)(e.Row)), e.Action));
  1035. }
  1036. }
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1039. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1040. base.OnRowChanging(e);
  1041. if ((this.ЗаказаныеБНRowChanging != null)) {
  1042. this.ЗаказаныеБНRowChanging(this, new ЗаказаныеБНRowChangeEvent(((ЗаказаныеБНRow)(e.Row)), e.Action));
  1043. }
  1044. }
  1045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1047. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1048. base.OnRowDeleted(e);
  1049. if ((this.ЗаказаныеБНRowDeleted != null)) {
  1050. this.ЗаказаныеБНRowDeleted(this, new ЗаказаныеБНRowChangeEvent(((ЗаказаныеБНRow)(e.Row)), e.Action));
  1051. }
  1052. }
  1053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1055. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1056. base.OnRowDeleting(e);
  1057. if ((this.ЗаказаныеБНRowDeleting != null)) {
  1058. this.ЗаказаныеБНRowDeleting(this, new ЗаказаныеБНRowChangeEvent(((ЗаказаныеБНRow)(e.Row)), e.Action));
  1059. }
  1060. }
  1061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1063. public void RemoveЗаказаныеБНRow(ЗаказаныеБНRow row) {
  1064. this.Rows.Remove(row);
  1065. }
  1066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1068. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1069. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1070. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1071. ОООКафе_ЛорийDataSet ds = new ОООКафе_ЛорийDataSet();
  1072. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1073. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1074. any1.MinOccurs = new decimal(0);
  1075. any1.MaxOccurs = decimal.MaxValue;
  1076. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1077. sequence.Items.Add(any1);
  1078. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1079. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1080. any2.MinOccurs = new decimal(1);
  1081. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1082. sequence.Items.Add(any2);
  1083. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1084. attribute1.Name = "namespace";
  1085. attribute1.FixedValue = ds.Namespace;
  1086. type.Attributes.Add(attribute1);
  1087. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1088. attribute2.Name = "tableTypeName";
  1089. attribute2.FixedValue = "ЗаказаныеБНDataTable";
  1090. type.Attributes.Add(attribute2);
  1091. type.Particle = sequence;
  1092. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1093. if (xs.Contains(dsSchema.TargetNamespace)) {
  1094. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1095. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1096. try {
  1097. global::System.Xml.Schema.XmlSchema schema = null;
  1098. dsSchema.Write(s1);
  1099. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1100. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1101. s2.SetLength(0);
  1102. schema.Write(s2);
  1103. if ((s1.Length == s2.Length)) {
  1104. s1.Position = 0;
  1105. s2.Position = 0;
  1106. for (; ((s1.Position != s1.Length)
  1107. && (s1.ReadByte() == s2.ReadByte())); ) {
  1108. ;
  1109. }
  1110. if ((s1.Position == s1.Length)) {
  1111. return type;
  1112. }
  1113. }
  1114. }
  1115. }
  1116. finally {
  1117. if ((s1 != null)) {
  1118. s1.Close();
  1119. }
  1120. if ((s2 != null)) {
  1121. s2.Close();
  1122. }
  1123. }
  1124. }
  1125. xs.Add(dsSchema);
  1126. return type;
  1127. }
  1128. }
  1129. /// <summary>
  1130. ///Represents the strongly named DataTable class.
  1131. ///</summary>
  1132. [global::System.Serializable()]
  1133. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1134. public partial class ЗаказыDataTable : global::System.Data.TypedTableBase<ЗаказыRow> {
  1135. private global::System.Data.DataColumn columnID;
  1136. private global::System.Data.DataColumn columnДата;
  1137. private global::System.Data.DataColumn columnСтолик;
  1138. private global::System.Data.DataColumn columnКолвоКлиентов;
  1139. private global::System.Data.DataColumn columnЦена;
  1140. private global::System.Data.DataColumn columnСтатус;
  1141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1143. public ЗаказыDataTable() {
  1144. this.TableName = "Заказы";
  1145. this.BeginInit();
  1146. this.InitClass();
  1147. this.EndInit();
  1148. }
  1149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1151. internal ЗаказыDataTable(global::System.Data.DataTable table) {
  1152. this.TableName = table.TableName;
  1153. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1154. this.CaseSensitive = table.CaseSensitive;
  1155. }
  1156. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1157. this.Locale = table.Locale;
  1158. }
  1159. if ((table.Namespace != table.DataSet.Namespace)) {
  1160. this.Namespace = table.Namespace;
  1161. }
  1162. this.Prefix = table.Prefix;
  1163. this.MinimumCapacity = table.MinimumCapacity;
  1164. }
  1165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1167. protected ЗаказыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1168. base(info, context) {
  1169. this.InitVars();
  1170. }
  1171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1173. public global::System.Data.DataColumn IDColumn {
  1174. get {
  1175. return this.columnID;
  1176. }
  1177. }
  1178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1180. public global::System.Data.DataColumn ДатаColumn {
  1181. get {
  1182. return this.columnДата;
  1183. }
  1184. }
  1185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1187. public global::System.Data.DataColumn СтоликColumn {
  1188. get {
  1189. return this.columnСтолик;
  1190. }
  1191. }
  1192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1194. public global::System.Data.DataColumn КолвоКлиентовColumn {
  1195. get {
  1196. return this.columnКолвоКлиентов;
  1197. }
  1198. }
  1199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1201. public global::System.Data.DataColumn ЦенаColumn {
  1202. get {
  1203. return this.columnЦена;
  1204. }
  1205. }
  1206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1208. public global::System.Data.DataColumn СтатусColumn {
  1209. get {
  1210. return this.columnСтатус;
  1211. }
  1212. }
  1213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1215. [global::System.ComponentModel.Browsable(false)]
  1216. public int Count {
  1217. get {
  1218. return this.Rows.Count;
  1219. }
  1220. }
  1221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1223. public ЗаказыRow this[int index] {
  1224. get {
  1225. return ((ЗаказыRow)(this.Rows[index]));
  1226. }
  1227. }
  1228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1229. public event ЗаказыRowChangeEventHandler ЗаказыRowChanging;
  1230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1231. public event ЗаказыRowChangeEventHandler ЗаказыRowChanged;
  1232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1233. public event ЗаказыRowChangeEventHandler ЗаказыRowDeleting;
  1234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1235. public event ЗаказыRowChangeEventHandler ЗаказыRowDeleted;
  1236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1238. public void AddЗаказыRow(ЗаказыRow row) {
  1239. this.Rows.Add(row);
  1240. }
  1241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1243. public ЗаказыRow AddЗаказыRow(System.DateTime Дата, int Столик, int КолвоКлиентов, decimal Цена, СтатусыЗаказаRow parentСтатусыЗаказаRowByFK_Заказы_СтатусыЗаказа) {
  1244. ЗаказыRow rowЗаказыRow = ((ЗаказыRow)(this.NewRow()));
  1245. object[] columnValuesArray = new object[] {
  1246. null,
  1247. Дата,
  1248. Столик,
  1249. КолвоКлиентов,
  1250. Цена,
  1251. null};
  1252. if ((parentСтатусыЗаказаRowByFK_Заказы_СтатусыЗаказа != null)) {
  1253. columnValuesArray[5] = parentСтатусыЗаказаRowByFK_Заказы_СтатусыЗаказа[0];
  1254. }
  1255. rowЗаказыRow.ItemArray = columnValuesArray;
  1256. this.Rows.Add(rowЗаказыRow);
  1257. return rowЗаказыRow;
  1258. }
  1259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1261. public ЗаказыRow FindByID(long ID) {
  1262. return ((ЗаказыRow)(this.Rows.Find(new object[] {
  1263. ID})));
  1264. }
  1265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1267. public override global::System.Data.DataTable Clone() {
  1268. ЗаказыDataTable cln = ((ЗаказыDataTable)(base.Clone()));
  1269. cln.InitVars();
  1270. return cln;
  1271. }
  1272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1274. protected override global::System.Data.DataTable CreateInstance() {
  1275. return new ЗаказыDataTable();
  1276. }
  1277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1279. internal void InitVars() {
  1280. this.columnID = base.Columns["ID"];
  1281. this.columnДата = base.Columns["Дата"];
  1282. this.columnСтолик = base.Columns["Столик"];
  1283. this.columnКолвоКлиентов = base.Columns["КолвоКлиентов"];
  1284. this.columnЦена = base.Columns["Цена"];
  1285. this.columnСтатус = base.Columns["Статус"];
  1286. }
  1287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1289. private void InitClass() {
  1290. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  1291. base.Columns.Add(this.columnID);
  1292. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1293. base.Columns.Add(this.columnДата);
  1294. this.columnСтолик = new global::System.Data.DataColumn("Столик", typeof(int), null, global::System.Data.MappingType.Element);
  1295. base.Columns.Add(this.columnСтолик);
  1296. this.columnКолвоКлиентов = new global::System.Data.DataColumn("КолвоКлиентов", typeof(int), null, global::System.Data.MappingType.Element);
  1297. base.Columns.Add(this.columnКолвоКлиентов);
  1298. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  1299. base.Columns.Add(this.columnЦена);
  1300. this.columnСтатус = new global::System.Data.DataColumn("Статус", typeof(long), null, global::System.Data.MappingType.Element);
  1301. base.Columns.Add(this.columnСтатус);
  1302. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1303. this.columnID}, true));
  1304. this.columnID.AutoIncrement = true;
  1305. this.columnID.AutoIncrementSeed = -1;
  1306. this.columnID.AutoIncrementStep = -1;
  1307. this.columnID.AllowDBNull = false;
  1308. this.columnID.ReadOnly = true;
  1309. this.columnID.Unique = true;
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1313. public ЗаказыRow NewЗаказыRow() {
  1314. return ((ЗаказыRow)(this.NewRow()));
  1315. }
  1316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1318. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1319. return new ЗаказыRow(builder);
  1320. }
  1321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1323. protected override global::System.Type GetRowType() {
  1324. return typeof(ЗаказыRow);
  1325. }
  1326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1328. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1329. base.OnRowChanged(e);
  1330. if ((this.ЗаказыRowChanged != null)) {
  1331. this.ЗаказыRowChanged(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1332. }
  1333. }
  1334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1336. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1337. base.OnRowChanging(e);
  1338. if ((this.ЗаказыRowChanging != null)) {
  1339. this.ЗаказыRowChanging(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1340. }
  1341. }
  1342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1344. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1345. base.OnRowDeleted(e);
  1346. if ((this.ЗаказыRowDeleted != null)) {
  1347. this.ЗаказыRowDeleted(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1348. }
  1349. }
  1350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1352. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1353. base.OnRowDeleting(e);
  1354. if ((this.ЗаказыRowDeleting != null)) {
  1355. this.ЗаказыRowDeleting(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1356. }
  1357. }
  1358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1360. public void RemoveЗаказыRow(ЗаказыRow row) {
  1361. this.Rows.Remove(row);
  1362. }
  1363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1365. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1366. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1367. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1368. ОООКафе_ЛорийDataSet ds = new ОООКафе_ЛорийDataSet();
  1369. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1370. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1371. any1.MinOccurs = new decimal(0);
  1372. any1.MaxOccurs = decimal.MaxValue;
  1373. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1374. sequence.Items.Add(any1);
  1375. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1376. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1377. any2.MinOccurs = new decimal(1);
  1378. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1379. sequence.Items.Add(any2);
  1380. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1381. attribute1.Name = "namespace";
  1382. attribute1.FixedValue = ds.Namespace;
  1383. type.Attributes.Add(attribute1);
  1384. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1385. attribute2.Name = "tableTypeName";
  1386. attribute2.FixedValue = "ЗаказыDataTable";
  1387. type.Attributes.Add(attribute2);
  1388. type.Particle = sequence;
  1389. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1390. if (xs.Contains(dsSchema.TargetNamespace)) {
  1391. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1392. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1393. try {
  1394. global::System.Xml.Schema.XmlSchema schema = null;
  1395. dsSchema.Write(s1);
  1396. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1397. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1398. s2.SetLength(0);
  1399. schema.Write(s2);
  1400. if ((s1.Length == s2.Length)) {
  1401. s1.Position = 0;
  1402. s2.Position = 0;
  1403. for (; ((s1.Position != s1.Length)
  1404. && (s1.ReadByte() == s2.ReadByte())); ) {
  1405. ;
  1406. }
  1407. if ((s1.Position == s1.Length)) {
  1408. return type;
  1409. }
  1410. }
  1411. }
  1412. }
  1413. finally {
  1414. if ((s1 != null)) {
  1415. s1.Close();
  1416. }
  1417. if ((s2 != null)) {
  1418. s2.Close();
  1419. }
  1420. }
  1421. }
  1422. xs.Add(dsSchema);
  1423. return type;
  1424. }
  1425. }
  1426. /// <summary>
  1427. ///Represents the strongly named DataTable class.
  1428. ///</summary>
  1429. [global::System.Serializable()]
  1430. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1431. public partial class ОфициантыDataTable : global::System.Data.TypedTableBase<ОфициантыRow> {
  1432. private global::System.Data.DataColumn columnID;
  1433. private global::System.Data.DataColumn columnИмя;
  1434. private global::System.Data.DataColumn columnФамилия;
  1435. private global::System.Data.DataColumn columnID_Сотрудника;
  1436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1438. public ОфициантыDataTable() {
  1439. this.TableName = "Официанты";
  1440. this.BeginInit();
  1441. this.InitClass();
  1442. this.EndInit();
  1443. }
  1444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1446. internal ОфициантыDataTable(global::System.Data.DataTable table) {
  1447. this.TableName = table.TableName;
  1448. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1449. this.CaseSensitive = table.CaseSensitive;
  1450. }
  1451. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1452. this.Locale = table.Locale;
  1453. }
  1454. if ((table.Namespace != table.DataSet.Namespace)) {
  1455. this.Namespace = table.Namespace;
  1456. }
  1457. this.Prefix = table.Prefix;
  1458. this.MinimumCapacity = table.MinimumCapacity;
  1459. }
  1460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1462. protected ОфициантыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1463. base(info, context) {
  1464. this.InitVars();
  1465. }
  1466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1468. public global::System.Data.DataColumn IDColumn {
  1469. get {
  1470. return this.columnID;
  1471. }
  1472. }
  1473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1475. public global::System.Data.DataColumn ИмяColumn {
  1476. get {
  1477. return this.columnИмя;
  1478. }
  1479. }
  1480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1482. public global::System.Data.DataColumn ФамилияColumn {
  1483. get {
  1484. return this.columnФамилия;
  1485. }
  1486. }
  1487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1489. public global::System.Data.DataColumn ID_СотрудникаColumn {
  1490. get {
  1491. return this.columnID_Сотрудника;
  1492. }
  1493. }
  1494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1496. [global::System.ComponentModel.Browsable(false)]
  1497. public int Count {
  1498. get {
  1499. return this.Rows.Count;
  1500. }
  1501. }
  1502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1504. public ОфициантыRow this[int index] {
  1505. get {
  1506. return ((ОфициантыRow)(this.Rows[index]));
  1507. }
  1508. }
  1509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1510. public event ОфициантыRowChangeEventHandler ОфициантыRowChanging;
  1511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1512. public event ОфициантыRowChangeEventHandler ОфициантыRowChanged;
  1513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1514. public event ОфициантыRowChangeEventHandler ОфициантыRowDeleting;
  1515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1516. public event ОфициантыRowChangeEventHandler ОфициантыRowDeleted;
  1517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1519. public void AddОфициантыRow(ОфициантыRow row) {
  1520. this.Rows.Add(row);
  1521. }
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1524. public ОфициантыRow AddОфициантыRow(long ID, string Имя, string Фамилия, СотрудникиRow parentСотрудникиRowByFK_Официанты_Сотрудники) {
  1525. ОфициантыRow rowОфициантыRow = ((ОфициантыRow)(this.NewRow()));
  1526. object[] columnValuesArray = new object[] {
  1527. ID,
  1528. Имя,
  1529. Фамилия,
  1530. null};
  1531. if ((parentСотрудникиRowByFK_Официанты_Сотрудники != null)) {
  1532. columnValuesArray[3] = parentСотрудникиRowByFK_Официанты_Сотрудники[0];
  1533. }
  1534. rowОфициантыRow.ItemArray = columnValuesArray;
  1535. this.Rows.Add(rowОфициантыRow);
  1536. return rowОфициантыRow;
  1537. }
  1538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1540. public ОфициантыRow FindByID(long ID) {
  1541. return ((ОфициантыRow)(this.Rows.Find(new object[] {
  1542. ID})));
  1543. }
  1544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1546. public override global::System.Data.DataTable Clone() {
  1547. ОфициантыDataTable cln = ((ОфициантыDataTable)(base.Clone()));
  1548. cln.InitVars();
  1549. return cln;
  1550. }
  1551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1553. protected override global::System.Data.DataTable CreateInstance() {
  1554. return new ОфициантыDataTable();
  1555. }
  1556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1558. internal void InitVars() {
  1559. this.columnID = base.Columns["ID"];
  1560. this.columnИмя = base.Columns["Имя"];
  1561. this.columnФамилия = base.Columns["Фамилия"];
  1562. this.columnID_Сотрудника = base.Columns["ID_Сотрудника"];
  1563. }
  1564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1566. private void InitClass() {
  1567. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  1568. base.Columns.Add(this.columnID);
  1569. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1570. base.Columns.Add(this.columnИмя);
  1571. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1572. base.Columns.Add(this.columnФамилия);
  1573. this.columnID_Сотрудника = new global::System.Data.DataColumn("ID_Сотрудника", typeof(long), null, global::System.Data.MappingType.Element);
  1574. base.Columns.Add(this.columnID_Сотрудника);
  1575. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1576. this.columnID}, true));
  1577. this.columnID.AllowDBNull = false;
  1578. this.columnID.Unique = true;
  1579. this.columnИмя.MaxLength = 20;
  1580. this.columnФамилия.MaxLength = 20;
  1581. }
  1582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1584. public ОфициантыRow NewОфициантыRow() {
  1585. return ((ОфициантыRow)(this.NewRow()));
  1586. }
  1587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1589. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1590. return new ОфициантыRow(builder);
  1591. }
  1592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1594. protected override global::System.Type GetRowType() {
  1595. return typeof(ОфициантыRow);
  1596. }
  1597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1599. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1600. base.OnRowChanged(e);
  1601. if ((this.ОфициантыRowChanged != null)) {
  1602. this.ОфициантыRowChanged(this, new ОфициантыRowChangeEvent(((ОфициантыRow)(e.Row)), e.Action));
  1603. }
  1604. }
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1607. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1608. base.OnRowChanging(e);
  1609. if ((this.ОфициантыRowChanging != null)) {
  1610. this.ОфициантыRowChanging(this, new ОфициантыRowChangeEvent(((ОфициантыRow)(e.Row)), e.Action));
  1611. }
  1612. }
  1613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1615. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1616. base.OnRowDeleted(e);
  1617. if ((this.ОфициантыRowDeleted != null)) {
  1618. this.ОфициантыRowDeleted(this, new ОфициантыRowChangeEvent(((ОфициантыRow)(e.Row)), e.Action));
  1619. }
  1620. }
  1621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1623. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1624. base.OnRowDeleting(e);
  1625. if ((this.ОфициантыRowDeleting != null)) {
  1626. this.ОфициантыRowDeleting(this, new ОфициантыRowChangeEvent(((ОфициантыRow)(e.Row)), e.Action));
  1627. }
  1628. }
  1629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1631. public void RemoveОфициантыRow(ОфициантыRow row) {
  1632. this.Rows.Remove(row);
  1633. }
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1636. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1637. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1638. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1639. ОООКафе_ЛорийDataSet ds = new ОООКафе_ЛорийDataSet();
  1640. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1641. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1642. any1.MinOccurs = new decimal(0);
  1643. any1.MaxOccurs = decimal.MaxValue;
  1644. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1645. sequence.Items.Add(any1);
  1646. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1647. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1648. any2.MinOccurs = new decimal(1);
  1649. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1650. sequence.Items.Add(any2);
  1651. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1652. attribute1.Name = "namespace";
  1653. attribute1.FixedValue = ds.Namespace;
  1654. type.Attributes.Add(attribute1);
  1655. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1656. attribute2.Name = "tableTypeName";
  1657. attribute2.FixedValue = "ОфициантыDataTable";
  1658. type.Attributes.Add(attribute2);
  1659. type.Particle = sequence;
  1660. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1661. if (xs.Contains(dsSchema.TargetNamespace)) {
  1662. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1663. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1664. try {
  1665. global::System.Xml.Schema.XmlSchema schema = null;
  1666. dsSchema.Write(s1);
  1667. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1668. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1669. s2.SetLength(0);
  1670. schema.Write(s2);
  1671. if ((s1.Length == s2.Length)) {
  1672. s1.Position = 0;
  1673. s2.Position = 0;
  1674. for (; ((s1.Position != s1.Length)
  1675. && (s1.ReadByte() == s2.ReadByte())); ) {
  1676. ;
  1677. }
  1678. if ((s1.Position == s1.Length)) {
  1679. return type;
  1680. }
  1681. }
  1682. }
  1683. }
  1684. finally {
  1685. if ((s1 != null)) {
  1686. s1.Close();
  1687. }
  1688. if ((s2 != null)) {
  1689. s2.Close();
  1690. }
  1691. }
  1692. }
  1693. xs.Add(dsSchema);
  1694. return type;
  1695. }
  1696. }
  1697. /// <summary>
  1698. ///Represents the strongly named DataTable class.
  1699. ///</summary>
  1700. [global::System.Serializable()]
  1701. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1702. public partial class ПовараDataTable : global::System.Data.TypedTableBase<ПовараRow> {
  1703. private global::System.Data.DataColumn columnID;
  1704. private global::System.Data.DataColumn columnФамилия;
  1705. private global::System.Data.DataColumn columnИмя;
  1706. private global::System.Data.DataColumn columnID_Сотрудника;
  1707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1709. public ПовараDataTable() {
  1710. this.TableName = "Повара";
  1711. this.BeginInit();
  1712. this.InitClass();
  1713. this.EndInit();
  1714. }
  1715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1717. internal ПовараDataTable(global::System.Data.DataTable table) {
  1718. this.TableName = table.TableName;
  1719. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1720. this.CaseSensitive = table.CaseSensitive;
  1721. }
  1722. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1723. this.Locale = table.Locale;
  1724. }
  1725. if ((table.Namespace != table.DataSet.Namespace)) {
  1726. this.Namespace = table.Namespace;
  1727. }
  1728. this.Prefix = table.Prefix;
  1729. this.MinimumCapacity = table.MinimumCapacity;
  1730. }
  1731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1733. protected ПовараDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1734. base(info, context) {
  1735. this.InitVars();
  1736. }
  1737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1739. public global::System.Data.DataColumn IDColumn {
  1740. get {
  1741. return this.columnID;
  1742. }
  1743. }
  1744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1746. public global::System.Data.DataColumn ФамилияColumn {
  1747. get {
  1748. return this.columnФамилия;
  1749. }
  1750. }
  1751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1753. public global::System.Data.DataColumn ИмяColumn {
  1754. get {
  1755. return this.columnИмя;
  1756. }
  1757. }
  1758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1760. public global::System.Data.DataColumn ID_СотрудникаColumn {
  1761. get {
  1762. return this.columnID_Сотрудника;
  1763. }
  1764. }
  1765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1767. [global::System.ComponentModel.Browsable(false)]
  1768. public int Count {
  1769. get {
  1770. return this.Rows.Count;
  1771. }
  1772. }
  1773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1775. public ПовараRow this[int index] {
  1776. get {
  1777. return ((ПовараRow)(this.Rows[index]));
  1778. }
  1779. }
  1780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1781. public event ПовараRowChangeEventHandler ПовараRowChanging;
  1782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1783. public event ПовараRowChangeEventHandler ПовараRowChanged;
  1784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1785. public event ПовараRowChangeEventHandler ПовараRowDeleting;
  1786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1787. public event ПовараRowChangeEventHandler ПовараRowDeleted;
  1788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1790. public void AddПовараRow(ПовараRow row) {
  1791. this.Rows.Add(row);
  1792. }
  1793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1795. public ПовараRow AddПовараRow(long ID, string Фамилия, string Имя, СотрудникиRow parentСотрудникиRowByFK_Повара_Сотрудники) {
  1796. ПовараRow rowПовараRow = ((ПовараRow)(this.NewRow()));
  1797. object[] columnValuesArray = new object[] {
  1798. ID,
  1799. Фамилия,
  1800. Имя,
  1801. null};
  1802. if ((parentСотрудникиRowByFK_Повара_Сотрудники != null)) {
  1803. columnValuesArray[3] = parentСотрудникиRowByFK_Повара_Сотрудники[0];
  1804. }
  1805. rowПовараRow.ItemArray = columnValuesArray;
  1806. this.Rows.Add(rowПовараRow);
  1807. return rowПовараRow;
  1808. }
  1809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1811. public ПовараRow FindByID(long ID) {
  1812. return ((ПовараRow)(this.Rows.Find(new object[] {
  1813. ID})));
  1814. }
  1815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1817. public override global::System.Data.DataTable Clone() {
  1818. ПовараDataTable cln = ((ПовараDataTable)(base.Clone()));
  1819. cln.InitVars();
  1820. return cln;
  1821. }
  1822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1824. protected override global::System.Data.DataTable CreateInstance() {
  1825. return new ПовараDataTable();
  1826. }
  1827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1829. internal void InitVars() {
  1830. this.columnID = base.Columns["ID"];
  1831. this.columnФамилия = base.Columns["Фамилия"];
  1832. this.columnИмя = base.Columns["Имя"];
  1833. this.columnID_Сотрудника = base.Columns["ID_Сотрудника"];
  1834. }
  1835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1837. private void InitClass() {
  1838. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  1839. base.Columns.Add(this.columnID);
  1840. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1841. base.Columns.Add(this.columnФамилия);
  1842. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1843. base.Columns.Add(this.columnИмя);
  1844. this.columnID_Сотрудника = new global::System.Data.DataColumn("ID_Сотрудника", typeof(long), null, global::System.Data.MappingType.Element);
  1845. base.Columns.Add(this.columnID_Сотрудника);
  1846. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1847. this.columnID}, true));
  1848. this.columnID.AllowDBNull = false;
  1849. this.columnID.Unique = true;
  1850. this.columnФамилия.MaxLength = 20;
  1851. this.columnИмя.MaxLength = 20;
  1852. }
  1853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1855. public ПовараRow NewПовараRow() {
  1856. return ((ПовараRow)(this.NewRow()));
  1857. }
  1858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1860. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1861. return new ПовараRow(builder);
  1862. }
  1863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1865. protected override global::System.Type GetRowType() {
  1866. return typeof(ПовараRow);
  1867. }
  1868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1870. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1871. base.OnRowChanged(e);
  1872. if ((this.ПовараRowChanged != null)) {
  1873. this.ПовараRowChanged(this, new ПовараRowChangeEvent(((ПовараRow)(e.Row)), e.Action));
  1874. }
  1875. }
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1878. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1879. base.OnRowChanging(e);
  1880. if ((this.ПовараRowChanging != null)) {
  1881. this.ПовараRowChanging(this, new ПовараRowChangeEvent(((ПовараRow)(e.Row)), e.Action));
  1882. }
  1883. }
  1884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1886. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1887. base.OnRowDeleted(e);
  1888. if ((this.ПовараRowDeleted != null)) {
  1889. this.ПовараRowDeleted(this, new ПовараRowChangeEvent(((ПовараRow)(e.Row)), e.Action));
  1890. }
  1891. }
  1892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1894. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1895. base.OnRowDeleting(e);
  1896. if ((this.ПовараRowDeleting != null)) {
  1897. this.ПовараRowDeleting(this, new ПовараRowChangeEvent(((ПовараRow)(e.Row)), e.Action));
  1898. }
  1899. }
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1902. public void RemoveПовараRow(ПовараRow row) {
  1903. this.Rows.Remove(row);
  1904. }
  1905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1907. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1908. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1909. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1910. ОООКафе_ЛорийDataSet ds = new ОООКафе_ЛорийDataSet();
  1911. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1912. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1913. any1.MinOccurs = new decimal(0);
  1914. any1.MaxOccurs = decimal.MaxValue;
  1915. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1916. sequence.Items.Add(any1);
  1917. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1918. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1919. any2.MinOccurs = new decimal(1);
  1920. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1921. sequence.Items.Add(any2);
  1922. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1923. attribute1.Name = "namespace";
  1924. attribute1.FixedValue = ds.Namespace;
  1925. type.Attributes.Add(attribute1);
  1926. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1927. attribute2.Name = "tableTypeName";
  1928. attribute2.FixedValue = "ПовараDataTable";
  1929. type.Attributes.Add(attribute2);
  1930. type.Particle = sequence;
  1931. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1932. if (xs.Contains(dsSchema.TargetNamespace)) {
  1933. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1934. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1935. try {
  1936. global::System.Xml.Schema.XmlSchema schema = null;
  1937. dsSchema.Write(s1);
  1938. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1939. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1940. s2.SetLength(0);
  1941. schema.Write(s2);
  1942. if ((s1.Length == s2.Length)) {
  1943. s1.Position = 0;
  1944. s2.Position = 0;
  1945. for (; ((s1.Position != s1.Length)
  1946. && (s1.ReadByte() == s2.ReadByte())); ) {
  1947. ;
  1948. }
  1949. if ((s1.Position == s1.Length)) {
  1950. return type;
  1951. }
  1952. }
  1953. }
  1954. }
  1955. finally {
  1956. if ((s1 != null)) {
  1957. s1.Close();
  1958. }
  1959. if ((s2 != null)) {
  1960. s2.Close();
  1961. }
  1962. }
  1963. }
  1964. xs.Add(dsSchema);
  1965. return type;
  1966. }
  1967. }
  1968. /// <summary>
  1969. ///Represents the strongly named DataTable class.
  1970. ///</summary>
  1971. [global::System.Serializable()]
  1972. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1973. public partial class РолиDataTable : global::System.Data.TypedTableBase<РолиRow> {
  1974. private global::System.Data.DataColumn columnID;
  1975. private global::System.Data.DataColumn columnНазвание_роли;
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1978. public РолиDataTable() {
  1979. this.TableName = "Роли";
  1980. this.BeginInit();
  1981. this.InitClass();
  1982. this.EndInit();
  1983. }
  1984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1986. internal РолиDataTable(global::System.Data.DataTable table) {
  1987. this.TableName = table.TableName;
  1988. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1989. this.CaseSensitive = table.CaseSensitive;
  1990. }
  1991. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1992. this.Locale = table.Locale;
  1993. }
  1994. if ((table.Namespace != table.DataSet.Namespace)) {
  1995. this.Namespace = table.Namespace;
  1996. }
  1997. this.Prefix = table.Prefix;
  1998. this.MinimumCapacity = table.MinimumCapacity;
  1999. }
  2000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2002. protected РолиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2003. base(info, context) {
  2004. this.InitVars();
  2005. }
  2006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2008. public global::System.Data.DataColumn IDColumn {
  2009. get {
  2010. return this.columnID;
  2011. }
  2012. }
  2013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2015. public global::System.Data.DataColumn Название_ролиColumn {
  2016. get {
  2017. return this.columnНазвание_роли;
  2018. }
  2019. }
  2020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2022. [global::System.ComponentModel.Browsable(false)]
  2023. public int Count {
  2024. get {
  2025. return this.Rows.Count;
  2026. }
  2027. }
  2028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2030. public РолиRow this[int index] {
  2031. get {
  2032. return ((РолиRow)(this.Rows[index]));
  2033. }
  2034. }
  2035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2036. public event РолиRowChangeEventHandler РолиRowChanging;
  2037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2038. public event РолиRowChangeEventHandler РолиRowChanged;
  2039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2040. public event РолиRowChangeEventHandler РолиRowDeleting;
  2041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2042. public event РолиRowChangeEventHandler РолиRowDeleted;
  2043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2045. public void AddРолиRow(РолиRow row) {
  2046. this.Rows.Add(row);
  2047. }
  2048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2050. public РолиRow AddРолиRow(string Название_роли) {
  2051. РолиRow rowРолиRow = ((РолиRow)(this.NewRow()));
  2052. object[] columnValuesArray = new object[] {
  2053. null,
  2054. Название_роли};
  2055. rowРолиRow.ItemArray = columnValuesArray;
  2056. this.Rows.Add(rowРолиRow);
  2057. return rowРолиRow;
  2058. }
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2061. public РолиRow FindByID(long ID) {
  2062. return ((РолиRow)(this.Rows.Find(new object[] {
  2063. ID})));
  2064. }
  2065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2067. public override global::System.Data.DataTable Clone() {
  2068. РолиDataTable cln = ((РолиDataTable)(base.Clone()));
  2069. cln.InitVars();
  2070. return cln;
  2071. }
  2072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2074. protected override global::System.Data.DataTable CreateInstance() {
  2075. return new РолиDataTable();
  2076. }
  2077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2079. internal void InitVars() {
  2080. this.columnID = base.Columns["ID"];
  2081. this.columnНазвание_роли = base.Columns["Название_роли"];
  2082. }
  2083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2085. private void InitClass() {
  2086. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  2087. base.Columns.Add(this.columnID);
  2088. this.columnНазвание_роли = new global::System.Data.DataColumn("Название_роли", typeof(string), null, global::System.Data.MappingType.Element);
  2089. base.Columns.Add(this.columnНазвание_роли);
  2090. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2091. this.columnID}, true));
  2092. this.columnID.AutoIncrement = true;
  2093. this.columnID.AutoIncrementSeed = -1;
  2094. this.columnID.AutoIncrementStep = -1;
  2095. this.columnID.AllowDBNull = false;
  2096. this.columnID.ReadOnly = true;
  2097. this.columnID.Unique = true;
  2098. this.columnНазвание_роли.MaxLength = 40;
  2099. }
  2100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2102. public РолиRow NewРолиRow() {
  2103. return ((РолиRow)(this.NewRow()));
  2104. }
  2105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2107. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2108. return new РолиRow(builder);
  2109. }
  2110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2112. protected override global::System.Type GetRowType() {
  2113. return typeof(РолиRow);
  2114. }
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2117. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2118. base.OnRowChanged(e);
  2119. if ((this.РолиRowChanged != null)) {
  2120. this.РолиRowChanged(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2121. }
  2122. }
  2123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2125. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2126. base.OnRowChanging(e);
  2127. if ((this.РолиRowChanging != null)) {
  2128. this.РолиRowChanging(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2129. }
  2130. }
  2131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2133. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2134. base.OnRowDeleted(e);
  2135. if ((this.РолиRowDeleted != null)) {
  2136. this.РолиRowDeleted(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2137. }
  2138. }
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2141. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2142. base.OnRowDeleting(e);
  2143. if ((this.РолиRowDeleting != null)) {
  2144. this.РолиRowDeleting(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2145. }
  2146. }
  2147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2149. public void RemoveРолиRow(РолиRow row) {
  2150. this.Rows.Remove(row);
  2151. }
  2152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2154. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2155. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2156. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2157. ОООКафе_ЛорийDataSet ds = new ОООКафе_ЛорийDataSet();
  2158. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2159. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2160. any1.MinOccurs = new decimal(0);
  2161. any1.MaxOccurs = decimal.MaxValue;
  2162. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2163. sequence.Items.Add(any1);
  2164. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2165. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2166. any2.MinOccurs = new decimal(1);
  2167. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2168. sequence.Items.Add(any2);
  2169. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2170. attribute1.Name = "namespace";
  2171. attribute1.FixedValue = ds.Namespace;
  2172. type.Attributes.Add(attribute1);
  2173. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2174. attribute2.Name = "tableTypeName";
  2175. attribute2.FixedValue = "РолиDataTable";
  2176. type.Attributes.Add(attribute2);
  2177. type.Particle = sequence;
  2178. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2179. if (xs.Contains(dsSchema.TargetNamespace)) {
  2180. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2181. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2182. try {
  2183. global::System.Xml.Schema.XmlSchema schema = null;
  2184. dsSchema.Write(s1);
  2185. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2186. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2187. s2.SetLength(0);
  2188. schema.Write(s2);
  2189. if ((s1.Length == s2.Length)) {
  2190. s1.Position = 0;
  2191. s2.Position = 0;
  2192. for (; ((s1.Position != s1.Length)
  2193. && (s1.ReadByte() == s2.ReadByte())); ) {
  2194. ;
  2195. }
  2196. if ((s1.Position == s1.Length)) {
  2197. return type;
  2198. }
  2199. }
  2200. }
  2201. }
  2202. finally {
  2203. if ((s1 != null)) {
  2204. s1.Close();
  2205. }
  2206. if ((s2 != null)) {
  2207. s2.Close();
  2208. }
  2209. }
  2210. }
  2211. xs.Add(dsSchema);
  2212. return type;
  2213. }
  2214. }
  2215. /// <summary>
  2216. ///Represents the strongly named DataTable class.
  2217. ///</summary>
  2218. [global::System.Serializable()]
  2219. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2220. public partial class СменыDataTable : global::System.Data.TypedTableBase<СменыRow> {
  2221. private global::System.Data.DataColumn columnID;
  2222. private global::System.Data.DataColumn columnДата;
  2223. private global::System.Data.DataColumn columnОфициант;
  2224. private global::System.Data.DataColumn columnПовар;
  2225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2227. public СменыDataTable() {
  2228. this.TableName = "Смены";
  2229. this.BeginInit();
  2230. this.InitClass();
  2231. this.EndInit();
  2232. }
  2233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2235. internal СменыDataTable(global::System.Data.DataTable table) {
  2236. this.TableName = table.TableName;
  2237. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2238. this.CaseSensitive = table.CaseSensitive;
  2239. }
  2240. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2241. this.Locale = table.Locale;
  2242. }
  2243. if ((table.Namespace != table.DataSet.Namespace)) {
  2244. this.Namespace = table.Namespace;
  2245. }
  2246. this.Prefix = table.Prefix;
  2247. this.MinimumCapacity = table.MinimumCapacity;
  2248. }
  2249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2251. protected СменыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2252. base(info, context) {
  2253. this.InitVars();
  2254. }
  2255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2257. public global::System.Data.DataColumn IDColumn {
  2258. get {
  2259. return this.columnID;
  2260. }
  2261. }
  2262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2264. public global::System.Data.DataColumn ДатаColumn {
  2265. get {
  2266. return this.columnДата;
  2267. }
  2268. }
  2269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2271. public global::System.Data.DataColumn ОфициантColumn {
  2272. get {
  2273. return this.columnОфициант;
  2274. }
  2275. }
  2276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2278. public global::System.Data.DataColumn ПоварColumn {
  2279. get {
  2280. return this.columnПовар;
  2281. }
  2282. }
  2283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2285. [global::System.ComponentModel.Browsable(false)]
  2286. public int Count {
  2287. get {
  2288. return this.Rows.Count;
  2289. }
  2290. }
  2291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2293. public СменыRow this[int index] {
  2294. get {
  2295. return ((СменыRow)(this.Rows[index]));
  2296. }
  2297. }
  2298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2299. public event СменыRowChangeEventHandler СменыRowChanging;
  2300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2301. public event СменыRowChangeEventHandler СменыRowChanged;
  2302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2303. public event СменыRowChangeEventHandler СменыRowDeleting;
  2304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2305. public event СменыRowChangeEventHandler СменыRowDeleted;
  2306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2308. public void AddСменыRow(СменыRow row) {
  2309. this.Rows.Add(row);
  2310. }
  2311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2313. public СменыRow AddСменыRow(System.DateTime Дата, ОфициантыRow parentОфициантыRowByFK_Смены_Официанты, ПовараRow parentПовараRowByFK_Смены_Повара) {
  2314. СменыRow rowСменыRow = ((СменыRow)(this.NewRow()));
  2315. object[] columnValuesArray = new object[] {
  2316. null,
  2317. Дата,
  2318. null,
  2319. null};
  2320. if ((parentОфициантыRowByFK_Смены_Официанты != null)) {
  2321. columnValuesArray[2] = parentОфициантыRowByFK_Смены_Официанты[0];
  2322. }
  2323. if ((parentПовараRowByFK_Смены_Повара != null)) {
  2324. columnValuesArray[3] = parentПовараRowByFK_Смены_Повара[0];
  2325. }
  2326. rowСменыRow.ItemArray = columnValuesArray;
  2327. this.Rows.Add(rowСменыRow);
  2328. return rowСменыRow;
  2329. }
  2330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2332. public СменыRow FindByID(long ID) {
  2333. return ((СменыRow)(this.Rows.Find(new object[] {
  2334. ID})));
  2335. }
  2336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2338. public override global::System.Data.DataTable Clone() {
  2339. СменыDataTable cln = ((СменыDataTable)(base.Clone()));
  2340. cln.InitVars();
  2341. return cln;
  2342. }
  2343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2345. protected override global::System.Data.DataTable CreateInstance() {
  2346. return new СменыDataTable();
  2347. }
  2348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2350. internal void InitVars() {
  2351. this.columnID = base.Columns["ID"];
  2352. this.columnДата = base.Columns["Дата"];
  2353. this.columnОфициант = base.Columns["Официант"];
  2354. this.columnПовар = base.Columns["Повар"];
  2355. }
  2356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2358. private void InitClass() {
  2359. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  2360. base.Columns.Add(this.columnID);
  2361. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2362. base.Columns.Add(this.columnДата);
  2363. this.columnОфициант = new global::System.Data.DataColumn("Официант", typeof(long), null, global::System.Data.MappingType.Element);
  2364. base.Columns.Add(this.columnОфициант);
  2365. this.columnПовар = new global::System.Data.DataColumn("Повар", typeof(long), null, global::System.Data.MappingType.Element);
  2366. base.Columns.Add(this.columnПовар);
  2367. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2368. this.columnID}, true));
  2369. this.columnID.AutoIncrement = true;
  2370. this.columnID.AutoIncrementSeed = -1;
  2371. this.columnID.AutoIncrementStep = -1;
  2372. this.columnID.AllowDBNull = false;
  2373. this.columnID.ReadOnly = true;
  2374. this.columnID.Unique = true;
  2375. }
  2376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2378. public СменыRow NewСменыRow() {
  2379. return ((СменыRow)(this.NewRow()));
  2380. }
  2381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2383. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2384. return new СменыRow(builder);
  2385. }
  2386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2388. protected override global::System.Type GetRowType() {
  2389. return typeof(СменыRow);
  2390. }
  2391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2393. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2394. base.OnRowChanged(e);
  2395. if ((this.СменыRowChanged != null)) {
  2396. this.СменыRowChanged(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  2397. }
  2398. }
  2399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2401. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2402. base.OnRowChanging(e);
  2403. if ((this.СменыRowChanging != null)) {
  2404. this.СменыRowChanging(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  2405. }
  2406. }
  2407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2409. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2410. base.OnRowDeleted(e);
  2411. if ((this.СменыRowDeleted != null)) {
  2412. this.СменыRowDeleted(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  2413. }
  2414. }
  2415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2417. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2418. base.OnRowDeleting(e);
  2419. if ((this.СменыRowDeleting != null)) {
  2420. this.СменыRowDeleting(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  2421. }
  2422. }
  2423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2425. public void RemoveСменыRow(СменыRow row) {
  2426. this.Rows.Remove(row);
  2427. }
  2428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2430. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2431. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2432. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2433. ОООКафе_ЛорийDataSet ds = new ОООКафе_ЛорийDataSet();
  2434. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2435. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2436. any1.MinOccurs = new decimal(0);
  2437. any1.MaxOccurs = decimal.MaxValue;
  2438. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2439. sequence.Items.Add(any1);
  2440. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2441. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2442. any2.MinOccurs = new decimal(1);
  2443. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2444. sequence.Items.Add(any2);
  2445. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2446. attribute1.Name = "namespace";
  2447. attribute1.FixedValue = ds.Namespace;
  2448. type.Attributes.Add(attribute1);
  2449. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2450. attribute2.Name = "tableTypeName";
  2451. attribute2.FixedValue = "СменыDataTable";
  2452. type.Attributes.Add(attribute2);
  2453. type.Particle = sequence;
  2454. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2455. if (xs.Contains(dsSchema.TargetNamespace)) {
  2456. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2457. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2458. try {
  2459. global::System.Xml.Schema.XmlSchema schema = null;
  2460. dsSchema.Write(s1);
  2461. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2462. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2463. s2.SetLength(0);
  2464. schema.Write(s2);
  2465. if ((s1.Length == s2.Length)) {
  2466. s1.Position = 0;
  2467. s2.Position = 0;
  2468. for (; ((s1.Position != s1.Length)
  2469. && (s1.ReadByte() == s2.ReadByte())); ) {
  2470. ;
  2471. }
  2472. if ((s1.Position == s1.Length)) {
  2473. return type;
  2474. }
  2475. }
  2476. }
  2477. }
  2478. finally {
  2479. if ((s1 != null)) {
  2480. s1.Close();
  2481. }
  2482. if ((s2 != null)) {
  2483. s2.Close();
  2484. }
  2485. }
  2486. }
  2487. xs.Add(dsSchema);
  2488. return type;
  2489. }
  2490. }
  2491. /// <summary>
  2492. ///Represents the strongly named DataTable class.
  2493. ///</summary>
  2494. [global::System.Serializable()]
  2495. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2496. public partial class СотрудникиDataTable : global::System.Data.TypedTableBase<СотрудникиRow> {
  2497. private global::System.Data.DataColumn columnID;
  2498. private global::System.Data.DataColumn columnЛогин;
  2499. private global::System.Data.DataColumn columnПароль;
  2500. private global::System.Data.DataColumn columnРоль;
  2501. private global::System.Data.DataColumn columnПринят;
  2502. private global::System.Data.DataColumn columnСтатус;
  2503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2505. public СотрудникиDataTable() {
  2506. this.TableName = "Сотрудники";
  2507. this.BeginInit();
  2508. this.InitClass();
  2509. this.EndInit();
  2510. }
  2511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2513. internal СотрудникиDataTable(global::System.Data.DataTable table) {
  2514. this.TableName = table.TableName;
  2515. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2516. this.CaseSensitive = table.CaseSensitive;
  2517. }
  2518. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2519. this.Locale = table.Locale;
  2520. }
  2521. if ((table.Namespace != table.DataSet.Namespace)) {
  2522. this.Namespace = table.Namespace;
  2523. }
  2524. this.Prefix = table.Prefix;
  2525. this.MinimumCapacity = table.MinimumCapacity;
  2526. }
  2527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2529. protected СотрудникиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2530. base(info, context) {
  2531. this.InitVars();
  2532. }
  2533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2535. public global::System.Data.DataColumn IDColumn {
  2536. get {
  2537. return this.columnID;
  2538. }
  2539. }
  2540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2542. public global::System.Data.DataColumn ЛогинColumn {
  2543. get {
  2544. return this.columnЛогин;
  2545. }
  2546. }
  2547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2549. public global::System.Data.DataColumn ПарольColumn {
  2550. get {
  2551. return this.columnПароль;
  2552. }
  2553. }
  2554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2556. public global::System.Data.DataColumn РольColumn {
  2557. get {
  2558. return this.columnРоль;
  2559. }
  2560. }
  2561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2563. public global::System.Data.DataColumn ПринятColumn {
  2564. get {
  2565. return this.columnПринят;
  2566. }
  2567. }
  2568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2570. public global::System.Data.DataColumn СтатусColumn {
  2571. get {
  2572. return this.columnСтатус;
  2573. }
  2574. }
  2575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2577. [global::System.ComponentModel.Browsable(false)]
  2578. public int Count {
  2579. get {
  2580. return this.Rows.Count;
  2581. }
  2582. }
  2583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2585. public СотрудникиRow this[int index] {
  2586. get {
  2587. return ((СотрудникиRow)(this.Rows[index]));
  2588. }
  2589. }
  2590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2591. public event СотрудникиRowChangeEventHandler СотрудникиRowChanging;
  2592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2593. public event СотрудникиRowChangeEventHandler СотрудникиRowChanged;
  2594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2595. public event СотрудникиRowChangeEventHandler СотрудникиRowDeleting;
  2596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2597. public event СотрудникиRowChangeEventHandler СотрудникиRowDeleted;
  2598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2600. public void AddСотрудникиRow(СотрудникиRow row) {
  2601. this.Rows.Add(row);
  2602. }
  2603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2605. public СотрудникиRow AddСотрудникиRow(string Логин, string Пароль, РолиRow parentРолиRowByFK_Сотрудники_Роли, System.DateTime Принят, СтатусыСотрудниковRow parentСтатусыСотрудниковRowByFK_Сотрудники_СтатусыСотрудников) {
  2606. СотрудникиRow rowСотрудникиRow = ((СотрудникиRow)(this.NewRow()));
  2607. object[] columnValuesArray = new object[] {
  2608. null,
  2609. Логин,
  2610. Пароль,
  2611. null,
  2612. Принят,
  2613. null};
  2614. if ((parentРолиRowByFK_Сотрудники_Роли != null)) {
  2615. columnValuesArray[3] = parentРолиRowByFK_Сотрудники_Роли[0];
  2616. }
  2617. if ((parentСтатусыСотрудниковRowByFK_Сотрудники_СтатусыСотрудников != null)) {
  2618. columnValuesArray[5] = parentСтатусыСотрудниковRowByFK_Сотрудники_СтатусыСотрудников[0];
  2619. }
  2620. rowСотрудникиRow.ItemArray = columnValuesArray;
  2621. this.Rows.Add(rowСотрудникиRow);
  2622. return rowСотрудникиRow;
  2623. }
  2624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2626. public СотрудникиRow FindByID(long ID) {
  2627. return ((СотрудникиRow)(this.Rows.Find(new object[] {
  2628. ID})));
  2629. }
  2630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2632. public override global::System.Data.DataTable Clone() {
  2633. СотрудникиDataTable cln = ((СотрудникиDataTable)(base.Clone()));
  2634. cln.InitVars();
  2635. return cln;
  2636. }
  2637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2639. protected override global::System.Data.DataTable CreateInstance() {
  2640. return new СотрудникиDataTable();
  2641. }
  2642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2644. internal void InitVars() {
  2645. this.columnID = base.Columns["ID"];
  2646. this.columnЛогин = base.Columns["Логин"];
  2647. this.columnПароль = base.Columns["Пароль"];
  2648. this.columnРоль = base.Columns["Роль"];
  2649. this.columnПринят = base.Columns["Принят"];
  2650. this.columnСтатус = base.Columns["Статус"];
  2651. }
  2652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2654. private void InitClass() {
  2655. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  2656. base.Columns.Add(this.columnID);
  2657. this.columnЛогин = new global::System.Data.DataColumn("Логин", typeof(string), null, global::System.Data.MappingType.Element);
  2658. base.Columns.Add(this.columnЛогин);
  2659. this.columnПароль = new global::System.Data.DataColumn("Пароль", typeof(string), null, global::System.Data.MappingType.Element);
  2660. base.Columns.Add(this.columnПароль);
  2661. this.columnРоль = new global::System.Data.DataColumn("Роль", typeof(long), null, global::System.Data.MappingType.Element);
  2662. base.Columns.Add(this.columnРоль);
  2663. this.columnПринят = new global::System.Data.DataColumn("Принят", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2664. base.Columns.Add(this.columnПринят);
  2665. this.columnСтатус = new global::System.Data.DataColumn("Статус", typeof(long), null, global::System.Data.MappingType.Element);
  2666. base.Columns.Add(this.columnСтатус);
  2667. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2668. this.columnID}, true));
  2669. this.columnID.AutoIncrement = true;
  2670. this.columnID.AutoIncrementSeed = -1;
  2671. this.columnID.AutoIncrementStep = -1;
  2672. this.columnID.AllowDBNull = false;
  2673. this.columnID.ReadOnly = true;
  2674. this.columnID.Unique = true;
  2675. this.columnЛогин.MaxLength = 40;
  2676. this.columnПароль.MaxLength = 40;
  2677. }
  2678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2680. public СотрудникиRow NewСотрудникиRow() {
  2681. return ((СотрудникиRow)(this.NewRow()));
  2682. }
  2683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2685. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2686. return new СотрудникиRow(builder);
  2687. }
  2688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2690. protected override global::System.Type GetRowType() {
  2691. return typeof(СотрудникиRow);
  2692. }
  2693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2695. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2696. base.OnRowChanged(e);
  2697. if ((this.СотрудникиRowChanged != null)) {
  2698. this.СотрудникиRowChanged(this, new СотрудникиRowChangeEvent(((СотрудникиRow)(e.Row)), e.Action));
  2699. }
  2700. }
  2701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2703. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2704. base.OnRowChanging(e);
  2705. if ((this.СотрудникиRowChanging != null)) {
  2706. this.СотрудникиRowChanging(this, new СотрудникиRowChangeEvent(((СотрудникиRow)(e.Row)), e.Action));
  2707. }
  2708. }
  2709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2711. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2712. base.OnRowDeleted(e);
  2713. if ((this.СотрудникиRowDeleted != null)) {
  2714. this.СотрудникиRowDeleted(this, new СотрудникиRowChangeEvent(((СотрудникиRow)(e.Row)), e.Action));
  2715. }
  2716. }
  2717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2719. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2720. base.OnRowDeleting(e);
  2721. if ((this.СотрудникиRowDeleting != null)) {
  2722. this.СотрудникиRowDeleting(this, new СотрудникиRowChangeEvent(((СотрудникиRow)(e.Row)), e.Action));
  2723. }
  2724. }
  2725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2727. public void RemoveСотрудникиRow(СотрудникиRow row) {
  2728. this.Rows.Remove(row);
  2729. }
  2730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2732. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2733. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2734. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2735. ОООКафе_ЛорийDataSet ds = new ОООКафе_ЛорийDataSet();
  2736. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2737. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2738. any1.MinOccurs = new decimal(0);
  2739. any1.MaxOccurs = decimal.MaxValue;
  2740. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2741. sequence.Items.Add(any1);
  2742. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2743. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2744. any2.MinOccurs = new decimal(1);
  2745. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2746. sequence.Items.Add(any2);
  2747. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2748. attribute1.Name = "namespace";
  2749. attribute1.FixedValue = ds.Namespace;
  2750. type.Attributes.Add(attribute1);
  2751. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2752. attribute2.Name = "tableTypeName";
  2753. attribute2.FixedValue = "СотрудникиDataTable";
  2754. type.Attributes.Add(attribute2);
  2755. type.Particle = sequence;
  2756. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2757. if (xs.Contains(dsSchema.TargetNamespace)) {
  2758. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2759. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2760. try {
  2761. global::System.Xml.Schema.XmlSchema schema = null;
  2762. dsSchema.Write(s1);
  2763. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2764. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2765. s2.SetLength(0);
  2766. schema.Write(s2);
  2767. if ((s1.Length == s2.Length)) {
  2768. s1.Position = 0;
  2769. s2.Position = 0;
  2770. for (; ((s1.Position != s1.Length)
  2771. && (s1.ReadByte() == s2.ReadByte())); ) {
  2772. ;
  2773. }
  2774. if ((s1.Position == s1.Length)) {
  2775. return type;
  2776. }
  2777. }
  2778. }
  2779. }
  2780. finally {
  2781. if ((s1 != null)) {
  2782. s1.Close();
  2783. }
  2784. if ((s2 != null)) {
  2785. s2.Close();
  2786. }
  2787. }
  2788. }
  2789. xs.Add(dsSchema);
  2790. return type;
  2791. }
  2792. }
  2793. /// <summary>
  2794. ///Represents the strongly named DataTable class.
  2795. ///</summary>
  2796. [global::System.Serializable()]
  2797. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2798. public partial class СтатусыЗаказаDataTable : global::System.Data.TypedTableBase<СтатусыЗаказаRow> {
  2799. private global::System.Data.DataColumn columnID;
  2800. private global::System.Data.DataColumn columnНазвание_статуса;
  2801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2803. public СтатусыЗаказаDataTable() {
  2804. this.TableName = "СтатусыЗаказа";
  2805. this.BeginInit();
  2806. this.InitClass();
  2807. this.EndInit();
  2808. }
  2809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2811. internal СтатусыЗаказаDataTable(global::System.Data.DataTable table) {
  2812. this.TableName = table.TableName;
  2813. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2814. this.CaseSensitive = table.CaseSensitive;
  2815. }
  2816. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2817. this.Locale = table.Locale;
  2818. }
  2819. if ((table.Namespace != table.DataSet.Namespace)) {
  2820. this.Namespace = table.Namespace;
  2821. }
  2822. this.Prefix = table.Prefix;
  2823. this.MinimumCapacity = table.MinimumCapacity;
  2824. }
  2825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2827. protected СтатусыЗаказаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2828. base(info, context) {
  2829. this.InitVars();
  2830. }
  2831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2833. public global::System.Data.DataColumn IDColumn {
  2834. get {
  2835. return this.columnID;
  2836. }
  2837. }
  2838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2840. public global::System.Data.DataColumn Название_статусаColumn {
  2841. get {
  2842. return this.columnНазвание_статуса;
  2843. }
  2844. }
  2845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2847. [global::System.ComponentModel.Browsable(false)]
  2848. public int Count {
  2849. get {
  2850. return this.Rows.Count;
  2851. }
  2852. }
  2853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2855. public СтатусыЗаказаRow this[int index] {
  2856. get {
  2857. return ((СтатусыЗаказаRow)(this.Rows[index]));
  2858. }
  2859. }
  2860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2861. public event СтатусыЗаказаRowChangeEventHandler СтатусыЗаказаRowChanging;
  2862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2863. public event СтатусыЗаказаRowChangeEventHandler СтатусыЗаказаRowChanged;
  2864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2865. public event СтатусыЗаказаRowChangeEventHandler СтатусыЗаказаRowDeleting;
  2866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2867. public event СтатусыЗаказаRowChangeEventHandler СтатусыЗаказаRowDeleted;
  2868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2870. public void AddСтатусыЗаказаRow(СтатусыЗаказаRow row) {
  2871. this.Rows.Add(row);
  2872. }
  2873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2875. public СтатусыЗаказаRow AddСтатусыЗаказаRow(string Название_статуса) {
  2876. СтатусыЗаказаRow rowСтатусыЗаказаRow = ((СтатусыЗаказаRow)(this.NewRow()));
  2877. object[] columnValuesArray = new object[] {
  2878. null,
  2879. Название_статуса};
  2880. rowСтатусыЗаказаRow.ItemArray = columnValuesArray;
  2881. this.Rows.Add(rowСтатусыЗаказаRow);
  2882. return rowСтатусыЗаказаRow;
  2883. }
  2884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2886. public СтатусыЗаказаRow FindByID(long ID) {
  2887. return ((СтатусыЗаказаRow)(this.Rows.Find(new object[] {
  2888. ID})));
  2889. }
  2890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2892. public override global::System.Data.DataTable Clone() {
  2893. СтатусыЗаказаDataTable cln = ((СтатусыЗаказаDataTable)(base.Clone()));
  2894. cln.InitVars();
  2895. return cln;
  2896. }
  2897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2899. protected override global::System.Data.DataTable CreateInstance() {
  2900. return new СтатусыЗаказаDataTable();
  2901. }
  2902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2904. internal void InitVars() {
  2905. this.columnID = base.Columns["ID"];
  2906. this.columnНазвание_статуса = base.Columns["Название_статуса"];
  2907. }
  2908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2910. private void InitClass() {
  2911. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  2912. base.Columns.Add(this.columnID);
  2913. this.columnНазвание_статуса = new global::System.Data.DataColumn("Название_статуса", typeof(string), null, global::System.Data.MappingType.Element);
  2914. base.Columns.Add(this.columnНазвание_статуса);
  2915. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2916. this.columnID}, true));
  2917. this.columnID.AutoIncrement = true;
  2918. this.columnID.AutoIncrementSeed = -1;
  2919. this.columnID.AutoIncrementStep = -1;
  2920. this.columnID.AllowDBNull = false;
  2921. this.columnID.ReadOnly = true;
  2922. this.columnID.Unique = true;
  2923. this.columnНазвание_статуса.MaxLength = 40;
  2924. }
  2925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2927. public СтатусыЗаказаRow NewСтатусыЗаказаRow() {
  2928. return ((СтатусыЗаказаRow)(this.NewRow()));
  2929. }
  2930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2932. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2933. return new СтатусыЗаказаRow(builder);
  2934. }
  2935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2937. protected override global::System.Type GetRowType() {
  2938. return typeof(СтатусыЗаказаRow);
  2939. }
  2940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2942. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2943. base.OnRowChanged(e);
  2944. if ((this.СтатусыЗаказаRowChanged != null)) {
  2945. this.СтатусыЗаказаRowChanged(this, new СтатусыЗаказаRowChangeEvent(((СтатусыЗаказаRow)(e.Row)), e.Action));
  2946. }
  2947. }
  2948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2950. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2951. base.OnRowChanging(e);
  2952. if ((this.СтатусыЗаказаRowChanging != null)) {
  2953. this.СтатусыЗаказаRowChanging(this, new СтатусыЗаказаRowChangeEvent(((СтатусыЗаказаRow)(e.Row)), e.Action));
  2954. }
  2955. }
  2956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2958. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2959. base.OnRowDeleted(e);
  2960. if ((this.СтатусыЗаказаRowDeleted != null)) {
  2961. this.СтатусыЗаказаRowDeleted(this, new СтатусыЗаказаRowChangeEvent(((СтатусыЗаказаRow)(e.Row)), e.Action));
  2962. }
  2963. }
  2964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2966. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2967. base.OnRowDeleting(e);
  2968. if ((this.СтатусыЗаказаRowDeleting != null)) {
  2969. this.СтатусыЗаказаRowDeleting(this, new СтатусыЗаказаRowChangeEvent(((СтатусыЗаказаRow)(e.Row)), e.Action));
  2970. }
  2971. }
  2972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2974. public void RemoveСтатусыЗаказаRow(СтатусыЗаказаRow row) {
  2975. this.Rows.Remove(row);
  2976. }
  2977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2979. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2980. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2981. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2982. ОООКафе_ЛорийDataSet ds = new ОООКафе_ЛорийDataSet();
  2983. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2984. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2985. any1.MinOccurs = new decimal(0);
  2986. any1.MaxOccurs = decimal.MaxValue;
  2987. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2988. sequence.Items.Add(any1);
  2989. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2990. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2991. any2.MinOccurs = new decimal(1);
  2992. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2993. sequence.Items.Add(any2);
  2994. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2995. attribute1.Name = "namespace";
  2996. attribute1.FixedValue = ds.Namespace;
  2997. type.Attributes.Add(attribute1);
  2998. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2999. attribute2.Name = "tableTypeName";
  3000. attribute2.FixedValue = "СтатусыЗаказаDataTable";
  3001. type.Attributes.Add(attribute2);
  3002. type.Particle = sequence;
  3003. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3004. if (xs.Contains(dsSchema.TargetNamespace)) {
  3005. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3006. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3007. try {
  3008. global::System.Xml.Schema.XmlSchema schema = null;
  3009. dsSchema.Write(s1);
  3010. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3011. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3012. s2.SetLength(0);
  3013. schema.Write(s2);
  3014. if ((s1.Length == s2.Length)) {
  3015. s1.Position = 0;
  3016. s2.Position = 0;
  3017. for (; ((s1.Position != s1.Length)
  3018. && (s1.ReadByte() == s2.ReadByte())); ) {
  3019. ;
  3020. }
  3021. if ((s1.Position == s1.Length)) {
  3022. return type;
  3023. }
  3024. }
  3025. }
  3026. }
  3027. finally {
  3028. if ((s1 != null)) {
  3029. s1.Close();
  3030. }
  3031. if ((s2 != null)) {
  3032. s2.Close();
  3033. }
  3034. }
  3035. }
  3036. xs.Add(dsSchema);
  3037. return type;
  3038. }
  3039. }
  3040. /// <summary>
  3041. ///Represents the strongly named DataTable class.
  3042. ///</summary>
  3043. [global::System.Serializable()]
  3044. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3045. public partial class СтатусыСотрудниковDataTable : global::System.Data.TypedTableBase<СтатусыСотрудниковRow> {
  3046. private global::System.Data.DataColumn columnID;
  3047. private global::System.Data.DataColumn columnНазвание_статуса;
  3048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3050. public СтатусыСотрудниковDataTable() {
  3051. this.TableName = "СтатусыСотрудников";
  3052. this.BeginInit();
  3053. this.InitClass();
  3054. this.EndInit();
  3055. }
  3056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3058. internal СтатусыСотрудниковDataTable(global::System.Data.DataTable table) {
  3059. this.TableName = table.TableName;
  3060. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3061. this.CaseSensitive = table.CaseSensitive;
  3062. }
  3063. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3064. this.Locale = table.Locale;
  3065. }
  3066. if ((table.Namespace != table.DataSet.Namespace)) {
  3067. this.Namespace = table.Namespace;
  3068. }
  3069. this.Prefix = table.Prefix;
  3070. this.MinimumCapacity = table.MinimumCapacity;
  3071. }
  3072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3074. protected СтатусыСотрудниковDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3075. base(info, context) {
  3076. this.InitVars();
  3077. }
  3078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3080. public global::System.Data.DataColumn IDColumn {
  3081. get {
  3082. return this.columnID;
  3083. }
  3084. }
  3085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3087. public global::System.Data.DataColumn Название_статусаColumn {
  3088. get {
  3089. return this.columnНазвание_статуса;
  3090. }
  3091. }
  3092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3094. [global::System.ComponentModel.Browsable(false)]
  3095. public int Count {
  3096. get {
  3097. return this.Rows.Count;
  3098. }
  3099. }
  3100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3102. public СтатусыСотрудниковRow this[int index] {
  3103. get {
  3104. return ((СтатусыСотрудниковRow)(this.Rows[index]));
  3105. }
  3106. }
  3107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3108. public event СтатусыСотрудниковRowChangeEventHandler СтатусыСотрудниковRowChanging;
  3109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3110. public event СтатусыСотрудниковRowChangeEventHandler СтатусыСотрудниковRowChanged;
  3111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3112. public event СтатусыСотрудниковRowChangeEventHandler СтатусыСотрудниковRowDeleting;
  3113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3114. public event СтатусыСотрудниковRowChangeEventHandler СтатусыСотрудниковRowDeleted;
  3115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3117. public void AddСтатусыСотрудниковRow(СтатусыСотрудниковRow row) {
  3118. this.Rows.Add(row);
  3119. }
  3120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3122. public СтатусыСотрудниковRow AddСтатусыСотрудниковRow(string Название_статуса) {
  3123. СтатусыСотрудниковRow rowСтатусыСотрудниковRow = ((СтатусыСотрудниковRow)(this.NewRow()));
  3124. object[] columnValuesArray = new object[] {
  3125. null,
  3126. Название_статуса};
  3127. rowСтатусыСотрудниковRow.ItemArray = columnValuesArray;
  3128. this.Rows.Add(rowСтатусыСотрудниковRow);
  3129. return rowСтатусыСотрудниковRow;
  3130. }
  3131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3133. public СтатусыСотрудниковRow FindByID(long ID) {
  3134. return ((СтатусыСотрудниковRow)(this.Rows.Find(new object[] {
  3135. ID})));
  3136. }
  3137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3139. public override global::System.Data.DataTable Clone() {
  3140. СтатусыСотрудниковDataTable cln = ((СтатусыСотрудниковDataTable)(base.Clone()));
  3141. cln.InitVars();
  3142. return cln;
  3143. }
  3144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3146. protected override global::System.Data.DataTable CreateInstance() {
  3147. return new СтатусыСотрудниковDataTable();
  3148. }
  3149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3151. internal void InitVars() {
  3152. this.columnID = base.Columns["ID"];
  3153. this.columnНазвание_статуса = base.Columns["Название_статуса"];
  3154. }
  3155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3157. private void InitClass() {
  3158. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  3159. base.Columns.Add(this.columnID);
  3160. this.columnНазвание_статуса = new global::System.Data.DataColumn("Название_статуса", typeof(string), null, global::System.Data.MappingType.Element);
  3161. base.Columns.Add(this.columnНазвание_статуса);
  3162. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3163. this.columnID}, true));
  3164. this.columnID.AutoIncrement = true;
  3165. this.columnID.AutoIncrementSeed = -1;
  3166. this.columnID.AutoIncrementStep = -1;
  3167. this.columnID.AllowDBNull = false;
  3168. this.columnID.ReadOnly = true;
  3169. this.columnID.Unique = true;
  3170. this.columnНазвание_статуса.MaxLength = 40;
  3171. }
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3174. public СтатусыСотрудниковRow NewСтатусыСотрудниковRow() {
  3175. return ((СтатусыСотрудниковRow)(this.NewRow()));
  3176. }
  3177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3179. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3180. return new СтатусыСотрудниковRow(builder);
  3181. }
  3182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3184. protected override global::System.Type GetRowType() {
  3185. return typeof(СтатусыСотрудниковRow);
  3186. }
  3187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3189. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3190. base.OnRowChanged(e);
  3191. if ((this.СтатусыСотрудниковRowChanged != null)) {
  3192. this.СтатусыСотрудниковRowChanged(this, new СтатусыСотрудниковRowChangeEvent(((СтатусыСотрудниковRow)(e.Row)), e.Action));
  3193. }
  3194. }
  3195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3197. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3198. base.OnRowChanging(e);
  3199. if ((this.СтатусыСотрудниковRowChanging != null)) {
  3200. this.СтатусыСотрудниковRowChanging(this, new СтатусыСотрудниковRowChangeEvent(((СтатусыСотрудниковRow)(e.Row)), e.Action));
  3201. }
  3202. }
  3203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3205. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3206. base.OnRowDeleted(e);
  3207. if ((this.СтатусыСотрудниковRowDeleted != null)) {
  3208. this.СтатусыСотрудниковRowDeleted(this, new СтатусыСотрудниковRowChangeEvent(((СтатусыСотрудниковRow)(e.Row)), e.Action));
  3209. }
  3210. }
  3211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3213. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3214. base.OnRowDeleting(e);
  3215. if ((this.СтатусыСотрудниковRowDeleting != null)) {
  3216. this.СтатусыСотрудниковRowDeleting(this, new СтатусыСотрудниковRowChangeEvent(((СтатусыСотрудниковRow)(e.Row)), e.Action));
  3217. }
  3218. }
  3219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3221. public void RemoveСтатусыСотрудниковRow(СтатусыСотрудниковRow row) {
  3222. this.Rows.Remove(row);
  3223. }
  3224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3226. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3227. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3228. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3229. ОООКафе_ЛорийDataSet ds = new ОООКафе_ЛорийDataSet();
  3230. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3231. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3232. any1.MinOccurs = new decimal(0);
  3233. any1.MaxOccurs = decimal.MaxValue;
  3234. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3235. sequence.Items.Add(any1);
  3236. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3237. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3238. any2.MinOccurs = new decimal(1);
  3239. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3240. sequence.Items.Add(any2);
  3241. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3242. attribute1.Name = "namespace";
  3243. attribute1.FixedValue = ds.Namespace;
  3244. type.Attributes.Add(attribute1);
  3245. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3246. attribute2.Name = "tableTypeName";
  3247. attribute2.FixedValue = "СтатусыСотрудниковDataTable";
  3248. type.Attributes.Add(attribute2);
  3249. type.Particle = sequence;
  3250. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3251. if (xs.Contains(dsSchema.TargetNamespace)) {
  3252. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3253. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3254. try {
  3255. global::System.Xml.Schema.XmlSchema schema = null;
  3256. dsSchema.Write(s1);
  3257. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3258. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3259. s2.SetLength(0);
  3260. schema.Write(s2);
  3261. if ((s1.Length == s2.Length)) {
  3262. s1.Position = 0;
  3263. s2.Position = 0;
  3264. for (; ((s1.Position != s1.Length)
  3265. && (s1.ReadByte() == s2.ReadByte())); ) {
  3266. ;
  3267. }
  3268. if ((s1.Position == s1.Length)) {
  3269. return type;
  3270. }
  3271. }
  3272. }
  3273. }
  3274. finally {
  3275. if ((s1 != null)) {
  3276. s1.Close();
  3277. }
  3278. if ((s2 != null)) {
  3279. s2.Close();
  3280. }
  3281. }
  3282. }
  3283. xs.Add(dsSchema);
  3284. return type;
  3285. }
  3286. }
  3287. /// <summary>
  3288. ///Represents strongly named DataRow class.
  3289. ///</summary>
  3290. public partial class БлюдаНапиткиRow : global::System.Data.DataRow {
  3291. private БлюдаНапиткиDataTable tableБлюдаНапитки;
  3292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3294. internal БлюдаНапиткиRow(global::System.Data.DataRowBuilder rb) :
  3295. base(rb) {
  3296. this.tableБлюдаНапитки = ((БлюдаНапиткиDataTable)(this.Table));
  3297. }
  3298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3300. public long ID {
  3301. get {
  3302. return ((long)(this[this.tableБлюдаНапитки.IDColumn]));
  3303. }
  3304. set {
  3305. this[this.tableБлюдаНапитки.IDColumn] = value;
  3306. }
  3307. }
  3308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3310. public string Название_Б_Н {
  3311. get {
  3312. try {
  3313. return ((string)(this[this.tableБлюдаНапитки.Название_Б_НColumn]));
  3314. }
  3315. catch (global::System.InvalidCastException e) {
  3316. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название_Б_Н\' в таблице \'БлюдаНапитки\' равно DBNull.", e);
  3317. }
  3318. }
  3319. set {
  3320. this[this.tableБлюдаНапитки.Название_Б_НColumn] = value;
  3321. }
  3322. }
  3323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3325. public decimal Цена {
  3326. get {
  3327. try {
  3328. return ((decimal)(this[this.tableБлюдаНапитки.ЦенаColumn]));
  3329. }
  3330. catch (global::System.InvalidCastException e) {
  3331. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'БлюдаНапитки\' равно DBNull.", e);
  3332. }
  3333. }
  3334. set {
  3335. this[this.tableБлюдаНапитки.ЦенаColumn] = value;
  3336. }
  3337. }
  3338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3340. public bool IsНазвание_Б_НNull() {
  3341. return this.IsNull(this.tableБлюдаНапитки.Название_Б_НColumn);
  3342. }
  3343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3345. public void SetНазвание_Б_НNull() {
  3346. this[this.tableБлюдаНапитки.Название_Б_НColumn] = global::System.Convert.DBNull;
  3347. }
  3348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3350. public bool IsЦенаNull() {
  3351. return this.IsNull(this.tableБлюдаНапитки.ЦенаColumn);
  3352. }
  3353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3355. public void SetЦенаNull() {
  3356. this[this.tableБлюдаНапитки.ЦенаColumn] = global::System.Convert.DBNull;
  3357. }
  3358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3360. public ЗаказаныеБНRow[] GetЗаказаныеБНRows() {
  3361. if ((this.Table.ChildRelations["FK_ЗаказаныеБН_БлюдаНапитки"] == null)) {
  3362. return new ЗаказаныеБНRow[0];
  3363. }
  3364. else {
  3365. return ((ЗаказаныеБНRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ЗаказаныеБН_БлюдаНапитки"])));
  3366. }
  3367. }
  3368. }
  3369. /// <summary>
  3370. ///Represents strongly named DataRow class.
  3371. ///</summary>
  3372. public partial class ЗаказаныеБНRow : global::System.Data.DataRow {
  3373. private ЗаказаныеБНDataTable tableЗаказаныеБН;
  3374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3376. internal ЗаказаныеБНRow(global::System.Data.DataRowBuilder rb) :
  3377. base(rb) {
  3378. this.tableЗаказаныеБН = ((ЗаказаныеБНDataTable)(this.Table));
  3379. }
  3380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3382. public long ID {
  3383. get {
  3384. return ((long)(this[this.tableЗаказаныеБН.IDColumn]));
  3385. }
  3386. set {
  3387. this[this.tableЗаказаныеБН.IDColumn] = value;
  3388. }
  3389. }
  3390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3392. public long Заказ {
  3393. get {
  3394. try {
  3395. return ((long)(this[this.tableЗаказаныеБН.ЗаказColumn]));
  3396. }
  3397. catch (global::System.InvalidCastException e) {
  3398. throw new global::System.Data.StrongTypingException("Значение для столбца \'Заказ\' в таблице \'ЗаказаныеБН\' равно DBNull.", e);
  3399. }
  3400. }
  3401. set {
  3402. this[this.tableЗаказаныеБН.ЗаказColumn] = value;
  3403. }
  3404. }
  3405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3407. public long ЗаказаноеБН {
  3408. get {
  3409. try {
  3410. return ((long)(this[this.tableЗаказаныеБН.ЗаказаноеБНColumn]));
  3411. }
  3412. catch (global::System.InvalidCastException e) {
  3413. throw new global::System.Data.StrongTypingException("Значение для столбца \'ЗаказаноеБН\' в таблице \'ЗаказаныеБН\' равно DBNull.", e);
  3414. }
  3415. }
  3416. set {
  3417. this[this.tableЗаказаныеБН.ЗаказаноеБНColumn] = value;
  3418. }
  3419. }
  3420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3422. public decimal Цена {
  3423. get {
  3424. try {
  3425. return ((decimal)(this[this.tableЗаказаныеБН.ЦенаColumn]));
  3426. }
  3427. catch (global::System.InvalidCastException e) {
  3428. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'ЗаказаныеБН\' равно DBNull.", e);
  3429. }
  3430. }
  3431. set {
  3432. this[this.tableЗаказаныеБН.ЦенаColumn] = value;
  3433. }
  3434. }
  3435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3437. public БлюдаНапиткиRow БлюдаНапиткиRow {
  3438. get {
  3439. return ((БлюдаНапиткиRow)(this.GetParentRow(this.Table.ParentRelations["FK_ЗаказаныеБН_БлюдаНапитки"])));
  3440. }
  3441. set {
  3442. this.SetParentRow(value, this.Table.ParentRelations["FK_ЗаказаныеБН_БлюдаНапитки"]);
  3443. }
  3444. }
  3445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3447. public ЗаказыRow ЗаказыRow {
  3448. get {
  3449. return ((ЗаказыRow)(this.GetParentRow(this.Table.ParentRelations["FK_ЗаказаныеБН_Заказы1"])));
  3450. }
  3451. set {
  3452. this.SetParentRow(value, this.Table.ParentRelations["FK_ЗаказаныеБН_Заказы1"]);
  3453. }
  3454. }
  3455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3457. public bool IsЗаказNull() {
  3458. return this.IsNull(this.tableЗаказаныеБН.ЗаказColumn);
  3459. }
  3460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3462. public void SetЗаказNull() {
  3463. this[this.tableЗаказаныеБН.ЗаказColumn] = global::System.Convert.DBNull;
  3464. }
  3465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3467. public bool IsЗаказаноеБНNull() {
  3468. return this.IsNull(this.tableЗаказаныеБН.ЗаказаноеБНColumn);
  3469. }
  3470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3472. public void SetЗаказаноеБНNull() {
  3473. this[this.tableЗаказаныеБН.ЗаказаноеБНColumn] = global::System.Convert.DBNull;
  3474. }
  3475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3477. public bool IsЦенаNull() {
  3478. return this.IsNull(this.tableЗаказаныеБН.ЦенаColumn);
  3479. }
  3480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3482. public void SetЦенаNull() {
  3483. this[this.tableЗаказаныеБН.ЦенаColumn] = global::System.Convert.DBNull;
  3484. }
  3485. }
  3486. /// <summary>
  3487. ///Represents strongly named DataRow class.
  3488. ///</summary>
  3489. public partial class ЗаказыRow : global::System.Data.DataRow {
  3490. private ЗаказыDataTable tableЗаказы;
  3491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3493. internal ЗаказыRow(global::System.Data.DataRowBuilder rb) :
  3494. base(rb) {
  3495. this.tableЗаказы = ((ЗаказыDataTable)(this.Table));
  3496. }
  3497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3499. public long ID {
  3500. get {
  3501. return ((long)(this[this.tableЗаказы.IDColumn]));
  3502. }
  3503. set {
  3504. this[this.tableЗаказы.IDColumn] = value;
  3505. }
  3506. }
  3507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3509. public System.DateTime Дата {
  3510. get {
  3511. try {
  3512. return ((global::System.DateTime)(this[this.tableЗаказы.ДатаColumn]));
  3513. }
  3514. catch (global::System.InvalidCastException e) {
  3515. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Заказы\' равно DBNull.", e);
  3516. }
  3517. }
  3518. set {
  3519. this[this.tableЗаказы.ДатаColumn] = value;
  3520. }
  3521. }
  3522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3524. public int Столик {
  3525. get {
  3526. try {
  3527. return ((int)(this[this.tableЗаказы.СтоликColumn]));
  3528. }
  3529. catch (global::System.InvalidCastException e) {
  3530. throw new global::System.Data.StrongTypingException("Значение для столбца \'Столик\' в таблице \'Заказы\' равно DBNull.", e);
  3531. }
  3532. }
  3533. set {
  3534. this[this.tableЗаказы.СтоликColumn] = value;
  3535. }
  3536. }
  3537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3539. public int КолвоКлиентов {
  3540. get {
  3541. try {
  3542. return ((int)(this[this.tableЗаказы.КолвоКлиентовColumn]));
  3543. }
  3544. catch (global::System.InvalidCastException e) {
  3545. throw new global::System.Data.StrongTypingException("Значение для столбца \'КолвоКлиентов\' в таблице \'Заказы\' равно DBNull.", e);
  3546. }
  3547. }
  3548. set {
  3549. this[this.tableЗаказы.КолвоКлиентовColumn] = value;
  3550. }
  3551. }
  3552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3554. public decimal Цена {
  3555. get {
  3556. try {
  3557. return ((decimal)(this[this.tableЗаказы.ЦенаColumn]));
  3558. }
  3559. catch (global::System.InvalidCastException e) {
  3560. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Заказы\' равно DBNull.", e);
  3561. }
  3562. }
  3563. set {
  3564. this[this.tableЗаказы.ЦенаColumn] = value;
  3565. }
  3566. }
  3567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3569. public long Статус {
  3570. get {
  3571. try {
  3572. return ((long)(this[this.tableЗаказы.СтатусColumn]));
  3573. }
  3574. catch (global::System.InvalidCastException e) {
  3575. throw new global::System.Data.StrongTypingException("Значение для столбца \'Статус\' в таблице \'Заказы\' равно DBNull.", e);
  3576. }
  3577. }
  3578. set {
  3579. this[this.tableЗаказы.СтатусColumn] = value;
  3580. }
  3581. }
  3582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3584. public СтатусыЗаказаRow СтатусыЗаказаRow {
  3585. get {
  3586. return ((СтатусыЗаказаRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_СтатусыЗаказа"])));
  3587. }
  3588. set {
  3589. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_СтатусыЗаказа"]);
  3590. }
  3591. }
  3592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3594. public bool IsДатаNull() {
  3595. return this.IsNull(this.tableЗаказы.ДатаColumn);
  3596. }
  3597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3599. public void SetДатаNull() {
  3600. this[this.tableЗаказы.ДатаColumn] = global::System.Convert.DBNull;
  3601. }
  3602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3604. public bool IsСтоликNull() {
  3605. return this.IsNull(this.tableЗаказы.СтоликColumn);
  3606. }
  3607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3609. public void SetСтоликNull() {
  3610. this[this.tableЗаказы.СтоликColumn] = global::System.Convert.DBNull;
  3611. }
  3612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3614. public bool IsКолвоКлиентовNull() {
  3615. return this.IsNull(this.tableЗаказы.КолвоКлиентовColumn);
  3616. }
  3617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3619. public void SetКолвоКлиентовNull() {
  3620. this[this.tableЗаказы.КолвоКлиентовColumn] = global::System.Convert.DBNull;
  3621. }
  3622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3624. public bool IsЦенаNull() {
  3625. return this.IsNull(this.tableЗаказы.ЦенаColumn);
  3626. }
  3627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3629. public void SetЦенаNull() {
  3630. this[this.tableЗаказы.ЦенаColumn] = global::System.Convert.DBNull;
  3631. }
  3632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3634. public bool IsСтатусNull() {
  3635. return this.IsNull(this.tableЗаказы.СтатусColumn);
  3636. }
  3637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3639. public void SetСтатусNull() {
  3640. this[this.tableЗаказы.СтатусColumn] = global::System.Convert.DBNull;
  3641. }
  3642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3644. public ЗаказаныеБНRow[] GetЗаказаныеБНRows() {
  3645. if ((this.Table.ChildRelations["FK_ЗаказаныеБН_Заказы1"] == null)) {
  3646. return new ЗаказаныеБНRow[0];
  3647. }
  3648. else {
  3649. return ((ЗаказаныеБНRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ЗаказаныеБН_Заказы1"])));
  3650. }
  3651. }
  3652. }
  3653. /// <summary>
  3654. ///Represents strongly named DataRow class.
  3655. ///</summary>
  3656. public partial class ОфициантыRow : global::System.Data.DataRow {
  3657. private ОфициантыDataTable tableОфицианты;
  3658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3660. internal ОфициантыRow(global::System.Data.DataRowBuilder rb) :
  3661. base(rb) {
  3662. this.tableОфицианты = ((ОфициантыDataTable)(this.Table));
  3663. }
  3664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3666. public long ID {
  3667. get {
  3668. return ((long)(this[this.tableОфицианты.IDColumn]));
  3669. }
  3670. set {
  3671. this[this.tableОфицианты.IDColumn] = value;
  3672. }
  3673. }
  3674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3676. public string Имя {
  3677. get {
  3678. try {
  3679. return ((string)(this[this.tableОфицианты.ИмяColumn]));
  3680. }
  3681. catch (global::System.InvalidCastException e) {
  3682. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'Официанты\' равно DBNull.", e);
  3683. }
  3684. }
  3685. set {
  3686. this[this.tableОфицианты.ИмяColumn] = value;
  3687. }
  3688. }
  3689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3691. public string Фамилия {
  3692. get {
  3693. try {
  3694. return ((string)(this[this.tableОфицианты.ФамилияColumn]));
  3695. }
  3696. catch (global::System.InvalidCastException e) {
  3697. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Официанты\' равно DBNull.", e);
  3698. }
  3699. }
  3700. set {
  3701. this[this.tableОфицианты.ФамилияColumn] = value;
  3702. }
  3703. }
  3704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3706. public long ID_Сотрудника {
  3707. get {
  3708. try {
  3709. return ((long)(this[this.tableОфицианты.ID_СотрудникаColumn]));
  3710. }
  3711. catch (global::System.InvalidCastException e) {
  3712. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Сотрудника\' в таблице \'Официанты\' равно DBNull.", e);
  3713. }
  3714. }
  3715. set {
  3716. this[this.tableОфицианты.ID_СотрудникаColumn] = value;
  3717. }
  3718. }
  3719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3721. public СотрудникиRow СотрудникиRow {
  3722. get {
  3723. return ((СотрудникиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Официанты_Сотрудники"])));
  3724. }
  3725. set {
  3726. this.SetParentRow(value, this.Table.ParentRelations["FK_Официанты_Сотрудники"]);
  3727. }
  3728. }
  3729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3731. public bool IsИмяNull() {
  3732. return this.IsNull(this.tableОфицианты.ИмяColumn);
  3733. }
  3734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3736. public void SetИмяNull() {
  3737. this[this.tableОфицианты.ИмяColumn] = global::System.Convert.DBNull;
  3738. }
  3739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3741. public bool IsФамилияNull() {
  3742. return this.IsNull(this.tableОфицианты.ФамилияColumn);
  3743. }
  3744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3746. public void SetФамилияNull() {
  3747. this[this.tableОфицианты.ФамилияColumn] = global::System.Convert.DBNull;
  3748. }
  3749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3751. public bool IsID_СотрудникаNull() {
  3752. return this.IsNull(this.tableОфицианты.ID_СотрудникаColumn);
  3753. }
  3754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3756. public void SetID_СотрудникаNull() {
  3757. this[this.tableОфицианты.ID_СотрудникаColumn] = global::System.Convert.DBNull;
  3758. }
  3759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3761. public СменыRow[] GetСменыRows() {
  3762. if ((this.Table.ChildRelations["FK_Смены_Официанты"] == null)) {
  3763. return new СменыRow[0];
  3764. }
  3765. else {
  3766. return ((СменыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Смены_Официанты"])));
  3767. }
  3768. }
  3769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3771. public СотрудникиRow[] GetСотрудникиRows() {
  3772. if ((this.Table.ChildRelations["FK_Сотрудники_Официанты"] == null)) {
  3773. return new СотрудникиRow[0];
  3774. }
  3775. else {
  3776. return ((СотрудникиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Сотрудники_Официанты"])));
  3777. }
  3778. }
  3779. }
  3780. /// <summary>
  3781. ///Represents strongly named DataRow class.
  3782. ///</summary>
  3783. public partial class ПовараRow : global::System.Data.DataRow {
  3784. private ПовараDataTable tableПовара;
  3785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3787. internal ПовараRow(global::System.Data.DataRowBuilder rb) :
  3788. base(rb) {
  3789. this.tableПовара = ((ПовараDataTable)(this.Table));
  3790. }
  3791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3793. public long ID {
  3794. get {
  3795. return ((long)(this[this.tableПовара.IDColumn]));
  3796. }
  3797. set {
  3798. this[this.tableПовара.IDColumn] = value;
  3799. }
  3800. }
  3801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3803. public string Фамилия {
  3804. get {
  3805. try {
  3806. return ((string)(this[this.tableПовара.ФамилияColumn]));
  3807. }
  3808. catch (global::System.InvalidCastException e) {
  3809. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Повара\' равно DBNull.", e);
  3810. }
  3811. }
  3812. set {
  3813. this[this.tableПовара.ФамилияColumn] = value;
  3814. }
  3815. }
  3816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3818. public string Имя {
  3819. get {
  3820. try {
  3821. return ((string)(this[this.tableПовара.ИмяColumn]));
  3822. }
  3823. catch (global::System.InvalidCastException e) {
  3824. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'Повара\' равно DBNull.", e);
  3825. }
  3826. }
  3827. set {
  3828. this[this.tableПовара.ИмяColumn] = value;
  3829. }
  3830. }
  3831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3833. public long ID_Сотрудника {
  3834. get {
  3835. try {
  3836. return ((long)(this[this.tableПовара.ID_СотрудникаColumn]));
  3837. }
  3838. catch (global::System.InvalidCastException e) {
  3839. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Сотрудника\' в таблице \'Повара\' равно DBNull.", e);
  3840. }
  3841. }
  3842. set {
  3843. this[this.tableПовара.ID_СотрудникаColumn] = value;
  3844. }
  3845. }
  3846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3848. public СотрудникиRow СотрудникиRow {
  3849. get {
  3850. return ((СотрудникиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Повара_Сотрудники"])));
  3851. }
  3852. set {
  3853. this.SetParentRow(value, this.Table.ParentRelations["FK_Повара_Сотрудники"]);
  3854. }
  3855. }
  3856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3858. public bool IsФамилияNull() {
  3859. return this.IsNull(this.tableПовара.ФамилияColumn);
  3860. }
  3861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3863. public void SetФамилияNull() {
  3864. this[this.tableПовара.ФамилияColumn] = global::System.Convert.DBNull;
  3865. }
  3866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3868. public bool IsИмяNull() {
  3869. return this.IsNull(this.tableПовара.ИмяColumn);
  3870. }
  3871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3873. public void SetИмяNull() {
  3874. this[this.tableПовара.ИмяColumn] = global::System.Convert.DBNull;
  3875. }
  3876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3878. public bool IsID_СотрудникаNull() {
  3879. return this.IsNull(this.tableПовара.ID_СотрудникаColumn);
  3880. }
  3881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3883. public void SetID_СотрудникаNull() {
  3884. this[this.tableПовара.ID_СотрудникаColumn] = global::System.Convert.DBNull;
  3885. }
  3886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3888. public СменыRow[] GetСменыRows() {
  3889. if ((this.Table.ChildRelations["FK_Смены_Повара"] == null)) {
  3890. return new СменыRow[0];
  3891. }
  3892. else {
  3893. return ((СменыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Смены_Повара"])));
  3894. }
  3895. }
  3896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3898. public СотрудникиRow[] GetСотрудникиRows() {
  3899. if ((this.Table.ChildRelations["FK_Сотрудники_Повара"] == null)) {
  3900. return new СотрудникиRow[0];
  3901. }
  3902. else {
  3903. return ((СотрудникиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Сотрудники_Повара"])));
  3904. }
  3905. }
  3906. }
  3907. /// <summary>
  3908. ///Represents strongly named DataRow class.
  3909. ///</summary>
  3910. public partial class РолиRow : global::System.Data.DataRow {
  3911. private РолиDataTable tableРоли;
  3912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3914. internal РолиRow(global::System.Data.DataRowBuilder rb) :
  3915. base(rb) {
  3916. this.tableРоли = ((РолиDataTable)(this.Table));
  3917. }
  3918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3920. public long ID {
  3921. get {
  3922. return ((long)(this[this.tableРоли.IDColumn]));
  3923. }
  3924. set {
  3925. this[this.tableРоли.IDColumn] = value;
  3926. }
  3927. }
  3928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3930. public string Название_роли {
  3931. get {
  3932. try {
  3933. return ((string)(this[this.tableРоли.Название_ролиColumn]));
  3934. }
  3935. catch (global::System.InvalidCastException e) {
  3936. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название_роли\' в таблице \'Роли\' равно DBNull.", e);
  3937. }
  3938. }
  3939. set {
  3940. this[this.tableРоли.Название_ролиColumn] = value;
  3941. }
  3942. }
  3943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3945. public bool IsНазвание_ролиNull() {
  3946. return this.IsNull(this.tableРоли.Название_ролиColumn);
  3947. }
  3948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3950. public void SetНазвание_ролиNull() {
  3951. this[this.tableРоли.Название_ролиColumn] = global::System.Convert.DBNull;
  3952. }
  3953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3955. public СотрудникиRow[] GetСотрудникиRows() {
  3956. if ((this.Table.ChildRelations["FK_Сотрудники_Роли"] == null)) {
  3957. return new СотрудникиRow[0];
  3958. }
  3959. else {
  3960. return ((СотрудникиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Сотрудники_Роли"])));
  3961. }
  3962. }
  3963. }
  3964. /// <summary>
  3965. ///Represents strongly named DataRow class.
  3966. ///</summary>
  3967. public partial class СменыRow : global::System.Data.DataRow {
  3968. private СменыDataTable tableСмены;
  3969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3971. internal СменыRow(global::System.Data.DataRowBuilder rb) :
  3972. base(rb) {
  3973. this.tableСмены = ((СменыDataTable)(this.Table));
  3974. }
  3975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3977. public long ID {
  3978. get {
  3979. return ((long)(this[this.tableСмены.IDColumn]));
  3980. }
  3981. set {
  3982. this[this.tableСмены.IDColumn] = value;
  3983. }
  3984. }
  3985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3987. public System.DateTime Дата {
  3988. get {
  3989. try {
  3990. return ((global::System.DateTime)(this[this.tableСмены.ДатаColumn]));
  3991. }
  3992. catch (global::System.InvalidCastException e) {
  3993. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Смены\' равно DBNull.", e);
  3994. }
  3995. }
  3996. set {
  3997. this[this.tableСмены.ДатаColumn] = value;
  3998. }
  3999. }
  4000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4002. public long Официант {
  4003. get {
  4004. try {
  4005. return ((long)(this[this.tableСмены.ОфициантColumn]));
  4006. }
  4007. catch (global::System.InvalidCastException e) {
  4008. throw new global::System.Data.StrongTypingException("Значение для столбца \'Официант\' в таблице \'Смены\' равно DBNull.", e);
  4009. }
  4010. }
  4011. set {
  4012. this[this.tableСмены.ОфициантColumn] = value;
  4013. }
  4014. }
  4015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4017. public long Повар {
  4018. get {
  4019. try {
  4020. return ((long)(this[this.tableСмены.ПоварColumn]));
  4021. }
  4022. catch (global::System.InvalidCastException e) {
  4023. throw new global::System.Data.StrongTypingException("Значение для столбца \'Повар\' в таблице \'Смены\' равно DBNull.", e);
  4024. }
  4025. }
  4026. set {
  4027. this[this.tableСмены.ПоварColumn] = value;
  4028. }
  4029. }
  4030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4032. public ОфициантыRow ОфициантыRow {
  4033. get {
  4034. return ((ОфициантыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Смены_Официанты"])));
  4035. }
  4036. set {
  4037. this.SetParentRow(value, this.Table.ParentRelations["FK_Смены_Официанты"]);
  4038. }
  4039. }
  4040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4042. public ПовараRow ПовараRow {
  4043. get {
  4044. return ((ПовараRow)(this.GetParentRow(this.Table.ParentRelations["FK_Смены_Повара"])));
  4045. }
  4046. set {
  4047. this.SetParentRow(value, this.Table.ParentRelations["FK_Смены_Повара"]);
  4048. }
  4049. }
  4050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4052. public bool IsДатаNull() {
  4053. return this.IsNull(this.tableСмены.ДатаColumn);
  4054. }
  4055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4057. public void SetДатаNull() {
  4058. this[this.tableСмены.ДатаColumn] = global::System.Convert.DBNull;
  4059. }
  4060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4062. public bool IsОфициантNull() {
  4063. return this.IsNull(this.tableСмены.ОфициантColumn);
  4064. }
  4065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4067. public void SetОфициантNull() {
  4068. this[this.tableСмены.ОфициантColumn] = global::System.Convert.DBNull;
  4069. }
  4070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4072. public bool IsПоварNull() {
  4073. return this.IsNull(this.tableСмены.ПоварColumn);
  4074. }
  4075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4077. public void SetПоварNull() {
  4078. this[this.tableСмены.ПоварColumn] = global::System.Convert.DBNull;
  4079. }
  4080. }
  4081. /// <summary>
  4082. ///Represents strongly named DataRow class.
  4083. ///</summary>
  4084. public partial class СотрудникиRow : global::System.Data.DataRow {
  4085. private СотрудникиDataTable tableСотрудники;
  4086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4088. internal СотрудникиRow(global::System.Data.DataRowBuilder rb) :
  4089. base(rb) {
  4090. this.tableСотрудники = ((СотрудникиDataTable)(this.Table));
  4091. }
  4092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4094. public long ID {
  4095. get {
  4096. return ((long)(this[this.tableСотрудники.IDColumn]));
  4097. }
  4098. set {
  4099. this[this.tableСотрудники.IDColumn] = value;
  4100. }
  4101. }
  4102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4104. public string Логин {
  4105. get {
  4106. try {
  4107. return ((string)(this[this.tableСотрудники.ЛогинColumn]));
  4108. }
  4109. catch (global::System.InvalidCastException e) {
  4110. throw new global::System.Data.StrongTypingException("Значение для столбца \'Логин\' в таблице \'Сотрудники\' равно DBNull.", e);
  4111. }
  4112. }
  4113. set {
  4114. this[this.tableСотрудники.ЛогинColumn] = value;
  4115. }
  4116. }
  4117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4119. public string Пароль {
  4120. get {
  4121. try {
  4122. return ((string)(this[this.tableСотрудники.ПарольColumn]));
  4123. }
  4124. catch (global::System.InvalidCastException e) {
  4125. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пароль\' в таблице \'Сотрудники\' равно DBNull.", e);
  4126. }
  4127. }
  4128. set {
  4129. this[this.tableСотрудники.ПарольColumn] = value;
  4130. }
  4131. }
  4132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4134. public long Роль {
  4135. get {
  4136. try {
  4137. return ((long)(this[this.tableСотрудники.РольColumn]));
  4138. }
  4139. catch (global::System.InvalidCastException e) {
  4140. throw new global::System.Data.StrongTypingException("Значение для столбца \'Роль\' в таблице \'Сотрудники\' равно DBNull.", e);
  4141. }
  4142. }
  4143. set {
  4144. this[this.tableСотрудники.РольColumn] = value;
  4145. }
  4146. }
  4147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4149. public System.DateTime Принят {
  4150. get {
  4151. try {
  4152. return ((global::System.DateTime)(this[this.tableСотрудники.ПринятColumn]));
  4153. }
  4154. catch (global::System.InvalidCastException e) {
  4155. throw new global::System.Data.StrongTypingException("Значение для столбца \'Принят\' в таблице \'Сотрудники\' равно DBNull.", e);
  4156. }
  4157. }
  4158. set {
  4159. this[this.tableСотрудники.ПринятColumn] = value;
  4160. }
  4161. }
  4162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4164. public long Статус {
  4165. get {
  4166. try {
  4167. return ((long)(this[this.tableСотрудники.СтатусColumn]));
  4168. }
  4169. catch (global::System.InvalidCastException e) {
  4170. throw new global::System.Data.StrongTypingException("Значение для столбца \'Статус\' в таблице \'Сотрудники\' равно DBNull.", e);
  4171. }
  4172. }
  4173. set {
  4174. this[this.tableСотрудники.СтатусColumn] = value;
  4175. }
  4176. }
  4177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4179. public ОфициантыRow ОфициантыRow {
  4180. get {
  4181. return ((ОфициантыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Сотрудники_Официанты"])));
  4182. }
  4183. set {
  4184. this.SetParentRow(value, this.Table.ParentRelations["FK_Сотрудники_Официанты"]);
  4185. }
  4186. }
  4187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4189. public ПовараRow ПовараRow {
  4190. get {
  4191. return ((ПовараRow)(this.GetParentRow(this.Table.ParentRelations["FK_Сотрудники_Повара"])));
  4192. }
  4193. set {
  4194. this.SetParentRow(value, this.Table.ParentRelations["FK_Сотрудники_Повара"]);
  4195. }
  4196. }
  4197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4199. public РолиRow РолиRow {
  4200. get {
  4201. return ((РолиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Сотрудники_Роли"])));
  4202. }
  4203. set {
  4204. this.SetParentRow(value, this.Table.ParentRelations["FK_Сотрудники_Роли"]);
  4205. }
  4206. }
  4207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4209. public СтатусыСотрудниковRow СтатусыСотрудниковRow {
  4210. get {
  4211. return ((СтатусыСотрудниковRow)(this.GetParentRow(this.Table.ParentRelations["FK_Сотрудники_СтатусыСотрудников"])));
  4212. }
  4213. set {
  4214. this.SetParentRow(value, this.Table.ParentRelations["FK_Сотрудники_СтатусыСотрудников"]);
  4215. }
  4216. }
  4217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4219. public bool IsЛогинNull() {
  4220. return this.IsNull(this.tableСотрудники.ЛогинColumn);
  4221. }
  4222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4224. public void SetЛогинNull() {
  4225. this[this.tableСотрудники.ЛогинColumn] = global::System.Convert.DBNull;
  4226. }
  4227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4229. public bool IsПарольNull() {
  4230. return this.IsNull(this.tableСотрудники.ПарольColumn);
  4231. }
  4232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4234. public void SetПарольNull() {
  4235. this[this.tableСотрудники.ПарольColumn] = global::System.Convert.DBNull;
  4236. }
  4237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4239. public bool IsРольNull() {
  4240. return this.IsNull(this.tableСотрудники.РольColumn);
  4241. }
  4242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4244. public void SetРольNull() {
  4245. this[this.tableСотрудники.РольColumn] = global::System.Convert.DBNull;
  4246. }
  4247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4249. public bool IsПринятNull() {
  4250. return this.IsNull(this.tableСотрудники.ПринятColumn);
  4251. }
  4252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4254. public void SetПринятNull() {
  4255. this[this.tableСотрудники.ПринятColumn] = global::System.Convert.DBNull;
  4256. }
  4257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4259. public bool IsСтатусNull() {
  4260. return this.IsNull(this.tableСотрудники.СтатусColumn);
  4261. }
  4262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4264. public void SetСтатусNull() {
  4265. this[this.tableСотрудники.СтатусColumn] = global::System.Convert.DBNull;
  4266. }
  4267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4269. public ОфициантыRow[] GetОфициантыRows() {
  4270. if ((this.Table.ChildRelations["FK_Официанты_Сотрудники"] == null)) {
  4271. return new ОфициантыRow[0];
  4272. }
  4273. else {
  4274. return ((ОфициантыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Официанты_Сотрудники"])));
  4275. }
  4276. }
  4277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4279. public ПовараRow[] GetПовараRows() {
  4280. if ((this.Table.ChildRelations["FK_Повара_Сотрудники"] == null)) {
  4281. return new ПовараRow[0];
  4282. }
  4283. else {
  4284. return ((ПовараRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Повара_Сотрудники"])));
  4285. }
  4286. }
  4287. }
  4288. /// <summary>
  4289. ///Represents strongly named DataRow class.
  4290. ///</summary>
  4291. public partial class СтатусыЗаказаRow : global::System.Data.DataRow {
  4292. private СтатусыЗаказаDataTable tableСтатусыЗаказа;
  4293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4295. internal СтатусыЗаказаRow(global::System.Data.DataRowBuilder rb) :
  4296. base(rb) {
  4297. this.tableСтатусыЗаказа = ((СтатусыЗаказаDataTable)(this.Table));
  4298. }
  4299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4301. public long ID {
  4302. get {
  4303. return ((long)(this[this.tableСтатусыЗаказа.IDColumn]));
  4304. }
  4305. set {
  4306. this[this.tableСтатусыЗаказа.IDColumn] = value;
  4307. }
  4308. }
  4309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4311. public string Название_статуса {
  4312. get {
  4313. try {
  4314. return ((string)(this[this.tableСтатусыЗаказа.Название_статусаColumn]));
  4315. }
  4316. catch (global::System.InvalidCastException e) {
  4317. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название_статуса\' в таблице \'СтатусыЗаказа\' равно DBNull.", e);
  4318. }
  4319. }
  4320. set {
  4321. this[this.tableСтатусыЗаказа.Название_статусаColumn] = value;
  4322. }
  4323. }
  4324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4326. public bool IsНазвание_статусаNull() {
  4327. return this.IsNull(this.tableСтатусыЗаказа.Название_статусаColumn);
  4328. }
  4329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4331. public void SetНазвание_статусаNull() {
  4332. this[this.tableСтатусыЗаказа.Название_статусаColumn] = global::System.Convert.DBNull;
  4333. }
  4334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4336. public ЗаказыRow[] GetЗаказыRows() {
  4337. if ((this.Table.ChildRelations["FK_Заказы_СтатусыЗаказа"] == null)) {
  4338. return new ЗаказыRow[0];
  4339. }
  4340. else {
  4341. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_СтатусыЗаказа"])));
  4342. }
  4343. }
  4344. }
  4345. /// <summary>
  4346. ///Represents strongly named DataRow class.
  4347. ///</summary>
  4348. public partial class СтатусыСотрудниковRow : global::System.Data.DataRow {
  4349. private СтатусыСотрудниковDataTable tableСтатусыСотрудников;
  4350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4352. internal СтатусыСотрудниковRow(global::System.Data.DataRowBuilder rb) :
  4353. base(rb) {
  4354. this.tableСтатусыСотрудников = ((СтатусыСотрудниковDataTable)(this.Table));
  4355. }
  4356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4358. public long ID {
  4359. get {
  4360. return ((long)(this[this.tableСтатусыСотрудников.IDColumn]));
  4361. }
  4362. set {
  4363. this[this.tableСтатусыСотрудников.IDColumn] = value;
  4364. }
  4365. }
  4366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4368. public string Название_статуса {
  4369. get {
  4370. try {
  4371. return ((string)(this[this.tableСтатусыСотрудников.Название_статусаColumn]));
  4372. }
  4373. catch (global::System.InvalidCastException e) {
  4374. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название_статуса\' в таблице \'СтатусыСотрудников\' равно DBNu" +
  4375. "ll.", e);
  4376. }
  4377. }
  4378. set {
  4379. this[this.tableСтатусыСотрудников.Название_статусаColumn] = value;
  4380. }
  4381. }
  4382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4384. public bool IsНазвание_статусаNull() {
  4385. return this.IsNull(this.tableСтатусыСотрудников.Название_статусаColumn);
  4386. }
  4387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4389. public void SetНазвание_статусаNull() {
  4390. this[this.tableСтатусыСотрудников.Название_статусаColumn] = global::System.Convert.DBNull;
  4391. }
  4392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4394. public СотрудникиRow[] GetСотрудникиRows() {
  4395. if ((this.Table.ChildRelations["FK_Сотрудники_СтатусыСотрудников"] == null)) {
  4396. return new СотрудникиRow[0];
  4397. }
  4398. else {
  4399. return ((СотрудникиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Сотрудники_СтатусыСотрудников"])));
  4400. }
  4401. }
  4402. }
  4403. /// <summary>
  4404. ///Row event argument class
  4405. ///</summary>
  4406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4407. public class БлюдаНапиткиRowChangeEvent : global::System.EventArgs {
  4408. private БлюдаНапиткиRow eventRow;
  4409. private global::System.Data.DataRowAction eventAction;
  4410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4412. public БлюдаНапиткиRowChangeEvent(БлюдаНапиткиRow row, global::System.Data.DataRowAction action) {
  4413. this.eventRow = row;
  4414. this.eventAction = action;
  4415. }
  4416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4418. public БлюдаНапиткиRow Row {
  4419. get {
  4420. return this.eventRow;
  4421. }
  4422. }
  4423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4425. public global::System.Data.DataRowAction Action {
  4426. get {
  4427. return this.eventAction;
  4428. }
  4429. }
  4430. }
  4431. /// <summary>
  4432. ///Row event argument class
  4433. ///</summary>
  4434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4435. public class ЗаказаныеБНRowChangeEvent : global::System.EventArgs {
  4436. private ЗаказаныеБНRow eventRow;
  4437. private global::System.Data.DataRowAction eventAction;
  4438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4440. public ЗаказаныеБНRowChangeEvent(ЗаказаныеБНRow row, global::System.Data.DataRowAction action) {
  4441. this.eventRow = row;
  4442. this.eventAction = action;
  4443. }
  4444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4446. public ЗаказаныеБНRow Row {
  4447. get {
  4448. return this.eventRow;
  4449. }
  4450. }
  4451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4453. public global::System.Data.DataRowAction Action {
  4454. get {
  4455. return this.eventAction;
  4456. }
  4457. }
  4458. }
  4459. /// <summary>
  4460. ///Row event argument class
  4461. ///</summary>
  4462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4463. public class ЗаказыRowChangeEvent : global::System.EventArgs {
  4464. private ЗаказыRow eventRow;
  4465. private global::System.Data.DataRowAction eventAction;
  4466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4468. public ЗаказыRowChangeEvent(ЗаказыRow row, global::System.Data.DataRowAction action) {
  4469. this.eventRow = row;
  4470. this.eventAction = action;
  4471. }
  4472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4474. public ЗаказыRow Row {
  4475. get {
  4476. return this.eventRow;
  4477. }
  4478. }
  4479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4481. public global::System.Data.DataRowAction Action {
  4482. get {
  4483. return this.eventAction;
  4484. }
  4485. }
  4486. }
  4487. /// <summary>
  4488. ///Row event argument class
  4489. ///</summary>
  4490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4491. public class ОфициантыRowChangeEvent : global::System.EventArgs {
  4492. private ОфициантыRow eventRow;
  4493. private global::System.Data.DataRowAction eventAction;
  4494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4496. public ОфициантыRowChangeEvent(ОфициантыRow row, global::System.Data.DataRowAction action) {
  4497. this.eventRow = row;
  4498. this.eventAction = action;
  4499. }
  4500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4502. public ОфициантыRow Row {
  4503. get {
  4504. return this.eventRow;
  4505. }
  4506. }
  4507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4509. public global::System.Data.DataRowAction Action {
  4510. get {
  4511. return this.eventAction;
  4512. }
  4513. }
  4514. }
  4515. /// <summary>
  4516. ///Row event argument class
  4517. ///</summary>
  4518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4519. public class ПовараRowChangeEvent : global::System.EventArgs {
  4520. private ПовараRow eventRow;
  4521. private global::System.Data.DataRowAction eventAction;
  4522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4524. public ПовараRowChangeEvent(ПовараRow row, global::System.Data.DataRowAction action) {
  4525. this.eventRow = row;
  4526. this.eventAction = action;
  4527. }
  4528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4530. public ПовараRow Row {
  4531. get {
  4532. return this.eventRow;
  4533. }
  4534. }
  4535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4537. public global::System.Data.DataRowAction Action {
  4538. get {
  4539. return this.eventAction;
  4540. }
  4541. }
  4542. }
  4543. /// <summary>
  4544. ///Row event argument class
  4545. ///</summary>
  4546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4547. public class РолиRowChangeEvent : global::System.EventArgs {
  4548. private РолиRow eventRow;
  4549. private global::System.Data.DataRowAction eventAction;
  4550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4552. public РолиRowChangeEvent(РолиRow row, global::System.Data.DataRowAction action) {
  4553. this.eventRow = row;
  4554. this.eventAction = action;
  4555. }
  4556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4558. public РолиRow Row {
  4559. get {
  4560. return this.eventRow;
  4561. }
  4562. }
  4563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4565. public global::System.Data.DataRowAction Action {
  4566. get {
  4567. return this.eventAction;
  4568. }
  4569. }
  4570. }
  4571. /// <summary>
  4572. ///Row event argument class
  4573. ///</summary>
  4574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4575. public class СменыRowChangeEvent : global::System.EventArgs {
  4576. private СменыRow eventRow;
  4577. private global::System.Data.DataRowAction eventAction;
  4578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4580. public СменыRowChangeEvent(СменыRow row, global::System.Data.DataRowAction action) {
  4581. this.eventRow = row;
  4582. this.eventAction = action;
  4583. }
  4584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4586. public СменыRow Row {
  4587. get {
  4588. return this.eventRow;
  4589. }
  4590. }
  4591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4593. public global::System.Data.DataRowAction Action {
  4594. get {
  4595. return this.eventAction;
  4596. }
  4597. }
  4598. }
  4599. /// <summary>
  4600. ///Row event argument class
  4601. ///</summary>
  4602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4603. public class СотрудникиRowChangeEvent : global::System.EventArgs {
  4604. private СотрудникиRow eventRow;
  4605. private global::System.Data.DataRowAction eventAction;
  4606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4608. public СотрудникиRowChangeEvent(СотрудникиRow row, global::System.Data.DataRowAction action) {
  4609. this.eventRow = row;
  4610. this.eventAction = action;
  4611. }
  4612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4614. public СотрудникиRow Row {
  4615. get {
  4616. return this.eventRow;
  4617. }
  4618. }
  4619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4621. public global::System.Data.DataRowAction Action {
  4622. get {
  4623. return this.eventAction;
  4624. }
  4625. }
  4626. }
  4627. /// <summary>
  4628. ///Row event argument class
  4629. ///</summary>
  4630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4631. public class СтатусыЗаказаRowChangeEvent : global::System.EventArgs {
  4632. private СтатусыЗаказаRow eventRow;
  4633. private global::System.Data.DataRowAction eventAction;
  4634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4636. public СтатусыЗаказаRowChangeEvent(СтатусыЗаказаRow row, global::System.Data.DataRowAction action) {
  4637. this.eventRow = row;
  4638. this.eventAction = action;
  4639. }
  4640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4642. public СтатусыЗаказаRow Row {
  4643. get {
  4644. return this.eventRow;
  4645. }
  4646. }
  4647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4649. public global::System.Data.DataRowAction Action {
  4650. get {
  4651. return this.eventAction;
  4652. }
  4653. }
  4654. }
  4655. /// <summary>
  4656. ///Row event argument class
  4657. ///</summary>
  4658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4659. public class СтатусыСотрудниковRowChangeEvent : global::System.EventArgs {
  4660. private СтатусыСотрудниковRow eventRow;
  4661. private global::System.Data.DataRowAction eventAction;
  4662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4664. public СтатусыСотрудниковRowChangeEvent(СтатусыСотрудниковRow row, global::System.Data.DataRowAction action) {
  4665. this.eventRow = row;
  4666. this.eventAction = action;
  4667. }
  4668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4670. public СтатусыСотрудниковRow Row {
  4671. get {
  4672. return this.eventRow;
  4673. }
  4674. }
  4675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4677. public global::System.Data.DataRowAction Action {
  4678. get {
  4679. return this.eventAction;
  4680. }
  4681. }
  4682. }
  4683. }
  4684. }
  4685. namespace kafe_Loriy.ОООКафе_ЛорийDataSetTableAdapters {
  4686. /// <summary>
  4687. ///Represents the connection and commands used to retrieve and save data.
  4688. ///</summary>
  4689. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4690. [global::System.ComponentModel.ToolboxItem(true)]
  4691. [global::System.ComponentModel.DataObjectAttribute(true)]
  4692. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4693. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4694. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4695. public partial class БлюдаНапиткиTableAdapter : global::System.ComponentModel.Component {
  4696. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4697. private global::System.Data.SqlClient.SqlConnection _connection;
  4698. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4699. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4700. private bool _clearBeforeFill;
  4701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4703. public БлюдаНапиткиTableAdapter() {
  4704. this.ClearBeforeFill = true;
  4705. }
  4706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4708. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4709. get {
  4710. if ((this._adapter == null)) {
  4711. this.InitAdapter();
  4712. }
  4713. return this._adapter;
  4714. }
  4715. }
  4716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4718. internal global::System.Data.SqlClient.SqlConnection Connection {
  4719. get {
  4720. if ((this._connection == null)) {
  4721. this.InitConnection();
  4722. }
  4723. return this._connection;
  4724. }
  4725. set {
  4726. this._connection = value;
  4727. if ((this.Adapter.InsertCommand != null)) {
  4728. this.Adapter.InsertCommand.Connection = value;
  4729. }
  4730. if ((this.Adapter.DeleteCommand != null)) {
  4731. this.Adapter.DeleteCommand.Connection = value;
  4732. }
  4733. if ((this.Adapter.UpdateCommand != null)) {
  4734. this.Adapter.UpdateCommand.Connection = value;
  4735. }
  4736. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4737. if ((this.CommandCollection[i] != null)) {
  4738. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4739. }
  4740. }
  4741. }
  4742. }
  4743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4745. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4746. get {
  4747. return this._transaction;
  4748. }
  4749. set {
  4750. this._transaction = value;
  4751. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4752. this.CommandCollection[i].Transaction = this._transaction;
  4753. }
  4754. if (((this.Adapter != null)
  4755. && (this.Adapter.DeleteCommand != null))) {
  4756. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4757. }
  4758. if (((this.Adapter != null)
  4759. && (this.Adapter.InsertCommand != null))) {
  4760. this.Adapter.InsertCommand.Transaction = this._transaction;
  4761. }
  4762. if (((this.Adapter != null)
  4763. && (this.Adapter.UpdateCommand != null))) {
  4764. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4765. }
  4766. }
  4767. }
  4768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4770. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4771. get {
  4772. if ((this._commandCollection == null)) {
  4773. this.InitCommandCollection();
  4774. }
  4775. return this._commandCollection;
  4776. }
  4777. }
  4778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4780. public bool ClearBeforeFill {
  4781. get {
  4782. return this._clearBeforeFill;
  4783. }
  4784. set {
  4785. this._clearBeforeFill = value;
  4786. }
  4787. }
  4788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4790. private void InitAdapter() {
  4791. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4792. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4793. tableMapping.SourceTable = "Table";
  4794. tableMapping.DataSetTable = "БлюдаНапитки";
  4795. tableMapping.ColumnMappings.Add("ID", "ID");
  4796. tableMapping.ColumnMappings.Add("Название_Б_Н", "Название_Б_Н");
  4797. tableMapping.ColumnMappings.Add("Цена", "Цена");
  4798. this._adapter.TableMappings.Add(tableMapping);
  4799. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4800. this._adapter.DeleteCommand.Connection = this.Connection;
  4801. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[БлюдаНапитки] WHERE (([ID] = @Original_ID) AND ((@IsNull_Назва" +
  4802. "ние_Б_Н = 1 AND [Название_Б_Н] IS NULL) OR ([Название_Б_Н] = @Original_Название_" +
  4803. "Б_Н)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)))";
  4804. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4805. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4806. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Название_Б_Н", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название_Б_Н", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4807. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название_Б_Н", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название_Б_Н", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4808. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Цена", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4809. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4810. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4811. this._adapter.InsertCommand.Connection = this.Connection;
  4812. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[БлюдаНапитки] ([Название_Б_Н], [Цена]) VALUES (@Название_Б_Н, " +
  4813. "@Цена);\r\nSELECT ID, Название_Б_Н, Цена FROM БлюдаНапитки WHERE (ID = SCOPE_IDENT" +
  4814. "ITY())";
  4815. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4816. 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, "", "", ""));
  4817. 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, "", "", ""));
  4818. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4819. this._adapter.UpdateCommand.Connection = this.Connection;
  4820. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[БлюдаНапитки] SET [Название_Б_Н] = @Название_Б_Н, [Цена] = @Цена WHERE (([ID] = @Original_ID) AND ((@IsNull_Название_Б_Н = 1 AND [Название_Б_Н] IS NULL) OR ([Название_Б_Н] = @Original_Название_Б_Н)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)));
  4821. SELECT ID, Название_Б_Н, Цена FROM БлюдаНапитки WHERE (ID = @ID)";
  4822. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4823. 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, "", "", ""));
  4824. 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, "", "", ""));
  4825. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4826. 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, "", "", ""));
  4827. 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, "", "", ""));
  4828. 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, "", "", ""));
  4829. 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, "", "", ""));
  4830. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4831. }
  4832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4834. private void InitConnection() {
  4835. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4836. this._connection.ConnectionString = global::kafe_Loriy.Properties.Settings.Default.ОООКафе_ЛорийConnectionString;
  4837. }
  4838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4840. private void InitCommandCollection() {
  4841. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4842. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4843. this._commandCollection[0].Connection = this.Connection;
  4844. this._commandCollection[0].CommandText = "SELECT ID, Название_Б_Н, Цена FROM dbo.БлюдаНапитки";
  4845. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4846. }
  4847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4849. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4850. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4851. public virtual int Fill(ОООКафе_ЛорийDataSet.БлюдаНапиткиDataTable dataTable) {
  4852. this.Adapter.SelectCommand = this.CommandCollection[0];
  4853. if ((this.ClearBeforeFill == true)) {
  4854. dataTable.Clear();
  4855. }
  4856. int returnValue = this.Adapter.Fill(dataTable);
  4857. return returnValue;
  4858. }
  4859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4861. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4862. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4863. public virtual ОООКафе_ЛорийDataSet.БлюдаНапиткиDataTable GetData() {
  4864. this.Adapter.SelectCommand = this.CommandCollection[0];
  4865. ОООКафе_ЛорийDataSet.БлюдаНапиткиDataTable dataTable = new ОООКафе_ЛорийDataSet.БлюдаНапиткиDataTable();
  4866. this.Adapter.Fill(dataTable);
  4867. return dataTable;
  4868. }
  4869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4871. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4872. public virtual int Update(ОООКафе_ЛорийDataSet.БлюдаНапиткиDataTable dataTable) {
  4873. return this.Adapter.Update(dataTable);
  4874. }
  4875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4877. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4878. public virtual int Update(ОООКафе_ЛорийDataSet dataSet) {
  4879. return this.Adapter.Update(dataSet, "БлюдаНапитки");
  4880. }
  4881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4883. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4884. public virtual int Update(global::System.Data.DataRow dataRow) {
  4885. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4886. dataRow});
  4887. }
  4888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4890. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4891. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4892. return this.Adapter.Update(dataRows);
  4893. }
  4894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4896. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4897. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4898. public virtual int Delete(long Original_ID, string Original_Название_Б_Н, global::System.Nullable<decimal> Original_Цена) {
  4899. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID));
  4900. if ((Original_Название_Б_Н == null)) {
  4901. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4902. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4903. }
  4904. else {
  4905. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4906. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название_Б_Н));
  4907. }
  4908. if ((Original_Цена.HasValue == true)) {
  4909. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4910. this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(Original_Цена.Value));
  4911. }
  4912. else {
  4913. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4914. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4915. }
  4916. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4917. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4918. != global::System.Data.ConnectionState.Open)) {
  4919. this.Adapter.DeleteCommand.Connection.Open();
  4920. }
  4921. try {
  4922. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4923. return returnValue;
  4924. }
  4925. finally {
  4926. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4927. this.Adapter.DeleteCommand.Connection.Close();
  4928. }
  4929. }
  4930. }
  4931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4933. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4934. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4935. public virtual int Insert(string Название_Б_Н, global::System.Nullable<decimal> Цена) {
  4936. if ((Название_Б_Н == null)) {
  4937. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4938. }
  4939. else {
  4940. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название_Б_Н));
  4941. }
  4942. if ((Цена.HasValue == true)) {
  4943. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  4944. }
  4945. else {
  4946. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4947. }
  4948. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4949. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4950. != global::System.Data.ConnectionState.Open)) {
  4951. this.Adapter.InsertCommand.Connection.Open();
  4952. }
  4953. try {
  4954. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4955. return returnValue;
  4956. }
  4957. finally {
  4958. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4959. this.Adapter.InsertCommand.Connection.Close();
  4960. }
  4961. }
  4962. }
  4963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4965. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4966. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4967. public virtual int Update(string Название_Б_Н, global::System.Nullable<decimal> Цена, long Original_ID, string Original_Название_Б_Н, global::System.Nullable<decimal> Original_Цена, long ID) {
  4968. if ((Название_Б_Н == null)) {
  4969. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4970. }
  4971. else {
  4972. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название_Б_Н));
  4973. }
  4974. if ((Цена.HasValue == true)) {
  4975. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Цена.Value));
  4976. }
  4977. else {
  4978. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4979. }
  4980. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(Original_ID));
  4981. if ((Original_Название_Б_Н == null)) {
  4982. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  4983. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4984. }
  4985. else {
  4986. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  4987. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Название_Б_Н));
  4988. }
  4989. if ((Original_Цена.HasValue == true)) {
  4990. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  4991. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(Original_Цена.Value));
  4992. }
  4993. else {
  4994. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  4995. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  4996. }
  4997. this.Adapter.UpdateCommand.Parameters[7].Value = ((long)(ID));
  4998. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4999. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5000. != global::System.Data.ConnectionState.Open)) {
  5001. this.Adapter.UpdateCommand.Connection.Open();
  5002. }
  5003. try {
  5004. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5005. return returnValue;
  5006. }
  5007. finally {
  5008. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5009. this.Adapter.UpdateCommand.Connection.Close();
  5010. }
  5011. }
  5012. }
  5013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5015. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5016. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5017. public virtual int Update(string Название_Б_Н, global::System.Nullable<decimal> Цена, long Original_ID, string Original_Название_Б_Н, global::System.Nullable<decimal> Original_Цена) {
  5018. return this.Update(Название_Б_Н, Цена, Original_ID, Original_Название_Б_Н, Original_Цена, Original_ID);
  5019. }
  5020. }
  5021. /// <summary>
  5022. ///Represents the connection and commands used to retrieve and save data.
  5023. ///</summary>
  5024. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5025. [global::System.ComponentModel.ToolboxItem(true)]
  5026. [global::System.ComponentModel.DataObjectAttribute(true)]
  5027. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5028. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5029. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5030. public partial class ЗаказаныеБНTableAdapter : global::System.ComponentModel.Component {
  5031. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5032. private global::System.Data.SqlClient.SqlConnection _connection;
  5033. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5034. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5035. private bool _clearBeforeFill;
  5036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5038. public ЗаказаныеБНTableAdapter() {
  5039. this.ClearBeforeFill = true;
  5040. }
  5041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5043. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5044. get {
  5045. if ((this._adapter == null)) {
  5046. this.InitAdapter();
  5047. }
  5048. return this._adapter;
  5049. }
  5050. }
  5051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5053. internal global::System.Data.SqlClient.SqlConnection Connection {
  5054. get {
  5055. if ((this._connection == null)) {
  5056. this.InitConnection();
  5057. }
  5058. return this._connection;
  5059. }
  5060. set {
  5061. this._connection = value;
  5062. if ((this.Adapter.InsertCommand != null)) {
  5063. this.Adapter.InsertCommand.Connection = value;
  5064. }
  5065. if ((this.Adapter.DeleteCommand != null)) {
  5066. this.Adapter.DeleteCommand.Connection = value;
  5067. }
  5068. if ((this.Adapter.UpdateCommand != null)) {
  5069. this.Adapter.UpdateCommand.Connection = value;
  5070. }
  5071. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5072. if ((this.CommandCollection[i] != null)) {
  5073. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5074. }
  5075. }
  5076. }
  5077. }
  5078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5080. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5081. get {
  5082. return this._transaction;
  5083. }
  5084. set {
  5085. this._transaction = value;
  5086. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5087. this.CommandCollection[i].Transaction = this._transaction;
  5088. }
  5089. if (((this.Adapter != null)
  5090. && (this.Adapter.DeleteCommand != null))) {
  5091. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5092. }
  5093. if (((this.Adapter != null)
  5094. && (this.Adapter.InsertCommand != null))) {
  5095. this.Adapter.InsertCommand.Transaction = this._transaction;
  5096. }
  5097. if (((this.Adapter != null)
  5098. && (this.Adapter.UpdateCommand != null))) {
  5099. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5100. }
  5101. }
  5102. }
  5103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5105. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5106. get {
  5107. if ((this._commandCollection == null)) {
  5108. this.InitCommandCollection();
  5109. }
  5110. return this._commandCollection;
  5111. }
  5112. }
  5113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5115. public bool ClearBeforeFill {
  5116. get {
  5117. return this._clearBeforeFill;
  5118. }
  5119. set {
  5120. this._clearBeforeFill = value;
  5121. }
  5122. }
  5123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5125. private void InitAdapter() {
  5126. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5127. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5128. tableMapping.SourceTable = "Table";
  5129. tableMapping.DataSetTable = "ЗаказаныеБН";
  5130. tableMapping.ColumnMappings.Add("ID", "ID");
  5131. tableMapping.ColumnMappings.Add("Заказ", "Заказ");
  5132. tableMapping.ColumnMappings.Add("ЗаказаноеБН", "ЗаказаноеБН");
  5133. tableMapping.ColumnMappings.Add("Цена", "Цена");
  5134. this._adapter.TableMappings.Add(tableMapping);
  5135. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5136. this._adapter.DeleteCommand.Connection = this.Connection;
  5137. 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_Цена)))";
  5138. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5139. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5140. 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, "", "", ""));
  5141. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Заказ", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Заказ", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5142. 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, "", "", ""));
  5143. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ЗаказаноеБН", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ЗаказаноеБН", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5144. 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, "", "", ""));
  5145. 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, "", "", ""));
  5146. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5147. this._adapter.InsertCommand.Connection = this.Connection;
  5148. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ЗаказаныеБН] ([Заказ], [ЗаказаноеБН], [Цена]) VALUES (@Заказ, " +
  5149. "@ЗаказаноеБН, @Цена);\r\nSELECT ID, Заказ, ЗаказаноеБН, Цена FROM ЗаказаныеБН WHER" +
  5150. "E (ID = SCOPE_IDENTITY())";
  5151. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5152. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Заказ", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Заказ", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5153. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ЗаказаноеБН", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ЗаказаноеБН", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5154. 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, "", "", ""));
  5155. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5156. this._adapter.UpdateCommand.Connection = this.Connection;
  5157. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ЗаказаныеБН] SET [Заказ] = @Заказ, [ЗаказаноеБН] = @ЗаказаноеБН, [Цена] = @Цена WHERE (([ID] = @Original_ID) AND ((@IsNull_Заказ = 1 AND [Заказ] IS NULL) OR ([Заказ] = @Original_Заказ)) AND ((@IsNull_ЗаказаноеБН = 1 AND [ЗаказаноеБН] IS NULL) OR ([ЗаказаноеБН] = @Original_ЗаказаноеБН)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)));
  5158. SELECT ID, Заказ, ЗаказаноеБН, Цена FROM ЗаказаныеБН WHERE (ID = @ID)";
  5159. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5160. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Заказ", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Заказ", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5161. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ЗаказаноеБН", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ЗаказаноеБН", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5162. 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, "", "", ""));
  5163. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5164. 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, "", "", ""));
  5165. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Заказ", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Заказ", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5166. 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, "", "", ""));
  5167. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ЗаказаноеБН", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ЗаказаноеБН", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5168. 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, "", "", ""));
  5169. 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, "", "", ""));
  5170. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5171. }
  5172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5174. private void InitConnection() {
  5175. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5176. this._connection.ConnectionString = global::kafe_Loriy.Properties.Settings.Default.ОООКафе_ЛорийConnectionString;
  5177. }
  5178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5180. private void InitCommandCollection() {
  5181. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5182. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5183. this._commandCollection[0].Connection = this.Connection;
  5184. this._commandCollection[0].CommandText = "SELECT ID, Заказ, ЗаказаноеБН, Цена FROM dbo.ЗаказаныеБН";
  5185. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5186. }
  5187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5189. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5190. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5191. public virtual int Fill(ОООКафе_ЛорийDataSet.ЗаказаныеБНDataTable dataTable) {
  5192. this.Adapter.SelectCommand = this.CommandCollection[0];
  5193. if ((this.ClearBeforeFill == true)) {
  5194. dataTable.Clear();
  5195. }
  5196. int returnValue = this.Adapter.Fill(dataTable);
  5197. return returnValue;
  5198. }
  5199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5201. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5202. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5203. public virtual ОООКафе_ЛорийDataSet.ЗаказаныеБНDataTable GetData() {
  5204. this.Adapter.SelectCommand = this.CommandCollection[0];
  5205. ОООКафе_ЛорийDataSet.ЗаказаныеБНDataTable dataTable = new ОООКафе_ЛорийDataSet.ЗаказаныеБНDataTable();
  5206. this.Adapter.Fill(dataTable);
  5207. return dataTable;
  5208. }
  5209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5211. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5212. public virtual int Update(ОООКафе_ЛорийDataSet.ЗаказаныеБНDataTable dataTable) {
  5213. return this.Adapter.Update(dataTable);
  5214. }
  5215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5217. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5218. public virtual int Update(ОООКафе_ЛорийDataSet dataSet) {
  5219. return this.Adapter.Update(dataSet, "ЗаказаныеБН");
  5220. }
  5221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5223. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5224. public virtual int Update(global::System.Data.DataRow dataRow) {
  5225. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5226. dataRow});
  5227. }
  5228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5230. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5231. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5232. return this.Adapter.Update(dataRows);
  5233. }
  5234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5236. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5237. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5238. public virtual int Delete(long Original_ID, global::System.Nullable<long> Original_Заказ, global::System.Nullable<long> Original_ЗаказаноеБН, global::System.Nullable<decimal> Original_Цена) {
  5239. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID));
  5240. if ((Original_Заказ.HasValue == true)) {
  5241. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5242. this.Adapter.DeleteCommand.Parameters[2].Value = ((long)(Original_Заказ.Value));
  5243. }
  5244. else {
  5245. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5246. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5247. }
  5248. if ((Original_ЗаказаноеБН.HasValue == true)) {
  5249. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5250. this.Adapter.DeleteCommand.Parameters[4].Value = ((long)(Original_ЗаказаноеБН.Value));
  5251. }
  5252. else {
  5253. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5254. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5255. }
  5256. if ((Original_Цена.HasValue == true)) {
  5257. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5258. this.Adapter.DeleteCommand.Parameters[6].Value = ((decimal)(Original_Цена.Value));
  5259. }
  5260. else {
  5261. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5262. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5263. }
  5264. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5265. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5266. != global::System.Data.ConnectionState.Open)) {
  5267. this.Adapter.DeleteCommand.Connection.Open();
  5268. }
  5269. try {
  5270. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5271. return returnValue;
  5272. }
  5273. finally {
  5274. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5275. this.Adapter.DeleteCommand.Connection.Close();
  5276. }
  5277. }
  5278. }
  5279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5281. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5282. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5283. public virtual int Insert(global::System.Nullable<long> Заказ, global::System.Nullable<long> ЗаказаноеБН, global::System.Nullable<decimal> Цена) {
  5284. if ((Заказ.HasValue == true)) {
  5285. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(Заказ.Value));
  5286. }
  5287. else {
  5288. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5289. }
  5290. if ((ЗаказаноеБН.HasValue == true)) {
  5291. this.Adapter.InsertCommand.Parameters[1].Value = ((long)(ЗаказаноеБН.Value));
  5292. }
  5293. else {
  5294. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5295. }
  5296. if ((Цена.HasValue == true)) {
  5297. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  5298. }
  5299. else {
  5300. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5301. }
  5302. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5303. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5304. != global::System.Data.ConnectionState.Open)) {
  5305. this.Adapter.InsertCommand.Connection.Open();
  5306. }
  5307. try {
  5308. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5309. return returnValue;
  5310. }
  5311. finally {
  5312. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5313. this.Adapter.InsertCommand.Connection.Close();
  5314. }
  5315. }
  5316. }
  5317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5319. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5320. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5321. public virtual int Update(global::System.Nullable<long> Заказ, global::System.Nullable<long> ЗаказаноеБН, global::System.Nullable<decimal> Цена, long Original_ID, global::System.Nullable<long> Original_Заказ, global::System.Nullable<long> Original_ЗаказаноеБН, global::System.Nullable<decimal> Original_Цена, long ID) {
  5322. if ((Заказ.HasValue == true)) {
  5323. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(Заказ.Value));
  5324. }
  5325. else {
  5326. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5327. }
  5328. if ((ЗаказаноеБН.HasValue == true)) {
  5329. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(ЗаказаноеБН.Value));
  5330. }
  5331. else {
  5332. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5333. }
  5334. if ((Цена.HasValue == true)) {
  5335. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  5336. }
  5337. else {
  5338. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5339. }
  5340. this.Adapter.UpdateCommand.Parameters[3].Value = ((long)(Original_ID));
  5341. if ((Original_Заказ.HasValue == true)) {
  5342. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  5343. this.Adapter.UpdateCommand.Parameters[5].Value = ((long)(Original_Заказ.Value));
  5344. }
  5345. else {
  5346. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  5347. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5348. }
  5349. if ((Original_ЗаказаноеБН.HasValue == true)) {
  5350. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  5351. this.Adapter.UpdateCommand.Parameters[7].Value = ((long)(Original_ЗаказаноеБН.Value));
  5352. }
  5353. else {
  5354. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  5355. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5356. }
  5357. if ((Original_Цена.HasValue == true)) {
  5358. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5359. this.Adapter.UpdateCommand.Parameters[9].Value = ((decimal)(Original_Цена.Value));
  5360. }
  5361. else {
  5362. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5363. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5364. }
  5365. this.Adapter.UpdateCommand.Parameters[10].Value = ((long)(ID));
  5366. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5367. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5368. != global::System.Data.ConnectionState.Open)) {
  5369. this.Adapter.UpdateCommand.Connection.Open();
  5370. }
  5371. try {
  5372. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5373. return returnValue;
  5374. }
  5375. finally {
  5376. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5377. this.Adapter.UpdateCommand.Connection.Close();
  5378. }
  5379. }
  5380. }
  5381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5383. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5384. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5385. public virtual int Update(global::System.Nullable<long> Заказ, global::System.Nullable<long> ЗаказаноеБН, global::System.Nullable<decimal> Цена, long Original_ID, global::System.Nullable<long> Original_Заказ, global::System.Nullable<long> Original_ЗаказаноеБН, global::System.Nullable<decimal> Original_Цена) {
  5386. return this.Update(Заказ, ЗаказаноеБН, Цена, Original_ID, Original_Заказ, Original_ЗаказаноеБН, Original_Цена, Original_ID);
  5387. }
  5388. }
  5389. /// <summary>
  5390. ///Represents the connection and commands used to retrieve and save data.
  5391. ///</summary>
  5392. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5393. [global::System.ComponentModel.ToolboxItem(true)]
  5394. [global::System.ComponentModel.DataObjectAttribute(true)]
  5395. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5396. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5397. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5398. public partial class ЗаказыTableAdapter : global::System.ComponentModel.Component {
  5399. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5400. private global::System.Data.SqlClient.SqlConnection _connection;
  5401. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5402. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5403. private bool _clearBeforeFill;
  5404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5406. public ЗаказыTableAdapter() {
  5407. this.ClearBeforeFill = true;
  5408. }
  5409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5411. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5412. get {
  5413. if ((this._adapter == null)) {
  5414. this.InitAdapter();
  5415. }
  5416. return this._adapter;
  5417. }
  5418. }
  5419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5421. internal global::System.Data.SqlClient.SqlConnection Connection {
  5422. get {
  5423. if ((this._connection == null)) {
  5424. this.InitConnection();
  5425. }
  5426. return this._connection;
  5427. }
  5428. set {
  5429. this._connection = value;
  5430. if ((this.Adapter.InsertCommand != null)) {
  5431. this.Adapter.InsertCommand.Connection = value;
  5432. }
  5433. if ((this.Adapter.DeleteCommand != null)) {
  5434. this.Adapter.DeleteCommand.Connection = value;
  5435. }
  5436. if ((this.Adapter.UpdateCommand != null)) {
  5437. this.Adapter.UpdateCommand.Connection = value;
  5438. }
  5439. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5440. if ((this.CommandCollection[i] != null)) {
  5441. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5442. }
  5443. }
  5444. }
  5445. }
  5446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5448. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5449. get {
  5450. return this._transaction;
  5451. }
  5452. set {
  5453. this._transaction = value;
  5454. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5455. this.CommandCollection[i].Transaction = this._transaction;
  5456. }
  5457. if (((this.Adapter != null)
  5458. && (this.Adapter.DeleteCommand != null))) {
  5459. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5460. }
  5461. if (((this.Adapter != null)
  5462. && (this.Adapter.InsertCommand != null))) {
  5463. this.Adapter.InsertCommand.Transaction = this._transaction;
  5464. }
  5465. if (((this.Adapter != null)
  5466. && (this.Adapter.UpdateCommand != null))) {
  5467. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5468. }
  5469. }
  5470. }
  5471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5473. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5474. get {
  5475. if ((this._commandCollection == null)) {
  5476. this.InitCommandCollection();
  5477. }
  5478. return this._commandCollection;
  5479. }
  5480. }
  5481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5483. public bool ClearBeforeFill {
  5484. get {
  5485. return this._clearBeforeFill;
  5486. }
  5487. set {
  5488. this._clearBeforeFill = value;
  5489. }
  5490. }
  5491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5493. private void InitAdapter() {
  5494. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5495. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5496. tableMapping.SourceTable = "Table";
  5497. tableMapping.DataSetTable = "Заказы";
  5498. tableMapping.ColumnMappings.Add("ID", "ID");
  5499. tableMapping.ColumnMappings.Add("Дата", "Дата");
  5500. tableMapping.ColumnMappings.Add("Столик", "Столик");
  5501. tableMapping.ColumnMappings.Add("КолвоКлиентов", "КолвоКлиентов");
  5502. tableMapping.ColumnMappings.Add("Цена", "Цена");
  5503. tableMapping.ColumnMappings.Add("Статус", "Статус");
  5504. this._adapter.TableMappings.Add(tableMapping);
  5505. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5506. this._adapter.DeleteCommand.Connection = this.Connection;
  5507. 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_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Статус = 1 AND [Статус] IS NULL) OR ([Статус] = @Original_Статус)))";
  5508. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5509. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5510. 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, "", "", ""));
  5511. 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, "", "", ""));
  5512. 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, "", "", ""));
  5513. 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, "", "", ""));
  5514. 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, "", "", ""));
  5515. 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, "", "", ""));
  5516. 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, "", "", ""));
  5517. 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, "", "", ""));
  5518. 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, "", "", ""));
  5519. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Статус", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Статус", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5520. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5521. this._adapter.InsertCommand.Connection = this.Connection;
  5522. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Заказы] ([Дата], [Столик], [КолвоКлиентов], [Цена], [Статус]) " +
  5523. "VALUES (@Дата, @Столик, @КолвоКлиентов, @Цена, @Статус);\r\nSELECT ID, Дата, Столи" +
  5524. "к, КолвоКлиентов, Цена, Статус FROM Заказы WHERE (ID = SCOPE_IDENTITY())";
  5525. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5526. 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, "", "", ""));
  5527. 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, "", "", ""));
  5528. 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, "", "", ""));
  5529. 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, "", "", ""));
  5530. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Статус", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Статус", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5531. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5532. this._adapter.UpdateCommand.Connection = this.Connection;
  5533. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Заказы] SET [Дата] = @Дата, [Столик] = @Столик, [КолвоКлиентов] = @КолвоКлиентов, [Цена] = @Цена, [Статус] = @Статус WHERE (([ID] = @Original_ID) AND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Original_Дата)) AND ((@IsNull_Столик = 1 AND [Столик] IS NULL) OR ([Столик] = @Original_Столик)) AND ((@IsNull_КолвоКлиентов = 1 AND [КолвоКлиентов] IS NULL) OR ([КолвоКлиентов] = @Original_КолвоКлиентов)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Статус = 1 AND [Статус] IS NULL) OR ([Статус] = @Original_Статус)));
  5534. SELECT ID, Дата, Столик, КолвоКлиентов, Цена, Статус FROM Заказы WHERE (ID = @ID)";
  5535. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5536. 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, "", "", ""));
  5537. 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, "", "", ""));
  5538. 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, "", "", ""));
  5539. 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, "", "", ""));
  5540. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Статус", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Статус", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5541. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5542. 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, "", "", ""));
  5543. 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, "", "", ""));
  5544. 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, "", "", ""));
  5545. 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, "", "", ""));
  5546. 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, "", "", ""));
  5547. 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, "", "", ""));
  5548. 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, "", "", ""));
  5549. 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, "", "", ""));
  5550. 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, "", "", ""));
  5551. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Статус", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Статус", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5552. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5553. }
  5554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5556. private void InitConnection() {
  5557. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5558. this._connection.ConnectionString = global::kafe_Loriy.Properties.Settings.Default.ОООКафе_ЛорийConnectionString;
  5559. }
  5560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5562. private void InitCommandCollection() {
  5563. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5564. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5565. this._commandCollection[0].Connection = this.Connection;
  5566. this._commandCollection[0].CommandText = "SELECT ID, Дата, Столик, КолвоКлиентов, Цена, Статус FROM dbo.Заказы";
  5567. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5568. }
  5569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5571. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5572. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5573. public virtual int Fill(ОООКафе_ЛорийDataSet.ЗаказыDataTable dataTable) {
  5574. this.Adapter.SelectCommand = this.CommandCollection[0];
  5575. if ((this.ClearBeforeFill == true)) {
  5576. dataTable.Clear();
  5577. }
  5578. int returnValue = this.Adapter.Fill(dataTable);
  5579. return returnValue;
  5580. }
  5581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5583. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5584. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5585. public virtual ОООКафе_ЛорийDataSet.ЗаказыDataTable GetData() {
  5586. this.Adapter.SelectCommand = this.CommandCollection[0];
  5587. ОООКафе_ЛорийDataSet.ЗаказыDataTable dataTable = new ОООКафе_ЛорийDataSet.ЗаказыDataTable();
  5588. this.Adapter.Fill(dataTable);
  5589. return dataTable;
  5590. }
  5591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5593. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5594. public virtual int Update(ОООКафе_ЛорийDataSet.ЗаказыDataTable dataTable) {
  5595. return this.Adapter.Update(dataTable);
  5596. }
  5597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5599. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5600. public virtual int Update(ОООКафе_ЛорийDataSet dataSet) {
  5601. return this.Adapter.Update(dataSet, "Заказы");
  5602. }
  5603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5605. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5606. public virtual int Update(global::System.Data.DataRow dataRow) {
  5607. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5608. dataRow});
  5609. }
  5610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5612. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5613. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5614. return this.Adapter.Update(dataRows);
  5615. }
  5616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5618. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5619. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5620. public virtual int Delete(long Original_ID, global::System.Nullable<global::System.DateTime> Original_Дата, global::System.Nullable<int> Original_Столик, global::System.Nullable<int> Original_КолвоКлиентов, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<long> Original_Статус) {
  5621. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID));
  5622. if ((Original_Дата.HasValue == true)) {
  5623. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5624. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_Дата.Value));
  5625. }
  5626. else {
  5627. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5628. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5629. }
  5630. if ((Original_Столик.HasValue == true)) {
  5631. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5632. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Столик.Value));
  5633. }
  5634. else {
  5635. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5636. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5637. }
  5638. if ((Original_КолвоКлиентов.HasValue == true)) {
  5639. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5640. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_КолвоКлиентов.Value));
  5641. }
  5642. else {
  5643. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5644. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5645. }
  5646. if ((Original_Цена.HasValue == true)) {
  5647. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5648. this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_Цена.Value));
  5649. }
  5650. else {
  5651. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5652. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5653. }
  5654. if ((Original_Статус.HasValue == true)) {
  5655. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  5656. this.Adapter.DeleteCommand.Parameters[10].Value = ((long)(Original_Статус.Value));
  5657. }
  5658. else {
  5659. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  5660. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5661. }
  5662. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5663. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5664. != global::System.Data.ConnectionState.Open)) {
  5665. this.Adapter.DeleteCommand.Connection.Open();
  5666. }
  5667. try {
  5668. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5669. return returnValue;
  5670. }
  5671. finally {
  5672. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5673. this.Adapter.DeleteCommand.Connection.Close();
  5674. }
  5675. }
  5676. }
  5677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5679. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5680. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5681. public virtual int Insert(global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<int> Столик, global::System.Nullable<int> КолвоКлиентов, global::System.Nullable<decimal> Цена, global::System.Nullable<long> Статус) {
  5682. if ((Дата.HasValue == true)) {
  5683. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(Дата.Value));
  5684. }
  5685. else {
  5686. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5687. }
  5688. if ((Столик.HasValue == true)) {
  5689. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Столик.Value));
  5690. }
  5691. else {
  5692. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5693. }
  5694. if ((КолвоКлиентов.HasValue == true)) {
  5695. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(КолвоКлиентов.Value));
  5696. }
  5697. else {
  5698. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5699. }
  5700. if ((Цена.HasValue == true)) {
  5701. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(Цена.Value));
  5702. }
  5703. else {
  5704. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5705. }
  5706. if ((Статус.HasValue == true)) {
  5707. this.Adapter.InsertCommand.Parameters[4].Value = ((long)(Статус.Value));
  5708. }
  5709. else {
  5710. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5711. }
  5712. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5713. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5714. != global::System.Data.ConnectionState.Open)) {
  5715. this.Adapter.InsertCommand.Connection.Open();
  5716. }
  5717. try {
  5718. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5719. return returnValue;
  5720. }
  5721. finally {
  5722. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5723. this.Adapter.InsertCommand.Connection.Close();
  5724. }
  5725. }
  5726. }
  5727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5729. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5730. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5731. public virtual int Update(global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<int> Столик, global::System.Nullable<int> КолвоКлиентов, global::System.Nullable<decimal> Цена, global::System.Nullable<long> Статус, long Original_ID, global::System.Nullable<global::System.DateTime> Original_Дата, global::System.Nullable<int> Original_Столик, global::System.Nullable<int> Original_КолвоКлиентов, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<long> Original_Статус, long ID) {
  5732. if ((Дата.HasValue == true)) {
  5733. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(Дата.Value));
  5734. }
  5735. else {
  5736. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5737. }
  5738. if ((Столик.HasValue == true)) {
  5739. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Столик.Value));
  5740. }
  5741. else {
  5742. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5743. }
  5744. if ((КолвоКлиентов.HasValue == true)) {
  5745. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(КолвоКлиентов.Value));
  5746. }
  5747. else {
  5748. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5749. }
  5750. if ((Цена.HasValue == true)) {
  5751. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(Цена.Value));
  5752. }
  5753. else {
  5754. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5755. }
  5756. if ((Статус.HasValue == true)) {
  5757. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(Статус.Value));
  5758. }
  5759. else {
  5760. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5761. }
  5762. this.Adapter.UpdateCommand.Parameters[5].Value = ((long)(Original_ID));
  5763. if ((Original_Дата.HasValue == true)) {
  5764. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  5765. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_Дата.Value));
  5766. }
  5767. else {
  5768. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  5769. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5770. }
  5771. if ((Original_Столик.HasValue == true)) {
  5772. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5773. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Столик.Value));
  5774. }
  5775. else {
  5776. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5777. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5778. }
  5779. if ((Original_КолвоКлиентов.HasValue == true)) {
  5780. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5781. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_КолвоКлиентов.Value));
  5782. }
  5783. else {
  5784. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5785. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5786. }
  5787. if ((Original_Цена.HasValue == true)) {
  5788. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5789. this.Adapter.UpdateCommand.Parameters[13].Value = ((decimal)(Original_Цена.Value));
  5790. }
  5791. else {
  5792. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5793. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5794. }
  5795. if ((Original_Статус.HasValue == true)) {
  5796. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  5797. this.Adapter.UpdateCommand.Parameters[15].Value = ((long)(Original_Статус.Value));
  5798. }
  5799. else {
  5800. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  5801. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  5802. }
  5803. this.Adapter.UpdateCommand.Parameters[16].Value = ((long)(ID));
  5804. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5805. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5806. != global::System.Data.ConnectionState.Open)) {
  5807. this.Adapter.UpdateCommand.Connection.Open();
  5808. }
  5809. try {
  5810. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5811. return returnValue;
  5812. }
  5813. finally {
  5814. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5815. this.Adapter.UpdateCommand.Connection.Close();
  5816. }
  5817. }
  5818. }
  5819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5821. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5822. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5823. public virtual int Update(global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<int> Столик, global::System.Nullable<int> КолвоКлиентов, global::System.Nullable<decimal> Цена, global::System.Nullable<long> Статус, long Original_ID, global::System.Nullable<global::System.DateTime> Original_Дата, global::System.Nullable<int> Original_Столик, global::System.Nullable<int> Original_КолвоКлиентов, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<long> Original_Статус) {
  5824. return this.Update(Дата, Столик, КолвоКлиентов, Цена, Статус, Original_ID, Original_Дата, Original_Столик, Original_КолвоКлиентов, Original_Цена, Original_Статус, Original_ID);
  5825. }
  5826. }
  5827. /// <summary>
  5828. ///Represents the connection and commands used to retrieve and save data.
  5829. ///</summary>
  5830. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5831. [global::System.ComponentModel.ToolboxItem(true)]
  5832. [global::System.ComponentModel.DataObjectAttribute(true)]
  5833. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5834. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5835. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5836. public partial class ОфициантыTableAdapter : global::System.ComponentModel.Component {
  5837. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5838. private global::System.Data.SqlClient.SqlConnection _connection;
  5839. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5840. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5841. private bool _clearBeforeFill;
  5842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5844. public ОфициантыTableAdapter() {
  5845. this.ClearBeforeFill = true;
  5846. }
  5847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5849. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5850. get {
  5851. if ((this._adapter == null)) {
  5852. this.InitAdapter();
  5853. }
  5854. return this._adapter;
  5855. }
  5856. }
  5857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5859. internal global::System.Data.SqlClient.SqlConnection Connection {
  5860. get {
  5861. if ((this._connection == null)) {
  5862. this.InitConnection();
  5863. }
  5864. return this._connection;
  5865. }
  5866. set {
  5867. this._connection = value;
  5868. if ((this.Adapter.InsertCommand != null)) {
  5869. this.Adapter.InsertCommand.Connection = value;
  5870. }
  5871. if ((this.Adapter.DeleteCommand != null)) {
  5872. this.Adapter.DeleteCommand.Connection = value;
  5873. }
  5874. if ((this.Adapter.UpdateCommand != null)) {
  5875. this.Adapter.UpdateCommand.Connection = value;
  5876. }
  5877. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5878. if ((this.CommandCollection[i] != null)) {
  5879. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5880. }
  5881. }
  5882. }
  5883. }
  5884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5886. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5887. get {
  5888. return this._transaction;
  5889. }
  5890. set {
  5891. this._transaction = value;
  5892. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5893. this.CommandCollection[i].Transaction = this._transaction;
  5894. }
  5895. if (((this.Adapter != null)
  5896. && (this.Adapter.DeleteCommand != null))) {
  5897. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5898. }
  5899. if (((this.Adapter != null)
  5900. && (this.Adapter.InsertCommand != null))) {
  5901. this.Adapter.InsertCommand.Transaction = this._transaction;
  5902. }
  5903. if (((this.Adapter != null)
  5904. && (this.Adapter.UpdateCommand != null))) {
  5905. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5906. }
  5907. }
  5908. }
  5909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5911. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5912. get {
  5913. if ((this._commandCollection == null)) {
  5914. this.InitCommandCollection();
  5915. }
  5916. return this._commandCollection;
  5917. }
  5918. }
  5919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5921. public bool ClearBeforeFill {
  5922. get {
  5923. return this._clearBeforeFill;
  5924. }
  5925. set {
  5926. this._clearBeforeFill = value;
  5927. }
  5928. }
  5929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5931. private void InitAdapter() {
  5932. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5933. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5934. tableMapping.SourceTable = "Table";
  5935. tableMapping.DataSetTable = "Официанты";
  5936. tableMapping.ColumnMappings.Add("ID", "ID");
  5937. tableMapping.ColumnMappings.Add("Имя", "Имя");
  5938. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  5939. tableMapping.ColumnMappings.Add("ID_Сотрудника", "ID_Сотрудника");
  5940. this._adapter.TableMappings.Add(tableMapping);
  5941. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5942. this._adapter.DeleteCommand.Connection = this.Connection;
  5943. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Официанты] WHERE (([ID] = @Original_ID) 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_Сотрудника)))";
  5944. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5945. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5946. 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, "", "", ""));
  5947. 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, "", "", ""));
  5948. 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, "", "", ""));
  5949. 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, "", "", ""));
  5950. 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, "", "", ""));
  5951. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Сотрудника", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Сотрудника", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5952. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5953. this._adapter.InsertCommand.Connection = this.Connection;
  5954. this._adapter.InsertCommand.CommandText = "INSERT INTO [Официанты] ([Имя], [Фамилия], [ID_Сотрудника]) VALUES (@Имя, @Фамили" +
  5955. "я, @ID_Сотрудника);\r\nSELECT ID, Имя, Фамилия, ID_Сотрудника FROM Официанты WHERE" +
  5956. " (ID = SCOPE_IDENTITY())";
  5957. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5958. 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, "", "", ""));
  5959. 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, "", "", ""));
  5960. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Сотрудника", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Сотрудника", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5961. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5962. this._adapter.UpdateCommand.Connection = this.Connection;
  5963. 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_Фамилия)) AND ((@IsNull_ID_Сотрудника = 1 AND [ID_Сотрудника] IS NULL) OR ([ID_Сотрудника] = @Original_ID_Сотрудника)));
  5964. SELECT ID, Имя, Фамилия, ID_Сотрудника FROM Официанты WHERE (ID = @ID)";
  5965. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5966. 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, "", "", ""));
  5967. 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, "", "", ""));
  5968. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Сотрудника", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Сотрудника", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5969. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5970. 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, "", "", ""));
  5971. 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, "", "", ""));
  5972. 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, "", "", ""));
  5973. 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, "", "", ""));
  5974. 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, "", "", ""));
  5975. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Сотрудника", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Сотрудника", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5976. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5977. }
  5978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5980. private void InitConnection() {
  5981. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5982. this._connection.ConnectionString = global::kafe_Loriy.Properties.Settings.Default.ОООКафе_ЛорийConnectionString;
  5983. }
  5984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5986. private void InitCommandCollection() {
  5987. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5988. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5989. this._commandCollection[0].Connection = this.Connection;
  5990. this._commandCollection[0].CommandText = "SELECT ID, Имя, Фамилия, ID_Сотрудника FROM Официанты";
  5991. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5992. }
  5993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5995. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5996. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5997. public virtual int Fill(ОООКафе_ЛорийDataSet.ОфициантыDataTable dataTable) {
  5998. this.Adapter.SelectCommand = this.CommandCollection[0];
  5999. if ((this.ClearBeforeFill == true)) {
  6000. dataTable.Clear();
  6001. }
  6002. int returnValue = this.Adapter.Fill(dataTable);
  6003. return returnValue;
  6004. }
  6005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6007. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6008. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6009. public virtual ОООКафе_ЛорийDataSet.ОфициантыDataTable GetData() {
  6010. this.Adapter.SelectCommand = this.CommandCollection[0];
  6011. ОООКафе_ЛорийDataSet.ОфициантыDataTable dataTable = new ОООКафе_ЛорийDataSet.ОфициантыDataTable();
  6012. this.Adapter.Fill(dataTable);
  6013. return dataTable;
  6014. }
  6015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6017. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6018. public virtual int Update(ОООКафе_ЛорийDataSet.ОфициантыDataTable dataTable) {
  6019. return this.Adapter.Update(dataTable);
  6020. }
  6021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6023. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6024. public virtual int Update(ОООКафе_ЛорийDataSet dataSet) {
  6025. return this.Adapter.Update(dataSet, "Официанты");
  6026. }
  6027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6029. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6030. public virtual int Update(global::System.Data.DataRow dataRow) {
  6031. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6032. dataRow});
  6033. }
  6034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6036. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6037. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6038. return this.Adapter.Update(dataRows);
  6039. }
  6040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6042. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6043. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6044. public virtual int Delete(long Original_ID, string Original_Имя, string Original_Фамилия, global::System.Nullable<long> Original_ID_Сотрудника) {
  6045. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID));
  6046. if ((Original_Имя == null)) {
  6047. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6048. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6049. }
  6050. else {
  6051. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6052. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Имя));
  6053. }
  6054. if ((Original_Фамилия == null)) {
  6055. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6056. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6057. }
  6058. else {
  6059. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6060. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Фамилия));
  6061. }
  6062. if ((Original_ID_Сотрудника.HasValue == true)) {
  6063. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6064. this.Adapter.DeleteCommand.Parameters[6].Value = ((long)(Original_ID_Сотрудника.Value));
  6065. }
  6066. else {
  6067. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6068. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6069. }
  6070. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6071. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6072. != global::System.Data.ConnectionState.Open)) {
  6073. this.Adapter.DeleteCommand.Connection.Open();
  6074. }
  6075. try {
  6076. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6077. return returnValue;
  6078. }
  6079. finally {
  6080. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6081. this.Adapter.DeleteCommand.Connection.Close();
  6082. }
  6083. }
  6084. }
  6085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6087. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6088. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6089. public virtual int Insert(string Имя, string Фамилия, global::System.Nullable<long> ID_Сотрудника) {
  6090. if ((Имя == null)) {
  6091. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6092. }
  6093. else {
  6094. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Имя));
  6095. }
  6096. if ((Фамилия == null)) {
  6097. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6098. }
  6099. else {
  6100. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фамилия));
  6101. }
  6102. if ((ID_Сотрудника.HasValue == true)) {
  6103. this.Adapter.InsertCommand.Parameters[2].Value = ((long)(ID_Сотрудника.Value));
  6104. }
  6105. else {
  6106. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6107. }
  6108. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6109. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6110. != global::System.Data.ConnectionState.Open)) {
  6111. this.Adapter.InsertCommand.Connection.Open();
  6112. }
  6113. try {
  6114. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6115. return returnValue;
  6116. }
  6117. finally {
  6118. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6119. this.Adapter.InsertCommand.Connection.Close();
  6120. }
  6121. }
  6122. }
  6123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6125. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6126. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6127. public virtual int Update(string Имя, string Фамилия, global::System.Nullable<long> ID_Сотрудника, long Original_ID, string Original_Имя, string Original_Фамилия, global::System.Nullable<long> Original_ID_Сотрудника, long ID) {
  6128. if ((Имя == null)) {
  6129. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6130. }
  6131. else {
  6132. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Имя));
  6133. }
  6134. if ((Фамилия == null)) {
  6135. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6136. }
  6137. else {
  6138. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фамилия));
  6139. }
  6140. if ((ID_Сотрудника.HasValue == true)) {
  6141. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(ID_Сотрудника.Value));
  6142. }
  6143. else {
  6144. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6145. }
  6146. this.Adapter.UpdateCommand.Parameters[3].Value = ((long)(Original_ID));
  6147. if ((Original_Имя == null)) {
  6148. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  6149. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6150. }
  6151. else {
  6152. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  6153. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Имя));
  6154. }
  6155. if ((Original_Фамилия == null)) {
  6156. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  6157. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6158. }
  6159. else {
  6160. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  6161. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Фамилия));
  6162. }
  6163. if ((Original_ID_Сотрудника.HasValue == true)) {
  6164. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  6165. this.Adapter.UpdateCommand.Parameters[9].Value = ((long)(Original_ID_Сотрудника.Value));
  6166. }
  6167. else {
  6168. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  6169. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6170. }
  6171. this.Adapter.UpdateCommand.Parameters[10].Value = ((long)(ID));
  6172. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6173. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6174. != global::System.Data.ConnectionState.Open)) {
  6175. this.Adapter.UpdateCommand.Connection.Open();
  6176. }
  6177. try {
  6178. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6179. return returnValue;
  6180. }
  6181. finally {
  6182. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6183. this.Adapter.UpdateCommand.Connection.Close();
  6184. }
  6185. }
  6186. }
  6187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6189. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6190. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6191. public virtual int Update(string Имя, string Фамилия, global::System.Nullable<long> ID_Сотрудника, long Original_ID, string Original_Имя, string Original_Фамилия, global::System.Nullable<long> Original_ID_Сотрудника) {
  6192. return this.Update(Имя, Фамилия, ID_Сотрудника, Original_ID, Original_Имя, Original_Фамилия, Original_ID_Сотрудника, Original_ID);
  6193. }
  6194. }
  6195. /// <summary>
  6196. ///Represents the connection and commands used to retrieve and save data.
  6197. ///</summary>
  6198. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6199. [global::System.ComponentModel.ToolboxItem(true)]
  6200. [global::System.ComponentModel.DataObjectAttribute(true)]
  6201. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6202. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6203. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6204. public partial class ПовараTableAdapter : global::System.ComponentModel.Component {
  6205. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6206. private global::System.Data.SqlClient.SqlConnection _connection;
  6207. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6208. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6209. private bool _clearBeforeFill;
  6210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6212. public ПовараTableAdapter() {
  6213. this.ClearBeforeFill = true;
  6214. }
  6215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6217. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6218. get {
  6219. if ((this._adapter == null)) {
  6220. this.InitAdapter();
  6221. }
  6222. return this._adapter;
  6223. }
  6224. }
  6225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6227. internal global::System.Data.SqlClient.SqlConnection Connection {
  6228. get {
  6229. if ((this._connection == null)) {
  6230. this.InitConnection();
  6231. }
  6232. return this._connection;
  6233. }
  6234. set {
  6235. this._connection = value;
  6236. if ((this.Adapter.InsertCommand != null)) {
  6237. this.Adapter.InsertCommand.Connection = value;
  6238. }
  6239. if ((this.Adapter.DeleteCommand != null)) {
  6240. this.Adapter.DeleteCommand.Connection = value;
  6241. }
  6242. if ((this.Adapter.UpdateCommand != null)) {
  6243. this.Adapter.UpdateCommand.Connection = value;
  6244. }
  6245. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6246. if ((this.CommandCollection[i] != null)) {
  6247. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6248. }
  6249. }
  6250. }
  6251. }
  6252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6254. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6255. get {
  6256. return this._transaction;
  6257. }
  6258. set {
  6259. this._transaction = value;
  6260. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6261. this.CommandCollection[i].Transaction = this._transaction;
  6262. }
  6263. if (((this.Adapter != null)
  6264. && (this.Adapter.DeleteCommand != null))) {
  6265. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6266. }
  6267. if (((this.Adapter != null)
  6268. && (this.Adapter.InsertCommand != null))) {
  6269. this.Adapter.InsertCommand.Transaction = this._transaction;
  6270. }
  6271. if (((this.Adapter != null)
  6272. && (this.Adapter.UpdateCommand != null))) {
  6273. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6274. }
  6275. }
  6276. }
  6277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6279. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6280. get {
  6281. if ((this._commandCollection == null)) {
  6282. this.InitCommandCollection();
  6283. }
  6284. return this._commandCollection;
  6285. }
  6286. }
  6287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6289. public bool ClearBeforeFill {
  6290. get {
  6291. return this._clearBeforeFill;
  6292. }
  6293. set {
  6294. this._clearBeforeFill = value;
  6295. }
  6296. }
  6297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6299. private void InitAdapter() {
  6300. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6301. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6302. tableMapping.SourceTable = "Table";
  6303. tableMapping.DataSetTable = "Повара";
  6304. tableMapping.ColumnMappings.Add("ID", "ID");
  6305. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  6306. tableMapping.ColumnMappings.Add("Имя", "Имя");
  6307. tableMapping.ColumnMappings.Add("ID_Сотрудника", "ID_Сотрудника");
  6308. this._adapter.TableMappings.Add(tableMapping);
  6309. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6310. this._adapter.DeleteCommand.Connection = this.Connection;
  6311. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Повара] WHERE (([ID] = @Original_ID) 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_Сотрудника)))";
  6312. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6313. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6314. 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, "", "", ""));
  6315. 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, "", "", ""));
  6316. 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, "", "", ""));
  6317. 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, "", "", ""));
  6318. 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, "", "", ""));
  6319. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Сотрудника", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Сотрудника", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6320. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6321. this._adapter.InsertCommand.Connection = this.Connection;
  6322. this._adapter.InsertCommand.CommandText = "INSERT INTO [Повара] ([Фамилия], [Имя], [ID_Сотрудника]) VALUES (@Фамилия, @Имя, " +
  6323. "@ID_Сотрудника);\r\nSELECT ID, Фамилия, Имя, ID_Сотрудника FROM Повара WHERE (ID =" +
  6324. " SCOPE_IDENTITY())";
  6325. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6326. 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, "", "", ""));
  6327. 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, "", "", ""));
  6328. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Сотрудника", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Сотрудника", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6329. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6330. this._adapter.UpdateCommand.Connection = this.Connection;
  6331. 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_Имя)) AND ((@IsNull_ID_Сотрудника = 1 AND [ID_Сотрудника] IS NULL) OR ([ID_Сотрудника] = @Original_ID_Сотрудника)));
  6332. SELECT ID, Фамилия, Имя, ID_Сотрудника FROM Повара WHERE (ID = @ID)";
  6333. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6334. 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, "", "", ""));
  6335. 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, "", "", ""));
  6336. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Сотрудника", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Сотрудника", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6337. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6338. 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, "", "", ""));
  6339. 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, "", "", ""));
  6340. 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, "", "", ""));
  6341. 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, "", "", ""));
  6342. 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, "", "", ""));
  6343. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Сотрудника", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Сотрудника", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6344. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6345. }
  6346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6348. private void InitConnection() {
  6349. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6350. this._connection.ConnectionString = global::kafe_Loriy.Properties.Settings.Default.ОООКафе_ЛорийConnectionString;
  6351. }
  6352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6354. private void InitCommandCollection() {
  6355. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6356. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6357. this._commandCollection[0].Connection = this.Connection;
  6358. this._commandCollection[0].CommandText = "SELECT ID, Фамилия, Имя, ID_Сотрудника FROM Повара";
  6359. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6360. }
  6361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6363. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6364. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6365. public virtual int Fill(ОООКафе_ЛорийDataSet.ПовараDataTable dataTable) {
  6366. this.Adapter.SelectCommand = this.CommandCollection[0];
  6367. if ((this.ClearBeforeFill == true)) {
  6368. dataTable.Clear();
  6369. }
  6370. int returnValue = this.Adapter.Fill(dataTable);
  6371. return returnValue;
  6372. }
  6373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6375. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6376. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6377. public virtual ОООКафе_ЛорийDataSet.ПовараDataTable GetData() {
  6378. this.Adapter.SelectCommand = this.CommandCollection[0];
  6379. ОООКафе_ЛорийDataSet.ПовараDataTable dataTable = new ОООКафе_ЛорийDataSet.ПовараDataTable();
  6380. this.Adapter.Fill(dataTable);
  6381. return dataTable;
  6382. }
  6383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6385. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6386. public virtual int Update(ОООКафе_ЛорийDataSet.ПовараDataTable dataTable) {
  6387. return this.Adapter.Update(dataTable);
  6388. }
  6389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6391. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6392. public virtual int Update(ОООКафе_ЛорийDataSet dataSet) {
  6393. return this.Adapter.Update(dataSet, "Повара");
  6394. }
  6395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6397. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6398. public virtual int Update(global::System.Data.DataRow dataRow) {
  6399. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6400. dataRow});
  6401. }
  6402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6404. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6405. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6406. return this.Adapter.Update(dataRows);
  6407. }
  6408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6410. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6411. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6412. public virtual int Delete(long Original_ID, string Original_Фамилия, string Original_Имя, global::System.Nullable<long> Original_ID_Сотрудника) {
  6413. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID));
  6414. if ((Original_Фамилия == null)) {
  6415. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6416. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6417. }
  6418. else {
  6419. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6420. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Фамилия));
  6421. }
  6422. if ((Original_Имя == null)) {
  6423. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6424. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6425. }
  6426. else {
  6427. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6428. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Имя));
  6429. }
  6430. if ((Original_ID_Сотрудника.HasValue == true)) {
  6431. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6432. this.Adapter.DeleteCommand.Parameters[6].Value = ((long)(Original_ID_Сотрудника.Value));
  6433. }
  6434. else {
  6435. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6436. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6437. }
  6438. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6439. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6440. != global::System.Data.ConnectionState.Open)) {
  6441. this.Adapter.DeleteCommand.Connection.Open();
  6442. }
  6443. try {
  6444. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6445. return returnValue;
  6446. }
  6447. finally {
  6448. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6449. this.Adapter.DeleteCommand.Connection.Close();
  6450. }
  6451. }
  6452. }
  6453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6455. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6456. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6457. public virtual int Insert(string Фамилия, string Имя, global::System.Nullable<long> ID_Сотрудника) {
  6458. if ((Фамилия == null)) {
  6459. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6460. }
  6461. else {
  6462. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Фамилия));
  6463. }
  6464. if ((Имя == null)) {
  6465. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6466. }
  6467. else {
  6468. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Имя));
  6469. }
  6470. if ((ID_Сотрудника.HasValue == true)) {
  6471. this.Adapter.InsertCommand.Parameters[2].Value = ((long)(ID_Сотрудника.Value));
  6472. }
  6473. else {
  6474. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6475. }
  6476. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6477. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6478. != global::System.Data.ConnectionState.Open)) {
  6479. this.Adapter.InsertCommand.Connection.Open();
  6480. }
  6481. try {
  6482. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6483. return returnValue;
  6484. }
  6485. finally {
  6486. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6487. this.Adapter.InsertCommand.Connection.Close();
  6488. }
  6489. }
  6490. }
  6491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6493. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6494. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6495. public virtual int Update(string Фамилия, string Имя, global::System.Nullable<long> ID_Сотрудника, long Original_ID, string Original_Фамилия, string Original_Имя, global::System.Nullable<long> Original_ID_Сотрудника, long ID) {
  6496. if ((Фамилия == null)) {
  6497. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6498. }
  6499. else {
  6500. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Фамилия));
  6501. }
  6502. if ((Имя == null)) {
  6503. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6504. }
  6505. else {
  6506. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Имя));
  6507. }
  6508. if ((ID_Сотрудника.HasValue == true)) {
  6509. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(ID_Сотрудника.Value));
  6510. }
  6511. else {
  6512. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6513. }
  6514. this.Adapter.UpdateCommand.Parameters[3].Value = ((long)(Original_ID));
  6515. if ((Original_Фамилия == null)) {
  6516. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  6517. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6518. }
  6519. else {
  6520. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  6521. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Фамилия));
  6522. }
  6523. if ((Original_Имя == null)) {
  6524. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  6525. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6526. }
  6527. else {
  6528. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  6529. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Имя));
  6530. }
  6531. if ((Original_ID_Сотрудника.HasValue == true)) {
  6532. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  6533. this.Adapter.UpdateCommand.Parameters[9].Value = ((long)(Original_ID_Сотрудника.Value));
  6534. }
  6535. else {
  6536. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  6537. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6538. }
  6539. this.Adapter.UpdateCommand.Parameters[10].Value = ((long)(ID));
  6540. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6541. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6542. != global::System.Data.ConnectionState.Open)) {
  6543. this.Adapter.UpdateCommand.Connection.Open();
  6544. }
  6545. try {
  6546. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6547. return returnValue;
  6548. }
  6549. finally {
  6550. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6551. this.Adapter.UpdateCommand.Connection.Close();
  6552. }
  6553. }
  6554. }
  6555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6557. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6558. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6559. public virtual int Update(string Фамилия, string Имя, global::System.Nullable<long> ID_Сотрудника, long Original_ID, string Original_Фамилия, string Original_Имя, global::System.Nullable<long> Original_ID_Сотрудника) {
  6560. return this.Update(Фамилия, Имя, ID_Сотрудника, Original_ID, Original_Фамилия, Original_Имя, Original_ID_Сотрудника, Original_ID);
  6561. }
  6562. }
  6563. /// <summary>
  6564. ///Represents the connection and commands used to retrieve and save data.
  6565. ///</summary>
  6566. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6567. [global::System.ComponentModel.ToolboxItem(true)]
  6568. [global::System.ComponentModel.DataObjectAttribute(true)]
  6569. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6570. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6571. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6572. public partial class РолиTableAdapter : global::System.ComponentModel.Component {
  6573. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6574. private global::System.Data.SqlClient.SqlConnection _connection;
  6575. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6576. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6577. private bool _clearBeforeFill;
  6578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6580. public РолиTableAdapter() {
  6581. this.ClearBeforeFill = true;
  6582. }
  6583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6585. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6586. get {
  6587. if ((this._adapter == null)) {
  6588. this.InitAdapter();
  6589. }
  6590. return this._adapter;
  6591. }
  6592. }
  6593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6595. internal global::System.Data.SqlClient.SqlConnection Connection {
  6596. get {
  6597. if ((this._connection == null)) {
  6598. this.InitConnection();
  6599. }
  6600. return this._connection;
  6601. }
  6602. set {
  6603. this._connection = value;
  6604. if ((this.Adapter.InsertCommand != null)) {
  6605. this.Adapter.InsertCommand.Connection = value;
  6606. }
  6607. if ((this.Adapter.DeleteCommand != null)) {
  6608. this.Adapter.DeleteCommand.Connection = value;
  6609. }
  6610. if ((this.Adapter.UpdateCommand != null)) {
  6611. this.Adapter.UpdateCommand.Connection = value;
  6612. }
  6613. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6614. if ((this.CommandCollection[i] != null)) {
  6615. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6616. }
  6617. }
  6618. }
  6619. }
  6620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6622. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6623. get {
  6624. return this._transaction;
  6625. }
  6626. set {
  6627. this._transaction = value;
  6628. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6629. this.CommandCollection[i].Transaction = this._transaction;
  6630. }
  6631. if (((this.Adapter != null)
  6632. && (this.Adapter.DeleteCommand != null))) {
  6633. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6634. }
  6635. if (((this.Adapter != null)
  6636. && (this.Adapter.InsertCommand != null))) {
  6637. this.Adapter.InsertCommand.Transaction = this._transaction;
  6638. }
  6639. if (((this.Adapter != null)
  6640. && (this.Adapter.UpdateCommand != null))) {
  6641. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6642. }
  6643. }
  6644. }
  6645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6647. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6648. get {
  6649. if ((this._commandCollection == null)) {
  6650. this.InitCommandCollection();
  6651. }
  6652. return this._commandCollection;
  6653. }
  6654. }
  6655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6657. public bool ClearBeforeFill {
  6658. get {
  6659. return this._clearBeforeFill;
  6660. }
  6661. set {
  6662. this._clearBeforeFill = value;
  6663. }
  6664. }
  6665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6667. private void InitAdapter() {
  6668. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6669. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6670. tableMapping.SourceTable = "Table";
  6671. tableMapping.DataSetTable = "Роли";
  6672. tableMapping.ColumnMappings.Add("ID", "ID");
  6673. tableMapping.ColumnMappings.Add("Название_роли", "Название_роли");
  6674. this._adapter.TableMappings.Add(tableMapping);
  6675. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6676. this._adapter.DeleteCommand.Connection = this.Connection;
  6677. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Роли] WHERE (([ID] = @Original_ID) AND ((@IsNull_Название_роли" +
  6678. " = 1 AND [Название_роли] IS NULL) OR ([Название_роли] = @Original_Название_роли)" +
  6679. "))";
  6680. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6681. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6682. 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, "", "", ""));
  6683. 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, "", "", ""));
  6684. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6685. this._adapter.InsertCommand.Connection = this.Connection;
  6686. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Роли] ([Название_роли]) VALUES (@Название_роли);\r\nSELECT ID, Н" +
  6687. "азвание_роли FROM Роли WHERE (ID = SCOPE_IDENTITY())";
  6688. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6689. 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, "", "", ""));
  6690. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6691. this._adapter.UpdateCommand.Connection = this.Connection;
  6692. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Роли] SET [Название_роли] = @Название_роли WHERE (([ID] = @Original" +
  6693. "_ID) AND ((@IsNull_Название_роли = 1 AND [Название_роли] IS NULL) OR ([Название_" +
  6694. "роли] = @Original_Название_роли)));\r\nSELECT ID, Название_роли FROM Роли WHERE (I" +
  6695. "D = @ID)";
  6696. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6697. 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, "", "", ""));
  6698. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6699. 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, "", "", ""));
  6700. 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, "", "", ""));
  6701. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6702. }
  6703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6705. private void InitConnection() {
  6706. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6707. this._connection.ConnectionString = global::kafe_Loriy.Properties.Settings.Default.ОООКафе_ЛорийConnectionString;
  6708. }
  6709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6711. private void InitCommandCollection() {
  6712. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6713. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6714. this._commandCollection[0].Connection = this.Connection;
  6715. this._commandCollection[0].CommandText = "SELECT ID, Название_роли FROM dbo.Роли";
  6716. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6717. }
  6718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6720. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6721. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6722. public virtual int Fill(ОООКафе_ЛорийDataSet.РолиDataTable dataTable) {
  6723. this.Adapter.SelectCommand = this.CommandCollection[0];
  6724. if ((this.ClearBeforeFill == true)) {
  6725. dataTable.Clear();
  6726. }
  6727. int returnValue = this.Adapter.Fill(dataTable);
  6728. return returnValue;
  6729. }
  6730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6732. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6733. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6734. public virtual ОООКафе_ЛорийDataSet.РолиDataTable GetData() {
  6735. this.Adapter.SelectCommand = this.CommandCollection[0];
  6736. ОООКафе_ЛорийDataSet.РолиDataTable dataTable = new ОООКафе_ЛорийDataSet.РолиDataTable();
  6737. this.Adapter.Fill(dataTable);
  6738. return dataTable;
  6739. }
  6740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6742. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6743. public virtual int Update(ОООКафе_ЛорийDataSet.РолиDataTable dataTable) {
  6744. return this.Adapter.Update(dataTable);
  6745. }
  6746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6748. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6749. public virtual int Update(ОООКафе_ЛорийDataSet dataSet) {
  6750. return this.Adapter.Update(dataSet, "Роли");
  6751. }
  6752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6754. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6755. public virtual int Update(global::System.Data.DataRow dataRow) {
  6756. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6757. dataRow});
  6758. }
  6759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6761. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6762. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6763. return this.Adapter.Update(dataRows);
  6764. }
  6765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6767. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6768. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6769. public virtual int Delete(long Original_ID, string Original_Название_роли) {
  6770. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID));
  6771. if ((Original_Название_роли == null)) {
  6772. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6773. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6774. }
  6775. else {
  6776. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6777. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название_роли));
  6778. }
  6779. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6780. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6781. != global::System.Data.ConnectionState.Open)) {
  6782. this.Adapter.DeleteCommand.Connection.Open();
  6783. }
  6784. try {
  6785. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6786. return returnValue;
  6787. }
  6788. finally {
  6789. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6790. this.Adapter.DeleteCommand.Connection.Close();
  6791. }
  6792. }
  6793. }
  6794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6796. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6797. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6798. public virtual int Insert(string Название_роли) {
  6799. if ((Название_роли == null)) {
  6800. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6801. }
  6802. else {
  6803. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название_роли));
  6804. }
  6805. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6806. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6807. != global::System.Data.ConnectionState.Open)) {
  6808. this.Adapter.InsertCommand.Connection.Open();
  6809. }
  6810. try {
  6811. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6812. return returnValue;
  6813. }
  6814. finally {
  6815. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6816. this.Adapter.InsertCommand.Connection.Close();
  6817. }
  6818. }
  6819. }
  6820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6822. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6823. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6824. public virtual int Update(string Название_роли, long Original_ID, string Original_Название_роли, long ID) {
  6825. if ((Название_роли == null)) {
  6826. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6827. }
  6828. else {
  6829. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название_роли));
  6830. }
  6831. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(Original_ID));
  6832. if ((Original_Название_роли == null)) {
  6833. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6834. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6835. }
  6836. else {
  6837. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6838. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Название_роли));
  6839. }
  6840. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(ID));
  6841. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6842. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6843. != global::System.Data.ConnectionState.Open)) {
  6844. this.Adapter.UpdateCommand.Connection.Open();
  6845. }
  6846. try {
  6847. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6848. return returnValue;
  6849. }
  6850. finally {
  6851. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6852. this.Adapter.UpdateCommand.Connection.Close();
  6853. }
  6854. }
  6855. }
  6856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6858. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6859. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6860. public virtual int Update(string Название_роли, long Original_ID, string Original_Название_роли) {
  6861. return this.Update(Название_роли, Original_ID, Original_Название_роли, Original_ID);
  6862. }
  6863. }
  6864. /// <summary>
  6865. ///Represents the connection and commands used to retrieve and save data.
  6866. ///</summary>
  6867. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6868. [global::System.ComponentModel.ToolboxItem(true)]
  6869. [global::System.ComponentModel.DataObjectAttribute(true)]
  6870. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6871. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6872. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6873. public partial class СменыTableAdapter : global::System.ComponentModel.Component {
  6874. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6875. private global::System.Data.SqlClient.SqlConnection _connection;
  6876. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6877. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6878. private bool _clearBeforeFill;
  6879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6881. public СменыTableAdapter() {
  6882. this.ClearBeforeFill = true;
  6883. }
  6884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6886. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6887. get {
  6888. if ((this._adapter == null)) {
  6889. this.InitAdapter();
  6890. }
  6891. return this._adapter;
  6892. }
  6893. }
  6894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6896. internal global::System.Data.SqlClient.SqlConnection Connection {
  6897. get {
  6898. if ((this._connection == null)) {
  6899. this.InitConnection();
  6900. }
  6901. return this._connection;
  6902. }
  6903. set {
  6904. this._connection = value;
  6905. if ((this.Adapter.InsertCommand != null)) {
  6906. this.Adapter.InsertCommand.Connection = value;
  6907. }
  6908. if ((this.Adapter.DeleteCommand != null)) {
  6909. this.Adapter.DeleteCommand.Connection = value;
  6910. }
  6911. if ((this.Adapter.UpdateCommand != null)) {
  6912. this.Adapter.UpdateCommand.Connection = value;
  6913. }
  6914. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6915. if ((this.CommandCollection[i] != null)) {
  6916. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6917. }
  6918. }
  6919. }
  6920. }
  6921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6923. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6924. get {
  6925. return this._transaction;
  6926. }
  6927. set {
  6928. this._transaction = value;
  6929. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6930. this.CommandCollection[i].Transaction = this._transaction;
  6931. }
  6932. if (((this.Adapter != null)
  6933. && (this.Adapter.DeleteCommand != null))) {
  6934. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6935. }
  6936. if (((this.Adapter != null)
  6937. && (this.Adapter.InsertCommand != null))) {
  6938. this.Adapter.InsertCommand.Transaction = this._transaction;
  6939. }
  6940. if (((this.Adapter != null)
  6941. && (this.Adapter.UpdateCommand != null))) {
  6942. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6943. }
  6944. }
  6945. }
  6946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6948. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6949. get {
  6950. if ((this._commandCollection == null)) {
  6951. this.InitCommandCollection();
  6952. }
  6953. return this._commandCollection;
  6954. }
  6955. }
  6956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6958. public bool ClearBeforeFill {
  6959. get {
  6960. return this._clearBeforeFill;
  6961. }
  6962. set {
  6963. this._clearBeforeFill = value;
  6964. }
  6965. }
  6966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6968. private void InitAdapter() {
  6969. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6970. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6971. tableMapping.SourceTable = "Table";
  6972. tableMapping.DataSetTable = "Смены";
  6973. tableMapping.ColumnMappings.Add("ID", "ID");
  6974. tableMapping.ColumnMappings.Add("Дата", "Дата");
  6975. tableMapping.ColumnMappings.Add("Официант", "Официант");
  6976. tableMapping.ColumnMappings.Add("Повар", "Повар");
  6977. this._adapter.TableMappings.Add(tableMapping);
  6978. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6979. this._adapter.DeleteCommand.Connection = this.Connection;
  6980. 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_Повар)))";
  6981. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6982. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6983. 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, "", "", ""));
  6984. 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, "", "", ""));
  6985. 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, "", "", ""));
  6986. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Официант", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Официант", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6987. 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, "", "", ""));
  6988. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Повар", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Повар", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6989. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6990. this._adapter.InsertCommand.Connection = this.Connection;
  6991. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Смены] ([Дата], [Официант], [Повар]) VALUES (@Дата, @Официант," +
  6992. " @Повар);\r\nSELECT ID, Дата, Официант, Повар FROM Смены WHERE (ID = SCOPE_IDENTIT" +
  6993. "Y())";
  6994. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6995. 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, "", "", ""));
  6996. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Официант", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Официант", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6997. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Повар", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Повар", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6998. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6999. this._adapter.UpdateCommand.Connection = this.Connection;
  7000. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Смены] SET [Дата] = @Дата, [Официант] = @Официант, [Повар] = @Повар WHERE (([ID] = @Original_ID) AND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Original_Дата)) AND ((@IsNull_Официант = 1 AND [Официант] IS NULL) OR ([Официант] = @Original_Официант)) AND ((@IsNull_Повар = 1 AND [Повар] IS NULL) OR ([Повар] = @Original_Повар)));
  7001. SELECT ID, Дата, Официант, Повар FROM Смены WHERE (ID = @ID)";
  7002. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7003. 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, "", "", ""));
  7004. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Официант", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Официант", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7005. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Повар", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Повар", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7006. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7007. 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, "", "", ""));
  7008. 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, "", "", ""));
  7009. 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, "", "", ""));
  7010. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Официант", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Официант", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7011. 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, "", "", ""));
  7012. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Повар", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Повар", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7013. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7014. }
  7015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7017. private void InitConnection() {
  7018. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7019. this._connection.ConnectionString = global::kafe_Loriy.Properties.Settings.Default.ОООКафе_ЛорийConnectionString;
  7020. }
  7021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7023. private void InitCommandCollection() {
  7024. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7025. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7026. this._commandCollection[0].Connection = this.Connection;
  7027. this._commandCollection[0].CommandText = "SELECT ID, Дата, Официант, Повар FROM dbo.Смены";
  7028. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7029. }
  7030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7032. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7033. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7034. public virtual int Fill(ОООКафе_ЛорийDataSet.СменыDataTable dataTable) {
  7035. this.Adapter.SelectCommand = this.CommandCollection[0];
  7036. if ((this.ClearBeforeFill == true)) {
  7037. dataTable.Clear();
  7038. }
  7039. int returnValue = this.Adapter.Fill(dataTable);
  7040. return returnValue;
  7041. }
  7042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7044. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7045. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7046. public virtual ОООКафе_ЛорийDataSet.СменыDataTable GetData() {
  7047. this.Adapter.SelectCommand = this.CommandCollection[0];
  7048. ОООКафе_ЛорийDataSet.СменыDataTable dataTable = new ОООКафе_ЛорийDataSet.СменыDataTable();
  7049. this.Adapter.Fill(dataTable);
  7050. return dataTable;
  7051. }
  7052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7054. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7055. public virtual int Update(ОООКафе_ЛорийDataSet.СменыDataTable dataTable) {
  7056. return this.Adapter.Update(dataTable);
  7057. }
  7058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7060. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7061. public virtual int Update(ОООКафе_ЛорийDataSet dataSet) {
  7062. return this.Adapter.Update(dataSet, "Смены");
  7063. }
  7064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7066. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7067. public virtual int Update(global::System.Data.DataRow dataRow) {
  7068. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7069. dataRow});
  7070. }
  7071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7073. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7074. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7075. return this.Adapter.Update(dataRows);
  7076. }
  7077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7079. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7080. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7081. public virtual int Delete(long Original_ID, global::System.Nullable<global::System.DateTime> Original_Дата, global::System.Nullable<long> Original_Официант, global::System.Nullable<long> Original_Повар) {
  7082. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID));
  7083. if ((Original_Дата.HasValue == true)) {
  7084. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7085. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_Дата.Value));
  7086. }
  7087. else {
  7088. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7089. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7090. }
  7091. if ((Original_Официант.HasValue == true)) {
  7092. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7093. this.Adapter.DeleteCommand.Parameters[4].Value = ((long)(Original_Официант.Value));
  7094. }
  7095. else {
  7096. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7097. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7098. }
  7099. if ((Original_Повар.HasValue == true)) {
  7100. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7101. this.Adapter.DeleteCommand.Parameters[6].Value = ((long)(Original_Повар.Value));
  7102. }
  7103. else {
  7104. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7105. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7106. }
  7107. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7108. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7109. != global::System.Data.ConnectionState.Open)) {
  7110. this.Adapter.DeleteCommand.Connection.Open();
  7111. }
  7112. try {
  7113. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7114. return returnValue;
  7115. }
  7116. finally {
  7117. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7118. this.Adapter.DeleteCommand.Connection.Close();
  7119. }
  7120. }
  7121. }
  7122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7124. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7125. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7126. public virtual int Insert(global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<long> Официант, global::System.Nullable<long> Повар) {
  7127. if ((Дата.HasValue == true)) {
  7128. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(Дата.Value));
  7129. }
  7130. else {
  7131. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7132. }
  7133. if ((Официант.HasValue == true)) {
  7134. this.Adapter.InsertCommand.Parameters[1].Value = ((long)(Официант.Value));
  7135. }
  7136. else {
  7137. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7138. }
  7139. if ((Повар.HasValue == true)) {
  7140. this.Adapter.InsertCommand.Parameters[2].Value = ((long)(Повар.Value));
  7141. }
  7142. else {
  7143. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7144. }
  7145. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7146. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7147. != global::System.Data.ConnectionState.Open)) {
  7148. this.Adapter.InsertCommand.Connection.Open();
  7149. }
  7150. try {
  7151. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7152. return returnValue;
  7153. }
  7154. finally {
  7155. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7156. this.Adapter.InsertCommand.Connection.Close();
  7157. }
  7158. }
  7159. }
  7160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7162. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7163. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7164. public virtual int Update(global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<long> Официант, global::System.Nullable<long> Повар, long Original_ID, global::System.Nullable<global::System.DateTime> Original_Дата, global::System.Nullable<long> Original_Официант, global::System.Nullable<long> Original_Повар, long ID) {
  7165. if ((Дата.HasValue == true)) {
  7166. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(Дата.Value));
  7167. }
  7168. else {
  7169. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7170. }
  7171. if ((Официант.HasValue == true)) {
  7172. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(Официант.Value));
  7173. }
  7174. else {
  7175. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7176. }
  7177. if ((Повар.HasValue == true)) {
  7178. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(Повар.Value));
  7179. }
  7180. else {
  7181. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7182. }
  7183. this.Adapter.UpdateCommand.Parameters[3].Value = ((long)(Original_ID));
  7184. if ((Original_Дата.HasValue == true)) {
  7185. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  7186. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_Дата.Value));
  7187. }
  7188. else {
  7189. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  7190. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7191. }
  7192. if ((Original_Официант.HasValue == true)) {
  7193. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  7194. this.Adapter.UpdateCommand.Parameters[7].Value = ((long)(Original_Официант.Value));
  7195. }
  7196. else {
  7197. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  7198. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7199. }
  7200. if ((Original_Повар.HasValue == true)) {
  7201. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  7202. this.Adapter.UpdateCommand.Parameters[9].Value = ((long)(Original_Повар.Value));
  7203. }
  7204. else {
  7205. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  7206. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7207. }
  7208. this.Adapter.UpdateCommand.Parameters[10].Value = ((long)(ID));
  7209. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7210. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7211. != global::System.Data.ConnectionState.Open)) {
  7212. this.Adapter.UpdateCommand.Connection.Open();
  7213. }
  7214. try {
  7215. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7216. return returnValue;
  7217. }
  7218. finally {
  7219. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7220. this.Adapter.UpdateCommand.Connection.Close();
  7221. }
  7222. }
  7223. }
  7224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7226. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7227. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7228. public virtual int Update(global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<long> Официант, global::System.Nullable<long> Повар, long Original_ID, global::System.Nullable<global::System.DateTime> Original_Дата, global::System.Nullable<long> Original_Официант, global::System.Nullable<long> Original_Повар) {
  7229. return this.Update(Дата, Официант, Повар, Original_ID, Original_Дата, Original_Официант, Original_Повар, Original_ID);
  7230. }
  7231. }
  7232. /// <summary>
  7233. ///Represents the connection and commands used to retrieve and save data.
  7234. ///</summary>
  7235. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7236. [global::System.ComponentModel.ToolboxItem(true)]
  7237. [global::System.ComponentModel.DataObjectAttribute(true)]
  7238. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7239. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7240. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7241. public partial class СотрудникиTableAdapter : global::System.ComponentModel.Component {
  7242. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7243. private global::System.Data.SqlClient.SqlConnection _connection;
  7244. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7245. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7246. private bool _clearBeforeFill;
  7247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7249. public СотрудникиTableAdapter() {
  7250. this.ClearBeforeFill = true;
  7251. }
  7252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7254. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7255. get {
  7256. if ((this._adapter == null)) {
  7257. this.InitAdapter();
  7258. }
  7259. return this._adapter;
  7260. }
  7261. }
  7262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7264. internal global::System.Data.SqlClient.SqlConnection Connection {
  7265. get {
  7266. if ((this._connection == null)) {
  7267. this.InitConnection();
  7268. }
  7269. return this._connection;
  7270. }
  7271. set {
  7272. this._connection = value;
  7273. if ((this.Adapter.InsertCommand != null)) {
  7274. this.Adapter.InsertCommand.Connection = value;
  7275. }
  7276. if ((this.Adapter.DeleteCommand != null)) {
  7277. this.Adapter.DeleteCommand.Connection = value;
  7278. }
  7279. if ((this.Adapter.UpdateCommand != null)) {
  7280. this.Adapter.UpdateCommand.Connection = value;
  7281. }
  7282. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7283. if ((this.CommandCollection[i] != null)) {
  7284. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7285. }
  7286. }
  7287. }
  7288. }
  7289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7291. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7292. get {
  7293. return this._transaction;
  7294. }
  7295. set {
  7296. this._transaction = value;
  7297. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7298. this.CommandCollection[i].Transaction = this._transaction;
  7299. }
  7300. if (((this.Adapter != null)
  7301. && (this.Adapter.DeleteCommand != null))) {
  7302. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7303. }
  7304. if (((this.Adapter != null)
  7305. && (this.Adapter.InsertCommand != null))) {
  7306. this.Adapter.InsertCommand.Transaction = this._transaction;
  7307. }
  7308. if (((this.Adapter != null)
  7309. && (this.Adapter.UpdateCommand != null))) {
  7310. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7311. }
  7312. }
  7313. }
  7314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7316. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7317. get {
  7318. if ((this._commandCollection == null)) {
  7319. this.InitCommandCollection();
  7320. }
  7321. return this._commandCollection;
  7322. }
  7323. }
  7324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7326. public bool ClearBeforeFill {
  7327. get {
  7328. return this._clearBeforeFill;
  7329. }
  7330. set {
  7331. this._clearBeforeFill = value;
  7332. }
  7333. }
  7334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7336. private void InitAdapter() {
  7337. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7338. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7339. tableMapping.SourceTable = "Table";
  7340. tableMapping.DataSetTable = "Сотрудники";
  7341. tableMapping.ColumnMappings.Add("ID", "ID");
  7342. tableMapping.ColumnMappings.Add("Логин", "Логин");
  7343. tableMapping.ColumnMappings.Add("Пароль", "Пароль");
  7344. tableMapping.ColumnMappings.Add("Роль", "Роль");
  7345. tableMapping.ColumnMappings.Add("Принят", "Принят");
  7346. tableMapping.ColumnMappings.Add("Статус", "Статус");
  7347. this._adapter.TableMappings.Add(tableMapping);
  7348. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7349. this._adapter.DeleteCommand.Connection = this.Connection;
  7350. 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_Принят = 1 AND [Принят] IS NULL) OR ([Принят] = @Original_Принят)) AND ((@IsNull_Статус = 1 AND [Статус] IS NULL) OR ([Статус] = @Original_Статус)))";
  7351. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7352. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7353. 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, "", "", ""));
  7354. 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, "", "", ""));
  7355. 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, "", "", ""));
  7356. 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, "", "", ""));
  7357. 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, "", "", ""));
  7358. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Роль", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Роль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7359. 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, "", "", ""));
  7360. 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, "", "", ""));
  7361. 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, "", "", ""));
  7362. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Статус", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Статус", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7363. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7364. this._adapter.InsertCommand.Connection = this.Connection;
  7365. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Сотрудники] ([Логин], [Пароль], [Роль], [Принят], [Статус]) VA" +
  7366. "LUES (@Логин, @Пароль, @Роль, @Принят, @Статус);\r\nSELECT ID, Логин, Пароль, Роль" +
  7367. ", Принят, Статус FROM Сотрудники WHERE (ID = SCOPE_IDENTITY())";
  7368. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7369. 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, "", "", ""));
  7370. 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, "", "", ""));
  7371. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Роль", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Роль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7372. 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, "", "", ""));
  7373. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Статус", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Статус", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7374. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7375. this._adapter.UpdateCommand.Connection = this.Connection;
  7376. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Сотрудники] SET [Логин] = @Логин, [Пароль] = @Пароль, [Роль] = @Роль, [Принят] = @Принят, [Статус] = @Статус WHERE (([ID] = @Original_ID) AND ((@IsNull_Логин = 1 AND [Логин] IS NULL) OR ([Логин] = @Original_Логин)) AND ((@IsNull_Пароль = 1 AND [Пароль] IS NULL) OR ([Пароль] = @Original_Пароль)) AND ((@IsNull_Роль = 1 AND [Роль] IS NULL) OR ([Роль] = @Original_Роль)) AND ((@IsNull_Принят = 1 AND [Принят] IS NULL) OR ([Принят] = @Original_Принят)) AND ((@IsNull_Статус = 1 AND [Статус] IS NULL) OR ([Статус] = @Original_Статус)));
  7377. SELECT ID, Логин, Пароль, Роль, Принят, Статус FROM Сотрудники WHERE (ID = @ID)";
  7378. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7379. 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, "", "", ""));
  7380. 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, "", "", ""));
  7381. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Роль", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Роль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7382. 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, "", "", ""));
  7383. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Статус", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Статус", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7384. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7385. 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, "", "", ""));
  7386. 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, "", "", ""));
  7387. 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, "", "", ""));
  7388. 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, "", "", ""));
  7389. 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, "", "", ""));
  7390. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Роль", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Роль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7391. 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, "", "", ""));
  7392. 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, "", "", ""));
  7393. 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, "", "", ""));
  7394. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Статус", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Статус", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7395. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7396. }
  7397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7399. private void InitConnection() {
  7400. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7401. this._connection.ConnectionString = global::kafe_Loriy.Properties.Settings.Default.ОООКафе_ЛорийConnectionString;
  7402. }
  7403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7405. private void InitCommandCollection() {
  7406. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7407. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7408. this._commandCollection[0].Connection = this.Connection;
  7409. this._commandCollection[0].CommandText = "SELECT ID, Логин, Пароль, Роль, Принят, Статус FROM dbo.Сотрудники";
  7410. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7411. }
  7412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7414. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7415. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7416. public virtual int Fill(ОООКафе_ЛорийDataSet.СотрудникиDataTable dataTable) {
  7417. this.Adapter.SelectCommand = this.CommandCollection[0];
  7418. if ((this.ClearBeforeFill == true)) {
  7419. dataTable.Clear();
  7420. }
  7421. int returnValue = this.Adapter.Fill(dataTable);
  7422. return returnValue;
  7423. }
  7424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7426. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7427. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7428. public virtual ОООКафе_ЛорийDataSet.СотрудникиDataTable GetData() {
  7429. this.Adapter.SelectCommand = this.CommandCollection[0];
  7430. ОООКафе_ЛорийDataSet.СотрудникиDataTable dataTable = new ОООКафе_ЛорийDataSet.СотрудникиDataTable();
  7431. this.Adapter.Fill(dataTable);
  7432. return dataTable;
  7433. }
  7434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7436. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7437. public virtual int Update(ОООКафе_ЛорийDataSet.СотрудникиDataTable dataTable) {
  7438. return this.Adapter.Update(dataTable);
  7439. }
  7440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7442. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7443. public virtual int Update(ОООКафе_ЛорийDataSet dataSet) {
  7444. return this.Adapter.Update(dataSet, "Сотрудники");
  7445. }
  7446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7448. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7449. public virtual int Update(global::System.Data.DataRow dataRow) {
  7450. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7451. dataRow});
  7452. }
  7453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7455. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7456. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7457. return this.Adapter.Update(dataRows);
  7458. }
  7459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7461. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7462. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7463. public virtual int Delete(long Original_ID, string Original_Логин, string Original_Пароль, global::System.Nullable<long> Original_Роль, global::System.Nullable<global::System.DateTime> Original_Принят, global::System.Nullable<long> Original_Статус) {
  7464. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID));
  7465. if ((Original_Логин == null)) {
  7466. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7467. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7468. }
  7469. else {
  7470. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7471. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Логин));
  7472. }
  7473. if ((Original_Пароль == null)) {
  7474. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7475. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7476. }
  7477. else {
  7478. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7479. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Пароль));
  7480. }
  7481. if ((Original_Роль.HasValue == true)) {
  7482. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7483. this.Adapter.DeleteCommand.Parameters[6].Value = ((long)(Original_Роль.Value));
  7484. }
  7485. else {
  7486. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7487. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7488. }
  7489. if ((Original_Принят.HasValue == true)) {
  7490. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7491. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_Принят.Value));
  7492. }
  7493. else {
  7494. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7495. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7496. }
  7497. if ((Original_Статус.HasValue == true)) {
  7498. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  7499. this.Adapter.DeleteCommand.Parameters[10].Value = ((long)(Original_Статус.Value));
  7500. }
  7501. else {
  7502. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  7503. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  7504. }
  7505. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7506. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7507. != global::System.Data.ConnectionState.Open)) {
  7508. this.Adapter.DeleteCommand.Connection.Open();
  7509. }
  7510. try {
  7511. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7512. return returnValue;
  7513. }
  7514. finally {
  7515. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7516. this.Adapter.DeleteCommand.Connection.Close();
  7517. }
  7518. }
  7519. }
  7520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7522. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7523. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7524. public virtual int Insert(string Логин, string Пароль, global::System.Nullable<long> Роль, global::System.Nullable<global::System.DateTime> Принят, global::System.Nullable<long> Статус) {
  7525. if ((Логин == null)) {
  7526. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7527. }
  7528. else {
  7529. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Логин));
  7530. }
  7531. if ((Пароль == null)) {
  7532. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7533. }
  7534. else {
  7535. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Пароль));
  7536. }
  7537. if ((Роль.HasValue == true)) {
  7538. this.Adapter.InsertCommand.Parameters[2].Value = ((long)(Роль.Value));
  7539. }
  7540. else {
  7541. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7542. }
  7543. if ((Принят.HasValue == true)) {
  7544. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Принят.Value));
  7545. }
  7546. else {
  7547. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7548. }
  7549. if ((Статус.HasValue == true)) {
  7550. this.Adapter.InsertCommand.Parameters[4].Value = ((long)(Статус.Value));
  7551. }
  7552. else {
  7553. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  7554. }
  7555. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7556. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7557. != global::System.Data.ConnectionState.Open)) {
  7558. this.Adapter.InsertCommand.Connection.Open();
  7559. }
  7560. try {
  7561. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7562. return returnValue;
  7563. }
  7564. finally {
  7565. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7566. this.Adapter.InsertCommand.Connection.Close();
  7567. }
  7568. }
  7569. }
  7570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7572. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7573. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7574. public virtual int Update(string Логин, string Пароль, global::System.Nullable<long> Роль, global::System.Nullable<global::System.DateTime> Принят, global::System.Nullable<long> Статус, long Original_ID, string Original_Логин, string Original_Пароль, global::System.Nullable<long> Original_Роль, global::System.Nullable<global::System.DateTime> Original_Принят, global::System.Nullable<long> Original_Статус, long ID) {
  7575. if ((Логин == null)) {
  7576. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7577. }
  7578. else {
  7579. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Логин));
  7580. }
  7581. if ((Пароль == null)) {
  7582. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7583. }
  7584. else {
  7585. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Пароль));
  7586. }
  7587. if ((Роль.HasValue == true)) {
  7588. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(Роль.Value));
  7589. }
  7590. else {
  7591. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7592. }
  7593. if ((Принят.HasValue == true)) {
  7594. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Принят.Value));
  7595. }
  7596. else {
  7597. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7598. }
  7599. if ((Статус.HasValue == true)) {
  7600. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(Статус.Value));
  7601. }
  7602. else {
  7603. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7604. }
  7605. this.Adapter.UpdateCommand.Parameters[5].Value = ((long)(Original_ID));
  7606. if ((Original_Логин == null)) {
  7607. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  7608. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7609. }
  7610. else {
  7611. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  7612. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Логин));
  7613. }
  7614. if ((Original_Пароль == null)) {
  7615. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  7616. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7617. }
  7618. else {
  7619. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  7620. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Пароль));
  7621. }
  7622. if ((Original_Роль.HasValue == true)) {
  7623. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  7624. this.Adapter.UpdateCommand.Parameters[11].Value = ((long)(Original_Роль.Value));
  7625. }
  7626. else {
  7627. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  7628. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  7629. }
  7630. if ((Original_Принят.HasValue == true)) {
  7631. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  7632. this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(Original_Принят.Value));
  7633. }
  7634. else {
  7635. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  7636. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  7637. }
  7638. if ((Original_Статус.HasValue == true)) {
  7639. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  7640. this.Adapter.UpdateCommand.Parameters[15].Value = ((long)(Original_Статус.Value));
  7641. }
  7642. else {
  7643. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  7644. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  7645. }
  7646. this.Adapter.UpdateCommand.Parameters[16].Value = ((long)(ID));
  7647. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7648. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7649. != global::System.Data.ConnectionState.Open)) {
  7650. this.Adapter.UpdateCommand.Connection.Open();
  7651. }
  7652. try {
  7653. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7654. return returnValue;
  7655. }
  7656. finally {
  7657. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7658. this.Adapter.UpdateCommand.Connection.Close();
  7659. }
  7660. }
  7661. }
  7662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7664. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7665. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7666. public virtual int Update(string Логин, string Пароль, global::System.Nullable<long> Роль, global::System.Nullable<global::System.DateTime> Принят, global::System.Nullable<long> Статус, long Original_ID, string Original_Логин, string Original_Пароль, global::System.Nullable<long> Original_Роль, global::System.Nullable<global::System.DateTime> Original_Принят, global::System.Nullable<long> Original_Статус) {
  7667. return this.Update(Логин, Пароль, Роль, Принят, Статус, Original_ID, Original_Логин, Original_Пароль, Original_Роль, Original_Принят, Original_Статус, Original_ID);
  7668. }
  7669. }
  7670. /// <summary>
  7671. ///Represents the connection and commands used to retrieve and save data.
  7672. ///</summary>
  7673. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7674. [global::System.ComponentModel.ToolboxItem(true)]
  7675. [global::System.ComponentModel.DataObjectAttribute(true)]
  7676. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7677. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7678. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7679. public partial class СтатусыЗаказаTableAdapter : global::System.ComponentModel.Component {
  7680. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7681. private global::System.Data.SqlClient.SqlConnection _connection;
  7682. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7683. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7684. private bool _clearBeforeFill;
  7685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7687. public СтатусыЗаказаTableAdapter() {
  7688. this.ClearBeforeFill = true;
  7689. }
  7690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7692. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7693. get {
  7694. if ((this._adapter == null)) {
  7695. this.InitAdapter();
  7696. }
  7697. return this._adapter;
  7698. }
  7699. }
  7700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7702. internal global::System.Data.SqlClient.SqlConnection Connection {
  7703. get {
  7704. if ((this._connection == null)) {
  7705. this.InitConnection();
  7706. }
  7707. return this._connection;
  7708. }
  7709. set {
  7710. this._connection = value;
  7711. if ((this.Adapter.InsertCommand != null)) {
  7712. this.Adapter.InsertCommand.Connection = value;
  7713. }
  7714. if ((this.Adapter.DeleteCommand != null)) {
  7715. this.Adapter.DeleteCommand.Connection = value;
  7716. }
  7717. if ((this.Adapter.UpdateCommand != null)) {
  7718. this.Adapter.UpdateCommand.Connection = value;
  7719. }
  7720. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7721. if ((this.CommandCollection[i] != null)) {
  7722. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7723. }
  7724. }
  7725. }
  7726. }
  7727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7729. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7730. get {
  7731. return this._transaction;
  7732. }
  7733. set {
  7734. this._transaction = value;
  7735. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7736. this.CommandCollection[i].Transaction = this._transaction;
  7737. }
  7738. if (((this.Adapter != null)
  7739. && (this.Adapter.DeleteCommand != null))) {
  7740. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7741. }
  7742. if (((this.Adapter != null)
  7743. && (this.Adapter.InsertCommand != null))) {
  7744. this.Adapter.InsertCommand.Transaction = this._transaction;
  7745. }
  7746. if (((this.Adapter != null)
  7747. && (this.Adapter.UpdateCommand != null))) {
  7748. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7749. }
  7750. }
  7751. }
  7752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7754. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7755. get {
  7756. if ((this._commandCollection == null)) {
  7757. this.InitCommandCollection();
  7758. }
  7759. return this._commandCollection;
  7760. }
  7761. }
  7762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7764. public bool ClearBeforeFill {
  7765. get {
  7766. return this._clearBeforeFill;
  7767. }
  7768. set {
  7769. this._clearBeforeFill = value;
  7770. }
  7771. }
  7772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7774. private void InitAdapter() {
  7775. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7776. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7777. tableMapping.SourceTable = "Table";
  7778. tableMapping.DataSetTable = "СтатусыЗаказа";
  7779. tableMapping.ColumnMappings.Add("ID", "ID");
  7780. tableMapping.ColumnMappings.Add("Название_статуса", "Название_статуса");
  7781. this._adapter.TableMappings.Add(tableMapping);
  7782. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7783. this._adapter.DeleteCommand.Connection = this.Connection;
  7784. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[СтатусыЗаказа] WHERE (([ID] = @Original_ID) AND ((@IsNull_Назв" +
  7785. "ание_статуса = 1 AND [Название_статуса] IS NULL) OR ([Название_статуса] = @Origi" +
  7786. "nal_Название_статуса)))";
  7787. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7788. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7789. 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, "", "", ""));
  7790. 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, "", "", ""));
  7791. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7792. this._adapter.InsertCommand.Connection = this.Connection;
  7793. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[СтатусыЗаказа] ([Название_статуса]) VALUES (@Название_статуса)" +
  7794. ";\r\nSELECT ID, Название_статуса FROM СтатусыЗаказа WHERE (ID = SCOPE_IDENTITY())";
  7795. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7796. 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, "", "", ""));
  7797. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7798. this._adapter.UpdateCommand.Connection = this.Connection;
  7799. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[СтатусыЗаказа] SET [Название_статуса] = @Название_статуса WHERE (([ID] = @Original_ID) AND ((@IsNull_Название_статуса = 1 AND [Название_статуса] IS NULL) OR ([Название_статуса] = @Original_Название_статуса)));
  7800. SELECT ID, Название_статуса FROM СтатусыЗаказа WHERE (ID = @ID)";
  7801. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7802. 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, "", "", ""));
  7803. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7804. 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, "", "", ""));
  7805. 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, "", "", ""));
  7806. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7807. }
  7808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7810. private void InitConnection() {
  7811. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7812. this._connection.ConnectionString = global::kafe_Loriy.Properties.Settings.Default.ОООКафе_ЛорийConnectionString;
  7813. }
  7814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7816. private void InitCommandCollection() {
  7817. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7818. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7819. this._commandCollection[0].Connection = this.Connection;
  7820. this._commandCollection[0].CommandText = "SELECT ID, Название_статуса FROM dbo.СтатусыЗаказа";
  7821. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7822. }
  7823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7825. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7826. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7827. public virtual int Fill(ОООКафе_ЛорийDataSet.СтатусыЗаказаDataTable dataTable) {
  7828. this.Adapter.SelectCommand = this.CommandCollection[0];
  7829. if ((this.ClearBeforeFill == true)) {
  7830. dataTable.Clear();
  7831. }
  7832. int returnValue = this.Adapter.Fill(dataTable);
  7833. return returnValue;
  7834. }
  7835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7837. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7838. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7839. public virtual ОООКафе_ЛорийDataSet.СтатусыЗаказаDataTable GetData() {
  7840. this.Adapter.SelectCommand = this.CommandCollection[0];
  7841. ОООКафе_ЛорийDataSet.СтатусыЗаказаDataTable dataTable = new ОООКафе_ЛорийDataSet.СтатусыЗаказаDataTable();
  7842. this.Adapter.Fill(dataTable);
  7843. return dataTable;
  7844. }
  7845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7847. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7848. public virtual int Update(ОООКафе_ЛорийDataSet.СтатусыЗаказаDataTable dataTable) {
  7849. return this.Adapter.Update(dataTable);
  7850. }
  7851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7853. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7854. public virtual int Update(ОООКафе_ЛорийDataSet dataSet) {
  7855. return this.Adapter.Update(dataSet, "СтатусыЗаказа");
  7856. }
  7857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7859. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7860. public virtual int Update(global::System.Data.DataRow dataRow) {
  7861. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7862. dataRow});
  7863. }
  7864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7866. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7867. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7868. return this.Adapter.Update(dataRows);
  7869. }
  7870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7872. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7873. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7874. public virtual int Delete(long Original_ID, string Original_Название_статуса) {
  7875. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID));
  7876. if ((Original_Название_статуса == null)) {
  7877. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7878. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7879. }
  7880. else {
  7881. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7882. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название_статуса));
  7883. }
  7884. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7885. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7886. != global::System.Data.ConnectionState.Open)) {
  7887. this.Adapter.DeleteCommand.Connection.Open();
  7888. }
  7889. try {
  7890. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7891. return returnValue;
  7892. }
  7893. finally {
  7894. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7895. this.Adapter.DeleteCommand.Connection.Close();
  7896. }
  7897. }
  7898. }
  7899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7901. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7902. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7903. public virtual int Insert(string Название_статуса) {
  7904. if ((Название_статуса == null)) {
  7905. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7906. }
  7907. else {
  7908. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название_статуса));
  7909. }
  7910. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7911. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7912. != global::System.Data.ConnectionState.Open)) {
  7913. this.Adapter.InsertCommand.Connection.Open();
  7914. }
  7915. try {
  7916. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7917. return returnValue;
  7918. }
  7919. finally {
  7920. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7921. this.Adapter.InsertCommand.Connection.Close();
  7922. }
  7923. }
  7924. }
  7925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7927. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7928. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7929. public virtual int Update(string Название_статуса, long Original_ID, string Original_Название_статуса, long ID) {
  7930. if ((Название_статуса == null)) {
  7931. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7932. }
  7933. else {
  7934. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название_статуса));
  7935. }
  7936. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(Original_ID));
  7937. if ((Original_Название_статуса == null)) {
  7938. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  7939. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7940. }
  7941. else {
  7942. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  7943. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Название_статуса));
  7944. }
  7945. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(ID));
  7946. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7947. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7948. != global::System.Data.ConnectionState.Open)) {
  7949. this.Adapter.UpdateCommand.Connection.Open();
  7950. }
  7951. try {
  7952. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7953. return returnValue;
  7954. }
  7955. finally {
  7956. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7957. this.Adapter.UpdateCommand.Connection.Close();
  7958. }
  7959. }
  7960. }
  7961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7963. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7964. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7965. public virtual int Update(string Название_статуса, long Original_ID, string Original_Название_статуса) {
  7966. return this.Update(Название_статуса, Original_ID, Original_Название_статуса, Original_ID);
  7967. }
  7968. }
  7969. /// <summary>
  7970. ///Represents the connection and commands used to retrieve and save data.
  7971. ///</summary>
  7972. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7973. [global::System.ComponentModel.ToolboxItem(true)]
  7974. [global::System.ComponentModel.DataObjectAttribute(true)]
  7975. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7976. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7977. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7978. public partial class СтатусыСотрудниковTableAdapter : global::System.ComponentModel.Component {
  7979. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7980. private global::System.Data.SqlClient.SqlConnection _connection;
  7981. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7982. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7983. private bool _clearBeforeFill;
  7984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7986. public СтатусыСотрудниковTableAdapter() {
  7987. this.ClearBeforeFill = true;
  7988. }
  7989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7991. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7992. get {
  7993. if ((this._adapter == null)) {
  7994. this.InitAdapter();
  7995. }
  7996. return this._adapter;
  7997. }
  7998. }
  7999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8001. internal global::System.Data.SqlClient.SqlConnection Connection {
  8002. get {
  8003. if ((this._connection == null)) {
  8004. this.InitConnection();
  8005. }
  8006. return this._connection;
  8007. }
  8008. set {
  8009. this._connection = value;
  8010. if ((this.Adapter.InsertCommand != null)) {
  8011. this.Adapter.InsertCommand.Connection = value;
  8012. }
  8013. if ((this.Adapter.DeleteCommand != null)) {
  8014. this.Adapter.DeleteCommand.Connection = value;
  8015. }
  8016. if ((this.Adapter.UpdateCommand != null)) {
  8017. this.Adapter.UpdateCommand.Connection = value;
  8018. }
  8019. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8020. if ((this.CommandCollection[i] != null)) {
  8021. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8022. }
  8023. }
  8024. }
  8025. }
  8026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8028. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8029. get {
  8030. return this._transaction;
  8031. }
  8032. set {
  8033. this._transaction = value;
  8034. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8035. this.CommandCollection[i].Transaction = this._transaction;
  8036. }
  8037. if (((this.Adapter != null)
  8038. && (this.Adapter.DeleteCommand != null))) {
  8039. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8040. }
  8041. if (((this.Adapter != null)
  8042. && (this.Adapter.InsertCommand != null))) {
  8043. this.Adapter.InsertCommand.Transaction = this._transaction;
  8044. }
  8045. if (((this.Adapter != null)
  8046. && (this.Adapter.UpdateCommand != null))) {
  8047. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8048. }
  8049. }
  8050. }
  8051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8053. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8054. get {
  8055. if ((this._commandCollection == null)) {
  8056. this.InitCommandCollection();
  8057. }
  8058. return this._commandCollection;
  8059. }
  8060. }
  8061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8063. public bool ClearBeforeFill {
  8064. get {
  8065. return this._clearBeforeFill;
  8066. }
  8067. set {
  8068. this._clearBeforeFill = value;
  8069. }
  8070. }
  8071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8073. private void InitAdapter() {
  8074. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8075. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8076. tableMapping.SourceTable = "Table";
  8077. tableMapping.DataSetTable = "СтатусыСотрудников";
  8078. tableMapping.ColumnMappings.Add("ID", "ID");
  8079. tableMapping.ColumnMappings.Add("Название_статуса", "Название_статуса");
  8080. this._adapter.TableMappings.Add(tableMapping);
  8081. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8082. this._adapter.DeleteCommand.Connection = this.Connection;
  8083. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[СтатусыСотрудников] WHERE (([ID] = @Original_ID) AND ((@IsNull" +
  8084. "_Название_статуса = 1 AND [Название_статуса] IS NULL) OR ([Название_статуса] = @" +
  8085. "Original_Название_статуса)))";
  8086. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8087. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8088. 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, "", "", ""));
  8089. 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, "", "", ""));
  8090. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8091. this._adapter.InsertCommand.Connection = this.Connection;
  8092. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[СтатусыСотрудников] ([Название_статуса]) VALUES (@Название_ста" +
  8093. "туса);\r\nSELECT ID, Название_статуса FROM СтатусыСотрудников WHERE (ID = SCOPE_ID" +
  8094. "ENTITY())";
  8095. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8096. 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, "", "", ""));
  8097. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8098. this._adapter.UpdateCommand.Connection = this.Connection;
  8099. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[СтатусыСотрудников] SET [Название_статуса] = @Название_статуса WHERE (([ID] = @Original_ID) AND ((@IsNull_Название_статуса = 1 AND [Название_статуса] IS NULL) OR ([Название_статуса] = @Original_Название_статуса)));
  8100. SELECT ID, Название_статуса FROM СтатусыСотрудников WHERE (ID = @ID)";
  8101. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8102. 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, "", "", ""));
  8103. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8104. 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, "", "", ""));
  8105. 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, "", "", ""));
  8106. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8107. }
  8108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8110. private void InitConnection() {
  8111. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8112. this._connection.ConnectionString = global::kafe_Loriy.Properties.Settings.Default.ОООКафе_ЛорийConnectionString;
  8113. }
  8114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8116. private void InitCommandCollection() {
  8117. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8118. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8119. this._commandCollection[0].Connection = this.Connection;
  8120. this._commandCollection[0].CommandText = "SELECT ID, Название_статуса FROM dbo.СтатусыСотрудников";
  8121. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8122. }
  8123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8125. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8126. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8127. public virtual int Fill(ОООКафе_ЛорийDataSet.СтатусыСотрудниковDataTable dataTable) {
  8128. this.Adapter.SelectCommand = this.CommandCollection[0];
  8129. if ((this.ClearBeforeFill == true)) {
  8130. dataTable.Clear();
  8131. }
  8132. int returnValue = this.Adapter.Fill(dataTable);
  8133. return returnValue;
  8134. }
  8135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8137. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8138. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8139. public virtual ОООКафе_ЛорийDataSet.СтатусыСотрудниковDataTable GetData() {
  8140. this.Adapter.SelectCommand = this.CommandCollection[0];
  8141. ОООКафе_ЛорийDataSet.СтатусыСотрудниковDataTable dataTable = new ОООКафе_ЛорийDataSet.СтатусыСотрудниковDataTable();
  8142. this.Adapter.Fill(dataTable);
  8143. return dataTable;
  8144. }
  8145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8147. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8148. public virtual int Update(ОООКафе_ЛорийDataSet.СтатусыСотрудниковDataTable dataTable) {
  8149. return this.Adapter.Update(dataTable);
  8150. }
  8151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8153. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8154. public virtual int Update(ОООКафе_ЛорийDataSet dataSet) {
  8155. return this.Adapter.Update(dataSet, "СтатусыСотрудников");
  8156. }
  8157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8159. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8160. public virtual int Update(global::System.Data.DataRow dataRow) {
  8161. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8162. dataRow});
  8163. }
  8164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8166. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8167. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8168. return this.Adapter.Update(dataRows);
  8169. }
  8170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8172. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8173. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8174. public virtual int Delete(long Original_ID, string Original_Название_статуса) {
  8175. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID));
  8176. if ((Original_Название_статуса == null)) {
  8177. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8178. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8179. }
  8180. else {
  8181. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8182. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название_статуса));
  8183. }
  8184. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8185. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8186. != global::System.Data.ConnectionState.Open)) {
  8187. this.Adapter.DeleteCommand.Connection.Open();
  8188. }
  8189. try {
  8190. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8191. return returnValue;
  8192. }
  8193. finally {
  8194. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8195. this.Adapter.DeleteCommand.Connection.Close();
  8196. }
  8197. }
  8198. }
  8199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8201. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8202. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8203. public virtual int Insert(string Название_статуса) {
  8204. if ((Название_статуса == null)) {
  8205. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8206. }
  8207. else {
  8208. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название_статуса));
  8209. }
  8210. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8211. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8212. != global::System.Data.ConnectionState.Open)) {
  8213. this.Adapter.InsertCommand.Connection.Open();
  8214. }
  8215. try {
  8216. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8217. return returnValue;
  8218. }
  8219. finally {
  8220. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8221. this.Adapter.InsertCommand.Connection.Close();
  8222. }
  8223. }
  8224. }
  8225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8227. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8228. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8229. public virtual int Update(string Название_статуса, long Original_ID, string Original_Название_статуса, long ID) {
  8230. if ((Название_статуса == null)) {
  8231. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8232. }
  8233. else {
  8234. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название_статуса));
  8235. }
  8236. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(Original_ID));
  8237. if ((Original_Название_статуса == null)) {
  8238. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8239. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8240. }
  8241. else {
  8242. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  8243. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Название_статуса));
  8244. }
  8245. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(ID));
  8246. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8247. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8248. != global::System.Data.ConnectionState.Open)) {
  8249. this.Adapter.UpdateCommand.Connection.Open();
  8250. }
  8251. try {
  8252. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8253. return returnValue;
  8254. }
  8255. finally {
  8256. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8257. this.Adapter.UpdateCommand.Connection.Close();
  8258. }
  8259. }
  8260. }
  8261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8263. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8264. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8265. public virtual int Update(string Название_статуса, long Original_ID, string Original_Название_статуса) {
  8266. return this.Update(Название_статуса, Original_ID, Original_Название_статуса, Original_ID);
  8267. }
  8268. }
  8269. /// <summary>
  8270. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  8271. ///</summary>
  8272. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8273. [global::System.ComponentModel.ToolboxItem(true)]
  8274. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  8275. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8276. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  8277. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  8278. private UpdateOrderOption _updateOrder;
  8279. private БлюдаНапиткиTableAdapter _блюдаНапиткиTableAdapter;
  8280. private ЗаказаныеБНTableAdapter _заказаныеБНTableAdapter;
  8281. private ЗаказыTableAdapter _заказыTableAdapter;
  8282. private ОфициантыTableAdapter _официантыTableAdapter;
  8283. private ПовараTableAdapter _повараTableAdapter;
  8284. private РолиTableAdapter _ролиTableAdapter;
  8285. private СменыTableAdapter _сменыTableAdapter;
  8286. private СотрудникиTableAdapter _сотрудникиTableAdapter;
  8287. private СтатусыЗаказаTableAdapter _статусыЗаказаTableAdapter;
  8288. private СтатусыСотрудниковTableAdapter _статусыСотрудниковTableAdapter;
  8289. private bool _backupDataSetBeforeUpdate;
  8290. private global::System.Data.IDbConnection _connection;
  8291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8293. public UpdateOrderOption UpdateOrder {
  8294. get {
  8295. return this._updateOrder;
  8296. }
  8297. set {
  8298. this._updateOrder = value;
  8299. }
  8300. }
  8301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8303. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8304. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8305. "a", "System.Drawing.Design.UITypeEditor")]
  8306. public БлюдаНапиткиTableAdapter БлюдаНапиткиTableAdapter {
  8307. get {
  8308. return this._блюдаНапиткиTableAdapter;
  8309. }
  8310. set {
  8311. this._блюдаНапиткиTableAdapter = value;
  8312. }
  8313. }
  8314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8316. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8317. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8318. "a", "System.Drawing.Design.UITypeEditor")]
  8319. public ЗаказаныеБНTableAdapter ЗаказаныеБНTableAdapter {
  8320. get {
  8321. return this._заказаныеБНTableAdapter;
  8322. }
  8323. set {
  8324. this._заказаныеБНTableAdapter = value;
  8325. }
  8326. }
  8327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8329. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8330. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8331. "a", "System.Drawing.Design.UITypeEditor")]
  8332. public ЗаказыTableAdapter ЗаказыTableAdapter {
  8333. get {
  8334. return this._заказыTableAdapter;
  8335. }
  8336. set {
  8337. this._заказыTableAdapter = value;
  8338. }
  8339. }
  8340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8342. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8343. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8344. "a", "System.Drawing.Design.UITypeEditor")]
  8345. public ОфициантыTableAdapter ОфициантыTableAdapter {
  8346. get {
  8347. return this._официантыTableAdapter;
  8348. }
  8349. set {
  8350. this._официантыTableAdapter = value;
  8351. }
  8352. }
  8353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8355. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8356. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8357. "a", "System.Drawing.Design.UITypeEditor")]
  8358. public ПовараTableAdapter ПовараTableAdapter {
  8359. get {
  8360. return this._повараTableAdapter;
  8361. }
  8362. set {
  8363. this._повараTableAdapter = value;
  8364. }
  8365. }
  8366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8368. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8369. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8370. "a", "System.Drawing.Design.UITypeEditor")]
  8371. public РолиTableAdapter РолиTableAdapter {
  8372. get {
  8373. return this._ролиTableAdapter;
  8374. }
  8375. set {
  8376. this._ролиTableAdapter = value;
  8377. }
  8378. }
  8379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8381. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8382. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8383. "a", "System.Drawing.Design.UITypeEditor")]
  8384. public СменыTableAdapter СменыTableAdapter {
  8385. get {
  8386. return this._сменыTableAdapter;
  8387. }
  8388. set {
  8389. this._сменыTableAdapter = value;
  8390. }
  8391. }
  8392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8394. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8395. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8396. "a", "System.Drawing.Design.UITypeEditor")]
  8397. public СотрудникиTableAdapter СотрудникиTableAdapter {
  8398. get {
  8399. return this._сотрудникиTableAdapter;
  8400. }
  8401. set {
  8402. this._сотрудникиTableAdapter = value;
  8403. }
  8404. }
  8405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8407. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8408. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8409. "a", "System.Drawing.Design.UITypeEditor")]
  8410. public СтатусыЗаказаTableAdapter СтатусыЗаказаTableAdapter {
  8411. get {
  8412. return this._статусыЗаказаTableAdapter;
  8413. }
  8414. set {
  8415. this._статусыЗаказаTableAdapter = value;
  8416. }
  8417. }
  8418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8420. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8421. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8422. "a", "System.Drawing.Design.UITypeEditor")]
  8423. public СтатусыСотрудниковTableAdapter СтатусыСотрудниковTableAdapter {
  8424. get {
  8425. return this._статусыСотрудниковTableAdapter;
  8426. }
  8427. set {
  8428. this._статусыСотрудниковTableAdapter = value;
  8429. }
  8430. }
  8431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8433. public bool BackupDataSetBeforeUpdate {
  8434. get {
  8435. return this._backupDataSetBeforeUpdate;
  8436. }
  8437. set {
  8438. this._backupDataSetBeforeUpdate = value;
  8439. }
  8440. }
  8441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8443. [global::System.ComponentModel.Browsable(false)]
  8444. public global::System.Data.IDbConnection Connection {
  8445. get {
  8446. if ((this._connection != null)) {
  8447. return this._connection;
  8448. }
  8449. if (((this._блюдаНапиткиTableAdapter != null)
  8450. && (this._блюдаНапиткиTableAdapter.Connection != null))) {
  8451. return this._блюдаНапиткиTableAdapter.Connection;
  8452. }
  8453. if (((this._заказаныеБНTableAdapter != null)
  8454. && (this._заказаныеБНTableAdapter.Connection != null))) {
  8455. return this._заказаныеБНTableAdapter.Connection;
  8456. }
  8457. if (((this._заказыTableAdapter != null)
  8458. && (this._заказыTableAdapter.Connection != null))) {
  8459. return this._заказыTableAdapter.Connection;
  8460. }
  8461. if (((this._официантыTableAdapter != null)
  8462. && (this._официантыTableAdapter.Connection != null))) {
  8463. return this._официантыTableAdapter.Connection;
  8464. }
  8465. if (((this._повараTableAdapter != null)
  8466. && (this._повараTableAdapter.Connection != null))) {
  8467. return this._повараTableAdapter.Connection;
  8468. }
  8469. if (((this._ролиTableAdapter != null)
  8470. && (this._ролиTableAdapter.Connection != null))) {
  8471. return this._ролиTableAdapter.Connection;
  8472. }
  8473. if (((this._сменыTableAdapter != null)
  8474. && (this._сменыTableAdapter.Connection != null))) {
  8475. return this._сменыTableAdapter.Connection;
  8476. }
  8477. if (((this._сотрудникиTableAdapter != null)
  8478. && (this._сотрудникиTableAdapter.Connection != null))) {
  8479. return this._сотрудникиTableAdapter.Connection;
  8480. }
  8481. if (((this._статусыЗаказаTableAdapter != null)
  8482. && (this._статусыЗаказаTableAdapter.Connection != null))) {
  8483. return this._статусыЗаказаTableAdapter.Connection;
  8484. }
  8485. if (((this._статусыСотрудниковTableAdapter != null)
  8486. && (this._статусыСотрудниковTableAdapter.Connection != null))) {
  8487. return this._статусыСотрудниковTableAdapter.Connection;
  8488. }
  8489. return null;
  8490. }
  8491. set {
  8492. this._connection = value;
  8493. }
  8494. }
  8495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8497. [global::System.ComponentModel.Browsable(false)]
  8498. public int TableAdapterInstanceCount {
  8499. get {
  8500. int count = 0;
  8501. if ((this._блюдаНапиткиTableAdapter != null)) {
  8502. count = (count + 1);
  8503. }
  8504. if ((this._заказаныеБНTableAdapter != null)) {
  8505. count = (count + 1);
  8506. }
  8507. if ((this._заказыTableAdapter != null)) {
  8508. count = (count + 1);
  8509. }
  8510. if ((this._официантыTableAdapter != null)) {
  8511. count = (count + 1);
  8512. }
  8513. if ((this._повараTableAdapter != null)) {
  8514. count = (count + 1);
  8515. }
  8516. if ((this._ролиTableAdapter != null)) {
  8517. count = (count + 1);
  8518. }
  8519. if ((this._сменыTableAdapter != null)) {
  8520. count = (count + 1);
  8521. }
  8522. if ((this._сотрудникиTableAdapter != null)) {
  8523. count = (count + 1);
  8524. }
  8525. if ((this._статусыЗаказаTableAdapter != null)) {
  8526. count = (count + 1);
  8527. }
  8528. if ((this._статусыСотрудниковTableAdapter != null)) {
  8529. count = (count + 1);
  8530. }
  8531. return count;
  8532. }
  8533. }
  8534. /// <summary>
  8535. ///Update rows in top-down order.
  8536. ///</summary>
  8537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8539. private int UpdateUpdatedRows(ОООКафе_ЛорийDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8540. int result = 0;
  8541. if ((this._официантыTableAdapter != null)) {
  8542. global::System.Data.DataRow[] updatedRows = dataSet.Официанты.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8543. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8544. if (((updatedRows != null)
  8545. && (0 < updatedRows.Length))) {
  8546. result = (result + this._официантыTableAdapter.Update(updatedRows));
  8547. allChangedRows.AddRange(updatedRows);
  8548. }
  8549. }
  8550. if ((this._повараTableAdapter != null)) {
  8551. global::System.Data.DataRow[] updatedRows = dataSet.Повара.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8552. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8553. if (((updatedRows != null)
  8554. && (0 < updatedRows.Length))) {
  8555. result = (result + this._повараTableAdapter.Update(updatedRows));
  8556. allChangedRows.AddRange(updatedRows);
  8557. }
  8558. }
  8559. if ((this._ролиTableAdapter != null)) {
  8560. global::System.Data.DataRow[] updatedRows = dataSet.Роли.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8561. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8562. if (((updatedRows != null)
  8563. && (0 < updatedRows.Length))) {
  8564. result = (result + this._ролиTableAdapter.Update(updatedRows));
  8565. allChangedRows.AddRange(updatedRows);
  8566. }
  8567. }
  8568. if ((this._статусыСотрудниковTableAdapter != null)) {
  8569. global::System.Data.DataRow[] updatedRows = dataSet.СтатусыСотрудников.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8570. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8571. if (((updatedRows != null)
  8572. && (0 < updatedRows.Length))) {
  8573. result = (result + this._статусыСотрудниковTableAdapter.Update(updatedRows));
  8574. allChangedRows.AddRange(updatedRows);
  8575. }
  8576. }
  8577. if ((this._сотрудникиTableAdapter != null)) {
  8578. global::System.Data.DataRow[] updatedRows = dataSet.Сотрудники.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8579. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8580. if (((updatedRows != null)
  8581. && (0 < updatedRows.Length))) {
  8582. result = (result + this._сотрудникиTableAdapter.Update(updatedRows));
  8583. allChangedRows.AddRange(updatedRows);
  8584. }
  8585. }
  8586. if ((this._статусыЗаказаTableAdapter != null)) {
  8587. global::System.Data.DataRow[] updatedRows = dataSet.СтатусыЗаказа.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8588. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8589. if (((updatedRows != null)
  8590. && (0 < updatedRows.Length))) {
  8591. result = (result + this._статусыЗаказаTableAdapter.Update(updatedRows));
  8592. allChangedRows.AddRange(updatedRows);
  8593. }
  8594. }
  8595. if ((this._блюдаНапиткиTableAdapter != null)) {
  8596. global::System.Data.DataRow[] updatedRows = dataSet.БлюдаНапитки.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8597. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8598. if (((updatedRows != null)
  8599. && (0 < updatedRows.Length))) {
  8600. result = (result + this._блюдаНапиткиTableAdapter.Update(updatedRows));
  8601. allChangedRows.AddRange(updatedRows);
  8602. }
  8603. }
  8604. if ((this._заказыTableAdapter != null)) {
  8605. global::System.Data.DataRow[] updatedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8606. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8607. if (((updatedRows != null)
  8608. && (0 < updatedRows.Length))) {
  8609. result = (result + this._заказыTableAdapter.Update(updatedRows));
  8610. allChangedRows.AddRange(updatedRows);
  8611. }
  8612. }
  8613. if ((this._заказаныеБНTableAdapter != null)) {
  8614. global::System.Data.DataRow[] updatedRows = dataSet.ЗаказаныеБН.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8615. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8616. if (((updatedRows != null)
  8617. && (0 < updatedRows.Length))) {
  8618. result = (result + this._заказаныеБНTableAdapter.Update(updatedRows));
  8619. allChangedRows.AddRange(updatedRows);
  8620. }
  8621. }
  8622. if ((this._сменыTableAdapter != null)) {
  8623. global::System.Data.DataRow[] updatedRows = dataSet.Смены.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8624. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8625. if (((updatedRows != null)
  8626. && (0 < updatedRows.Length))) {
  8627. result = (result + this._сменыTableAdapter.Update(updatedRows));
  8628. allChangedRows.AddRange(updatedRows);
  8629. }
  8630. }
  8631. return result;
  8632. }
  8633. /// <summary>
  8634. ///Insert rows in top-down order.
  8635. ///</summary>
  8636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8638. private int UpdateInsertedRows(ОООКафе_ЛорийDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8639. int result = 0;
  8640. if ((this._официантыTableAdapter != null)) {
  8641. global::System.Data.DataRow[] addedRows = dataSet.Официанты.Select(null, null, global::System.Data.DataViewRowState.Added);
  8642. if (((addedRows != null)
  8643. && (0 < addedRows.Length))) {
  8644. result = (result + this._официантыTableAdapter.Update(addedRows));
  8645. allAddedRows.AddRange(addedRows);
  8646. }
  8647. }
  8648. if ((this._повараTableAdapter != null)) {
  8649. global::System.Data.DataRow[] addedRows = dataSet.Повара.Select(null, null, global::System.Data.DataViewRowState.Added);
  8650. if (((addedRows != null)
  8651. && (0 < addedRows.Length))) {
  8652. result = (result + this._повараTableAdapter.Update(addedRows));
  8653. allAddedRows.AddRange(addedRows);
  8654. }
  8655. }
  8656. if ((this._ролиTableAdapter != null)) {
  8657. global::System.Data.DataRow[] addedRows = dataSet.Роли.Select(null, null, global::System.Data.DataViewRowState.Added);
  8658. if (((addedRows != null)
  8659. && (0 < addedRows.Length))) {
  8660. result = (result + this._ролиTableAdapter.Update(addedRows));
  8661. allAddedRows.AddRange(addedRows);
  8662. }
  8663. }
  8664. if ((this._статусыСотрудниковTableAdapter != null)) {
  8665. global::System.Data.DataRow[] addedRows = dataSet.СтатусыСотрудников.Select(null, null, global::System.Data.DataViewRowState.Added);
  8666. if (((addedRows != null)
  8667. && (0 < addedRows.Length))) {
  8668. result = (result + this._статусыСотрудниковTableAdapter.Update(addedRows));
  8669. allAddedRows.AddRange(addedRows);
  8670. }
  8671. }
  8672. if ((this._сотрудникиTableAdapter != null)) {
  8673. global::System.Data.DataRow[] addedRows = dataSet.Сотрудники.Select(null, null, global::System.Data.DataViewRowState.Added);
  8674. if (((addedRows != null)
  8675. && (0 < addedRows.Length))) {
  8676. result = (result + this._сотрудникиTableAdapter.Update(addedRows));
  8677. allAddedRows.AddRange(addedRows);
  8678. }
  8679. }
  8680. if ((this._статусыЗаказаTableAdapter != null)) {
  8681. global::System.Data.DataRow[] addedRows = dataSet.СтатусыЗаказа.Select(null, null, global::System.Data.DataViewRowState.Added);
  8682. if (((addedRows != null)
  8683. && (0 < addedRows.Length))) {
  8684. result = (result + this._статусыЗаказаTableAdapter.Update(addedRows));
  8685. allAddedRows.AddRange(addedRows);
  8686. }
  8687. }
  8688. if ((this._блюдаНапиткиTableAdapter != null)) {
  8689. global::System.Data.DataRow[] addedRows = dataSet.БлюдаНапитки.Select(null, null, global::System.Data.DataViewRowState.Added);
  8690. if (((addedRows != null)
  8691. && (0 < addedRows.Length))) {
  8692. result = (result + this._блюдаНапиткиTableAdapter.Update(addedRows));
  8693. allAddedRows.AddRange(addedRows);
  8694. }
  8695. }
  8696. if ((this._заказыTableAdapter != null)) {
  8697. global::System.Data.DataRow[] addedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.Added);
  8698. if (((addedRows != null)
  8699. && (0 < addedRows.Length))) {
  8700. result = (result + this._заказыTableAdapter.Update(addedRows));
  8701. allAddedRows.AddRange(addedRows);
  8702. }
  8703. }
  8704. if ((this._заказаныеБНTableAdapter != null)) {
  8705. global::System.Data.DataRow[] addedRows = dataSet.ЗаказаныеБН.Select(null, null, global::System.Data.DataViewRowState.Added);
  8706. if (((addedRows != null)
  8707. && (0 < addedRows.Length))) {
  8708. result = (result + this._заказаныеБНTableAdapter.Update(addedRows));
  8709. allAddedRows.AddRange(addedRows);
  8710. }
  8711. }
  8712. if ((this._сменыTableAdapter != null)) {
  8713. global::System.Data.DataRow[] addedRows = dataSet.Смены.Select(null, null, global::System.Data.DataViewRowState.Added);
  8714. if (((addedRows != null)
  8715. && (0 < addedRows.Length))) {
  8716. result = (result + this._сменыTableAdapter.Update(addedRows));
  8717. allAddedRows.AddRange(addedRows);
  8718. }
  8719. }
  8720. return result;
  8721. }
  8722. /// <summary>
  8723. ///Delete rows in bottom-up order.
  8724. ///</summary>
  8725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8727. private int UpdateDeletedRows(ОООКафе_ЛорийDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  8728. int result = 0;
  8729. if ((this._сменыTableAdapter != null)) {
  8730. global::System.Data.DataRow[] deletedRows = dataSet.Смены.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8731. if (((deletedRows != null)
  8732. && (0 < deletedRows.Length))) {
  8733. result = (result + this._сменыTableAdapter.Update(deletedRows));
  8734. allChangedRows.AddRange(deletedRows);
  8735. }
  8736. }
  8737. if ((this._заказаныеБНTableAdapter != null)) {
  8738. global::System.Data.DataRow[] deletedRows = dataSet.ЗаказаныеБН.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8739. if (((deletedRows != null)
  8740. && (0 < deletedRows.Length))) {
  8741. result = (result + this._заказаныеБНTableAdapter.Update(deletedRows));
  8742. allChangedRows.AddRange(deletedRows);
  8743. }
  8744. }
  8745. if ((this._заказыTableAdapter != null)) {
  8746. global::System.Data.DataRow[] deletedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8747. if (((deletedRows != null)
  8748. && (0 < deletedRows.Length))) {
  8749. result = (result + this._заказыTableAdapter.Update(deletedRows));
  8750. allChangedRows.AddRange(deletedRows);
  8751. }
  8752. }
  8753. if ((this._блюдаНапиткиTableAdapter != null)) {
  8754. global::System.Data.DataRow[] deletedRows = dataSet.БлюдаНапитки.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8755. if (((deletedRows != null)
  8756. && (0 < deletedRows.Length))) {
  8757. result = (result + this._блюдаНапиткиTableAdapter.Update(deletedRows));
  8758. allChangedRows.AddRange(deletedRows);
  8759. }
  8760. }
  8761. if ((this._статусыЗаказаTableAdapter != null)) {
  8762. global::System.Data.DataRow[] deletedRows = dataSet.СтатусыЗаказа.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8763. if (((deletedRows != null)
  8764. && (0 < deletedRows.Length))) {
  8765. result = (result + this._статусыЗаказаTableAdapter.Update(deletedRows));
  8766. allChangedRows.AddRange(deletedRows);
  8767. }
  8768. }
  8769. if ((this._сотрудникиTableAdapter != null)) {
  8770. global::System.Data.DataRow[] deletedRows = dataSet.Сотрудники.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8771. if (((deletedRows != null)
  8772. && (0 < deletedRows.Length))) {
  8773. result = (result + this._сотрудникиTableAdapter.Update(deletedRows));
  8774. allChangedRows.AddRange(deletedRows);
  8775. }
  8776. }
  8777. if ((this._статусыСотрудниковTableAdapter != null)) {
  8778. global::System.Data.DataRow[] deletedRows = dataSet.СтатусыСотрудников.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8779. if (((deletedRows != null)
  8780. && (0 < deletedRows.Length))) {
  8781. result = (result + this._статусыСотрудниковTableAdapter.Update(deletedRows));
  8782. allChangedRows.AddRange(deletedRows);
  8783. }
  8784. }
  8785. if ((this._ролиTableAdapter != null)) {
  8786. global::System.Data.DataRow[] deletedRows = dataSet.Роли.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8787. if (((deletedRows != null)
  8788. && (0 < deletedRows.Length))) {
  8789. result = (result + this._ролиTableAdapter.Update(deletedRows));
  8790. allChangedRows.AddRange(deletedRows);
  8791. }
  8792. }
  8793. if ((this._повараTableAdapter != null)) {
  8794. global::System.Data.DataRow[] deletedRows = dataSet.Повара.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8795. if (((deletedRows != null)
  8796. && (0 < deletedRows.Length))) {
  8797. result = (result + this._повараTableAdapter.Update(deletedRows));
  8798. allChangedRows.AddRange(deletedRows);
  8799. }
  8800. }
  8801. if ((this._официантыTableAdapter != null)) {
  8802. global::System.Data.DataRow[] deletedRows = dataSet.Официанты.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8803. if (((deletedRows != null)
  8804. && (0 < deletedRows.Length))) {
  8805. result = (result + this._официантыTableAdapter.Update(deletedRows));
  8806. allChangedRows.AddRange(deletedRows);
  8807. }
  8808. }
  8809. return result;
  8810. }
  8811. /// <summary>
  8812. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  8813. ///</summary>
  8814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8816. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8817. if (((updatedRows == null)
  8818. || (updatedRows.Length < 1))) {
  8819. return updatedRows;
  8820. }
  8821. if (((allAddedRows == null)
  8822. || (allAddedRows.Count < 1))) {
  8823. return updatedRows;
  8824. }
  8825. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8826. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  8827. global::System.Data.DataRow row = updatedRows[i];
  8828. if ((allAddedRows.Contains(row) == false)) {
  8829. realUpdatedRows.Add(row);
  8830. }
  8831. }
  8832. return realUpdatedRows.ToArray();
  8833. }
  8834. /// <summary>
  8835. ///Update all changes to the dataset.
  8836. ///</summary>
  8837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8839. public virtual int UpdateAll(ОООКафе_ЛорийDataSet dataSet) {
  8840. if ((dataSet == null)) {
  8841. throw new global::System.ArgumentNullException("dataSet");
  8842. }
  8843. if ((dataSet.HasChanges() == false)) {
  8844. return 0;
  8845. }
  8846. if (((this._блюдаНапиткиTableAdapter != null)
  8847. && (this.MatchTableAdapterConnection(this._блюдаНапиткиTableAdapter.Connection) == false))) {
  8848. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8849. "r, должны использовать одинаковую строку подключения.");
  8850. }
  8851. if (((this._заказаныеБНTableAdapter != null)
  8852. && (this.MatchTableAdapterConnection(this._заказаныеБНTableAdapter.Connection) == false))) {
  8853. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8854. "r, должны использовать одинаковую строку подключения.");
  8855. }
  8856. if (((this._заказыTableAdapter != null)
  8857. && (this.MatchTableAdapterConnection(this._заказыTableAdapter.Connection) == false))) {
  8858. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8859. "r, должны использовать одинаковую строку подключения.");
  8860. }
  8861. if (((this._официантыTableAdapter != null)
  8862. && (this.MatchTableAdapterConnection(this._официантыTableAdapter.Connection) == false))) {
  8863. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8864. "r, должны использовать одинаковую строку подключения.");
  8865. }
  8866. if (((this._повараTableAdapter != null)
  8867. && (this.MatchTableAdapterConnection(this._повараTableAdapter.Connection) == false))) {
  8868. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8869. "r, должны использовать одинаковую строку подключения.");
  8870. }
  8871. if (((this._ролиTableAdapter != null)
  8872. && (this.MatchTableAdapterConnection(this._ролиTableAdapter.Connection) == false))) {
  8873. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8874. "r, должны использовать одинаковую строку подключения.");
  8875. }
  8876. if (((this._сменыTableAdapter != null)
  8877. && (this.MatchTableAdapterConnection(this._сменыTableAdapter.Connection) == false))) {
  8878. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8879. "r, должны использовать одинаковую строку подключения.");
  8880. }
  8881. if (((this._сотрудникиTableAdapter != null)
  8882. && (this.MatchTableAdapterConnection(this._сотрудникиTableAdapter.Connection) == false))) {
  8883. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8884. "r, должны использовать одинаковую строку подключения.");
  8885. }
  8886. if (((this._статусыЗаказаTableAdapter != null)
  8887. && (this.MatchTableAdapterConnection(this._статусыЗаказаTableAdapter.Connection) == false))) {
  8888. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8889. "r, должны использовать одинаковую строку подключения.");
  8890. }
  8891. if (((this._статусыСотрудниковTableAdapter != null)
  8892. && (this.MatchTableAdapterConnection(this._статусыСотрудниковTableAdapter.Connection) == false))) {
  8893. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8894. "r, должны использовать одинаковую строку подключения.");
  8895. }
  8896. global::System.Data.IDbConnection workConnection = this.Connection;
  8897. if ((workConnection == null)) {
  8898. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  8899. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  8900. }
  8901. bool workConnOpened = false;
  8902. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  8903. == global::System.Data.ConnectionState.Broken)) {
  8904. workConnection.Close();
  8905. }
  8906. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  8907. workConnection.Open();
  8908. workConnOpened = true;
  8909. }
  8910. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  8911. if ((workTransaction == null)) {
  8912. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  8913. "и или текущее состояние не позволяет начать транзакцию.");
  8914. }
  8915. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8916. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8917. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  8918. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  8919. int result = 0;
  8920. global::System.Data.DataSet backupDataSet = null;
  8921. if (this.BackupDataSetBeforeUpdate) {
  8922. backupDataSet = new global::System.Data.DataSet();
  8923. backupDataSet.Merge(dataSet);
  8924. }
  8925. try {
  8926. // ---- Prepare for update -----------
  8927. //
  8928. if ((this._блюдаНапиткиTableAdapter != null)) {
  8929. revertConnections.Add(this._блюдаНапиткиTableAdapter, this._блюдаНапиткиTableAdapter.Connection);
  8930. this._блюдаНапиткиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8931. this._блюдаНапиткиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8932. if (this._блюдаНапиткиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8933. this._блюдаНапиткиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8934. adaptersWithAcceptChangesDuringUpdate.Add(this._блюдаНапиткиTableAdapter.Adapter);
  8935. }
  8936. }
  8937. if ((this._заказаныеБНTableAdapter != null)) {
  8938. revertConnections.Add(this._заказаныеБНTableAdapter, this._заказаныеБНTableAdapter.Connection);
  8939. this._заказаныеБНTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8940. this._заказаныеБНTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8941. if (this._заказаныеБНTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8942. this._заказаныеБНTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8943. adaptersWithAcceptChangesDuringUpdate.Add(this._заказаныеБНTableAdapter.Adapter);
  8944. }
  8945. }
  8946. if ((this._заказыTableAdapter != null)) {
  8947. revertConnections.Add(this._заказыTableAdapter, this._заказыTableAdapter.Connection);
  8948. this._заказыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8949. this._заказыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8950. if (this._заказыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8951. this._заказыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8952. adaptersWithAcceptChangesDuringUpdate.Add(this._заказыTableAdapter.Adapter);
  8953. }
  8954. }
  8955. if ((this._официантыTableAdapter != null)) {
  8956. revertConnections.Add(this._официантыTableAdapter, this._официантыTableAdapter.Connection);
  8957. this._официантыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8958. this._официантыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8959. if (this._официантыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8960. this._официантыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8961. adaptersWithAcceptChangesDuringUpdate.Add(this._официантыTableAdapter.Adapter);
  8962. }
  8963. }
  8964. if ((this._повараTableAdapter != null)) {
  8965. revertConnections.Add(this._повараTableAdapter, this._повараTableAdapter.Connection);
  8966. this._повараTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8967. this._повараTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8968. if (this._повараTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8969. this._повараTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8970. adaptersWithAcceptChangesDuringUpdate.Add(this._повараTableAdapter.Adapter);
  8971. }
  8972. }
  8973. if ((this._ролиTableAdapter != null)) {
  8974. revertConnections.Add(this._ролиTableAdapter, this._ролиTableAdapter.Connection);
  8975. this._ролиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8976. this._ролиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8977. if (this._ролиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8978. this._ролиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8979. adaptersWithAcceptChangesDuringUpdate.Add(this._ролиTableAdapter.Adapter);
  8980. }
  8981. }
  8982. if ((this._сменыTableAdapter != null)) {
  8983. revertConnections.Add(this._сменыTableAdapter, this._сменыTableAdapter.Connection);
  8984. this._сменыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8985. this._сменыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8986. if (this._сменыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8987. this._сменыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8988. adaptersWithAcceptChangesDuringUpdate.Add(this._сменыTableAdapter.Adapter);
  8989. }
  8990. }
  8991. if ((this._сотрудникиTableAdapter != null)) {
  8992. revertConnections.Add(this._сотрудникиTableAdapter, this._сотрудникиTableAdapter.Connection);
  8993. this._сотрудникиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8994. this._сотрудникиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8995. if (this._сотрудникиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8996. this._сотрудникиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8997. adaptersWithAcceptChangesDuringUpdate.Add(this._сотрудникиTableAdapter.Adapter);
  8998. }
  8999. }
  9000. if ((this._статусыЗаказаTableAdapter != null)) {
  9001. revertConnections.Add(this._статусыЗаказаTableAdapter, this._статусыЗаказаTableAdapter.Connection);
  9002. this._статусыЗаказаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9003. this._статусыЗаказаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9004. if (this._статусыЗаказаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9005. this._статусыЗаказаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9006. adaptersWithAcceptChangesDuringUpdate.Add(this._статусыЗаказаTableAdapter.Adapter);
  9007. }
  9008. }
  9009. if ((this._статусыСотрудниковTableAdapter != null)) {
  9010. revertConnections.Add(this._статусыСотрудниковTableAdapter, this._статусыСотрудниковTableAdapter.Connection);
  9011. this._статусыСотрудниковTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9012. this._статусыСотрудниковTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9013. if (this._статусыСотрудниковTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9014. this._статусыСотрудниковTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9015. adaptersWithAcceptChangesDuringUpdate.Add(this._статусыСотрудниковTableAdapter.Adapter);
  9016. }
  9017. }
  9018. //
  9019. //---- Perform updates -----------
  9020. //
  9021. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  9022. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  9023. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  9024. }
  9025. else {
  9026. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  9027. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  9028. }
  9029. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  9030. //
  9031. //---- Commit updates -----------
  9032. //
  9033. workTransaction.Commit();
  9034. if ((0 < allAddedRows.Count)) {
  9035. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  9036. allAddedRows.CopyTo(rows);
  9037. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9038. global::System.Data.DataRow row = rows[i];
  9039. row.AcceptChanges();
  9040. }
  9041. }
  9042. if ((0 < allChangedRows.Count)) {
  9043. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  9044. allChangedRows.CopyTo(rows);
  9045. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9046. global::System.Data.DataRow row = rows[i];
  9047. row.AcceptChanges();
  9048. }
  9049. }
  9050. }
  9051. catch (global::System.Exception ex) {
  9052. workTransaction.Rollback();
  9053. // ---- Restore the dataset -----------
  9054. if (this.BackupDataSetBeforeUpdate) {
  9055. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  9056. dataSet.Clear();
  9057. dataSet.Merge(backupDataSet);
  9058. }
  9059. else {
  9060. if ((0 < allAddedRows.Count)) {
  9061. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  9062. allAddedRows.CopyTo(rows);
  9063. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9064. global::System.Data.DataRow row = rows[i];
  9065. row.AcceptChanges();
  9066. row.SetAdded();
  9067. }
  9068. }
  9069. }
  9070. throw ex;
  9071. }
  9072. finally {
  9073. if (workConnOpened) {
  9074. workConnection.Close();
  9075. }
  9076. if ((this._блюдаНапиткиTableAdapter != null)) {
  9077. this._блюдаНапиткиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._блюдаНапиткиTableAdapter]));
  9078. this._блюдаНапиткиTableAdapter.Transaction = null;
  9079. }
  9080. if ((this._заказаныеБНTableAdapter != null)) {
  9081. this._заказаныеБНTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказаныеБНTableAdapter]));
  9082. this._заказаныеБНTableAdapter.Transaction = null;
  9083. }
  9084. if ((this._заказыTableAdapter != null)) {
  9085. this._заказыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказыTableAdapter]));
  9086. this._заказыTableAdapter.Transaction = null;
  9087. }
  9088. if ((this._официантыTableAdapter != null)) {
  9089. this._официантыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._официантыTableAdapter]));
  9090. this._официантыTableAdapter.Transaction = null;
  9091. }
  9092. if ((this._повараTableAdapter != null)) {
  9093. this._повараTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._повараTableAdapter]));
  9094. this._повараTableAdapter.Transaction = null;
  9095. }
  9096. if ((this._ролиTableAdapter != null)) {
  9097. this._ролиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ролиTableAdapter]));
  9098. this._ролиTableAdapter.Transaction = null;
  9099. }
  9100. if ((this._сменыTableAdapter != null)) {
  9101. this._сменыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сменыTableAdapter]));
  9102. this._сменыTableAdapter.Transaction = null;
  9103. }
  9104. if ((this._сотрудникиTableAdapter != null)) {
  9105. this._сотрудникиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сотрудникиTableAdapter]));
  9106. this._сотрудникиTableAdapter.Transaction = null;
  9107. }
  9108. if ((this._статусыЗаказаTableAdapter != null)) {
  9109. this._статусыЗаказаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._статусыЗаказаTableAdapter]));
  9110. this._статусыЗаказаTableAdapter.Transaction = null;
  9111. }
  9112. if ((this._статусыСотрудниковTableAdapter != null)) {
  9113. this._статусыСотрудниковTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._статусыСотрудниковTableAdapter]));
  9114. this._статусыСотрудниковTableAdapter.Transaction = null;
  9115. }
  9116. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  9117. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  9118. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  9119. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  9120. global::System.Data.Common.DataAdapter adapter = adapters[i];
  9121. adapter.AcceptChangesDuringUpdate = true;
  9122. }
  9123. }
  9124. }
  9125. return result;
  9126. }
  9127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9129. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  9130. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  9131. }
  9132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9134. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  9135. if ((this._connection != null)) {
  9136. return true;
  9137. }
  9138. if (((this.Connection == null)
  9139. || (inputConnection == null))) {
  9140. return true;
  9141. }
  9142. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  9143. return true;
  9144. }
  9145. return false;
  9146. }
  9147. /// <summary>
  9148. ///Update Order Option
  9149. ///</summary>
  9150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9151. public enum UpdateOrderOption {
  9152. InsertUpdateDelete = 0,
  9153. UpdateInsertDelete = 1,
  9154. }
  9155. /// <summary>
  9156. ///Used to sort self-referenced table's rows
  9157. ///</summary>
  9158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9159. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  9160. private global::System.Data.DataRelation _relation;
  9161. private int _childFirst;
  9162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9164. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  9165. this._relation = relation;
  9166. if (childFirst) {
  9167. this._childFirst = -1;
  9168. }
  9169. else {
  9170. this._childFirst = 1;
  9171. }
  9172. }
  9173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9175. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  9176. global::System.Diagnostics.Debug.Assert((row != null));
  9177. global::System.Data.DataRow root = row;
  9178. distance = 0;
  9179. 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>();
  9180. traversedRows[row] = row;
  9181. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  9182. for (
  9183. ; ((parent != null)
  9184. && (traversedRows.ContainsKey(parent) == false));
  9185. ) {
  9186. distance = (distance + 1);
  9187. root = parent;
  9188. traversedRows[parent] = parent;
  9189. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  9190. }
  9191. if ((distance == 0)) {
  9192. traversedRows.Clear();
  9193. traversedRows[row] = row;
  9194. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  9195. for (
  9196. ; ((parent != null)
  9197. && (traversedRows.ContainsKey(parent) == false));
  9198. ) {
  9199. distance = (distance + 1);
  9200. root = parent;
  9201. traversedRows[parent] = parent;
  9202. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  9203. }
  9204. }
  9205. return root;
  9206. }
  9207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9209. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  9210. if (object.ReferenceEquals(row1, row2)) {
  9211. return 0;
  9212. }
  9213. if ((row1 == null)) {
  9214. return -1;
  9215. }
  9216. if ((row2 == null)) {
  9217. return 1;
  9218. }
  9219. int distance1 = 0;
  9220. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  9221. int distance2 = 0;
  9222. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  9223. if (object.ReferenceEquals(root1, root2)) {
  9224. return (this._childFirst * distance1.CompareTo(distance2));
  9225. }
  9226. else {
  9227. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  9228. && (root2.Table != null)));
  9229. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  9230. return -1;
  9231. }
  9232. else {
  9233. return 1;
  9234. }
  9235. }
  9236. }
  9237. }
  9238. }
  9239. }
  9240. #pragma warning restore 1591