CHER_KAFEDataSet.Designer.cs 675 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Cafe12 {
  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("CHER_KAFEDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class CHER_KAFEDataSet : global::System.Data.DataSet {
  22. private БлюдаНапиткиDataTable tableБлюдаНапитки;
  23. private Заказанные_блюдаDataTable tableЗаказанные_блюда;
  24. private ЗаказыDataTable tableЗаказы;
  25. private ОфициантыDataTable tableОфицианты;
  26. private ПовараDataTable tableПовара;
  27. private ПользователиDataTable tableПользователи;
  28. private РолиDataTable tableРоли;
  29. private СменыDataTable tableСмены;
  30. private СтатусЗаказаDataTable tableСтатусЗаказа;
  31. private СтатусСотрудникаDataTable tableСтатусСотрудника;
  32. private СтоликиDataTable tableСтолики;
  33. private global::System.Data.DataRelation relationFK_Заказанные_блюда_БлюдаНапитки;
  34. private global::System.Data.DataRelation relationFK_Заказанные_блюда_Заказы1;
  35. private global::System.Data.DataRelation relationFK_Заказы_Смены;
  36. private global::System.Data.DataRelation relationFK_Заказы_СтатусЗаказа;
  37. private global::System.Data.DataRelation relationFK_Заказы_Столики;
  38. private global::System.Data.DataRelation relationFK_Официанты_Пользователи;
  39. private global::System.Data.DataRelation relationFK_Повара_Пользователи;
  40. private global::System.Data.DataRelation relationFK_Пользователи_Роли1;
  41. private global::System.Data.DataRelation relationFK_Пользователи_СтатусСотрудника1;
  42. private global::System.Data.DataRelation relationFK_Смены_Официанты1;
  43. private global::System.Data.DataRelation relationFK_Смены_Повара1;
  44. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  45. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  46. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  47. public CHER_KAFEDataSet() {
  48. this.BeginInit();
  49. this.InitClass();
  50. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  51. base.Tables.CollectionChanged += schemaChangedHandler;
  52. base.Relations.CollectionChanged += schemaChangedHandler;
  53. this.EndInit();
  54. }
  55. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  56. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  57. protected CHER_KAFEDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  58. base(info, context, false) {
  59. if ((this.IsBinarySerialized(info, context) == true)) {
  60. this.InitVars(false);
  61. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  62. this.Tables.CollectionChanged += schemaChangedHandler1;
  63. this.Relations.CollectionChanged += schemaChangedHandler1;
  64. return;
  65. }
  66. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  67. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  68. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  69. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  70. if ((ds.Tables["БлюдаНапитки"] != null)) {
  71. base.Tables.Add(new БлюдаНапиткиDataTable(ds.Tables["БлюдаНапитки"]));
  72. }
  73. if ((ds.Tables["Заказанные блюда"] != null)) {
  74. base.Tables.Add(new Заказанные_блюдаDataTable(ds.Tables["Заказанные блюда"]));
  75. }
  76. if ((ds.Tables["Заказы"] != null)) {
  77. base.Tables.Add(new ЗаказыDataTable(ds.Tables["Заказы"]));
  78. }
  79. if ((ds.Tables["Официанты"] != null)) {
  80. base.Tables.Add(new ОфициантыDataTable(ds.Tables["Официанты"]));
  81. }
  82. if ((ds.Tables["Повара"] != null)) {
  83. base.Tables.Add(new ПовараDataTable(ds.Tables["Повара"]));
  84. }
  85. if ((ds.Tables["Пользователи"] != null)) {
  86. base.Tables.Add(new ПользователиDataTable(ds.Tables["Пользователи"]));
  87. }
  88. if ((ds.Tables["Роли"] != null)) {
  89. base.Tables.Add(new РолиDataTable(ds.Tables["Роли"]));
  90. }
  91. if ((ds.Tables["Смены"] != null)) {
  92. base.Tables.Add(new СменыDataTable(ds.Tables["Смены"]));
  93. }
  94. if ((ds.Tables["СтатусЗаказа"] != null)) {
  95. base.Tables.Add(new СтатусЗаказаDataTable(ds.Tables["СтатусЗаказа"]));
  96. }
  97. if ((ds.Tables["СтатусСотрудника"] != null)) {
  98. base.Tables.Add(new СтатусСотрудникаDataTable(ds.Tables["СтатусСотрудника"]));
  99. }
  100. if ((ds.Tables["Столики"] != null)) {
  101. base.Tables.Add(new СтоликиDataTable(ds.Tables["Столики"]));
  102. }
  103. this.DataSetName = ds.DataSetName;
  104. this.Prefix = ds.Prefix;
  105. this.Namespace = ds.Namespace;
  106. this.Locale = ds.Locale;
  107. this.CaseSensitive = ds.CaseSensitive;
  108. this.EnforceConstraints = ds.EnforceConstraints;
  109. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  110. this.InitVars();
  111. }
  112. else {
  113. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  114. }
  115. this.GetSerializationData(info, context);
  116. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  117. base.Tables.CollectionChanged += schemaChangedHandler;
  118. this.Relations.CollectionChanged += schemaChangedHandler;
  119. }
  120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  122. [global::System.ComponentModel.Browsable(false)]
  123. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  124. public БлюдаНапиткиDataTable БлюдаНапитки {
  125. get {
  126. return this.tableБлюдаНапитки;
  127. }
  128. }
  129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  131. [global::System.ComponentModel.Browsable(false)]
  132. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  133. public Заказанные_блюдаDataTable Заказанные_блюда {
  134. get {
  135. return this.tableЗаказанные_блюда;
  136. }
  137. }
  138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  140. [global::System.ComponentModel.Browsable(false)]
  141. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  142. public ЗаказыDataTable Заказы {
  143. get {
  144. return this.tableЗаказы;
  145. }
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  149. [global::System.ComponentModel.Browsable(false)]
  150. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  151. public ОфициантыDataTable Официанты {
  152. get {
  153. return this.tableОфицианты;
  154. }
  155. }
  156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  158. [global::System.ComponentModel.Browsable(false)]
  159. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  160. public ПовараDataTable Повара {
  161. get {
  162. return this.tableПовара;
  163. }
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  167. [global::System.ComponentModel.Browsable(false)]
  168. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  169. public ПользователиDataTable Пользователи {
  170. get {
  171. return this.tableПользователи;
  172. }
  173. }
  174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  176. [global::System.ComponentModel.Browsable(false)]
  177. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  178. public РолиDataTable Роли {
  179. get {
  180. return this.tableРоли;
  181. }
  182. }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  185. [global::System.ComponentModel.Browsable(false)]
  186. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  187. public СменыDataTable Смены {
  188. get {
  189. return this.tableСмены;
  190. }
  191. }
  192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  194. [global::System.ComponentModel.Browsable(false)]
  195. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  196. public СтатусЗаказаDataTable СтатусЗаказа {
  197. get {
  198. return this.tableСтатусЗаказа;
  199. }
  200. }
  201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  203. [global::System.ComponentModel.Browsable(false)]
  204. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  205. public СтатусСотрудникаDataTable СтатусСотрудника {
  206. get {
  207. return this.tableСтатусСотрудника;
  208. }
  209. }
  210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  212. [global::System.ComponentModel.Browsable(false)]
  213. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  214. public СтоликиDataTable Столики {
  215. get {
  216. return this.tableСтолики;
  217. }
  218. }
  219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  221. [global::System.ComponentModel.BrowsableAttribute(true)]
  222. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  223. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  224. get {
  225. return this._schemaSerializationMode;
  226. }
  227. set {
  228. this._schemaSerializationMode = value;
  229. }
  230. }
  231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  233. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  234. public new global::System.Data.DataTableCollection Tables {
  235. get {
  236. return base.Tables;
  237. }
  238. }
  239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  241. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  242. public new global::System.Data.DataRelationCollection Relations {
  243. get {
  244. return base.Relations;
  245. }
  246. }
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  249. protected override void InitializeDerivedDataSet() {
  250. this.BeginInit();
  251. this.InitClass();
  252. this.EndInit();
  253. }
  254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  256. public override global::System.Data.DataSet Clone() {
  257. CHER_KAFEDataSet cln = ((CHER_KAFEDataSet)(base.Clone()));
  258. cln.InitVars();
  259. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  260. return cln;
  261. }
  262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  264. protected override bool ShouldSerializeTables() {
  265. return false;
  266. }
  267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  269. protected override bool ShouldSerializeRelations() {
  270. return false;
  271. }
  272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  274. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  275. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  276. this.Reset();
  277. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  278. ds.ReadXml(reader);
  279. if ((ds.Tables["БлюдаНапитки"] != null)) {
  280. base.Tables.Add(new БлюдаНапиткиDataTable(ds.Tables["БлюдаНапитки"]));
  281. }
  282. if ((ds.Tables["Заказанные блюда"] != null)) {
  283. base.Tables.Add(new Заказанные_блюдаDataTable(ds.Tables["Заказанные блюда"]));
  284. }
  285. if ((ds.Tables["Заказы"] != null)) {
  286. base.Tables.Add(new ЗаказыDataTable(ds.Tables["Заказы"]));
  287. }
  288. if ((ds.Tables["Официанты"] != null)) {
  289. base.Tables.Add(new ОфициантыDataTable(ds.Tables["Официанты"]));
  290. }
  291. if ((ds.Tables["Повара"] != null)) {
  292. base.Tables.Add(new ПовараDataTable(ds.Tables["Повара"]));
  293. }
  294. if ((ds.Tables["Пользователи"] != null)) {
  295. base.Tables.Add(new ПользователиDataTable(ds.Tables["Пользователи"]));
  296. }
  297. if ((ds.Tables["Роли"] != null)) {
  298. base.Tables.Add(new РолиDataTable(ds.Tables["Роли"]));
  299. }
  300. if ((ds.Tables["Смены"] != null)) {
  301. base.Tables.Add(new СменыDataTable(ds.Tables["Смены"]));
  302. }
  303. if ((ds.Tables["СтатусЗаказа"] != null)) {
  304. base.Tables.Add(new СтатусЗаказаDataTable(ds.Tables["СтатусЗаказа"]));
  305. }
  306. if ((ds.Tables["СтатусСотрудника"] != null)) {
  307. base.Tables.Add(new СтатусСотрудникаDataTable(ds.Tables["СтатусСотрудника"]));
  308. }
  309. if ((ds.Tables["Столики"] != null)) {
  310. base.Tables.Add(new СтоликиDataTable(ds.Tables["Столики"]));
  311. }
  312. this.DataSetName = ds.DataSetName;
  313. this.Prefix = ds.Prefix;
  314. this.Namespace = ds.Namespace;
  315. this.Locale = ds.Locale;
  316. this.CaseSensitive = ds.CaseSensitive;
  317. this.EnforceConstraints = ds.EnforceConstraints;
  318. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  319. this.InitVars();
  320. }
  321. else {
  322. this.ReadXml(reader);
  323. this.InitVars();
  324. }
  325. }
  326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  328. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  329. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  330. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  331. stream.Position = 0;
  332. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  336. internal void InitVars() {
  337. this.InitVars(true);
  338. }
  339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  341. internal void InitVars(bool initTable) {
  342. this.tableБлюдаНапитки = ((БлюдаНапиткиDataTable)(base.Tables["БлюдаНапитки"]));
  343. if ((initTable == true)) {
  344. if ((this.tableБлюдаНапитки != null)) {
  345. this.tableБлюдаНапитки.InitVars();
  346. }
  347. }
  348. this.tableЗаказанные_блюда = ((Заказанные_блюдаDataTable)(base.Tables["Заказанные блюда"]));
  349. if ((initTable == true)) {
  350. if ((this.tableЗаказанные_блюда != null)) {
  351. this.tableЗаказанные_блюда.InitVars();
  352. }
  353. }
  354. this.tableЗаказы = ((ЗаказыDataTable)(base.Tables["Заказы"]));
  355. if ((initTable == true)) {
  356. if ((this.tableЗаказы != null)) {
  357. this.tableЗаказы.InitVars();
  358. }
  359. }
  360. this.tableОфицианты = ((ОфициантыDataTable)(base.Tables["Официанты"]));
  361. if ((initTable == true)) {
  362. if ((this.tableОфицианты != null)) {
  363. this.tableОфицианты.InitVars();
  364. }
  365. }
  366. this.tableПовара = ((ПовараDataTable)(base.Tables["Повара"]));
  367. if ((initTable == true)) {
  368. if ((this.tableПовара != null)) {
  369. this.tableПовара.InitVars();
  370. }
  371. }
  372. this.tableПользователи = ((ПользователиDataTable)(base.Tables["Пользователи"]));
  373. if ((initTable == true)) {
  374. if ((this.tableПользователи != null)) {
  375. this.tableПользователи.InitVars();
  376. }
  377. }
  378. this.tableРоли = ((РолиDataTable)(base.Tables["Роли"]));
  379. if ((initTable == true)) {
  380. if ((this.tableРоли != null)) {
  381. this.tableРоли.InitVars();
  382. }
  383. }
  384. this.tableСмены = ((СменыDataTable)(base.Tables["Смены"]));
  385. if ((initTable == true)) {
  386. if ((this.tableСмены != null)) {
  387. this.tableСмены.InitVars();
  388. }
  389. }
  390. this.tableСтатусЗаказа = ((СтатусЗаказаDataTable)(base.Tables["СтатусЗаказа"]));
  391. if ((initTable == true)) {
  392. if ((this.tableСтатусЗаказа != null)) {
  393. this.tableСтатусЗаказа.InitVars();
  394. }
  395. }
  396. this.tableСтатусСотрудника = ((СтатусСотрудникаDataTable)(base.Tables["СтатусСотрудника"]));
  397. if ((initTable == true)) {
  398. if ((this.tableСтатусСотрудника != null)) {
  399. this.tableСтатусСотрудника.InitVars();
  400. }
  401. }
  402. this.tableСтолики = ((СтоликиDataTable)(base.Tables["Столики"]));
  403. if ((initTable == true)) {
  404. if ((this.tableСтолики != null)) {
  405. this.tableСтолики.InitVars();
  406. }
  407. }
  408. this.relationFK_Заказанные_блюда_БлюдаНапитки = this.Relations["FK_Заказанные блюда_БлюдаНапитки"];
  409. this.relationFK_Заказанные_блюда_Заказы1 = this.Relations["FK_Заказанные блюда_Заказы1"];
  410. this.relationFK_Заказы_Смены = this.Relations["FK_Заказы_Смены"];
  411. this.relationFK_Заказы_СтатусЗаказа = this.Relations["FK_Заказы_СтатусЗаказа"];
  412. this.relationFK_Заказы_Столики = this.Relations["FK_Заказы_Столики"];
  413. this.relationFK_Официанты_Пользователи = this.Relations["FK_Официанты_Пользователи"];
  414. this.relationFK_Повара_Пользователи = this.Relations["FK_Повара_Пользователи"];
  415. this.relationFK_Пользователи_Роли1 = this.Relations["FK_Пользователи_Роли1"];
  416. this.relationFK_Пользователи_СтатусСотрудника1 = this.Relations["FK_Пользователи_СтатусСотрудника1"];
  417. this.relationFK_Смены_Официанты1 = this.Relations["FK_Смены_Официанты1"];
  418. this.relationFK_Смены_Повара1 = this.Relations["FK_Смены_Повара1"];
  419. }
  420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  422. private void InitClass() {
  423. this.DataSetName = "CHER_KAFEDataSet";
  424. this.Prefix = "";
  425. this.Namespace = "http://tempuri.org/CHER_KAFEDataSet.xsd";
  426. this.EnforceConstraints = true;
  427. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  428. this.tableБлюдаНапитки = new БлюдаНапиткиDataTable();
  429. base.Tables.Add(this.tableБлюдаНапитки);
  430. this.tableЗаказанные_блюда = new Заказанные_блюдаDataTable();
  431. base.Tables.Add(this.tableЗаказанные_блюда);
  432. this.tableЗаказы = new ЗаказыDataTable();
  433. base.Tables.Add(this.tableЗаказы);
  434. this.tableОфицианты = new ОфициантыDataTable();
  435. base.Tables.Add(this.tableОфицианты);
  436. this.tableПовара = new ПовараDataTable();
  437. base.Tables.Add(this.tableПовара);
  438. this.tableПользователи = new ПользователиDataTable();
  439. base.Tables.Add(this.tableПользователи);
  440. this.tableРоли = new РолиDataTable();
  441. base.Tables.Add(this.tableРоли);
  442. this.tableСмены = new СменыDataTable();
  443. base.Tables.Add(this.tableСмены);
  444. this.tableСтатусЗаказа = new СтатусЗаказаDataTable();
  445. base.Tables.Add(this.tableСтатусЗаказа);
  446. this.tableСтатусСотрудника = new СтатусСотрудникаDataTable();
  447. base.Tables.Add(this.tableСтатусСотрудника);
  448. this.tableСтолики = new СтоликиDataTable();
  449. base.Tables.Add(this.tableСтолики);
  450. this.relationFK_Заказанные_блюда_БлюдаНапитки = new global::System.Data.DataRelation("FK_Заказанные блюда_БлюдаНапитки", new global::System.Data.DataColumn[] {
  451. this.tableБлюдаНапитки.ID_БлюдаНапиткаColumn}, new global::System.Data.DataColumn[] {
  452. this.tableЗаказанные_блюда.ID_БлюдаColumn}, false);
  453. this.Relations.Add(this.relationFK_Заказанные_блюда_БлюдаНапитки);
  454. this.relationFK_Заказанные_блюда_Заказы1 = new global::System.Data.DataRelation("FK_Заказанные блюда_Заказы1", new global::System.Data.DataColumn[] {
  455. this.tableЗаказы.ID_ЗаказаColumn}, new global::System.Data.DataColumn[] {
  456. this.tableЗаказанные_блюда.ID_ЗаказаColumn}, false);
  457. this.Relations.Add(this.relationFK_Заказанные_блюда_Заказы1);
  458. this.relationFK_Заказы_Смены = new global::System.Data.DataRelation("FK_Заказы_Смены", new global::System.Data.DataColumn[] {
  459. this.tableСмены.ID_СменыColumn}, new global::System.Data.DataColumn[] {
  460. this.tableЗаказы.ID_Смены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СтатусЗаказа.ID_СтатусаЗаказаColumn}, 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Столики.ID_СтоликаColumn}, new global::System.Data.DataColumn[] {
  468. this.tableЗаказы.ID_СтоликаColumn}, false);
  469. this.Relations.Add(this.relationFK_Заказы_Столики);
  470. this.relationFK_Официанты_Пользователи = new global::System.Data.DataRelation("FK_Официанты_Пользователи", new global::System.Data.DataColumn[] {
  471. this.tableПользователи.ID_ПользователяColumn}, new global::System.Data.DataColumn[] {
  472. this.tableОфицианты.ID_ОфициантаColumn}, false);
  473. this.Relations.Add(this.relationFK_Официанты_Пользователи);
  474. this.relationFK_Повара_Пользователи = new global::System.Data.DataRelation("FK_Повара_Пользователи", new global::System.Data.DataColumn[] {
  475. this.tableПользователи.ID_ПользователяColumn}, new global::System.Data.DataColumn[] {
  476. this.tableПовара.ID_ПовараColumn}, false);
  477. this.Relations.Add(this.relationFK_Повара_Пользователи);
  478. this.relationFK_Пользователи_Роли1 = new global::System.Data.DataRelation("FK_Пользователи_Роли1", new global::System.Data.DataColumn[] {
  479. this.tableРоли.id_РолиColumn}, new global::System.Data.DataColumn[] {
  480. this.tableПользователи.ID_РолиColumn}, false);
  481. this.Relations.Add(this.relationFK_Пользователи_Роли1);
  482. this.relationFK_Пользователи_СтатусСотрудника1 = new global::System.Data.DataRelation("FK_Пользователи_СтатусСотрудника1", new global::System.Data.DataColumn[] {
  483. this.tableСтатусСотрудника.ID_СтатусаColumn}, new global::System.Data.DataColumn[] {
  484. this.tableПользователи.ID_СтатусаColumn}, false);
  485. this.Relations.Add(this.relationFK_Пользователи_СтатусСотрудника1);
  486. this.relationFK_Смены_Официанты1 = new global::System.Data.DataRelation("FK_Смены_Официанты1", new global::System.Data.DataColumn[] {
  487. this.tableОфицианты.ID_ОфициантаColumn}, new global::System.Data.DataColumn[] {
  488. this.tableСмены.id_ОфициантаColumn}, false);
  489. this.Relations.Add(this.relationFK_Смены_Официанты1);
  490. this.relationFK_Смены_Повара1 = new global::System.Data.DataRelation("FK_Смены_Повара1", new global::System.Data.DataColumn[] {
  491. this.tableПовара.ID_ПовараColumn}, new global::System.Data.DataColumn[] {
  492. this.tableСмены.id_ПовараColumn}, false);
  493. this.Relations.Add(this.relationFK_Смены_Повара1);
  494. }
  495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  497. private bool ShouldSerializeБлюдаНапитки() {
  498. return false;
  499. }
  500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  502. private bool ShouldSerializeЗаказанные_блюда() {
  503. return false;
  504. }
  505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  507. private bool ShouldSerializeЗаказы() {
  508. return false;
  509. }
  510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  512. private bool ShouldSerializeОфицианты() {
  513. return false;
  514. }
  515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  517. private bool ShouldSerializeПовара() {
  518. return false;
  519. }
  520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  522. private bool ShouldSerializeПользователи() {
  523. return false;
  524. }
  525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  527. private bool ShouldSerializeРоли() {
  528. return false;
  529. }
  530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  532. private bool ShouldSerializeСмены() {
  533. return false;
  534. }
  535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  537. private bool ShouldSerializeСтатусЗаказа() {
  538. return false;
  539. }
  540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  542. private bool ShouldSerializeСтатусСотрудника() {
  543. return false;
  544. }
  545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  547. private bool ShouldSerializeСтолики() {
  548. return false;
  549. }
  550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  552. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  553. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  554. this.InitVars();
  555. }
  556. }
  557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  559. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  560. CHER_KAFEDataSet ds = new CHER_KAFEDataSet();
  561. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  562. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  563. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  564. any.Namespace = ds.Namespace;
  565. sequence.Items.Add(any);
  566. type.Particle = sequence;
  567. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  568. if (xs.Contains(dsSchema.TargetNamespace)) {
  569. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  570. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  571. try {
  572. global::System.Xml.Schema.XmlSchema schema = null;
  573. dsSchema.Write(s1);
  574. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  575. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  576. s2.SetLength(0);
  577. schema.Write(s2);
  578. if ((s1.Length == s2.Length)) {
  579. s1.Position = 0;
  580. s2.Position = 0;
  581. for (; ((s1.Position != s1.Length)
  582. && (s1.ReadByte() == s2.ReadByte())); ) {
  583. ;
  584. }
  585. if ((s1.Position == s1.Length)) {
  586. return type;
  587. }
  588. }
  589. }
  590. }
  591. finally {
  592. if ((s1 != null)) {
  593. s1.Close();
  594. }
  595. if ((s2 != null)) {
  596. s2.Close();
  597. }
  598. }
  599. }
  600. xs.Add(dsSchema);
  601. return type;
  602. }
  603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  604. public delegate void БлюдаНапиткиRowChangeEventHandler(object sender, БлюдаНапиткиRowChangeEvent e);
  605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  606. public delegate void Заказанные_блюдаRowChangeEventHandler(object sender, Заказанные_блюдаRowChangeEvent e);
  607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  608. public delegate void ЗаказыRowChangeEventHandler(object sender, ЗаказыRowChangeEvent e);
  609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  610. public delegate void ОфициантыRowChangeEventHandler(object sender, ОфициантыRowChangeEvent e);
  611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  612. public delegate void ПовараRowChangeEventHandler(object sender, ПовараRowChangeEvent e);
  613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  614. public delegate void ПользователиRowChangeEventHandler(object sender, ПользователиRowChangeEvent e);
  615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  616. public delegate void РолиRowChangeEventHandler(object sender, РолиRowChangeEvent e);
  617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  618. public delegate void СменыRowChangeEventHandler(object sender, СменыRowChangeEvent e);
  619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  620. public delegate void СтатусЗаказаRowChangeEventHandler(object sender, СтатусЗаказаRowChangeEvent e);
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  622. public delegate void СтатусСотрудникаRowChangeEventHandler(object sender, СтатусСотрудникаRowChangeEvent e);
  623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  624. public delegate void СтоликиRowChangeEventHandler(object sender, СтоликиRowChangeEvent e);
  625. /// <summary>
  626. ///Represents the strongly named DataTable class.
  627. ///</summary>
  628. [global::System.Serializable()]
  629. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  630. public partial class БлюдаНапиткиDataTable : global::System.Data.TypedTableBase<БлюдаНапиткиRow> {
  631. private global::System.Data.DataColumn columnID_БлюдаНапитка;
  632. private global::System.Data.DataColumn columnНазвание;
  633. private global::System.Data.DataColumn columnЦена;
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  636. public БлюдаНапиткиDataTable() {
  637. this.TableName = "БлюдаНапитки";
  638. this.BeginInit();
  639. this.InitClass();
  640. this.EndInit();
  641. }
  642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  644. internal БлюдаНапиткиDataTable(global::System.Data.DataTable table) {
  645. this.TableName = table.TableName;
  646. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  647. this.CaseSensitive = table.CaseSensitive;
  648. }
  649. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  650. this.Locale = table.Locale;
  651. }
  652. if ((table.Namespace != table.DataSet.Namespace)) {
  653. this.Namespace = table.Namespace;
  654. }
  655. this.Prefix = table.Prefix;
  656. this.MinimumCapacity = table.MinimumCapacity;
  657. }
  658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  660. protected БлюдаНапиткиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  661. base(info, context) {
  662. this.InitVars();
  663. }
  664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  666. public global::System.Data.DataColumn ID_БлюдаНапиткаColumn {
  667. get {
  668. return this.columnID_БлюдаНапитка;
  669. }
  670. }
  671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  673. public global::System.Data.DataColumn НазваниеColumn {
  674. get {
  675. return this.columnНазвание;
  676. }
  677. }
  678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. public global::System.Data.DataColumn ЦенаColumn {
  681. get {
  682. return this.columnЦена;
  683. }
  684. }
  685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  687. [global::System.ComponentModel.Browsable(false)]
  688. public int Count {
  689. get {
  690. return this.Rows.Count;
  691. }
  692. }
  693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  695. public БлюдаНапиткиRow this[int index] {
  696. get {
  697. return ((БлюдаНапиткиRow)(this.Rows[index]));
  698. }
  699. }
  700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  701. public event БлюдаНапиткиRowChangeEventHandler БлюдаНапиткиRowChanging;
  702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  703. public event БлюдаНапиткиRowChangeEventHandler БлюдаНапиткиRowChanged;
  704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  705. public event БлюдаНапиткиRowChangeEventHandler БлюдаНапиткиRowDeleting;
  706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  707. public event БлюдаНапиткиRowChangeEventHandler БлюдаНапиткиRowDeleted;
  708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  710. public void AddБлюдаНапиткиRow(БлюдаНапиткиRow row) {
  711. this.Rows.Add(row);
  712. }
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  715. public БлюдаНапиткиRow AddБлюдаНапиткиRow(string Название, int Цена) {
  716. БлюдаНапиткиRow rowБлюдаНапиткиRow = ((БлюдаНапиткиRow)(this.NewRow()));
  717. object[] columnValuesArray = new object[] {
  718. null,
  719. Название,
  720. Цена};
  721. rowБлюдаНапиткиRow.ItemArray = columnValuesArray;
  722. this.Rows.Add(rowБлюдаНапиткиRow);
  723. return rowБлюдаНапиткиRow;
  724. }
  725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  727. public БлюдаНапиткиRow FindByID_БлюдаНапитка(int ID_БлюдаНапитка) {
  728. return ((БлюдаНапиткиRow)(this.Rows.Find(new object[] {
  729. ID_БлюдаНапитка})));
  730. }
  731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  733. public override global::System.Data.DataTable Clone() {
  734. БлюдаНапиткиDataTable cln = ((БлюдаНапиткиDataTable)(base.Clone()));
  735. cln.InitVars();
  736. return cln;
  737. }
  738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  740. protected override global::System.Data.DataTable CreateInstance() {
  741. return new БлюдаНапиткиDataTable();
  742. }
  743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  745. internal void InitVars() {
  746. this.columnID_БлюдаНапитка = base.Columns["ID_БлюдаНапитка"];
  747. this.columnНазвание = base.Columns["Название"];
  748. this.columnЦена = base.Columns["Цена"];
  749. }
  750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  752. private void InitClass() {
  753. this.columnID_БлюдаНапитка = new global::System.Data.DataColumn("ID_БлюдаНапитка", typeof(int), null, global::System.Data.MappingType.Element);
  754. base.Columns.Add(this.columnID_БлюдаНапитка);
  755. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  756. base.Columns.Add(this.columnНазвание);
  757. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(int), null, global::System.Data.MappingType.Element);
  758. base.Columns.Add(this.columnЦена);
  759. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  760. this.columnID_БлюдаНапитка}, true));
  761. this.columnID_БлюдаНапитка.AutoIncrement = true;
  762. this.columnID_БлюдаНапитка.AutoIncrementSeed = -1;
  763. this.columnID_БлюдаНапитка.AutoIncrementStep = -1;
  764. this.columnID_БлюдаНапитка.AllowDBNull = false;
  765. this.columnID_БлюдаНапитка.ReadOnly = true;
  766. this.columnID_БлюдаНапитка.Unique = true;
  767. this.columnНазвание.MaxLength = 50;
  768. }
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. public БлюдаНапиткиRow NewБлюдаНапиткиRow() {
  772. return ((БлюдаНапиткиRow)(this.NewRow()));
  773. }
  774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  776. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  777. return new БлюдаНапиткиRow(builder);
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  781. protected override global::System.Type GetRowType() {
  782. return typeof(БлюдаНапиткиRow);
  783. }
  784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  786. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  787. base.OnRowChanged(e);
  788. if ((this.БлюдаНапиткиRowChanged != null)) {
  789. this.БлюдаНапиткиRowChanged(this, new БлюдаНапиткиRowChangeEvent(((БлюдаНапиткиRow)(e.Row)), e.Action));
  790. }
  791. }
  792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  794. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  795. base.OnRowChanging(e);
  796. if ((this.БлюдаНапиткиRowChanging != null)) {
  797. this.БлюдаНапиткиRowChanging(this, new БлюдаНапиткиRowChangeEvent(((БлюдаНапиткиRow)(e.Row)), e.Action));
  798. }
  799. }
  800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  802. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  803. base.OnRowDeleted(e);
  804. if ((this.БлюдаНапиткиRowDeleted != null)) {
  805. this.БлюдаНапиткиRowDeleted(this, new БлюдаНапиткиRowChangeEvent(((БлюдаНапиткиRow)(e.Row)), e.Action));
  806. }
  807. }
  808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  810. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  811. base.OnRowDeleting(e);
  812. if ((this.БлюдаНапиткиRowDeleting != null)) {
  813. this.БлюдаНапиткиRowDeleting(this, new БлюдаНапиткиRowChangeEvent(((БлюдаНапиткиRow)(e.Row)), e.Action));
  814. }
  815. }
  816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  818. public void RemoveБлюдаНапиткиRow(БлюдаНапиткиRow row) {
  819. this.Rows.Remove(row);
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  823. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  824. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  825. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  826. CHER_KAFEDataSet ds = new CHER_KAFEDataSet();
  827. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  828. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  829. any1.MinOccurs = new decimal(0);
  830. any1.MaxOccurs = decimal.MaxValue;
  831. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  832. sequence.Items.Add(any1);
  833. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  834. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  835. any2.MinOccurs = new decimal(1);
  836. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  837. sequence.Items.Add(any2);
  838. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  839. attribute1.Name = "namespace";
  840. attribute1.FixedValue = ds.Namespace;
  841. type.Attributes.Add(attribute1);
  842. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  843. attribute2.Name = "tableTypeName";
  844. attribute2.FixedValue = "БлюдаНапиткиDataTable";
  845. type.Attributes.Add(attribute2);
  846. type.Particle = sequence;
  847. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  848. if (xs.Contains(dsSchema.TargetNamespace)) {
  849. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  850. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  851. try {
  852. global::System.Xml.Schema.XmlSchema schema = null;
  853. dsSchema.Write(s1);
  854. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  855. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  856. s2.SetLength(0);
  857. schema.Write(s2);
  858. if ((s1.Length == s2.Length)) {
  859. s1.Position = 0;
  860. s2.Position = 0;
  861. for (; ((s1.Position != s1.Length)
  862. && (s1.ReadByte() == s2.ReadByte())); ) {
  863. ;
  864. }
  865. if ((s1.Position == s1.Length)) {
  866. return type;
  867. }
  868. }
  869. }
  870. }
  871. finally {
  872. if ((s1 != null)) {
  873. s1.Close();
  874. }
  875. if ((s2 != null)) {
  876. s2.Close();
  877. }
  878. }
  879. }
  880. xs.Add(dsSchema);
  881. return type;
  882. }
  883. }
  884. /// <summary>
  885. ///Represents the strongly named DataTable class.
  886. ///</summary>
  887. [global::System.Serializable()]
  888. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  889. public partial class Заказанные_блюдаDataTable : global::System.Data.TypedTableBase<Заказанные_блюдаRow> {
  890. private global::System.Data.DataColumn columnID_Заказа;
  891. private global::System.Data.DataColumn columnID_Блюда;
  892. private global::System.Data.DataColumn columnКоличество;
  893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  895. public Заказанные_блюдаDataTable() {
  896. this.TableName = "Заказанные блюда";
  897. this.BeginInit();
  898. this.InitClass();
  899. this.EndInit();
  900. }
  901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  903. internal Заказанные_блюдаDataTable(global::System.Data.DataTable table) {
  904. this.TableName = table.TableName;
  905. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  906. this.CaseSensitive = table.CaseSensitive;
  907. }
  908. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  909. this.Locale = table.Locale;
  910. }
  911. if ((table.Namespace != table.DataSet.Namespace)) {
  912. this.Namespace = table.Namespace;
  913. }
  914. this.Prefix = table.Prefix;
  915. this.MinimumCapacity = table.MinimumCapacity;
  916. }
  917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  919. protected Заказанные_блюдаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  920. base(info, context) {
  921. this.InitVars();
  922. }
  923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  925. public global::System.Data.DataColumn ID_ЗаказаColumn {
  926. get {
  927. return this.columnID_Заказа;
  928. }
  929. }
  930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  932. public global::System.Data.DataColumn ID_БлюдаColumn {
  933. get {
  934. return this.columnID_Блюда;
  935. }
  936. }
  937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  939. public global::System.Data.DataColumn КоличествоColumn {
  940. get {
  941. return this.columnКоличество;
  942. }
  943. }
  944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  946. [global::System.ComponentModel.Browsable(false)]
  947. public int Count {
  948. get {
  949. return this.Rows.Count;
  950. }
  951. }
  952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  954. public Заказанные_блюдаRow this[int index] {
  955. get {
  956. return ((Заказанные_блюдаRow)(this.Rows[index]));
  957. }
  958. }
  959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  960. public event Заказанные_блюдаRowChangeEventHandler Заказанные_блюдаRowChanging;
  961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  962. public event Заказанные_блюдаRowChangeEventHandler Заказанные_блюдаRowChanged;
  963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  964. public event Заказанные_блюдаRowChangeEventHandler Заказанные_блюдаRowDeleting;
  965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  966. public event Заказанные_блюдаRowChangeEventHandler Заказанные_блюдаRowDeleted;
  967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  969. public void AddЗаказанные_блюдаRow(Заказанные_блюдаRow row) {
  970. this.Rows.Add(row);
  971. }
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  974. public Заказанные_блюдаRow AddЗаказанные_блюдаRow(БлюдаНапиткиRow parentБлюдаНапиткиRowByFK_Заказанные_блюда_БлюдаНапитки, int Количество) {
  975. Заказанные_блюдаRow rowЗаказанные_блюдаRow = ((Заказанные_блюдаRow)(this.NewRow()));
  976. object[] columnValuesArray = new object[] {
  977. null,
  978. null,
  979. Количество};
  980. if ((parentБлюдаНапиткиRowByFK_Заказанные_блюда_БлюдаНапитки != null)) {
  981. columnValuesArray[1] = parentБлюдаНапиткиRowByFK_Заказанные_блюда_БлюдаНапитки[0];
  982. }
  983. rowЗаказанные_блюдаRow.ItemArray = columnValuesArray;
  984. this.Rows.Add(rowЗаказанные_блюдаRow);
  985. return rowЗаказанные_блюдаRow;
  986. }
  987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  989. public override global::System.Data.DataTable Clone() {
  990. Заказанные_блюдаDataTable cln = ((Заказанные_блюдаDataTable)(base.Clone()));
  991. cln.InitVars();
  992. return cln;
  993. }
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  996. protected override global::System.Data.DataTable CreateInstance() {
  997. return new Заказанные_блюдаDataTable();
  998. }
  999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1001. internal void InitVars() {
  1002. this.columnID_Заказа = base.Columns["ID_Заказа"];
  1003. this.columnID_Блюда = base.Columns["ID_Блюда"];
  1004. this.columnКоличество = base.Columns["Количество"];
  1005. }
  1006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1008. private void InitClass() {
  1009. this.columnID_Заказа = new global::System.Data.DataColumn("ID_Заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1010. base.Columns.Add(this.columnID_Заказа);
  1011. this.columnID_Блюда = new global::System.Data.DataColumn("ID_Блюда", typeof(int), null, global::System.Data.MappingType.Element);
  1012. base.Columns.Add(this.columnID_Блюда);
  1013. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  1014. base.Columns.Add(this.columnКоличество);
  1015. this.columnID_Заказа.AutoIncrement = true;
  1016. this.columnID_Заказа.AutoIncrementSeed = -1;
  1017. this.columnID_Заказа.AutoIncrementStep = -1;
  1018. this.columnID_Заказа.AllowDBNull = false;
  1019. this.columnID_Заказа.ReadOnly = true;
  1020. this.columnID_Блюда.AllowDBNull = false;
  1021. }
  1022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1024. public Заказанные_блюдаRow NewЗаказанные_блюдаRow() {
  1025. return ((Заказанные_блюдаRow)(this.NewRow()));
  1026. }
  1027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1029. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1030. return new Заказанные_блюдаRow(builder);
  1031. }
  1032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1034. protected override global::System.Type GetRowType() {
  1035. return typeof(Заказанные_блюдаRow);
  1036. }
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1039. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1040. base.OnRowChanged(e);
  1041. if ((this.Заказанные_блюдаRowChanged != null)) {
  1042. this.Заказанные_блюдаRowChanged(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 OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1048. base.OnRowChanging(e);
  1049. if ((this.Заказанные_блюдаRowChanging != null)) {
  1050. this.Заказанные_блюдаRowChanging(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 OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1056. base.OnRowDeleted(e);
  1057. if ((this.Заказанные_блюдаRowDeleted != null)) {
  1058. this.Заказанные_блюдаRowDeleted(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. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1064. base.OnRowDeleting(e);
  1065. if ((this.Заказанные_блюдаRowDeleting != null)) {
  1066. this.Заказанные_блюдаRowDeleting(this, new Заказанные_блюдаRowChangeEvent(((Заказанные_блюдаRow)(e.Row)), e.Action));
  1067. }
  1068. }
  1069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1071. public void RemoveЗаказанные_блюдаRow(Заказанные_блюдаRow row) {
  1072. this.Rows.Remove(row);
  1073. }
  1074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1076. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1077. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1078. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1079. CHER_KAFEDataSet ds = new CHER_KAFEDataSet();
  1080. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1081. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1082. any1.MinOccurs = new decimal(0);
  1083. any1.MaxOccurs = decimal.MaxValue;
  1084. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1085. sequence.Items.Add(any1);
  1086. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1087. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1088. any2.MinOccurs = new decimal(1);
  1089. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1090. sequence.Items.Add(any2);
  1091. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1092. attribute1.Name = "namespace";
  1093. attribute1.FixedValue = ds.Namespace;
  1094. type.Attributes.Add(attribute1);
  1095. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1096. attribute2.Name = "tableTypeName";
  1097. attribute2.FixedValue = "Заказанные_блюдаDataTable";
  1098. type.Attributes.Add(attribute2);
  1099. type.Particle = sequence;
  1100. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1101. if (xs.Contains(dsSchema.TargetNamespace)) {
  1102. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1103. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1104. try {
  1105. global::System.Xml.Schema.XmlSchema schema = null;
  1106. dsSchema.Write(s1);
  1107. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1108. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1109. s2.SetLength(0);
  1110. schema.Write(s2);
  1111. if ((s1.Length == s2.Length)) {
  1112. s1.Position = 0;
  1113. s2.Position = 0;
  1114. for (; ((s1.Position != s1.Length)
  1115. && (s1.ReadByte() == s2.ReadByte())); ) {
  1116. ;
  1117. }
  1118. if ((s1.Position == s1.Length)) {
  1119. return type;
  1120. }
  1121. }
  1122. }
  1123. }
  1124. finally {
  1125. if ((s1 != null)) {
  1126. s1.Close();
  1127. }
  1128. if ((s2 != null)) {
  1129. s2.Close();
  1130. }
  1131. }
  1132. }
  1133. xs.Add(dsSchema);
  1134. return type;
  1135. }
  1136. }
  1137. /// <summary>
  1138. ///Represents the strongly named DataTable class.
  1139. ///</summary>
  1140. [global::System.Serializable()]
  1141. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1142. public partial class ЗаказыDataTable : global::System.Data.TypedTableBase<ЗаказыRow> {
  1143. private global::System.Data.DataColumn columnID_Заказа;
  1144. private global::System.Data.DataColumn columnID_Столика;
  1145. private global::System.Data.DataColumn columnКоличествоКлиентов;
  1146. private global::System.Data.DataColumn columnID_Статуса;
  1147. private global::System.Data.DataColumn columnДатаЗаказа;
  1148. private global::System.Data.DataColumn columnСуммаЗаказа;
  1149. private global::System.Data.DataColumn columnID_Смены;
  1150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1152. public ЗаказыDataTable() {
  1153. this.TableName = "Заказы";
  1154. this.BeginInit();
  1155. this.InitClass();
  1156. this.EndInit();
  1157. }
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1160. internal ЗаказыDataTable(global::System.Data.DataTable table) {
  1161. this.TableName = table.TableName;
  1162. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1163. this.CaseSensitive = table.CaseSensitive;
  1164. }
  1165. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1166. this.Locale = table.Locale;
  1167. }
  1168. if ((table.Namespace != table.DataSet.Namespace)) {
  1169. this.Namespace = table.Namespace;
  1170. }
  1171. this.Prefix = table.Prefix;
  1172. this.MinimumCapacity = table.MinimumCapacity;
  1173. }
  1174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1176. protected ЗаказыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1177. base(info, context) {
  1178. this.InitVars();
  1179. }
  1180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1182. public global::System.Data.DataColumn ID_ЗаказаColumn {
  1183. get {
  1184. return this.columnID_Заказа;
  1185. }
  1186. }
  1187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1189. public global::System.Data.DataColumn ID_СтоликаColumn {
  1190. get {
  1191. return this.columnID_Столика;
  1192. }
  1193. }
  1194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1196. public global::System.Data.DataColumn КоличествоКлиентовColumn {
  1197. get {
  1198. return this.columnКоличествоКлиентов;
  1199. }
  1200. }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1203. public global::System.Data.DataColumn ID_СтатусаColumn {
  1204. get {
  1205. return this.columnID_Статуса;
  1206. }
  1207. }
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1210. public global::System.Data.DataColumn ДатаЗаказаColumn {
  1211. get {
  1212. return this.columnДатаЗаказа;
  1213. }
  1214. }
  1215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1217. public global::System.Data.DataColumn СуммаЗаказаColumn {
  1218. get {
  1219. return this.columnСуммаЗаказа;
  1220. }
  1221. }
  1222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1224. public global::System.Data.DataColumn ID_СменыColumn {
  1225. get {
  1226. return this.columnID_Смены;
  1227. }
  1228. }
  1229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1231. [global::System.ComponentModel.Browsable(false)]
  1232. public int Count {
  1233. get {
  1234. return this.Rows.Count;
  1235. }
  1236. }
  1237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1239. public ЗаказыRow this[int index] {
  1240. get {
  1241. return ((ЗаказыRow)(this.Rows[index]));
  1242. }
  1243. }
  1244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1245. public event ЗаказыRowChangeEventHandler ЗаказыRowChanging;
  1246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1247. public event ЗаказыRowChangeEventHandler ЗаказыRowChanged;
  1248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1249. public event ЗаказыRowChangeEventHandler ЗаказыRowDeleting;
  1250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1251. public event ЗаказыRowChangeEventHandler ЗаказыRowDeleted;
  1252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1254. public void AddЗаказыRow(ЗаказыRow row) {
  1255. this.Rows.Add(row);
  1256. }
  1257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1259. public ЗаказыRow AddЗаказыRow(СтоликиRow parentСтоликиRowByFK_Заказы_Столики, int КоличествоКлиентов, СтатусЗаказаRow parentСтатусЗаказаRowByFK_Заказы_СтатусЗаказа, System.DateTime ДатаЗаказа, decimal СуммаЗаказа, СменыRow parentСменыRowByFK_Заказы_Смены) {
  1260. ЗаказыRow rowЗаказыRow = ((ЗаказыRow)(this.NewRow()));
  1261. object[] columnValuesArray = new object[] {
  1262. null,
  1263. null,
  1264. КоличествоКлиентов,
  1265. null,
  1266. ДатаЗаказа,
  1267. СуммаЗаказа,
  1268. null};
  1269. if ((parentСтоликиRowByFK_Заказы_Столики != null)) {
  1270. columnValuesArray[1] = parentСтоликиRowByFK_Заказы_Столики[0];
  1271. }
  1272. if ((parentСтатусЗаказаRowByFK_Заказы_СтатусЗаказа != null)) {
  1273. columnValuesArray[3] = parentСтатусЗаказаRowByFK_Заказы_СтатусЗаказа[0];
  1274. }
  1275. if ((parentСменыRowByFK_Заказы_Смены != null)) {
  1276. columnValuesArray[6] = parentСменыRowByFK_Заказы_Смены[0];
  1277. }
  1278. rowЗаказыRow.ItemArray = columnValuesArray;
  1279. this.Rows.Add(rowЗаказыRow);
  1280. return rowЗаказыRow;
  1281. }
  1282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1284. public ЗаказыRow FindByID_Заказа(int ID_Заказа) {
  1285. return ((ЗаказыRow)(this.Rows.Find(new object[] {
  1286. ID_Заказа})));
  1287. }
  1288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1290. public override global::System.Data.DataTable Clone() {
  1291. ЗаказыDataTable cln = ((ЗаказыDataTable)(base.Clone()));
  1292. cln.InitVars();
  1293. return cln;
  1294. }
  1295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1297. protected override global::System.Data.DataTable CreateInstance() {
  1298. return new ЗаказыDataTable();
  1299. }
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1302. internal void InitVars() {
  1303. this.columnID_Заказа = base.Columns["ID_Заказа"];
  1304. this.columnID_Столика = base.Columns["ID_Столика"];
  1305. this.columnКоличествоКлиентов = base.Columns["КоличествоКлиентов"];
  1306. this.columnID_Статуса = base.Columns["ID_Статуса"];
  1307. this.columnДатаЗаказа = base.Columns["ДатаЗаказа"];
  1308. this.columnСуммаЗаказа = base.Columns["СуммаЗаказа"];
  1309. this.columnID_Смены = base.Columns["ID_Смены"];
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1313. private void InitClass() {
  1314. this.columnID_Заказа = new global::System.Data.DataColumn("ID_Заказа", typeof(int), null, global::System.Data.MappingType.Element);
  1315. base.Columns.Add(this.columnID_Заказа);
  1316. this.columnID_Столика = new global::System.Data.DataColumn("ID_Столика", typeof(int), null, global::System.Data.MappingType.Element);
  1317. base.Columns.Add(this.columnID_Столика);
  1318. this.columnКоличествоКлиентов = new global::System.Data.DataColumn("КоличествоКлиентов", typeof(int), null, global::System.Data.MappingType.Element);
  1319. base.Columns.Add(this.columnКоличествоКлиентов);
  1320. this.columnID_Статуса = new global::System.Data.DataColumn("ID_Статуса", typeof(int), null, global::System.Data.MappingType.Element);
  1321. base.Columns.Add(this.columnID_Статуса);
  1322. this.columnДатаЗаказа = new global::System.Data.DataColumn("ДатаЗаказа", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1323. base.Columns.Add(this.columnДатаЗаказа);
  1324. this.columnСуммаЗаказа = new global::System.Data.DataColumn("СуммаЗаказа", typeof(decimal), null, global::System.Data.MappingType.Element);
  1325. base.Columns.Add(this.columnСуммаЗаказа);
  1326. this.columnID_Смены = new global::System.Data.DataColumn("ID_Смены", typeof(int), null, global::System.Data.MappingType.Element);
  1327. base.Columns.Add(this.columnID_Смены);
  1328. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1329. this.columnID_Заказа}, true));
  1330. this.columnID_Заказа.AutoIncrement = true;
  1331. this.columnID_Заказа.AutoIncrementSeed = -1;
  1332. this.columnID_Заказа.AutoIncrementStep = -1;
  1333. this.columnID_Заказа.AllowDBNull = false;
  1334. this.columnID_Заказа.ReadOnly = true;
  1335. this.columnID_Заказа.Unique = true;
  1336. }
  1337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1339. public ЗаказыRow NewЗаказыRow() {
  1340. return ((ЗаказыRow)(this.NewRow()));
  1341. }
  1342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1344. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1345. return new ЗаказыRow(builder);
  1346. }
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. protected override global::System.Type GetRowType() {
  1350. return typeof(ЗаказыRow);
  1351. }
  1352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1354. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1355. base.OnRowChanged(e);
  1356. if ((this.ЗаказыRowChanged != null)) {
  1357. this.ЗаказыRowChanged(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1358. }
  1359. }
  1360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1362. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1363. base.OnRowChanging(e);
  1364. if ((this.ЗаказыRowChanging != null)) {
  1365. this.ЗаказыRowChanging(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1366. }
  1367. }
  1368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1370. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1371. base.OnRowDeleted(e);
  1372. if ((this.ЗаказыRowDeleted != null)) {
  1373. this.ЗаказыRowDeleted(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1374. }
  1375. }
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1378. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1379. base.OnRowDeleting(e);
  1380. if ((this.ЗаказыRowDeleting != null)) {
  1381. this.ЗаказыRowDeleting(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1382. }
  1383. }
  1384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1386. public void RemoveЗаказыRow(ЗаказыRow row) {
  1387. this.Rows.Remove(row);
  1388. }
  1389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1391. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1392. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1393. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1394. CHER_KAFEDataSet ds = new CHER_KAFEDataSet();
  1395. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1396. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1397. any1.MinOccurs = new decimal(0);
  1398. any1.MaxOccurs = decimal.MaxValue;
  1399. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1400. sequence.Items.Add(any1);
  1401. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1402. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1403. any2.MinOccurs = new decimal(1);
  1404. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1405. sequence.Items.Add(any2);
  1406. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1407. attribute1.Name = "namespace";
  1408. attribute1.FixedValue = ds.Namespace;
  1409. type.Attributes.Add(attribute1);
  1410. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1411. attribute2.Name = "tableTypeName";
  1412. attribute2.FixedValue = "ЗаказыDataTable";
  1413. type.Attributes.Add(attribute2);
  1414. type.Particle = sequence;
  1415. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1416. if (xs.Contains(dsSchema.TargetNamespace)) {
  1417. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1418. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1419. try {
  1420. global::System.Xml.Schema.XmlSchema schema = null;
  1421. dsSchema.Write(s1);
  1422. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1423. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1424. s2.SetLength(0);
  1425. schema.Write(s2);
  1426. if ((s1.Length == s2.Length)) {
  1427. s1.Position = 0;
  1428. s2.Position = 0;
  1429. for (; ((s1.Position != s1.Length)
  1430. && (s1.ReadByte() == s2.ReadByte())); ) {
  1431. ;
  1432. }
  1433. if ((s1.Position == s1.Length)) {
  1434. return type;
  1435. }
  1436. }
  1437. }
  1438. }
  1439. finally {
  1440. if ((s1 != null)) {
  1441. s1.Close();
  1442. }
  1443. if ((s2 != null)) {
  1444. s2.Close();
  1445. }
  1446. }
  1447. }
  1448. xs.Add(dsSchema);
  1449. return type;
  1450. }
  1451. }
  1452. /// <summary>
  1453. ///Represents the strongly named DataTable class.
  1454. ///</summary>
  1455. [global::System.Serializable()]
  1456. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1457. public partial class ОфициантыDataTable : global::System.Data.TypedTableBase<ОфициантыRow> {
  1458. private global::System.Data.DataColumn columnID_Официанта;
  1459. private global::System.Data.DataColumn columnФамилия;
  1460. private global::System.Data.DataColumn columnИмя;
  1461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1463. public ОфициантыDataTable() {
  1464. this.TableName = "Официанты";
  1465. this.BeginInit();
  1466. this.InitClass();
  1467. this.EndInit();
  1468. }
  1469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1471. internal ОфициантыDataTable(global::System.Data.DataTable table) {
  1472. this.TableName = table.TableName;
  1473. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1474. this.CaseSensitive = table.CaseSensitive;
  1475. }
  1476. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1477. this.Locale = table.Locale;
  1478. }
  1479. if ((table.Namespace != table.DataSet.Namespace)) {
  1480. this.Namespace = table.Namespace;
  1481. }
  1482. this.Prefix = table.Prefix;
  1483. this.MinimumCapacity = table.MinimumCapacity;
  1484. }
  1485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1487. protected ОфициантыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1488. base(info, context) {
  1489. this.InitVars();
  1490. }
  1491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1493. public global::System.Data.DataColumn ID_ОфициантаColumn {
  1494. get {
  1495. return this.columnID_Официанта;
  1496. }
  1497. }
  1498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1500. public global::System.Data.DataColumn ФамилияColumn {
  1501. get {
  1502. return this.columnФамилия;
  1503. }
  1504. }
  1505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1507. public global::System.Data.DataColumn ИмяColumn {
  1508. get {
  1509. return this.columnИмя;
  1510. }
  1511. }
  1512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1514. [global::System.ComponentModel.Browsable(false)]
  1515. public int Count {
  1516. get {
  1517. return this.Rows.Count;
  1518. }
  1519. }
  1520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1522. public ОфициантыRow this[int index] {
  1523. get {
  1524. return ((ОфициантыRow)(this.Rows[index]));
  1525. }
  1526. }
  1527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1528. public event ОфициантыRowChangeEventHandler ОфициантыRowChanging;
  1529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1530. public event ОфициантыRowChangeEventHandler ОфициантыRowChanged;
  1531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1532. public event ОфициантыRowChangeEventHandler ОфициантыRowDeleting;
  1533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1534. public event ОфициантыRowChangeEventHandler ОфициантыRowDeleted;
  1535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1537. public void AddОфициантыRow(ОфициантыRow row) {
  1538. this.Rows.Add(row);
  1539. }
  1540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1542. public ОфициантыRow AddОфициантыRow(ПользователиRow parentПользователиRowByFK_Официанты_Пользователи, string Фамилия, string Имя) {
  1543. ОфициантыRow rowОфициантыRow = ((ОфициантыRow)(this.NewRow()));
  1544. object[] columnValuesArray = new object[] {
  1545. null,
  1546. Фамилия,
  1547. Имя};
  1548. if ((parentПользователиRowByFK_Официанты_Пользователи != null)) {
  1549. columnValuesArray[0] = parentПользователиRowByFK_Официанты_Пользователи[0];
  1550. }
  1551. rowОфициантыRow.ItemArray = columnValuesArray;
  1552. this.Rows.Add(rowОфициантыRow);
  1553. return rowОфициантыRow;
  1554. }
  1555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1557. public ОфициантыRow FindByID_Официанта(int ID_Официанта) {
  1558. return ((ОфициантыRow)(this.Rows.Find(new object[] {
  1559. ID_Официанта})));
  1560. }
  1561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1563. public override global::System.Data.DataTable Clone() {
  1564. ОфициантыDataTable cln = ((ОфициантыDataTable)(base.Clone()));
  1565. cln.InitVars();
  1566. return cln;
  1567. }
  1568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1570. protected override global::System.Data.DataTable CreateInstance() {
  1571. return new ОфициантыDataTable();
  1572. }
  1573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1575. internal void InitVars() {
  1576. this.columnID_Официанта = base.Columns["ID_Официанта"];
  1577. this.columnФамилия = base.Columns["Фамилия"];
  1578. this.columnИмя = base.Columns["Имя"];
  1579. }
  1580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1582. private void InitClass() {
  1583. this.columnID_Официанта = new global::System.Data.DataColumn("ID_Официанта", typeof(int), null, global::System.Data.MappingType.Element);
  1584. base.Columns.Add(this.columnID_Официанта);
  1585. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1586. base.Columns.Add(this.columnФамилия);
  1587. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1588. base.Columns.Add(this.columnИмя);
  1589. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1590. this.columnID_Официанта}, true));
  1591. this.columnID_Официанта.AllowDBNull = false;
  1592. this.columnID_Официанта.Unique = true;
  1593. this.columnФамилия.MaxLength = 50;
  1594. this.columnИмя.MaxLength = 50;
  1595. }
  1596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1598. public ОфициантыRow NewОфициантыRow() {
  1599. return ((ОфициантыRow)(this.NewRow()));
  1600. }
  1601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1603. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1604. return new ОфициантыRow(builder);
  1605. }
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1608. protected override global::System.Type GetRowType() {
  1609. return typeof(ОфициантыRow);
  1610. }
  1611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1613. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1614. base.OnRowChanged(e);
  1615. if ((this.ОфициантыRowChanged != null)) {
  1616. this.ОфициантыRowChanged(this, new ОфициантыRowChangeEvent(((ОфициантыRow)(e.Row)), e.Action));
  1617. }
  1618. }
  1619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1621. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1622. base.OnRowChanging(e);
  1623. if ((this.ОфициантыRowChanging != null)) {
  1624. this.ОфициантыRowChanging(this, new ОфициантыRowChangeEvent(((ОфициантыRow)(e.Row)), e.Action));
  1625. }
  1626. }
  1627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1629. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1630. base.OnRowDeleted(e);
  1631. if ((this.ОфициантыRowDeleted != null)) {
  1632. this.ОфициантыRowDeleted(this, new ОфициантыRowChangeEvent(((ОфициантыRow)(e.Row)), e.Action));
  1633. }
  1634. }
  1635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1637. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1638. base.OnRowDeleting(e);
  1639. if ((this.ОфициантыRowDeleting != null)) {
  1640. this.ОфициантыRowDeleting(this, new ОфициантыRowChangeEvent(((ОфициантыRow)(e.Row)), e.Action));
  1641. }
  1642. }
  1643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1645. public void RemoveОфициантыRow(ОфициантыRow row) {
  1646. this.Rows.Remove(row);
  1647. }
  1648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1650. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1651. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1652. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1653. CHER_KAFEDataSet ds = new CHER_KAFEDataSet();
  1654. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1655. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1656. any1.MinOccurs = new decimal(0);
  1657. any1.MaxOccurs = decimal.MaxValue;
  1658. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1659. sequence.Items.Add(any1);
  1660. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1661. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1662. any2.MinOccurs = new decimal(1);
  1663. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1664. sequence.Items.Add(any2);
  1665. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1666. attribute1.Name = "namespace";
  1667. attribute1.FixedValue = ds.Namespace;
  1668. type.Attributes.Add(attribute1);
  1669. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1670. attribute2.Name = "tableTypeName";
  1671. attribute2.FixedValue = "ОфициантыDataTable";
  1672. type.Attributes.Add(attribute2);
  1673. type.Particle = sequence;
  1674. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1675. if (xs.Contains(dsSchema.TargetNamespace)) {
  1676. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1677. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1678. try {
  1679. global::System.Xml.Schema.XmlSchema schema = null;
  1680. dsSchema.Write(s1);
  1681. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1682. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1683. s2.SetLength(0);
  1684. schema.Write(s2);
  1685. if ((s1.Length == s2.Length)) {
  1686. s1.Position = 0;
  1687. s2.Position = 0;
  1688. for (; ((s1.Position != s1.Length)
  1689. && (s1.ReadByte() == s2.ReadByte())); ) {
  1690. ;
  1691. }
  1692. if ((s1.Position == s1.Length)) {
  1693. return type;
  1694. }
  1695. }
  1696. }
  1697. }
  1698. finally {
  1699. if ((s1 != null)) {
  1700. s1.Close();
  1701. }
  1702. if ((s2 != null)) {
  1703. s2.Close();
  1704. }
  1705. }
  1706. }
  1707. xs.Add(dsSchema);
  1708. return type;
  1709. }
  1710. }
  1711. /// <summary>
  1712. ///Represents the strongly named DataTable class.
  1713. ///</summary>
  1714. [global::System.Serializable()]
  1715. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1716. public partial class ПовараDataTable : global::System.Data.TypedTableBase<ПовараRow> {
  1717. private global::System.Data.DataColumn columnID_Повара;
  1718. private global::System.Data.DataColumn columnФамилия;
  1719. private global::System.Data.DataColumn columnИмя;
  1720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1722. public ПовараDataTable() {
  1723. this.TableName = "Повара";
  1724. this.BeginInit();
  1725. this.InitClass();
  1726. this.EndInit();
  1727. }
  1728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1730. internal ПовараDataTable(global::System.Data.DataTable table) {
  1731. this.TableName = table.TableName;
  1732. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1733. this.CaseSensitive = table.CaseSensitive;
  1734. }
  1735. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1736. this.Locale = table.Locale;
  1737. }
  1738. if ((table.Namespace != table.DataSet.Namespace)) {
  1739. this.Namespace = table.Namespace;
  1740. }
  1741. this.Prefix = table.Prefix;
  1742. this.MinimumCapacity = table.MinimumCapacity;
  1743. }
  1744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1746. protected ПовараDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1747. base(info, context) {
  1748. this.InitVars();
  1749. }
  1750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1752. public global::System.Data.DataColumn ID_ПовараColumn {
  1753. get {
  1754. return this.columnID_Повара;
  1755. }
  1756. }
  1757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1759. public global::System.Data.DataColumn ФамилияColumn {
  1760. get {
  1761. return this.columnФамилия;
  1762. }
  1763. }
  1764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1766. public global::System.Data.DataColumn ИмяColumn {
  1767. get {
  1768. return this.columnИмя;
  1769. }
  1770. }
  1771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1773. [global::System.ComponentModel.Browsable(false)]
  1774. public int Count {
  1775. get {
  1776. return this.Rows.Count;
  1777. }
  1778. }
  1779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1781. public ПовараRow this[int index] {
  1782. get {
  1783. return ((ПовараRow)(this.Rows[index]));
  1784. }
  1785. }
  1786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1787. public event ПовараRowChangeEventHandler ПовараRowChanging;
  1788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1789. public event ПовараRowChangeEventHandler ПовараRowChanged;
  1790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1791. public event ПовараRowChangeEventHandler ПовараRowDeleting;
  1792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1793. public event ПовараRowChangeEventHandler ПовараRowDeleted;
  1794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1796. public void AddПовараRow(ПовараRow row) {
  1797. this.Rows.Add(row);
  1798. }
  1799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1801. public ПовараRow AddПовараRow(ПользователиRow parentПользователиRowByFK_Повара_Пользователи, string Фамилия, string Имя) {
  1802. ПовараRow rowПовараRow = ((ПовараRow)(this.NewRow()));
  1803. object[] columnValuesArray = new object[] {
  1804. null,
  1805. Фамилия,
  1806. Имя};
  1807. if ((parentПользователиRowByFK_Повара_Пользователи != null)) {
  1808. columnValuesArray[0] = parentПользователиRowByFK_Повара_Пользователи[0];
  1809. }
  1810. rowПовараRow.ItemArray = columnValuesArray;
  1811. this.Rows.Add(rowПовараRow);
  1812. return rowПовараRow;
  1813. }
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1816. public ПовараRow FindByID_Повара(int ID_Повара) {
  1817. return ((ПовараRow)(this.Rows.Find(new object[] {
  1818. ID_Повара})));
  1819. }
  1820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1822. public override global::System.Data.DataTable Clone() {
  1823. ПовараDataTable cln = ((ПовараDataTable)(base.Clone()));
  1824. cln.InitVars();
  1825. return cln;
  1826. }
  1827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1829. protected override global::System.Data.DataTable CreateInstance() {
  1830. return new ПовараDataTable();
  1831. }
  1832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1834. internal void InitVars() {
  1835. this.columnID_Повара = base.Columns["ID_Повара"];
  1836. this.columnФамилия = base.Columns["Фамилия"];
  1837. this.columnИмя = base.Columns["Имя"];
  1838. }
  1839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1841. private void InitClass() {
  1842. this.columnID_Повара = new global::System.Data.DataColumn("ID_Повара", typeof(int), null, global::System.Data.MappingType.Element);
  1843. base.Columns.Add(this.columnID_Повара);
  1844. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1845. base.Columns.Add(this.columnФамилия);
  1846. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1847. base.Columns.Add(this.columnИмя);
  1848. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1849. this.columnID_Повара}, true));
  1850. this.columnID_Повара.AllowDBNull = false;
  1851. this.columnID_Повара.Unique = true;
  1852. this.columnФамилия.MaxLength = 50;
  1853. this.columnИмя.MaxLength = 50;
  1854. }
  1855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1857. public ПовараRow NewПовараRow() {
  1858. return ((ПовараRow)(this.NewRow()));
  1859. }
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1862. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1863. return new ПовараRow(builder);
  1864. }
  1865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1867. protected override global::System.Type GetRowType() {
  1868. return typeof(ПовараRow);
  1869. }
  1870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1872. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1873. base.OnRowChanged(e);
  1874. if ((this.ПовараRowChanged != null)) {
  1875. this.ПовараRowChanged(this, new ПовараRowChangeEvent(((ПовараRow)(e.Row)), e.Action));
  1876. }
  1877. }
  1878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1880. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1881. base.OnRowChanging(e);
  1882. if ((this.ПовараRowChanging != null)) {
  1883. this.ПовараRowChanging(this, new ПовараRowChangeEvent(((ПовараRow)(e.Row)), e.Action));
  1884. }
  1885. }
  1886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1888. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1889. base.OnRowDeleted(e);
  1890. if ((this.ПовараRowDeleted != null)) {
  1891. this.ПовараRowDeleted(this, new ПовараRowChangeEvent(((ПовараRow)(e.Row)), e.Action));
  1892. }
  1893. }
  1894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1896. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1897. base.OnRowDeleting(e);
  1898. if ((this.ПовараRowDeleting != null)) {
  1899. this.ПовараRowDeleting(this, new ПовараRowChangeEvent(((ПовараRow)(e.Row)), e.Action));
  1900. }
  1901. }
  1902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1904. public void RemoveПовараRow(ПовараRow row) {
  1905. this.Rows.Remove(row);
  1906. }
  1907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1909. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1910. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1911. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1912. CHER_KAFEDataSet ds = new CHER_KAFEDataSet();
  1913. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1914. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1915. any1.MinOccurs = new decimal(0);
  1916. any1.MaxOccurs = decimal.MaxValue;
  1917. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1918. sequence.Items.Add(any1);
  1919. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1920. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1921. any2.MinOccurs = new decimal(1);
  1922. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1923. sequence.Items.Add(any2);
  1924. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1925. attribute1.Name = "namespace";
  1926. attribute1.FixedValue = ds.Namespace;
  1927. type.Attributes.Add(attribute1);
  1928. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1929. attribute2.Name = "tableTypeName";
  1930. attribute2.FixedValue = "ПовараDataTable";
  1931. type.Attributes.Add(attribute2);
  1932. type.Particle = sequence;
  1933. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1934. if (xs.Contains(dsSchema.TargetNamespace)) {
  1935. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1936. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1937. try {
  1938. global::System.Xml.Schema.XmlSchema schema = null;
  1939. dsSchema.Write(s1);
  1940. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1941. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1942. s2.SetLength(0);
  1943. schema.Write(s2);
  1944. if ((s1.Length == s2.Length)) {
  1945. s1.Position = 0;
  1946. s2.Position = 0;
  1947. for (; ((s1.Position != s1.Length)
  1948. && (s1.ReadByte() == s2.ReadByte())); ) {
  1949. ;
  1950. }
  1951. if ((s1.Position == s1.Length)) {
  1952. return type;
  1953. }
  1954. }
  1955. }
  1956. }
  1957. finally {
  1958. if ((s1 != null)) {
  1959. s1.Close();
  1960. }
  1961. if ((s2 != null)) {
  1962. s2.Close();
  1963. }
  1964. }
  1965. }
  1966. xs.Add(dsSchema);
  1967. return type;
  1968. }
  1969. }
  1970. /// <summary>
  1971. ///Represents the strongly named DataTable class.
  1972. ///</summary>
  1973. [global::System.Serializable()]
  1974. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1975. public partial class ПользователиDataTable : global::System.Data.TypedTableBase<ПользователиRow> {
  1976. private global::System.Data.DataColumn columnID_Пользователя;
  1977. private global::System.Data.DataColumn columnЛогин;
  1978. private global::System.Data.DataColumn columnПароль;
  1979. private global::System.Data.DataColumn columnФамилия;
  1980. private global::System.Data.DataColumn columnID_Роли;
  1981. private global::System.Data.DataColumn columnID_Статуса;
  1982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1984. public ПользователиDataTable() {
  1985. this.TableName = "Пользователи";
  1986. this.BeginInit();
  1987. this.InitClass();
  1988. this.EndInit();
  1989. }
  1990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1992. internal ПользователиDataTable(global::System.Data.DataTable table) {
  1993. this.TableName = table.TableName;
  1994. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1995. this.CaseSensitive = table.CaseSensitive;
  1996. }
  1997. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1998. this.Locale = table.Locale;
  1999. }
  2000. if ((table.Namespace != table.DataSet.Namespace)) {
  2001. this.Namespace = table.Namespace;
  2002. }
  2003. this.Prefix = table.Prefix;
  2004. this.MinimumCapacity = table.MinimumCapacity;
  2005. }
  2006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2008. protected ПользователиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2009. base(info, context) {
  2010. this.InitVars();
  2011. }
  2012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2014. public global::System.Data.DataColumn ID_ПользователяColumn {
  2015. get {
  2016. return this.columnID_Пользователя;
  2017. }
  2018. }
  2019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2021. public global::System.Data.DataColumn ЛогинColumn {
  2022. get {
  2023. return this.columnЛогин;
  2024. }
  2025. }
  2026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2028. public global::System.Data.DataColumn ПарольColumn {
  2029. get {
  2030. return this.columnПароль;
  2031. }
  2032. }
  2033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2035. public global::System.Data.DataColumn ФамилияColumn {
  2036. get {
  2037. return this.columnФамилия;
  2038. }
  2039. }
  2040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2042. public global::System.Data.DataColumn ID_РолиColumn {
  2043. get {
  2044. return this.columnID_Роли;
  2045. }
  2046. }
  2047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2049. public global::System.Data.DataColumn ID_СтатусаColumn {
  2050. get {
  2051. return this.columnID_Статуса;
  2052. }
  2053. }
  2054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2056. [global::System.ComponentModel.Browsable(false)]
  2057. public int Count {
  2058. get {
  2059. return this.Rows.Count;
  2060. }
  2061. }
  2062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2064. public ПользователиRow this[int index] {
  2065. get {
  2066. return ((ПользователиRow)(this.Rows[index]));
  2067. }
  2068. }
  2069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2070. public event ПользователиRowChangeEventHandler ПользователиRowChanging;
  2071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2072. public event ПользователиRowChangeEventHandler ПользователиRowChanged;
  2073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2074. public event ПользователиRowChangeEventHandler ПользователиRowDeleting;
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2076. public event ПользователиRowChangeEventHandler ПользователиRowDeleted;
  2077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2079. public void AddПользователиRow(ПользователиRow row) {
  2080. this.Rows.Add(row);
  2081. }
  2082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2084. public ПользователиRow AddПользователиRow(int ID_Пользователя, string Логин, string Пароль, string Фамилия, РолиRow parentРолиRowByFK_Пользователи_Роли1, СтатусСотрудникаRow parentСтатусСотрудникаRowByFK_Пользователи_СтатусСотрудника1) {
  2085. ПользователиRow rowПользователиRow = ((ПользователиRow)(this.NewRow()));
  2086. object[] columnValuesArray = new object[] {
  2087. ID_Пользователя,
  2088. Логин,
  2089. Пароль,
  2090. Фамилия,
  2091. null,
  2092. null};
  2093. if ((parentРолиRowByFK_Пользователи_Роли1 != null)) {
  2094. columnValuesArray[4] = parentРолиRowByFK_Пользователи_Роли1[0];
  2095. }
  2096. if ((parentСтатусСотрудникаRowByFK_Пользователи_СтатусСотрудника1 != null)) {
  2097. columnValuesArray[5] = parentСтатусСотрудникаRowByFK_Пользователи_СтатусСотрудника1[0];
  2098. }
  2099. rowПользователиRow.ItemArray = columnValuesArray;
  2100. this.Rows.Add(rowПользователиRow);
  2101. return rowПользователиRow;
  2102. }
  2103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2105. public ПользователиRow FindByID_Пользователя(int ID_Пользователя) {
  2106. return ((ПользователиRow)(this.Rows.Find(new object[] {
  2107. ID_Пользователя})));
  2108. }
  2109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2111. public override global::System.Data.DataTable Clone() {
  2112. ПользователиDataTable cln = ((ПользователиDataTable)(base.Clone()));
  2113. cln.InitVars();
  2114. return cln;
  2115. }
  2116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2118. protected override global::System.Data.DataTable CreateInstance() {
  2119. return new ПользователиDataTable();
  2120. }
  2121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2123. internal void InitVars() {
  2124. this.columnID_Пользователя = base.Columns["ID_Пользователя"];
  2125. this.columnЛогин = base.Columns["Логин"];
  2126. this.columnПароль = base.Columns["Пароль"];
  2127. this.columnФамилия = base.Columns["Фамилия"];
  2128. this.columnID_Роли = base.Columns["ID_Роли"];
  2129. this.columnID_Статуса = base.Columns["ID_Статуса"];
  2130. }
  2131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2133. private void InitClass() {
  2134. this.columnID_Пользователя = new global::System.Data.DataColumn("ID_Пользователя", typeof(int), null, global::System.Data.MappingType.Element);
  2135. base.Columns.Add(this.columnID_Пользователя);
  2136. this.columnЛогин = new global::System.Data.DataColumn("Логин", typeof(string), null, global::System.Data.MappingType.Element);
  2137. base.Columns.Add(this.columnЛогин);
  2138. this.columnПароль = new global::System.Data.DataColumn("Пароль", typeof(string), null, global::System.Data.MappingType.Element);
  2139. base.Columns.Add(this.columnПароль);
  2140. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  2141. base.Columns.Add(this.columnФамилия);
  2142. this.columnID_Роли = new global::System.Data.DataColumn("ID_Роли", typeof(int), null, global::System.Data.MappingType.Element);
  2143. base.Columns.Add(this.columnID_Роли);
  2144. this.columnID_Статуса = new global::System.Data.DataColumn("ID_Статуса", typeof(int), null, global::System.Data.MappingType.Element);
  2145. base.Columns.Add(this.columnID_Статуса);
  2146. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2147. this.columnID_Пользователя}, true));
  2148. this.columnID_Пользователя.AllowDBNull = false;
  2149. this.columnID_Пользователя.Unique = true;
  2150. this.columnЛогин.MaxLength = 50;
  2151. this.columnПароль.MaxLength = 50;
  2152. this.columnФамилия.MaxLength = 50;
  2153. }
  2154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2156. public ПользователиRow NewПользователиRow() {
  2157. return ((ПользователиRow)(this.NewRow()));
  2158. }
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2161. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2162. return new ПользователиRow(builder);
  2163. }
  2164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2166. protected override global::System.Type GetRowType() {
  2167. return typeof(ПользователиRow);
  2168. }
  2169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2171. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2172. base.OnRowChanged(e);
  2173. if ((this.ПользователиRowChanged != null)) {
  2174. this.ПользователиRowChanged(this, new ПользователиRowChangeEvent(((ПользователиRow)(e.Row)), e.Action));
  2175. }
  2176. }
  2177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2179. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2180. base.OnRowChanging(e);
  2181. if ((this.ПользователиRowChanging != null)) {
  2182. this.ПользователиRowChanging(this, new ПользователиRowChangeEvent(((ПользователиRow)(e.Row)), e.Action));
  2183. }
  2184. }
  2185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2187. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2188. base.OnRowDeleted(e);
  2189. if ((this.ПользователиRowDeleted != null)) {
  2190. this.ПользователиRowDeleted(this, new ПользователиRowChangeEvent(((ПользователиRow)(e.Row)), e.Action));
  2191. }
  2192. }
  2193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2195. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2196. base.OnRowDeleting(e);
  2197. if ((this.ПользователиRowDeleting != null)) {
  2198. this.ПользователиRowDeleting(this, new ПользователиRowChangeEvent(((ПользователиRow)(e.Row)), e.Action));
  2199. }
  2200. }
  2201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2203. public void RemoveПользователиRow(ПользователиRow row) {
  2204. this.Rows.Remove(row);
  2205. }
  2206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2208. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2209. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2210. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2211. CHER_KAFEDataSet ds = new CHER_KAFEDataSet();
  2212. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2213. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2214. any1.MinOccurs = new decimal(0);
  2215. any1.MaxOccurs = decimal.MaxValue;
  2216. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2217. sequence.Items.Add(any1);
  2218. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2219. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2220. any2.MinOccurs = new decimal(1);
  2221. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2222. sequence.Items.Add(any2);
  2223. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2224. attribute1.Name = "namespace";
  2225. attribute1.FixedValue = ds.Namespace;
  2226. type.Attributes.Add(attribute1);
  2227. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2228. attribute2.Name = "tableTypeName";
  2229. attribute2.FixedValue = "ПользователиDataTable";
  2230. type.Attributes.Add(attribute2);
  2231. type.Particle = sequence;
  2232. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2233. if (xs.Contains(dsSchema.TargetNamespace)) {
  2234. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2235. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2236. try {
  2237. global::System.Xml.Schema.XmlSchema schema = null;
  2238. dsSchema.Write(s1);
  2239. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2240. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2241. s2.SetLength(0);
  2242. schema.Write(s2);
  2243. if ((s1.Length == s2.Length)) {
  2244. s1.Position = 0;
  2245. s2.Position = 0;
  2246. for (; ((s1.Position != s1.Length)
  2247. && (s1.ReadByte() == s2.ReadByte())); ) {
  2248. ;
  2249. }
  2250. if ((s1.Position == s1.Length)) {
  2251. return type;
  2252. }
  2253. }
  2254. }
  2255. }
  2256. finally {
  2257. if ((s1 != null)) {
  2258. s1.Close();
  2259. }
  2260. if ((s2 != null)) {
  2261. s2.Close();
  2262. }
  2263. }
  2264. }
  2265. xs.Add(dsSchema);
  2266. return type;
  2267. }
  2268. }
  2269. /// <summary>
  2270. ///Represents the strongly named DataTable class.
  2271. ///</summary>
  2272. [global::System.Serializable()]
  2273. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2274. public partial class РолиDataTable : global::System.Data.TypedTableBase<РолиRow> {
  2275. private global::System.Data.DataColumn columnid_Роли;
  2276. private global::System.Data.DataColumn columnНазвание;
  2277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2279. public РолиDataTable() {
  2280. this.TableName = "Роли";
  2281. this.BeginInit();
  2282. this.InitClass();
  2283. this.EndInit();
  2284. }
  2285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2287. internal РолиDataTable(global::System.Data.DataTable table) {
  2288. this.TableName = table.TableName;
  2289. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2290. this.CaseSensitive = table.CaseSensitive;
  2291. }
  2292. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2293. this.Locale = table.Locale;
  2294. }
  2295. if ((table.Namespace != table.DataSet.Namespace)) {
  2296. this.Namespace = table.Namespace;
  2297. }
  2298. this.Prefix = table.Prefix;
  2299. this.MinimumCapacity = table.MinimumCapacity;
  2300. }
  2301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2303. protected РолиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2304. base(info, context) {
  2305. this.InitVars();
  2306. }
  2307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2309. public global::System.Data.DataColumn id_РолиColumn {
  2310. get {
  2311. return this.columnid_Роли;
  2312. }
  2313. }
  2314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2316. public global::System.Data.DataColumn НазваниеColumn {
  2317. get {
  2318. return this.columnНазвание;
  2319. }
  2320. }
  2321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2323. [global::System.ComponentModel.Browsable(false)]
  2324. public int Count {
  2325. get {
  2326. return this.Rows.Count;
  2327. }
  2328. }
  2329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2331. public РолиRow this[int index] {
  2332. get {
  2333. return ((РолиRow)(this.Rows[index]));
  2334. }
  2335. }
  2336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2337. public event РолиRowChangeEventHandler РолиRowChanging;
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2339. public event РолиRowChangeEventHandler РолиRowChanged;
  2340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2341. public event РолиRowChangeEventHandler РолиRowDeleting;
  2342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2343. public event РолиRowChangeEventHandler РолиRowDeleted;
  2344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2346. public void AddРолиRow(РолиRow row) {
  2347. this.Rows.Add(row);
  2348. }
  2349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2351. public РолиRow AddРолиRow(int id_Роли, string Название) {
  2352. РолиRow rowРолиRow = ((РолиRow)(this.NewRow()));
  2353. object[] columnValuesArray = new object[] {
  2354. id_Роли,
  2355. Название};
  2356. rowРолиRow.ItemArray = columnValuesArray;
  2357. this.Rows.Add(rowРолиRow);
  2358. return rowРолиRow;
  2359. }
  2360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2362. public РолиRow FindByid_Роли(int id_Роли) {
  2363. return ((РолиRow)(this.Rows.Find(new object[] {
  2364. id_Роли})));
  2365. }
  2366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2368. public override global::System.Data.DataTable Clone() {
  2369. РолиDataTable cln = ((РолиDataTable)(base.Clone()));
  2370. cln.InitVars();
  2371. return cln;
  2372. }
  2373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2375. protected override global::System.Data.DataTable CreateInstance() {
  2376. return new РолиDataTable();
  2377. }
  2378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2380. internal void InitVars() {
  2381. this.columnid_Роли = base.Columns["id_Роли"];
  2382. this.columnНазвание = base.Columns["Название"];
  2383. }
  2384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2386. private void InitClass() {
  2387. this.columnid_Роли = new global::System.Data.DataColumn("id_Роли", typeof(int), null, global::System.Data.MappingType.Element);
  2388. base.Columns.Add(this.columnid_Роли);
  2389. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  2390. base.Columns.Add(this.columnНазвание);
  2391. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2392. this.columnid_Роли}, true));
  2393. this.columnid_Роли.AllowDBNull = false;
  2394. this.columnid_Роли.Unique = true;
  2395. this.columnНазвание.MaxLength = 50;
  2396. }
  2397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2399. public РолиRow NewРолиRow() {
  2400. return ((РолиRow)(this.NewRow()));
  2401. }
  2402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2404. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2405. return new РолиRow(builder);
  2406. }
  2407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2409. protected override global::System.Type GetRowType() {
  2410. return typeof(РолиRow);
  2411. }
  2412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2414. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2415. base.OnRowChanged(e);
  2416. if ((this.РолиRowChanged != null)) {
  2417. this.РолиRowChanged(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2418. }
  2419. }
  2420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2422. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2423. base.OnRowChanging(e);
  2424. if ((this.РолиRowChanging != null)) {
  2425. this.РолиRowChanging(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2426. }
  2427. }
  2428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2430. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2431. base.OnRowDeleted(e);
  2432. if ((this.РолиRowDeleted != null)) {
  2433. this.РолиRowDeleted(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2434. }
  2435. }
  2436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2438. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2439. base.OnRowDeleting(e);
  2440. if ((this.РолиRowDeleting != null)) {
  2441. this.РолиRowDeleting(this, new РолиRowChangeEvent(((РолиRow)(e.Row)), e.Action));
  2442. }
  2443. }
  2444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2446. public void RemoveРолиRow(РолиRow row) {
  2447. this.Rows.Remove(row);
  2448. }
  2449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2451. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2452. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2453. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2454. CHER_KAFEDataSet ds = new CHER_KAFEDataSet();
  2455. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2456. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2457. any1.MinOccurs = new decimal(0);
  2458. any1.MaxOccurs = decimal.MaxValue;
  2459. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2460. sequence.Items.Add(any1);
  2461. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2462. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2463. any2.MinOccurs = new decimal(1);
  2464. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2465. sequence.Items.Add(any2);
  2466. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2467. attribute1.Name = "namespace";
  2468. attribute1.FixedValue = ds.Namespace;
  2469. type.Attributes.Add(attribute1);
  2470. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2471. attribute2.Name = "tableTypeName";
  2472. attribute2.FixedValue = "РолиDataTable";
  2473. type.Attributes.Add(attribute2);
  2474. type.Particle = sequence;
  2475. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2476. if (xs.Contains(dsSchema.TargetNamespace)) {
  2477. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2478. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2479. try {
  2480. global::System.Xml.Schema.XmlSchema schema = null;
  2481. dsSchema.Write(s1);
  2482. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2483. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2484. s2.SetLength(0);
  2485. schema.Write(s2);
  2486. if ((s1.Length == s2.Length)) {
  2487. s1.Position = 0;
  2488. s2.Position = 0;
  2489. for (; ((s1.Position != s1.Length)
  2490. && (s1.ReadByte() == s2.ReadByte())); ) {
  2491. ;
  2492. }
  2493. if ((s1.Position == s1.Length)) {
  2494. return type;
  2495. }
  2496. }
  2497. }
  2498. }
  2499. finally {
  2500. if ((s1 != null)) {
  2501. s1.Close();
  2502. }
  2503. if ((s2 != null)) {
  2504. s2.Close();
  2505. }
  2506. }
  2507. }
  2508. xs.Add(dsSchema);
  2509. return type;
  2510. }
  2511. }
  2512. /// <summary>
  2513. ///Represents the strongly named DataTable class.
  2514. ///</summary>
  2515. [global::System.Serializable()]
  2516. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2517. public partial class СменыDataTable : global::System.Data.TypedTableBase<СменыRow> {
  2518. private global::System.Data.DataColumn columnID_Смены;
  2519. private global::System.Data.DataColumn columnДатаCмены;
  2520. private global::System.Data.DataColumn columnid_Официанта;
  2521. private global::System.Data.DataColumn columnid_Повара;
  2522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2524. public СменыDataTable() {
  2525. this.TableName = "Смены";
  2526. this.BeginInit();
  2527. this.InitClass();
  2528. this.EndInit();
  2529. }
  2530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2532. internal СменыDataTable(global::System.Data.DataTable table) {
  2533. this.TableName = table.TableName;
  2534. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2535. this.CaseSensitive = table.CaseSensitive;
  2536. }
  2537. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2538. this.Locale = table.Locale;
  2539. }
  2540. if ((table.Namespace != table.DataSet.Namespace)) {
  2541. this.Namespace = table.Namespace;
  2542. }
  2543. this.Prefix = table.Prefix;
  2544. this.MinimumCapacity = table.MinimumCapacity;
  2545. }
  2546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2548. protected СменыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2549. base(info, context) {
  2550. this.InitVars();
  2551. }
  2552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2554. public global::System.Data.DataColumn ID_СменыColumn {
  2555. get {
  2556. return this.columnID_Смены;
  2557. }
  2558. }
  2559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2561. public global::System.Data.DataColumn ДатаCменыColumn {
  2562. get {
  2563. return this.columnДатаCмены;
  2564. }
  2565. }
  2566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2568. public global::System.Data.DataColumn id_ОфициантаColumn {
  2569. get {
  2570. return this.columnid_Официанта;
  2571. }
  2572. }
  2573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2575. public global::System.Data.DataColumn id_ПовараColumn {
  2576. get {
  2577. return this.columnid_Повара;
  2578. }
  2579. }
  2580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2582. [global::System.ComponentModel.Browsable(false)]
  2583. public int Count {
  2584. get {
  2585. return this.Rows.Count;
  2586. }
  2587. }
  2588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2590. public СменыRow this[int index] {
  2591. get {
  2592. return ((СменыRow)(this.Rows[index]));
  2593. }
  2594. }
  2595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2596. public event СменыRowChangeEventHandler СменыRowChanging;
  2597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2598. public event СменыRowChangeEventHandler СменыRowChanged;
  2599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2600. public event СменыRowChangeEventHandler СменыRowDeleting;
  2601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2602. public event СменыRowChangeEventHandler СменыRowDeleted;
  2603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2605. public void AddСменыRow(СменыRow row) {
  2606. this.Rows.Add(row);
  2607. }
  2608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2610. public СменыRow AddСменыRow(System.DateTime ДатаCмены, ОфициантыRow parentОфициантыRowByFK_Смены_Официанты1, ПовараRow parentПовараRowByFK_Смены_Повара1) {
  2611. СменыRow rowСменыRow = ((СменыRow)(this.NewRow()));
  2612. object[] columnValuesArray = new object[] {
  2613. null,
  2614. ДатаCмены,
  2615. null,
  2616. null};
  2617. if ((parentОфициантыRowByFK_Смены_Официанты1 != null)) {
  2618. columnValuesArray[2] = parentОфициантыRowByFK_Смены_Официанты1[0];
  2619. }
  2620. if ((parentПовараRowByFK_Смены_Повара1 != null)) {
  2621. columnValuesArray[3] = parentПовараRowByFK_Смены_Повара1[0];
  2622. }
  2623. rowСменыRow.ItemArray = columnValuesArray;
  2624. this.Rows.Add(rowСменыRow);
  2625. return rowСменыRow;
  2626. }
  2627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2629. public СменыRow FindByID_Смены(int ID_Смены) {
  2630. return ((СменыRow)(this.Rows.Find(new object[] {
  2631. ID_Смены})));
  2632. }
  2633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2635. public override global::System.Data.DataTable Clone() {
  2636. СменыDataTable cln = ((СменыDataTable)(base.Clone()));
  2637. cln.InitVars();
  2638. return cln;
  2639. }
  2640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2642. protected override global::System.Data.DataTable CreateInstance() {
  2643. return new СменыDataTable();
  2644. }
  2645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2647. internal void InitVars() {
  2648. this.columnID_Смены = base.Columns["ID_Смены"];
  2649. this.columnДатаCмены = base.Columns["ДатаCмены"];
  2650. this.columnid_Официанта = base.Columns["id_Официанта"];
  2651. this.columnid_Повара = base.Columns["id_Повара"];
  2652. }
  2653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2655. private void InitClass() {
  2656. this.columnID_Смены = new global::System.Data.DataColumn("ID_Смены", typeof(int), null, global::System.Data.MappingType.Element);
  2657. base.Columns.Add(this.columnID_Смены);
  2658. this.columnДатаCмены = new global::System.Data.DataColumn("ДатаCмены", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2659. base.Columns.Add(this.columnДатаCмены);
  2660. this.columnid_Официанта = new global::System.Data.DataColumn("id_Официанта", typeof(int), null, global::System.Data.MappingType.Element);
  2661. base.Columns.Add(this.columnid_Официанта);
  2662. this.columnid_Повара = new global::System.Data.DataColumn("id_Повара", typeof(int), null, global::System.Data.MappingType.Element);
  2663. base.Columns.Add(this.columnid_Повара);
  2664. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2665. this.columnID_Смены}, true));
  2666. this.columnID_Смены.AutoIncrement = true;
  2667. this.columnID_Смены.AutoIncrementSeed = -1;
  2668. this.columnID_Смены.AutoIncrementStep = -1;
  2669. this.columnID_Смены.AllowDBNull = false;
  2670. this.columnID_Смены.ReadOnly = true;
  2671. this.columnID_Смены.Unique = true;
  2672. }
  2673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2675. public СменыRow NewСменыRow() {
  2676. return ((СменыRow)(this.NewRow()));
  2677. }
  2678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2680. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2681. return new СменыRow(builder);
  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.Type GetRowType() {
  2686. return typeof(СменыRow);
  2687. }
  2688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2690. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2691. base.OnRowChanged(e);
  2692. if ((this.СменыRowChanged != null)) {
  2693. this.СменыRowChanged(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  2694. }
  2695. }
  2696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2698. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2699. base.OnRowChanging(e);
  2700. if ((this.СменыRowChanging != null)) {
  2701. this.СменыRowChanging(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  2702. }
  2703. }
  2704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2706. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2707. base.OnRowDeleted(e);
  2708. if ((this.СменыRowDeleted != null)) {
  2709. this.СменыRowDeleted(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  2710. }
  2711. }
  2712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2714. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2715. base.OnRowDeleting(e);
  2716. if ((this.СменыRowDeleting != null)) {
  2717. this.СменыRowDeleting(this, new СменыRowChangeEvent(((СменыRow)(e.Row)), e.Action));
  2718. }
  2719. }
  2720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2722. public void RemoveСменыRow(СменыRow row) {
  2723. this.Rows.Remove(row);
  2724. }
  2725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2727. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2728. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2729. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2730. CHER_KAFEDataSet ds = new CHER_KAFEDataSet();
  2731. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2732. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2733. any1.MinOccurs = new decimal(0);
  2734. any1.MaxOccurs = decimal.MaxValue;
  2735. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2736. sequence.Items.Add(any1);
  2737. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2738. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2739. any2.MinOccurs = new decimal(1);
  2740. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2741. sequence.Items.Add(any2);
  2742. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2743. attribute1.Name = "namespace";
  2744. attribute1.FixedValue = ds.Namespace;
  2745. type.Attributes.Add(attribute1);
  2746. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2747. attribute2.Name = "tableTypeName";
  2748. attribute2.FixedValue = "СменыDataTable";
  2749. type.Attributes.Add(attribute2);
  2750. type.Particle = sequence;
  2751. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2752. if (xs.Contains(dsSchema.TargetNamespace)) {
  2753. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2754. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2755. try {
  2756. global::System.Xml.Schema.XmlSchema schema = null;
  2757. dsSchema.Write(s1);
  2758. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2759. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2760. s2.SetLength(0);
  2761. schema.Write(s2);
  2762. if ((s1.Length == s2.Length)) {
  2763. s1.Position = 0;
  2764. s2.Position = 0;
  2765. for (; ((s1.Position != s1.Length)
  2766. && (s1.ReadByte() == s2.ReadByte())); ) {
  2767. ;
  2768. }
  2769. if ((s1.Position == s1.Length)) {
  2770. return type;
  2771. }
  2772. }
  2773. }
  2774. }
  2775. finally {
  2776. if ((s1 != null)) {
  2777. s1.Close();
  2778. }
  2779. if ((s2 != null)) {
  2780. s2.Close();
  2781. }
  2782. }
  2783. }
  2784. xs.Add(dsSchema);
  2785. return type;
  2786. }
  2787. }
  2788. /// <summary>
  2789. ///Represents the strongly named DataTable class.
  2790. ///</summary>
  2791. [global::System.Serializable()]
  2792. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2793. public partial class СтатусЗаказаDataTable : global::System.Data.TypedTableBase<СтатусЗаказаRow> {
  2794. private global::System.Data.DataColumn columnID_СтатусаЗаказа;
  2795. private global::System.Data.DataColumn columnНазваниеСтатусаЗаказа;
  2796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2798. public СтатусЗаказаDataTable() {
  2799. this.TableName = "СтатусЗаказа";
  2800. this.BeginInit();
  2801. this.InitClass();
  2802. this.EndInit();
  2803. }
  2804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2806. internal СтатусЗаказаDataTable(global::System.Data.DataTable table) {
  2807. this.TableName = table.TableName;
  2808. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2809. this.CaseSensitive = table.CaseSensitive;
  2810. }
  2811. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2812. this.Locale = table.Locale;
  2813. }
  2814. if ((table.Namespace != table.DataSet.Namespace)) {
  2815. this.Namespace = table.Namespace;
  2816. }
  2817. this.Prefix = table.Prefix;
  2818. this.MinimumCapacity = table.MinimumCapacity;
  2819. }
  2820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2822. protected СтатусЗаказаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2823. base(info, context) {
  2824. this.InitVars();
  2825. }
  2826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2828. public global::System.Data.DataColumn ID_СтатусаЗаказаColumn {
  2829. get {
  2830. return this.columnID_СтатусаЗаказа;
  2831. }
  2832. }
  2833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2835. public global::System.Data.DataColumn НазваниеСтатусаЗаказаColumn {
  2836. get {
  2837. return this.columnНазваниеСтатусаЗаказа;
  2838. }
  2839. }
  2840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2842. [global::System.ComponentModel.Browsable(false)]
  2843. public int Count {
  2844. get {
  2845. return this.Rows.Count;
  2846. }
  2847. }
  2848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2850. public СтатусЗаказаRow this[int index] {
  2851. get {
  2852. return ((СтатусЗаказаRow)(this.Rows[index]));
  2853. }
  2854. }
  2855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2856. public event СтатусЗаказаRowChangeEventHandler СтатусЗаказаRowChanging;
  2857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2858. public event СтатусЗаказаRowChangeEventHandler СтатусЗаказаRowChanged;
  2859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2860. public event СтатусЗаказаRowChangeEventHandler СтатусЗаказаRowDeleting;
  2861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2862. public event СтатусЗаказаRowChangeEventHandler СтатусЗаказаRowDeleted;
  2863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2865. public void AddСтатусЗаказаRow(СтатусЗаказаRow row) {
  2866. this.Rows.Add(row);
  2867. }
  2868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2870. public СтатусЗаказаRow AddСтатусЗаказаRow(string НазваниеСтатусаЗаказа) {
  2871. СтатусЗаказаRow rowСтатусЗаказаRow = ((СтатусЗаказаRow)(this.NewRow()));
  2872. object[] columnValuesArray = new object[] {
  2873. null,
  2874. НазваниеСтатусаЗаказа};
  2875. rowСтатусЗаказаRow.ItemArray = columnValuesArray;
  2876. this.Rows.Add(rowСтатусЗаказаRow);
  2877. return rowСтатусЗаказаRow;
  2878. }
  2879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2881. public СтатусЗаказаRow FindByID_СтатусаЗаказа(int ID_СтатусаЗаказа) {
  2882. return ((СтатусЗаказаRow)(this.Rows.Find(new object[] {
  2883. ID_СтатусаЗаказа})));
  2884. }
  2885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2887. public override global::System.Data.DataTable Clone() {
  2888. СтатусЗаказаDataTable cln = ((СтатусЗаказаDataTable)(base.Clone()));
  2889. cln.InitVars();
  2890. return cln;
  2891. }
  2892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2894. protected override global::System.Data.DataTable CreateInstance() {
  2895. return new СтатусЗаказаDataTable();
  2896. }
  2897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2899. internal void InitVars() {
  2900. this.columnID_СтатусаЗаказа = base.Columns["ID_СтатусаЗаказа"];
  2901. this.columnНазваниеСтатусаЗаказа = base.Columns["НазваниеСтатусаЗаказа"];
  2902. }
  2903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2905. private void InitClass() {
  2906. this.columnID_СтатусаЗаказа = new global::System.Data.DataColumn("ID_СтатусаЗаказа", typeof(int), null, global::System.Data.MappingType.Element);
  2907. base.Columns.Add(this.columnID_СтатусаЗаказа);
  2908. this.columnНазваниеСтатусаЗаказа = new global::System.Data.DataColumn("НазваниеСтатусаЗаказа", typeof(string), null, global::System.Data.MappingType.Element);
  2909. base.Columns.Add(this.columnНазваниеСтатусаЗаказа);
  2910. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2911. this.columnID_СтатусаЗаказа}, true));
  2912. this.columnID_СтатусаЗаказа.AutoIncrement = true;
  2913. this.columnID_СтатусаЗаказа.AutoIncrementSeed = -1;
  2914. this.columnID_СтатусаЗаказа.AutoIncrementStep = -1;
  2915. this.columnID_СтатусаЗаказа.AllowDBNull = false;
  2916. this.columnID_СтатусаЗаказа.ReadOnly = true;
  2917. this.columnID_СтатусаЗаказа.Unique = true;
  2918. this.columnНазваниеСтатусаЗаказа.MaxLength = 10;
  2919. }
  2920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2922. public СтатусЗаказаRow NewСтатусЗаказаRow() {
  2923. return ((СтатусЗаказаRow)(this.NewRow()));
  2924. }
  2925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2927. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2928. return new СтатусЗаказаRow(builder);
  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.Type GetRowType() {
  2933. return typeof(СтатусЗаказаRow);
  2934. }
  2935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2937. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2938. base.OnRowChanged(e);
  2939. if ((this.СтатусЗаказаRowChanged != null)) {
  2940. this.СтатусЗаказаRowChanged(this, new СтатусЗаказаRowChangeEvent(((СтатусЗаказаRow)(e.Row)), e.Action));
  2941. }
  2942. }
  2943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2945. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2946. base.OnRowChanging(e);
  2947. if ((this.СтатусЗаказаRowChanging != null)) {
  2948. this.СтатусЗаказаRowChanging(this, new СтатусЗаказаRowChangeEvent(((СтатусЗаказаRow)(e.Row)), e.Action));
  2949. }
  2950. }
  2951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2953. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2954. base.OnRowDeleted(e);
  2955. if ((this.СтатусЗаказаRowDeleted != null)) {
  2956. this.СтатусЗаказаRowDeleted(this, new СтатусЗаказаRowChangeEvent(((СтатусЗаказаRow)(e.Row)), e.Action));
  2957. }
  2958. }
  2959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2961. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2962. base.OnRowDeleting(e);
  2963. if ((this.СтатусЗаказаRowDeleting != null)) {
  2964. this.СтатусЗаказаRowDeleting(this, new СтатусЗаказаRowChangeEvent(((СтатусЗаказаRow)(e.Row)), e.Action));
  2965. }
  2966. }
  2967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2969. public void RemoveСтатусЗаказаRow(СтатусЗаказаRow row) {
  2970. this.Rows.Remove(row);
  2971. }
  2972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2974. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2975. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2976. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2977. CHER_KAFEDataSet ds = new CHER_KAFEDataSet();
  2978. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2979. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2980. any1.MinOccurs = new decimal(0);
  2981. any1.MaxOccurs = decimal.MaxValue;
  2982. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2983. sequence.Items.Add(any1);
  2984. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2985. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2986. any2.MinOccurs = new decimal(1);
  2987. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2988. sequence.Items.Add(any2);
  2989. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2990. attribute1.Name = "namespace";
  2991. attribute1.FixedValue = ds.Namespace;
  2992. type.Attributes.Add(attribute1);
  2993. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2994. attribute2.Name = "tableTypeName";
  2995. attribute2.FixedValue = "СтатусЗаказаDataTable";
  2996. type.Attributes.Add(attribute2);
  2997. type.Particle = sequence;
  2998. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2999. if (xs.Contains(dsSchema.TargetNamespace)) {
  3000. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3001. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3002. try {
  3003. global::System.Xml.Schema.XmlSchema schema = null;
  3004. dsSchema.Write(s1);
  3005. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3006. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3007. s2.SetLength(0);
  3008. schema.Write(s2);
  3009. if ((s1.Length == s2.Length)) {
  3010. s1.Position = 0;
  3011. s2.Position = 0;
  3012. for (; ((s1.Position != s1.Length)
  3013. && (s1.ReadByte() == s2.ReadByte())); ) {
  3014. ;
  3015. }
  3016. if ((s1.Position == s1.Length)) {
  3017. return type;
  3018. }
  3019. }
  3020. }
  3021. }
  3022. finally {
  3023. if ((s1 != null)) {
  3024. s1.Close();
  3025. }
  3026. if ((s2 != null)) {
  3027. s2.Close();
  3028. }
  3029. }
  3030. }
  3031. xs.Add(dsSchema);
  3032. return type;
  3033. }
  3034. }
  3035. /// <summary>
  3036. ///Represents the strongly named DataTable class.
  3037. ///</summary>
  3038. [global::System.Serializable()]
  3039. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3040. public partial class СтатусСотрудникаDataTable : global::System.Data.TypedTableBase<СтатусСотрудникаRow> {
  3041. private global::System.Data.DataColumn columnID_Статуса;
  3042. private global::System.Data.DataColumn columnНазваниеСтатусаСотрудника;
  3043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3045. public СтатусСотрудникаDataTable() {
  3046. this.TableName = "СтатусСотрудника";
  3047. this.BeginInit();
  3048. this.InitClass();
  3049. this.EndInit();
  3050. }
  3051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3053. internal СтатусСотрудникаDataTable(global::System.Data.DataTable table) {
  3054. this.TableName = table.TableName;
  3055. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3056. this.CaseSensitive = table.CaseSensitive;
  3057. }
  3058. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3059. this.Locale = table.Locale;
  3060. }
  3061. if ((table.Namespace != table.DataSet.Namespace)) {
  3062. this.Namespace = table.Namespace;
  3063. }
  3064. this.Prefix = table.Prefix;
  3065. this.MinimumCapacity = table.MinimumCapacity;
  3066. }
  3067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3069. protected СтатусСотрудникаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3070. base(info, context) {
  3071. this.InitVars();
  3072. }
  3073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3075. public global::System.Data.DataColumn ID_СтатусаColumn {
  3076. get {
  3077. return this.columnID_Статуса;
  3078. }
  3079. }
  3080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3082. public global::System.Data.DataColumn НазваниеСтатусаСотрудникаColumn {
  3083. get {
  3084. return this.columnНазваниеСтатусаСотрудника;
  3085. }
  3086. }
  3087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3089. [global::System.ComponentModel.Browsable(false)]
  3090. public int Count {
  3091. get {
  3092. return this.Rows.Count;
  3093. }
  3094. }
  3095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3097. public СтатусСотрудникаRow this[int index] {
  3098. get {
  3099. return ((СтатусСотрудникаRow)(this.Rows[index]));
  3100. }
  3101. }
  3102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3103. public event СтатусСотрудникаRowChangeEventHandler СтатусСотрудникаRowChanging;
  3104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3105. public event СтатусСотрудникаRowChangeEventHandler СтатусСотрудникаRowChanged;
  3106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3107. public event СтатусСотрудникаRowChangeEventHandler СтатусСотрудникаRowDeleting;
  3108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3109. public event СтатусСотрудникаRowChangeEventHandler СтатусСотрудникаRowDeleted;
  3110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3112. public void AddСтатусСотрудникаRow(СтатусСотрудникаRow row) {
  3113. this.Rows.Add(row);
  3114. }
  3115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3117. public СтатусСотрудникаRow AddСтатусСотрудникаRow(int ID_Статуса, string НазваниеСтатусаСотрудника) {
  3118. СтатусСотрудникаRow rowСтатусСотрудникаRow = ((СтатусСотрудникаRow)(this.NewRow()));
  3119. object[] columnValuesArray = new object[] {
  3120. ID_Статуса,
  3121. НазваниеСтатусаСотрудника};
  3122. rowСтатусСотрудникаRow.ItemArray = columnValuesArray;
  3123. this.Rows.Add(rowСтатусСотрудникаRow);
  3124. return rowСтатусСотрудникаRow;
  3125. }
  3126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3128. public СтатусСотрудникаRow FindByID_Статуса(int ID_Статуса) {
  3129. return ((СтатусСотрудникаRow)(this.Rows.Find(new object[] {
  3130. ID_Статуса})));
  3131. }
  3132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3134. public override global::System.Data.DataTable Clone() {
  3135. СтатусСотрудникаDataTable cln = ((СтатусСотрудникаDataTable)(base.Clone()));
  3136. cln.InitVars();
  3137. return cln;
  3138. }
  3139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3141. protected override global::System.Data.DataTable CreateInstance() {
  3142. return new СтатусСотрудникаDataTable();
  3143. }
  3144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3146. internal void InitVars() {
  3147. this.columnID_Статуса = base.Columns["ID_Статуса"];
  3148. this.columnНазваниеСтатусаСотрудника = base.Columns["НазваниеСтатусаСотрудника"];
  3149. }
  3150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3152. private void InitClass() {
  3153. this.columnID_Статуса = new global::System.Data.DataColumn("ID_Статуса", typeof(int), null, global::System.Data.MappingType.Element);
  3154. base.Columns.Add(this.columnID_Статуса);
  3155. this.columnНазваниеСтатусаСотрудника = new global::System.Data.DataColumn("НазваниеСтатусаСотрудника", typeof(string), null, global::System.Data.MappingType.Element);
  3156. base.Columns.Add(this.columnНазваниеСтатусаСотрудника);
  3157. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3158. this.columnID_Статуса}, true));
  3159. this.columnID_Статуса.AllowDBNull = false;
  3160. this.columnID_Статуса.Unique = true;
  3161. this.columnНазваниеСтатусаСотрудника.MaxLength = 50;
  3162. }
  3163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3165. public СтатусСотрудникаRow NewСтатусСотрудникаRow() {
  3166. return ((СтатусСотрудникаRow)(this.NewRow()));
  3167. }
  3168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3170. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3171. return new СтатусСотрудникаRow(builder);
  3172. }
  3173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3175. protected override global::System.Type GetRowType() {
  3176. return typeof(СтатусСотрудникаRow);
  3177. }
  3178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3180. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3181. base.OnRowChanged(e);
  3182. if ((this.СтатусСотрудникаRowChanged != null)) {
  3183. this.СтатусСотрудникаRowChanged(this, new СтатусСотрудникаRowChangeEvent(((СтатусСотрудникаRow)(e.Row)), e.Action));
  3184. }
  3185. }
  3186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3188. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3189. base.OnRowChanging(e);
  3190. if ((this.СтатусСотрудникаRowChanging != null)) {
  3191. this.СтатусСотрудникаRowChanging(this, new СтатусСотрудникаRowChangeEvent(((СтатусСотрудникаRow)(e.Row)), e.Action));
  3192. }
  3193. }
  3194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3196. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3197. base.OnRowDeleted(e);
  3198. if ((this.СтатусСотрудникаRowDeleted != null)) {
  3199. this.СтатусСотрудникаRowDeleted(this, new СтатусСотрудникаRowChangeEvent(((СтатусСотрудникаRow)(e.Row)), e.Action));
  3200. }
  3201. }
  3202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3204. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3205. base.OnRowDeleting(e);
  3206. if ((this.СтатусСотрудникаRowDeleting != null)) {
  3207. this.СтатусСотрудникаRowDeleting(this, new СтатусСотрудникаRowChangeEvent(((СтатусСотрудникаRow)(e.Row)), e.Action));
  3208. }
  3209. }
  3210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3212. public void RemoveСтатусСотрудникаRow(СтатусСотрудникаRow row) {
  3213. this.Rows.Remove(row);
  3214. }
  3215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3217. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3218. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3219. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3220. CHER_KAFEDataSet ds = new CHER_KAFEDataSet();
  3221. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3222. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3223. any1.MinOccurs = new decimal(0);
  3224. any1.MaxOccurs = decimal.MaxValue;
  3225. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3226. sequence.Items.Add(any1);
  3227. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3228. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3229. any2.MinOccurs = new decimal(1);
  3230. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3231. sequence.Items.Add(any2);
  3232. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3233. attribute1.Name = "namespace";
  3234. attribute1.FixedValue = ds.Namespace;
  3235. type.Attributes.Add(attribute1);
  3236. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3237. attribute2.Name = "tableTypeName";
  3238. attribute2.FixedValue = "СтатусСотрудникаDataTable";
  3239. type.Attributes.Add(attribute2);
  3240. type.Particle = sequence;
  3241. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3242. if (xs.Contains(dsSchema.TargetNamespace)) {
  3243. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3244. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3245. try {
  3246. global::System.Xml.Schema.XmlSchema schema = null;
  3247. dsSchema.Write(s1);
  3248. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3249. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3250. s2.SetLength(0);
  3251. schema.Write(s2);
  3252. if ((s1.Length == s2.Length)) {
  3253. s1.Position = 0;
  3254. s2.Position = 0;
  3255. for (; ((s1.Position != s1.Length)
  3256. && (s1.ReadByte() == s2.ReadByte())); ) {
  3257. ;
  3258. }
  3259. if ((s1.Position == s1.Length)) {
  3260. return type;
  3261. }
  3262. }
  3263. }
  3264. }
  3265. finally {
  3266. if ((s1 != null)) {
  3267. s1.Close();
  3268. }
  3269. if ((s2 != null)) {
  3270. s2.Close();
  3271. }
  3272. }
  3273. }
  3274. xs.Add(dsSchema);
  3275. return type;
  3276. }
  3277. }
  3278. /// <summary>
  3279. ///Represents the strongly named DataTable class.
  3280. ///</summary>
  3281. [global::System.Serializable()]
  3282. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3283. public partial class СтоликиDataTable : global::System.Data.TypedTableBase<СтоликиRow> {
  3284. private global::System.Data.DataColumn columnID_Столика;
  3285. private global::System.Data.DataColumn columnНазвание;
  3286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3288. public СтоликиDataTable() {
  3289. this.TableName = "Столики";
  3290. this.BeginInit();
  3291. this.InitClass();
  3292. this.EndInit();
  3293. }
  3294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3296. internal СтоликиDataTable(global::System.Data.DataTable table) {
  3297. this.TableName = table.TableName;
  3298. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3299. this.CaseSensitive = table.CaseSensitive;
  3300. }
  3301. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3302. this.Locale = table.Locale;
  3303. }
  3304. if ((table.Namespace != table.DataSet.Namespace)) {
  3305. this.Namespace = table.Namespace;
  3306. }
  3307. this.Prefix = table.Prefix;
  3308. this.MinimumCapacity = table.MinimumCapacity;
  3309. }
  3310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3312. protected СтоликиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3313. base(info, context) {
  3314. this.InitVars();
  3315. }
  3316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3318. public global::System.Data.DataColumn ID_СтоликаColumn {
  3319. get {
  3320. return this.columnID_Столика;
  3321. }
  3322. }
  3323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3325. public global::System.Data.DataColumn НазваниеColumn {
  3326. get {
  3327. return this.columnНазвание;
  3328. }
  3329. }
  3330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3332. [global::System.ComponentModel.Browsable(false)]
  3333. public int Count {
  3334. get {
  3335. return this.Rows.Count;
  3336. }
  3337. }
  3338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3340. public СтоликиRow this[int index] {
  3341. get {
  3342. return ((СтоликиRow)(this.Rows[index]));
  3343. }
  3344. }
  3345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3346. public event СтоликиRowChangeEventHandler СтоликиRowChanging;
  3347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3348. public event СтоликиRowChangeEventHandler СтоликиRowChanged;
  3349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3350. public event СтоликиRowChangeEventHandler СтоликиRowDeleting;
  3351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3352. public event СтоликиRowChangeEventHandler СтоликиRowDeleted;
  3353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3355. public void AddСтоликиRow(СтоликиRow row) {
  3356. this.Rows.Add(row);
  3357. }
  3358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3360. public СтоликиRow AddСтоликиRow(int ID_Столика, string Название) {
  3361. СтоликиRow rowСтоликиRow = ((СтоликиRow)(this.NewRow()));
  3362. object[] columnValuesArray = new object[] {
  3363. ID_Столика,
  3364. Название};
  3365. rowСтоликиRow.ItemArray = columnValuesArray;
  3366. this.Rows.Add(rowСтоликиRow);
  3367. return rowСтоликиRow;
  3368. }
  3369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3371. public СтоликиRow FindByID_Столика(int ID_Столика) {
  3372. return ((СтоликиRow)(this.Rows.Find(new object[] {
  3373. ID_Столика})));
  3374. }
  3375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3377. public override global::System.Data.DataTable Clone() {
  3378. СтоликиDataTable cln = ((СтоликиDataTable)(base.Clone()));
  3379. cln.InitVars();
  3380. return cln;
  3381. }
  3382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3384. protected override global::System.Data.DataTable CreateInstance() {
  3385. return new СтоликиDataTable();
  3386. }
  3387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3389. internal void InitVars() {
  3390. this.columnID_Столика = base.Columns["ID_Столика"];
  3391. this.columnНазвание = base.Columns["Название"];
  3392. }
  3393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3395. private void InitClass() {
  3396. this.columnID_Столика = new global::System.Data.DataColumn("ID_Столика", typeof(int), null, global::System.Data.MappingType.Element);
  3397. base.Columns.Add(this.columnID_Столика);
  3398. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  3399. base.Columns.Add(this.columnНазвание);
  3400. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3401. this.columnID_Столика}, true));
  3402. this.columnID_Столика.AllowDBNull = false;
  3403. this.columnID_Столика.Unique = true;
  3404. this.columnНазвание.MaxLength = 50;
  3405. }
  3406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3408. public СтоликиRow NewСтоликиRow() {
  3409. return ((СтоликиRow)(this.NewRow()));
  3410. }
  3411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3413. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3414. return new СтоликиRow(builder);
  3415. }
  3416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3418. protected override global::System.Type GetRowType() {
  3419. return typeof(СтоликиRow);
  3420. }
  3421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3423. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3424. base.OnRowChanged(e);
  3425. if ((this.СтоликиRowChanged != null)) {
  3426. this.СтоликиRowChanged(this, new СтоликиRowChangeEvent(((СтоликиRow)(e.Row)), e.Action));
  3427. }
  3428. }
  3429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3431. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3432. base.OnRowChanging(e);
  3433. if ((this.СтоликиRowChanging != null)) {
  3434. this.СтоликиRowChanging(this, new СтоликиRowChangeEvent(((СтоликиRow)(e.Row)), e.Action));
  3435. }
  3436. }
  3437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3439. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3440. base.OnRowDeleted(e);
  3441. if ((this.СтоликиRowDeleted != null)) {
  3442. this.СтоликиRowDeleted(this, new СтоликиRowChangeEvent(((СтоликиRow)(e.Row)), e.Action));
  3443. }
  3444. }
  3445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3447. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3448. base.OnRowDeleting(e);
  3449. if ((this.СтоликиRowDeleting != null)) {
  3450. this.СтоликиRowDeleting(this, new СтоликиRowChangeEvent(((СтоликиRow)(e.Row)), e.Action));
  3451. }
  3452. }
  3453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3455. public void RemoveСтоликиRow(СтоликиRow row) {
  3456. this.Rows.Remove(row);
  3457. }
  3458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3460. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3461. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3462. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3463. CHER_KAFEDataSet ds = new CHER_KAFEDataSet();
  3464. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3465. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3466. any1.MinOccurs = new decimal(0);
  3467. any1.MaxOccurs = decimal.MaxValue;
  3468. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3469. sequence.Items.Add(any1);
  3470. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3471. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3472. any2.MinOccurs = new decimal(1);
  3473. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3474. sequence.Items.Add(any2);
  3475. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3476. attribute1.Name = "namespace";
  3477. attribute1.FixedValue = ds.Namespace;
  3478. type.Attributes.Add(attribute1);
  3479. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3480. attribute2.Name = "tableTypeName";
  3481. attribute2.FixedValue = "СтоликиDataTable";
  3482. type.Attributes.Add(attribute2);
  3483. type.Particle = sequence;
  3484. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3485. if (xs.Contains(dsSchema.TargetNamespace)) {
  3486. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3487. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3488. try {
  3489. global::System.Xml.Schema.XmlSchema schema = null;
  3490. dsSchema.Write(s1);
  3491. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3492. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3493. s2.SetLength(0);
  3494. schema.Write(s2);
  3495. if ((s1.Length == s2.Length)) {
  3496. s1.Position = 0;
  3497. s2.Position = 0;
  3498. for (; ((s1.Position != s1.Length)
  3499. && (s1.ReadByte() == s2.ReadByte())); ) {
  3500. ;
  3501. }
  3502. if ((s1.Position == s1.Length)) {
  3503. return type;
  3504. }
  3505. }
  3506. }
  3507. }
  3508. finally {
  3509. if ((s1 != null)) {
  3510. s1.Close();
  3511. }
  3512. if ((s2 != null)) {
  3513. s2.Close();
  3514. }
  3515. }
  3516. }
  3517. xs.Add(dsSchema);
  3518. return type;
  3519. }
  3520. }
  3521. /// <summary>
  3522. ///Represents strongly named DataRow class.
  3523. ///</summary>
  3524. public partial class БлюдаНапиткиRow : global::System.Data.DataRow {
  3525. private БлюдаНапиткиDataTable tableБлюдаНапитки;
  3526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3528. internal БлюдаНапиткиRow(global::System.Data.DataRowBuilder rb) :
  3529. base(rb) {
  3530. this.tableБлюдаНапитки = ((БлюдаНапиткиDataTable)(this.Table));
  3531. }
  3532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3534. public int ID_БлюдаНапитка {
  3535. get {
  3536. return ((int)(this[this.tableБлюдаНапитки.ID_БлюдаНапиткаColumn]));
  3537. }
  3538. set {
  3539. this[this.tableБлюдаНапитки.ID_БлюдаНапиткаColumn] = value;
  3540. }
  3541. }
  3542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3544. public string Название {
  3545. get {
  3546. try {
  3547. return ((string)(this[this.tableБлюдаНапитки.НазваниеColumn]));
  3548. }
  3549. catch (global::System.InvalidCastException e) {
  3550. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'БлюдаНапитки\' равно DBNull.", e);
  3551. }
  3552. }
  3553. set {
  3554. this[this.tableБлюдаНапитки.НазваниеColumn] = value;
  3555. }
  3556. }
  3557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3559. public int Цена {
  3560. get {
  3561. try {
  3562. return ((int)(this[this.tableБлюдаНапитки.ЦенаColumn]));
  3563. }
  3564. catch (global::System.InvalidCastException e) {
  3565. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'БлюдаНапитки\' равно DBNull.", e);
  3566. }
  3567. }
  3568. set {
  3569. this[this.tableБлюдаНапитки.ЦенаColumn] = value;
  3570. }
  3571. }
  3572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3574. public bool IsНазваниеNull() {
  3575. return this.IsNull(this.tableБлюдаНапитки.НазваниеColumn);
  3576. }
  3577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3579. public void SetНазваниеNull() {
  3580. this[this.tableБлюдаНапитки.НазваниеColumn] = global::System.Convert.DBNull;
  3581. }
  3582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3584. public bool IsЦенаNull() {
  3585. return this.IsNull(this.tableБлюдаНапитки.ЦенаColumn);
  3586. }
  3587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3589. public void SetЦенаNull() {
  3590. this[this.tableБлюдаНапитки.ЦенаColumn] = global::System.Convert.DBNull;
  3591. }
  3592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3594. public Заказанные_блюдаRow[] GetЗаказанные_блюдаRows() {
  3595. if ((this.Table.ChildRelations["FK_Заказанные блюда_БлюдаНапитки"] == null)) {
  3596. return new Заказанные_блюдаRow[0];
  3597. }
  3598. else {
  3599. return ((Заказанные_блюдаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказанные блюда_БлюдаНапитки"])));
  3600. }
  3601. }
  3602. }
  3603. /// <summary>
  3604. ///Represents strongly named DataRow class.
  3605. ///</summary>
  3606. public partial class Заказанные_блюдаRow : global::System.Data.DataRow {
  3607. private Заказанные_блюдаDataTable tableЗаказанные_блюда;
  3608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3610. internal Заказанные_блюдаRow(global::System.Data.DataRowBuilder rb) :
  3611. base(rb) {
  3612. this.tableЗаказанные_блюда = ((Заказанные_блюдаDataTable)(this.Table));
  3613. }
  3614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3616. public int ID_Заказа {
  3617. get {
  3618. return ((int)(this[this.tableЗаказанные_блюда.ID_ЗаказаColumn]));
  3619. }
  3620. set {
  3621. this[this.tableЗаказанные_блюда.ID_ЗаказаColumn] = value;
  3622. }
  3623. }
  3624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3626. public int ID_Блюда {
  3627. get {
  3628. return ((int)(this[this.tableЗаказанные_блюда.ID_БлюдаColumn]));
  3629. }
  3630. set {
  3631. this[this.tableЗаказанные_блюда.ID_БлюдаColumn] = value;
  3632. }
  3633. }
  3634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3636. public int Количество {
  3637. get {
  3638. try {
  3639. return ((int)(this[this.tableЗаказанные_блюда.КоличествоColumn]));
  3640. }
  3641. catch (global::System.InvalidCastException e) {
  3642. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Заказанные блюда\' равно DBNull.", e);
  3643. }
  3644. }
  3645. set {
  3646. this[this.tableЗаказанные_блюда.КоличествоColumn] = value;
  3647. }
  3648. }
  3649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3651. public БлюдаНапиткиRow БлюдаНапиткиRow {
  3652. get {
  3653. return ((БлюдаНапиткиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказанные блюда_БлюдаНапитки"])));
  3654. }
  3655. set {
  3656. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказанные блюда_БлюдаНапитки"]);
  3657. }
  3658. }
  3659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3661. public ЗаказыRow ЗаказыRow {
  3662. get {
  3663. return ((ЗаказыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказанные блюда_Заказы1"])));
  3664. }
  3665. set {
  3666. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказанные блюда_Заказы1"]);
  3667. }
  3668. }
  3669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3671. public bool IsКоличествоNull() {
  3672. return this.IsNull(this.tableЗаказанные_блюда.КоличествоColumn);
  3673. }
  3674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3676. public void SetКоличествоNull() {
  3677. this[this.tableЗаказанные_блюда.КоличествоColumn] = global::System.Convert.DBNull;
  3678. }
  3679. }
  3680. /// <summary>
  3681. ///Represents strongly named DataRow class.
  3682. ///</summary>
  3683. public partial class ЗаказыRow : global::System.Data.DataRow {
  3684. private ЗаказыDataTable tableЗаказы;
  3685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3687. internal ЗаказыRow(global::System.Data.DataRowBuilder rb) :
  3688. base(rb) {
  3689. this.tableЗаказы = ((ЗаказыDataTable)(this.Table));
  3690. }
  3691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3693. public int ID_Заказа {
  3694. get {
  3695. return ((int)(this[this.tableЗаказы.ID_ЗаказаColumn]));
  3696. }
  3697. set {
  3698. this[this.tableЗаказы.ID_ЗаказаColumn] = value;
  3699. }
  3700. }
  3701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3703. public int ID_Столика {
  3704. get {
  3705. try {
  3706. return ((int)(this[this.tableЗаказы.ID_СтоликаColumn]));
  3707. }
  3708. catch (global::System.InvalidCastException e) {
  3709. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Столика\' в таблице \'Заказы\' равно DBNull.", e);
  3710. }
  3711. }
  3712. set {
  3713. this[this.tableЗаказы.ID_СтоликаColumn] = value;
  3714. }
  3715. }
  3716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3718. public int КоличествоКлиентов {
  3719. get {
  3720. try {
  3721. return ((int)(this[this.tableЗаказы.КоличествоКлиентовColumn]));
  3722. }
  3723. catch (global::System.InvalidCastException e) {
  3724. throw new global::System.Data.StrongTypingException("Значение для столбца \'КоличествоКлиентов\' в таблице \'Заказы\' равно DBNull.", e);
  3725. }
  3726. }
  3727. set {
  3728. this[this.tableЗаказы.КоличествоКлиентовColumn] = value;
  3729. }
  3730. }
  3731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3733. public int ID_Статуса {
  3734. get {
  3735. try {
  3736. return ((int)(this[this.tableЗаказы.ID_СтатусаColumn]));
  3737. }
  3738. catch (global::System.InvalidCastException e) {
  3739. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Статуса\' в таблице \'Заказы\' равно DBNull.", e);
  3740. }
  3741. }
  3742. set {
  3743. this[this.tableЗаказы.ID_СтатусаColumn] = value;
  3744. }
  3745. }
  3746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3748. public System.DateTime ДатаЗаказа {
  3749. get {
  3750. try {
  3751. return ((global::System.DateTime)(this[this.tableЗаказы.ДатаЗаказаColumn]));
  3752. }
  3753. catch (global::System.InvalidCastException e) {
  3754. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаЗаказа\' в таблице \'Заказы\' равно DBNull.", e);
  3755. }
  3756. }
  3757. set {
  3758. this[this.tableЗаказы.ДатаЗаказаColumn] = value;
  3759. }
  3760. }
  3761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3763. public decimal СуммаЗаказа {
  3764. get {
  3765. try {
  3766. return ((decimal)(this[this.tableЗаказы.СуммаЗаказаColumn]));
  3767. }
  3768. catch (global::System.InvalidCastException e) {
  3769. throw new global::System.Data.StrongTypingException("Значение для столбца \'СуммаЗаказа\' в таблице \'Заказы\' равно DBNull.", e);
  3770. }
  3771. }
  3772. set {
  3773. this[this.tableЗаказы.СуммаЗаказаColumn] = value;
  3774. }
  3775. }
  3776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3778. public int ID_Смены {
  3779. get {
  3780. try {
  3781. return ((int)(this[this.tableЗаказы.ID_СменыColumn]));
  3782. }
  3783. catch (global::System.InvalidCastException e) {
  3784. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Смены\' в таблице \'Заказы\' равно DBNull.", e);
  3785. }
  3786. }
  3787. set {
  3788. this[this.tableЗаказы.ID_СменыColumn] = value;
  3789. }
  3790. }
  3791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3793. public СменыRow СменыRow {
  3794. get {
  3795. return ((СменыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_Смены"])));
  3796. }
  3797. set {
  3798. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_Смены"]);
  3799. }
  3800. }
  3801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3803. public СтатусЗаказаRow СтатусЗаказаRow {
  3804. get {
  3805. return ((СтатусЗаказаRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_СтатусЗаказа"])));
  3806. }
  3807. set {
  3808. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_СтатусЗаказа"]);
  3809. }
  3810. }
  3811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3813. public СтоликиRow СтоликиRow {
  3814. get {
  3815. return ((СтоликиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_Столики"])));
  3816. }
  3817. set {
  3818. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_Столики"]);
  3819. }
  3820. }
  3821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3823. public bool IsID_СтоликаNull() {
  3824. return this.IsNull(this.tableЗаказы.ID_СтоликаColumn);
  3825. }
  3826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3828. public void SetID_СтоликаNull() {
  3829. this[this.tableЗаказы.ID_СтоликаColumn] = global::System.Convert.DBNull;
  3830. }
  3831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3833. public bool IsКоличествоКлиентовNull() {
  3834. return this.IsNull(this.tableЗаказы.КоличествоКлиентовColumn);
  3835. }
  3836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3838. public void SetКоличествоКлиентовNull() {
  3839. this[this.tableЗаказы.КоличествоКлиентовColumn] = global::System.Convert.DBNull;
  3840. }
  3841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3843. public bool IsID_СтатусаNull() {
  3844. return this.IsNull(this.tableЗаказы.ID_СтатусаColumn);
  3845. }
  3846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3848. public void SetID_СтатусаNull() {
  3849. this[this.tableЗаказы.ID_СтатусаColumn] = global::System.Convert.DBNull;
  3850. }
  3851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3853. public bool IsДатаЗаказаNull() {
  3854. return this.IsNull(this.tableЗаказы.ДатаЗаказаColumn);
  3855. }
  3856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3858. public void SetДатаЗаказаNull() {
  3859. this[this.tableЗаказы.ДатаЗаказаColumn] = global::System.Convert.DBNull;
  3860. }
  3861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3863. public bool IsСуммаЗаказаNull() {
  3864. return this.IsNull(this.tableЗаказы.СуммаЗаказаColumn);
  3865. }
  3866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3868. public void SetСуммаЗаказаNull() {
  3869. this[this.tableЗаказы.СуммаЗаказаColumn] = global::System.Convert.DBNull;
  3870. }
  3871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3873. public bool IsID_СменыNull() {
  3874. return this.IsNull(this.tableЗаказы.ID_СменыColumn);
  3875. }
  3876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3878. public void SetID_СменыNull() {
  3879. this[this.tableЗаказы.ID_СменыColumn] = global::System.Convert.DBNull;
  3880. }
  3881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3883. public Заказанные_блюдаRow[] GetЗаказанные_блюдаRows() {
  3884. if ((this.Table.ChildRelations["FK_Заказанные блюда_Заказы1"] == null)) {
  3885. return new Заказанные_блюдаRow[0];
  3886. }
  3887. else {
  3888. return ((Заказанные_блюдаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказанные блюда_Заказы1"])));
  3889. }
  3890. }
  3891. }
  3892. /// <summary>
  3893. ///Represents strongly named DataRow class.
  3894. ///</summary>
  3895. public partial class ОфициантыRow : global::System.Data.DataRow {
  3896. private ОфициантыDataTable tableОфицианты;
  3897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3899. internal ОфициантыRow(global::System.Data.DataRowBuilder rb) :
  3900. base(rb) {
  3901. this.tableОфицианты = ((ОфициантыDataTable)(this.Table));
  3902. }
  3903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3905. public int ID_Официанта {
  3906. get {
  3907. return ((int)(this[this.tableОфицианты.ID_ОфициантаColumn]));
  3908. }
  3909. set {
  3910. this[this.tableОфицианты.ID_ОфициантаColumn] = value;
  3911. }
  3912. }
  3913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3915. public string Фамилия {
  3916. get {
  3917. try {
  3918. return ((string)(this[this.tableОфицианты.ФамилияColumn]));
  3919. }
  3920. catch (global::System.InvalidCastException e) {
  3921. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Официанты\' равно DBNull.", e);
  3922. }
  3923. }
  3924. set {
  3925. this[this.tableОфицианты.ФамилияColumn] = 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 ПользователиRow ПользователиRow {
  3946. get {
  3947. return ((ПользователиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Официанты_Пользователи"])));
  3948. }
  3949. set {
  3950. this.SetParentRow(value, this.Table.ParentRelations["FK_Официанты_Пользователи"]);
  3951. }
  3952. }
  3953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3955. public bool IsФамилияNull() {
  3956. return this.IsNull(this.tableОфицианты.ФамилияColumn);
  3957. }
  3958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3960. public void SetФамилияNull() {
  3961. this[this.tableОфицианты.ФамилияColumn] = global::System.Convert.DBNull;
  3962. }
  3963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3965. public bool IsИмяNull() {
  3966. return this.IsNull(this.tableОфицианты.ИмяColumn);
  3967. }
  3968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3970. public void SetИмяNull() {
  3971. this[this.tableОфицианты.ИмяColumn] = global::System.Convert.DBNull;
  3972. }
  3973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3975. public СменыRow[] GetСменыRows() {
  3976. if ((this.Table.ChildRelations["FK_Смены_Официанты1"] == null)) {
  3977. return new СменыRow[0];
  3978. }
  3979. else {
  3980. return ((СменыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Смены_Официанты1"])));
  3981. }
  3982. }
  3983. }
  3984. /// <summary>
  3985. ///Represents strongly named DataRow class.
  3986. ///</summary>
  3987. public partial class ПовараRow : global::System.Data.DataRow {
  3988. private ПовараDataTable tableПовара;
  3989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3991. internal ПовараRow(global::System.Data.DataRowBuilder rb) :
  3992. base(rb) {
  3993. this.tableПовара = ((ПовараDataTable)(this.Table));
  3994. }
  3995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3997. public int ID_Повара {
  3998. get {
  3999. return ((int)(this[this.tableПовара.ID_ПовараColumn]));
  4000. }
  4001. set {
  4002. this[this.tableПовара.ID_ПовараColumn] = value;
  4003. }
  4004. }
  4005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4007. public string Фамилия {
  4008. get {
  4009. try {
  4010. return ((string)(this[this.tableПовара.ФамилияColumn]));
  4011. }
  4012. catch (global::System.InvalidCastException e) {
  4013. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Повара\' равно DBNull.", e);
  4014. }
  4015. }
  4016. set {
  4017. this[this.tableПовара.ФамилияColumn] = value;
  4018. }
  4019. }
  4020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4022. public string Имя {
  4023. get {
  4024. try {
  4025. return ((string)(this[this.tableПовара.ИмяColumn]));
  4026. }
  4027. catch (global::System.InvalidCastException e) {
  4028. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'Повара\' равно DBNull.", e);
  4029. }
  4030. }
  4031. set {
  4032. this[this.tableПовара.ИмяColumn] = value;
  4033. }
  4034. }
  4035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4037. public ПользователиRow ПользователиRow {
  4038. get {
  4039. return ((ПользователиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Повара_Пользователи"])));
  4040. }
  4041. set {
  4042. this.SetParentRow(value, this.Table.ParentRelations["FK_Повара_Пользователи"]);
  4043. }
  4044. }
  4045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4047. public bool IsФамилияNull() {
  4048. return this.IsNull(this.tableПовара.ФамилияColumn);
  4049. }
  4050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4052. public void SetФамилияNull() {
  4053. this[this.tableПовара.ФамилияColumn] = global::System.Convert.DBNull;
  4054. }
  4055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4057. public bool IsИмяNull() {
  4058. return this.IsNull(this.tableПовара.ИмяColumn);
  4059. }
  4060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4062. public void SetИмяNull() {
  4063. this[this.tableПовара.ИмяColumn] = global::System.Convert.DBNull;
  4064. }
  4065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4067. public СменыRow[] GetСменыRows() {
  4068. if ((this.Table.ChildRelations["FK_Смены_Повара1"] == null)) {
  4069. return new СменыRow[0];
  4070. }
  4071. else {
  4072. return ((СменыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Смены_Повара1"])));
  4073. }
  4074. }
  4075. }
  4076. /// <summary>
  4077. ///Represents strongly named DataRow class.
  4078. ///</summary>
  4079. public partial class ПользователиRow : global::System.Data.DataRow {
  4080. private ПользователиDataTable tableПользователи;
  4081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4083. internal ПользователиRow(global::System.Data.DataRowBuilder rb) :
  4084. base(rb) {
  4085. this.tableПользователи = ((ПользователиDataTable)(this.Table));
  4086. }
  4087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4089. public int ID_Пользователя {
  4090. get {
  4091. return ((int)(this[this.tableПользователи.ID_ПользователяColumn]));
  4092. }
  4093. set {
  4094. this[this.tableПользователи.ID_ПользователяColumn] = value;
  4095. }
  4096. }
  4097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4099. public string Логин {
  4100. get {
  4101. try {
  4102. return ((string)(this[this.tableПользователи.ЛогинColumn]));
  4103. }
  4104. catch (global::System.InvalidCastException e) {
  4105. throw new global::System.Data.StrongTypingException("Значение для столбца \'Логин\' в таблице \'Пользователи\' равно DBNull.", e);
  4106. }
  4107. }
  4108. set {
  4109. this[this.tableПользователи.ЛогинColumn] = value;
  4110. }
  4111. }
  4112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4114. public string Пароль {
  4115. get {
  4116. try {
  4117. return ((string)(this[this.tableПользователи.ПарольColumn]));
  4118. }
  4119. catch (global::System.InvalidCastException e) {
  4120. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пароль\' в таблице \'Пользователи\' равно DBNull.", e);
  4121. }
  4122. }
  4123. set {
  4124. this[this.tableПользователи.ПарольColumn] = value;
  4125. }
  4126. }
  4127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4129. public string Фамилия {
  4130. get {
  4131. try {
  4132. return ((string)(this[this.tableПользователи.ФамилияColumn]));
  4133. }
  4134. catch (global::System.InvalidCastException e) {
  4135. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Пользователи\' равно DBNull.", e);
  4136. }
  4137. }
  4138. set {
  4139. this[this.tableПользователи.ФамилияColumn] = value;
  4140. }
  4141. }
  4142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4144. public int ID_Роли {
  4145. get {
  4146. try {
  4147. return ((int)(this[this.tableПользователи.ID_РолиColumn]));
  4148. }
  4149. catch (global::System.InvalidCastException e) {
  4150. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Роли\' в таблице \'Пользователи\' равно DBNull.", e);
  4151. }
  4152. }
  4153. set {
  4154. this[this.tableПользователи.ID_РолиColumn] = value;
  4155. }
  4156. }
  4157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4159. public int ID_Статуса {
  4160. get {
  4161. try {
  4162. return ((int)(this[this.tableПользователи.ID_СтатусаColumn]));
  4163. }
  4164. catch (global::System.InvalidCastException e) {
  4165. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_Статуса\' в таблице \'Пользователи\' равно DBNull.", e);
  4166. }
  4167. }
  4168. set {
  4169. this[this.tableПользователи.ID_СтатусаColumn] = value;
  4170. }
  4171. }
  4172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4174. public РолиRow РолиRow {
  4175. get {
  4176. return ((РолиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Пользователи_Роли1"])));
  4177. }
  4178. set {
  4179. this.SetParentRow(value, this.Table.ParentRelations["FK_Пользователи_Роли1"]);
  4180. }
  4181. }
  4182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4184. public СтатусСотрудникаRow СтатусСотрудникаRow {
  4185. get {
  4186. return ((СтатусСотрудникаRow)(this.GetParentRow(this.Table.ParentRelations["FK_Пользователи_СтатусСотрудника1"])));
  4187. }
  4188. set {
  4189. this.SetParentRow(value, this.Table.ParentRelations["FK_Пользователи_СтатусСотрудника1"]);
  4190. }
  4191. }
  4192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4194. public bool IsЛогинNull() {
  4195. return this.IsNull(this.tableПользователи.ЛогинColumn);
  4196. }
  4197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4199. public void SetЛогинNull() {
  4200. this[this.tableПользователи.ЛогинColumn] = global::System.Convert.DBNull;
  4201. }
  4202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4204. public bool IsПарольNull() {
  4205. return this.IsNull(this.tableПользователи.ПарольColumn);
  4206. }
  4207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4209. public void SetПарольNull() {
  4210. this[this.tableПользователи.ПарольColumn] = global::System.Convert.DBNull;
  4211. }
  4212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4214. public bool IsФамилияNull() {
  4215. return this.IsNull(this.tableПользователи.ФамилияColumn);
  4216. }
  4217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4219. public void SetФамилияNull() {
  4220. this[this.tableПользователи.ФамилияColumn] = global::System.Convert.DBNull;
  4221. }
  4222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4224. public bool IsID_РолиNull() {
  4225. return this.IsNull(this.tableПользователи.ID_РолиColumn);
  4226. }
  4227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4229. public void SetID_РолиNull() {
  4230. this[this.tableПользователи.ID_РолиColumn] = global::System.Convert.DBNull;
  4231. }
  4232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4234. public bool IsID_СтатусаNull() {
  4235. return this.IsNull(this.tableПользователи.ID_СтатусаColumn);
  4236. }
  4237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4239. public void SetID_СтатусаNull() {
  4240. this[this.tableПользователи.ID_СтатусаColumn] = global::System.Convert.DBNull;
  4241. }
  4242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4244. public ОфициантыRow[] GetОфициантыRows() {
  4245. if ((this.Table.ChildRelations["FK_Официанты_Пользователи"] == null)) {
  4246. return new ОфициантыRow[0];
  4247. }
  4248. else {
  4249. return ((ОфициантыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Официанты_Пользователи"])));
  4250. }
  4251. }
  4252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4254. public ПовараRow[] GetПовараRows() {
  4255. if ((this.Table.ChildRelations["FK_Повара_Пользователи"] == null)) {
  4256. return new ПовараRow[0];
  4257. }
  4258. else {
  4259. return ((ПовараRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Повара_Пользователи"])));
  4260. }
  4261. }
  4262. }
  4263. /// <summary>
  4264. ///Represents strongly named DataRow class.
  4265. ///</summary>
  4266. public partial class РолиRow : global::System.Data.DataRow {
  4267. private РолиDataTable tableРоли;
  4268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4270. internal РолиRow(global::System.Data.DataRowBuilder rb) :
  4271. base(rb) {
  4272. this.tableРоли = ((РолиDataTable)(this.Table));
  4273. }
  4274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4276. public int id_Роли {
  4277. get {
  4278. return ((int)(this[this.tableРоли.id_РолиColumn]));
  4279. }
  4280. set {
  4281. this[this.tableРоли.id_РолиColumn] = value;
  4282. }
  4283. }
  4284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4286. public string Название {
  4287. get {
  4288. try {
  4289. return ((string)(this[this.tableРоли.НазваниеColumn]));
  4290. }
  4291. catch (global::System.InvalidCastException e) {
  4292. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Роли\' равно DBNull.", e);
  4293. }
  4294. }
  4295. set {
  4296. this[this.tableРоли.НазваниеColumn] = value;
  4297. }
  4298. }
  4299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4301. public bool IsНазваниеNull() {
  4302. return this.IsNull(this.tableРоли.НазваниеColumn);
  4303. }
  4304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4306. public void SetНазваниеNull() {
  4307. this[this.tableРоли.НазваниеColumn] = global::System.Convert.DBNull;
  4308. }
  4309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4311. public ПользователиRow[] GetПользователиRows() {
  4312. if ((this.Table.ChildRelations["FK_Пользователи_Роли1"] == null)) {
  4313. return new ПользователиRow[0];
  4314. }
  4315. else {
  4316. return ((ПользователиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Пользователи_Роли1"])));
  4317. }
  4318. }
  4319. }
  4320. /// <summary>
  4321. ///Represents strongly named DataRow class.
  4322. ///</summary>
  4323. public partial class СменыRow : global::System.Data.DataRow {
  4324. private СменыDataTable tableСмены;
  4325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4327. internal СменыRow(global::System.Data.DataRowBuilder rb) :
  4328. base(rb) {
  4329. this.tableСмены = ((СменыDataTable)(this.Table));
  4330. }
  4331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4333. public int ID_Смены {
  4334. get {
  4335. return ((int)(this[this.tableСмены.ID_СменыColumn]));
  4336. }
  4337. set {
  4338. this[this.tableСмены.ID_СменыColumn] = value;
  4339. }
  4340. }
  4341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4343. public System.DateTime ДатаCмены {
  4344. get {
  4345. try {
  4346. return ((global::System.DateTime)(this[this.tableСмены.ДатаCменыColumn]));
  4347. }
  4348. catch (global::System.InvalidCastException e) {
  4349. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаCмены\' в таблице \'Смены\' равно DBNull.", e);
  4350. }
  4351. }
  4352. set {
  4353. this[this.tableСмены.ДатаCменыColumn] = value;
  4354. }
  4355. }
  4356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4358. public int id_Официанта {
  4359. get {
  4360. try {
  4361. return ((int)(this[this.tableСмены.id_ОфициантаColumn]));
  4362. }
  4363. catch (global::System.InvalidCastException e) {
  4364. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_Официанта\' в таблице \'Смены\' равно DBNull.", e);
  4365. }
  4366. }
  4367. set {
  4368. this[this.tableСмены.id_ОфициантаColumn] = value;
  4369. }
  4370. }
  4371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4373. public int id_Повара {
  4374. get {
  4375. try {
  4376. return ((int)(this[this.tableСмены.id_ПовараColumn]));
  4377. }
  4378. catch (global::System.InvalidCastException e) {
  4379. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_Повара\' в таблице \'Смены\' равно DBNull.", e);
  4380. }
  4381. }
  4382. set {
  4383. this[this.tableСмены.id_ПовараColumn] = value;
  4384. }
  4385. }
  4386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4388. public ОфициантыRow ОфициантыRow {
  4389. get {
  4390. return ((ОфициантыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Смены_Официанты1"])));
  4391. }
  4392. set {
  4393. this.SetParentRow(value, this.Table.ParentRelations["FK_Смены_Официанты1"]);
  4394. }
  4395. }
  4396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4398. public ПовараRow ПовараRow {
  4399. get {
  4400. return ((ПовараRow)(this.GetParentRow(this.Table.ParentRelations["FK_Смены_Повара1"])));
  4401. }
  4402. set {
  4403. this.SetParentRow(value, this.Table.ParentRelations["FK_Смены_Повара1"]);
  4404. }
  4405. }
  4406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4408. public bool IsДатаCменыNull() {
  4409. return this.IsNull(this.tableСмены.ДатаCменыColumn);
  4410. }
  4411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4413. public void SetДатаCменыNull() {
  4414. this[this.tableСмены.ДатаCменыColumn] = global::System.Convert.DBNull;
  4415. }
  4416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4418. public bool Isid_ОфициантаNull() {
  4419. return this.IsNull(this.tableСмены.id_ОфициантаColumn);
  4420. }
  4421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4423. public void Setid_ОфициантаNull() {
  4424. this[this.tableСмены.id_ОфициантаColumn] = global::System.Convert.DBNull;
  4425. }
  4426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4428. public bool Isid_ПовараNull() {
  4429. return this.IsNull(this.tableСмены.id_ПовараColumn);
  4430. }
  4431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4433. public void Setid_ПовараNull() {
  4434. this[this.tableСмены.id_ПовараColumn] = global::System.Convert.DBNull;
  4435. }
  4436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4438. public ЗаказыRow[] GetЗаказыRows() {
  4439. if ((this.Table.ChildRelations["FK_Заказы_Смены"] == null)) {
  4440. return new ЗаказыRow[0];
  4441. }
  4442. else {
  4443. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_Смены"])));
  4444. }
  4445. }
  4446. }
  4447. /// <summary>
  4448. ///Represents strongly named DataRow class.
  4449. ///</summary>
  4450. public partial class СтатусЗаказаRow : global::System.Data.DataRow {
  4451. private СтатусЗаказаDataTable tableСтатусЗаказа;
  4452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4454. internal СтатусЗаказаRow(global::System.Data.DataRowBuilder rb) :
  4455. base(rb) {
  4456. this.tableСтатусЗаказа = ((СтатусЗаказаDataTable)(this.Table));
  4457. }
  4458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4460. public int ID_СтатусаЗаказа {
  4461. get {
  4462. return ((int)(this[this.tableСтатусЗаказа.ID_СтатусаЗаказаColumn]));
  4463. }
  4464. set {
  4465. this[this.tableСтатусЗаказа.ID_СтатусаЗаказаColumn] = value;
  4466. }
  4467. }
  4468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4470. public string НазваниеСтатусаЗаказа {
  4471. get {
  4472. try {
  4473. return ((string)(this[this.tableСтатусЗаказа.НазваниеСтатусаЗаказаColumn]));
  4474. }
  4475. catch (global::System.InvalidCastException e) {
  4476. throw new global::System.Data.StrongTypingException("Значение для столбца \'НазваниеСтатусаЗаказа\' в таблице \'СтатусЗаказа\' равно DBNul" +
  4477. "l.", e);
  4478. }
  4479. }
  4480. set {
  4481. this[this.tableСтатусЗаказа.НазваниеСтатусаЗаказаColumn] = value;
  4482. }
  4483. }
  4484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4486. public bool IsНазваниеСтатусаЗаказаNull() {
  4487. return this.IsNull(this.tableСтатусЗаказа.НазваниеСтатусаЗаказаColumn);
  4488. }
  4489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4491. public void SetНазваниеСтатусаЗаказаNull() {
  4492. this[this.tableСтатусЗаказа.НазваниеСтатусаЗаказаColumn] = global::System.Convert.DBNull;
  4493. }
  4494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4496. public ЗаказыRow[] GetЗаказыRows() {
  4497. if ((this.Table.ChildRelations["FK_Заказы_СтатусЗаказа"] == null)) {
  4498. return new ЗаказыRow[0];
  4499. }
  4500. else {
  4501. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_СтатусЗаказа"])));
  4502. }
  4503. }
  4504. }
  4505. /// <summary>
  4506. ///Represents strongly named DataRow class.
  4507. ///</summary>
  4508. public partial class СтатусСотрудникаRow : global::System.Data.DataRow {
  4509. private СтатусСотрудникаDataTable tableСтатусСотрудника;
  4510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4512. internal СтатусСотрудникаRow(global::System.Data.DataRowBuilder rb) :
  4513. base(rb) {
  4514. this.tableСтатусСотрудника = ((СтатусСотрудникаDataTable)(this.Table));
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4518. public int ID_Статуса {
  4519. get {
  4520. return ((int)(this[this.tableСтатусСотрудника.ID_СтатусаColumn]));
  4521. }
  4522. set {
  4523. this[this.tableСтатусСотрудника.ID_СтатусаColumn] = value;
  4524. }
  4525. }
  4526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4528. public string НазваниеСтатусаСотрудника {
  4529. get {
  4530. try {
  4531. return ((string)(this[this.tableСтатусСотрудника.НазваниеСтатусаСотрудникаColumn]));
  4532. }
  4533. catch (global::System.InvalidCastException e) {
  4534. throw new global::System.Data.StrongTypingException("Значение для столбца \'НазваниеСтатусаСотрудника\' в таблице \'СтатусСотрудника\' рав" +
  4535. "но DBNull.", e);
  4536. }
  4537. }
  4538. set {
  4539. this[this.tableСтатусСотрудника.НазваниеСтатусаСотрудникаColumn] = value;
  4540. }
  4541. }
  4542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4544. public bool IsНазваниеСтатусаСотрудникаNull() {
  4545. return this.IsNull(this.tableСтатусСотрудника.НазваниеСтатусаСотрудникаColumn);
  4546. }
  4547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4549. public void SetНазваниеСтатусаСотрудникаNull() {
  4550. this[this.tableСтатусСотрудника.НазваниеСтатусаСотрудникаColumn] = global::System.Convert.DBNull;
  4551. }
  4552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4554. public ПользователиRow[] GetПользователиRows() {
  4555. if ((this.Table.ChildRelations["FK_Пользователи_СтатусСотрудника1"] == null)) {
  4556. return new ПользователиRow[0];
  4557. }
  4558. else {
  4559. return ((ПользователиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Пользователи_СтатусСотрудника1"])));
  4560. }
  4561. }
  4562. }
  4563. /// <summary>
  4564. ///Represents strongly named DataRow class.
  4565. ///</summary>
  4566. public partial class СтоликиRow : global::System.Data.DataRow {
  4567. private СтоликиDataTable tableСтолики;
  4568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4570. internal СтоликиRow(global::System.Data.DataRowBuilder rb) :
  4571. base(rb) {
  4572. this.tableСтолики = ((СтоликиDataTable)(this.Table));
  4573. }
  4574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4576. public int ID_Столика {
  4577. get {
  4578. return ((int)(this[this.tableСтолики.ID_СтоликаColumn]));
  4579. }
  4580. set {
  4581. this[this.tableСтолики.ID_СтоликаColumn] = value;
  4582. }
  4583. }
  4584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4586. public string Название {
  4587. get {
  4588. try {
  4589. return ((string)(this[this.tableСтолики.НазваниеColumn]));
  4590. }
  4591. catch (global::System.InvalidCastException e) {
  4592. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Столики\' равно DBNull.", e);
  4593. }
  4594. }
  4595. set {
  4596. this[this.tableСтолики.НазваниеColumn] = value;
  4597. }
  4598. }
  4599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4601. public bool IsНазваниеNull() {
  4602. return this.IsNull(this.tableСтолики.НазваниеColumn);
  4603. }
  4604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4606. public void SetНазваниеNull() {
  4607. this[this.tableСтолики.НазваниеColumn] = global::System.Convert.DBNull;
  4608. }
  4609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4611. public ЗаказыRow[] GetЗаказыRows() {
  4612. if ((this.Table.ChildRelations["FK_Заказы_Столики"] == null)) {
  4613. return new ЗаказыRow[0];
  4614. }
  4615. else {
  4616. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_Столики"])));
  4617. }
  4618. }
  4619. }
  4620. /// <summary>
  4621. ///Row event argument class
  4622. ///</summary>
  4623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4624. public class БлюдаНапиткиRowChangeEvent : global::System.EventArgs {
  4625. private БлюдаНапиткиRow eventRow;
  4626. private global::System.Data.DataRowAction eventAction;
  4627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4629. public БлюдаНапиткиRowChangeEvent(БлюдаНапиткиRow row, global::System.Data.DataRowAction action) {
  4630. this.eventRow = row;
  4631. this.eventAction = action;
  4632. }
  4633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4635. public БлюдаНапиткиRow Row {
  4636. get {
  4637. return this.eventRow;
  4638. }
  4639. }
  4640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4642. public global::System.Data.DataRowAction Action {
  4643. get {
  4644. return this.eventAction;
  4645. }
  4646. }
  4647. }
  4648. /// <summary>
  4649. ///Row event argument class
  4650. ///</summary>
  4651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4652. public class Заказанные_блюдаRowChangeEvent : global::System.EventArgs {
  4653. private Заказанные_блюдаRow eventRow;
  4654. private global::System.Data.DataRowAction eventAction;
  4655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4657. public Заказанные_блюдаRowChangeEvent(Заказанные_блюдаRow row, global::System.Data.DataRowAction action) {
  4658. this.eventRow = row;
  4659. this.eventAction = action;
  4660. }
  4661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4663. public Заказанные_блюдаRow Row {
  4664. get {
  4665. return this.eventRow;
  4666. }
  4667. }
  4668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4670. public global::System.Data.DataRowAction Action {
  4671. get {
  4672. return this.eventAction;
  4673. }
  4674. }
  4675. }
  4676. /// <summary>
  4677. ///Row event argument class
  4678. ///</summary>
  4679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4680. public class ЗаказыRowChangeEvent : global::System.EventArgs {
  4681. private ЗаказыRow eventRow;
  4682. private global::System.Data.DataRowAction eventAction;
  4683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4685. public ЗаказыRowChangeEvent(ЗаказыRow row, global::System.Data.DataRowAction action) {
  4686. this.eventRow = row;
  4687. this.eventAction = action;
  4688. }
  4689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4691. public ЗаказыRow Row {
  4692. get {
  4693. return this.eventRow;
  4694. }
  4695. }
  4696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4698. public global::System.Data.DataRowAction Action {
  4699. get {
  4700. return this.eventAction;
  4701. }
  4702. }
  4703. }
  4704. /// <summary>
  4705. ///Row event argument class
  4706. ///</summary>
  4707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4708. public class ОфициантыRowChangeEvent : global::System.EventArgs {
  4709. private ОфициантыRow eventRow;
  4710. private global::System.Data.DataRowAction eventAction;
  4711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4713. public ОфициантыRowChangeEvent(ОфициантыRow row, global::System.Data.DataRowAction action) {
  4714. this.eventRow = row;
  4715. this.eventAction = action;
  4716. }
  4717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4719. public ОфициантыRow Row {
  4720. get {
  4721. return this.eventRow;
  4722. }
  4723. }
  4724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4726. public global::System.Data.DataRowAction Action {
  4727. get {
  4728. return this.eventAction;
  4729. }
  4730. }
  4731. }
  4732. /// <summary>
  4733. ///Row event argument class
  4734. ///</summary>
  4735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4736. public class ПовараRowChangeEvent : global::System.EventArgs {
  4737. private ПовараRow eventRow;
  4738. private global::System.Data.DataRowAction eventAction;
  4739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4741. public ПовараRowChangeEvent(ПовараRow row, global::System.Data.DataRowAction action) {
  4742. this.eventRow = row;
  4743. this.eventAction = action;
  4744. }
  4745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4747. public ПовараRow Row {
  4748. get {
  4749. return this.eventRow;
  4750. }
  4751. }
  4752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4754. public global::System.Data.DataRowAction Action {
  4755. get {
  4756. return this.eventAction;
  4757. }
  4758. }
  4759. }
  4760. /// <summary>
  4761. ///Row event argument class
  4762. ///</summary>
  4763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4764. public class ПользователиRowChangeEvent : global::System.EventArgs {
  4765. private ПользователиRow eventRow;
  4766. private global::System.Data.DataRowAction eventAction;
  4767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4769. public ПользователиRowChangeEvent(ПользователиRow row, global::System.Data.DataRowAction action) {
  4770. this.eventRow = row;
  4771. this.eventAction = action;
  4772. }
  4773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4775. public ПользователиRow Row {
  4776. get {
  4777. return this.eventRow;
  4778. }
  4779. }
  4780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4782. public global::System.Data.DataRowAction Action {
  4783. get {
  4784. return this.eventAction;
  4785. }
  4786. }
  4787. }
  4788. /// <summary>
  4789. ///Row event argument class
  4790. ///</summary>
  4791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4792. public class РолиRowChangeEvent : global::System.EventArgs {
  4793. private РолиRow eventRow;
  4794. private global::System.Data.DataRowAction eventAction;
  4795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4797. public РолиRowChangeEvent(РолиRow row, global::System.Data.DataRowAction action) {
  4798. this.eventRow = row;
  4799. this.eventAction = action;
  4800. }
  4801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4803. public РолиRow Row {
  4804. get {
  4805. return this.eventRow;
  4806. }
  4807. }
  4808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4810. public global::System.Data.DataRowAction Action {
  4811. get {
  4812. return this.eventAction;
  4813. }
  4814. }
  4815. }
  4816. /// <summary>
  4817. ///Row event argument class
  4818. ///</summary>
  4819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4820. public class СменыRowChangeEvent : global::System.EventArgs {
  4821. private СменыRow eventRow;
  4822. private global::System.Data.DataRowAction eventAction;
  4823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4825. public СменыRowChangeEvent(СменыRow row, global::System.Data.DataRowAction action) {
  4826. this.eventRow = row;
  4827. this.eventAction = action;
  4828. }
  4829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4831. public СменыRow Row {
  4832. get {
  4833. return this.eventRow;
  4834. }
  4835. }
  4836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4838. public global::System.Data.DataRowAction Action {
  4839. get {
  4840. return this.eventAction;
  4841. }
  4842. }
  4843. }
  4844. /// <summary>
  4845. ///Row event argument class
  4846. ///</summary>
  4847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4848. public class СтатусЗаказаRowChangeEvent : global::System.EventArgs {
  4849. private СтатусЗаказаRow eventRow;
  4850. private global::System.Data.DataRowAction eventAction;
  4851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4853. public СтатусЗаказаRowChangeEvent(СтатусЗаказаRow row, global::System.Data.DataRowAction action) {
  4854. this.eventRow = row;
  4855. this.eventAction = action;
  4856. }
  4857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4859. public СтатусЗаказаRow Row {
  4860. get {
  4861. return this.eventRow;
  4862. }
  4863. }
  4864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4866. public global::System.Data.DataRowAction Action {
  4867. get {
  4868. return this.eventAction;
  4869. }
  4870. }
  4871. }
  4872. /// <summary>
  4873. ///Row event argument class
  4874. ///</summary>
  4875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4876. public class СтатусСотрудникаRowChangeEvent : global::System.EventArgs {
  4877. private СтатусСотрудникаRow eventRow;
  4878. private global::System.Data.DataRowAction eventAction;
  4879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4881. public СтатусСотрудникаRowChangeEvent(СтатусСотрудникаRow row, global::System.Data.DataRowAction action) {
  4882. this.eventRow = row;
  4883. this.eventAction = action;
  4884. }
  4885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4887. public СтатусСотрудникаRow Row {
  4888. get {
  4889. return this.eventRow;
  4890. }
  4891. }
  4892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4894. public global::System.Data.DataRowAction Action {
  4895. get {
  4896. return this.eventAction;
  4897. }
  4898. }
  4899. }
  4900. /// <summary>
  4901. ///Row event argument class
  4902. ///</summary>
  4903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4904. public class СтоликиRowChangeEvent : global::System.EventArgs {
  4905. private СтоликиRow eventRow;
  4906. private global::System.Data.DataRowAction eventAction;
  4907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4909. public СтоликиRowChangeEvent(СтоликиRow row, global::System.Data.DataRowAction action) {
  4910. this.eventRow = row;
  4911. this.eventAction = action;
  4912. }
  4913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4915. public СтоликиRow Row {
  4916. get {
  4917. return this.eventRow;
  4918. }
  4919. }
  4920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4922. public global::System.Data.DataRowAction Action {
  4923. get {
  4924. return this.eventAction;
  4925. }
  4926. }
  4927. }
  4928. }
  4929. }
  4930. namespace Cafe12.CHER_KAFEDataSetTableAdapters {
  4931. /// <summary>
  4932. ///Represents the connection and commands used to retrieve and save data.
  4933. ///</summary>
  4934. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4935. [global::System.ComponentModel.ToolboxItem(true)]
  4936. [global::System.ComponentModel.DataObjectAttribute(true)]
  4937. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4938. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4939. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4940. public partial class БлюдаНапиткиTableAdapter : global::System.ComponentModel.Component {
  4941. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4942. private global::System.Data.SqlClient.SqlConnection _connection;
  4943. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4944. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4945. private bool _clearBeforeFill;
  4946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4948. public БлюдаНапиткиTableAdapter() {
  4949. this.ClearBeforeFill = true;
  4950. }
  4951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4953. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4954. get {
  4955. if ((this._adapter == null)) {
  4956. this.InitAdapter();
  4957. }
  4958. return this._adapter;
  4959. }
  4960. }
  4961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4963. internal global::System.Data.SqlClient.SqlConnection Connection {
  4964. get {
  4965. if ((this._connection == null)) {
  4966. this.InitConnection();
  4967. }
  4968. return this._connection;
  4969. }
  4970. set {
  4971. this._connection = value;
  4972. if ((this.Adapter.InsertCommand != null)) {
  4973. this.Adapter.InsertCommand.Connection = value;
  4974. }
  4975. if ((this.Adapter.DeleteCommand != null)) {
  4976. this.Adapter.DeleteCommand.Connection = value;
  4977. }
  4978. if ((this.Adapter.UpdateCommand != null)) {
  4979. this.Adapter.UpdateCommand.Connection = value;
  4980. }
  4981. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4982. if ((this.CommandCollection[i] != null)) {
  4983. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4984. }
  4985. }
  4986. }
  4987. }
  4988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4990. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4991. get {
  4992. return this._transaction;
  4993. }
  4994. set {
  4995. this._transaction = value;
  4996. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4997. this.CommandCollection[i].Transaction = this._transaction;
  4998. }
  4999. if (((this.Adapter != null)
  5000. && (this.Adapter.DeleteCommand != null))) {
  5001. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5002. }
  5003. if (((this.Adapter != null)
  5004. && (this.Adapter.InsertCommand != null))) {
  5005. this.Adapter.InsertCommand.Transaction = this._transaction;
  5006. }
  5007. if (((this.Adapter != null)
  5008. && (this.Adapter.UpdateCommand != null))) {
  5009. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5010. }
  5011. }
  5012. }
  5013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5015. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5016. get {
  5017. if ((this._commandCollection == null)) {
  5018. this.InitCommandCollection();
  5019. }
  5020. return this._commandCollection;
  5021. }
  5022. }
  5023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5025. public bool ClearBeforeFill {
  5026. get {
  5027. return this._clearBeforeFill;
  5028. }
  5029. set {
  5030. this._clearBeforeFill = value;
  5031. }
  5032. }
  5033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5035. private void InitAdapter() {
  5036. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5037. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5038. tableMapping.SourceTable = "Table";
  5039. tableMapping.DataSetTable = "БлюдаНапитки";
  5040. tableMapping.ColumnMappings.Add("ID_БлюдаНапитка", "ID_БлюдаНапитка");
  5041. tableMapping.ColumnMappings.Add("Название", "Название");
  5042. tableMapping.ColumnMappings.Add("Цена", "Цена");
  5043. this._adapter.TableMappings.Add(tableMapping);
  5044. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5045. this._adapter.DeleteCommand.Connection = this.Connection;
  5046. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[БлюдаНапитки] WHERE (([ID_БлюдаНапитка] = @Original_ID_БлюдаНа" +
  5047. "питка) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Orig" +
  5048. "inal_Название)) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Origina" +
  5049. "l_Цена)))";
  5050. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5051. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_БлюдаНапитка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_БлюдаНапитка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5052. 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, "", "", ""));
  5053. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5054. 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, "", "", ""));
  5055. 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, "", "", ""));
  5056. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5057. this._adapter.InsertCommand.Connection = this.Connection;
  5058. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[БлюдаНапитки] ([Название], [Цена]) VALUES (@Название, @Цена);\r" +
  5059. "\nSELECT ID_БлюдаНапитка, Название, Цена FROM БлюдаНапитки WHERE (ID_БлюдаНапитка" +
  5060. " = SCOPE_IDENTITY())";
  5061. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5062. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5063. 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, "", "", ""));
  5064. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5065. this._adapter.UpdateCommand.Connection = this.Connection;
  5066. 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_Цена)));
  5067. SELECT ID_БлюдаНапитка, Название, Цена FROM БлюдаНапитки WHERE (ID_БлюдаНапитка = @ID_БлюдаНапитка)";
  5068. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5069. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5070. 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, "", "", ""));
  5071. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_БлюдаНапитка", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_БлюдаНапитка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5072. 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, "", "", ""));
  5073. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5074. 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, "", "", ""));
  5075. 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, "", "", ""));
  5076. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_БлюдаНапитка", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID_БлюдаНапитка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5077. }
  5078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5080. private void InitConnection() {
  5081. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5082. this._connection.ConnectionString = global::Cafe12.Properties.Settings.Default.CHER_KAFEConnectionString;
  5083. }
  5084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5086. private void InitCommandCollection() {
  5087. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5088. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5089. this._commandCollection[0].Connection = this.Connection;
  5090. this._commandCollection[0].CommandText = "SELECT ID_БлюдаНапитка, Название, Цена FROM dbo.БлюдаНапитки";
  5091. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5092. }
  5093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5095. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5096. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5097. public virtual int Fill(CHER_KAFEDataSet.БлюдаНапиткиDataTable dataTable) {
  5098. this.Adapter.SelectCommand = this.CommandCollection[0];
  5099. if ((this.ClearBeforeFill == true)) {
  5100. dataTable.Clear();
  5101. }
  5102. int returnValue = this.Adapter.Fill(dataTable);
  5103. return returnValue;
  5104. }
  5105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5107. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5108. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5109. public virtual CHER_KAFEDataSet.БлюдаНапиткиDataTable GetData() {
  5110. this.Adapter.SelectCommand = this.CommandCollection[0];
  5111. CHER_KAFEDataSet.БлюдаНапиткиDataTable dataTable = new CHER_KAFEDataSet.БлюдаНапиткиDataTable();
  5112. this.Adapter.Fill(dataTable);
  5113. return dataTable;
  5114. }
  5115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5117. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5118. public virtual int Update(CHER_KAFEDataSet.БлюдаНапиткиDataTable dataTable) {
  5119. return this.Adapter.Update(dataTable);
  5120. }
  5121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5123. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5124. public virtual int Update(CHER_KAFEDataSet dataSet) {
  5125. return this.Adapter.Update(dataSet, "БлюдаНапитки");
  5126. }
  5127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5129. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5130. public virtual int Update(global::System.Data.DataRow dataRow) {
  5131. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5132. dataRow});
  5133. }
  5134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5136. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5137. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5138. return this.Adapter.Update(dataRows);
  5139. }
  5140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5142. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5143. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5144. public virtual int Delete(int Original_ID_БлюдаНапитка, string Original_Название, global::System.Nullable<int> Original_Цена) {
  5145. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_БлюдаНапитка));
  5146. if ((Original_Название == null)) {
  5147. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5148. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5149. }
  5150. else {
  5151. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5152. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  5153. }
  5154. if ((Original_Цена.HasValue == true)) {
  5155. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5156. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Цена.Value));
  5157. }
  5158. else {
  5159. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5160. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5161. }
  5162. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5163. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5164. != global::System.Data.ConnectionState.Open)) {
  5165. this.Adapter.DeleteCommand.Connection.Open();
  5166. }
  5167. try {
  5168. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5169. return returnValue;
  5170. }
  5171. finally {
  5172. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5173. this.Adapter.DeleteCommand.Connection.Close();
  5174. }
  5175. }
  5176. }
  5177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5179. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5180. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5181. public virtual int Insert(string Название, global::System.Nullable<int> Цена) {
  5182. if ((Название == null)) {
  5183. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5184. }
  5185. else {
  5186. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  5187. }
  5188. if ((Цена.HasValue == true)) {
  5189. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Цена.Value));
  5190. }
  5191. else {
  5192. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5193. }
  5194. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5195. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5196. != global::System.Data.ConnectionState.Open)) {
  5197. this.Adapter.InsertCommand.Connection.Open();
  5198. }
  5199. try {
  5200. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5201. return returnValue;
  5202. }
  5203. finally {
  5204. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5205. this.Adapter.InsertCommand.Connection.Close();
  5206. }
  5207. }
  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. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5213. public virtual int Update(string Название, global::System.Nullable<int> Цена, int Original_ID_БлюдаНапитка, string Original_Название, global::System.Nullable<int> Original_Цена, int ID_БлюдаНапитка) {
  5214. if ((Название == null)) {
  5215. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5216. }
  5217. else {
  5218. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  5219. }
  5220. if ((Цена.HasValue == true)) {
  5221. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Цена.Value));
  5222. }
  5223. else {
  5224. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5225. }
  5226. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID_БлюдаНапитка));
  5227. if ((Original_Название == null)) {
  5228. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  5229. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5230. }
  5231. else {
  5232. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  5233. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Название));
  5234. }
  5235. if ((Original_Цена.HasValue == true)) {
  5236. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  5237. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Цена.Value));
  5238. }
  5239. else {
  5240. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  5241. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5242. }
  5243. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(ID_БлюдаНапитка));
  5244. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5245. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5246. != global::System.Data.ConnectionState.Open)) {
  5247. this.Adapter.UpdateCommand.Connection.Open();
  5248. }
  5249. try {
  5250. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5251. return returnValue;
  5252. }
  5253. finally {
  5254. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5255. this.Adapter.UpdateCommand.Connection.Close();
  5256. }
  5257. }
  5258. }
  5259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5261. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5262. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5263. public virtual int Update(string Название, global::System.Nullable<int> Цена, int Original_ID_БлюдаНапитка, string Original_Название, global::System.Nullable<int> Original_Цена) {
  5264. return this.Update(Название, Цена, Original_ID_БлюдаНапитка, Original_Название, Original_Цена, Original_ID_БлюдаНапитка);
  5265. }
  5266. }
  5267. /// <summary>
  5268. ///Represents the connection and commands used to retrieve and save data.
  5269. ///</summary>
  5270. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5271. [global::System.ComponentModel.ToolboxItem(true)]
  5272. [global::System.ComponentModel.DataObjectAttribute(true)]
  5273. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5274. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5275. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5276. public partial class Заказанные_блюдаTableAdapter : global::System.ComponentModel.Component {
  5277. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5278. private global::System.Data.SqlClient.SqlConnection _connection;
  5279. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5280. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5281. private bool _clearBeforeFill;
  5282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5284. public Заказанные_блюдаTableAdapter() {
  5285. this.ClearBeforeFill = true;
  5286. }
  5287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5289. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5290. get {
  5291. if ((this._adapter == null)) {
  5292. this.InitAdapter();
  5293. }
  5294. return this._adapter;
  5295. }
  5296. }
  5297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5299. internal global::System.Data.SqlClient.SqlConnection Connection {
  5300. get {
  5301. if ((this._connection == null)) {
  5302. this.InitConnection();
  5303. }
  5304. return this._connection;
  5305. }
  5306. set {
  5307. this._connection = value;
  5308. if ((this.Adapter.InsertCommand != null)) {
  5309. this.Adapter.InsertCommand.Connection = value;
  5310. }
  5311. if ((this.Adapter.DeleteCommand != null)) {
  5312. this.Adapter.DeleteCommand.Connection = value;
  5313. }
  5314. if ((this.Adapter.UpdateCommand != null)) {
  5315. this.Adapter.UpdateCommand.Connection = value;
  5316. }
  5317. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5318. if ((this.CommandCollection[i] != null)) {
  5319. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5320. }
  5321. }
  5322. }
  5323. }
  5324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5326. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5327. get {
  5328. return this._transaction;
  5329. }
  5330. set {
  5331. this._transaction = value;
  5332. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5333. this.CommandCollection[i].Transaction = this._transaction;
  5334. }
  5335. if (((this.Adapter != null)
  5336. && (this.Adapter.DeleteCommand != null))) {
  5337. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5338. }
  5339. if (((this.Adapter != null)
  5340. && (this.Adapter.InsertCommand != null))) {
  5341. this.Adapter.InsertCommand.Transaction = this._transaction;
  5342. }
  5343. if (((this.Adapter != null)
  5344. && (this.Adapter.UpdateCommand != null))) {
  5345. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5346. }
  5347. }
  5348. }
  5349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5351. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5352. get {
  5353. if ((this._commandCollection == null)) {
  5354. this.InitCommandCollection();
  5355. }
  5356. return this._commandCollection;
  5357. }
  5358. }
  5359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5361. public bool ClearBeforeFill {
  5362. get {
  5363. return this._clearBeforeFill;
  5364. }
  5365. set {
  5366. this._clearBeforeFill = value;
  5367. }
  5368. }
  5369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5371. private void InitAdapter() {
  5372. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5373. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5374. tableMapping.SourceTable = "Table";
  5375. tableMapping.DataSetTable = "Заказанные блюда";
  5376. tableMapping.ColumnMappings.Add("ID_Заказа", "ID_Заказа");
  5377. tableMapping.ColumnMappings.Add("ID_Блюда", "ID_Блюда");
  5378. tableMapping.ColumnMappings.Add("Количество", "Количество");
  5379. this._adapter.TableMappings.Add(tableMapping);
  5380. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5381. this._adapter.InsertCommand.Connection = this.Connection;
  5382. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Заказанные блюда] ([ID_Блюда], [Количество]) VALUES (@ID_Блюда" +
  5383. ", @Количество)";
  5384. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5385. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Блюда", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Блюда", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5386. 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, "", "", ""));
  5387. }
  5388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5390. private void InitConnection() {
  5391. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5392. this._connection.ConnectionString = global::Cafe12.Properties.Settings.Default.CHER_KAFEConnectionString;
  5393. }
  5394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5396. private void InitCommandCollection() {
  5397. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5398. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5399. this._commandCollection[0].Connection = this.Connection;
  5400. this._commandCollection[0].CommandText = "SELECT ID_Заказа, ID_Блюда, Количество FROM dbo.[Заказанные блюда]";
  5401. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5402. }
  5403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5405. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5406. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5407. public virtual int Fill(CHER_KAFEDataSet.Заказанные_блюдаDataTable dataTable) {
  5408. this.Adapter.SelectCommand = this.CommandCollection[0];
  5409. if ((this.ClearBeforeFill == true)) {
  5410. dataTable.Clear();
  5411. }
  5412. int returnValue = this.Adapter.Fill(dataTable);
  5413. return returnValue;
  5414. }
  5415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5417. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5418. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5419. public virtual CHER_KAFEDataSet.Заказанные_блюдаDataTable GetData() {
  5420. this.Adapter.SelectCommand = this.CommandCollection[0];
  5421. CHER_KAFEDataSet.Заказанные_блюдаDataTable dataTable = new CHER_KAFEDataSet.Заказанные_блюдаDataTable();
  5422. this.Adapter.Fill(dataTable);
  5423. return dataTable;
  5424. }
  5425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5427. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5428. public virtual int Update(CHER_KAFEDataSet.Заказанные_блюдаDataTable dataTable) {
  5429. return this.Adapter.Update(dataTable);
  5430. }
  5431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5433. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5434. public virtual int Update(CHER_KAFEDataSet dataSet) {
  5435. return this.Adapter.Update(dataSet, "Заказанные блюда");
  5436. }
  5437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5439. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5440. public virtual int Update(global::System.Data.DataRow dataRow) {
  5441. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5442. dataRow});
  5443. }
  5444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5446. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5447. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5448. return this.Adapter.Update(dataRows);
  5449. }
  5450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5452. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5453. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5454. public virtual int Insert(int ID_Блюда, global::System.Nullable<int> Количество) {
  5455. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Блюда));
  5456. if ((Количество.HasValue == true)) {
  5457. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Количество.Value));
  5458. }
  5459. else {
  5460. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5461. }
  5462. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5463. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5464. != global::System.Data.ConnectionState.Open)) {
  5465. this.Adapter.InsertCommand.Connection.Open();
  5466. }
  5467. try {
  5468. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5469. return returnValue;
  5470. }
  5471. finally {
  5472. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5473. this.Adapter.InsertCommand.Connection.Close();
  5474. }
  5475. }
  5476. }
  5477. }
  5478. /// <summary>
  5479. ///Represents the connection and commands used to retrieve and save data.
  5480. ///</summary>
  5481. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5482. [global::System.ComponentModel.ToolboxItem(true)]
  5483. [global::System.ComponentModel.DataObjectAttribute(true)]
  5484. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5485. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5486. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5487. public partial class ЗаказыTableAdapter : global::System.ComponentModel.Component {
  5488. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5489. private global::System.Data.SqlClient.SqlConnection _connection;
  5490. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5491. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5492. private bool _clearBeforeFill;
  5493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5495. public ЗаказыTableAdapter() {
  5496. this.ClearBeforeFill = true;
  5497. }
  5498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5500. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5501. get {
  5502. if ((this._adapter == null)) {
  5503. this.InitAdapter();
  5504. }
  5505. return this._adapter;
  5506. }
  5507. }
  5508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5510. internal global::System.Data.SqlClient.SqlConnection Connection {
  5511. get {
  5512. if ((this._connection == null)) {
  5513. this.InitConnection();
  5514. }
  5515. return this._connection;
  5516. }
  5517. set {
  5518. this._connection = value;
  5519. if ((this.Adapter.InsertCommand != null)) {
  5520. this.Adapter.InsertCommand.Connection = value;
  5521. }
  5522. if ((this.Adapter.DeleteCommand != null)) {
  5523. this.Adapter.DeleteCommand.Connection = value;
  5524. }
  5525. if ((this.Adapter.UpdateCommand != null)) {
  5526. this.Adapter.UpdateCommand.Connection = value;
  5527. }
  5528. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5529. if ((this.CommandCollection[i] != null)) {
  5530. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5531. }
  5532. }
  5533. }
  5534. }
  5535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5537. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5538. get {
  5539. return this._transaction;
  5540. }
  5541. set {
  5542. this._transaction = value;
  5543. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5544. this.CommandCollection[i].Transaction = this._transaction;
  5545. }
  5546. if (((this.Adapter != null)
  5547. && (this.Adapter.DeleteCommand != null))) {
  5548. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5549. }
  5550. if (((this.Adapter != null)
  5551. && (this.Adapter.InsertCommand != null))) {
  5552. this.Adapter.InsertCommand.Transaction = this._transaction;
  5553. }
  5554. if (((this.Adapter != null)
  5555. && (this.Adapter.UpdateCommand != null))) {
  5556. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5557. }
  5558. }
  5559. }
  5560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5562. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5563. get {
  5564. if ((this._commandCollection == null)) {
  5565. this.InitCommandCollection();
  5566. }
  5567. return this._commandCollection;
  5568. }
  5569. }
  5570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5572. public bool ClearBeforeFill {
  5573. get {
  5574. return this._clearBeforeFill;
  5575. }
  5576. set {
  5577. this._clearBeforeFill = value;
  5578. }
  5579. }
  5580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5582. private void InitAdapter() {
  5583. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5584. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5585. tableMapping.SourceTable = "Table";
  5586. tableMapping.DataSetTable = "Заказы";
  5587. tableMapping.ColumnMappings.Add("ID_Заказа", "ID_Заказа");
  5588. tableMapping.ColumnMappings.Add("ID_Столика", "ID_Столика");
  5589. tableMapping.ColumnMappings.Add("КоличествоКлиентов", "КоличествоКлиентов");
  5590. tableMapping.ColumnMappings.Add("ID_Статуса", "ID_Статуса");
  5591. tableMapping.ColumnMappings.Add("ДатаЗаказа", "ДатаЗаказа");
  5592. tableMapping.ColumnMappings.Add("СуммаЗаказа", "СуммаЗаказа");
  5593. tableMapping.ColumnMappings.Add("ID_Смены", "ID_Смены");
  5594. this._adapter.TableMappings.Add(tableMapping);
  5595. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5596. this._adapter.DeleteCommand.Connection = this.Connection;
  5597. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Заказы] WHERE (([ID_Заказа] = @Original_ID_Заказа) AND ((@IsNull_ID_Столика = 1 AND [ID_Столика] IS NULL) OR ([ID_Столика] = @Original_ID_Столика)) AND ((@IsNull_КоличествоКлиентов = 1 AND [КоличествоКлиентов] IS NULL) OR ([КоличествоКлиентов] = @Original_КоличествоКлиентов)) AND ((@IsNull_ID_Статуса = 1 AND [ID_Статуса] IS NULL) OR ([ID_Статуса] = @Original_ID_Статуса)) AND ((@IsNull_ДатаЗаказа = 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_Смены)))";
  5598. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5599. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5600. 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, "", "", ""));
  5601. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Столика", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Столика", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5602. 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, "", "", ""));
  5603. 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, "", "", ""));
  5604. 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, "", "", ""));
  5605. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Статуса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5606. 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, "", "", ""));
  5607. 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, "", "", ""));
  5608. 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, "", "", ""));
  5609. 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, "", "", ""));
  5610. 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, "", "", ""));
  5611. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Смены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Смены", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5612. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5613. this._adapter.InsertCommand.Connection = this.Connection;
  5614. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Заказы] ([ID_Столика], [КоличествоКлиентов], [ID_Статуса], [ДатаЗаказа], [СуммаЗаказа], [ID_Смены]) VALUES (@ID_Столика, @КоличествоКлиентов, @ID_Статуса, @ДатаЗаказа, @СуммаЗаказа, @ID_Смены);
  5615. SELECT ID_Заказа, ID_Столика, КоличествоКлиентов, ID_Статуса, ДатаЗаказа, СуммаЗаказа, ID_Смены FROM Заказы WHERE (ID_Заказа = SCOPE_IDENTITY())";
  5616. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5617. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Столика", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Столика", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5618. 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, "", "", ""));
  5619. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Статуса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5620. 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, "", "", ""));
  5621. 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, "", "", ""));
  5622. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Смены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Смены", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5623. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5624. this._adapter.UpdateCommand.Connection = this.Connection;
  5625. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Заказы] SET [ID_Столика] = @ID_Столика, [КоличествоКлиентов] = @КоличествоКлиентов, [ID_Статуса] = @ID_Статуса, [ДатаЗаказа] = @ДатаЗаказа, [СуммаЗаказа] = @СуммаЗаказа, [ID_Смены] = @ID_Смены WHERE (([ID_Заказа] = @Original_ID_Заказа) AND ((@IsNull_ID_Столика = 1 AND [ID_Столика] IS NULL) OR ([ID_Столика] = @Original_ID_Столика)) AND ((@IsNull_КоличествоКлиентов = 1 AND [КоличествоКлиентов] IS NULL) OR ([КоличествоКлиентов] = @Original_КоличествоКлиентов)) AND ((@IsNull_ID_Статуса = 1 AND [ID_Статуса] IS NULL) OR ([ID_Статуса] = @Original_ID_Статуса)) AND ((@IsNull_ДатаЗаказа = 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_Смены)));
  5626. SELECT ID_Заказа, ID_Столика, КоличествоКлиентов, ID_Статуса, ДатаЗаказа, СуммаЗаказа, ID_Смены FROM Заказы WHERE (ID_Заказа = @ID_Заказа)";
  5627. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5628. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Столика", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Столика", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5629. 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, "", "", ""));
  5630. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Статуса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5631. 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, "", "", ""));
  5632. 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, "", "", ""));
  5633. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Смены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Смены", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5634. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Заказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5635. 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, "", "", ""));
  5636. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Столика", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Столика", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5637. 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, "", "", ""));
  5638. 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, "", "", ""));
  5639. 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, "", "", ""));
  5640. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Статуса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5641. 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, "", "", ""));
  5642. 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, "", "", ""));
  5643. 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, "", "", ""));
  5644. 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, "", "", ""));
  5645. 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, "", "", ""));
  5646. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Смены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Смены", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5647. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Заказа", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5648. }
  5649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5651. private void InitConnection() {
  5652. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5653. this._connection.ConnectionString = global::Cafe12.Properties.Settings.Default.CHER_KAFEConnectionString;
  5654. }
  5655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5657. private void InitCommandCollection() {
  5658. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5659. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5660. this._commandCollection[0].Connection = this.Connection;
  5661. this._commandCollection[0].CommandText = "SELECT ID_Заказа, ID_Столика, КоличествоКлиентов, ID_Статуса, ДатаЗаказа, СуммаЗа" +
  5662. "каза, ID_Смены FROM dbo.Заказы";
  5663. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5664. }
  5665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5667. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5668. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5669. public virtual int Fill(CHER_KAFEDataSet.ЗаказыDataTable dataTable) {
  5670. this.Adapter.SelectCommand = this.CommandCollection[0];
  5671. if ((this.ClearBeforeFill == true)) {
  5672. dataTable.Clear();
  5673. }
  5674. int returnValue = this.Adapter.Fill(dataTable);
  5675. return returnValue;
  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.Select, true)]
  5681. public virtual CHER_KAFEDataSet.ЗаказыDataTable GetData() {
  5682. this.Adapter.SelectCommand = this.CommandCollection[0];
  5683. CHER_KAFEDataSet.ЗаказыDataTable dataTable = new CHER_KAFEDataSet.ЗаказыDataTable();
  5684. this.Adapter.Fill(dataTable);
  5685. return dataTable;
  5686. }
  5687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5689. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5690. public virtual int Update(CHER_KAFEDataSet.ЗаказыDataTable dataTable) {
  5691. return this.Adapter.Update(dataTable);
  5692. }
  5693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5695. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5696. public virtual int Update(CHER_KAFEDataSet dataSet) {
  5697. return this.Adapter.Update(dataSet, "Заказы");
  5698. }
  5699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5701. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5702. public virtual int Update(global::System.Data.DataRow dataRow) {
  5703. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5704. dataRow});
  5705. }
  5706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5708. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5709. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5710. return this.Adapter.Update(dataRows);
  5711. }
  5712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5714. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5715. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5716. public virtual int Delete(int Original_ID_Заказа, global::System.Nullable<int> Original_ID_Столика, global::System.Nullable<int> Original_КоличествоКлиентов, global::System.Nullable<int> Original_ID_Статуса, global::System.Nullable<global::System.DateTime> Original_ДатаЗаказа, global::System.Nullable<decimal> Original_СуммаЗаказа, global::System.Nullable<int> Original_ID_Смены) {
  5717. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Заказа));
  5718. if ((Original_ID_Столика.HasValue == true)) {
  5719. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5720. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ID_Столика.Value));
  5721. }
  5722. else {
  5723. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5724. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5725. }
  5726. if ((Original_КоличествоКлиентов.HasValue == true)) {
  5727. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5728. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_КоличествоКлиентов.Value));
  5729. }
  5730. else {
  5731. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5732. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5733. }
  5734. if ((Original_ID_Статуса.HasValue == true)) {
  5735. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5736. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_ID_Статуса.Value));
  5737. }
  5738. else {
  5739. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5740. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5741. }
  5742. if ((Original_ДатаЗаказа.HasValue == true)) {
  5743. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5744. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_ДатаЗаказа.Value));
  5745. }
  5746. else {
  5747. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5748. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5749. }
  5750. if ((Original_СуммаЗаказа.HasValue == true)) {
  5751. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  5752. this.Adapter.DeleteCommand.Parameters[10].Value = ((decimal)(Original_СуммаЗаказа.Value));
  5753. }
  5754. else {
  5755. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  5756. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5757. }
  5758. if ((Original_ID_Смены.HasValue == true)) {
  5759. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  5760. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_ID_Смены.Value));
  5761. }
  5762. else {
  5763. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  5764. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  5765. }
  5766. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5767. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5768. != global::System.Data.ConnectionState.Open)) {
  5769. this.Adapter.DeleteCommand.Connection.Open();
  5770. }
  5771. try {
  5772. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5773. return returnValue;
  5774. }
  5775. finally {
  5776. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5777. this.Adapter.DeleteCommand.Connection.Close();
  5778. }
  5779. }
  5780. }
  5781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5783. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5784. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5785. public virtual int Insert(global::System.Nullable<int> ID_Столика, global::System.Nullable<int> КоличествоКлиентов, global::System.Nullable<int> ID_Статуса, global::System.Nullable<global::System.DateTime> ДатаЗаказа, global::System.Nullable<decimal> СуммаЗаказа, global::System.Nullable<int> ID_Смены) {
  5786. if ((ID_Столика.HasValue == true)) {
  5787. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Столика.Value));
  5788. }
  5789. else {
  5790. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5791. }
  5792. if ((КоличествоКлиентов.HasValue == true)) {
  5793. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(КоличествоКлиентов.Value));
  5794. }
  5795. else {
  5796. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5797. }
  5798. if ((ID_Статуса.HasValue == true)) {
  5799. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(ID_Статуса.Value));
  5800. }
  5801. else {
  5802. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5803. }
  5804. if ((ДатаЗаказа.HasValue == true)) {
  5805. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(ДатаЗаказа.Value));
  5806. }
  5807. else {
  5808. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5809. }
  5810. if ((СуммаЗаказа.HasValue == true)) {
  5811. this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(СуммаЗаказа.Value));
  5812. }
  5813. else {
  5814. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5815. }
  5816. if ((ID_Смены.HasValue == true)) {
  5817. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ID_Смены.Value));
  5818. }
  5819. else {
  5820. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5821. }
  5822. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5823. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5824. != global::System.Data.ConnectionState.Open)) {
  5825. this.Adapter.InsertCommand.Connection.Open();
  5826. }
  5827. try {
  5828. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5829. return returnValue;
  5830. }
  5831. finally {
  5832. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5833. this.Adapter.InsertCommand.Connection.Close();
  5834. }
  5835. }
  5836. }
  5837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5839. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5840. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5841. public virtual int Update(global::System.Nullable<int> ID_Столика, global::System.Nullable<int> КоличествоКлиентов, global::System.Nullable<int> ID_Статуса, global::System.Nullable<global::System.DateTime> ДатаЗаказа, global::System.Nullable<decimal> СуммаЗаказа, global::System.Nullable<int> ID_Смены, int Original_ID_Заказа, global::System.Nullable<int> Original_ID_Столика, global::System.Nullable<int> Original_КоличествоКлиентов, global::System.Nullable<int> Original_ID_Статуса, global::System.Nullable<global::System.DateTime> Original_ДатаЗаказа, global::System.Nullable<decimal> Original_СуммаЗаказа, global::System.Nullable<int> Original_ID_Смены, int ID_Заказа) {
  5842. if ((ID_Столика.HasValue == true)) {
  5843. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Столика.Value));
  5844. }
  5845. else {
  5846. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5847. }
  5848. if ((КоличествоКлиентов.HasValue == true)) {
  5849. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(КоличествоКлиентов.Value));
  5850. }
  5851. else {
  5852. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5853. }
  5854. if ((ID_Статуса.HasValue == true)) {
  5855. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(ID_Статуса.Value));
  5856. }
  5857. else {
  5858. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5859. }
  5860. if ((ДатаЗаказа.HasValue == true)) {
  5861. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(ДатаЗаказа.Value));
  5862. }
  5863. else {
  5864. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5865. }
  5866. if ((СуммаЗаказа.HasValue == true)) {
  5867. this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(СуммаЗаказа.Value));
  5868. }
  5869. else {
  5870. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5871. }
  5872. if ((ID_Смены.HasValue == true)) {
  5873. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID_Смены.Value));
  5874. }
  5875. else {
  5876. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5877. }
  5878. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID_Заказа));
  5879. if ((Original_ID_Столика.HasValue == true)) {
  5880. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  5881. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_ID_Столика.Value));
  5882. }
  5883. else {
  5884. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  5885. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  5886. }
  5887. if ((Original_КоличествоКлиентов.HasValue == true)) {
  5888. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  5889. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_КоличествоКлиентов.Value));
  5890. }
  5891. else {
  5892. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  5893. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  5894. }
  5895. if ((Original_ID_Статуса.HasValue == true)) {
  5896. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  5897. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_ID_Статуса.Value));
  5898. }
  5899. else {
  5900. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  5901. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  5902. }
  5903. if ((Original_ДатаЗаказа.HasValue == true)) {
  5904. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  5905. this.Adapter.UpdateCommand.Parameters[14].Value = ((System.DateTime)(Original_ДатаЗаказа.Value));
  5906. }
  5907. else {
  5908. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  5909. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  5910. }
  5911. if ((Original_СуммаЗаказа.HasValue == true)) {
  5912. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  5913. this.Adapter.UpdateCommand.Parameters[16].Value = ((decimal)(Original_СуммаЗаказа.Value));
  5914. }
  5915. else {
  5916. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  5917. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  5918. }
  5919. if ((Original_ID_Смены.HasValue == true)) {
  5920. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  5921. this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_ID_Смены.Value));
  5922. }
  5923. else {
  5924. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  5925. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  5926. }
  5927. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(ID_Заказа));
  5928. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5929. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5930. != global::System.Data.ConnectionState.Open)) {
  5931. this.Adapter.UpdateCommand.Connection.Open();
  5932. }
  5933. try {
  5934. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5935. return returnValue;
  5936. }
  5937. finally {
  5938. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5939. this.Adapter.UpdateCommand.Connection.Close();
  5940. }
  5941. }
  5942. }
  5943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5945. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5946. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5947. public virtual int Update(global::System.Nullable<int> ID_Столика, global::System.Nullable<int> КоличествоКлиентов, global::System.Nullable<int> ID_Статуса, global::System.Nullable<global::System.DateTime> ДатаЗаказа, global::System.Nullable<decimal> СуммаЗаказа, global::System.Nullable<int> ID_Смены, int Original_ID_Заказа, global::System.Nullable<int> Original_ID_Столика, global::System.Nullable<int> Original_КоличествоКлиентов, global::System.Nullable<int> Original_ID_Статуса, global::System.Nullable<global::System.DateTime> Original_ДатаЗаказа, global::System.Nullable<decimal> Original_СуммаЗаказа, global::System.Nullable<int> Original_ID_Смены) {
  5948. return this.Update(ID_Столика, КоличествоКлиентов, ID_Статуса, ДатаЗаказа, СуммаЗаказа, ID_Смены, Original_ID_Заказа, Original_ID_Столика, Original_КоличествоКлиентов, Original_ID_Статуса, Original_ДатаЗаказа, Original_СуммаЗаказа, Original_ID_Смены, Original_ID_Заказа);
  5949. }
  5950. }
  5951. /// <summary>
  5952. ///Represents the connection and commands used to retrieve and save data.
  5953. ///</summary>
  5954. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5955. [global::System.ComponentModel.ToolboxItem(true)]
  5956. [global::System.ComponentModel.DataObjectAttribute(true)]
  5957. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5958. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5959. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5960. public partial class ОфициантыTableAdapter : global::System.ComponentModel.Component {
  5961. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5962. private global::System.Data.SqlClient.SqlConnection _connection;
  5963. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5964. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5965. private bool _clearBeforeFill;
  5966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5968. public ОфициантыTableAdapter() {
  5969. this.ClearBeforeFill = true;
  5970. }
  5971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5973. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5974. get {
  5975. if ((this._adapter == null)) {
  5976. this.InitAdapter();
  5977. }
  5978. return this._adapter;
  5979. }
  5980. }
  5981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5983. internal global::System.Data.SqlClient.SqlConnection Connection {
  5984. get {
  5985. if ((this._connection == null)) {
  5986. this.InitConnection();
  5987. }
  5988. return this._connection;
  5989. }
  5990. set {
  5991. this._connection = value;
  5992. if ((this.Adapter.InsertCommand != null)) {
  5993. this.Adapter.InsertCommand.Connection = value;
  5994. }
  5995. if ((this.Adapter.DeleteCommand != null)) {
  5996. this.Adapter.DeleteCommand.Connection = value;
  5997. }
  5998. if ((this.Adapter.UpdateCommand != null)) {
  5999. this.Adapter.UpdateCommand.Connection = value;
  6000. }
  6001. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6002. if ((this.CommandCollection[i] != null)) {
  6003. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6004. }
  6005. }
  6006. }
  6007. }
  6008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6010. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6011. get {
  6012. return this._transaction;
  6013. }
  6014. set {
  6015. this._transaction = value;
  6016. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6017. this.CommandCollection[i].Transaction = this._transaction;
  6018. }
  6019. if (((this.Adapter != null)
  6020. && (this.Adapter.DeleteCommand != null))) {
  6021. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6022. }
  6023. if (((this.Adapter != null)
  6024. && (this.Adapter.InsertCommand != null))) {
  6025. this.Adapter.InsertCommand.Transaction = this._transaction;
  6026. }
  6027. if (((this.Adapter != null)
  6028. && (this.Adapter.UpdateCommand != null))) {
  6029. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6030. }
  6031. }
  6032. }
  6033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6035. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6036. get {
  6037. if ((this._commandCollection == null)) {
  6038. this.InitCommandCollection();
  6039. }
  6040. return this._commandCollection;
  6041. }
  6042. }
  6043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6045. public bool ClearBeforeFill {
  6046. get {
  6047. return this._clearBeforeFill;
  6048. }
  6049. set {
  6050. this._clearBeforeFill = value;
  6051. }
  6052. }
  6053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6055. private void InitAdapter() {
  6056. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6057. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6058. tableMapping.SourceTable = "Table";
  6059. tableMapping.DataSetTable = "Официанты";
  6060. tableMapping.ColumnMappings.Add("ID_Официанта", "ID_Официанта");
  6061. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  6062. tableMapping.ColumnMappings.Add("Имя", "Имя");
  6063. this._adapter.TableMappings.Add(tableMapping);
  6064. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6065. this._adapter.DeleteCommand.Connection = this.Connection;
  6066. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Официанты] WHERE (([ID_Официанта] = @Original_ID_Официанта) AN" +
  6067. "D ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия" +
  6068. ")) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)))";
  6069. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6070. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Официанта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Официанта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6071. 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, "", "", ""));
  6072. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6073. 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, "", "", ""));
  6074. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6075. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6076. this._adapter.InsertCommand.Connection = this.Connection;
  6077. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Официанты] ([ID_Официанта], [Фамилия], [Имя]) VALUES (@ID_Офиц" +
  6078. "ианта, @Фамилия, @Имя);\r\nSELECT ID_Официанта, Фамилия, Имя FROM Официанты WHERE " +
  6079. "(ID_Официанта = @ID_Официанта)";
  6080. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6081. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Официанта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Официанта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6082. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6083. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6084. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6085. this._adapter.UpdateCommand.Connection = this.Connection;
  6086. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Официанты] SET [ID_Официанта] = @ID_Официанта, [Фамилия] = @Фамилия, [Имя] = @Имя WHERE (([ID_Официанта] = @Original_ID_Официанта) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)));
  6087. SELECT ID_Официанта, Фамилия, Имя FROM Официанты WHERE (ID_Официанта = @ID_Официанта)";
  6088. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6089. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Официанта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Официанта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6090. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6091. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6092. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Официанта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Официанта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6093. 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, "", "", ""));
  6094. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6095. 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, "", "", ""));
  6096. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6097. }
  6098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6100. private void InitConnection() {
  6101. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6102. this._connection.ConnectionString = global::Cafe12.Properties.Settings.Default.CHER_KAFEConnectionString;
  6103. }
  6104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6106. private void InitCommandCollection() {
  6107. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6108. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6109. this._commandCollection[0].Connection = this.Connection;
  6110. this._commandCollection[0].CommandText = "SELECT ID_Официанта, Фамилия, Имя FROM dbo.Официанты";
  6111. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6112. }
  6113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6115. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6116. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6117. public virtual int Fill(CHER_KAFEDataSet.ОфициантыDataTable dataTable) {
  6118. this.Adapter.SelectCommand = this.CommandCollection[0];
  6119. if ((this.ClearBeforeFill == true)) {
  6120. dataTable.Clear();
  6121. }
  6122. int returnValue = this.Adapter.Fill(dataTable);
  6123. return returnValue;
  6124. }
  6125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6127. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6128. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6129. public virtual CHER_KAFEDataSet.ОфициантыDataTable GetData() {
  6130. this.Adapter.SelectCommand = this.CommandCollection[0];
  6131. CHER_KAFEDataSet.ОфициантыDataTable dataTable = new CHER_KAFEDataSet.ОфициантыDataTable();
  6132. this.Adapter.Fill(dataTable);
  6133. return dataTable;
  6134. }
  6135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6137. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6138. public virtual int Update(CHER_KAFEDataSet.ОфициантыDataTable dataTable) {
  6139. return this.Adapter.Update(dataTable);
  6140. }
  6141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6143. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6144. public virtual int Update(CHER_KAFEDataSet dataSet) {
  6145. return this.Adapter.Update(dataSet, "Официанты");
  6146. }
  6147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6149. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6150. public virtual int Update(global::System.Data.DataRow dataRow) {
  6151. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6152. dataRow});
  6153. }
  6154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6156. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6157. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6158. return this.Adapter.Update(dataRows);
  6159. }
  6160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6162. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6163. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6164. public virtual int Delete(int Original_ID_Официанта, string Original_Фамилия, string Original_Имя) {
  6165. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Официанта));
  6166. if ((Original_Фамилия == null)) {
  6167. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6168. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6169. }
  6170. else {
  6171. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6172. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Фамилия));
  6173. }
  6174. if ((Original_Имя == null)) {
  6175. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6176. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6177. }
  6178. else {
  6179. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6180. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Имя));
  6181. }
  6182. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6183. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6184. != global::System.Data.ConnectionState.Open)) {
  6185. this.Adapter.DeleteCommand.Connection.Open();
  6186. }
  6187. try {
  6188. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6189. return returnValue;
  6190. }
  6191. finally {
  6192. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6193. this.Adapter.DeleteCommand.Connection.Close();
  6194. }
  6195. }
  6196. }
  6197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6199. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6200. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6201. public virtual int Insert(int ID_Официанта, string Фамилия, string Имя) {
  6202. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Официанта));
  6203. if ((Фамилия == null)) {
  6204. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6205. }
  6206. else {
  6207. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фамилия));
  6208. }
  6209. if ((Имя == null)) {
  6210. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6211. }
  6212. else {
  6213. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Имя));
  6214. }
  6215. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6216. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6217. != global::System.Data.ConnectionState.Open)) {
  6218. this.Adapter.InsertCommand.Connection.Open();
  6219. }
  6220. try {
  6221. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6222. return returnValue;
  6223. }
  6224. finally {
  6225. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6226. this.Adapter.InsertCommand.Connection.Close();
  6227. }
  6228. }
  6229. }
  6230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6232. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6233. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6234. public virtual int Update(int ID_Официанта, string Фамилия, string Имя, int Original_ID_Официанта, string Original_Фамилия, string Original_Имя) {
  6235. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Официанта));
  6236. if ((Фамилия == null)) {
  6237. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6238. }
  6239. else {
  6240. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фамилия));
  6241. }
  6242. if ((Имя == null)) {
  6243. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6244. }
  6245. else {
  6246. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Имя));
  6247. }
  6248. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID_Официанта));
  6249. if ((Original_Фамилия == null)) {
  6250. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  6251. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6252. }
  6253. else {
  6254. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  6255. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Фамилия));
  6256. }
  6257. if ((Original_Имя == null)) {
  6258. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  6259. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6260. }
  6261. else {
  6262. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  6263. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Имя));
  6264. }
  6265. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6266. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6267. != global::System.Data.ConnectionState.Open)) {
  6268. this.Adapter.UpdateCommand.Connection.Open();
  6269. }
  6270. try {
  6271. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6272. return returnValue;
  6273. }
  6274. finally {
  6275. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6276. this.Adapter.UpdateCommand.Connection.Close();
  6277. }
  6278. }
  6279. }
  6280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6282. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6283. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6284. public virtual int Update(string Фамилия, string Имя, int Original_ID_Официанта, string Original_Фамилия, string Original_Имя) {
  6285. return this.Update(Original_ID_Официанта, Фамилия, Имя, Original_ID_Официанта, Original_Фамилия, Original_Имя);
  6286. }
  6287. }
  6288. /// <summary>
  6289. ///Represents the connection and commands used to retrieve and save data.
  6290. ///</summary>
  6291. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6292. [global::System.ComponentModel.ToolboxItem(true)]
  6293. [global::System.ComponentModel.DataObjectAttribute(true)]
  6294. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6295. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6296. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6297. public partial class ПовараTableAdapter : global::System.ComponentModel.Component {
  6298. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6299. private global::System.Data.SqlClient.SqlConnection _connection;
  6300. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6301. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6302. private bool _clearBeforeFill;
  6303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6305. public ПовараTableAdapter() {
  6306. this.ClearBeforeFill = true;
  6307. }
  6308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6310. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6311. get {
  6312. if ((this._adapter == null)) {
  6313. this.InitAdapter();
  6314. }
  6315. return this._adapter;
  6316. }
  6317. }
  6318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6320. internal global::System.Data.SqlClient.SqlConnection Connection {
  6321. get {
  6322. if ((this._connection == null)) {
  6323. this.InitConnection();
  6324. }
  6325. return this._connection;
  6326. }
  6327. set {
  6328. this._connection = value;
  6329. if ((this.Adapter.InsertCommand != null)) {
  6330. this.Adapter.InsertCommand.Connection = value;
  6331. }
  6332. if ((this.Adapter.DeleteCommand != null)) {
  6333. this.Adapter.DeleteCommand.Connection = value;
  6334. }
  6335. if ((this.Adapter.UpdateCommand != null)) {
  6336. this.Adapter.UpdateCommand.Connection = value;
  6337. }
  6338. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6339. if ((this.CommandCollection[i] != null)) {
  6340. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6341. }
  6342. }
  6343. }
  6344. }
  6345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6347. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6348. get {
  6349. return this._transaction;
  6350. }
  6351. set {
  6352. this._transaction = value;
  6353. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6354. this.CommandCollection[i].Transaction = this._transaction;
  6355. }
  6356. if (((this.Adapter != null)
  6357. && (this.Adapter.DeleteCommand != null))) {
  6358. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6359. }
  6360. if (((this.Adapter != null)
  6361. && (this.Adapter.InsertCommand != null))) {
  6362. this.Adapter.InsertCommand.Transaction = this._transaction;
  6363. }
  6364. if (((this.Adapter != null)
  6365. && (this.Adapter.UpdateCommand != null))) {
  6366. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6367. }
  6368. }
  6369. }
  6370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6372. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6373. get {
  6374. if ((this._commandCollection == null)) {
  6375. this.InitCommandCollection();
  6376. }
  6377. return this._commandCollection;
  6378. }
  6379. }
  6380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6382. public bool ClearBeforeFill {
  6383. get {
  6384. return this._clearBeforeFill;
  6385. }
  6386. set {
  6387. this._clearBeforeFill = value;
  6388. }
  6389. }
  6390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6392. private void InitAdapter() {
  6393. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6394. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6395. tableMapping.SourceTable = "Table";
  6396. tableMapping.DataSetTable = "Повара";
  6397. tableMapping.ColumnMappings.Add("ID_Повара", "ID_Повара");
  6398. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  6399. tableMapping.ColumnMappings.Add("Имя", "Имя");
  6400. this._adapter.TableMappings.Add(tableMapping);
  6401. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6402. this._adapter.DeleteCommand.Connection = this.Connection;
  6403. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Повара] WHERE (([ID_Повара] = @Original_ID_Повара) AND ((@IsNu" +
  6404. "ll_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((" +
  6405. "@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)))";
  6406. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6407. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Повара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Повара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6408. 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, "", "", ""));
  6409. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6410. 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, "", "", ""));
  6411. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6412. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6413. this._adapter.InsertCommand.Connection = this.Connection;
  6414. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Повара] ([ID_Повара], [Фамилия], [Имя]) VALUES (@ID_Повара, @Ф" +
  6415. "амилия, @Имя);\r\nSELECT ID_Повара, Фамилия, Имя FROM Повара WHERE (ID_Повара = @I" +
  6416. "D_Повара)";
  6417. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6418. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Повара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Повара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6419. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6420. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6421. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6422. this._adapter.UpdateCommand.Connection = this.Connection;
  6423. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Повара] SET [ID_Повара] = @ID_Повара, [Фамилия] = @Фамилия, [Имя] = @Имя WHERE (([ID_Повара] = @Original_ID_Повара) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)));
  6424. SELECT ID_Повара, Фамилия, Имя FROM Повара WHERE (ID_Повара = @ID_Повара)";
  6425. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6426. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Повара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Повара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6427. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6428. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6429. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Повара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Повара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6430. 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, "", "", ""));
  6431. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6432. 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, "", "", ""));
  6433. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6434. }
  6435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6437. private void InitConnection() {
  6438. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6439. this._connection.ConnectionString = global::Cafe12.Properties.Settings.Default.CHER_KAFEConnectionString;
  6440. }
  6441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6443. private void InitCommandCollection() {
  6444. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6445. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6446. this._commandCollection[0].Connection = this.Connection;
  6447. this._commandCollection[0].CommandText = "SELECT ID_Повара, Фамилия, Имя FROM dbo.Повара";
  6448. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6449. }
  6450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6452. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6453. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6454. public virtual int Fill(CHER_KAFEDataSet.ПовараDataTable dataTable) {
  6455. this.Adapter.SelectCommand = this.CommandCollection[0];
  6456. if ((this.ClearBeforeFill == true)) {
  6457. dataTable.Clear();
  6458. }
  6459. int returnValue = this.Adapter.Fill(dataTable);
  6460. return returnValue;
  6461. }
  6462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6464. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6465. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6466. public virtual CHER_KAFEDataSet.ПовараDataTable GetData() {
  6467. this.Adapter.SelectCommand = this.CommandCollection[0];
  6468. CHER_KAFEDataSet.ПовараDataTable dataTable = new CHER_KAFEDataSet.ПовараDataTable();
  6469. this.Adapter.Fill(dataTable);
  6470. return dataTable;
  6471. }
  6472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6474. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6475. public virtual int Update(CHER_KAFEDataSet.ПовараDataTable dataTable) {
  6476. return this.Adapter.Update(dataTable);
  6477. }
  6478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6480. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6481. public virtual int Update(CHER_KAFEDataSet dataSet) {
  6482. return this.Adapter.Update(dataSet, "Повара");
  6483. }
  6484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6486. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6487. public virtual int Update(global::System.Data.DataRow dataRow) {
  6488. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6489. dataRow});
  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. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6495. return this.Adapter.Update(dataRows);
  6496. }
  6497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6499. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6500. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6501. public virtual int Delete(int Original_ID_Повара, string Original_Фамилия, string Original_Имя) {
  6502. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Повара));
  6503. if ((Original_Фамилия == null)) {
  6504. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6505. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6506. }
  6507. else {
  6508. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6509. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Фамилия));
  6510. }
  6511. if ((Original_Имя == null)) {
  6512. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6513. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6514. }
  6515. else {
  6516. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6517. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Имя));
  6518. }
  6519. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6520. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6521. != global::System.Data.ConnectionState.Open)) {
  6522. this.Adapter.DeleteCommand.Connection.Open();
  6523. }
  6524. try {
  6525. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6526. return returnValue;
  6527. }
  6528. finally {
  6529. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6530. this.Adapter.DeleteCommand.Connection.Close();
  6531. }
  6532. }
  6533. }
  6534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6536. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6537. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6538. public virtual int Insert(int ID_Повара, string Фамилия, string Имя) {
  6539. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Повара));
  6540. if ((Фамилия == null)) {
  6541. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6542. }
  6543. else {
  6544. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фамилия));
  6545. }
  6546. if ((Имя == null)) {
  6547. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6548. }
  6549. else {
  6550. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Имя));
  6551. }
  6552. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6553. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6554. != global::System.Data.ConnectionState.Open)) {
  6555. this.Adapter.InsertCommand.Connection.Open();
  6556. }
  6557. try {
  6558. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6559. return returnValue;
  6560. }
  6561. finally {
  6562. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6563. this.Adapter.InsertCommand.Connection.Close();
  6564. }
  6565. }
  6566. }
  6567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6569. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6570. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6571. public virtual int Update(int ID_Повара, string Фамилия, string Имя, int Original_ID_Повара, string Original_Фамилия, string Original_Имя) {
  6572. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Повара));
  6573. if ((Фамилия == null)) {
  6574. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6575. }
  6576. else {
  6577. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фамилия));
  6578. }
  6579. if ((Имя == null)) {
  6580. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6581. }
  6582. else {
  6583. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Имя));
  6584. }
  6585. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID_Повара));
  6586. if ((Original_Фамилия == null)) {
  6587. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  6588. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6589. }
  6590. else {
  6591. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  6592. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Фамилия));
  6593. }
  6594. if ((Original_Имя == null)) {
  6595. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  6596. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6597. }
  6598. else {
  6599. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  6600. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Имя));
  6601. }
  6602. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6603. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6604. != global::System.Data.ConnectionState.Open)) {
  6605. this.Adapter.UpdateCommand.Connection.Open();
  6606. }
  6607. try {
  6608. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6609. return returnValue;
  6610. }
  6611. finally {
  6612. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6613. this.Adapter.UpdateCommand.Connection.Close();
  6614. }
  6615. }
  6616. }
  6617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6619. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6620. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6621. public virtual int Update(string Фамилия, string Имя, int Original_ID_Повара, string Original_Фамилия, string Original_Имя) {
  6622. return this.Update(Original_ID_Повара, Фамилия, Имя, Original_ID_Повара, Original_Фамилия, Original_Имя);
  6623. }
  6624. }
  6625. /// <summary>
  6626. ///Represents the connection and commands used to retrieve and save data.
  6627. ///</summary>
  6628. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6629. [global::System.ComponentModel.ToolboxItem(true)]
  6630. [global::System.ComponentModel.DataObjectAttribute(true)]
  6631. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6632. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6633. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6634. public partial class ПользователиTableAdapter : global::System.ComponentModel.Component {
  6635. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6636. private global::System.Data.SqlClient.SqlConnection _connection;
  6637. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6638. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6639. private bool _clearBeforeFill;
  6640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6642. public ПользователиTableAdapter() {
  6643. this.ClearBeforeFill = true;
  6644. }
  6645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6647. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6648. get {
  6649. if ((this._adapter == null)) {
  6650. this.InitAdapter();
  6651. }
  6652. return this._adapter;
  6653. }
  6654. }
  6655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6657. internal global::System.Data.SqlClient.SqlConnection Connection {
  6658. get {
  6659. if ((this._connection == null)) {
  6660. this.InitConnection();
  6661. }
  6662. return this._connection;
  6663. }
  6664. set {
  6665. this._connection = value;
  6666. if ((this.Adapter.InsertCommand != null)) {
  6667. this.Adapter.InsertCommand.Connection = value;
  6668. }
  6669. if ((this.Adapter.DeleteCommand != null)) {
  6670. this.Adapter.DeleteCommand.Connection = value;
  6671. }
  6672. if ((this.Adapter.UpdateCommand != null)) {
  6673. this.Adapter.UpdateCommand.Connection = value;
  6674. }
  6675. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6676. if ((this.CommandCollection[i] != null)) {
  6677. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6678. }
  6679. }
  6680. }
  6681. }
  6682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6684. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6685. get {
  6686. return this._transaction;
  6687. }
  6688. set {
  6689. this._transaction = value;
  6690. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6691. this.CommandCollection[i].Transaction = this._transaction;
  6692. }
  6693. if (((this.Adapter != null)
  6694. && (this.Adapter.DeleteCommand != null))) {
  6695. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6696. }
  6697. if (((this.Adapter != null)
  6698. && (this.Adapter.InsertCommand != null))) {
  6699. this.Adapter.InsertCommand.Transaction = this._transaction;
  6700. }
  6701. if (((this.Adapter != null)
  6702. && (this.Adapter.UpdateCommand != null))) {
  6703. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6704. }
  6705. }
  6706. }
  6707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6709. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6710. get {
  6711. if ((this._commandCollection == null)) {
  6712. this.InitCommandCollection();
  6713. }
  6714. return this._commandCollection;
  6715. }
  6716. }
  6717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6719. public bool ClearBeforeFill {
  6720. get {
  6721. return this._clearBeforeFill;
  6722. }
  6723. set {
  6724. this._clearBeforeFill = value;
  6725. }
  6726. }
  6727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6729. private void InitAdapter() {
  6730. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6731. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6732. tableMapping.SourceTable = "Table";
  6733. tableMapping.DataSetTable = "Пользователи";
  6734. tableMapping.ColumnMappings.Add("ID_Пользователя", "ID_Пользователя");
  6735. tableMapping.ColumnMappings.Add("Логин", "Логин");
  6736. tableMapping.ColumnMappings.Add("Пароль", "Пароль");
  6737. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  6738. tableMapping.ColumnMappings.Add("ID_Роли", "ID_Роли");
  6739. tableMapping.ColumnMappings.Add("ID_Статуса", "ID_Статуса");
  6740. this._adapter.TableMappings.Add(tableMapping);
  6741. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6742. this._adapter.DeleteCommand.Connection = this.Connection;
  6743. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Пользователи] WHERE (([ID_Пользователя] = @Original_ID_Пользователя) AND ((@IsNull_Логин = 1 AND [Логин] IS NULL) OR ([Логин] = @Original_Логин)) AND ((@IsNull_Пароль = 1 AND [Пароль] IS NULL) OR ([Пароль] = @Original_Пароль)) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_ID_Роли = 1 AND [ID_Роли] IS NULL) OR ([ID_Роли] = @Original_ID_Роли)) AND ((@IsNull_ID_Статуса = 1 AND [ID_Статуса] IS NULL) OR ([ID_Статуса] = @Original_ID_Статуса)))";
  6744. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6745. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Пользователя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пользователя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6746. 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, "", "", ""));
  6747. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6748. 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, "", "", ""));
  6749. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6750. 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, "", "", ""));
  6751. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6752. 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, "", "", ""));
  6753. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Роли", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Роли", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6754. 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, "", "", ""));
  6755. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Статуса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6756. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6757. this._adapter.InsertCommand.Connection = this.Connection;
  6758. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Пользователи] ([ID_Пользователя], [Логин], [Пароль], [Фамилия], [ID_Роли], [ID_Статуса]) VALUES (@ID_Пользователя, @Логин, @Пароль, @Фамилия, @ID_Роли, @ID_Статуса);
  6759. SELECT ID_Пользователя, Логин, Пароль, Фамилия, ID_Роли, ID_Статуса FROM Пользователи WHERE (ID_Пользователя = @ID_Пользователя)";
  6760. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6761. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Пользователя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пользователя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6762. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6763. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6764. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6765. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Роли", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Роли", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6766. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Статуса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6767. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6768. this._adapter.UpdateCommand.Connection = this.Connection;
  6769. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Пользователи] SET [ID_Пользователя] = @ID_Пользователя, [Логин] = @Логин, [Пароль] = @Пароль, [Фамилия] = @Фамилия, [ID_Роли] = @ID_Роли, [ID_Статуса] = @ID_Статуса WHERE (([ID_Пользователя] = @Original_ID_Пользователя) AND ((@IsNull_Логин = 1 AND [Логин] IS NULL) OR ([Логин] = @Original_Логин)) AND ((@IsNull_Пароль = 1 AND [Пароль] IS NULL) OR ([Пароль] = @Original_Пароль)) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_ID_Роли = 1 AND [ID_Роли] IS NULL) OR ([ID_Роли] = @Original_ID_Роли)) AND ((@IsNull_ID_Статуса = 1 AND [ID_Статуса] IS NULL) OR ([ID_Статуса] = @Original_ID_Статуса)));
  6770. SELECT ID_Пользователя, Логин, Пароль, Фамилия, ID_Роли, ID_Статуса FROM Пользователи WHERE (ID_Пользователя = @ID_Пользователя)";
  6771. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6772. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Пользователя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пользователя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6773. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6774. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6775. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6776. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Роли", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Роли", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6777. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Статуса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6778. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Пользователя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Пользователя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6779. 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, "", "", ""));
  6780. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Логин", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Логин", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6781. 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, "", "", ""));
  6782. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пароль", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пароль", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6783. 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, "", "", ""));
  6784. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6785. 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, "", "", ""));
  6786. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Роли", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Роли", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6787. 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, "", "", ""));
  6788. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Статуса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6789. }
  6790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6792. private void InitConnection() {
  6793. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6794. this._connection.ConnectionString = global::Cafe12.Properties.Settings.Default.CHER_KAFEConnectionString;
  6795. }
  6796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6798. private void InitCommandCollection() {
  6799. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6800. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6801. this._commandCollection[0].Connection = this.Connection;
  6802. this._commandCollection[0].CommandText = "SELECT ID_Пользователя, Логин, Пароль, Фамилия, ID_Роли, ID_Статуса FROM dbo.Поль" +
  6803. "зователи";
  6804. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6805. }
  6806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6808. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6809. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6810. public virtual int Fill(CHER_KAFEDataSet.ПользователиDataTable dataTable) {
  6811. this.Adapter.SelectCommand = this.CommandCollection[0];
  6812. if ((this.ClearBeforeFill == true)) {
  6813. dataTable.Clear();
  6814. }
  6815. int returnValue = this.Adapter.Fill(dataTable);
  6816. return returnValue;
  6817. }
  6818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6820. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6821. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6822. public virtual CHER_KAFEDataSet.ПользователиDataTable GetData() {
  6823. this.Adapter.SelectCommand = this.CommandCollection[0];
  6824. CHER_KAFEDataSet.ПользователиDataTable dataTable = new CHER_KAFEDataSet.ПользователиDataTable();
  6825. this.Adapter.Fill(dataTable);
  6826. return dataTable;
  6827. }
  6828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6830. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6831. public virtual int Update(CHER_KAFEDataSet.ПользователиDataTable dataTable) {
  6832. return this.Adapter.Update(dataTable);
  6833. }
  6834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6836. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6837. public virtual int Update(CHER_KAFEDataSet dataSet) {
  6838. return this.Adapter.Update(dataSet, "Пользователи");
  6839. }
  6840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6842. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6843. public virtual int Update(global::System.Data.DataRow dataRow) {
  6844. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6845. dataRow});
  6846. }
  6847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6849. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6850. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6851. return this.Adapter.Update(dataRows);
  6852. }
  6853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6855. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6856. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6857. public virtual int Delete(int Original_ID_Пользователя, string Original_Логин, string Original_Пароль, string Original_Фамилия, global::System.Nullable<int> Original_ID_Роли, global::System.Nullable<int> Original_ID_Статуса) {
  6858. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Пользователя));
  6859. if ((Original_Логин == null)) {
  6860. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6861. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6862. }
  6863. else {
  6864. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6865. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Логин));
  6866. }
  6867. if ((Original_Пароль == null)) {
  6868. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6869. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6870. }
  6871. else {
  6872. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6873. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Пароль));
  6874. }
  6875. if ((Original_Фамилия == null)) {
  6876. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6877. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6878. }
  6879. else {
  6880. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6881. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Фамилия));
  6882. }
  6883. if ((Original_ID_Роли.HasValue == true)) {
  6884. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6885. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_ID_Роли.Value));
  6886. }
  6887. else {
  6888. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6889. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6890. }
  6891. if ((Original_ID_Статуса.HasValue == true)) {
  6892. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6893. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_ID_Статуса.Value));
  6894. }
  6895. else {
  6896. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6897. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6898. }
  6899. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6900. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6901. != global::System.Data.ConnectionState.Open)) {
  6902. this.Adapter.DeleteCommand.Connection.Open();
  6903. }
  6904. try {
  6905. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6906. return returnValue;
  6907. }
  6908. finally {
  6909. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6910. this.Adapter.DeleteCommand.Connection.Close();
  6911. }
  6912. }
  6913. }
  6914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6916. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6917. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6918. public virtual int Insert(int ID_Пользователя, string Логин, string Пароль, string Фамилия, global::System.Nullable<int> ID_Роли, global::System.Nullable<int> ID_Статуса) {
  6919. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Пользователя));
  6920. if ((Логин == null)) {
  6921. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6922. }
  6923. else {
  6924. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Логин));
  6925. }
  6926. if ((Пароль == null)) {
  6927. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6928. }
  6929. else {
  6930. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Пароль));
  6931. }
  6932. if ((Фамилия == null)) {
  6933. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6934. }
  6935. else {
  6936. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Фамилия));
  6937. }
  6938. if ((ID_Роли.HasValue == true)) {
  6939. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(ID_Роли.Value));
  6940. }
  6941. else {
  6942. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6943. }
  6944. if ((ID_Статуса.HasValue == true)) {
  6945. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ID_Статуса.Value));
  6946. }
  6947. else {
  6948. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6949. }
  6950. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6951. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6952. != global::System.Data.ConnectionState.Open)) {
  6953. this.Adapter.InsertCommand.Connection.Open();
  6954. }
  6955. try {
  6956. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6957. return returnValue;
  6958. }
  6959. finally {
  6960. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6961. this.Adapter.InsertCommand.Connection.Close();
  6962. }
  6963. }
  6964. }
  6965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6967. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6968. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6969. public virtual int Update(int ID_Пользователя, string Логин, string Пароль, string Фамилия, global::System.Nullable<int> ID_Роли, global::System.Nullable<int> ID_Статуса, int Original_ID_Пользователя, string Original_Логин, string Original_Пароль, string Original_Фамилия, global::System.Nullable<int> Original_ID_Роли, global::System.Nullable<int> Original_ID_Статуса) {
  6970. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Пользователя));
  6971. if ((Логин == null)) {
  6972. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6973. }
  6974. else {
  6975. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Логин));
  6976. }
  6977. if ((Пароль == null)) {
  6978. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6979. }
  6980. else {
  6981. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Пароль));
  6982. }
  6983. if ((Фамилия == null)) {
  6984. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6985. }
  6986. else {
  6987. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Фамилия));
  6988. }
  6989. if ((ID_Роли.HasValue == true)) {
  6990. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ID_Роли.Value));
  6991. }
  6992. else {
  6993. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6994. }
  6995. if ((ID_Статуса.HasValue == true)) {
  6996. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID_Статуса.Value));
  6997. }
  6998. else {
  6999. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7000. }
  7001. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID_Пользователя));
  7002. if ((Original_Логин == null)) {
  7003. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  7004. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7005. }
  7006. else {
  7007. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  7008. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Логин));
  7009. }
  7010. if ((Original_Пароль == null)) {
  7011. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  7012. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7013. }
  7014. else {
  7015. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  7016. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Пароль));
  7017. }
  7018. if ((Original_Фамилия == null)) {
  7019. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  7020. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7021. }
  7022. else {
  7023. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  7024. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Фамилия));
  7025. }
  7026. if ((Original_ID_Роли.HasValue == true)) {
  7027. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  7028. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_ID_Роли.Value));
  7029. }
  7030. else {
  7031. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  7032. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  7033. }
  7034. if ((Original_ID_Статуса.HasValue == true)) {
  7035. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  7036. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_ID_Статуса.Value));
  7037. }
  7038. else {
  7039. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  7040. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  7041. }
  7042. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7043. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7044. != global::System.Data.ConnectionState.Open)) {
  7045. this.Adapter.UpdateCommand.Connection.Open();
  7046. }
  7047. try {
  7048. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7049. return returnValue;
  7050. }
  7051. finally {
  7052. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7053. this.Adapter.UpdateCommand.Connection.Close();
  7054. }
  7055. }
  7056. }
  7057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7059. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7060. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7061. public virtual int Update(string Логин, string Пароль, string Фамилия, global::System.Nullable<int> ID_Роли, global::System.Nullable<int> ID_Статуса, int Original_ID_Пользователя, string Original_Логин, string Original_Пароль, string Original_Фамилия, global::System.Nullable<int> Original_ID_Роли, global::System.Nullable<int> Original_ID_Статуса) {
  7062. return this.Update(Original_ID_Пользователя, Логин, Пароль, Фамилия, ID_Роли, ID_Статуса, Original_ID_Пользователя, Original_Логин, Original_Пароль, Original_Фамилия, Original_ID_Роли, Original_ID_Статуса);
  7063. }
  7064. }
  7065. /// <summary>
  7066. ///Represents the connection and commands used to retrieve and save data.
  7067. ///</summary>
  7068. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7069. [global::System.ComponentModel.ToolboxItem(true)]
  7070. [global::System.ComponentModel.DataObjectAttribute(true)]
  7071. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7072. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7073. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7074. public partial class РолиTableAdapter : global::System.ComponentModel.Component {
  7075. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7076. private global::System.Data.SqlClient.SqlConnection _connection;
  7077. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7078. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7079. private bool _clearBeforeFill;
  7080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7082. public РолиTableAdapter() {
  7083. this.ClearBeforeFill = true;
  7084. }
  7085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7087. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7088. get {
  7089. if ((this._adapter == null)) {
  7090. this.InitAdapter();
  7091. }
  7092. return this._adapter;
  7093. }
  7094. }
  7095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7097. internal global::System.Data.SqlClient.SqlConnection Connection {
  7098. get {
  7099. if ((this._connection == null)) {
  7100. this.InitConnection();
  7101. }
  7102. return this._connection;
  7103. }
  7104. set {
  7105. this._connection = value;
  7106. if ((this.Adapter.InsertCommand != null)) {
  7107. this.Adapter.InsertCommand.Connection = value;
  7108. }
  7109. if ((this.Adapter.DeleteCommand != null)) {
  7110. this.Adapter.DeleteCommand.Connection = value;
  7111. }
  7112. if ((this.Adapter.UpdateCommand != null)) {
  7113. this.Adapter.UpdateCommand.Connection = value;
  7114. }
  7115. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7116. if ((this.CommandCollection[i] != null)) {
  7117. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7118. }
  7119. }
  7120. }
  7121. }
  7122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7124. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7125. get {
  7126. return this._transaction;
  7127. }
  7128. set {
  7129. this._transaction = value;
  7130. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7131. this.CommandCollection[i].Transaction = this._transaction;
  7132. }
  7133. if (((this.Adapter != null)
  7134. && (this.Adapter.DeleteCommand != null))) {
  7135. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7136. }
  7137. if (((this.Adapter != null)
  7138. && (this.Adapter.InsertCommand != null))) {
  7139. this.Adapter.InsertCommand.Transaction = this._transaction;
  7140. }
  7141. if (((this.Adapter != null)
  7142. && (this.Adapter.UpdateCommand != null))) {
  7143. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7144. }
  7145. }
  7146. }
  7147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7149. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7150. get {
  7151. if ((this._commandCollection == null)) {
  7152. this.InitCommandCollection();
  7153. }
  7154. return this._commandCollection;
  7155. }
  7156. }
  7157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7159. public bool ClearBeforeFill {
  7160. get {
  7161. return this._clearBeforeFill;
  7162. }
  7163. set {
  7164. this._clearBeforeFill = value;
  7165. }
  7166. }
  7167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7169. private void InitAdapter() {
  7170. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7171. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7172. tableMapping.SourceTable = "Table";
  7173. tableMapping.DataSetTable = "Роли";
  7174. tableMapping.ColumnMappings.Add("id_Роли", "id_Роли");
  7175. tableMapping.ColumnMappings.Add("Название", "Название");
  7176. this._adapter.TableMappings.Add(tableMapping);
  7177. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7178. this._adapter.DeleteCommand.Connection = this.Connection;
  7179. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Роли] WHERE (([id_Роли] = @Original_id_Роли) AND ((@IsNull_Наз" +
  7180. "вание = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)))";
  7181. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7182. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_Роли", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Роли", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7183. 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, "", "", ""));
  7184. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7185. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7186. this._adapter.InsertCommand.Connection = this.Connection;
  7187. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Роли] ([id_Роли], [Название]) VALUES (@id_Роли, @Название);\r\nS" +
  7188. "ELECT id_Роли, Название FROM Роли WHERE (id_Роли = @id_Роли)";
  7189. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7190. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_Роли", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Роли", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7191. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7192. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7193. this._adapter.UpdateCommand.Connection = this.Connection;
  7194. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Роли] SET [id_Роли] = @id_Роли, [Название] = @Название WHERE (([id_Роли] = @Original_id_Роли) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)));
  7195. SELECT id_Роли, Название FROM Роли WHERE (id_Роли = @id_Роли)";
  7196. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7197. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_Роли", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Роли", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7198. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7199. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_Роли", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Роли", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7200. 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, "", "", ""));
  7201. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7202. }
  7203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7205. private void InitConnection() {
  7206. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7207. this._connection.ConnectionString = global::Cafe12.Properties.Settings.Default.CHER_KAFEConnectionString;
  7208. }
  7209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7211. private void InitCommandCollection() {
  7212. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7213. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7214. this._commandCollection[0].Connection = this.Connection;
  7215. this._commandCollection[0].CommandText = "SELECT id_Роли, Название FROM dbo.Роли";
  7216. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7217. }
  7218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7220. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7221. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7222. public virtual int Fill(CHER_KAFEDataSet.РолиDataTable dataTable) {
  7223. this.Adapter.SelectCommand = this.CommandCollection[0];
  7224. if ((this.ClearBeforeFill == true)) {
  7225. dataTable.Clear();
  7226. }
  7227. int returnValue = this.Adapter.Fill(dataTable);
  7228. return returnValue;
  7229. }
  7230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7232. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7233. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7234. public virtual CHER_KAFEDataSet.РолиDataTable GetData() {
  7235. this.Adapter.SelectCommand = this.CommandCollection[0];
  7236. CHER_KAFEDataSet.РолиDataTable dataTable = new CHER_KAFEDataSet.РолиDataTable();
  7237. this.Adapter.Fill(dataTable);
  7238. return dataTable;
  7239. }
  7240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7242. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7243. public virtual int Update(CHER_KAFEDataSet.РолиDataTable dataTable) {
  7244. return this.Adapter.Update(dataTable);
  7245. }
  7246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7248. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7249. public virtual int Update(CHER_KAFEDataSet dataSet) {
  7250. return this.Adapter.Update(dataSet, "Роли");
  7251. }
  7252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7254. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7255. public virtual int Update(global::System.Data.DataRow dataRow) {
  7256. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7257. dataRow});
  7258. }
  7259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7261. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7262. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7263. return this.Adapter.Update(dataRows);
  7264. }
  7265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7267. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7268. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7269. public virtual int Delete(int Original_id_Роли, string Original_Название) {
  7270. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_Роли));
  7271. if ((Original_Название == null)) {
  7272. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7273. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7274. }
  7275. else {
  7276. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7277. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  7278. }
  7279. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7280. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7281. != global::System.Data.ConnectionState.Open)) {
  7282. this.Adapter.DeleteCommand.Connection.Open();
  7283. }
  7284. try {
  7285. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7286. return returnValue;
  7287. }
  7288. finally {
  7289. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7290. this.Adapter.DeleteCommand.Connection.Close();
  7291. }
  7292. }
  7293. }
  7294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7296. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7297. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7298. public virtual int Insert(int id_Роли, string Название) {
  7299. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id_Роли));
  7300. if ((Название == null)) {
  7301. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7302. }
  7303. else {
  7304. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название));
  7305. }
  7306. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7307. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7308. != global::System.Data.ConnectionState.Open)) {
  7309. this.Adapter.InsertCommand.Connection.Open();
  7310. }
  7311. try {
  7312. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7313. return returnValue;
  7314. }
  7315. finally {
  7316. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7317. this.Adapter.InsertCommand.Connection.Close();
  7318. }
  7319. }
  7320. }
  7321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7323. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7324. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7325. public virtual int Update(int id_Роли, string Название, int Original_id_Роли, string Original_Название) {
  7326. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id_Роли));
  7327. if ((Название == null)) {
  7328. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7329. }
  7330. else {
  7331. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Название));
  7332. }
  7333. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_id_Роли));
  7334. if ((Original_Название == null)) {
  7335. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7336. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7337. }
  7338. else {
  7339. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7340. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Название));
  7341. }
  7342. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7343. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7344. != global::System.Data.ConnectionState.Open)) {
  7345. this.Adapter.UpdateCommand.Connection.Open();
  7346. }
  7347. try {
  7348. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7349. return returnValue;
  7350. }
  7351. finally {
  7352. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7353. this.Adapter.UpdateCommand.Connection.Close();
  7354. }
  7355. }
  7356. }
  7357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7359. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7360. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7361. public virtual int Update(string Название, int Original_id_Роли, string Original_Название) {
  7362. return this.Update(Original_id_Роли, Название, Original_id_Роли, Original_Название);
  7363. }
  7364. }
  7365. /// <summary>
  7366. ///Represents the connection and commands used to retrieve and save data.
  7367. ///</summary>
  7368. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7369. [global::System.ComponentModel.ToolboxItem(true)]
  7370. [global::System.ComponentModel.DataObjectAttribute(true)]
  7371. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7372. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7373. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7374. public partial class СменыTableAdapter : global::System.ComponentModel.Component {
  7375. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7376. private global::System.Data.SqlClient.SqlConnection _connection;
  7377. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7378. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7379. private bool _clearBeforeFill;
  7380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7382. public СменыTableAdapter() {
  7383. this.ClearBeforeFill = true;
  7384. }
  7385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7387. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7388. get {
  7389. if ((this._adapter == null)) {
  7390. this.InitAdapter();
  7391. }
  7392. return this._adapter;
  7393. }
  7394. }
  7395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7397. internal global::System.Data.SqlClient.SqlConnection Connection {
  7398. get {
  7399. if ((this._connection == null)) {
  7400. this.InitConnection();
  7401. }
  7402. return this._connection;
  7403. }
  7404. set {
  7405. this._connection = value;
  7406. if ((this.Adapter.InsertCommand != null)) {
  7407. this.Adapter.InsertCommand.Connection = value;
  7408. }
  7409. if ((this.Adapter.DeleteCommand != null)) {
  7410. this.Adapter.DeleteCommand.Connection = value;
  7411. }
  7412. if ((this.Adapter.UpdateCommand != null)) {
  7413. this.Adapter.UpdateCommand.Connection = value;
  7414. }
  7415. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7416. if ((this.CommandCollection[i] != null)) {
  7417. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7418. }
  7419. }
  7420. }
  7421. }
  7422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7424. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7425. get {
  7426. return this._transaction;
  7427. }
  7428. set {
  7429. this._transaction = value;
  7430. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7431. this.CommandCollection[i].Transaction = this._transaction;
  7432. }
  7433. if (((this.Adapter != null)
  7434. && (this.Adapter.DeleteCommand != null))) {
  7435. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7436. }
  7437. if (((this.Adapter != null)
  7438. && (this.Adapter.InsertCommand != null))) {
  7439. this.Adapter.InsertCommand.Transaction = this._transaction;
  7440. }
  7441. if (((this.Adapter != null)
  7442. && (this.Adapter.UpdateCommand != null))) {
  7443. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7444. }
  7445. }
  7446. }
  7447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7449. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7450. get {
  7451. if ((this._commandCollection == null)) {
  7452. this.InitCommandCollection();
  7453. }
  7454. return this._commandCollection;
  7455. }
  7456. }
  7457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7459. public bool ClearBeforeFill {
  7460. get {
  7461. return this._clearBeforeFill;
  7462. }
  7463. set {
  7464. this._clearBeforeFill = value;
  7465. }
  7466. }
  7467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7469. private void InitAdapter() {
  7470. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7471. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7472. tableMapping.SourceTable = "Table";
  7473. tableMapping.DataSetTable = "Смены";
  7474. tableMapping.ColumnMappings.Add("ID_Смены", "ID_Смены");
  7475. tableMapping.ColumnMappings.Add("ДатаCмены", "ДатаCмены");
  7476. tableMapping.ColumnMappings.Add("id_Официанта", "id_Официанта");
  7477. tableMapping.ColumnMappings.Add("id_Повара", "id_Повара");
  7478. this._adapter.TableMappings.Add(tableMapping);
  7479. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7480. this._adapter.DeleteCommand.Connection = this.Connection;
  7481. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Смены] WHERE (([ID_Смены] = @Original_ID_Смены) AND ((@IsNull_ДатаCмены = 1 AND [ДатаCмены] IS NULL) OR ([ДатаCмены] = @Original_ДатаCмены)) AND ((@IsNull_id_Официанта = 1 AND [id_Официанта] IS NULL) OR ([id_Официанта] = @Original_id_Официанта)) AND ((@IsNull_id_Повара = 1 AND [id_Повара] IS NULL) OR ([id_Повара] = @Original_id_Повара)))";
  7482. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7483. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Смены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Смены", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7484. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаCмены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаCмены", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7485. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаCмены", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаCмены", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7486. 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, "", "", ""));
  7487. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_Официанта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Официанта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7488. 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, "", "", ""));
  7489. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_Повара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Повара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7490. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7491. this._adapter.InsertCommand.Connection = this.Connection;
  7492. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Смены] ([ДатаCмены], [id_Официанта], [id_Повара]) VALUES (@Дат" +
  7493. "аCмены, @id_Официанта, @id_Повара);\r\nSELECT ID_Смены, ДатаCмены, id_Официанта, i" +
  7494. "d_Повара FROM Смены WHERE (ID_Смены = SCOPE_IDENTITY())";
  7495. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7496. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаCмены", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаCмены", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7497. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_Официанта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Официанта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7498. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_Повара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Повара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7499. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7500. this._adapter.UpdateCommand.Connection = this.Connection;
  7501. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Смены] SET [ДатаCмены] = @ДатаCмены, [id_Официанта] = @id_Официанта, [id_Повара] = @id_Повара WHERE (([ID_Смены] = @Original_ID_Смены) AND ((@IsNull_ДатаCмены = 1 AND [ДатаCмены] IS NULL) OR ([ДатаCмены] = @Original_ДатаCмены)) AND ((@IsNull_id_Официанта = 1 AND [id_Официанта] IS NULL) OR ([id_Официанта] = @Original_id_Официанта)) AND ((@IsNull_id_Повара = 1 AND [id_Повара] IS NULL) OR ([id_Повара] = @Original_id_Повара)));
  7502. SELECT ID_Смены, ДатаCмены, id_Официанта, id_Повара FROM Смены WHERE (ID_Смены = @ID_Смены)";
  7503. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7504. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаCмены", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаCмены", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7505. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_Официанта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Официанта", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7506. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_Повара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Повара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7507. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Смены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Смены", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7508. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаCмены", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаCмены", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7509. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаCмены", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаCмены", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7510. 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, "", "", ""));
  7511. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_Официанта", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Официанта", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7512. 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, "", "", ""));
  7513. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_Повара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_Повара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7514. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Смены", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Смены", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7515. }
  7516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7518. private void InitConnection() {
  7519. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7520. this._connection.ConnectionString = global::Cafe12.Properties.Settings.Default.CHER_KAFEConnectionString;
  7521. }
  7522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7524. private void InitCommandCollection() {
  7525. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7526. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7527. this._commandCollection[0].Connection = this.Connection;
  7528. this._commandCollection[0].CommandText = "SELECT ID_Смены, ДатаCмены, id_Официанта, id_Повара FROM dbo.Смены";
  7529. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7530. }
  7531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7533. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7534. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7535. public virtual int Fill(CHER_KAFEDataSet.СменыDataTable dataTable) {
  7536. this.Adapter.SelectCommand = this.CommandCollection[0];
  7537. if ((this.ClearBeforeFill == true)) {
  7538. dataTable.Clear();
  7539. }
  7540. int returnValue = this.Adapter.Fill(dataTable);
  7541. return returnValue;
  7542. }
  7543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7545. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7546. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7547. public virtual CHER_KAFEDataSet.СменыDataTable GetData() {
  7548. this.Adapter.SelectCommand = this.CommandCollection[0];
  7549. CHER_KAFEDataSet.СменыDataTable dataTable = new CHER_KAFEDataSet.СменыDataTable();
  7550. this.Adapter.Fill(dataTable);
  7551. return dataTable;
  7552. }
  7553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7556. public virtual int Update(CHER_KAFEDataSet.СменыDataTable dataTable) {
  7557. return this.Adapter.Update(dataTable);
  7558. }
  7559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7562. public virtual int Update(CHER_KAFEDataSet dataSet) {
  7563. return this.Adapter.Update(dataSet, "Смены");
  7564. }
  7565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7567. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7568. public virtual int Update(global::System.Data.DataRow dataRow) {
  7569. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7570. dataRow});
  7571. }
  7572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7574. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7575. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7576. return this.Adapter.Update(dataRows);
  7577. }
  7578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7580. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7581. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7582. public virtual int Delete(int Original_ID_Смены, global::System.Nullable<global::System.DateTime> Original_ДатаCмены, global::System.Nullable<int> Original_id_Официанта, global::System.Nullable<int> Original_id_Повара) {
  7583. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Смены));
  7584. if ((Original_ДатаCмены.HasValue == true)) {
  7585. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7586. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_ДатаCмены.Value));
  7587. }
  7588. else {
  7589. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7590. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7591. }
  7592. if ((Original_id_Официанта.HasValue == true)) {
  7593. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7594. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_id_Официанта.Value));
  7595. }
  7596. else {
  7597. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7598. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7599. }
  7600. if ((Original_id_Повара.HasValue == true)) {
  7601. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7602. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_id_Повара.Value));
  7603. }
  7604. else {
  7605. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7606. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7607. }
  7608. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7609. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7610. != global::System.Data.ConnectionState.Open)) {
  7611. this.Adapter.DeleteCommand.Connection.Open();
  7612. }
  7613. try {
  7614. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7615. return returnValue;
  7616. }
  7617. finally {
  7618. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7619. this.Adapter.DeleteCommand.Connection.Close();
  7620. }
  7621. }
  7622. }
  7623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7625. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7626. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7627. public virtual int Insert(global::System.Nullable<global::System.DateTime> ДатаCмены, global::System.Nullable<int> id_Официанта, global::System.Nullable<int> id_Повара) {
  7628. if ((ДатаCмены.HasValue == true)) {
  7629. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(ДатаCмены.Value));
  7630. }
  7631. else {
  7632. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7633. }
  7634. if ((id_Официанта.HasValue == true)) {
  7635. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(id_Официанта.Value));
  7636. }
  7637. else {
  7638. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7639. }
  7640. if ((id_Повара.HasValue == true)) {
  7641. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(id_Повара.Value));
  7642. }
  7643. else {
  7644. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7645. }
  7646. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7647. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7648. != global::System.Data.ConnectionState.Open)) {
  7649. this.Adapter.InsertCommand.Connection.Open();
  7650. }
  7651. try {
  7652. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7653. return returnValue;
  7654. }
  7655. finally {
  7656. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7657. this.Adapter.InsertCommand.Connection.Close();
  7658. }
  7659. }
  7660. }
  7661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7663. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7664. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7665. public virtual int Update(global::System.Nullable<global::System.DateTime> ДатаCмены, global::System.Nullable<int> id_Официанта, global::System.Nullable<int> id_Повара, int Original_ID_Смены, global::System.Nullable<global::System.DateTime> Original_ДатаCмены, global::System.Nullable<int> Original_id_Официанта, global::System.Nullable<int> Original_id_Повара, int ID_Смены) {
  7666. if ((ДатаCмены.HasValue == true)) {
  7667. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(ДатаCмены.Value));
  7668. }
  7669. else {
  7670. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7671. }
  7672. if ((id_Официанта.HasValue == true)) {
  7673. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(id_Официанта.Value));
  7674. }
  7675. else {
  7676. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7677. }
  7678. if ((id_Повара.HasValue == true)) {
  7679. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(id_Повара.Value));
  7680. }
  7681. else {
  7682. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7683. }
  7684. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID_Смены));
  7685. if ((Original_ДатаCмены.HasValue == true)) {
  7686. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  7687. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_ДатаCмены.Value));
  7688. }
  7689. else {
  7690. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  7691. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7692. }
  7693. if ((Original_id_Официанта.HasValue == true)) {
  7694. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  7695. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_id_Официанта.Value));
  7696. }
  7697. else {
  7698. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  7699. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7700. }
  7701. if ((Original_id_Повара.HasValue == true)) {
  7702. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  7703. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_id_Повара.Value));
  7704. }
  7705. else {
  7706. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  7707. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7708. }
  7709. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID_Смены));
  7710. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7711. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7712. != global::System.Data.ConnectionState.Open)) {
  7713. this.Adapter.UpdateCommand.Connection.Open();
  7714. }
  7715. try {
  7716. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7717. return returnValue;
  7718. }
  7719. finally {
  7720. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7721. this.Adapter.UpdateCommand.Connection.Close();
  7722. }
  7723. }
  7724. }
  7725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7727. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7728. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7729. public virtual int Update(global::System.Nullable<global::System.DateTime> ДатаCмены, global::System.Nullable<int> id_Официанта, global::System.Nullable<int> id_Повара, int Original_ID_Смены, global::System.Nullable<global::System.DateTime> Original_ДатаCмены, global::System.Nullable<int> Original_id_Официанта, global::System.Nullable<int> Original_id_Повара) {
  7730. return this.Update(ДатаCмены, id_Официанта, id_Повара, Original_ID_Смены, Original_ДатаCмены, Original_id_Официанта, Original_id_Повара, Original_ID_Смены);
  7731. }
  7732. }
  7733. /// <summary>
  7734. ///Represents the connection and commands used to retrieve and save data.
  7735. ///</summary>
  7736. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7737. [global::System.ComponentModel.ToolboxItem(true)]
  7738. [global::System.ComponentModel.DataObjectAttribute(true)]
  7739. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7740. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7742. public partial class СтатусЗаказаTableAdapter : global::System.ComponentModel.Component {
  7743. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7744. private global::System.Data.SqlClient.SqlConnection _connection;
  7745. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7746. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7747. private bool _clearBeforeFill;
  7748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7750. public СтатусЗаказаTableAdapter() {
  7751. this.ClearBeforeFill = true;
  7752. }
  7753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7755. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7756. get {
  7757. if ((this._adapter == null)) {
  7758. this.InitAdapter();
  7759. }
  7760. return this._adapter;
  7761. }
  7762. }
  7763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7765. internal global::System.Data.SqlClient.SqlConnection Connection {
  7766. get {
  7767. if ((this._connection == null)) {
  7768. this.InitConnection();
  7769. }
  7770. return this._connection;
  7771. }
  7772. set {
  7773. this._connection = value;
  7774. if ((this.Adapter.InsertCommand != null)) {
  7775. this.Adapter.InsertCommand.Connection = value;
  7776. }
  7777. if ((this.Adapter.DeleteCommand != null)) {
  7778. this.Adapter.DeleteCommand.Connection = value;
  7779. }
  7780. if ((this.Adapter.UpdateCommand != null)) {
  7781. this.Adapter.UpdateCommand.Connection = value;
  7782. }
  7783. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7784. if ((this.CommandCollection[i] != null)) {
  7785. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7786. }
  7787. }
  7788. }
  7789. }
  7790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7792. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7793. get {
  7794. return this._transaction;
  7795. }
  7796. set {
  7797. this._transaction = value;
  7798. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7799. this.CommandCollection[i].Transaction = this._transaction;
  7800. }
  7801. if (((this.Adapter != null)
  7802. && (this.Adapter.DeleteCommand != null))) {
  7803. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7804. }
  7805. if (((this.Adapter != null)
  7806. && (this.Adapter.InsertCommand != null))) {
  7807. this.Adapter.InsertCommand.Transaction = this._transaction;
  7808. }
  7809. if (((this.Adapter != null)
  7810. && (this.Adapter.UpdateCommand != null))) {
  7811. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7812. }
  7813. }
  7814. }
  7815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7817. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7818. get {
  7819. if ((this._commandCollection == null)) {
  7820. this.InitCommandCollection();
  7821. }
  7822. return this._commandCollection;
  7823. }
  7824. }
  7825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7827. public bool ClearBeforeFill {
  7828. get {
  7829. return this._clearBeforeFill;
  7830. }
  7831. set {
  7832. this._clearBeforeFill = value;
  7833. }
  7834. }
  7835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7837. private void InitAdapter() {
  7838. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7839. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7840. tableMapping.SourceTable = "Table";
  7841. tableMapping.DataSetTable = "СтатусЗаказа";
  7842. tableMapping.ColumnMappings.Add("ID_СтатусаЗаказа", "ID_СтатусаЗаказа");
  7843. tableMapping.ColumnMappings.Add("НазваниеСтатусаЗаказа", "НазваниеСтатусаЗаказа");
  7844. this._adapter.TableMappings.Add(tableMapping);
  7845. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7846. this._adapter.DeleteCommand.Connection = this.Connection;
  7847. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[СтатусЗаказа] WHERE (([ID_СтатусаЗаказа] = @Original_ID_Статус" +
  7848. "аЗаказа) AND ((@IsNull_НазваниеСтатусаЗаказа = 1 AND [НазваниеСтатусаЗаказа] IS " +
  7849. "NULL) OR ([НазваниеСтатусаЗаказа] = @Original_НазваниеСтатусаЗаказа)))";
  7850. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7851. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_СтатусаЗаказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_СтатусаЗаказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7852. 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, "", "", ""));
  7853. 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, "", "", ""));
  7854. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7855. this._adapter.InsertCommand.Connection = this.Connection;
  7856. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[СтатусЗаказа] ([НазваниеСтатусаЗаказа]) VALUES (@НазваниеСтату" +
  7857. "саЗаказа);\r\nSELECT ID_СтатусаЗаказа, НазваниеСтатусаЗаказа FROM СтатусЗаказа WHE" +
  7858. "RE (ID_СтатусаЗаказа = SCOPE_IDENTITY())";
  7859. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7860. 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, "", "", ""));
  7861. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7862. this._adapter.UpdateCommand.Connection = this.Connection;
  7863. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[СтатусЗаказа] SET [НазваниеСтатусаЗаказа] = @НазваниеСтатусаЗаказа WHERE (([ID_СтатусаЗаказа] = @Original_ID_СтатусаЗаказа) AND ((@IsNull_НазваниеСтатусаЗаказа = 1 AND [НазваниеСтатусаЗаказа] IS NULL) OR ([НазваниеСтатусаЗаказа] = @Original_НазваниеСтатусаЗаказа)));
  7864. SELECT ID_СтатусаЗаказа, НазваниеСтатусаЗаказа FROM СтатусЗаказа WHERE (ID_СтатусаЗаказа = @ID_СтатусаЗаказа)";
  7865. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7866. 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, "", "", ""));
  7867. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_СтатусаЗаказа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_СтатусаЗаказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7868. 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, "", "", ""));
  7869. 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, "", "", ""));
  7870. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_СтатусаЗаказа", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID_СтатусаЗаказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7871. }
  7872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7874. private void InitConnection() {
  7875. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7876. this._connection.ConnectionString = global::Cafe12.Properties.Settings.Default.CHER_KAFEConnectionString;
  7877. }
  7878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7880. private void InitCommandCollection() {
  7881. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7882. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7883. this._commandCollection[0].Connection = this.Connection;
  7884. this._commandCollection[0].CommandText = "SELECT ID_СтатусаЗаказа, НазваниеСтатусаЗаказа FROM dbo.СтатусЗаказа";
  7885. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7886. }
  7887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7889. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7890. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7891. public virtual int Fill(CHER_KAFEDataSet.СтатусЗаказаDataTable dataTable) {
  7892. this.Adapter.SelectCommand = this.CommandCollection[0];
  7893. if ((this.ClearBeforeFill == true)) {
  7894. dataTable.Clear();
  7895. }
  7896. int returnValue = this.Adapter.Fill(dataTable);
  7897. return returnValue;
  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.Select, true)]
  7903. public virtual CHER_KAFEDataSet.СтатусЗаказаDataTable GetData() {
  7904. this.Adapter.SelectCommand = this.CommandCollection[0];
  7905. CHER_KAFEDataSet.СтатусЗаказаDataTable dataTable = new CHER_KAFEDataSet.СтатусЗаказаDataTable();
  7906. this.Adapter.Fill(dataTable);
  7907. return dataTable;
  7908. }
  7909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7911. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7912. public virtual int Update(CHER_KAFEDataSet.СтатусЗаказаDataTable dataTable) {
  7913. return this.Adapter.Update(dataTable);
  7914. }
  7915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7917. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7918. public virtual int Update(CHER_KAFEDataSet dataSet) {
  7919. return this.Adapter.Update(dataSet, "СтатусЗаказа");
  7920. }
  7921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7923. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7924. public virtual int Update(global::System.Data.DataRow dataRow) {
  7925. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7926. dataRow});
  7927. }
  7928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7930. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7931. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7932. return this.Adapter.Update(dataRows);
  7933. }
  7934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7936. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7937. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7938. public virtual int Delete(int Original_ID_СтатусаЗаказа, string Original_НазваниеСтатусаЗаказа) {
  7939. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_СтатусаЗаказа));
  7940. if ((Original_НазваниеСтатусаЗаказа == null)) {
  7941. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7942. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7943. }
  7944. else {
  7945. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7946. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_НазваниеСтатусаЗаказа));
  7947. }
  7948. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7949. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7950. != global::System.Data.ConnectionState.Open)) {
  7951. this.Adapter.DeleteCommand.Connection.Open();
  7952. }
  7953. try {
  7954. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7955. return returnValue;
  7956. }
  7957. finally {
  7958. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7959. this.Adapter.DeleteCommand.Connection.Close();
  7960. }
  7961. }
  7962. }
  7963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7965. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7966. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7967. public virtual int Insert(string НазваниеСтатусаЗаказа) {
  7968. if ((НазваниеСтатусаЗаказа == null)) {
  7969. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7970. }
  7971. else {
  7972. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(НазваниеСтатусаЗаказа));
  7973. }
  7974. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7975. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7976. != global::System.Data.ConnectionState.Open)) {
  7977. this.Adapter.InsertCommand.Connection.Open();
  7978. }
  7979. try {
  7980. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7981. return returnValue;
  7982. }
  7983. finally {
  7984. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7985. this.Adapter.InsertCommand.Connection.Close();
  7986. }
  7987. }
  7988. }
  7989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7991. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7992. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7993. public virtual int Update(string НазваниеСтатусаЗаказа, int Original_ID_СтатусаЗаказа, string Original_НазваниеСтатусаЗаказа, int ID_СтатусаЗаказа) {
  7994. if ((НазваниеСтатусаЗаказа == null)) {
  7995. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7996. }
  7997. else {
  7998. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(НазваниеСтатусаЗаказа));
  7999. }
  8000. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID_СтатусаЗаказа));
  8001. if ((Original_НазваниеСтатусаЗаказа == null)) {
  8002. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8003. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8004. }
  8005. else {
  8006. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  8007. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_НазваниеСтатусаЗаказа));
  8008. }
  8009. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ID_СтатусаЗаказа));
  8010. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8011. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8012. != global::System.Data.ConnectionState.Open)) {
  8013. this.Adapter.UpdateCommand.Connection.Open();
  8014. }
  8015. try {
  8016. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8017. return returnValue;
  8018. }
  8019. finally {
  8020. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8021. this.Adapter.UpdateCommand.Connection.Close();
  8022. }
  8023. }
  8024. }
  8025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8027. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8028. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8029. public virtual int Update(string НазваниеСтатусаЗаказа, int Original_ID_СтатусаЗаказа, string Original_НазваниеСтатусаЗаказа) {
  8030. return this.Update(НазваниеСтатусаЗаказа, Original_ID_СтатусаЗаказа, Original_НазваниеСтатусаЗаказа, Original_ID_СтатусаЗаказа);
  8031. }
  8032. }
  8033. /// <summary>
  8034. ///Represents the connection and commands used to retrieve and save data.
  8035. ///</summary>
  8036. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8037. [global::System.ComponentModel.ToolboxItem(true)]
  8038. [global::System.ComponentModel.DataObjectAttribute(true)]
  8039. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8040. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8041. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8042. public partial class СтатусСотрудникаTableAdapter : global::System.ComponentModel.Component {
  8043. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8044. private global::System.Data.SqlClient.SqlConnection _connection;
  8045. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8046. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8047. private bool _clearBeforeFill;
  8048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8050. public СтатусСотрудникаTableAdapter() {
  8051. this.ClearBeforeFill = true;
  8052. }
  8053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8055. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8056. get {
  8057. if ((this._adapter == null)) {
  8058. this.InitAdapter();
  8059. }
  8060. return this._adapter;
  8061. }
  8062. }
  8063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8065. internal global::System.Data.SqlClient.SqlConnection Connection {
  8066. get {
  8067. if ((this._connection == null)) {
  8068. this.InitConnection();
  8069. }
  8070. return this._connection;
  8071. }
  8072. set {
  8073. this._connection = value;
  8074. if ((this.Adapter.InsertCommand != null)) {
  8075. this.Adapter.InsertCommand.Connection = value;
  8076. }
  8077. if ((this.Adapter.DeleteCommand != null)) {
  8078. this.Adapter.DeleteCommand.Connection = value;
  8079. }
  8080. if ((this.Adapter.UpdateCommand != null)) {
  8081. this.Adapter.UpdateCommand.Connection = value;
  8082. }
  8083. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8084. if ((this.CommandCollection[i] != null)) {
  8085. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8086. }
  8087. }
  8088. }
  8089. }
  8090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8092. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8093. get {
  8094. return this._transaction;
  8095. }
  8096. set {
  8097. this._transaction = value;
  8098. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8099. this.CommandCollection[i].Transaction = this._transaction;
  8100. }
  8101. if (((this.Adapter != null)
  8102. && (this.Adapter.DeleteCommand != null))) {
  8103. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8104. }
  8105. if (((this.Adapter != null)
  8106. && (this.Adapter.InsertCommand != null))) {
  8107. this.Adapter.InsertCommand.Transaction = this._transaction;
  8108. }
  8109. if (((this.Adapter != null)
  8110. && (this.Adapter.UpdateCommand != null))) {
  8111. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8112. }
  8113. }
  8114. }
  8115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8117. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8118. get {
  8119. if ((this._commandCollection == null)) {
  8120. this.InitCommandCollection();
  8121. }
  8122. return this._commandCollection;
  8123. }
  8124. }
  8125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8127. public bool ClearBeforeFill {
  8128. get {
  8129. return this._clearBeforeFill;
  8130. }
  8131. set {
  8132. this._clearBeforeFill = value;
  8133. }
  8134. }
  8135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8137. private void InitAdapter() {
  8138. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8139. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8140. tableMapping.SourceTable = "Table";
  8141. tableMapping.DataSetTable = "СтатусСотрудника";
  8142. tableMapping.ColumnMappings.Add("ID_Статуса", "ID_Статуса");
  8143. tableMapping.ColumnMappings.Add("НазваниеСтатусаСотрудника", "НазваниеСтатусаСотрудника");
  8144. this._adapter.TableMappings.Add(tableMapping);
  8145. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8146. this._adapter.DeleteCommand.Connection = this.Connection;
  8147. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[СтатусСотрудника] WHERE (([ID_Статуса] = @Original_ID_Статуса)" +
  8148. " AND ((@IsNull_НазваниеСтатусаСотрудника = 1 AND [НазваниеСтатусаСотрудника] IS " +
  8149. "NULL) OR ([НазваниеСтатусаСотрудника] = @Original_НазваниеСтатусаСотрудника)))";
  8150. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8151. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Статуса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8152. 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, "", "", ""));
  8153. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_НазваниеСтатусаСотрудника", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НазваниеСтатусаСотрудника", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8154. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8155. this._adapter.InsertCommand.Connection = this.Connection;
  8156. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[СтатусСотрудника] ([ID_Статуса], [НазваниеСтатусаСотрудника]) " +
  8157. "VALUES (@ID_Статуса, @НазваниеСтатусаСотрудника);\r\nSELECT ID_Статуса, НазваниеСт" +
  8158. "атусаСотрудника FROM СтатусСотрудника WHERE (ID_Статуса = @ID_Статуса)";
  8159. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8160. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Статуса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8161. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@НазваниеСтатусаСотрудника", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НазваниеСтатусаСотрудника", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8162. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8163. this._adapter.UpdateCommand.Connection = this.Connection;
  8164. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[СтатусСотрудника] SET [ID_Статуса] = @ID_Статуса, [НазваниеСтатусаСотрудника] = @НазваниеСтатусаСотрудника WHERE (([ID_Статуса] = @Original_ID_Статуса) AND ((@IsNull_НазваниеСтатусаСотрудника = 1 AND [НазваниеСтатусаСотрудника] IS NULL) OR ([НазваниеСтатусаСотрудника] = @Original_НазваниеСтатусаСотрудника)));
  8165. SELECT ID_Статуса, НазваниеСтатусаСотрудника FROM СтатусСотрудника WHERE (ID_Статуса = @ID_Статуса)";
  8166. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8167. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Статуса", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8168. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@НазваниеСтатусаСотрудника", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НазваниеСтатусаСотрудника", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8169. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Статуса", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Статуса", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8170. 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, "", "", ""));
  8171. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_НазваниеСтатусаСотрудника", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НазваниеСтатусаСотрудника", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8172. }
  8173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8175. private void InitConnection() {
  8176. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8177. this._connection.ConnectionString = global::Cafe12.Properties.Settings.Default.CHER_KAFEConnectionString;
  8178. }
  8179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8181. private void InitCommandCollection() {
  8182. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8183. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8184. this._commandCollection[0].Connection = this.Connection;
  8185. this._commandCollection[0].CommandText = "SELECT ID_Статуса, НазваниеСтатусаСотрудника FROM dbo.СтатусСотрудника";
  8186. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8187. }
  8188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8190. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8191. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8192. public virtual int Fill(CHER_KAFEDataSet.СтатусСотрудникаDataTable dataTable) {
  8193. this.Adapter.SelectCommand = this.CommandCollection[0];
  8194. if ((this.ClearBeforeFill == true)) {
  8195. dataTable.Clear();
  8196. }
  8197. int returnValue = this.Adapter.Fill(dataTable);
  8198. return returnValue;
  8199. }
  8200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8202. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8203. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8204. public virtual CHER_KAFEDataSet.СтатусСотрудникаDataTable GetData() {
  8205. this.Adapter.SelectCommand = this.CommandCollection[0];
  8206. CHER_KAFEDataSet.СтатусСотрудникаDataTable dataTable = new CHER_KAFEDataSet.СтатусСотрудникаDataTable();
  8207. this.Adapter.Fill(dataTable);
  8208. return dataTable;
  8209. }
  8210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8212. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8213. public virtual int Update(CHER_KAFEDataSet.СтатусСотрудникаDataTable dataTable) {
  8214. return this.Adapter.Update(dataTable);
  8215. }
  8216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8218. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8219. public virtual int Update(CHER_KAFEDataSet dataSet) {
  8220. return this.Adapter.Update(dataSet, "СтатусСотрудника");
  8221. }
  8222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8224. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8225. public virtual int Update(global::System.Data.DataRow dataRow) {
  8226. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8227. dataRow});
  8228. }
  8229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8231. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8232. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8233. return this.Adapter.Update(dataRows);
  8234. }
  8235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8237. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8238. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8239. public virtual int Delete(int Original_ID_Статуса, string Original_НазваниеСтатусаСотрудника) {
  8240. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Статуса));
  8241. if ((Original_НазваниеСтатусаСотрудника == null)) {
  8242. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8243. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8244. }
  8245. else {
  8246. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8247. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_НазваниеСтатусаСотрудника));
  8248. }
  8249. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8250. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8251. != global::System.Data.ConnectionState.Open)) {
  8252. this.Adapter.DeleteCommand.Connection.Open();
  8253. }
  8254. try {
  8255. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8256. return returnValue;
  8257. }
  8258. finally {
  8259. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8260. this.Adapter.DeleteCommand.Connection.Close();
  8261. }
  8262. }
  8263. }
  8264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8266. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8267. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8268. public virtual int Insert(int ID_Статуса, string НазваниеСтатусаСотрудника) {
  8269. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Статуса));
  8270. if ((НазваниеСтатусаСотрудника == null)) {
  8271. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8272. }
  8273. else {
  8274. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(НазваниеСтатусаСотрудника));
  8275. }
  8276. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8277. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8278. != global::System.Data.ConnectionState.Open)) {
  8279. this.Adapter.InsertCommand.Connection.Open();
  8280. }
  8281. try {
  8282. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8283. return returnValue;
  8284. }
  8285. finally {
  8286. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8287. this.Adapter.InsertCommand.Connection.Close();
  8288. }
  8289. }
  8290. }
  8291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8293. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8294. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8295. public virtual int Update(int ID_Статуса, string НазваниеСтатусаСотрудника, int Original_ID_Статуса, string Original_НазваниеСтатусаСотрудника) {
  8296. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Статуса));
  8297. if ((НазваниеСтатусаСотрудника == null)) {
  8298. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8299. }
  8300. else {
  8301. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(НазваниеСтатусаСотрудника));
  8302. }
  8303. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID_Статуса));
  8304. if ((Original_НазваниеСтатусаСотрудника == null)) {
  8305. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  8306. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8307. }
  8308. else {
  8309. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  8310. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_НазваниеСтатусаСотрудника));
  8311. }
  8312. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8313. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8314. != global::System.Data.ConnectionState.Open)) {
  8315. this.Adapter.UpdateCommand.Connection.Open();
  8316. }
  8317. try {
  8318. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8319. return returnValue;
  8320. }
  8321. finally {
  8322. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8323. this.Adapter.UpdateCommand.Connection.Close();
  8324. }
  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.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8330. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8331. public virtual int Update(string НазваниеСтатусаСотрудника, int Original_ID_Статуса, string Original_НазваниеСтатусаСотрудника) {
  8332. return this.Update(Original_ID_Статуса, НазваниеСтатусаСотрудника, Original_ID_Статуса, Original_НазваниеСтатусаСотрудника);
  8333. }
  8334. }
  8335. /// <summary>
  8336. ///Represents the connection and commands used to retrieve and save data.
  8337. ///</summary>
  8338. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8339. [global::System.ComponentModel.ToolboxItem(true)]
  8340. [global::System.ComponentModel.DataObjectAttribute(true)]
  8341. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8342. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8343. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8344. public partial class СтоликиTableAdapter : global::System.ComponentModel.Component {
  8345. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8346. private global::System.Data.SqlClient.SqlConnection _connection;
  8347. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8348. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8349. private bool _clearBeforeFill;
  8350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8352. public СтоликиTableAdapter() {
  8353. this.ClearBeforeFill = true;
  8354. }
  8355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8357. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8358. get {
  8359. if ((this._adapter == null)) {
  8360. this.InitAdapter();
  8361. }
  8362. return this._adapter;
  8363. }
  8364. }
  8365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8367. internal global::System.Data.SqlClient.SqlConnection Connection {
  8368. get {
  8369. if ((this._connection == null)) {
  8370. this.InitConnection();
  8371. }
  8372. return this._connection;
  8373. }
  8374. set {
  8375. this._connection = value;
  8376. if ((this.Adapter.InsertCommand != null)) {
  8377. this.Adapter.InsertCommand.Connection = value;
  8378. }
  8379. if ((this.Adapter.DeleteCommand != null)) {
  8380. this.Adapter.DeleteCommand.Connection = value;
  8381. }
  8382. if ((this.Adapter.UpdateCommand != null)) {
  8383. this.Adapter.UpdateCommand.Connection = value;
  8384. }
  8385. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8386. if ((this.CommandCollection[i] != null)) {
  8387. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8388. }
  8389. }
  8390. }
  8391. }
  8392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8394. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8395. get {
  8396. return this._transaction;
  8397. }
  8398. set {
  8399. this._transaction = value;
  8400. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8401. this.CommandCollection[i].Transaction = this._transaction;
  8402. }
  8403. if (((this.Adapter != null)
  8404. && (this.Adapter.DeleteCommand != null))) {
  8405. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8406. }
  8407. if (((this.Adapter != null)
  8408. && (this.Adapter.InsertCommand != null))) {
  8409. this.Adapter.InsertCommand.Transaction = this._transaction;
  8410. }
  8411. if (((this.Adapter != null)
  8412. && (this.Adapter.UpdateCommand != null))) {
  8413. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8414. }
  8415. }
  8416. }
  8417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8419. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8420. get {
  8421. if ((this._commandCollection == null)) {
  8422. this.InitCommandCollection();
  8423. }
  8424. return this._commandCollection;
  8425. }
  8426. }
  8427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8429. public bool ClearBeforeFill {
  8430. get {
  8431. return this._clearBeforeFill;
  8432. }
  8433. set {
  8434. this._clearBeforeFill = value;
  8435. }
  8436. }
  8437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8439. private void InitAdapter() {
  8440. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8441. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8442. tableMapping.SourceTable = "Table";
  8443. tableMapping.DataSetTable = "Столики";
  8444. tableMapping.ColumnMappings.Add("ID_Столика", "ID_Столика");
  8445. tableMapping.ColumnMappings.Add("Название", "Название");
  8446. this._adapter.TableMappings.Add(tableMapping);
  8447. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8448. this._adapter.DeleteCommand.Connection = this.Connection;
  8449. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Столики] WHERE (([ID_Столика] = @Original_ID_Столика) AND ((@I" +
  8450. "sNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название))" +
  8451. ")";
  8452. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8453. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Столика", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Столика", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8454. 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, "", "", ""));
  8455. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8456. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8457. this._adapter.InsertCommand.Connection = this.Connection;
  8458. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Столики] ([ID_Столика], [Название]) VALUES (@ID_Столика, @Назв" +
  8459. "ание);\r\nSELECT ID_Столика, Название FROM Столики WHERE (ID_Столика = @ID_Столика" +
  8460. ")";
  8461. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8462. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Столика", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Столика", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8463. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8464. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8465. this._adapter.UpdateCommand.Connection = this.Connection;
  8466. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Столики] SET [ID_Столика] = @ID_Столика, [Название] = @Название WHERE (([ID_Столика] = @Original_ID_Столика) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)));
  8467. SELECT ID_Столика, Название FROM Столики WHERE (ID_Столика = @ID_Столика)";
  8468. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8469. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Столика", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Столика", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8470. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8471. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Столика", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Столика", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8472. 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, "", "", ""));
  8473. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8474. }
  8475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8477. private void InitConnection() {
  8478. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8479. this._connection.ConnectionString = global::Cafe12.Properties.Settings.Default.CHER_KAFEConnectionString;
  8480. }
  8481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8483. private void InitCommandCollection() {
  8484. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8485. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8486. this._commandCollection[0].Connection = this.Connection;
  8487. this._commandCollection[0].CommandText = "SELECT ID_Столика, Название FROM dbo.Столики";
  8488. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8489. }
  8490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8492. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8493. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8494. public virtual int Fill(CHER_KAFEDataSet.СтоликиDataTable dataTable) {
  8495. this.Adapter.SelectCommand = this.CommandCollection[0];
  8496. if ((this.ClearBeforeFill == true)) {
  8497. dataTable.Clear();
  8498. }
  8499. int returnValue = this.Adapter.Fill(dataTable);
  8500. return returnValue;
  8501. }
  8502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8504. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8505. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8506. public virtual CHER_KAFEDataSet.СтоликиDataTable GetData() {
  8507. this.Adapter.SelectCommand = this.CommandCollection[0];
  8508. CHER_KAFEDataSet.СтоликиDataTable dataTable = new CHER_KAFEDataSet.СтоликиDataTable();
  8509. this.Adapter.Fill(dataTable);
  8510. return dataTable;
  8511. }
  8512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8514. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8515. public virtual int Update(CHER_KAFEDataSet.СтоликиDataTable dataTable) {
  8516. return this.Adapter.Update(dataTable);
  8517. }
  8518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8520. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8521. public virtual int Update(CHER_KAFEDataSet dataSet) {
  8522. return this.Adapter.Update(dataSet, "Столики");
  8523. }
  8524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8526. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8527. public virtual int Update(global::System.Data.DataRow dataRow) {
  8528. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8529. dataRow});
  8530. }
  8531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8533. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8534. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8535. return this.Adapter.Update(dataRows);
  8536. }
  8537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8539. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8540. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8541. public virtual int Delete(int Original_ID_Столика, string Original_Название) {
  8542. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_Столика));
  8543. if ((Original_Название == null)) {
  8544. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8545. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8546. }
  8547. else {
  8548. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8549. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  8550. }
  8551. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8552. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8553. != global::System.Data.ConnectionState.Open)) {
  8554. this.Adapter.DeleteCommand.Connection.Open();
  8555. }
  8556. try {
  8557. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8558. return returnValue;
  8559. }
  8560. finally {
  8561. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8562. this.Adapter.DeleteCommand.Connection.Close();
  8563. }
  8564. }
  8565. }
  8566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8568. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8569. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8570. public virtual int Insert(int ID_Столика, string Название) {
  8571. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_Столика));
  8572. if ((Название == null)) {
  8573. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8574. }
  8575. else {
  8576. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название));
  8577. }
  8578. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8579. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8580. != global::System.Data.ConnectionState.Open)) {
  8581. this.Adapter.InsertCommand.Connection.Open();
  8582. }
  8583. try {
  8584. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8585. return returnValue;
  8586. }
  8587. finally {
  8588. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8589. this.Adapter.InsertCommand.Connection.Close();
  8590. }
  8591. }
  8592. }
  8593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8595. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8596. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8597. public virtual int Update(int ID_Столика, string Название, int Original_ID_Столика, string Original_Название) {
  8598. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_Столика));
  8599. if ((Название == null)) {
  8600. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8601. }
  8602. else {
  8603. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Название));
  8604. }
  8605. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID_Столика));
  8606. if ((Original_Название == null)) {
  8607. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  8608. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8609. }
  8610. else {
  8611. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  8612. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Название));
  8613. }
  8614. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8615. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8616. != global::System.Data.ConnectionState.Open)) {
  8617. this.Adapter.UpdateCommand.Connection.Open();
  8618. }
  8619. try {
  8620. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8621. return returnValue;
  8622. }
  8623. finally {
  8624. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8625. this.Adapter.UpdateCommand.Connection.Close();
  8626. }
  8627. }
  8628. }
  8629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8631. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8632. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8633. public virtual int Update(string Название, int Original_ID_Столика, string Original_Название) {
  8634. return this.Update(Original_ID_Столика, Название, Original_ID_Столика, Original_Название);
  8635. }
  8636. }
  8637. /// <summary>
  8638. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  8639. ///</summary>
  8640. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8641. [global::System.ComponentModel.ToolboxItem(true)]
  8642. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  8643. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8644. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  8645. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  8646. private UpdateOrderOption _updateOrder;
  8647. private БлюдаНапиткиTableAdapter _блюдаНапиткиTableAdapter;
  8648. private Заказанные_блюдаTableAdapter _заказанные_блюдаTableAdapter;
  8649. private ЗаказыTableAdapter _заказыTableAdapter;
  8650. private ОфициантыTableAdapter _официантыTableAdapter;
  8651. private ПовараTableAdapter _повараTableAdapter;
  8652. private ПользователиTableAdapter _пользователиTableAdapter;
  8653. private РолиTableAdapter _ролиTableAdapter;
  8654. private СменыTableAdapter _сменыTableAdapter;
  8655. private СтатусЗаказаTableAdapter _статусЗаказаTableAdapter;
  8656. private СтатусСотрудникаTableAdapter _статусСотрудникаTableAdapter;
  8657. private СтоликиTableAdapter _столикиTableAdapter;
  8658. private bool _backupDataSetBeforeUpdate;
  8659. private global::System.Data.IDbConnection _connection;
  8660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8662. public UpdateOrderOption UpdateOrder {
  8663. get {
  8664. return this._updateOrder;
  8665. }
  8666. set {
  8667. this._updateOrder = value;
  8668. }
  8669. }
  8670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8672. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8673. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8674. "a", "System.Drawing.Design.UITypeEditor")]
  8675. public БлюдаНапиткиTableAdapter БлюдаНапиткиTableAdapter {
  8676. get {
  8677. return this._блюдаНапиткиTableAdapter;
  8678. }
  8679. set {
  8680. this._блюдаНапиткиTableAdapter = value;
  8681. }
  8682. }
  8683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8685. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8686. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8687. "a", "System.Drawing.Design.UITypeEditor")]
  8688. public Заказанные_блюдаTableAdapter Заказанные_блюдаTableAdapter {
  8689. get {
  8690. return this._заказанные_блюдаTableAdapter;
  8691. }
  8692. set {
  8693. this._заказанные_блюдаTableAdapter = value;
  8694. }
  8695. }
  8696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8698. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8699. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8700. "a", "System.Drawing.Design.UITypeEditor")]
  8701. public ЗаказыTableAdapter ЗаказыTableAdapter {
  8702. get {
  8703. return this._заказыTableAdapter;
  8704. }
  8705. set {
  8706. this._заказыTableAdapter = value;
  8707. }
  8708. }
  8709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8711. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8712. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8713. "a", "System.Drawing.Design.UITypeEditor")]
  8714. public ОфициантыTableAdapter ОфициантыTableAdapter {
  8715. get {
  8716. return this._официантыTableAdapter;
  8717. }
  8718. set {
  8719. this._официантыTableAdapter = value;
  8720. }
  8721. }
  8722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8724. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8725. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8726. "a", "System.Drawing.Design.UITypeEditor")]
  8727. public ПовараTableAdapter ПовараTableAdapter {
  8728. get {
  8729. return this._повараTableAdapter;
  8730. }
  8731. set {
  8732. this._повараTableAdapter = value;
  8733. }
  8734. }
  8735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8737. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8738. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8739. "a", "System.Drawing.Design.UITypeEditor")]
  8740. public ПользователиTableAdapter ПользователиTableAdapter {
  8741. get {
  8742. return this._пользователиTableAdapter;
  8743. }
  8744. set {
  8745. this._пользователиTableAdapter = value;
  8746. }
  8747. }
  8748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8750. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8751. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8752. "a", "System.Drawing.Design.UITypeEditor")]
  8753. public РолиTableAdapter РолиTableAdapter {
  8754. get {
  8755. return this._ролиTableAdapter;
  8756. }
  8757. set {
  8758. this._ролиTableAdapter = value;
  8759. }
  8760. }
  8761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8763. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8764. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8765. "a", "System.Drawing.Design.UITypeEditor")]
  8766. public СменыTableAdapter СменыTableAdapter {
  8767. get {
  8768. return this._сменыTableAdapter;
  8769. }
  8770. set {
  8771. this._сменыTableAdapter = value;
  8772. }
  8773. }
  8774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8776. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8777. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8778. "a", "System.Drawing.Design.UITypeEditor")]
  8779. public СтатусЗаказаTableAdapter СтатусЗаказаTableAdapter {
  8780. get {
  8781. return this._статусЗаказаTableAdapter;
  8782. }
  8783. set {
  8784. this._статусЗаказаTableAdapter = value;
  8785. }
  8786. }
  8787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8789. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8790. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8791. "a", "System.Drawing.Design.UITypeEditor")]
  8792. public СтатусСотрудникаTableAdapter СтатусСотрудникаTableAdapter {
  8793. get {
  8794. return this._статусСотрудникаTableAdapter;
  8795. }
  8796. set {
  8797. this._статусСотрудникаTableAdapter = value;
  8798. }
  8799. }
  8800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8802. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8803. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8804. "a", "System.Drawing.Design.UITypeEditor")]
  8805. public СтоликиTableAdapter СтоликиTableAdapter {
  8806. get {
  8807. return this._столикиTableAdapter;
  8808. }
  8809. set {
  8810. this._столикиTableAdapter = value;
  8811. }
  8812. }
  8813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8815. public bool BackupDataSetBeforeUpdate {
  8816. get {
  8817. return this._backupDataSetBeforeUpdate;
  8818. }
  8819. set {
  8820. this._backupDataSetBeforeUpdate = value;
  8821. }
  8822. }
  8823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8825. [global::System.ComponentModel.Browsable(false)]
  8826. public global::System.Data.IDbConnection Connection {
  8827. get {
  8828. if ((this._connection != null)) {
  8829. return this._connection;
  8830. }
  8831. if (((this._блюдаНапиткиTableAdapter != null)
  8832. && (this._блюдаНапиткиTableAdapter.Connection != null))) {
  8833. return this._блюдаНапиткиTableAdapter.Connection;
  8834. }
  8835. if (((this._заказанные_блюдаTableAdapter != null)
  8836. && (this._заказанные_блюдаTableAdapter.Connection != null))) {
  8837. return this._заказанные_блюдаTableAdapter.Connection;
  8838. }
  8839. if (((this._заказыTableAdapter != null)
  8840. && (this._заказыTableAdapter.Connection != null))) {
  8841. return this._заказыTableAdapter.Connection;
  8842. }
  8843. if (((this._официантыTableAdapter != null)
  8844. && (this._официантыTableAdapter.Connection != null))) {
  8845. return this._официантыTableAdapter.Connection;
  8846. }
  8847. if (((this._повараTableAdapter != null)
  8848. && (this._повараTableAdapter.Connection != null))) {
  8849. return this._повараTableAdapter.Connection;
  8850. }
  8851. if (((this._пользователиTableAdapter != null)
  8852. && (this._пользователиTableAdapter.Connection != null))) {
  8853. return this._пользователиTableAdapter.Connection;
  8854. }
  8855. if (((this._ролиTableAdapter != null)
  8856. && (this._ролиTableAdapter.Connection != null))) {
  8857. return this._ролиTableAdapter.Connection;
  8858. }
  8859. if (((this._сменыTableAdapter != null)
  8860. && (this._сменыTableAdapter.Connection != null))) {
  8861. return this._сменыTableAdapter.Connection;
  8862. }
  8863. if (((this._статусЗаказаTableAdapter != null)
  8864. && (this._статусЗаказаTableAdapter.Connection != null))) {
  8865. return this._статусЗаказаTableAdapter.Connection;
  8866. }
  8867. if (((this._статусСотрудникаTableAdapter != null)
  8868. && (this._статусСотрудникаTableAdapter.Connection != null))) {
  8869. return this._статусСотрудникаTableAdapter.Connection;
  8870. }
  8871. if (((this._столикиTableAdapter != null)
  8872. && (this._столикиTableAdapter.Connection != null))) {
  8873. return this._столикиTableAdapter.Connection;
  8874. }
  8875. return null;
  8876. }
  8877. set {
  8878. this._connection = value;
  8879. }
  8880. }
  8881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8883. [global::System.ComponentModel.Browsable(false)]
  8884. public int TableAdapterInstanceCount {
  8885. get {
  8886. int count = 0;
  8887. if ((this._блюдаНапиткиTableAdapter != null)) {
  8888. count = (count + 1);
  8889. }
  8890. if ((this._заказанные_блюдаTableAdapter != null)) {
  8891. count = (count + 1);
  8892. }
  8893. if ((this._заказыTableAdapter != null)) {
  8894. count = (count + 1);
  8895. }
  8896. if ((this._официантыTableAdapter != null)) {
  8897. count = (count + 1);
  8898. }
  8899. if ((this._повараTableAdapter != null)) {
  8900. count = (count + 1);
  8901. }
  8902. if ((this._пользователиTableAdapter != null)) {
  8903. count = (count + 1);
  8904. }
  8905. if ((this._ролиTableAdapter != null)) {
  8906. count = (count + 1);
  8907. }
  8908. if ((this._сменыTableAdapter != null)) {
  8909. count = (count + 1);
  8910. }
  8911. if ((this._статусЗаказаTableAdapter != null)) {
  8912. count = (count + 1);
  8913. }
  8914. if ((this._статусСотрудникаTableAdapter != null)) {
  8915. count = (count + 1);
  8916. }
  8917. if ((this._столикиTableAdapter != null)) {
  8918. count = (count + 1);
  8919. }
  8920. return count;
  8921. }
  8922. }
  8923. /// <summary>
  8924. ///Update rows in top-down order.
  8925. ///</summary>
  8926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8928. private int UpdateUpdatedRows(CHER_KAFEDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8929. int result = 0;
  8930. if ((this._ролиTableAdapter != null)) {
  8931. global::System.Data.DataRow[] updatedRows = dataSet.Роли.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8932. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8933. if (((updatedRows != null)
  8934. && (0 < updatedRows.Length))) {
  8935. result = (result + this._ролиTableAdapter.Update(updatedRows));
  8936. allChangedRows.AddRange(updatedRows);
  8937. }
  8938. }
  8939. if ((this._статусСотрудникаTableAdapter != null)) {
  8940. global::System.Data.DataRow[] updatedRows = dataSet.СтатусСотрудника.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8941. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8942. if (((updatedRows != null)
  8943. && (0 < updatedRows.Length))) {
  8944. result = (result + this._статусСотрудникаTableAdapter.Update(updatedRows));
  8945. allChangedRows.AddRange(updatedRows);
  8946. }
  8947. }
  8948. if ((this._пользователиTableAdapter != null)) {
  8949. global::System.Data.DataRow[] updatedRows = dataSet.Пользователи.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8950. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8951. if (((updatedRows != null)
  8952. && (0 < updatedRows.Length))) {
  8953. result = (result + this._пользователиTableAdapter.Update(updatedRows));
  8954. allChangedRows.AddRange(updatedRows);
  8955. }
  8956. }
  8957. if ((this._официантыTableAdapter != null)) {
  8958. global::System.Data.DataRow[] updatedRows = dataSet.Официанты.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8959. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8960. if (((updatedRows != null)
  8961. && (0 < updatedRows.Length))) {
  8962. result = (result + this._официантыTableAdapter.Update(updatedRows));
  8963. allChangedRows.AddRange(updatedRows);
  8964. }
  8965. }
  8966. if ((this._повараTableAdapter != null)) {
  8967. global::System.Data.DataRow[] updatedRows = dataSet.Повара.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8968. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8969. if (((updatedRows != null)
  8970. && (0 < updatedRows.Length))) {
  8971. result = (result + this._повараTableAdapter.Update(updatedRows));
  8972. allChangedRows.AddRange(updatedRows);
  8973. }
  8974. }
  8975. if ((this._сменыTableAdapter != null)) {
  8976. global::System.Data.DataRow[] updatedRows = dataSet.Смены.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8977. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8978. if (((updatedRows != null)
  8979. && (0 < updatedRows.Length))) {
  8980. result = (result + this._сменыTableAdapter.Update(updatedRows));
  8981. allChangedRows.AddRange(updatedRows);
  8982. }
  8983. }
  8984. if ((this._статусЗаказаTableAdapter != null)) {
  8985. global::System.Data.DataRow[] updatedRows = dataSet.СтатусЗаказа.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8986. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8987. if (((updatedRows != null)
  8988. && (0 < updatedRows.Length))) {
  8989. result = (result + this._статусЗаказаTableAdapter.Update(updatedRows));
  8990. allChangedRows.AddRange(updatedRows);
  8991. }
  8992. }
  8993. if ((this._столикиTableAdapter != null)) {
  8994. global::System.Data.DataRow[] updatedRows = dataSet.Столики.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8995. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8996. if (((updatedRows != null)
  8997. && (0 < updatedRows.Length))) {
  8998. result = (result + this._столикиTableAdapter.Update(updatedRows));
  8999. allChangedRows.AddRange(updatedRows);
  9000. }
  9001. }
  9002. if ((this._блюдаНапиткиTableAdapter != null)) {
  9003. global::System.Data.DataRow[] updatedRows = dataSet.БлюдаНапитки.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9004. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9005. if (((updatedRows != null)
  9006. && (0 < updatedRows.Length))) {
  9007. result = (result + this._блюдаНапиткиTableAdapter.Update(updatedRows));
  9008. allChangedRows.AddRange(updatedRows);
  9009. }
  9010. }
  9011. if ((this._заказыTableAdapter != null)) {
  9012. global::System.Data.DataRow[] updatedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9013. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9014. if (((updatedRows != null)
  9015. && (0 < updatedRows.Length))) {
  9016. result = (result + this._заказыTableAdapter.Update(updatedRows));
  9017. allChangedRows.AddRange(updatedRows);
  9018. }
  9019. }
  9020. if ((this._заказанные_блюдаTableAdapter != null)) {
  9021. global::System.Data.DataRow[] updatedRows = dataSet.Заказанные_блюда.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  9022. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  9023. if (((updatedRows != null)
  9024. && (0 < updatedRows.Length))) {
  9025. result = (result + this._заказанные_блюдаTableAdapter.Update(updatedRows));
  9026. allChangedRows.AddRange(updatedRows);
  9027. }
  9028. }
  9029. return result;
  9030. }
  9031. /// <summary>
  9032. ///Insert rows in top-down order.
  9033. ///</summary>
  9034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9036. private int UpdateInsertedRows(CHER_KAFEDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  9037. int result = 0;
  9038. if ((this._ролиTableAdapter != null)) {
  9039. global::System.Data.DataRow[] addedRows = dataSet.Роли.Select(null, null, global::System.Data.DataViewRowState.Added);
  9040. if (((addedRows != null)
  9041. && (0 < addedRows.Length))) {
  9042. result = (result + this._ролиTableAdapter.Update(addedRows));
  9043. allAddedRows.AddRange(addedRows);
  9044. }
  9045. }
  9046. if ((this._статусСотрудникаTableAdapter != null)) {
  9047. global::System.Data.DataRow[] addedRows = dataSet.СтатусСотрудника.Select(null, null, global::System.Data.DataViewRowState.Added);
  9048. if (((addedRows != null)
  9049. && (0 < addedRows.Length))) {
  9050. result = (result + this._статусСотрудникаTableAdapter.Update(addedRows));
  9051. allAddedRows.AddRange(addedRows);
  9052. }
  9053. }
  9054. if ((this._пользователиTableAdapter != null)) {
  9055. global::System.Data.DataRow[] addedRows = dataSet.Пользователи.Select(null, null, global::System.Data.DataViewRowState.Added);
  9056. if (((addedRows != null)
  9057. && (0 < addedRows.Length))) {
  9058. result = (result + this._пользователиTableAdapter.Update(addedRows));
  9059. allAddedRows.AddRange(addedRows);
  9060. }
  9061. }
  9062. if ((this._официантыTableAdapter != null)) {
  9063. global::System.Data.DataRow[] addedRows = dataSet.Официанты.Select(null, null, global::System.Data.DataViewRowState.Added);
  9064. if (((addedRows != null)
  9065. && (0 < addedRows.Length))) {
  9066. result = (result + this._официантыTableAdapter.Update(addedRows));
  9067. allAddedRows.AddRange(addedRows);
  9068. }
  9069. }
  9070. if ((this._повараTableAdapter != null)) {
  9071. global::System.Data.DataRow[] addedRows = dataSet.Повара.Select(null, null, global::System.Data.DataViewRowState.Added);
  9072. if (((addedRows != null)
  9073. && (0 < addedRows.Length))) {
  9074. result = (result + this._повараTableAdapter.Update(addedRows));
  9075. allAddedRows.AddRange(addedRows);
  9076. }
  9077. }
  9078. if ((this._сменыTableAdapter != null)) {
  9079. global::System.Data.DataRow[] addedRows = dataSet.Смены.Select(null, null, global::System.Data.DataViewRowState.Added);
  9080. if (((addedRows != null)
  9081. && (0 < addedRows.Length))) {
  9082. result = (result + this._сменыTableAdapter.Update(addedRows));
  9083. allAddedRows.AddRange(addedRows);
  9084. }
  9085. }
  9086. if ((this._статусЗаказаTableAdapter != null)) {
  9087. global::System.Data.DataRow[] addedRows = dataSet.СтатусЗаказа.Select(null, null, global::System.Data.DataViewRowState.Added);
  9088. if (((addedRows != null)
  9089. && (0 < addedRows.Length))) {
  9090. result = (result + this._статусЗаказаTableAdapter.Update(addedRows));
  9091. allAddedRows.AddRange(addedRows);
  9092. }
  9093. }
  9094. if ((this._столикиTableAdapter != null)) {
  9095. global::System.Data.DataRow[] addedRows = dataSet.Столики.Select(null, null, global::System.Data.DataViewRowState.Added);
  9096. if (((addedRows != null)
  9097. && (0 < addedRows.Length))) {
  9098. result = (result + this._столикиTableAdapter.Update(addedRows));
  9099. allAddedRows.AddRange(addedRows);
  9100. }
  9101. }
  9102. if ((this._блюдаНапиткиTableAdapter != null)) {
  9103. global::System.Data.DataRow[] addedRows = dataSet.БлюдаНапитки.Select(null, null, global::System.Data.DataViewRowState.Added);
  9104. if (((addedRows != null)
  9105. && (0 < addedRows.Length))) {
  9106. result = (result + this._блюдаНапиткиTableAdapter.Update(addedRows));
  9107. allAddedRows.AddRange(addedRows);
  9108. }
  9109. }
  9110. if ((this._заказыTableAdapter != null)) {
  9111. global::System.Data.DataRow[] addedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.Added);
  9112. if (((addedRows != null)
  9113. && (0 < addedRows.Length))) {
  9114. result = (result + this._заказыTableAdapter.Update(addedRows));
  9115. allAddedRows.AddRange(addedRows);
  9116. }
  9117. }
  9118. if ((this._заказанные_блюдаTableAdapter != null)) {
  9119. global::System.Data.DataRow[] addedRows = dataSet.Заказанные_блюда.Select(null, null, global::System.Data.DataViewRowState.Added);
  9120. if (((addedRows != null)
  9121. && (0 < addedRows.Length))) {
  9122. result = (result + this._заказанные_блюдаTableAdapter.Update(addedRows));
  9123. allAddedRows.AddRange(addedRows);
  9124. }
  9125. }
  9126. return result;
  9127. }
  9128. /// <summary>
  9129. ///Delete rows in bottom-up order.
  9130. ///</summary>
  9131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9133. private int UpdateDeletedRows(CHER_KAFEDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  9134. int result = 0;
  9135. if ((this._заказанные_блюдаTableAdapter != null)) {
  9136. global::System.Data.DataRow[] deletedRows = dataSet.Заказанные_блюда.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9137. if (((deletedRows != null)
  9138. && (0 < deletedRows.Length))) {
  9139. result = (result + this._заказанные_блюдаTableAdapter.Update(deletedRows));
  9140. allChangedRows.AddRange(deletedRows);
  9141. }
  9142. }
  9143. if ((this._заказыTableAdapter != null)) {
  9144. global::System.Data.DataRow[] deletedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9145. if (((deletedRows != null)
  9146. && (0 < deletedRows.Length))) {
  9147. result = (result + this._заказыTableAdapter.Update(deletedRows));
  9148. allChangedRows.AddRange(deletedRows);
  9149. }
  9150. }
  9151. if ((this._блюдаНапиткиTableAdapter != null)) {
  9152. global::System.Data.DataRow[] deletedRows = dataSet.БлюдаНапитки.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9153. if (((deletedRows != null)
  9154. && (0 < deletedRows.Length))) {
  9155. result = (result + this._блюдаНапиткиTableAdapter.Update(deletedRows));
  9156. allChangedRows.AddRange(deletedRows);
  9157. }
  9158. }
  9159. if ((this._столикиTableAdapter != null)) {
  9160. global::System.Data.DataRow[] deletedRows = dataSet.Столики.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9161. if (((deletedRows != null)
  9162. && (0 < deletedRows.Length))) {
  9163. result = (result + this._столикиTableAdapter.Update(deletedRows));
  9164. allChangedRows.AddRange(deletedRows);
  9165. }
  9166. }
  9167. if ((this._статусЗаказаTableAdapter != null)) {
  9168. global::System.Data.DataRow[] deletedRows = dataSet.СтатусЗаказа.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9169. if (((deletedRows != null)
  9170. && (0 < deletedRows.Length))) {
  9171. result = (result + this._статусЗаказаTableAdapter.Update(deletedRows));
  9172. allChangedRows.AddRange(deletedRows);
  9173. }
  9174. }
  9175. if ((this._сменыTableAdapter != null)) {
  9176. global::System.Data.DataRow[] deletedRows = dataSet.Смены.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9177. if (((deletedRows != null)
  9178. && (0 < deletedRows.Length))) {
  9179. result = (result + this._сменыTableAdapter.Update(deletedRows));
  9180. allChangedRows.AddRange(deletedRows);
  9181. }
  9182. }
  9183. if ((this._повараTableAdapter != null)) {
  9184. global::System.Data.DataRow[] deletedRows = dataSet.Повара.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9185. if (((deletedRows != null)
  9186. && (0 < deletedRows.Length))) {
  9187. result = (result + this._повараTableAdapter.Update(deletedRows));
  9188. allChangedRows.AddRange(deletedRows);
  9189. }
  9190. }
  9191. if ((this._официантыTableAdapter != null)) {
  9192. global::System.Data.DataRow[] deletedRows = dataSet.Официанты.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9193. if (((deletedRows != null)
  9194. && (0 < deletedRows.Length))) {
  9195. result = (result + this._официантыTableAdapter.Update(deletedRows));
  9196. allChangedRows.AddRange(deletedRows);
  9197. }
  9198. }
  9199. if ((this._пользователиTableAdapter != null)) {
  9200. global::System.Data.DataRow[] deletedRows = dataSet.Пользователи.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9201. if (((deletedRows != null)
  9202. && (0 < deletedRows.Length))) {
  9203. result = (result + this._пользователиTableAdapter.Update(deletedRows));
  9204. allChangedRows.AddRange(deletedRows);
  9205. }
  9206. }
  9207. if ((this._статусСотрудникаTableAdapter != null)) {
  9208. global::System.Data.DataRow[] deletedRows = dataSet.СтатусСотрудника.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9209. if (((deletedRows != null)
  9210. && (0 < deletedRows.Length))) {
  9211. result = (result + this._статусСотрудникаTableAdapter.Update(deletedRows));
  9212. allChangedRows.AddRange(deletedRows);
  9213. }
  9214. }
  9215. if ((this._ролиTableAdapter != null)) {
  9216. global::System.Data.DataRow[] deletedRows = dataSet.Роли.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  9217. if (((deletedRows != null)
  9218. && (0 < deletedRows.Length))) {
  9219. result = (result + this._ролиTableAdapter.Update(deletedRows));
  9220. allChangedRows.AddRange(deletedRows);
  9221. }
  9222. }
  9223. return result;
  9224. }
  9225. /// <summary>
  9226. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  9227. ///</summary>
  9228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9230. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  9231. if (((updatedRows == null)
  9232. || (updatedRows.Length < 1))) {
  9233. return updatedRows;
  9234. }
  9235. if (((allAddedRows == null)
  9236. || (allAddedRows.Count < 1))) {
  9237. return updatedRows;
  9238. }
  9239. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  9240. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  9241. global::System.Data.DataRow row = updatedRows[i];
  9242. if ((allAddedRows.Contains(row) == false)) {
  9243. realUpdatedRows.Add(row);
  9244. }
  9245. }
  9246. return realUpdatedRows.ToArray();
  9247. }
  9248. /// <summary>
  9249. ///Update all changes to the dataset.
  9250. ///</summary>
  9251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9253. public virtual int UpdateAll(CHER_KAFEDataSet dataSet) {
  9254. if ((dataSet == null)) {
  9255. throw new global::System.ArgumentNullException("dataSet");
  9256. }
  9257. if ((dataSet.HasChanges() == false)) {
  9258. return 0;
  9259. }
  9260. if (((this._блюдаНапиткиTableAdapter != null)
  9261. && (this.MatchTableAdapterConnection(this._блюдаНапиткиTableAdapter.Connection) == false))) {
  9262. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9263. "r, должны использовать одинаковую строку подключения.");
  9264. }
  9265. if (((this._заказанные_блюдаTableAdapter != null)
  9266. && (this.MatchTableAdapterConnection(this._заказанные_блюдаTableAdapter.Connection) == false))) {
  9267. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9268. "r, должны использовать одинаковую строку подключения.");
  9269. }
  9270. if (((this._заказыTableAdapter != null)
  9271. && (this.MatchTableAdapterConnection(this._заказыTableAdapter.Connection) == false))) {
  9272. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9273. "r, должны использовать одинаковую строку подключения.");
  9274. }
  9275. if (((this._официантыTableAdapter != null)
  9276. && (this.MatchTableAdapterConnection(this._официантыTableAdapter.Connection) == false))) {
  9277. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9278. "r, должны использовать одинаковую строку подключения.");
  9279. }
  9280. if (((this._повараTableAdapter != null)
  9281. && (this.MatchTableAdapterConnection(this._повараTableAdapter.Connection) == false))) {
  9282. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9283. "r, должны использовать одинаковую строку подключения.");
  9284. }
  9285. if (((this._пользователиTableAdapter != null)
  9286. && (this.MatchTableAdapterConnection(this._пользователиTableAdapter.Connection) == false))) {
  9287. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9288. "r, должны использовать одинаковую строку подключения.");
  9289. }
  9290. if (((this._ролиTableAdapter != null)
  9291. && (this.MatchTableAdapterConnection(this._ролиTableAdapter.Connection) == false))) {
  9292. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9293. "r, должны использовать одинаковую строку подключения.");
  9294. }
  9295. if (((this._сменыTableAdapter != null)
  9296. && (this.MatchTableAdapterConnection(this._сменыTableAdapter.Connection) == false))) {
  9297. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9298. "r, должны использовать одинаковую строку подключения.");
  9299. }
  9300. if (((this._статусЗаказаTableAdapter != null)
  9301. && (this.MatchTableAdapterConnection(this._статусЗаказаTableAdapter.Connection) == false))) {
  9302. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9303. "r, должны использовать одинаковую строку подключения.");
  9304. }
  9305. if (((this._статусСотрудникаTableAdapter != null)
  9306. && (this.MatchTableAdapterConnection(this._статусСотрудникаTableAdapter.Connection) == false))) {
  9307. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9308. "r, должны использовать одинаковую строку подключения.");
  9309. }
  9310. if (((this._столикиTableAdapter != null)
  9311. && (this.MatchTableAdapterConnection(this._столикиTableAdapter.Connection) == false))) {
  9312. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  9313. "r, должны использовать одинаковую строку подключения.");
  9314. }
  9315. global::System.Data.IDbConnection workConnection = this.Connection;
  9316. if ((workConnection == null)) {
  9317. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  9318. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  9319. }
  9320. bool workConnOpened = false;
  9321. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  9322. == global::System.Data.ConnectionState.Broken)) {
  9323. workConnection.Close();
  9324. }
  9325. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  9326. workConnection.Open();
  9327. workConnOpened = true;
  9328. }
  9329. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  9330. if ((workTransaction == null)) {
  9331. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  9332. "и или текущее состояние не позволяет начать транзакцию.");
  9333. }
  9334. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  9335. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  9336. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  9337. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  9338. int result = 0;
  9339. global::System.Data.DataSet backupDataSet = null;
  9340. if (this.BackupDataSetBeforeUpdate) {
  9341. backupDataSet = new global::System.Data.DataSet();
  9342. backupDataSet.Merge(dataSet);
  9343. }
  9344. try {
  9345. // ---- Prepare for update -----------
  9346. //
  9347. if ((this._блюдаНапиткиTableAdapter != null)) {
  9348. revertConnections.Add(this._блюдаНапиткиTableAdapter, this._блюдаНапиткиTableAdapter.Connection);
  9349. this._блюдаНапиткиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9350. this._блюдаНапиткиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9351. if (this._блюдаНапиткиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9352. this._блюдаНапиткиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9353. adaptersWithAcceptChangesDuringUpdate.Add(this._блюдаНапиткиTableAdapter.Adapter);
  9354. }
  9355. }
  9356. if ((this._заказанные_блюдаTableAdapter != null)) {
  9357. revertConnections.Add(this._заказанные_блюдаTableAdapter, this._заказанные_блюдаTableAdapter.Connection);
  9358. this._заказанные_блюдаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9359. this._заказанные_блюдаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9360. if (this._заказанные_блюдаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9361. this._заказанные_блюдаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9362. adaptersWithAcceptChangesDuringUpdate.Add(this._заказанные_блюдаTableAdapter.Adapter);
  9363. }
  9364. }
  9365. if ((this._заказыTableAdapter != null)) {
  9366. revertConnections.Add(this._заказыTableAdapter, this._заказыTableAdapter.Connection);
  9367. this._заказыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9368. this._заказыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9369. if (this._заказыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9370. this._заказыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9371. adaptersWithAcceptChangesDuringUpdate.Add(this._заказыTableAdapter.Adapter);
  9372. }
  9373. }
  9374. if ((this._официантыTableAdapter != null)) {
  9375. revertConnections.Add(this._официантыTableAdapter, this._официантыTableAdapter.Connection);
  9376. this._официантыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9377. this._официантыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9378. if (this._официантыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9379. this._официантыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9380. adaptersWithAcceptChangesDuringUpdate.Add(this._официантыTableAdapter.Adapter);
  9381. }
  9382. }
  9383. if ((this._повараTableAdapter != null)) {
  9384. revertConnections.Add(this._повараTableAdapter, this._повараTableAdapter.Connection);
  9385. this._повараTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9386. this._повараTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9387. if (this._повараTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9388. this._повараTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9389. adaptersWithAcceptChangesDuringUpdate.Add(this._повараTableAdapter.Adapter);
  9390. }
  9391. }
  9392. if ((this._пользователиTableAdapter != null)) {
  9393. revertConnections.Add(this._пользователиTableAdapter, this._пользователиTableAdapter.Connection);
  9394. this._пользователиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9395. this._пользователиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9396. if (this._пользователиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9397. this._пользователиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9398. adaptersWithAcceptChangesDuringUpdate.Add(this._пользователиTableAdapter.Adapter);
  9399. }
  9400. }
  9401. if ((this._ролиTableAdapter != null)) {
  9402. revertConnections.Add(this._ролиTableAdapter, this._ролиTableAdapter.Connection);
  9403. this._ролиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9404. this._ролиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9405. if (this._ролиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9406. this._ролиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9407. adaptersWithAcceptChangesDuringUpdate.Add(this._ролиTableAdapter.Adapter);
  9408. }
  9409. }
  9410. if ((this._сменыTableAdapter != null)) {
  9411. revertConnections.Add(this._сменыTableAdapter, this._сменыTableAdapter.Connection);
  9412. this._сменыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9413. this._сменыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9414. if (this._сменыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9415. this._сменыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9416. adaptersWithAcceptChangesDuringUpdate.Add(this._сменыTableAdapter.Adapter);
  9417. }
  9418. }
  9419. if ((this._статусЗаказаTableAdapter != null)) {
  9420. revertConnections.Add(this._статусЗаказаTableAdapter, this._статусЗаказаTableAdapter.Connection);
  9421. this._статусЗаказаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9422. this._статусЗаказаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9423. if (this._статусЗаказаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9424. this._статусЗаказаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9425. adaptersWithAcceptChangesDuringUpdate.Add(this._статусЗаказаTableAdapter.Adapter);
  9426. }
  9427. }
  9428. if ((this._статусСотрудникаTableAdapter != null)) {
  9429. revertConnections.Add(this._статусСотрудникаTableAdapter, this._статусСотрудникаTableAdapter.Connection);
  9430. this._статусСотрудникаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9431. this._статусСотрудникаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9432. if (this._статусСотрудникаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9433. this._статусСотрудникаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9434. adaptersWithAcceptChangesDuringUpdate.Add(this._статусСотрудникаTableAdapter.Adapter);
  9435. }
  9436. }
  9437. if ((this._столикиTableAdapter != null)) {
  9438. revertConnections.Add(this._столикиTableAdapter, this._столикиTableAdapter.Connection);
  9439. this._столикиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9440. this._столикиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9441. if (this._столикиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9442. this._столикиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9443. adaptersWithAcceptChangesDuringUpdate.Add(this._столикиTableAdapter.Adapter);
  9444. }
  9445. }
  9446. //
  9447. //---- Perform updates -----------
  9448. //
  9449. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  9450. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  9451. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  9452. }
  9453. else {
  9454. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  9455. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  9456. }
  9457. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  9458. //
  9459. //---- Commit updates -----------
  9460. //
  9461. workTransaction.Commit();
  9462. if ((0 < allAddedRows.Count)) {
  9463. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  9464. allAddedRows.CopyTo(rows);
  9465. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9466. global::System.Data.DataRow row = rows[i];
  9467. row.AcceptChanges();
  9468. }
  9469. }
  9470. if ((0 < allChangedRows.Count)) {
  9471. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  9472. allChangedRows.CopyTo(rows);
  9473. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9474. global::System.Data.DataRow row = rows[i];
  9475. row.AcceptChanges();
  9476. }
  9477. }
  9478. }
  9479. catch (global::System.Exception ex) {
  9480. workTransaction.Rollback();
  9481. // ---- Restore the dataset -----------
  9482. if (this.BackupDataSetBeforeUpdate) {
  9483. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  9484. dataSet.Clear();
  9485. dataSet.Merge(backupDataSet);
  9486. }
  9487. else {
  9488. if ((0 < allAddedRows.Count)) {
  9489. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  9490. allAddedRows.CopyTo(rows);
  9491. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9492. global::System.Data.DataRow row = rows[i];
  9493. row.AcceptChanges();
  9494. row.SetAdded();
  9495. }
  9496. }
  9497. }
  9498. throw ex;
  9499. }
  9500. finally {
  9501. if (workConnOpened) {
  9502. workConnection.Close();
  9503. }
  9504. if ((this._блюдаНапиткиTableAdapter != null)) {
  9505. this._блюдаНапиткиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._блюдаНапиткиTableAdapter]));
  9506. this._блюдаНапиткиTableAdapter.Transaction = null;
  9507. }
  9508. if ((this._заказанные_блюдаTableAdapter != null)) {
  9509. this._заказанные_блюдаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказанные_блюдаTableAdapter]));
  9510. this._заказанные_блюдаTableAdapter.Transaction = null;
  9511. }
  9512. if ((this._заказыTableAdapter != null)) {
  9513. this._заказыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказыTableAdapter]));
  9514. this._заказыTableAdapter.Transaction = null;
  9515. }
  9516. if ((this._официантыTableAdapter != null)) {
  9517. this._официантыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._официантыTableAdapter]));
  9518. this._официантыTableAdapter.Transaction = null;
  9519. }
  9520. if ((this._повараTableAdapter != null)) {
  9521. this._повараTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._повараTableAdapter]));
  9522. this._повараTableAdapter.Transaction = null;
  9523. }
  9524. if ((this._пользователиTableAdapter != null)) {
  9525. this._пользователиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._пользователиTableAdapter]));
  9526. this._пользователиTableAdapter.Transaction = null;
  9527. }
  9528. if ((this._ролиTableAdapter != null)) {
  9529. this._ролиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ролиTableAdapter]));
  9530. this._ролиTableAdapter.Transaction = null;
  9531. }
  9532. if ((this._сменыTableAdapter != null)) {
  9533. this._сменыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сменыTableAdapter]));
  9534. this._сменыTableAdapter.Transaction = null;
  9535. }
  9536. if ((this._статусЗаказаTableAdapter != null)) {
  9537. this._статусЗаказаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._статусЗаказаTableAdapter]));
  9538. this._статусЗаказаTableAdapter.Transaction = null;
  9539. }
  9540. if ((this._статусСотрудникаTableAdapter != null)) {
  9541. this._статусСотрудникаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._статусСотрудникаTableAdapter]));
  9542. this._статусСотрудникаTableAdapter.Transaction = null;
  9543. }
  9544. if ((this._столикиTableAdapter != null)) {
  9545. this._столикиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._столикиTableAdapter]));
  9546. this._столикиTableAdapter.Transaction = null;
  9547. }
  9548. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  9549. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  9550. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  9551. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  9552. global::System.Data.Common.DataAdapter adapter = adapters[i];
  9553. adapter.AcceptChangesDuringUpdate = true;
  9554. }
  9555. }
  9556. }
  9557. return result;
  9558. }
  9559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9561. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  9562. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  9563. }
  9564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9566. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  9567. if ((this._connection != null)) {
  9568. return true;
  9569. }
  9570. if (((this.Connection == null)
  9571. || (inputConnection == null))) {
  9572. return true;
  9573. }
  9574. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  9575. return true;
  9576. }
  9577. return false;
  9578. }
  9579. /// <summary>
  9580. ///Update Order Option
  9581. ///</summary>
  9582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9583. public enum UpdateOrderOption {
  9584. InsertUpdateDelete = 0,
  9585. UpdateInsertDelete = 1,
  9586. }
  9587. /// <summary>
  9588. ///Used to sort self-referenced table's rows
  9589. ///</summary>
  9590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9591. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  9592. private global::System.Data.DataRelation _relation;
  9593. private int _childFirst;
  9594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9596. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  9597. this._relation = relation;
  9598. if (childFirst) {
  9599. this._childFirst = -1;
  9600. }
  9601. else {
  9602. this._childFirst = 1;
  9603. }
  9604. }
  9605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9607. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  9608. global::System.Diagnostics.Debug.Assert((row != null));
  9609. global::System.Data.DataRow root = row;
  9610. distance = 0;
  9611. 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>();
  9612. traversedRows[row] = row;
  9613. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  9614. for (
  9615. ; ((parent != null)
  9616. && (traversedRows.ContainsKey(parent) == false));
  9617. ) {
  9618. distance = (distance + 1);
  9619. root = parent;
  9620. traversedRows[parent] = parent;
  9621. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  9622. }
  9623. if ((distance == 0)) {
  9624. traversedRows.Clear();
  9625. traversedRows[row] = row;
  9626. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  9627. for (
  9628. ; ((parent != null)
  9629. && (traversedRows.ContainsKey(parent) == false));
  9630. ) {
  9631. distance = (distance + 1);
  9632. root = parent;
  9633. traversedRows[parent] = parent;
  9634. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  9635. }
  9636. }
  9637. return root;
  9638. }
  9639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9641. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  9642. if (object.ReferenceEquals(row1, row2)) {
  9643. return 0;
  9644. }
  9645. if ((row1 == null)) {
  9646. return -1;
  9647. }
  9648. if ((row2 == null)) {
  9649. return 1;
  9650. }
  9651. int distance1 = 0;
  9652. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  9653. int distance2 = 0;
  9654. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  9655. if (object.ReferenceEquals(root1, root2)) {
  9656. return (this._childFirst * distance1.CompareTo(distance2));
  9657. }
  9658. else {
  9659. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  9660. && (root2.Table != null)));
  9661. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  9662. return -1;
  9663. }
  9664. else {
  9665. return 1;
  9666. }
  9667. }
  9668. }
  9669. }
  9670. }
  9671. }
  9672. #pragma warning restore 1591