Kafe09DataSet.Designer.cs 622 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Kafe09 {
  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("Kafe09DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class Kafe09DataSet : global::System.Data.DataSet {
  22. private BludaDataTable tableBluda;
  23. private DoljnostiDataTable tableDoljnosti;
  24. private PolzovateliDataTable tablePolzovateli;
  25. private SmeniDataTable tableSmeni;
  26. private StatusiPolzovateleyDataTable tableStatusiPolzovateley;
  27. private StatusiZakazaDataTable tableStatusiZakaza;
  28. private StolikiDataTable tableStoliki;
  29. private TipiOplatiDataTable tableTipiOplati;
  30. private ZakazannieBludaDataTable tableZakazannieBluda;
  31. private ZakaziDataTable tableZakazi;
  32. private global::System.Data.DataRelation relationFK_Polzovateli_StatusiPolzovateley;
  33. private global::System.Data.DataRelation relationFK_Polzovateli_Должность;
  34. private global::System.Data.DataRelation relationFK_Smeni_Polzovateli;
  35. private global::System.Data.DataRelation relationFK_ZakazannieBluda_Bluda;
  36. private global::System.Data.DataRelation relationFK_Zakazi_Smeni;
  37. private global::System.Data.DataRelation relationFK_Zakazi_StatusZakaza;
  38. private global::System.Data.DataRelation relationFK_Zakazi_Stoliki;
  39. private global::System.Data.DataRelation relationFK_Zakazi_TipOplati;
  40. private global::System.Data.DataRelation relationFK_Zakazi_ZakazannieBluda;
  41. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  42. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  43. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  44. public Kafe09DataSet() {
  45. this.BeginInit();
  46. this.InitClass();
  47. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  48. base.Tables.CollectionChanged += schemaChangedHandler;
  49. base.Relations.CollectionChanged += schemaChangedHandler;
  50. this.EndInit();
  51. }
  52. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  53. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  54. protected Kafe09DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  55. base(info, context, false) {
  56. if ((this.IsBinarySerialized(info, context) == true)) {
  57. this.InitVars(false);
  58. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  59. this.Tables.CollectionChanged += schemaChangedHandler1;
  60. this.Relations.CollectionChanged += schemaChangedHandler1;
  61. return;
  62. }
  63. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  64. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  65. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  66. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  67. if ((ds.Tables["Bluda"] != null)) {
  68. base.Tables.Add(new BludaDataTable(ds.Tables["Bluda"]));
  69. }
  70. if ((ds.Tables["Doljnosti"] != null)) {
  71. base.Tables.Add(new DoljnostiDataTable(ds.Tables["Doljnosti"]));
  72. }
  73. if ((ds.Tables["Polzovateli"] != null)) {
  74. base.Tables.Add(new PolzovateliDataTable(ds.Tables["Polzovateli"]));
  75. }
  76. if ((ds.Tables["Smeni"] != null)) {
  77. base.Tables.Add(new SmeniDataTable(ds.Tables["Smeni"]));
  78. }
  79. if ((ds.Tables["StatusiPolzovateley"] != null)) {
  80. base.Tables.Add(new StatusiPolzovateleyDataTable(ds.Tables["StatusiPolzovateley"]));
  81. }
  82. if ((ds.Tables["StatusiZakaza"] != null)) {
  83. base.Tables.Add(new StatusiZakazaDataTable(ds.Tables["StatusiZakaza"]));
  84. }
  85. if ((ds.Tables["Stoliki"] != null)) {
  86. base.Tables.Add(new StolikiDataTable(ds.Tables["Stoliki"]));
  87. }
  88. if ((ds.Tables["TipiOplati"] != null)) {
  89. base.Tables.Add(new TipiOplatiDataTable(ds.Tables["TipiOplati"]));
  90. }
  91. if ((ds.Tables["ZakazannieBluda"] != null)) {
  92. base.Tables.Add(new ZakazannieBludaDataTable(ds.Tables["ZakazannieBluda"]));
  93. }
  94. if ((ds.Tables["Zakazi"] != null)) {
  95. base.Tables.Add(new ZakaziDataTable(ds.Tables["Zakazi"]));
  96. }
  97. this.DataSetName = ds.DataSetName;
  98. this.Prefix = ds.Prefix;
  99. this.Namespace = ds.Namespace;
  100. this.Locale = ds.Locale;
  101. this.CaseSensitive = ds.CaseSensitive;
  102. this.EnforceConstraints = ds.EnforceConstraints;
  103. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  104. this.InitVars();
  105. }
  106. else {
  107. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  108. }
  109. this.GetSerializationData(info, context);
  110. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  111. base.Tables.CollectionChanged += schemaChangedHandler;
  112. this.Relations.CollectionChanged += schemaChangedHandler;
  113. }
  114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  116. [global::System.ComponentModel.Browsable(false)]
  117. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  118. public BludaDataTable Bluda {
  119. get {
  120. return this.tableBluda;
  121. }
  122. }
  123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  125. [global::System.ComponentModel.Browsable(false)]
  126. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  127. public DoljnostiDataTable Doljnosti {
  128. get {
  129. return this.tableDoljnosti;
  130. }
  131. }
  132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  134. [global::System.ComponentModel.Browsable(false)]
  135. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  136. public PolzovateliDataTable Polzovateli {
  137. get {
  138. return this.tablePolzovateli;
  139. }
  140. }
  141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  143. [global::System.ComponentModel.Browsable(false)]
  144. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  145. public SmeniDataTable Smeni {
  146. get {
  147. return this.tableSmeni;
  148. }
  149. }
  150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  152. [global::System.ComponentModel.Browsable(false)]
  153. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  154. public StatusiPolzovateleyDataTable StatusiPolzovateley {
  155. get {
  156. return this.tableStatusiPolzovateley;
  157. }
  158. }
  159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  161. [global::System.ComponentModel.Browsable(false)]
  162. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  163. public StatusiZakazaDataTable StatusiZakaza {
  164. get {
  165. return this.tableStatusiZakaza;
  166. }
  167. }
  168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  170. [global::System.ComponentModel.Browsable(false)]
  171. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  172. public StolikiDataTable Stoliki {
  173. get {
  174. return this.tableStoliki;
  175. }
  176. }
  177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  179. [global::System.ComponentModel.Browsable(false)]
  180. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  181. public TipiOplatiDataTable TipiOplati {
  182. get {
  183. return this.tableTipiOplati;
  184. }
  185. }
  186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  188. [global::System.ComponentModel.Browsable(false)]
  189. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  190. public ZakazannieBludaDataTable ZakazannieBluda {
  191. get {
  192. return this.tableZakazannieBluda;
  193. }
  194. }
  195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  197. [global::System.ComponentModel.Browsable(false)]
  198. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  199. public ZakaziDataTable Zakazi {
  200. get {
  201. return this.tableZakazi;
  202. }
  203. }
  204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  206. [global::System.ComponentModel.BrowsableAttribute(true)]
  207. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  208. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  209. get {
  210. return this._schemaSerializationMode;
  211. }
  212. set {
  213. this._schemaSerializationMode = value;
  214. }
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  218. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  219. public new global::System.Data.DataTableCollection Tables {
  220. get {
  221. return base.Tables;
  222. }
  223. }
  224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  226. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  227. public new global::System.Data.DataRelationCollection Relations {
  228. get {
  229. return base.Relations;
  230. }
  231. }
  232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  234. protected override void InitializeDerivedDataSet() {
  235. this.BeginInit();
  236. this.InitClass();
  237. this.EndInit();
  238. }
  239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  241. public override global::System.Data.DataSet Clone() {
  242. Kafe09DataSet cln = ((Kafe09DataSet)(base.Clone()));
  243. cln.InitVars();
  244. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  245. return cln;
  246. }
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  249. protected override bool ShouldSerializeTables() {
  250. return false;
  251. }
  252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  254. protected override bool ShouldSerializeRelations() {
  255. return false;
  256. }
  257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  259. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  260. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  261. this.Reset();
  262. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  263. ds.ReadXml(reader);
  264. if ((ds.Tables["Bluda"] != null)) {
  265. base.Tables.Add(new BludaDataTable(ds.Tables["Bluda"]));
  266. }
  267. if ((ds.Tables["Doljnosti"] != null)) {
  268. base.Tables.Add(new DoljnostiDataTable(ds.Tables["Doljnosti"]));
  269. }
  270. if ((ds.Tables["Polzovateli"] != null)) {
  271. base.Tables.Add(new PolzovateliDataTable(ds.Tables["Polzovateli"]));
  272. }
  273. if ((ds.Tables["Smeni"] != null)) {
  274. base.Tables.Add(new SmeniDataTable(ds.Tables["Smeni"]));
  275. }
  276. if ((ds.Tables["StatusiPolzovateley"] != null)) {
  277. base.Tables.Add(new StatusiPolzovateleyDataTable(ds.Tables["StatusiPolzovateley"]));
  278. }
  279. if ((ds.Tables["StatusiZakaza"] != null)) {
  280. base.Tables.Add(new StatusiZakazaDataTable(ds.Tables["StatusiZakaza"]));
  281. }
  282. if ((ds.Tables["Stoliki"] != null)) {
  283. base.Tables.Add(new StolikiDataTable(ds.Tables["Stoliki"]));
  284. }
  285. if ((ds.Tables["TipiOplati"] != null)) {
  286. base.Tables.Add(new TipiOplatiDataTable(ds.Tables["TipiOplati"]));
  287. }
  288. if ((ds.Tables["ZakazannieBluda"] != null)) {
  289. base.Tables.Add(new ZakazannieBludaDataTable(ds.Tables["ZakazannieBluda"]));
  290. }
  291. if ((ds.Tables["Zakazi"] != null)) {
  292. base.Tables.Add(new ZakaziDataTable(ds.Tables["Zakazi"]));
  293. }
  294. this.DataSetName = ds.DataSetName;
  295. this.Prefix = ds.Prefix;
  296. this.Namespace = ds.Namespace;
  297. this.Locale = ds.Locale;
  298. this.CaseSensitive = ds.CaseSensitive;
  299. this.EnforceConstraints = ds.EnforceConstraints;
  300. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  301. this.InitVars();
  302. }
  303. else {
  304. this.ReadXml(reader);
  305. this.InitVars();
  306. }
  307. }
  308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  310. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  311. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  312. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  313. stream.Position = 0;
  314. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  315. }
  316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  318. internal void InitVars() {
  319. this.InitVars(true);
  320. }
  321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  323. internal void InitVars(bool initTable) {
  324. this.tableBluda = ((BludaDataTable)(base.Tables["Bluda"]));
  325. if ((initTable == true)) {
  326. if ((this.tableBluda != null)) {
  327. this.tableBluda.InitVars();
  328. }
  329. }
  330. this.tableDoljnosti = ((DoljnostiDataTable)(base.Tables["Doljnosti"]));
  331. if ((initTable == true)) {
  332. if ((this.tableDoljnosti != null)) {
  333. this.tableDoljnosti.InitVars();
  334. }
  335. }
  336. this.tablePolzovateli = ((PolzovateliDataTable)(base.Tables["Polzovateli"]));
  337. if ((initTable == true)) {
  338. if ((this.tablePolzovateli != null)) {
  339. this.tablePolzovateli.InitVars();
  340. }
  341. }
  342. this.tableSmeni = ((SmeniDataTable)(base.Tables["Smeni"]));
  343. if ((initTable == true)) {
  344. if ((this.tableSmeni != null)) {
  345. this.tableSmeni.InitVars();
  346. }
  347. }
  348. this.tableStatusiPolzovateley = ((StatusiPolzovateleyDataTable)(base.Tables["StatusiPolzovateley"]));
  349. if ((initTable == true)) {
  350. if ((this.tableStatusiPolzovateley != null)) {
  351. this.tableStatusiPolzovateley.InitVars();
  352. }
  353. }
  354. this.tableStatusiZakaza = ((StatusiZakazaDataTable)(base.Tables["StatusiZakaza"]));
  355. if ((initTable == true)) {
  356. if ((this.tableStatusiZakaza != null)) {
  357. this.tableStatusiZakaza.InitVars();
  358. }
  359. }
  360. this.tableStoliki = ((StolikiDataTable)(base.Tables["Stoliki"]));
  361. if ((initTable == true)) {
  362. if ((this.tableStoliki != null)) {
  363. this.tableStoliki.InitVars();
  364. }
  365. }
  366. this.tableTipiOplati = ((TipiOplatiDataTable)(base.Tables["TipiOplati"]));
  367. if ((initTable == true)) {
  368. if ((this.tableTipiOplati != null)) {
  369. this.tableTipiOplati.InitVars();
  370. }
  371. }
  372. this.tableZakazannieBluda = ((ZakazannieBludaDataTable)(base.Tables["ZakazannieBluda"]));
  373. if ((initTable == true)) {
  374. if ((this.tableZakazannieBluda != null)) {
  375. this.tableZakazannieBluda.InitVars();
  376. }
  377. }
  378. this.tableZakazi = ((ZakaziDataTable)(base.Tables["Zakazi"]));
  379. if ((initTable == true)) {
  380. if ((this.tableZakazi != null)) {
  381. this.tableZakazi.InitVars();
  382. }
  383. }
  384. this.relationFK_Polzovateli_StatusiPolzovateley = this.Relations["FK_Polzovateli_StatusiPolzovateley"];
  385. this.relationFK_Polzovateli_Должность = this.Relations["FK_Polzovateli_Должность"];
  386. this.relationFK_Smeni_Polzovateli = this.Relations["FK_Smeni_Polzovateli"];
  387. this.relationFK_ZakazannieBluda_Bluda = this.Relations["FK_ZakazannieBluda_Bluda"];
  388. this.relationFK_Zakazi_Smeni = this.Relations["FK_Zakazi_Smeni"];
  389. this.relationFK_Zakazi_StatusZakaza = this.Relations["FK_Zakazi_StatusZakaza"];
  390. this.relationFK_Zakazi_Stoliki = this.Relations["FK_Zakazi_Stoliki"];
  391. this.relationFK_Zakazi_TipOplati = this.Relations["FK_Zakazi_TipOplati"];
  392. this.relationFK_Zakazi_ZakazannieBluda = this.Relations["FK_Zakazi_ZakazannieBluda"];
  393. }
  394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  396. private void InitClass() {
  397. this.DataSetName = "Kafe09DataSet";
  398. this.Prefix = "";
  399. this.Namespace = "http://tempuri.org/Kafe09DataSet.xsd";
  400. this.EnforceConstraints = true;
  401. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  402. this.tableBluda = new BludaDataTable();
  403. base.Tables.Add(this.tableBluda);
  404. this.tableDoljnosti = new DoljnostiDataTable();
  405. base.Tables.Add(this.tableDoljnosti);
  406. this.tablePolzovateli = new PolzovateliDataTable();
  407. base.Tables.Add(this.tablePolzovateli);
  408. this.tableSmeni = new SmeniDataTable();
  409. base.Tables.Add(this.tableSmeni);
  410. this.tableStatusiPolzovateley = new StatusiPolzovateleyDataTable();
  411. base.Tables.Add(this.tableStatusiPolzovateley);
  412. this.tableStatusiZakaza = new StatusiZakazaDataTable();
  413. base.Tables.Add(this.tableStatusiZakaza);
  414. this.tableStoliki = new StolikiDataTable();
  415. base.Tables.Add(this.tableStoliki);
  416. this.tableTipiOplati = new TipiOplatiDataTable();
  417. base.Tables.Add(this.tableTipiOplati);
  418. this.tableZakazannieBluda = new ZakazannieBludaDataTable();
  419. base.Tables.Add(this.tableZakazannieBluda);
  420. this.tableZakazi = new ZakaziDataTable();
  421. base.Tables.Add(this.tableZakazi);
  422. this.relationFK_Polzovateli_StatusiPolzovateley = new global::System.Data.DataRelation("FK_Polzovateli_StatusiPolzovateley", new global::System.Data.DataColumn[] {
  423. this.tableStatusiPolzovateley.idColumn}, new global::System.Data.DataColumn[] {
  424. this.tablePolzovateli.СтатусПользователяColumn}, false);
  425. this.Relations.Add(this.relationFK_Polzovateli_StatusiPolzovateley);
  426. this.relationFK_Polzovateli_Должность = new global::System.Data.DataRelation("FK_Polzovateli_Должность", new global::System.Data.DataColumn[] {
  427. this.tableDoljnosti.idColumn}, new global::System.Data.DataColumn[] {
  428. this.tablePolzovateli.DoljnostColumn}, false);
  429. this.Relations.Add(this.relationFK_Polzovateli_Должность);
  430. this.relationFK_Smeni_Polzovateli = new global::System.Data.DataRelation("FK_Smeni_Polzovateli", new global::System.Data.DataColumn[] {
  431. this.tablePolzovateli.idColumn}, new global::System.Data.DataColumn[] {
  432. this.tableSmeni.idColumn}, false);
  433. this.Relations.Add(this.relationFK_Smeni_Polzovateli);
  434. this.relationFK_ZakazannieBluda_Bluda = new global::System.Data.DataRelation("FK_ZakazannieBluda_Bluda", new global::System.Data.DataColumn[] {
  435. this.tableBluda.idColumn}, new global::System.Data.DataColumn[] {
  436. this.tableZakazannieBluda.ЗаказанныеБлюдаColumn}, false);
  437. this.Relations.Add(this.relationFK_ZakazannieBluda_Bluda);
  438. this.relationFK_Zakazi_Smeni = new global::System.Data.DataRelation("FK_Zakazi_Smeni", new global::System.Data.DataColumn[] {
  439. this.tableSmeni.idColumn}, new global::System.Data.DataColumn[] {
  440. this.tableZakazi.СменаColumn}, false);
  441. this.Relations.Add(this.relationFK_Zakazi_Smeni);
  442. this.relationFK_Zakazi_StatusZakaza = new global::System.Data.DataRelation("FK_Zakazi_StatusZakaza", new global::System.Data.DataColumn[] {
  443. this.tableStatusiZakaza.idColumn}, new global::System.Data.DataColumn[] {
  444. this.tableZakazi.СтатусЗаказаColumn}, false);
  445. this.Relations.Add(this.relationFK_Zakazi_StatusZakaza);
  446. this.relationFK_Zakazi_Stoliki = new global::System.Data.DataRelation("FK_Zakazi_Stoliki", new global::System.Data.DataColumn[] {
  447. this.tableStoliki.idColumn}, new global::System.Data.DataColumn[] {
  448. this.tableZakazi.СтоликColumn}, false);
  449. this.Relations.Add(this.relationFK_Zakazi_Stoliki);
  450. this.relationFK_Zakazi_TipOplati = new global::System.Data.DataRelation("FK_Zakazi_TipOplati", new global::System.Data.DataColumn[] {
  451. this.tableTipiOplati.idColumn}, new global::System.Data.DataColumn[] {
  452. this.tableZakazi.ТипОплатыColumn}, false);
  453. this.Relations.Add(this.relationFK_Zakazi_TipOplati);
  454. this.relationFK_Zakazi_ZakazannieBluda = new global::System.Data.DataRelation("FK_Zakazi_ZakazannieBluda", new global::System.Data.DataColumn[] {
  455. this.tableZakazannieBluda.idColumn}, new global::System.Data.DataColumn[] {
  456. this.tableZakazi.ЗаказанныеБлюдаColumn}, false);
  457. this.Relations.Add(this.relationFK_Zakazi_ZakazannieBluda);
  458. }
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  461. private bool ShouldSerializeBluda() {
  462. return false;
  463. }
  464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  466. private bool ShouldSerializeDoljnosti() {
  467. return false;
  468. }
  469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  471. private bool ShouldSerializePolzovateli() {
  472. return false;
  473. }
  474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  476. private bool ShouldSerializeSmeni() {
  477. return false;
  478. }
  479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  481. private bool ShouldSerializeStatusiPolzovateley() {
  482. return false;
  483. }
  484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  486. private bool ShouldSerializeStatusiZakaza() {
  487. return false;
  488. }
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  491. private bool ShouldSerializeStoliki() {
  492. return false;
  493. }
  494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  496. private bool ShouldSerializeTipiOplati() {
  497. return false;
  498. }
  499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  501. private bool ShouldSerializeZakazannieBluda() {
  502. return false;
  503. }
  504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  506. private bool ShouldSerializeZakazi() {
  507. return false;
  508. }
  509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  511. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  512. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  513. this.InitVars();
  514. }
  515. }
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  518. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  519. Kafe09DataSet ds = new Kafe09DataSet();
  520. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  521. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  522. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  523. any.Namespace = ds.Namespace;
  524. sequence.Items.Add(any);
  525. type.Particle = sequence;
  526. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  527. if (xs.Contains(dsSchema.TargetNamespace)) {
  528. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  529. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  530. try {
  531. global::System.Xml.Schema.XmlSchema schema = null;
  532. dsSchema.Write(s1);
  533. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  534. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  535. s2.SetLength(0);
  536. schema.Write(s2);
  537. if ((s1.Length == s2.Length)) {
  538. s1.Position = 0;
  539. s2.Position = 0;
  540. for (; ((s1.Position != s1.Length)
  541. && (s1.ReadByte() == s2.ReadByte())); ) {
  542. ;
  543. }
  544. if ((s1.Position == s1.Length)) {
  545. return type;
  546. }
  547. }
  548. }
  549. }
  550. finally {
  551. if ((s1 != null)) {
  552. s1.Close();
  553. }
  554. if ((s2 != null)) {
  555. s2.Close();
  556. }
  557. }
  558. }
  559. xs.Add(dsSchema);
  560. return type;
  561. }
  562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  563. public delegate void BludaRowChangeEventHandler(object sender, BludaRowChangeEvent e);
  564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  565. public delegate void DoljnostiRowChangeEventHandler(object sender, DoljnostiRowChangeEvent e);
  566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  567. public delegate void PolzovateliRowChangeEventHandler(object sender, PolzovateliRowChangeEvent e);
  568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  569. public delegate void SmeniRowChangeEventHandler(object sender, SmeniRowChangeEvent e);
  570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  571. public delegate void StatusiPolzovateleyRowChangeEventHandler(object sender, StatusiPolzovateleyRowChangeEvent e);
  572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  573. public delegate void StatusiZakazaRowChangeEventHandler(object sender, StatusiZakazaRowChangeEvent e);
  574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  575. public delegate void StolikiRowChangeEventHandler(object sender, StolikiRowChangeEvent e);
  576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  577. public delegate void TipiOplatiRowChangeEventHandler(object sender, TipiOplatiRowChangeEvent e);
  578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  579. public delegate void ZakazannieBludaRowChangeEventHandler(object sender, ZakazannieBludaRowChangeEvent e);
  580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  581. public delegate void ZakaziRowChangeEventHandler(object sender, ZakaziRowChangeEvent e);
  582. /// <summary>
  583. ///Represents the strongly named DataTable class.
  584. ///</summary>
  585. [global::System.Serializable()]
  586. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  587. public partial class BludaDataTable : global::System.Data.TypedTableBase<BludaRow> {
  588. private global::System.Data.DataColumn columnid;
  589. private global::System.Data.DataColumn columnНазвание;
  590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  592. public BludaDataTable() {
  593. this.TableName = "Bluda";
  594. this.BeginInit();
  595. this.InitClass();
  596. this.EndInit();
  597. }
  598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  600. internal BludaDataTable(global::System.Data.DataTable table) {
  601. this.TableName = table.TableName;
  602. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  603. this.CaseSensitive = table.CaseSensitive;
  604. }
  605. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  606. this.Locale = table.Locale;
  607. }
  608. if ((table.Namespace != table.DataSet.Namespace)) {
  609. this.Namespace = table.Namespace;
  610. }
  611. this.Prefix = table.Prefix;
  612. this.MinimumCapacity = table.MinimumCapacity;
  613. }
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  616. protected BludaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  617. base(info, context) {
  618. this.InitVars();
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  622. public global::System.Data.DataColumn idColumn {
  623. get {
  624. return this.columnid;
  625. }
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. public global::System.Data.DataColumn НазваниеColumn {
  630. get {
  631. return this.columnНазвание;
  632. }
  633. }
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  636. [global::System.ComponentModel.Browsable(false)]
  637. public int Count {
  638. get {
  639. return this.Rows.Count;
  640. }
  641. }
  642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  644. public BludaRow this[int index] {
  645. get {
  646. return ((BludaRow)(this.Rows[index]));
  647. }
  648. }
  649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  650. public event BludaRowChangeEventHandler BludaRowChanging;
  651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  652. public event BludaRowChangeEventHandler BludaRowChanged;
  653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  654. public event BludaRowChangeEventHandler BludaRowDeleting;
  655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  656. public event BludaRowChangeEventHandler BludaRowDeleted;
  657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  659. public void AddBludaRow(BludaRow row) {
  660. this.Rows.Add(row);
  661. }
  662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  664. public BludaRow AddBludaRow(int id, string Название) {
  665. BludaRow rowBludaRow = ((BludaRow)(this.NewRow()));
  666. object[] columnValuesArray = new object[] {
  667. id,
  668. Название};
  669. rowBludaRow.ItemArray = columnValuesArray;
  670. this.Rows.Add(rowBludaRow);
  671. return rowBludaRow;
  672. }
  673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  675. public BludaRow FindByid(int id) {
  676. return ((BludaRow)(this.Rows.Find(new object[] {
  677. id})));
  678. }
  679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  681. public override global::System.Data.DataTable Clone() {
  682. BludaDataTable cln = ((BludaDataTable)(base.Clone()));
  683. cln.InitVars();
  684. return cln;
  685. }
  686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  688. protected override global::System.Data.DataTable CreateInstance() {
  689. return new BludaDataTable();
  690. }
  691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  693. internal void InitVars() {
  694. this.columnid = base.Columns["id"];
  695. this.columnНазвание = base.Columns["Название"];
  696. }
  697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  699. private void InitClass() {
  700. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  701. base.Columns.Add(this.columnid);
  702. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  703. base.Columns.Add(this.columnНазвание);
  704. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  705. this.columnid}, true));
  706. this.columnid.AllowDBNull = false;
  707. this.columnid.Unique = true;
  708. this.columnНазвание.MaxLength = 50;
  709. }
  710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  712. public BludaRow NewBludaRow() {
  713. return ((BludaRow)(this.NewRow()));
  714. }
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  717. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  718. return new BludaRow(builder);
  719. }
  720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  722. protected override global::System.Type GetRowType() {
  723. return typeof(BludaRow);
  724. }
  725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  727. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  728. base.OnRowChanged(e);
  729. if ((this.BludaRowChanged != null)) {
  730. this.BludaRowChanged(this, new BludaRowChangeEvent(((BludaRow)(e.Row)), e.Action));
  731. }
  732. }
  733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  735. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  736. base.OnRowChanging(e);
  737. if ((this.BludaRowChanging != null)) {
  738. this.BludaRowChanging(this, new BludaRowChangeEvent(((BludaRow)(e.Row)), e.Action));
  739. }
  740. }
  741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  743. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  744. base.OnRowDeleted(e);
  745. if ((this.BludaRowDeleted != null)) {
  746. this.BludaRowDeleted(this, new BludaRowChangeEvent(((BludaRow)(e.Row)), e.Action));
  747. }
  748. }
  749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  751. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  752. base.OnRowDeleting(e);
  753. if ((this.BludaRowDeleting != null)) {
  754. this.BludaRowDeleting(this, new BludaRowChangeEvent(((BludaRow)(e.Row)), e.Action));
  755. }
  756. }
  757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  759. public void RemoveBludaRow(BludaRow row) {
  760. this.Rows.Remove(row);
  761. }
  762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  764. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  765. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  766. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  767. Kafe09DataSet ds = new Kafe09DataSet();
  768. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  769. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  770. any1.MinOccurs = new decimal(0);
  771. any1.MaxOccurs = decimal.MaxValue;
  772. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  773. sequence.Items.Add(any1);
  774. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  775. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  776. any2.MinOccurs = new decimal(1);
  777. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  778. sequence.Items.Add(any2);
  779. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  780. attribute1.Name = "namespace";
  781. attribute1.FixedValue = ds.Namespace;
  782. type.Attributes.Add(attribute1);
  783. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  784. attribute2.Name = "tableTypeName";
  785. attribute2.FixedValue = "BludaDataTable";
  786. type.Attributes.Add(attribute2);
  787. type.Particle = sequence;
  788. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  789. if (xs.Contains(dsSchema.TargetNamespace)) {
  790. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  791. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  792. try {
  793. global::System.Xml.Schema.XmlSchema schema = null;
  794. dsSchema.Write(s1);
  795. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  796. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  797. s2.SetLength(0);
  798. schema.Write(s2);
  799. if ((s1.Length == s2.Length)) {
  800. s1.Position = 0;
  801. s2.Position = 0;
  802. for (; ((s1.Position != s1.Length)
  803. && (s1.ReadByte() == s2.ReadByte())); ) {
  804. ;
  805. }
  806. if ((s1.Position == s1.Length)) {
  807. return type;
  808. }
  809. }
  810. }
  811. }
  812. finally {
  813. if ((s1 != null)) {
  814. s1.Close();
  815. }
  816. if ((s2 != null)) {
  817. s2.Close();
  818. }
  819. }
  820. }
  821. xs.Add(dsSchema);
  822. return type;
  823. }
  824. }
  825. /// <summary>
  826. ///Represents the strongly named DataTable class.
  827. ///</summary>
  828. [global::System.Serializable()]
  829. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  830. public partial class DoljnostiDataTable : global::System.Data.TypedTableBase<DoljnostiRow> {
  831. private global::System.Data.DataColumn columnid;
  832. private global::System.Data.DataColumn columnНазваниеДолжности;
  833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  835. public DoljnostiDataTable() {
  836. this.TableName = "Doljnosti";
  837. this.BeginInit();
  838. this.InitClass();
  839. this.EndInit();
  840. }
  841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  843. internal DoljnostiDataTable(global::System.Data.DataTable table) {
  844. this.TableName = table.TableName;
  845. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  846. this.CaseSensitive = table.CaseSensitive;
  847. }
  848. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  849. this.Locale = table.Locale;
  850. }
  851. if ((table.Namespace != table.DataSet.Namespace)) {
  852. this.Namespace = table.Namespace;
  853. }
  854. this.Prefix = table.Prefix;
  855. this.MinimumCapacity = table.MinimumCapacity;
  856. }
  857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  859. protected DoljnostiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  860. base(info, context) {
  861. this.InitVars();
  862. }
  863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  865. public global::System.Data.DataColumn idColumn {
  866. get {
  867. return this.columnid;
  868. }
  869. }
  870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  872. public global::System.Data.DataColumn НазваниеДолжностиColumn {
  873. get {
  874. return this.columnНазваниеДолжности;
  875. }
  876. }
  877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  879. [global::System.ComponentModel.Browsable(false)]
  880. public int Count {
  881. get {
  882. return this.Rows.Count;
  883. }
  884. }
  885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  887. public DoljnostiRow this[int index] {
  888. get {
  889. return ((DoljnostiRow)(this.Rows[index]));
  890. }
  891. }
  892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  893. public event DoljnostiRowChangeEventHandler DoljnostiRowChanging;
  894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  895. public event DoljnostiRowChangeEventHandler DoljnostiRowChanged;
  896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  897. public event DoljnostiRowChangeEventHandler DoljnostiRowDeleting;
  898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  899. public event DoljnostiRowChangeEventHandler DoljnostiRowDeleted;
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  902. public void AddDoljnostiRow(DoljnostiRow row) {
  903. this.Rows.Add(row);
  904. }
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  907. public DoljnostiRow AddDoljnostiRow(string НазваниеДолжности) {
  908. DoljnostiRow rowDoljnostiRow = ((DoljnostiRow)(this.NewRow()));
  909. object[] columnValuesArray = new object[] {
  910. null,
  911. НазваниеДолжности};
  912. rowDoljnostiRow.ItemArray = columnValuesArray;
  913. this.Rows.Add(rowDoljnostiRow);
  914. return rowDoljnostiRow;
  915. }
  916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  918. public DoljnostiRow FindByid(int id) {
  919. return ((DoljnostiRow)(this.Rows.Find(new object[] {
  920. id})));
  921. }
  922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  924. public override global::System.Data.DataTable Clone() {
  925. DoljnostiDataTable cln = ((DoljnostiDataTable)(base.Clone()));
  926. cln.InitVars();
  927. return cln;
  928. }
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  931. protected override global::System.Data.DataTable CreateInstance() {
  932. return new DoljnostiDataTable();
  933. }
  934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  936. internal void InitVars() {
  937. this.columnid = base.Columns["id"];
  938. this.columnНазваниеДолжности = base.Columns["НазваниеДолжности"];
  939. }
  940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  942. private void InitClass() {
  943. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  944. base.Columns.Add(this.columnid);
  945. this.columnНазваниеДолжности = new global::System.Data.DataColumn("НазваниеДолжности", typeof(string), null, global::System.Data.MappingType.Element);
  946. base.Columns.Add(this.columnНазваниеДолжности);
  947. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  948. this.columnid}, true));
  949. this.columnid.AutoIncrement = true;
  950. this.columnid.AutoIncrementSeed = -1;
  951. this.columnid.AutoIncrementStep = -1;
  952. this.columnid.AllowDBNull = false;
  953. this.columnid.ReadOnly = true;
  954. this.columnid.Unique = true;
  955. this.columnНазваниеДолжности.MaxLength = 50;
  956. }
  957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  959. public DoljnostiRow NewDoljnostiRow() {
  960. return ((DoljnostiRow)(this.NewRow()));
  961. }
  962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  964. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  965. return new DoljnostiRow(builder);
  966. }
  967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  969. protected override global::System.Type GetRowType() {
  970. return typeof(DoljnostiRow);
  971. }
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  974. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  975. base.OnRowChanged(e);
  976. if ((this.DoljnostiRowChanged != null)) {
  977. this.DoljnostiRowChanged(this, new DoljnostiRowChangeEvent(((DoljnostiRow)(e.Row)), e.Action));
  978. }
  979. }
  980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  982. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  983. base.OnRowChanging(e);
  984. if ((this.DoljnostiRowChanging != null)) {
  985. this.DoljnostiRowChanging(this, new DoljnostiRowChangeEvent(((DoljnostiRow)(e.Row)), e.Action));
  986. }
  987. }
  988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  990. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  991. base.OnRowDeleted(e);
  992. if ((this.DoljnostiRowDeleted != null)) {
  993. this.DoljnostiRowDeleted(this, new DoljnostiRowChangeEvent(((DoljnostiRow)(e.Row)), e.Action));
  994. }
  995. }
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  998. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  999. base.OnRowDeleting(e);
  1000. if ((this.DoljnostiRowDeleting != null)) {
  1001. this.DoljnostiRowDeleting(this, new DoljnostiRowChangeEvent(((DoljnostiRow)(e.Row)), e.Action));
  1002. }
  1003. }
  1004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1006. public void RemoveDoljnostiRow(DoljnostiRow row) {
  1007. this.Rows.Remove(row);
  1008. }
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1011. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1012. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1013. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1014. Kafe09DataSet ds = new Kafe09DataSet();
  1015. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1016. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1017. any1.MinOccurs = new decimal(0);
  1018. any1.MaxOccurs = decimal.MaxValue;
  1019. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1020. sequence.Items.Add(any1);
  1021. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1022. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1023. any2.MinOccurs = new decimal(1);
  1024. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1025. sequence.Items.Add(any2);
  1026. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1027. attribute1.Name = "namespace";
  1028. attribute1.FixedValue = ds.Namespace;
  1029. type.Attributes.Add(attribute1);
  1030. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1031. attribute2.Name = "tableTypeName";
  1032. attribute2.FixedValue = "DoljnostiDataTable";
  1033. type.Attributes.Add(attribute2);
  1034. type.Particle = sequence;
  1035. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1036. if (xs.Contains(dsSchema.TargetNamespace)) {
  1037. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1038. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1039. try {
  1040. global::System.Xml.Schema.XmlSchema schema = null;
  1041. dsSchema.Write(s1);
  1042. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1043. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1044. s2.SetLength(0);
  1045. schema.Write(s2);
  1046. if ((s1.Length == s2.Length)) {
  1047. s1.Position = 0;
  1048. s2.Position = 0;
  1049. for (; ((s1.Position != s1.Length)
  1050. && (s1.ReadByte() == s2.ReadByte())); ) {
  1051. ;
  1052. }
  1053. if ((s1.Position == s1.Length)) {
  1054. return type;
  1055. }
  1056. }
  1057. }
  1058. }
  1059. finally {
  1060. if ((s1 != null)) {
  1061. s1.Close();
  1062. }
  1063. if ((s2 != null)) {
  1064. s2.Close();
  1065. }
  1066. }
  1067. }
  1068. xs.Add(dsSchema);
  1069. return type;
  1070. }
  1071. }
  1072. /// <summary>
  1073. ///Represents the strongly named DataTable class.
  1074. ///</summary>
  1075. [global::System.Serializable()]
  1076. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1077. public partial class PolzovateliDataTable : global::System.Data.TypedTableBase<PolzovateliRow> {
  1078. private global::System.Data.DataColumn columnid;
  1079. private global::System.Data.DataColumn columnФармилия;
  1080. private global::System.Data.DataColumn columnИмя;
  1081. private global::System.Data.DataColumn columnОтчетсво;
  1082. private global::System.Data.DataColumn columnDoljnost;
  1083. private global::System.Data.DataColumn columnДатаПринятияНаРаботу;
  1084. private global::System.Data.DataColumn columnТелефон;
  1085. private global::System.Data.DataColumn columnАдрес;
  1086. private global::System.Data.DataColumn columnСтатусПользователя;
  1087. private global::System.Data.DataColumn columnusername;
  1088. private global::System.Data.DataColumn columnpassword;
  1089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1091. public PolzovateliDataTable() {
  1092. this.TableName = "Polzovateli";
  1093. this.BeginInit();
  1094. this.InitClass();
  1095. this.EndInit();
  1096. }
  1097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1099. internal PolzovateliDataTable(global::System.Data.DataTable table) {
  1100. this.TableName = table.TableName;
  1101. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1102. this.CaseSensitive = table.CaseSensitive;
  1103. }
  1104. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1105. this.Locale = table.Locale;
  1106. }
  1107. if ((table.Namespace != table.DataSet.Namespace)) {
  1108. this.Namespace = table.Namespace;
  1109. }
  1110. this.Prefix = table.Prefix;
  1111. this.MinimumCapacity = table.MinimumCapacity;
  1112. }
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1115. protected PolzovateliDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1116. base(info, context) {
  1117. this.InitVars();
  1118. }
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1121. public global::System.Data.DataColumn idColumn {
  1122. get {
  1123. return this.columnid;
  1124. }
  1125. }
  1126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1128. public global::System.Data.DataColumn ФармилияColumn {
  1129. get {
  1130. return this.columnФармилия;
  1131. }
  1132. }
  1133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1135. public global::System.Data.DataColumn ИмяColumn {
  1136. get {
  1137. return this.columnИмя;
  1138. }
  1139. }
  1140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1142. public global::System.Data.DataColumn ОтчетсвоColumn {
  1143. get {
  1144. return this.columnОтчетсво;
  1145. }
  1146. }
  1147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1149. public global::System.Data.DataColumn DoljnostColumn {
  1150. get {
  1151. return this.columnDoljnost;
  1152. }
  1153. }
  1154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1156. public global::System.Data.DataColumn ДатаПринятияНаРаботуColumn {
  1157. get {
  1158. return this.columnДатаПринятияНаРаботу;
  1159. }
  1160. }
  1161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1163. public global::System.Data.DataColumn ТелефонColumn {
  1164. get {
  1165. return this.columnТелефон;
  1166. }
  1167. }
  1168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1170. public global::System.Data.DataColumn АдресColumn {
  1171. get {
  1172. return this.columnАдрес;
  1173. }
  1174. }
  1175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1177. public global::System.Data.DataColumn СтатусПользователяColumn {
  1178. get {
  1179. return this.columnСтатусПользователя;
  1180. }
  1181. }
  1182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1184. public global::System.Data.DataColumn usernameColumn {
  1185. get {
  1186. return this.columnusername;
  1187. }
  1188. }
  1189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1191. public global::System.Data.DataColumn passwordColumn {
  1192. get {
  1193. return this.columnpassword;
  1194. }
  1195. }
  1196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1198. [global::System.ComponentModel.Browsable(false)]
  1199. public int Count {
  1200. get {
  1201. return this.Rows.Count;
  1202. }
  1203. }
  1204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1206. public PolzovateliRow this[int index] {
  1207. get {
  1208. return ((PolzovateliRow)(this.Rows[index]));
  1209. }
  1210. }
  1211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1212. public event PolzovateliRowChangeEventHandler PolzovateliRowChanging;
  1213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1214. public event PolzovateliRowChangeEventHandler PolzovateliRowChanged;
  1215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1216. public event PolzovateliRowChangeEventHandler PolzovateliRowDeleting;
  1217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1218. public event PolzovateliRowChangeEventHandler PolzovateliRowDeleted;
  1219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1221. public void AddPolzovateliRow(PolzovateliRow row) {
  1222. this.Rows.Add(row);
  1223. }
  1224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1226. public PolzovateliRow AddPolzovateliRow(string Фармилия, string Имя, string Отчетсво, DoljnostiRow parentDoljnostiRowByFK_Polzovateli_Должность, System.DateTime ДатаПринятияНаРаботу, string Телефон, string Адрес, StatusiPolzovateleyRow parentStatusiPolzovateleyRowByFK_Polzovateli_StatusiPolzovateley, string username, string password) {
  1227. PolzovateliRow rowPolzovateliRow = ((PolzovateliRow)(this.NewRow()));
  1228. object[] columnValuesArray = new object[] {
  1229. null,
  1230. Фармилия,
  1231. Имя,
  1232. Отчетсво,
  1233. null,
  1234. ДатаПринятияНаРаботу,
  1235. Телефон,
  1236. Адрес,
  1237. null,
  1238. username,
  1239. password};
  1240. if ((parentDoljnostiRowByFK_Polzovateli_Должность != null)) {
  1241. columnValuesArray[4] = parentDoljnostiRowByFK_Polzovateli_Должность[0];
  1242. }
  1243. if ((parentStatusiPolzovateleyRowByFK_Polzovateli_StatusiPolzovateley != null)) {
  1244. columnValuesArray[8] = parentStatusiPolzovateleyRowByFK_Polzovateli_StatusiPolzovateley[0];
  1245. }
  1246. rowPolzovateliRow.ItemArray = columnValuesArray;
  1247. this.Rows.Add(rowPolzovateliRow);
  1248. return rowPolzovateliRow;
  1249. }
  1250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1252. public PolzovateliRow FindByid(int id) {
  1253. return ((PolzovateliRow)(this.Rows.Find(new object[] {
  1254. id})));
  1255. }
  1256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1258. public override global::System.Data.DataTable Clone() {
  1259. PolzovateliDataTable cln = ((PolzovateliDataTable)(base.Clone()));
  1260. cln.InitVars();
  1261. return cln;
  1262. }
  1263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1265. protected override global::System.Data.DataTable CreateInstance() {
  1266. return new PolzovateliDataTable();
  1267. }
  1268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1270. internal void InitVars() {
  1271. this.columnid = base.Columns["id"];
  1272. this.columnФармилия = base.Columns["Фармилия"];
  1273. this.columnИмя = base.Columns["Имя"];
  1274. this.columnОтчетсво = base.Columns["Отчетсво"];
  1275. this.columnDoljnost = base.Columns["Doljnost"];
  1276. this.columnДатаПринятияНаРаботу = base.Columns["ДатаПринятияНаРаботу"];
  1277. this.columnТелефон = base.Columns["Телефон"];
  1278. this.columnАдрес = base.Columns["Адрес"];
  1279. this.columnСтатусПользователя = base.Columns["СтатусПользователя"];
  1280. this.columnusername = base.Columns["username"];
  1281. this.columnpassword = base.Columns["password"];
  1282. }
  1283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1285. private void InitClass() {
  1286. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1287. base.Columns.Add(this.columnid);
  1288. this.columnФармилия = new global::System.Data.DataColumn("Фармилия", typeof(string), null, global::System.Data.MappingType.Element);
  1289. base.Columns.Add(this.columnФармилия);
  1290. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1291. base.Columns.Add(this.columnИмя);
  1292. this.columnОтчетсво = new global::System.Data.DataColumn("Отчетсво", typeof(string), null, global::System.Data.MappingType.Element);
  1293. base.Columns.Add(this.columnОтчетсво);
  1294. this.columnDoljnost = new global::System.Data.DataColumn("Doljnost", typeof(int), null, global::System.Data.MappingType.Element);
  1295. base.Columns.Add(this.columnDoljnost);
  1296. this.columnДатаПринятияНаРаботу = new global::System.Data.DataColumn("ДатаПринятияНаРаботу", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1297. base.Columns.Add(this.columnДатаПринятияНаРаботу);
  1298. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1299. base.Columns.Add(this.columnТелефон);
  1300. this.columnАдрес = new global::System.Data.DataColumn("Адрес", typeof(string), null, global::System.Data.MappingType.Element);
  1301. base.Columns.Add(this.columnАдрес);
  1302. this.columnСтатусПользователя = new global::System.Data.DataColumn("СтатусПользователя", typeof(int), null, global::System.Data.MappingType.Element);
  1303. base.Columns.Add(this.columnСтатусПользователя);
  1304. this.columnusername = new global::System.Data.DataColumn("username", typeof(string), null, global::System.Data.MappingType.Element);
  1305. base.Columns.Add(this.columnusername);
  1306. this.columnpassword = new global::System.Data.DataColumn("password", typeof(string), null, global::System.Data.MappingType.Element);
  1307. base.Columns.Add(this.columnpassword);
  1308. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1309. this.columnid}, true));
  1310. this.columnid.AutoIncrement = true;
  1311. this.columnid.AutoIncrementSeed = -1;
  1312. this.columnid.AutoIncrementStep = -1;
  1313. this.columnid.AllowDBNull = false;
  1314. this.columnid.ReadOnly = true;
  1315. this.columnid.Unique = true;
  1316. this.columnФармилия.MaxLength = 50;
  1317. this.columnИмя.MaxLength = 50;
  1318. this.columnОтчетсво.MaxLength = 50;
  1319. this.columnТелефон.MaxLength = 11;
  1320. this.columnАдрес.MaxLength = 50;
  1321. this.columnusername.MaxLength = 50;
  1322. this.columnpassword.MaxLength = 50;
  1323. }
  1324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1326. public PolzovateliRow NewPolzovateliRow() {
  1327. return ((PolzovateliRow)(this.NewRow()));
  1328. }
  1329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1331. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1332. return new PolzovateliRow(builder);
  1333. }
  1334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1336. protected override global::System.Type GetRowType() {
  1337. return typeof(PolzovateliRow);
  1338. }
  1339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1341. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1342. base.OnRowChanged(e);
  1343. if ((this.PolzovateliRowChanged != null)) {
  1344. this.PolzovateliRowChanged(this, new PolzovateliRowChangeEvent(((PolzovateliRow)(e.Row)), e.Action));
  1345. }
  1346. }
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1350. base.OnRowChanging(e);
  1351. if ((this.PolzovateliRowChanging != null)) {
  1352. this.PolzovateliRowChanging(this, new PolzovateliRowChangeEvent(((PolzovateliRow)(e.Row)), e.Action));
  1353. }
  1354. }
  1355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1357. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1358. base.OnRowDeleted(e);
  1359. if ((this.PolzovateliRowDeleted != null)) {
  1360. this.PolzovateliRowDeleted(this, new PolzovateliRowChangeEvent(((PolzovateliRow)(e.Row)), e.Action));
  1361. }
  1362. }
  1363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1365. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1366. base.OnRowDeleting(e);
  1367. if ((this.PolzovateliRowDeleting != null)) {
  1368. this.PolzovateliRowDeleting(this, new PolzovateliRowChangeEvent(((PolzovateliRow)(e.Row)), e.Action));
  1369. }
  1370. }
  1371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1373. public void RemovePolzovateliRow(PolzovateliRow row) {
  1374. this.Rows.Remove(row);
  1375. }
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1378. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1379. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1380. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1381. Kafe09DataSet ds = new Kafe09DataSet();
  1382. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1383. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1384. any1.MinOccurs = new decimal(0);
  1385. any1.MaxOccurs = decimal.MaxValue;
  1386. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1387. sequence.Items.Add(any1);
  1388. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1389. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1390. any2.MinOccurs = new decimal(1);
  1391. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1392. sequence.Items.Add(any2);
  1393. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1394. attribute1.Name = "namespace";
  1395. attribute1.FixedValue = ds.Namespace;
  1396. type.Attributes.Add(attribute1);
  1397. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1398. attribute2.Name = "tableTypeName";
  1399. attribute2.FixedValue = "PolzovateliDataTable";
  1400. type.Attributes.Add(attribute2);
  1401. type.Particle = sequence;
  1402. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1403. if (xs.Contains(dsSchema.TargetNamespace)) {
  1404. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1405. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1406. try {
  1407. global::System.Xml.Schema.XmlSchema schema = null;
  1408. dsSchema.Write(s1);
  1409. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1410. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1411. s2.SetLength(0);
  1412. schema.Write(s2);
  1413. if ((s1.Length == s2.Length)) {
  1414. s1.Position = 0;
  1415. s2.Position = 0;
  1416. for (; ((s1.Position != s1.Length)
  1417. && (s1.ReadByte() == s2.ReadByte())); ) {
  1418. ;
  1419. }
  1420. if ((s1.Position == s1.Length)) {
  1421. return type;
  1422. }
  1423. }
  1424. }
  1425. }
  1426. finally {
  1427. if ((s1 != null)) {
  1428. s1.Close();
  1429. }
  1430. if ((s2 != null)) {
  1431. s2.Close();
  1432. }
  1433. }
  1434. }
  1435. xs.Add(dsSchema);
  1436. return type;
  1437. }
  1438. }
  1439. /// <summary>
  1440. ///Represents the strongly named DataTable class.
  1441. ///</summary>
  1442. [global::System.Serializable()]
  1443. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1444. public partial class SmeniDataTable : global::System.Data.TypedTableBase<SmeniRow> {
  1445. private global::System.Data.DataColumn columnid;
  1446. private global::System.Data.DataColumn columnПользователь;
  1447. private global::System.Data.DataColumn columnДата;
  1448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1450. public SmeniDataTable() {
  1451. this.TableName = "Smeni";
  1452. this.BeginInit();
  1453. this.InitClass();
  1454. this.EndInit();
  1455. }
  1456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1458. internal SmeniDataTable(global::System.Data.DataTable table) {
  1459. this.TableName = table.TableName;
  1460. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1461. this.CaseSensitive = table.CaseSensitive;
  1462. }
  1463. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1464. this.Locale = table.Locale;
  1465. }
  1466. if ((table.Namespace != table.DataSet.Namespace)) {
  1467. this.Namespace = table.Namespace;
  1468. }
  1469. this.Prefix = table.Prefix;
  1470. this.MinimumCapacity = table.MinimumCapacity;
  1471. }
  1472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1474. protected SmeniDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1475. base(info, context) {
  1476. this.InitVars();
  1477. }
  1478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1480. public global::System.Data.DataColumn idColumn {
  1481. get {
  1482. return this.columnid;
  1483. }
  1484. }
  1485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1487. public global::System.Data.DataColumn ПользовательColumn {
  1488. get {
  1489. return this.columnПользователь;
  1490. }
  1491. }
  1492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1494. public global::System.Data.DataColumn ДатаColumn {
  1495. get {
  1496. return this.columnДата;
  1497. }
  1498. }
  1499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1501. [global::System.ComponentModel.Browsable(false)]
  1502. public int Count {
  1503. get {
  1504. return this.Rows.Count;
  1505. }
  1506. }
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1509. public SmeniRow this[int index] {
  1510. get {
  1511. return ((SmeniRow)(this.Rows[index]));
  1512. }
  1513. }
  1514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1515. public event SmeniRowChangeEventHandler SmeniRowChanging;
  1516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1517. public event SmeniRowChangeEventHandler SmeniRowChanged;
  1518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1519. public event SmeniRowChangeEventHandler SmeniRowDeleting;
  1520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1521. public event SmeniRowChangeEventHandler SmeniRowDeleted;
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1524. public void AddSmeniRow(SmeniRow row) {
  1525. this.Rows.Add(row);
  1526. }
  1527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1529. public SmeniRow AddSmeniRow(int Пользователь, System.DateTime Дата) {
  1530. SmeniRow rowSmeniRow = ((SmeniRow)(this.NewRow()));
  1531. object[] columnValuesArray = new object[] {
  1532. null,
  1533. Пользователь,
  1534. Дата};
  1535. rowSmeniRow.ItemArray = columnValuesArray;
  1536. this.Rows.Add(rowSmeniRow);
  1537. return rowSmeniRow;
  1538. }
  1539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1541. public SmeniRow FindByid(int id) {
  1542. return ((SmeniRow)(this.Rows.Find(new object[] {
  1543. id})));
  1544. }
  1545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1547. public override global::System.Data.DataTable Clone() {
  1548. SmeniDataTable cln = ((SmeniDataTable)(base.Clone()));
  1549. cln.InitVars();
  1550. return cln;
  1551. }
  1552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1554. protected override global::System.Data.DataTable CreateInstance() {
  1555. return new SmeniDataTable();
  1556. }
  1557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1559. internal void InitVars() {
  1560. this.columnid = base.Columns["id"];
  1561. this.columnПользователь = base.Columns["Пользователь"];
  1562. this.columnДата = base.Columns["Дата"];
  1563. }
  1564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1566. private void InitClass() {
  1567. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1568. base.Columns.Add(this.columnid);
  1569. this.columnПользователь = new global::System.Data.DataColumn("Пользователь", typeof(int), null, global::System.Data.MappingType.Element);
  1570. base.Columns.Add(this.columnПользователь);
  1571. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1572. base.Columns.Add(this.columnДата);
  1573. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1574. this.columnid}, true));
  1575. this.columnid.AutoIncrement = true;
  1576. this.columnid.AutoIncrementSeed = -1;
  1577. this.columnid.AutoIncrementStep = -1;
  1578. this.columnid.AllowDBNull = false;
  1579. this.columnid.ReadOnly = true;
  1580. this.columnid.Unique = true;
  1581. }
  1582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1584. public SmeniRow NewSmeniRow() {
  1585. return ((SmeniRow)(this.NewRow()));
  1586. }
  1587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1589. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1590. return new SmeniRow(builder);
  1591. }
  1592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1594. protected override global::System.Type GetRowType() {
  1595. return typeof(SmeniRow);
  1596. }
  1597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1599. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1600. base.OnRowChanged(e);
  1601. if ((this.SmeniRowChanged != null)) {
  1602. this.SmeniRowChanged(this, new SmeniRowChangeEvent(((SmeniRow)(e.Row)), e.Action));
  1603. }
  1604. }
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1607. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1608. base.OnRowChanging(e);
  1609. if ((this.SmeniRowChanging != null)) {
  1610. this.SmeniRowChanging(this, new SmeniRowChangeEvent(((SmeniRow)(e.Row)), e.Action));
  1611. }
  1612. }
  1613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1615. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1616. base.OnRowDeleted(e);
  1617. if ((this.SmeniRowDeleted != null)) {
  1618. this.SmeniRowDeleted(this, new SmeniRowChangeEvent(((SmeniRow)(e.Row)), e.Action));
  1619. }
  1620. }
  1621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1623. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1624. base.OnRowDeleting(e);
  1625. if ((this.SmeniRowDeleting != null)) {
  1626. this.SmeniRowDeleting(this, new SmeniRowChangeEvent(((SmeniRow)(e.Row)), e.Action));
  1627. }
  1628. }
  1629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1631. public void RemoveSmeniRow(SmeniRow row) {
  1632. this.Rows.Remove(row);
  1633. }
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1636. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1637. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1638. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1639. Kafe09DataSet ds = new Kafe09DataSet();
  1640. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1641. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1642. any1.MinOccurs = new decimal(0);
  1643. any1.MaxOccurs = decimal.MaxValue;
  1644. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1645. sequence.Items.Add(any1);
  1646. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1647. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1648. any2.MinOccurs = new decimal(1);
  1649. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1650. sequence.Items.Add(any2);
  1651. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1652. attribute1.Name = "namespace";
  1653. attribute1.FixedValue = ds.Namespace;
  1654. type.Attributes.Add(attribute1);
  1655. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1656. attribute2.Name = "tableTypeName";
  1657. attribute2.FixedValue = "SmeniDataTable";
  1658. type.Attributes.Add(attribute2);
  1659. type.Particle = sequence;
  1660. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1661. if (xs.Contains(dsSchema.TargetNamespace)) {
  1662. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1663. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1664. try {
  1665. global::System.Xml.Schema.XmlSchema schema = null;
  1666. dsSchema.Write(s1);
  1667. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1668. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1669. s2.SetLength(0);
  1670. schema.Write(s2);
  1671. if ((s1.Length == s2.Length)) {
  1672. s1.Position = 0;
  1673. s2.Position = 0;
  1674. for (; ((s1.Position != s1.Length)
  1675. && (s1.ReadByte() == s2.ReadByte())); ) {
  1676. ;
  1677. }
  1678. if ((s1.Position == s1.Length)) {
  1679. return type;
  1680. }
  1681. }
  1682. }
  1683. }
  1684. finally {
  1685. if ((s1 != null)) {
  1686. s1.Close();
  1687. }
  1688. if ((s2 != null)) {
  1689. s2.Close();
  1690. }
  1691. }
  1692. }
  1693. xs.Add(dsSchema);
  1694. return type;
  1695. }
  1696. }
  1697. /// <summary>
  1698. ///Represents the strongly named DataTable class.
  1699. ///</summary>
  1700. [global::System.Serializable()]
  1701. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1702. public partial class StatusiPolzovateleyDataTable : global::System.Data.TypedTableBase<StatusiPolzovateleyRow> {
  1703. private global::System.Data.DataColumn columnid;
  1704. private global::System.Data.DataColumn columnНазваниеСтатуса;
  1705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1707. public StatusiPolzovateleyDataTable() {
  1708. this.TableName = "StatusiPolzovateley";
  1709. this.BeginInit();
  1710. this.InitClass();
  1711. this.EndInit();
  1712. }
  1713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1715. internal StatusiPolzovateleyDataTable(global::System.Data.DataTable table) {
  1716. this.TableName = table.TableName;
  1717. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1718. this.CaseSensitive = table.CaseSensitive;
  1719. }
  1720. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1721. this.Locale = table.Locale;
  1722. }
  1723. if ((table.Namespace != table.DataSet.Namespace)) {
  1724. this.Namespace = table.Namespace;
  1725. }
  1726. this.Prefix = table.Prefix;
  1727. this.MinimumCapacity = table.MinimumCapacity;
  1728. }
  1729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1731. protected StatusiPolzovateleyDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1732. base(info, context) {
  1733. this.InitVars();
  1734. }
  1735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1737. public global::System.Data.DataColumn idColumn {
  1738. get {
  1739. return this.columnid;
  1740. }
  1741. }
  1742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1744. public global::System.Data.DataColumn НазваниеСтатусаColumn {
  1745. get {
  1746. return this.columnНазваниеСтатуса;
  1747. }
  1748. }
  1749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1751. [global::System.ComponentModel.Browsable(false)]
  1752. public int Count {
  1753. get {
  1754. return this.Rows.Count;
  1755. }
  1756. }
  1757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1759. public StatusiPolzovateleyRow this[int index] {
  1760. get {
  1761. return ((StatusiPolzovateleyRow)(this.Rows[index]));
  1762. }
  1763. }
  1764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1765. public event StatusiPolzovateleyRowChangeEventHandler StatusiPolzovateleyRowChanging;
  1766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1767. public event StatusiPolzovateleyRowChangeEventHandler StatusiPolzovateleyRowChanged;
  1768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1769. public event StatusiPolzovateleyRowChangeEventHandler StatusiPolzovateleyRowDeleting;
  1770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1771. public event StatusiPolzovateleyRowChangeEventHandler StatusiPolzovateleyRowDeleted;
  1772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1774. public void AddStatusiPolzovateleyRow(StatusiPolzovateleyRow row) {
  1775. this.Rows.Add(row);
  1776. }
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1779. public StatusiPolzovateleyRow AddStatusiPolzovateleyRow(string НазваниеСтатуса) {
  1780. StatusiPolzovateleyRow rowStatusiPolzovateleyRow = ((StatusiPolzovateleyRow)(this.NewRow()));
  1781. object[] columnValuesArray = new object[] {
  1782. null,
  1783. НазваниеСтатуса};
  1784. rowStatusiPolzovateleyRow.ItemArray = columnValuesArray;
  1785. this.Rows.Add(rowStatusiPolzovateleyRow);
  1786. return rowStatusiPolzovateleyRow;
  1787. }
  1788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1790. public StatusiPolzovateleyRow FindByid(int id) {
  1791. return ((StatusiPolzovateleyRow)(this.Rows.Find(new object[] {
  1792. id})));
  1793. }
  1794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1796. public override global::System.Data.DataTable Clone() {
  1797. StatusiPolzovateleyDataTable cln = ((StatusiPolzovateleyDataTable)(base.Clone()));
  1798. cln.InitVars();
  1799. return cln;
  1800. }
  1801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1803. protected override global::System.Data.DataTable CreateInstance() {
  1804. return new StatusiPolzovateleyDataTable();
  1805. }
  1806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1808. internal void InitVars() {
  1809. this.columnid = base.Columns["id"];
  1810. this.columnНазваниеСтатуса = base.Columns["НазваниеСтатуса"];
  1811. }
  1812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1814. private void InitClass() {
  1815. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1816. base.Columns.Add(this.columnid);
  1817. this.columnНазваниеСтатуса = new global::System.Data.DataColumn("НазваниеСтатуса", typeof(string), null, global::System.Data.MappingType.Element);
  1818. base.Columns.Add(this.columnНазваниеСтатуса);
  1819. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1820. this.columnid}, true));
  1821. this.columnid.AutoIncrement = true;
  1822. this.columnid.AutoIncrementSeed = -1;
  1823. this.columnid.AutoIncrementStep = -1;
  1824. this.columnid.AllowDBNull = false;
  1825. this.columnid.ReadOnly = true;
  1826. this.columnid.Unique = true;
  1827. this.columnНазваниеСтатуса.MaxLength = 50;
  1828. }
  1829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1831. public StatusiPolzovateleyRow NewStatusiPolzovateleyRow() {
  1832. return ((StatusiPolzovateleyRow)(this.NewRow()));
  1833. }
  1834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1836. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1837. return new StatusiPolzovateleyRow(builder);
  1838. }
  1839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1841. protected override global::System.Type GetRowType() {
  1842. return typeof(StatusiPolzovateleyRow);
  1843. }
  1844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1846. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1847. base.OnRowChanged(e);
  1848. if ((this.StatusiPolzovateleyRowChanged != null)) {
  1849. this.StatusiPolzovateleyRowChanged(this, new StatusiPolzovateleyRowChangeEvent(((StatusiPolzovateleyRow)(e.Row)), e.Action));
  1850. }
  1851. }
  1852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1854. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1855. base.OnRowChanging(e);
  1856. if ((this.StatusiPolzovateleyRowChanging != null)) {
  1857. this.StatusiPolzovateleyRowChanging(this, new StatusiPolzovateleyRowChangeEvent(((StatusiPolzovateleyRow)(e.Row)), e.Action));
  1858. }
  1859. }
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1862. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1863. base.OnRowDeleted(e);
  1864. if ((this.StatusiPolzovateleyRowDeleted != null)) {
  1865. this.StatusiPolzovateleyRowDeleted(this, new StatusiPolzovateleyRowChangeEvent(((StatusiPolzovateleyRow)(e.Row)), e.Action));
  1866. }
  1867. }
  1868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1870. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1871. base.OnRowDeleting(e);
  1872. if ((this.StatusiPolzovateleyRowDeleting != null)) {
  1873. this.StatusiPolzovateleyRowDeleting(this, new StatusiPolzovateleyRowChangeEvent(((StatusiPolzovateleyRow)(e.Row)), e.Action));
  1874. }
  1875. }
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1878. public void RemoveStatusiPolzovateleyRow(StatusiPolzovateleyRow row) {
  1879. this.Rows.Remove(row);
  1880. }
  1881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1883. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1884. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1885. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1886. Kafe09DataSet ds = new Kafe09DataSet();
  1887. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1888. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1889. any1.MinOccurs = new decimal(0);
  1890. any1.MaxOccurs = decimal.MaxValue;
  1891. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1892. sequence.Items.Add(any1);
  1893. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1894. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1895. any2.MinOccurs = new decimal(1);
  1896. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1897. sequence.Items.Add(any2);
  1898. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1899. attribute1.Name = "namespace";
  1900. attribute1.FixedValue = ds.Namespace;
  1901. type.Attributes.Add(attribute1);
  1902. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1903. attribute2.Name = "tableTypeName";
  1904. attribute2.FixedValue = "StatusiPolzovateleyDataTable";
  1905. type.Attributes.Add(attribute2);
  1906. type.Particle = sequence;
  1907. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1908. if (xs.Contains(dsSchema.TargetNamespace)) {
  1909. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1910. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1911. try {
  1912. global::System.Xml.Schema.XmlSchema schema = null;
  1913. dsSchema.Write(s1);
  1914. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1915. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1916. s2.SetLength(0);
  1917. schema.Write(s2);
  1918. if ((s1.Length == s2.Length)) {
  1919. s1.Position = 0;
  1920. s2.Position = 0;
  1921. for (; ((s1.Position != s1.Length)
  1922. && (s1.ReadByte() == s2.ReadByte())); ) {
  1923. ;
  1924. }
  1925. if ((s1.Position == s1.Length)) {
  1926. return type;
  1927. }
  1928. }
  1929. }
  1930. }
  1931. finally {
  1932. if ((s1 != null)) {
  1933. s1.Close();
  1934. }
  1935. if ((s2 != null)) {
  1936. s2.Close();
  1937. }
  1938. }
  1939. }
  1940. xs.Add(dsSchema);
  1941. return type;
  1942. }
  1943. }
  1944. /// <summary>
  1945. ///Represents the strongly named DataTable class.
  1946. ///</summary>
  1947. [global::System.Serializable()]
  1948. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1949. public partial class StatusiZakazaDataTable : global::System.Data.TypedTableBase<StatusiZakazaRow> {
  1950. private global::System.Data.DataColumn columnid;
  1951. private global::System.Data.DataColumn columnНазваниеСтатуса;
  1952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1954. public StatusiZakazaDataTable() {
  1955. this.TableName = "StatusiZakaza";
  1956. this.BeginInit();
  1957. this.InitClass();
  1958. this.EndInit();
  1959. }
  1960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1962. internal StatusiZakazaDataTable(global::System.Data.DataTable table) {
  1963. this.TableName = table.TableName;
  1964. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1965. this.CaseSensitive = table.CaseSensitive;
  1966. }
  1967. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1968. this.Locale = table.Locale;
  1969. }
  1970. if ((table.Namespace != table.DataSet.Namespace)) {
  1971. this.Namespace = table.Namespace;
  1972. }
  1973. this.Prefix = table.Prefix;
  1974. this.MinimumCapacity = table.MinimumCapacity;
  1975. }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1978. protected StatusiZakazaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1979. base(info, context) {
  1980. this.InitVars();
  1981. }
  1982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1984. public global::System.Data.DataColumn idColumn {
  1985. get {
  1986. return this.columnid;
  1987. }
  1988. }
  1989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1991. public global::System.Data.DataColumn НазваниеСтатусаColumn {
  1992. get {
  1993. return this.columnНазваниеСтатуса;
  1994. }
  1995. }
  1996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1998. [global::System.ComponentModel.Browsable(false)]
  1999. public int Count {
  2000. get {
  2001. return this.Rows.Count;
  2002. }
  2003. }
  2004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2006. public StatusiZakazaRow this[int index] {
  2007. get {
  2008. return ((StatusiZakazaRow)(this.Rows[index]));
  2009. }
  2010. }
  2011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2012. public event StatusiZakazaRowChangeEventHandler StatusiZakazaRowChanging;
  2013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2014. public event StatusiZakazaRowChangeEventHandler StatusiZakazaRowChanged;
  2015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2016. public event StatusiZakazaRowChangeEventHandler StatusiZakazaRowDeleting;
  2017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2018. public event StatusiZakazaRowChangeEventHandler StatusiZakazaRowDeleted;
  2019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2021. public void AddStatusiZakazaRow(StatusiZakazaRow row) {
  2022. this.Rows.Add(row);
  2023. }
  2024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2026. public StatusiZakazaRow AddStatusiZakazaRow(string НазваниеСтатуса) {
  2027. StatusiZakazaRow rowStatusiZakazaRow = ((StatusiZakazaRow)(this.NewRow()));
  2028. object[] columnValuesArray = new object[] {
  2029. null,
  2030. НазваниеСтатуса};
  2031. rowStatusiZakazaRow.ItemArray = columnValuesArray;
  2032. this.Rows.Add(rowStatusiZakazaRow);
  2033. return rowStatusiZakazaRow;
  2034. }
  2035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2037. public StatusiZakazaRow FindByid(int id) {
  2038. return ((StatusiZakazaRow)(this.Rows.Find(new object[] {
  2039. id})));
  2040. }
  2041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2043. public override global::System.Data.DataTable Clone() {
  2044. StatusiZakazaDataTable cln = ((StatusiZakazaDataTable)(base.Clone()));
  2045. cln.InitVars();
  2046. return cln;
  2047. }
  2048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2050. protected override global::System.Data.DataTable CreateInstance() {
  2051. return new StatusiZakazaDataTable();
  2052. }
  2053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2055. internal void InitVars() {
  2056. this.columnid = base.Columns["id"];
  2057. this.columnНазваниеСтатуса = base.Columns["НазваниеСтатуса"];
  2058. }
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2061. private void InitClass() {
  2062. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2063. base.Columns.Add(this.columnid);
  2064. this.columnНазваниеСтатуса = new global::System.Data.DataColumn("НазваниеСтатуса", typeof(string), null, global::System.Data.MappingType.Element);
  2065. base.Columns.Add(this.columnНазваниеСтатуса);
  2066. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2067. this.columnid}, true));
  2068. this.columnid.AutoIncrement = true;
  2069. this.columnid.AutoIncrementSeed = -1;
  2070. this.columnid.AutoIncrementStep = -1;
  2071. this.columnid.AllowDBNull = false;
  2072. this.columnid.ReadOnly = true;
  2073. this.columnid.Unique = true;
  2074. this.columnНазваниеСтатуса.MaxLength = 50;
  2075. }
  2076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2078. public StatusiZakazaRow NewStatusiZakazaRow() {
  2079. return ((StatusiZakazaRow)(this.NewRow()));
  2080. }
  2081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2083. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2084. return new StatusiZakazaRow(builder);
  2085. }
  2086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2088. protected override global::System.Type GetRowType() {
  2089. return typeof(StatusiZakazaRow);
  2090. }
  2091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2093. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2094. base.OnRowChanged(e);
  2095. if ((this.StatusiZakazaRowChanged != null)) {
  2096. this.StatusiZakazaRowChanged(this, new StatusiZakazaRowChangeEvent(((StatusiZakazaRow)(e.Row)), e.Action));
  2097. }
  2098. }
  2099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2101. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2102. base.OnRowChanging(e);
  2103. if ((this.StatusiZakazaRowChanging != null)) {
  2104. this.StatusiZakazaRowChanging(this, new StatusiZakazaRowChangeEvent(((StatusiZakazaRow)(e.Row)), e.Action));
  2105. }
  2106. }
  2107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2109. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2110. base.OnRowDeleted(e);
  2111. if ((this.StatusiZakazaRowDeleted != null)) {
  2112. this.StatusiZakazaRowDeleted(this, new StatusiZakazaRowChangeEvent(((StatusiZakazaRow)(e.Row)), e.Action));
  2113. }
  2114. }
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2117. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2118. base.OnRowDeleting(e);
  2119. if ((this.StatusiZakazaRowDeleting != null)) {
  2120. this.StatusiZakazaRowDeleting(this, new StatusiZakazaRowChangeEvent(((StatusiZakazaRow)(e.Row)), e.Action));
  2121. }
  2122. }
  2123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2125. public void RemoveStatusiZakazaRow(StatusiZakazaRow row) {
  2126. this.Rows.Remove(row);
  2127. }
  2128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2130. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2131. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2132. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2133. Kafe09DataSet ds = new Kafe09DataSet();
  2134. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2135. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2136. any1.MinOccurs = new decimal(0);
  2137. any1.MaxOccurs = decimal.MaxValue;
  2138. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2139. sequence.Items.Add(any1);
  2140. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2141. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2142. any2.MinOccurs = new decimal(1);
  2143. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2144. sequence.Items.Add(any2);
  2145. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2146. attribute1.Name = "namespace";
  2147. attribute1.FixedValue = ds.Namespace;
  2148. type.Attributes.Add(attribute1);
  2149. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2150. attribute2.Name = "tableTypeName";
  2151. attribute2.FixedValue = "StatusiZakazaDataTable";
  2152. type.Attributes.Add(attribute2);
  2153. type.Particle = sequence;
  2154. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2155. if (xs.Contains(dsSchema.TargetNamespace)) {
  2156. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2157. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2158. try {
  2159. global::System.Xml.Schema.XmlSchema schema = null;
  2160. dsSchema.Write(s1);
  2161. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2162. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2163. s2.SetLength(0);
  2164. schema.Write(s2);
  2165. if ((s1.Length == s2.Length)) {
  2166. s1.Position = 0;
  2167. s2.Position = 0;
  2168. for (; ((s1.Position != s1.Length)
  2169. && (s1.ReadByte() == s2.ReadByte())); ) {
  2170. ;
  2171. }
  2172. if ((s1.Position == s1.Length)) {
  2173. return type;
  2174. }
  2175. }
  2176. }
  2177. }
  2178. finally {
  2179. if ((s1 != null)) {
  2180. s1.Close();
  2181. }
  2182. if ((s2 != null)) {
  2183. s2.Close();
  2184. }
  2185. }
  2186. }
  2187. xs.Add(dsSchema);
  2188. return type;
  2189. }
  2190. }
  2191. /// <summary>
  2192. ///Represents the strongly named DataTable class.
  2193. ///</summary>
  2194. [global::System.Serializable()]
  2195. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2196. public partial class StolikiDataTable : global::System.Data.TypedTableBase<StolikiRow> {
  2197. private global::System.Data.DataColumn columnid;
  2198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2200. public StolikiDataTable() {
  2201. this.TableName = "Stoliki";
  2202. this.BeginInit();
  2203. this.InitClass();
  2204. this.EndInit();
  2205. }
  2206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2208. internal StolikiDataTable(global::System.Data.DataTable table) {
  2209. this.TableName = table.TableName;
  2210. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2211. this.CaseSensitive = table.CaseSensitive;
  2212. }
  2213. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2214. this.Locale = table.Locale;
  2215. }
  2216. if ((table.Namespace != table.DataSet.Namespace)) {
  2217. this.Namespace = table.Namespace;
  2218. }
  2219. this.Prefix = table.Prefix;
  2220. this.MinimumCapacity = table.MinimumCapacity;
  2221. }
  2222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2224. protected StolikiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2225. base(info, context) {
  2226. this.InitVars();
  2227. }
  2228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2230. public global::System.Data.DataColumn idColumn {
  2231. get {
  2232. return this.columnid;
  2233. }
  2234. }
  2235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2237. [global::System.ComponentModel.Browsable(false)]
  2238. public int Count {
  2239. get {
  2240. return this.Rows.Count;
  2241. }
  2242. }
  2243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2245. public StolikiRow this[int index] {
  2246. get {
  2247. return ((StolikiRow)(this.Rows[index]));
  2248. }
  2249. }
  2250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2251. public event StolikiRowChangeEventHandler StolikiRowChanging;
  2252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2253. public event StolikiRowChangeEventHandler StolikiRowChanged;
  2254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2255. public event StolikiRowChangeEventHandler StolikiRowDeleting;
  2256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2257. public event StolikiRowChangeEventHandler StolikiRowDeleted;
  2258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2260. public void AddStolikiRow(StolikiRow row) {
  2261. this.Rows.Add(row);
  2262. }
  2263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2265. public StolikiRow AddStolikiRow(int id) {
  2266. StolikiRow rowStolikiRow = ((StolikiRow)(this.NewRow()));
  2267. object[] columnValuesArray = new object[] {
  2268. id};
  2269. rowStolikiRow.ItemArray = columnValuesArray;
  2270. this.Rows.Add(rowStolikiRow);
  2271. return rowStolikiRow;
  2272. }
  2273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2275. public StolikiRow FindByid(int id) {
  2276. return ((StolikiRow)(this.Rows.Find(new object[] {
  2277. id})));
  2278. }
  2279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2281. public override global::System.Data.DataTable Clone() {
  2282. StolikiDataTable cln = ((StolikiDataTable)(base.Clone()));
  2283. cln.InitVars();
  2284. return cln;
  2285. }
  2286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2288. protected override global::System.Data.DataTable CreateInstance() {
  2289. return new StolikiDataTable();
  2290. }
  2291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2293. internal void InitVars() {
  2294. this.columnid = base.Columns["id"];
  2295. }
  2296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2298. private void InitClass() {
  2299. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2300. base.Columns.Add(this.columnid);
  2301. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2302. this.columnid}, true));
  2303. this.columnid.AllowDBNull = false;
  2304. this.columnid.Unique = true;
  2305. }
  2306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2308. public StolikiRow NewStolikiRow() {
  2309. return ((StolikiRow)(this.NewRow()));
  2310. }
  2311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2313. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2314. return new StolikiRow(builder);
  2315. }
  2316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2318. protected override global::System.Type GetRowType() {
  2319. return typeof(StolikiRow);
  2320. }
  2321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2323. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2324. base.OnRowChanged(e);
  2325. if ((this.StolikiRowChanged != null)) {
  2326. this.StolikiRowChanged(this, new StolikiRowChangeEvent(((StolikiRow)(e.Row)), e.Action));
  2327. }
  2328. }
  2329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2331. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2332. base.OnRowChanging(e);
  2333. if ((this.StolikiRowChanging != null)) {
  2334. this.StolikiRowChanging(this, new StolikiRowChangeEvent(((StolikiRow)(e.Row)), e.Action));
  2335. }
  2336. }
  2337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2339. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2340. base.OnRowDeleted(e);
  2341. if ((this.StolikiRowDeleted != null)) {
  2342. this.StolikiRowDeleted(this, new StolikiRowChangeEvent(((StolikiRow)(e.Row)), e.Action));
  2343. }
  2344. }
  2345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2347. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2348. base.OnRowDeleting(e);
  2349. if ((this.StolikiRowDeleting != null)) {
  2350. this.StolikiRowDeleting(this, new StolikiRowChangeEvent(((StolikiRow)(e.Row)), e.Action));
  2351. }
  2352. }
  2353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2355. public void RemoveStolikiRow(StolikiRow row) {
  2356. this.Rows.Remove(row);
  2357. }
  2358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2360. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2361. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2362. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2363. Kafe09DataSet ds = new Kafe09DataSet();
  2364. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2365. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2366. any1.MinOccurs = new decimal(0);
  2367. any1.MaxOccurs = decimal.MaxValue;
  2368. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2369. sequence.Items.Add(any1);
  2370. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2371. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2372. any2.MinOccurs = new decimal(1);
  2373. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2374. sequence.Items.Add(any2);
  2375. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2376. attribute1.Name = "namespace";
  2377. attribute1.FixedValue = ds.Namespace;
  2378. type.Attributes.Add(attribute1);
  2379. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2380. attribute2.Name = "tableTypeName";
  2381. attribute2.FixedValue = "StolikiDataTable";
  2382. type.Attributes.Add(attribute2);
  2383. type.Particle = sequence;
  2384. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2385. if (xs.Contains(dsSchema.TargetNamespace)) {
  2386. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2387. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2388. try {
  2389. global::System.Xml.Schema.XmlSchema schema = null;
  2390. dsSchema.Write(s1);
  2391. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2392. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2393. s2.SetLength(0);
  2394. schema.Write(s2);
  2395. if ((s1.Length == s2.Length)) {
  2396. s1.Position = 0;
  2397. s2.Position = 0;
  2398. for (; ((s1.Position != s1.Length)
  2399. && (s1.ReadByte() == s2.ReadByte())); ) {
  2400. ;
  2401. }
  2402. if ((s1.Position == s1.Length)) {
  2403. return type;
  2404. }
  2405. }
  2406. }
  2407. }
  2408. finally {
  2409. if ((s1 != null)) {
  2410. s1.Close();
  2411. }
  2412. if ((s2 != null)) {
  2413. s2.Close();
  2414. }
  2415. }
  2416. }
  2417. xs.Add(dsSchema);
  2418. return type;
  2419. }
  2420. }
  2421. /// <summary>
  2422. ///Represents the strongly named DataTable class.
  2423. ///</summary>
  2424. [global::System.Serializable()]
  2425. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2426. public partial class TipiOplatiDataTable : global::System.Data.TypedTableBase<TipiOplatiRow> {
  2427. private global::System.Data.DataColumn columnid;
  2428. private global::System.Data.DataColumn columnНазвание;
  2429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2431. public TipiOplatiDataTable() {
  2432. this.TableName = "TipiOplati";
  2433. this.BeginInit();
  2434. this.InitClass();
  2435. this.EndInit();
  2436. }
  2437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2439. internal TipiOplatiDataTable(global::System.Data.DataTable table) {
  2440. this.TableName = table.TableName;
  2441. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2442. this.CaseSensitive = table.CaseSensitive;
  2443. }
  2444. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2445. this.Locale = table.Locale;
  2446. }
  2447. if ((table.Namespace != table.DataSet.Namespace)) {
  2448. this.Namespace = table.Namespace;
  2449. }
  2450. this.Prefix = table.Prefix;
  2451. this.MinimumCapacity = table.MinimumCapacity;
  2452. }
  2453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2455. protected TipiOplatiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2456. base(info, context) {
  2457. this.InitVars();
  2458. }
  2459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2461. public global::System.Data.DataColumn idColumn {
  2462. get {
  2463. return this.columnid;
  2464. }
  2465. }
  2466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2468. public global::System.Data.DataColumn НазваниеColumn {
  2469. get {
  2470. return this.columnНазвание;
  2471. }
  2472. }
  2473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2475. [global::System.ComponentModel.Browsable(false)]
  2476. public int Count {
  2477. get {
  2478. return this.Rows.Count;
  2479. }
  2480. }
  2481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2483. public TipiOplatiRow this[int index] {
  2484. get {
  2485. return ((TipiOplatiRow)(this.Rows[index]));
  2486. }
  2487. }
  2488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2489. public event TipiOplatiRowChangeEventHandler TipiOplatiRowChanging;
  2490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2491. public event TipiOplatiRowChangeEventHandler TipiOplatiRowChanged;
  2492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2493. public event TipiOplatiRowChangeEventHandler TipiOplatiRowDeleting;
  2494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2495. public event TipiOplatiRowChangeEventHandler TipiOplatiRowDeleted;
  2496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2498. public void AddTipiOplatiRow(TipiOplatiRow row) {
  2499. this.Rows.Add(row);
  2500. }
  2501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2503. public TipiOplatiRow AddTipiOplatiRow(string Название) {
  2504. TipiOplatiRow rowTipiOplatiRow = ((TipiOplatiRow)(this.NewRow()));
  2505. object[] columnValuesArray = new object[] {
  2506. null,
  2507. Название};
  2508. rowTipiOplatiRow.ItemArray = columnValuesArray;
  2509. this.Rows.Add(rowTipiOplatiRow);
  2510. return rowTipiOplatiRow;
  2511. }
  2512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2514. public TipiOplatiRow FindByid(int id) {
  2515. return ((TipiOplatiRow)(this.Rows.Find(new object[] {
  2516. id})));
  2517. }
  2518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2520. public override global::System.Data.DataTable Clone() {
  2521. TipiOplatiDataTable cln = ((TipiOplatiDataTable)(base.Clone()));
  2522. cln.InitVars();
  2523. return cln;
  2524. }
  2525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2527. protected override global::System.Data.DataTable CreateInstance() {
  2528. return new TipiOplatiDataTable();
  2529. }
  2530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2532. internal void InitVars() {
  2533. this.columnid = base.Columns["id"];
  2534. this.columnНазвание = base.Columns["Название"];
  2535. }
  2536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2538. private void InitClass() {
  2539. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2540. base.Columns.Add(this.columnid);
  2541. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  2542. base.Columns.Add(this.columnНазвание);
  2543. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2544. this.columnid}, true));
  2545. this.columnid.AutoIncrement = true;
  2546. this.columnid.AutoIncrementSeed = -1;
  2547. this.columnid.AutoIncrementStep = -1;
  2548. this.columnid.AllowDBNull = false;
  2549. this.columnid.ReadOnly = true;
  2550. this.columnid.Unique = true;
  2551. this.columnНазвание.MaxLength = 50;
  2552. }
  2553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2555. public TipiOplatiRow NewTipiOplatiRow() {
  2556. return ((TipiOplatiRow)(this.NewRow()));
  2557. }
  2558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2560. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2561. return new TipiOplatiRow(builder);
  2562. }
  2563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2565. protected override global::System.Type GetRowType() {
  2566. return typeof(TipiOplatiRow);
  2567. }
  2568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2570. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2571. base.OnRowChanged(e);
  2572. if ((this.TipiOplatiRowChanged != null)) {
  2573. this.TipiOplatiRowChanged(this, new TipiOplatiRowChangeEvent(((TipiOplatiRow)(e.Row)), e.Action));
  2574. }
  2575. }
  2576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2578. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2579. base.OnRowChanging(e);
  2580. if ((this.TipiOplatiRowChanging != null)) {
  2581. this.TipiOplatiRowChanging(this, new TipiOplatiRowChangeEvent(((TipiOplatiRow)(e.Row)), e.Action));
  2582. }
  2583. }
  2584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2586. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2587. base.OnRowDeleted(e);
  2588. if ((this.TipiOplatiRowDeleted != null)) {
  2589. this.TipiOplatiRowDeleted(this, new TipiOplatiRowChangeEvent(((TipiOplatiRow)(e.Row)), e.Action));
  2590. }
  2591. }
  2592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2594. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2595. base.OnRowDeleting(e);
  2596. if ((this.TipiOplatiRowDeleting != null)) {
  2597. this.TipiOplatiRowDeleting(this, new TipiOplatiRowChangeEvent(((TipiOplatiRow)(e.Row)), e.Action));
  2598. }
  2599. }
  2600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2602. public void RemoveTipiOplatiRow(TipiOplatiRow row) {
  2603. this.Rows.Remove(row);
  2604. }
  2605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2607. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2608. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2609. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2610. Kafe09DataSet ds = new Kafe09DataSet();
  2611. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2612. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2613. any1.MinOccurs = new decimal(0);
  2614. any1.MaxOccurs = decimal.MaxValue;
  2615. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2616. sequence.Items.Add(any1);
  2617. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2618. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2619. any2.MinOccurs = new decimal(1);
  2620. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2621. sequence.Items.Add(any2);
  2622. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2623. attribute1.Name = "namespace";
  2624. attribute1.FixedValue = ds.Namespace;
  2625. type.Attributes.Add(attribute1);
  2626. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2627. attribute2.Name = "tableTypeName";
  2628. attribute2.FixedValue = "TipiOplatiDataTable";
  2629. type.Attributes.Add(attribute2);
  2630. type.Particle = sequence;
  2631. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2632. if (xs.Contains(dsSchema.TargetNamespace)) {
  2633. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2634. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2635. try {
  2636. global::System.Xml.Schema.XmlSchema schema = null;
  2637. dsSchema.Write(s1);
  2638. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2639. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2640. s2.SetLength(0);
  2641. schema.Write(s2);
  2642. if ((s1.Length == s2.Length)) {
  2643. s1.Position = 0;
  2644. s2.Position = 0;
  2645. for (; ((s1.Position != s1.Length)
  2646. && (s1.ReadByte() == s2.ReadByte())); ) {
  2647. ;
  2648. }
  2649. if ((s1.Position == s1.Length)) {
  2650. return type;
  2651. }
  2652. }
  2653. }
  2654. }
  2655. finally {
  2656. if ((s1 != null)) {
  2657. s1.Close();
  2658. }
  2659. if ((s2 != null)) {
  2660. s2.Close();
  2661. }
  2662. }
  2663. }
  2664. xs.Add(dsSchema);
  2665. return type;
  2666. }
  2667. }
  2668. /// <summary>
  2669. ///Represents the strongly named DataTable class.
  2670. ///</summary>
  2671. [global::System.Serializable()]
  2672. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2673. public partial class ZakazannieBludaDataTable : global::System.Data.TypedTableBase<ZakazannieBludaRow> {
  2674. private global::System.Data.DataColumn columnid;
  2675. private global::System.Data.DataColumn columnЗаказанныеБлюда;
  2676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2678. public ZakazannieBludaDataTable() {
  2679. this.TableName = "ZakazannieBluda";
  2680. this.BeginInit();
  2681. this.InitClass();
  2682. this.EndInit();
  2683. }
  2684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2686. internal ZakazannieBludaDataTable(global::System.Data.DataTable table) {
  2687. this.TableName = table.TableName;
  2688. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2689. this.CaseSensitive = table.CaseSensitive;
  2690. }
  2691. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2692. this.Locale = table.Locale;
  2693. }
  2694. if ((table.Namespace != table.DataSet.Namespace)) {
  2695. this.Namespace = table.Namespace;
  2696. }
  2697. this.Prefix = table.Prefix;
  2698. this.MinimumCapacity = table.MinimumCapacity;
  2699. }
  2700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2702. protected ZakazannieBludaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2703. base(info, context) {
  2704. this.InitVars();
  2705. }
  2706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2708. public global::System.Data.DataColumn idColumn {
  2709. get {
  2710. return this.columnid;
  2711. }
  2712. }
  2713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2715. public global::System.Data.DataColumn ЗаказанныеБлюдаColumn {
  2716. get {
  2717. return this.columnЗаказанныеБлюда;
  2718. }
  2719. }
  2720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2722. [global::System.ComponentModel.Browsable(false)]
  2723. public int Count {
  2724. get {
  2725. return this.Rows.Count;
  2726. }
  2727. }
  2728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2730. public ZakazannieBludaRow this[int index] {
  2731. get {
  2732. return ((ZakazannieBludaRow)(this.Rows[index]));
  2733. }
  2734. }
  2735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2736. public event ZakazannieBludaRowChangeEventHandler ZakazannieBludaRowChanging;
  2737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2738. public event ZakazannieBludaRowChangeEventHandler ZakazannieBludaRowChanged;
  2739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2740. public event ZakazannieBludaRowChangeEventHandler ZakazannieBludaRowDeleting;
  2741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2742. public event ZakazannieBludaRowChangeEventHandler ZakazannieBludaRowDeleted;
  2743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2745. public void AddZakazannieBludaRow(ZakazannieBludaRow row) {
  2746. this.Rows.Add(row);
  2747. }
  2748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2750. public ZakazannieBludaRow AddZakazannieBludaRow(BludaRow parentBludaRowByFK_ZakazannieBluda_Bluda) {
  2751. ZakazannieBludaRow rowZakazannieBludaRow = ((ZakazannieBludaRow)(this.NewRow()));
  2752. object[] columnValuesArray = new object[] {
  2753. null,
  2754. null};
  2755. if ((parentBludaRowByFK_ZakazannieBluda_Bluda != null)) {
  2756. columnValuesArray[1] = parentBludaRowByFK_ZakazannieBluda_Bluda[0];
  2757. }
  2758. rowZakazannieBludaRow.ItemArray = columnValuesArray;
  2759. this.Rows.Add(rowZakazannieBludaRow);
  2760. return rowZakazannieBludaRow;
  2761. }
  2762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2764. public ZakazannieBludaRow FindByid(int id) {
  2765. return ((ZakazannieBludaRow)(this.Rows.Find(new object[] {
  2766. id})));
  2767. }
  2768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2770. public override global::System.Data.DataTable Clone() {
  2771. ZakazannieBludaDataTable cln = ((ZakazannieBludaDataTable)(base.Clone()));
  2772. cln.InitVars();
  2773. return cln;
  2774. }
  2775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2777. protected override global::System.Data.DataTable CreateInstance() {
  2778. return new ZakazannieBludaDataTable();
  2779. }
  2780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2782. internal void InitVars() {
  2783. this.columnid = base.Columns["id"];
  2784. this.columnЗаказанныеБлюда = base.Columns["ЗаказанныеБлюда"];
  2785. }
  2786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2788. private void InitClass() {
  2789. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2790. base.Columns.Add(this.columnid);
  2791. this.columnЗаказанныеБлюда = new global::System.Data.DataColumn("ЗаказанныеБлюда", typeof(int), null, global::System.Data.MappingType.Element);
  2792. base.Columns.Add(this.columnЗаказанныеБлюда);
  2793. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2794. this.columnid}, true));
  2795. this.columnid.AutoIncrement = true;
  2796. this.columnid.AutoIncrementSeed = -1;
  2797. this.columnid.AutoIncrementStep = -1;
  2798. this.columnid.AllowDBNull = false;
  2799. this.columnid.ReadOnly = true;
  2800. this.columnid.Unique = true;
  2801. }
  2802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2804. public ZakazannieBludaRow NewZakazannieBludaRow() {
  2805. return ((ZakazannieBludaRow)(this.NewRow()));
  2806. }
  2807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2809. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2810. return new ZakazannieBludaRow(builder);
  2811. }
  2812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2814. protected override global::System.Type GetRowType() {
  2815. return typeof(ZakazannieBludaRow);
  2816. }
  2817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2819. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2820. base.OnRowChanged(e);
  2821. if ((this.ZakazannieBludaRowChanged != null)) {
  2822. this.ZakazannieBludaRowChanged(this, new ZakazannieBludaRowChangeEvent(((ZakazannieBludaRow)(e.Row)), e.Action));
  2823. }
  2824. }
  2825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2827. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2828. base.OnRowChanging(e);
  2829. if ((this.ZakazannieBludaRowChanging != null)) {
  2830. this.ZakazannieBludaRowChanging(this, new ZakazannieBludaRowChangeEvent(((ZakazannieBludaRow)(e.Row)), e.Action));
  2831. }
  2832. }
  2833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2835. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2836. base.OnRowDeleted(e);
  2837. if ((this.ZakazannieBludaRowDeleted != null)) {
  2838. this.ZakazannieBludaRowDeleted(this, new ZakazannieBludaRowChangeEvent(((ZakazannieBludaRow)(e.Row)), e.Action));
  2839. }
  2840. }
  2841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2843. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2844. base.OnRowDeleting(e);
  2845. if ((this.ZakazannieBludaRowDeleting != null)) {
  2846. this.ZakazannieBludaRowDeleting(this, new ZakazannieBludaRowChangeEvent(((ZakazannieBludaRow)(e.Row)), e.Action));
  2847. }
  2848. }
  2849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2851. public void RemoveZakazannieBludaRow(ZakazannieBludaRow row) {
  2852. this.Rows.Remove(row);
  2853. }
  2854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2856. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2857. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2858. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2859. Kafe09DataSet ds = new Kafe09DataSet();
  2860. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2861. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2862. any1.MinOccurs = new decimal(0);
  2863. any1.MaxOccurs = decimal.MaxValue;
  2864. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2865. sequence.Items.Add(any1);
  2866. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2867. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2868. any2.MinOccurs = new decimal(1);
  2869. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2870. sequence.Items.Add(any2);
  2871. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2872. attribute1.Name = "namespace";
  2873. attribute1.FixedValue = ds.Namespace;
  2874. type.Attributes.Add(attribute1);
  2875. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2876. attribute2.Name = "tableTypeName";
  2877. attribute2.FixedValue = "ZakazannieBludaDataTable";
  2878. type.Attributes.Add(attribute2);
  2879. type.Particle = sequence;
  2880. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2881. if (xs.Contains(dsSchema.TargetNamespace)) {
  2882. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2883. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2884. try {
  2885. global::System.Xml.Schema.XmlSchema schema = null;
  2886. dsSchema.Write(s1);
  2887. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2888. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2889. s2.SetLength(0);
  2890. schema.Write(s2);
  2891. if ((s1.Length == s2.Length)) {
  2892. s1.Position = 0;
  2893. s2.Position = 0;
  2894. for (; ((s1.Position != s1.Length)
  2895. && (s1.ReadByte() == s2.ReadByte())); ) {
  2896. ;
  2897. }
  2898. if ((s1.Position == s1.Length)) {
  2899. return type;
  2900. }
  2901. }
  2902. }
  2903. }
  2904. finally {
  2905. if ((s1 != null)) {
  2906. s1.Close();
  2907. }
  2908. if ((s2 != null)) {
  2909. s2.Close();
  2910. }
  2911. }
  2912. }
  2913. xs.Add(dsSchema);
  2914. return type;
  2915. }
  2916. }
  2917. /// <summary>
  2918. ///Represents the strongly named DataTable class.
  2919. ///</summary>
  2920. [global::System.Serializable()]
  2921. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2922. public partial class ZakaziDataTable : global::System.Data.TypedTableBase<ZakaziRow> {
  2923. private global::System.Data.DataColumn columnid;
  2924. private global::System.Data.DataColumn columnСтатусЗаказа;
  2925. private global::System.Data.DataColumn columnДата;
  2926. private global::System.Data.DataColumn columnТипОплаты;
  2927. private global::System.Data.DataColumn columnСмена;
  2928. private global::System.Data.DataColumn columnСтолик;
  2929. private global::System.Data.DataColumn columnБлюда;
  2930. private global::System.Data.DataColumn columnЗаказанныеБлюда;
  2931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2933. public ZakaziDataTable() {
  2934. this.TableName = "Zakazi";
  2935. this.BeginInit();
  2936. this.InitClass();
  2937. this.EndInit();
  2938. }
  2939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2941. internal ZakaziDataTable(global::System.Data.DataTable table) {
  2942. this.TableName = table.TableName;
  2943. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2944. this.CaseSensitive = table.CaseSensitive;
  2945. }
  2946. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2947. this.Locale = table.Locale;
  2948. }
  2949. if ((table.Namespace != table.DataSet.Namespace)) {
  2950. this.Namespace = table.Namespace;
  2951. }
  2952. this.Prefix = table.Prefix;
  2953. this.MinimumCapacity = table.MinimumCapacity;
  2954. }
  2955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2957. protected ZakaziDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2958. base(info, context) {
  2959. this.InitVars();
  2960. }
  2961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2963. public global::System.Data.DataColumn idColumn {
  2964. get {
  2965. return this.columnid;
  2966. }
  2967. }
  2968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2970. public global::System.Data.DataColumn СтатусЗаказаColumn {
  2971. get {
  2972. return this.columnСтатусЗаказа;
  2973. }
  2974. }
  2975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2977. public global::System.Data.DataColumn ДатаColumn {
  2978. get {
  2979. return this.columnДата;
  2980. }
  2981. }
  2982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2984. public global::System.Data.DataColumn ТипОплатыColumn {
  2985. get {
  2986. return this.columnТипОплаты;
  2987. }
  2988. }
  2989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2991. public global::System.Data.DataColumn СменаColumn {
  2992. get {
  2993. return this.columnСмена;
  2994. }
  2995. }
  2996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2998. public global::System.Data.DataColumn СтоликColumn {
  2999. get {
  3000. return this.columnСтолик;
  3001. }
  3002. }
  3003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3005. public global::System.Data.DataColumn БлюдаColumn {
  3006. get {
  3007. return this.columnБлюда;
  3008. }
  3009. }
  3010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3012. public global::System.Data.DataColumn ЗаказанныеБлюдаColumn {
  3013. get {
  3014. return this.columnЗаказанныеБлюда;
  3015. }
  3016. }
  3017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3019. [global::System.ComponentModel.Browsable(false)]
  3020. public int Count {
  3021. get {
  3022. return this.Rows.Count;
  3023. }
  3024. }
  3025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3027. public ZakaziRow this[int index] {
  3028. get {
  3029. return ((ZakaziRow)(this.Rows[index]));
  3030. }
  3031. }
  3032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3033. public event ZakaziRowChangeEventHandler ZakaziRowChanging;
  3034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3035. public event ZakaziRowChangeEventHandler ZakaziRowChanged;
  3036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3037. public event ZakaziRowChangeEventHandler ZakaziRowDeleting;
  3038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3039. public event ZakaziRowChangeEventHandler ZakaziRowDeleted;
  3040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3042. public void AddZakaziRow(ZakaziRow row) {
  3043. this.Rows.Add(row);
  3044. }
  3045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3047. public ZakaziRow AddZakaziRow(StatusiZakazaRow parentStatusiZakazaRowByFK_Zakazi_StatusZakaza, System.DateTime Дата, TipiOplatiRow parentTipiOplatiRowByFK_Zakazi_TipOplati, SmeniRow parentSmeniRowByFK_Zakazi_Smeni, StolikiRow parentStolikiRowByFK_Zakazi_Stoliki, string Блюда, ZakazannieBludaRow parentZakazannieBludaRowByFK_Zakazi_ZakazannieBluda) {
  3048. ZakaziRow rowZakaziRow = ((ZakaziRow)(this.NewRow()));
  3049. object[] columnValuesArray = new object[] {
  3050. null,
  3051. null,
  3052. Дата,
  3053. null,
  3054. null,
  3055. null,
  3056. Блюда,
  3057. null};
  3058. if ((parentStatusiZakazaRowByFK_Zakazi_StatusZakaza != null)) {
  3059. columnValuesArray[1] = parentStatusiZakazaRowByFK_Zakazi_StatusZakaza[0];
  3060. }
  3061. if ((parentTipiOplatiRowByFK_Zakazi_TipOplati != null)) {
  3062. columnValuesArray[3] = parentTipiOplatiRowByFK_Zakazi_TipOplati[0];
  3063. }
  3064. if ((parentSmeniRowByFK_Zakazi_Smeni != null)) {
  3065. columnValuesArray[4] = parentSmeniRowByFK_Zakazi_Smeni[0];
  3066. }
  3067. if ((parentStolikiRowByFK_Zakazi_Stoliki != null)) {
  3068. columnValuesArray[5] = parentStolikiRowByFK_Zakazi_Stoliki[0];
  3069. }
  3070. if ((parentZakazannieBludaRowByFK_Zakazi_ZakazannieBluda != null)) {
  3071. columnValuesArray[7] = parentZakazannieBludaRowByFK_Zakazi_ZakazannieBluda[0];
  3072. }
  3073. rowZakaziRow.ItemArray = columnValuesArray;
  3074. this.Rows.Add(rowZakaziRow);
  3075. return rowZakaziRow;
  3076. }
  3077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3079. public ZakaziRow FindByid(int id) {
  3080. return ((ZakaziRow)(this.Rows.Find(new object[] {
  3081. id})));
  3082. }
  3083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3085. public override global::System.Data.DataTable Clone() {
  3086. ZakaziDataTable cln = ((ZakaziDataTable)(base.Clone()));
  3087. cln.InitVars();
  3088. return cln;
  3089. }
  3090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3092. protected override global::System.Data.DataTable CreateInstance() {
  3093. return new ZakaziDataTable();
  3094. }
  3095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3097. internal void InitVars() {
  3098. this.columnid = base.Columns["id"];
  3099. this.columnСтатусЗаказа = base.Columns["СтатусЗаказа"];
  3100. this.columnДата = base.Columns["Дата"];
  3101. this.columnТипОплаты = base.Columns["ТипОплаты"];
  3102. this.columnСмена = base.Columns["Смена"];
  3103. this.columnСтолик = base.Columns["Столик"];
  3104. this.columnБлюда = base.Columns["Блюда"];
  3105. this.columnЗаказанныеБлюда = base.Columns["ЗаказанныеБлюда"];
  3106. }
  3107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3109. private void InitClass() {
  3110. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  3111. base.Columns.Add(this.columnid);
  3112. this.columnСтатусЗаказа = new global::System.Data.DataColumn("СтатусЗаказа", typeof(int), null, global::System.Data.MappingType.Element);
  3113. base.Columns.Add(this.columnСтатусЗаказа);
  3114. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3115. base.Columns.Add(this.columnДата);
  3116. this.columnТипОплаты = new global::System.Data.DataColumn("ТипОплаты", typeof(int), null, global::System.Data.MappingType.Element);
  3117. base.Columns.Add(this.columnТипОплаты);
  3118. this.columnСмена = new global::System.Data.DataColumn("Смена", typeof(int), null, global::System.Data.MappingType.Element);
  3119. base.Columns.Add(this.columnСмена);
  3120. this.columnСтолик = new global::System.Data.DataColumn("Столик", typeof(int), null, global::System.Data.MappingType.Element);
  3121. base.Columns.Add(this.columnСтолик);
  3122. this.columnБлюда = new global::System.Data.DataColumn("Блюда", typeof(string), null, global::System.Data.MappingType.Element);
  3123. base.Columns.Add(this.columnБлюда);
  3124. this.columnЗаказанныеБлюда = new global::System.Data.DataColumn("ЗаказанныеБлюда", typeof(int), null, global::System.Data.MappingType.Element);
  3125. base.Columns.Add(this.columnЗаказанныеБлюда);
  3126. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3127. this.columnid}, true));
  3128. this.columnid.AutoIncrement = true;
  3129. this.columnid.AutoIncrementSeed = -1;
  3130. this.columnid.AutoIncrementStep = -1;
  3131. this.columnid.AllowDBNull = false;
  3132. this.columnid.ReadOnly = true;
  3133. this.columnid.Unique = true;
  3134. this.columnБлюда.MaxLength = 10;
  3135. }
  3136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3138. public ZakaziRow NewZakaziRow() {
  3139. return ((ZakaziRow)(this.NewRow()));
  3140. }
  3141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3143. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3144. return new ZakaziRow(builder);
  3145. }
  3146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3148. protected override global::System.Type GetRowType() {
  3149. return typeof(ZakaziRow);
  3150. }
  3151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3153. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3154. base.OnRowChanged(e);
  3155. if ((this.ZakaziRowChanged != null)) {
  3156. this.ZakaziRowChanged(this, new ZakaziRowChangeEvent(((ZakaziRow)(e.Row)), e.Action));
  3157. }
  3158. }
  3159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3161. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3162. base.OnRowChanging(e);
  3163. if ((this.ZakaziRowChanging != null)) {
  3164. this.ZakaziRowChanging(this, new ZakaziRowChangeEvent(((ZakaziRow)(e.Row)), e.Action));
  3165. }
  3166. }
  3167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3169. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3170. base.OnRowDeleted(e);
  3171. if ((this.ZakaziRowDeleted != null)) {
  3172. this.ZakaziRowDeleted(this, new ZakaziRowChangeEvent(((ZakaziRow)(e.Row)), e.Action));
  3173. }
  3174. }
  3175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3177. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3178. base.OnRowDeleting(e);
  3179. if ((this.ZakaziRowDeleting != null)) {
  3180. this.ZakaziRowDeleting(this, new ZakaziRowChangeEvent(((ZakaziRow)(e.Row)), e.Action));
  3181. }
  3182. }
  3183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3185. public void RemoveZakaziRow(ZakaziRow row) {
  3186. this.Rows.Remove(row);
  3187. }
  3188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3190. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3191. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3192. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3193. Kafe09DataSet ds = new Kafe09DataSet();
  3194. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3195. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3196. any1.MinOccurs = new decimal(0);
  3197. any1.MaxOccurs = decimal.MaxValue;
  3198. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3199. sequence.Items.Add(any1);
  3200. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3201. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3202. any2.MinOccurs = new decimal(1);
  3203. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3204. sequence.Items.Add(any2);
  3205. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3206. attribute1.Name = "namespace";
  3207. attribute1.FixedValue = ds.Namespace;
  3208. type.Attributes.Add(attribute1);
  3209. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3210. attribute2.Name = "tableTypeName";
  3211. attribute2.FixedValue = "ZakaziDataTable";
  3212. type.Attributes.Add(attribute2);
  3213. type.Particle = sequence;
  3214. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3215. if (xs.Contains(dsSchema.TargetNamespace)) {
  3216. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3217. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3218. try {
  3219. global::System.Xml.Schema.XmlSchema schema = null;
  3220. dsSchema.Write(s1);
  3221. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3222. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3223. s2.SetLength(0);
  3224. schema.Write(s2);
  3225. if ((s1.Length == s2.Length)) {
  3226. s1.Position = 0;
  3227. s2.Position = 0;
  3228. for (; ((s1.Position != s1.Length)
  3229. && (s1.ReadByte() == s2.ReadByte())); ) {
  3230. ;
  3231. }
  3232. if ((s1.Position == s1.Length)) {
  3233. return type;
  3234. }
  3235. }
  3236. }
  3237. }
  3238. finally {
  3239. if ((s1 != null)) {
  3240. s1.Close();
  3241. }
  3242. if ((s2 != null)) {
  3243. s2.Close();
  3244. }
  3245. }
  3246. }
  3247. xs.Add(dsSchema);
  3248. return type;
  3249. }
  3250. }
  3251. /// <summary>
  3252. ///Represents strongly named DataRow class.
  3253. ///</summary>
  3254. public partial class BludaRow : global::System.Data.DataRow {
  3255. private BludaDataTable tableBluda;
  3256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3258. internal BludaRow(global::System.Data.DataRowBuilder rb) :
  3259. base(rb) {
  3260. this.tableBluda = ((BludaDataTable)(this.Table));
  3261. }
  3262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3264. public int id {
  3265. get {
  3266. return ((int)(this[this.tableBluda.idColumn]));
  3267. }
  3268. set {
  3269. this[this.tableBluda.idColumn] = value;
  3270. }
  3271. }
  3272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3274. public string Название {
  3275. get {
  3276. try {
  3277. return ((string)(this[this.tableBluda.НазваниеColumn]));
  3278. }
  3279. catch (global::System.InvalidCastException e) {
  3280. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'Bluda\' равно DBNull.", e);
  3281. }
  3282. }
  3283. set {
  3284. this[this.tableBluda.НазваниеColumn] = value;
  3285. }
  3286. }
  3287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3289. public bool IsНазваниеNull() {
  3290. return this.IsNull(this.tableBluda.НазваниеColumn);
  3291. }
  3292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3294. public void SetНазваниеNull() {
  3295. this[this.tableBluda.НазваниеColumn] = global::System.Convert.DBNull;
  3296. }
  3297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3299. public ZakazannieBludaRow[] GetZakazannieBludaRows() {
  3300. if ((this.Table.ChildRelations["FK_ZakazannieBluda_Bluda"] == null)) {
  3301. return new ZakazannieBludaRow[0];
  3302. }
  3303. else {
  3304. return ((ZakazannieBludaRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ZakazannieBluda_Bluda"])));
  3305. }
  3306. }
  3307. }
  3308. /// <summary>
  3309. ///Represents strongly named DataRow class.
  3310. ///</summary>
  3311. public partial class DoljnostiRow : global::System.Data.DataRow {
  3312. private DoljnostiDataTable tableDoljnosti;
  3313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3315. internal DoljnostiRow(global::System.Data.DataRowBuilder rb) :
  3316. base(rb) {
  3317. this.tableDoljnosti = ((DoljnostiDataTable)(this.Table));
  3318. }
  3319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3321. public int id {
  3322. get {
  3323. return ((int)(this[this.tableDoljnosti.idColumn]));
  3324. }
  3325. set {
  3326. this[this.tableDoljnosti.idColumn] = value;
  3327. }
  3328. }
  3329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3331. public string НазваниеДолжности {
  3332. get {
  3333. try {
  3334. return ((string)(this[this.tableDoljnosti.НазваниеДолжностиColumn]));
  3335. }
  3336. catch (global::System.InvalidCastException e) {
  3337. throw new global::System.Data.StrongTypingException("Значение для столбца \'НазваниеДолжности\' в таблице \'Doljnosti\' равно DBNull.", e);
  3338. }
  3339. }
  3340. set {
  3341. this[this.tableDoljnosti.НазваниеДолжностиColumn] = value;
  3342. }
  3343. }
  3344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3346. public bool IsНазваниеДолжностиNull() {
  3347. return this.IsNull(this.tableDoljnosti.НазваниеДолжностиColumn);
  3348. }
  3349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3351. public void SetНазваниеДолжностиNull() {
  3352. this[this.tableDoljnosti.НазваниеДолжностиColumn] = global::System.Convert.DBNull;
  3353. }
  3354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3356. public PolzovateliRow[] GetPolzovateliRows() {
  3357. if ((this.Table.ChildRelations["FK_Polzovateli_Должность"] == null)) {
  3358. return new PolzovateliRow[0];
  3359. }
  3360. else {
  3361. return ((PolzovateliRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Polzovateli_Должность"])));
  3362. }
  3363. }
  3364. }
  3365. /// <summary>
  3366. ///Represents strongly named DataRow class.
  3367. ///</summary>
  3368. public partial class PolzovateliRow : global::System.Data.DataRow {
  3369. private PolzovateliDataTable tablePolzovateli;
  3370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3372. internal PolzovateliRow(global::System.Data.DataRowBuilder rb) :
  3373. base(rb) {
  3374. this.tablePolzovateli = ((PolzovateliDataTable)(this.Table));
  3375. }
  3376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3378. public int id {
  3379. get {
  3380. return ((int)(this[this.tablePolzovateli.idColumn]));
  3381. }
  3382. set {
  3383. this[this.tablePolzovateli.idColumn] = value;
  3384. }
  3385. }
  3386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3388. public string Фармилия {
  3389. get {
  3390. try {
  3391. return ((string)(this[this.tablePolzovateli.ФармилияColumn]));
  3392. }
  3393. catch (global::System.InvalidCastException e) {
  3394. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фармилия\' в таблице \'Polzovateli\' равно DBNull.", e);
  3395. }
  3396. }
  3397. set {
  3398. this[this.tablePolzovateli.ФармилияColumn] = value;
  3399. }
  3400. }
  3401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3403. public string Имя {
  3404. get {
  3405. try {
  3406. return ((string)(this[this.tablePolzovateli.ИмяColumn]));
  3407. }
  3408. catch (global::System.InvalidCastException e) {
  3409. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'Polzovateli\' равно DBNull.", e);
  3410. }
  3411. }
  3412. set {
  3413. this[this.tablePolzovateli.ИмяColumn] = value;
  3414. }
  3415. }
  3416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3418. public string Отчетсво {
  3419. get {
  3420. try {
  3421. return ((string)(this[this.tablePolzovateli.ОтчетсвоColumn]));
  3422. }
  3423. catch (global::System.InvalidCastException e) {
  3424. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчетсво\' в таблице \'Polzovateli\' равно DBNull.", e);
  3425. }
  3426. }
  3427. set {
  3428. this[this.tablePolzovateli.ОтчетсвоColumn] = value;
  3429. }
  3430. }
  3431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3433. public int Doljnost {
  3434. get {
  3435. try {
  3436. return ((int)(this[this.tablePolzovateli.DoljnostColumn]));
  3437. }
  3438. catch (global::System.InvalidCastException e) {
  3439. throw new global::System.Data.StrongTypingException("Значение для столбца \'Doljnost\' в таблице \'Polzovateli\' равно DBNull.", e);
  3440. }
  3441. }
  3442. set {
  3443. this[this.tablePolzovateli.DoljnostColumn] = value;
  3444. }
  3445. }
  3446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3448. public System.DateTime ДатаПринятияНаРаботу {
  3449. get {
  3450. try {
  3451. return ((global::System.DateTime)(this[this.tablePolzovateli.ДатаПринятияНаРаботуColumn]));
  3452. }
  3453. catch (global::System.InvalidCastException e) {
  3454. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаПринятияНаРаботу\' в таблице \'Polzovateli\' равно DBNull." +
  3455. "", e);
  3456. }
  3457. }
  3458. set {
  3459. this[this.tablePolzovateli.ДатаПринятияНаРаботуColumn] = value;
  3460. }
  3461. }
  3462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3464. public string Телефон {
  3465. get {
  3466. try {
  3467. return ((string)(this[this.tablePolzovateli.ТелефонColumn]));
  3468. }
  3469. catch (global::System.InvalidCastException e) {
  3470. throw new global::System.Data.StrongTypingException("Значение для столбца \'Телефон\' в таблице \'Polzovateli\' равно DBNull.", e);
  3471. }
  3472. }
  3473. set {
  3474. this[this.tablePolzovateli.ТелефонColumn] = value;
  3475. }
  3476. }
  3477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3479. public string Адрес {
  3480. get {
  3481. try {
  3482. return ((string)(this[this.tablePolzovateli.АдресColumn]));
  3483. }
  3484. catch (global::System.InvalidCastException e) {
  3485. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес\' в таблице \'Polzovateli\' равно DBNull.", e);
  3486. }
  3487. }
  3488. set {
  3489. this[this.tablePolzovateli.АдресColumn] = value;
  3490. }
  3491. }
  3492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3494. public int СтатусПользователя {
  3495. get {
  3496. try {
  3497. return ((int)(this[this.tablePolzovateli.СтатусПользователяColumn]));
  3498. }
  3499. catch (global::System.InvalidCastException e) {
  3500. throw new global::System.Data.StrongTypingException("Значение для столбца \'СтатусПользователя\' в таблице \'Polzovateli\' равно DBNull.", e);
  3501. }
  3502. }
  3503. set {
  3504. this[this.tablePolzovateli.СтатусПользователяColumn] = value;
  3505. }
  3506. }
  3507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3509. public string username {
  3510. get {
  3511. try {
  3512. return ((string)(this[this.tablePolzovateli.usernameColumn]));
  3513. }
  3514. catch (global::System.InvalidCastException e) {
  3515. throw new global::System.Data.StrongTypingException("Значение для столбца \'username\' в таблице \'Polzovateli\' равно DBNull.", e);
  3516. }
  3517. }
  3518. set {
  3519. this[this.tablePolzovateli.usernameColumn] = value;
  3520. }
  3521. }
  3522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3524. public string password {
  3525. get {
  3526. try {
  3527. return ((string)(this[this.tablePolzovateli.passwordColumn]));
  3528. }
  3529. catch (global::System.InvalidCastException e) {
  3530. throw new global::System.Data.StrongTypingException("Значение для столбца \'password\' в таблице \'Polzovateli\' равно DBNull.", e);
  3531. }
  3532. }
  3533. set {
  3534. this[this.tablePolzovateli.passwordColumn] = value;
  3535. }
  3536. }
  3537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3539. public StatusiPolzovateleyRow StatusiPolzovateleyRow {
  3540. get {
  3541. return ((StatusiPolzovateleyRow)(this.GetParentRow(this.Table.ParentRelations["FK_Polzovateli_StatusiPolzovateley"])));
  3542. }
  3543. set {
  3544. this.SetParentRow(value, this.Table.ParentRelations["FK_Polzovateli_StatusiPolzovateley"]);
  3545. }
  3546. }
  3547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3549. public DoljnostiRow DoljnostiRow {
  3550. get {
  3551. return ((DoljnostiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Polzovateli_Должность"])));
  3552. }
  3553. set {
  3554. this.SetParentRow(value, this.Table.ParentRelations["FK_Polzovateli_Должность"]);
  3555. }
  3556. }
  3557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3559. public bool IsФармилияNull() {
  3560. return this.IsNull(this.tablePolzovateli.ФармилияColumn);
  3561. }
  3562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3564. public void SetФармилияNull() {
  3565. this[this.tablePolzovateli.ФармилияColumn] = global::System.Convert.DBNull;
  3566. }
  3567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3569. public bool IsИмяNull() {
  3570. return this.IsNull(this.tablePolzovateli.ИмяColumn);
  3571. }
  3572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3574. public void SetИмяNull() {
  3575. this[this.tablePolzovateli.ИмяColumn] = global::System.Convert.DBNull;
  3576. }
  3577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3579. public bool IsОтчетсвоNull() {
  3580. return this.IsNull(this.tablePolzovateli.ОтчетсвоColumn);
  3581. }
  3582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3584. public void SetОтчетсвоNull() {
  3585. this[this.tablePolzovateli.ОтчетсвоColumn] = global::System.Convert.DBNull;
  3586. }
  3587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3589. public bool IsDoljnostNull() {
  3590. return this.IsNull(this.tablePolzovateli.DoljnostColumn);
  3591. }
  3592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3594. public void SetDoljnostNull() {
  3595. this[this.tablePolzovateli.DoljnostColumn] = global::System.Convert.DBNull;
  3596. }
  3597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3599. public bool IsДатаПринятияНаРаботуNull() {
  3600. return this.IsNull(this.tablePolzovateli.ДатаПринятияНаРаботуColumn);
  3601. }
  3602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3604. public void SetДатаПринятияНаРаботуNull() {
  3605. this[this.tablePolzovateli.ДатаПринятияНаРаботуColumn] = global::System.Convert.DBNull;
  3606. }
  3607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3609. public bool IsТелефонNull() {
  3610. return this.IsNull(this.tablePolzovateli.ТелефонColumn);
  3611. }
  3612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3614. public void SetТелефонNull() {
  3615. this[this.tablePolzovateli.ТелефонColumn] = global::System.Convert.DBNull;
  3616. }
  3617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3619. public bool IsАдресNull() {
  3620. return this.IsNull(this.tablePolzovateli.АдресColumn);
  3621. }
  3622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3624. public void SetАдресNull() {
  3625. this[this.tablePolzovateli.АдресColumn] = global::System.Convert.DBNull;
  3626. }
  3627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3629. public bool IsСтатусПользователяNull() {
  3630. return this.IsNull(this.tablePolzovateli.СтатусПользователяColumn);
  3631. }
  3632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3634. public void SetСтатусПользователяNull() {
  3635. this[this.tablePolzovateli.СтатусПользователяColumn] = global::System.Convert.DBNull;
  3636. }
  3637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3639. public bool IsusernameNull() {
  3640. return this.IsNull(this.tablePolzovateli.usernameColumn);
  3641. }
  3642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3644. public void SetusernameNull() {
  3645. this[this.tablePolzovateli.usernameColumn] = global::System.Convert.DBNull;
  3646. }
  3647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3649. public bool IspasswordNull() {
  3650. return this.IsNull(this.tablePolzovateli.passwordColumn);
  3651. }
  3652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3654. public void SetpasswordNull() {
  3655. this[this.tablePolzovateli.passwordColumn] = global::System.Convert.DBNull;
  3656. }
  3657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3659. public SmeniRow[] GetSmeniRows() {
  3660. if ((this.Table.ChildRelations["FK_Smeni_Polzovateli"] == null)) {
  3661. return new SmeniRow[0];
  3662. }
  3663. else {
  3664. return ((SmeniRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Smeni_Polzovateli"])));
  3665. }
  3666. }
  3667. }
  3668. /// <summary>
  3669. ///Represents strongly named DataRow class.
  3670. ///</summary>
  3671. public partial class SmeniRow : global::System.Data.DataRow {
  3672. private SmeniDataTable tableSmeni;
  3673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3675. internal SmeniRow(global::System.Data.DataRowBuilder rb) :
  3676. base(rb) {
  3677. this.tableSmeni = ((SmeniDataTable)(this.Table));
  3678. }
  3679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3681. public int id {
  3682. get {
  3683. return ((int)(this[this.tableSmeni.idColumn]));
  3684. }
  3685. set {
  3686. this[this.tableSmeni.idColumn] = value;
  3687. }
  3688. }
  3689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3691. public int Пользователь {
  3692. get {
  3693. try {
  3694. return ((int)(this[this.tableSmeni.ПользовательColumn]));
  3695. }
  3696. catch (global::System.InvalidCastException e) {
  3697. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пользователь\' в таблице \'Smeni\' равно DBNull.", e);
  3698. }
  3699. }
  3700. set {
  3701. this[this.tableSmeni.ПользовательColumn] = value;
  3702. }
  3703. }
  3704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3706. public System.DateTime Дата {
  3707. get {
  3708. try {
  3709. return ((global::System.DateTime)(this[this.tableSmeni.ДатаColumn]));
  3710. }
  3711. catch (global::System.InvalidCastException e) {
  3712. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Smeni\' равно DBNull.", e);
  3713. }
  3714. }
  3715. set {
  3716. this[this.tableSmeni.ДатаColumn] = value;
  3717. }
  3718. }
  3719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3721. public PolzovateliRow PolzovateliRow {
  3722. get {
  3723. return ((PolzovateliRow)(this.GetParentRow(this.Table.ParentRelations["FK_Smeni_Polzovateli"])));
  3724. }
  3725. set {
  3726. this.SetParentRow(value, this.Table.ParentRelations["FK_Smeni_Polzovateli"]);
  3727. }
  3728. }
  3729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3731. public bool IsПользовательNull() {
  3732. return this.IsNull(this.tableSmeni.ПользовательColumn);
  3733. }
  3734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3736. public void SetПользовательNull() {
  3737. this[this.tableSmeni.ПользовательColumn] = global::System.Convert.DBNull;
  3738. }
  3739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3741. public bool IsДатаNull() {
  3742. return this.IsNull(this.tableSmeni.ДатаColumn);
  3743. }
  3744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3746. public void SetДатаNull() {
  3747. this[this.tableSmeni.ДатаColumn] = global::System.Convert.DBNull;
  3748. }
  3749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3751. public ZakaziRow[] GetZakaziRows() {
  3752. if ((this.Table.ChildRelations["FK_Zakazi_Smeni"] == null)) {
  3753. return new ZakaziRow[0];
  3754. }
  3755. else {
  3756. return ((ZakaziRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Zakazi_Smeni"])));
  3757. }
  3758. }
  3759. }
  3760. /// <summary>
  3761. ///Represents strongly named DataRow class.
  3762. ///</summary>
  3763. public partial class StatusiPolzovateleyRow : global::System.Data.DataRow {
  3764. private StatusiPolzovateleyDataTable tableStatusiPolzovateley;
  3765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3767. internal StatusiPolzovateleyRow(global::System.Data.DataRowBuilder rb) :
  3768. base(rb) {
  3769. this.tableStatusiPolzovateley = ((StatusiPolzovateleyDataTable)(this.Table));
  3770. }
  3771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3773. public int id {
  3774. get {
  3775. return ((int)(this[this.tableStatusiPolzovateley.idColumn]));
  3776. }
  3777. set {
  3778. this[this.tableStatusiPolzovateley.idColumn] = value;
  3779. }
  3780. }
  3781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3783. public string НазваниеСтатуса {
  3784. get {
  3785. try {
  3786. return ((string)(this[this.tableStatusiPolzovateley.НазваниеСтатусаColumn]));
  3787. }
  3788. catch (global::System.InvalidCastException e) {
  3789. throw new global::System.Data.StrongTypingException("Значение для столбца \'НазваниеСтатуса\' в таблице \'StatusiPolzovateley\' равно DBNu" +
  3790. "ll.", e);
  3791. }
  3792. }
  3793. set {
  3794. this[this.tableStatusiPolzovateley.НазваниеСтатусаColumn] = value;
  3795. }
  3796. }
  3797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3799. public bool IsНазваниеСтатусаNull() {
  3800. return this.IsNull(this.tableStatusiPolzovateley.НазваниеСтатусаColumn);
  3801. }
  3802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3804. public void SetНазваниеСтатусаNull() {
  3805. this[this.tableStatusiPolzovateley.НазваниеСтатусаColumn] = global::System.Convert.DBNull;
  3806. }
  3807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3809. public PolzovateliRow[] GetPolzovateliRows() {
  3810. if ((this.Table.ChildRelations["FK_Polzovateli_StatusiPolzovateley"] == null)) {
  3811. return new PolzovateliRow[0];
  3812. }
  3813. else {
  3814. return ((PolzovateliRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Polzovateli_StatusiPolzovateley"])));
  3815. }
  3816. }
  3817. }
  3818. /// <summary>
  3819. ///Represents strongly named DataRow class.
  3820. ///</summary>
  3821. public partial class StatusiZakazaRow : global::System.Data.DataRow {
  3822. private StatusiZakazaDataTable tableStatusiZakaza;
  3823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3825. internal StatusiZakazaRow(global::System.Data.DataRowBuilder rb) :
  3826. base(rb) {
  3827. this.tableStatusiZakaza = ((StatusiZakazaDataTable)(this.Table));
  3828. }
  3829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3831. public int id {
  3832. get {
  3833. return ((int)(this[this.tableStatusiZakaza.idColumn]));
  3834. }
  3835. set {
  3836. this[this.tableStatusiZakaza.idColumn] = value;
  3837. }
  3838. }
  3839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3841. public string НазваниеСтатуса {
  3842. get {
  3843. try {
  3844. return ((string)(this[this.tableStatusiZakaza.НазваниеСтатусаColumn]));
  3845. }
  3846. catch (global::System.InvalidCastException e) {
  3847. throw new global::System.Data.StrongTypingException("Значение для столбца \'НазваниеСтатуса\' в таблице \'StatusiZakaza\' равно DBNull.", e);
  3848. }
  3849. }
  3850. set {
  3851. this[this.tableStatusiZakaza.НазваниеСтатусаColumn] = value;
  3852. }
  3853. }
  3854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3856. public bool IsНазваниеСтатусаNull() {
  3857. return this.IsNull(this.tableStatusiZakaza.НазваниеСтатусаColumn);
  3858. }
  3859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3861. public void SetНазваниеСтатусаNull() {
  3862. this[this.tableStatusiZakaza.НазваниеСтатусаColumn] = global::System.Convert.DBNull;
  3863. }
  3864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3866. public ZakaziRow[] GetZakaziRows() {
  3867. if ((this.Table.ChildRelations["FK_Zakazi_StatusZakaza"] == null)) {
  3868. return new ZakaziRow[0];
  3869. }
  3870. else {
  3871. return ((ZakaziRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Zakazi_StatusZakaza"])));
  3872. }
  3873. }
  3874. }
  3875. /// <summary>
  3876. ///Represents strongly named DataRow class.
  3877. ///</summary>
  3878. public partial class StolikiRow : global::System.Data.DataRow {
  3879. private StolikiDataTable tableStoliki;
  3880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3882. internal StolikiRow(global::System.Data.DataRowBuilder rb) :
  3883. base(rb) {
  3884. this.tableStoliki = ((StolikiDataTable)(this.Table));
  3885. }
  3886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3888. public int id {
  3889. get {
  3890. return ((int)(this[this.tableStoliki.idColumn]));
  3891. }
  3892. set {
  3893. this[this.tableStoliki.idColumn] = value;
  3894. }
  3895. }
  3896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3898. public ZakaziRow[] GetZakaziRows() {
  3899. if ((this.Table.ChildRelations["FK_Zakazi_Stoliki"] == null)) {
  3900. return new ZakaziRow[0];
  3901. }
  3902. else {
  3903. return ((ZakaziRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Zakazi_Stoliki"])));
  3904. }
  3905. }
  3906. }
  3907. /// <summary>
  3908. ///Represents strongly named DataRow class.
  3909. ///</summary>
  3910. public partial class TipiOplatiRow : global::System.Data.DataRow {
  3911. private TipiOplatiDataTable tableTipiOplati;
  3912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3914. internal TipiOplatiRow(global::System.Data.DataRowBuilder rb) :
  3915. base(rb) {
  3916. this.tableTipiOplati = ((TipiOplatiDataTable)(this.Table));
  3917. }
  3918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3920. public int id {
  3921. get {
  3922. return ((int)(this[this.tableTipiOplati.idColumn]));
  3923. }
  3924. set {
  3925. this[this.tableTipiOplati.idColumn] = value;
  3926. }
  3927. }
  3928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3930. public string Название {
  3931. get {
  3932. try {
  3933. return ((string)(this[this.tableTipiOplati.НазваниеColumn]));
  3934. }
  3935. catch (global::System.InvalidCastException e) {
  3936. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название\' в таблице \'TipiOplati\' равно DBNull.", e);
  3937. }
  3938. }
  3939. set {
  3940. this[this.tableTipiOplati.НазваниеColumn] = value;
  3941. }
  3942. }
  3943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3945. public bool IsНазваниеNull() {
  3946. return this.IsNull(this.tableTipiOplati.НазваниеColumn);
  3947. }
  3948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3950. public void SetНазваниеNull() {
  3951. this[this.tableTipiOplati.НазваниеColumn] = global::System.Convert.DBNull;
  3952. }
  3953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3955. public ZakaziRow[] GetZakaziRows() {
  3956. if ((this.Table.ChildRelations["FK_Zakazi_TipOplati"] == null)) {
  3957. return new ZakaziRow[0];
  3958. }
  3959. else {
  3960. return ((ZakaziRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Zakazi_TipOplati"])));
  3961. }
  3962. }
  3963. }
  3964. /// <summary>
  3965. ///Represents strongly named DataRow class.
  3966. ///</summary>
  3967. public partial class ZakazannieBludaRow : global::System.Data.DataRow {
  3968. private ZakazannieBludaDataTable tableZakazannieBluda;
  3969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3971. internal ZakazannieBludaRow(global::System.Data.DataRowBuilder rb) :
  3972. base(rb) {
  3973. this.tableZakazannieBluda = ((ZakazannieBludaDataTable)(this.Table));
  3974. }
  3975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3977. public int id {
  3978. get {
  3979. return ((int)(this[this.tableZakazannieBluda.idColumn]));
  3980. }
  3981. set {
  3982. this[this.tableZakazannieBluda.idColumn] = value;
  3983. }
  3984. }
  3985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3987. public int ЗаказанныеБлюда {
  3988. get {
  3989. try {
  3990. return ((int)(this[this.tableZakazannieBluda.ЗаказанныеБлюдаColumn]));
  3991. }
  3992. catch (global::System.InvalidCastException e) {
  3993. throw new global::System.Data.StrongTypingException("Значение для столбца \'ЗаказанныеБлюда\' в таблице \'ZakazannieBluda\' равно DBNull.", e);
  3994. }
  3995. }
  3996. set {
  3997. this[this.tableZakazannieBluda.ЗаказанныеБлюдаColumn] = value;
  3998. }
  3999. }
  4000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4002. public BludaRow BludaRow {
  4003. get {
  4004. return ((BludaRow)(this.GetParentRow(this.Table.ParentRelations["FK_ZakazannieBluda_Bluda"])));
  4005. }
  4006. set {
  4007. this.SetParentRow(value, this.Table.ParentRelations["FK_ZakazannieBluda_Bluda"]);
  4008. }
  4009. }
  4010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4012. public bool IsЗаказанныеБлюдаNull() {
  4013. return this.IsNull(this.tableZakazannieBluda.ЗаказанныеБлюдаColumn);
  4014. }
  4015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4017. public void SetЗаказанныеБлюдаNull() {
  4018. this[this.tableZakazannieBluda.ЗаказанныеБлюдаColumn] = global::System.Convert.DBNull;
  4019. }
  4020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4022. public ZakaziRow[] GetZakaziRows() {
  4023. if ((this.Table.ChildRelations["FK_Zakazi_ZakazannieBluda"] == null)) {
  4024. return new ZakaziRow[0];
  4025. }
  4026. else {
  4027. return ((ZakaziRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Zakazi_ZakazannieBluda"])));
  4028. }
  4029. }
  4030. }
  4031. /// <summary>
  4032. ///Represents strongly named DataRow class.
  4033. ///</summary>
  4034. public partial class ZakaziRow : global::System.Data.DataRow {
  4035. private ZakaziDataTable tableZakazi;
  4036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4038. internal ZakaziRow(global::System.Data.DataRowBuilder rb) :
  4039. base(rb) {
  4040. this.tableZakazi = ((ZakaziDataTable)(this.Table));
  4041. }
  4042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4044. public int id {
  4045. get {
  4046. return ((int)(this[this.tableZakazi.idColumn]));
  4047. }
  4048. set {
  4049. this[this.tableZakazi.idColumn] = value;
  4050. }
  4051. }
  4052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4054. public int СтатусЗаказа {
  4055. get {
  4056. try {
  4057. return ((int)(this[this.tableZakazi.СтатусЗаказаColumn]));
  4058. }
  4059. catch (global::System.InvalidCastException e) {
  4060. throw new global::System.Data.StrongTypingException("Значение для столбца \'СтатусЗаказа\' в таблице \'Zakazi\' равно DBNull.", e);
  4061. }
  4062. }
  4063. set {
  4064. this[this.tableZakazi.СтатусЗаказаColumn] = value;
  4065. }
  4066. }
  4067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4069. public System.DateTime Дата {
  4070. get {
  4071. try {
  4072. return ((global::System.DateTime)(this[this.tableZakazi.ДатаColumn]));
  4073. }
  4074. catch (global::System.InvalidCastException e) {
  4075. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Zakazi\' равно DBNull.", e);
  4076. }
  4077. }
  4078. set {
  4079. this[this.tableZakazi.ДатаColumn] = value;
  4080. }
  4081. }
  4082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4084. public int ТипОплаты {
  4085. get {
  4086. try {
  4087. return ((int)(this[this.tableZakazi.ТипОплатыColumn]));
  4088. }
  4089. catch (global::System.InvalidCastException e) {
  4090. throw new global::System.Data.StrongTypingException("Значение для столбца \'ТипОплаты\' в таблице \'Zakazi\' равно DBNull.", e);
  4091. }
  4092. }
  4093. set {
  4094. this[this.tableZakazi.ТипОплаты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 int Смена {
  4100. get {
  4101. try {
  4102. return ((int)(this[this.tableZakazi.СменаColumn]));
  4103. }
  4104. catch (global::System.InvalidCastException e) {
  4105. throw new global::System.Data.StrongTypingException("Значение для столбца \'Смена\' в таблице \'Zakazi\' равно DBNull.", e);
  4106. }
  4107. }
  4108. set {
  4109. this[this.tableZakazi.Смена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 int Столик {
  4115. get {
  4116. try {
  4117. return ((int)(this[this.tableZakazi.СтоликColumn]));
  4118. }
  4119. catch (global::System.InvalidCastException e) {
  4120. throw new global::System.Data.StrongTypingException("Значение для столбца \'Столик\' в таблице \'Zakazi\' равно DBNull.", e);
  4121. }
  4122. }
  4123. set {
  4124. this[this.tableZakazi.Столик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.tableZakazi.БлюдаColumn]));
  4133. }
  4134. catch (global::System.InvalidCastException e) {
  4135. throw new global::System.Data.StrongTypingException("Значение для столбца \'Блюда\' в таблице \'Zakazi\' равно DBNull.", e);
  4136. }
  4137. }
  4138. set {
  4139. this[this.tableZakazi.Блюда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 ЗаказанныеБлюда {
  4145. get {
  4146. try {
  4147. return ((int)(this[this.tableZakazi.ЗаказанныеБлюдаColumn]));
  4148. }
  4149. catch (global::System.InvalidCastException e) {
  4150. throw new global::System.Data.StrongTypingException("Значение для столбца \'ЗаказанныеБлюда\' в таблице \'Zakazi\' равно DBNull.", e);
  4151. }
  4152. }
  4153. set {
  4154. this[this.tableZakazi.ЗаказанныеБлюда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 SmeniRow SmeniRow {
  4160. get {
  4161. return ((SmeniRow)(this.GetParentRow(this.Table.ParentRelations["FK_Zakazi_Smeni"])));
  4162. }
  4163. set {
  4164. this.SetParentRow(value, this.Table.ParentRelations["FK_Zakazi_Smeni"]);
  4165. }
  4166. }
  4167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4169. public StatusiZakazaRow StatusiZakazaRow {
  4170. get {
  4171. return ((StatusiZakazaRow)(this.GetParentRow(this.Table.ParentRelations["FK_Zakazi_StatusZakaza"])));
  4172. }
  4173. set {
  4174. this.SetParentRow(value, this.Table.ParentRelations["FK_Zakazi_StatusZakaza"]);
  4175. }
  4176. }
  4177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4179. public StolikiRow StolikiRow {
  4180. get {
  4181. return ((StolikiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Zakazi_Stoliki"])));
  4182. }
  4183. set {
  4184. this.SetParentRow(value, this.Table.ParentRelations["FK_Zakazi_Stoliki"]);
  4185. }
  4186. }
  4187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4189. public TipiOplatiRow TipiOplatiRow {
  4190. get {
  4191. return ((TipiOplatiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Zakazi_TipOplati"])));
  4192. }
  4193. set {
  4194. this.SetParentRow(value, this.Table.ParentRelations["FK_Zakazi_TipOplati"]);
  4195. }
  4196. }
  4197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4199. public ZakazannieBludaRow ZakazannieBludaRow {
  4200. get {
  4201. return ((ZakazannieBludaRow)(this.GetParentRow(this.Table.ParentRelations["FK_Zakazi_ZakazannieBluda"])));
  4202. }
  4203. set {
  4204. this.SetParentRow(value, this.Table.ParentRelations["FK_Zakazi_ZakazannieBluda"]);
  4205. }
  4206. }
  4207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4209. public bool IsСтатусЗаказаNull() {
  4210. return this.IsNull(this.tableZakazi.СтатусЗаказаColumn);
  4211. }
  4212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4214. public void SetСтатусЗаказаNull() {
  4215. this[this.tableZakazi.СтатусЗаказаColumn] = global::System.Convert.DBNull;
  4216. }
  4217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4219. public bool IsДатаNull() {
  4220. return this.IsNull(this.tableZakazi.ДатаColumn);
  4221. }
  4222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4224. public void SetДатаNull() {
  4225. this[this.tableZakazi.ДатаColumn] = global::System.Convert.DBNull;
  4226. }
  4227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4229. public bool IsТипОплатыNull() {
  4230. return this.IsNull(this.tableZakazi.ТипОплатыColumn);
  4231. }
  4232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4234. public void SetТипОплатыNull() {
  4235. this[this.tableZakazi.ТипОплатыColumn] = global::System.Convert.DBNull;
  4236. }
  4237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4239. public bool IsСменаNull() {
  4240. return this.IsNull(this.tableZakazi.СменаColumn);
  4241. }
  4242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4244. public void SetСменаNull() {
  4245. this[this.tableZakazi.СменаColumn] = global::System.Convert.DBNull;
  4246. }
  4247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4249. public bool IsСтоликNull() {
  4250. return this.IsNull(this.tableZakazi.СтоликColumn);
  4251. }
  4252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4254. public void SetСтоликNull() {
  4255. this[this.tableZakazi.СтоликColumn] = global::System.Convert.DBNull;
  4256. }
  4257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4259. public bool IsБлюдаNull() {
  4260. return this.IsNull(this.tableZakazi.БлюдаColumn);
  4261. }
  4262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4264. public void SetБлюдаNull() {
  4265. this[this.tableZakazi.БлюдаColumn] = global::System.Convert.DBNull;
  4266. }
  4267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4269. public bool IsЗаказанныеБлюдаNull() {
  4270. return this.IsNull(this.tableZakazi.ЗаказанныеБлюдаColumn);
  4271. }
  4272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4274. public void SetЗаказанныеБлюдаNull() {
  4275. this[this.tableZakazi.ЗаказанныеБлюдаColumn] = global::System.Convert.DBNull;
  4276. }
  4277. }
  4278. /// <summary>
  4279. ///Row event argument class
  4280. ///</summary>
  4281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4282. public class BludaRowChangeEvent : global::System.EventArgs {
  4283. private BludaRow eventRow;
  4284. private global::System.Data.DataRowAction eventAction;
  4285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4287. public BludaRowChangeEvent(BludaRow row, global::System.Data.DataRowAction action) {
  4288. this.eventRow = row;
  4289. this.eventAction = action;
  4290. }
  4291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4293. public BludaRow Row {
  4294. get {
  4295. return this.eventRow;
  4296. }
  4297. }
  4298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4300. public global::System.Data.DataRowAction Action {
  4301. get {
  4302. return this.eventAction;
  4303. }
  4304. }
  4305. }
  4306. /// <summary>
  4307. ///Row event argument class
  4308. ///</summary>
  4309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4310. public class DoljnostiRowChangeEvent : global::System.EventArgs {
  4311. private DoljnostiRow eventRow;
  4312. private global::System.Data.DataRowAction eventAction;
  4313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4315. public DoljnostiRowChangeEvent(DoljnostiRow row, global::System.Data.DataRowAction action) {
  4316. this.eventRow = row;
  4317. this.eventAction = action;
  4318. }
  4319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4321. public DoljnostiRow Row {
  4322. get {
  4323. return this.eventRow;
  4324. }
  4325. }
  4326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4328. public global::System.Data.DataRowAction Action {
  4329. get {
  4330. return this.eventAction;
  4331. }
  4332. }
  4333. }
  4334. /// <summary>
  4335. ///Row event argument class
  4336. ///</summary>
  4337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4338. public class PolzovateliRowChangeEvent : global::System.EventArgs {
  4339. private PolzovateliRow eventRow;
  4340. private global::System.Data.DataRowAction eventAction;
  4341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4343. public PolzovateliRowChangeEvent(PolzovateliRow row, global::System.Data.DataRowAction action) {
  4344. this.eventRow = row;
  4345. this.eventAction = action;
  4346. }
  4347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4349. public PolzovateliRow Row {
  4350. get {
  4351. return this.eventRow;
  4352. }
  4353. }
  4354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4356. public global::System.Data.DataRowAction Action {
  4357. get {
  4358. return this.eventAction;
  4359. }
  4360. }
  4361. }
  4362. /// <summary>
  4363. ///Row event argument class
  4364. ///</summary>
  4365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4366. public class SmeniRowChangeEvent : global::System.EventArgs {
  4367. private SmeniRow eventRow;
  4368. private global::System.Data.DataRowAction eventAction;
  4369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4371. public SmeniRowChangeEvent(SmeniRow row, global::System.Data.DataRowAction action) {
  4372. this.eventRow = row;
  4373. this.eventAction = action;
  4374. }
  4375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4377. public SmeniRow Row {
  4378. get {
  4379. return this.eventRow;
  4380. }
  4381. }
  4382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4384. public global::System.Data.DataRowAction Action {
  4385. get {
  4386. return this.eventAction;
  4387. }
  4388. }
  4389. }
  4390. /// <summary>
  4391. ///Row event argument class
  4392. ///</summary>
  4393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4394. public class StatusiPolzovateleyRowChangeEvent : global::System.EventArgs {
  4395. private StatusiPolzovateleyRow eventRow;
  4396. private global::System.Data.DataRowAction eventAction;
  4397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4399. public StatusiPolzovateleyRowChangeEvent(StatusiPolzovateleyRow row, global::System.Data.DataRowAction action) {
  4400. this.eventRow = row;
  4401. this.eventAction = action;
  4402. }
  4403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4405. public StatusiPolzovateleyRow Row {
  4406. get {
  4407. return this.eventRow;
  4408. }
  4409. }
  4410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4412. public global::System.Data.DataRowAction Action {
  4413. get {
  4414. return this.eventAction;
  4415. }
  4416. }
  4417. }
  4418. /// <summary>
  4419. ///Row event argument class
  4420. ///</summary>
  4421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4422. public class StatusiZakazaRowChangeEvent : global::System.EventArgs {
  4423. private StatusiZakazaRow eventRow;
  4424. private global::System.Data.DataRowAction eventAction;
  4425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4427. public StatusiZakazaRowChangeEvent(StatusiZakazaRow row, global::System.Data.DataRowAction action) {
  4428. this.eventRow = row;
  4429. this.eventAction = action;
  4430. }
  4431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4433. public StatusiZakazaRow Row {
  4434. get {
  4435. return this.eventRow;
  4436. }
  4437. }
  4438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4440. public global::System.Data.DataRowAction Action {
  4441. get {
  4442. return this.eventAction;
  4443. }
  4444. }
  4445. }
  4446. /// <summary>
  4447. ///Row event argument class
  4448. ///</summary>
  4449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4450. public class StolikiRowChangeEvent : global::System.EventArgs {
  4451. private StolikiRow eventRow;
  4452. private global::System.Data.DataRowAction eventAction;
  4453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4455. public StolikiRowChangeEvent(StolikiRow row, global::System.Data.DataRowAction action) {
  4456. this.eventRow = row;
  4457. this.eventAction = action;
  4458. }
  4459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4461. public StolikiRow Row {
  4462. get {
  4463. return this.eventRow;
  4464. }
  4465. }
  4466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4468. public global::System.Data.DataRowAction Action {
  4469. get {
  4470. return this.eventAction;
  4471. }
  4472. }
  4473. }
  4474. /// <summary>
  4475. ///Row event argument class
  4476. ///</summary>
  4477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4478. public class TipiOplatiRowChangeEvent : global::System.EventArgs {
  4479. private TipiOplatiRow eventRow;
  4480. private global::System.Data.DataRowAction eventAction;
  4481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4483. public TipiOplatiRowChangeEvent(TipiOplatiRow row, global::System.Data.DataRowAction action) {
  4484. this.eventRow = row;
  4485. this.eventAction = action;
  4486. }
  4487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4489. public TipiOplatiRow Row {
  4490. get {
  4491. return this.eventRow;
  4492. }
  4493. }
  4494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4496. public global::System.Data.DataRowAction Action {
  4497. get {
  4498. return this.eventAction;
  4499. }
  4500. }
  4501. }
  4502. /// <summary>
  4503. ///Row event argument class
  4504. ///</summary>
  4505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4506. public class ZakazannieBludaRowChangeEvent : global::System.EventArgs {
  4507. private ZakazannieBludaRow eventRow;
  4508. private global::System.Data.DataRowAction eventAction;
  4509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4511. public ZakazannieBludaRowChangeEvent(ZakazannieBludaRow row, global::System.Data.DataRowAction action) {
  4512. this.eventRow = row;
  4513. this.eventAction = action;
  4514. }
  4515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4517. public ZakazannieBludaRow Row {
  4518. get {
  4519. return this.eventRow;
  4520. }
  4521. }
  4522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4524. public global::System.Data.DataRowAction Action {
  4525. get {
  4526. return this.eventAction;
  4527. }
  4528. }
  4529. }
  4530. /// <summary>
  4531. ///Row event argument class
  4532. ///</summary>
  4533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4534. public class ZakaziRowChangeEvent : global::System.EventArgs {
  4535. private ZakaziRow eventRow;
  4536. private global::System.Data.DataRowAction eventAction;
  4537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4539. public ZakaziRowChangeEvent(ZakaziRow row, global::System.Data.DataRowAction action) {
  4540. this.eventRow = row;
  4541. this.eventAction = action;
  4542. }
  4543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4545. public ZakaziRow Row {
  4546. get {
  4547. return this.eventRow;
  4548. }
  4549. }
  4550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4552. public global::System.Data.DataRowAction Action {
  4553. get {
  4554. return this.eventAction;
  4555. }
  4556. }
  4557. }
  4558. }
  4559. }
  4560. namespace Kafe09.Kafe09DataSetTableAdapters {
  4561. /// <summary>
  4562. ///Represents the connection and commands used to retrieve and save data.
  4563. ///</summary>
  4564. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4565. [global::System.ComponentModel.ToolboxItem(true)]
  4566. [global::System.ComponentModel.DataObjectAttribute(true)]
  4567. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4568. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4569. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4570. public partial class BludaTableAdapter : global::System.ComponentModel.Component {
  4571. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4572. private global::System.Data.SqlClient.SqlConnection _connection;
  4573. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4574. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4575. private bool _clearBeforeFill;
  4576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4578. public BludaTableAdapter() {
  4579. this.ClearBeforeFill = true;
  4580. }
  4581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4583. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4584. get {
  4585. if ((this._adapter == null)) {
  4586. this.InitAdapter();
  4587. }
  4588. return this._adapter;
  4589. }
  4590. }
  4591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4593. internal global::System.Data.SqlClient.SqlConnection Connection {
  4594. get {
  4595. if ((this._connection == null)) {
  4596. this.InitConnection();
  4597. }
  4598. return this._connection;
  4599. }
  4600. set {
  4601. this._connection = value;
  4602. if ((this.Adapter.InsertCommand != null)) {
  4603. this.Adapter.InsertCommand.Connection = value;
  4604. }
  4605. if ((this.Adapter.DeleteCommand != null)) {
  4606. this.Adapter.DeleteCommand.Connection = value;
  4607. }
  4608. if ((this.Adapter.UpdateCommand != null)) {
  4609. this.Adapter.UpdateCommand.Connection = value;
  4610. }
  4611. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4612. if ((this.CommandCollection[i] != null)) {
  4613. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4614. }
  4615. }
  4616. }
  4617. }
  4618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4620. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4621. get {
  4622. return this._transaction;
  4623. }
  4624. set {
  4625. this._transaction = value;
  4626. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4627. this.CommandCollection[i].Transaction = this._transaction;
  4628. }
  4629. if (((this.Adapter != null)
  4630. && (this.Adapter.DeleteCommand != null))) {
  4631. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4632. }
  4633. if (((this.Adapter != null)
  4634. && (this.Adapter.InsertCommand != null))) {
  4635. this.Adapter.InsertCommand.Transaction = this._transaction;
  4636. }
  4637. if (((this.Adapter != null)
  4638. && (this.Adapter.UpdateCommand != null))) {
  4639. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4640. }
  4641. }
  4642. }
  4643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4645. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4646. get {
  4647. if ((this._commandCollection == null)) {
  4648. this.InitCommandCollection();
  4649. }
  4650. return this._commandCollection;
  4651. }
  4652. }
  4653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4655. public bool ClearBeforeFill {
  4656. get {
  4657. return this._clearBeforeFill;
  4658. }
  4659. set {
  4660. this._clearBeforeFill = value;
  4661. }
  4662. }
  4663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4665. private void InitAdapter() {
  4666. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4667. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4668. tableMapping.SourceTable = "Table";
  4669. tableMapping.DataSetTable = "Bluda";
  4670. tableMapping.ColumnMappings.Add("id", "id");
  4671. tableMapping.ColumnMappings.Add("Название", "Название");
  4672. this._adapter.TableMappings.Add(tableMapping);
  4673. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4674. this._adapter.DeleteCommand.Connection = this.Connection;
  4675. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Bluda] WHERE (([id] = @Original_id) AND ((@IsNull_Название = 1" +
  4676. " AND [Название] IS NULL) OR ([Название] = @Original_Название)))";
  4677. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4678. 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, "", "", ""));
  4679. 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, "", "", ""));
  4680. 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, "", "", ""));
  4681. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4682. this._adapter.InsertCommand.Connection = this.Connection;
  4683. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Bluda] ([id], [Название]) VALUES (@id, @Название);\r\nSELECT id," +
  4684. " Название FROM Bluda WHERE (id = @id)";
  4685. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4686. 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, "", "", ""));
  4687. 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, "", "", ""));
  4688. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4689. this._adapter.UpdateCommand.Connection = this.Connection;
  4690. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Bluda] SET [id] = @id, [Название] = @Название WHERE (([id] = @Origi" +
  4691. "nal_id) AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Ori" +
  4692. "ginal_Название)));\r\nSELECT id, Название FROM Bluda WHERE (id = @id)";
  4693. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4694. 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, "", "", ""));
  4695. 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, "", "", ""));
  4696. 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, "", "", ""));
  4697. 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, "", "", ""));
  4698. 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, "", "", ""));
  4699. }
  4700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4702. private void InitConnection() {
  4703. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4704. this._connection.ConnectionString = global::Kafe09.Properties.Settings.Default.Kafe09ConnectionString;
  4705. }
  4706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4708. private void InitCommandCollection() {
  4709. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4710. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4711. this._commandCollection[0].Connection = this.Connection;
  4712. this._commandCollection[0].CommandText = "SELECT id, Название FROM dbo.Bluda";
  4713. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4714. }
  4715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4717. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4718. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4719. public virtual int Fill(Kafe09DataSet.BludaDataTable dataTable) {
  4720. this.Adapter.SelectCommand = this.CommandCollection[0];
  4721. if ((this.ClearBeforeFill == true)) {
  4722. dataTable.Clear();
  4723. }
  4724. int returnValue = this.Adapter.Fill(dataTable);
  4725. return returnValue;
  4726. }
  4727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4729. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4730. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4731. public virtual Kafe09DataSet.BludaDataTable GetData() {
  4732. this.Adapter.SelectCommand = this.CommandCollection[0];
  4733. Kafe09DataSet.BludaDataTable dataTable = new Kafe09DataSet.BludaDataTable();
  4734. this.Adapter.Fill(dataTable);
  4735. return dataTable;
  4736. }
  4737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4739. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4740. public virtual int Update(Kafe09DataSet.BludaDataTable dataTable) {
  4741. return this.Adapter.Update(dataTable);
  4742. }
  4743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4745. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4746. public virtual int Update(Kafe09DataSet dataSet) {
  4747. return this.Adapter.Update(dataSet, "Bluda");
  4748. }
  4749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4751. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4752. public virtual int Update(global::System.Data.DataRow dataRow) {
  4753. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4754. dataRow});
  4755. }
  4756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4758. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4759. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4760. return this.Adapter.Update(dataRows);
  4761. }
  4762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4764. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4765. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4766. public virtual int Delete(int Original_id, string Original_Название) {
  4767. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  4768. if ((Original_Название == null)) {
  4769. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4770. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4771. }
  4772. else {
  4773. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4774. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  4775. }
  4776. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4777. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4778. != global::System.Data.ConnectionState.Open)) {
  4779. this.Adapter.DeleteCommand.Connection.Open();
  4780. }
  4781. try {
  4782. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4783. return returnValue;
  4784. }
  4785. finally {
  4786. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4787. this.Adapter.DeleteCommand.Connection.Close();
  4788. }
  4789. }
  4790. }
  4791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4793. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4794. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4795. public virtual int Insert(int id, string Название) {
  4796. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  4797. if ((Название == null)) {
  4798. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4799. }
  4800. else {
  4801. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название));
  4802. }
  4803. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4804. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4805. != global::System.Data.ConnectionState.Open)) {
  4806. this.Adapter.InsertCommand.Connection.Open();
  4807. }
  4808. try {
  4809. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4810. return returnValue;
  4811. }
  4812. finally {
  4813. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4814. this.Adapter.InsertCommand.Connection.Close();
  4815. }
  4816. }
  4817. }
  4818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4820. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4821. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4822. public virtual int Update(int id, string Название, int Original_id, string Original_Название) {
  4823. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id));
  4824. if ((Название == null)) {
  4825. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4826. }
  4827. else {
  4828. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Название));
  4829. }
  4830. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_id));
  4831. if ((Original_Название == null)) {
  4832. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  4833. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4834. }
  4835. else {
  4836. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  4837. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Название));
  4838. }
  4839. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4840. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4841. != global::System.Data.ConnectionState.Open)) {
  4842. this.Adapter.UpdateCommand.Connection.Open();
  4843. }
  4844. try {
  4845. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4846. return returnValue;
  4847. }
  4848. finally {
  4849. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4850. this.Adapter.UpdateCommand.Connection.Close();
  4851. }
  4852. }
  4853. }
  4854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4856. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4857. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4858. public virtual int Update(string Название, int Original_id, string Original_Название) {
  4859. return this.Update(Original_id, Название, Original_id, Original_Название);
  4860. }
  4861. }
  4862. /// <summary>
  4863. ///Represents the connection and commands used to retrieve and save data.
  4864. ///</summary>
  4865. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4866. [global::System.ComponentModel.ToolboxItem(true)]
  4867. [global::System.ComponentModel.DataObjectAttribute(true)]
  4868. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4869. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4870. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4871. public partial class DoljnostiTableAdapter : global::System.ComponentModel.Component {
  4872. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4873. private global::System.Data.SqlClient.SqlConnection _connection;
  4874. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4875. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4876. private bool _clearBeforeFill;
  4877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4879. public DoljnostiTableAdapter() {
  4880. this.ClearBeforeFill = true;
  4881. }
  4882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4884. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4885. get {
  4886. if ((this._adapter == null)) {
  4887. this.InitAdapter();
  4888. }
  4889. return this._adapter;
  4890. }
  4891. }
  4892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4894. internal global::System.Data.SqlClient.SqlConnection Connection {
  4895. get {
  4896. if ((this._connection == null)) {
  4897. this.InitConnection();
  4898. }
  4899. return this._connection;
  4900. }
  4901. set {
  4902. this._connection = value;
  4903. if ((this.Adapter.InsertCommand != null)) {
  4904. this.Adapter.InsertCommand.Connection = value;
  4905. }
  4906. if ((this.Adapter.DeleteCommand != null)) {
  4907. this.Adapter.DeleteCommand.Connection = value;
  4908. }
  4909. if ((this.Adapter.UpdateCommand != null)) {
  4910. this.Adapter.UpdateCommand.Connection = value;
  4911. }
  4912. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4913. if ((this.CommandCollection[i] != null)) {
  4914. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4915. }
  4916. }
  4917. }
  4918. }
  4919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4921. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4922. get {
  4923. return this._transaction;
  4924. }
  4925. set {
  4926. this._transaction = value;
  4927. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4928. this.CommandCollection[i].Transaction = this._transaction;
  4929. }
  4930. if (((this.Adapter != null)
  4931. && (this.Adapter.DeleteCommand != null))) {
  4932. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4933. }
  4934. if (((this.Adapter != null)
  4935. && (this.Adapter.InsertCommand != null))) {
  4936. this.Adapter.InsertCommand.Transaction = this._transaction;
  4937. }
  4938. if (((this.Adapter != null)
  4939. && (this.Adapter.UpdateCommand != null))) {
  4940. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4941. }
  4942. }
  4943. }
  4944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4946. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4947. get {
  4948. if ((this._commandCollection == null)) {
  4949. this.InitCommandCollection();
  4950. }
  4951. return this._commandCollection;
  4952. }
  4953. }
  4954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4956. public bool ClearBeforeFill {
  4957. get {
  4958. return this._clearBeforeFill;
  4959. }
  4960. set {
  4961. this._clearBeforeFill = value;
  4962. }
  4963. }
  4964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4966. private void InitAdapter() {
  4967. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4968. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4969. tableMapping.SourceTable = "Table";
  4970. tableMapping.DataSetTable = "Doljnosti";
  4971. tableMapping.ColumnMappings.Add("id", "id");
  4972. tableMapping.ColumnMappings.Add("НазваниеДолжности", "НазваниеДолжности");
  4973. this._adapter.TableMappings.Add(tableMapping);
  4974. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4975. this._adapter.DeleteCommand.Connection = this.Connection;
  4976. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Doljnosti] WHERE (([id] = @Original_id) AND ((@IsNull_Название" +
  4977. "Должности = 1 AND [НазваниеДолжности] IS NULL) OR ([НазваниеДолжности] = @Origin" +
  4978. "al_НазваниеДолжности)))";
  4979. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4980. 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, "", "", ""));
  4981. 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, "", "", ""));
  4982. 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, "", "", ""));
  4983. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4984. this._adapter.InsertCommand.Connection = this.Connection;
  4985. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Doljnosti] ([НазваниеДолжности]) VALUES (@НазваниеДолжности);\r" +
  4986. "\nSELECT id, НазваниеДолжности FROM Doljnosti WHERE (id = SCOPE_IDENTITY())";
  4987. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4988. 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, "", "", ""));
  4989. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4990. this._adapter.UpdateCommand.Connection = this.Connection;
  4991. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Doljnosti] SET [НазваниеДолжности] = @НазваниеДолжности WHERE (([id] = @Original_id) AND ((@IsNull_НазваниеДолжности = 1 AND [НазваниеДолжности] IS NULL) OR ([НазваниеДолжности] = @Original_НазваниеДолжности)));
  4992. SELECT id, НазваниеДолжности FROM Doljnosti WHERE (id = @id)";
  4993. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4994. 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, "", "", ""));
  4995. 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, "", "", ""));
  4996. 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, "", "", ""));
  4997. 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, "", "", ""));
  4998. 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, "", "", ""));
  4999. }
  5000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5002. private void InitConnection() {
  5003. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5004. this._connection.ConnectionString = global::Kafe09.Properties.Settings.Default.Kafe09ConnectionString;
  5005. }
  5006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5008. private void InitCommandCollection() {
  5009. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5010. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5011. this._commandCollection[0].Connection = this.Connection;
  5012. this._commandCollection[0].CommandText = "SELECT id, НазваниеДолжности FROM dbo.Doljnosti";
  5013. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5014. }
  5015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5017. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5018. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5019. public virtual int Fill(Kafe09DataSet.DoljnostiDataTable dataTable) {
  5020. this.Adapter.SelectCommand = this.CommandCollection[0];
  5021. if ((this.ClearBeforeFill == true)) {
  5022. dataTable.Clear();
  5023. }
  5024. int returnValue = this.Adapter.Fill(dataTable);
  5025. return returnValue;
  5026. }
  5027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5029. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5030. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5031. public virtual Kafe09DataSet.DoljnostiDataTable GetData() {
  5032. this.Adapter.SelectCommand = this.CommandCollection[0];
  5033. Kafe09DataSet.DoljnostiDataTable dataTable = new Kafe09DataSet.DoljnostiDataTable();
  5034. this.Adapter.Fill(dataTable);
  5035. return dataTable;
  5036. }
  5037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5039. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5040. public virtual int Update(Kafe09DataSet.DoljnostiDataTable dataTable) {
  5041. return this.Adapter.Update(dataTable);
  5042. }
  5043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5045. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5046. public virtual int Update(Kafe09DataSet dataSet) {
  5047. return this.Adapter.Update(dataSet, "Doljnosti");
  5048. }
  5049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5051. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5052. public virtual int Update(global::System.Data.DataRow dataRow) {
  5053. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5054. dataRow});
  5055. }
  5056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5058. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5059. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5060. return this.Adapter.Update(dataRows);
  5061. }
  5062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5064. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5065. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5066. public virtual int Delete(int Original_id, string Original_НазваниеДолжности) {
  5067. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  5068. if ((Original_НазваниеДолжности == null)) {
  5069. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5070. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5071. }
  5072. else {
  5073. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5074. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_НазваниеДолжности));
  5075. }
  5076. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5077. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5078. != global::System.Data.ConnectionState.Open)) {
  5079. this.Adapter.DeleteCommand.Connection.Open();
  5080. }
  5081. try {
  5082. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5083. return returnValue;
  5084. }
  5085. finally {
  5086. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5087. this.Adapter.DeleteCommand.Connection.Close();
  5088. }
  5089. }
  5090. }
  5091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5093. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5094. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5095. public virtual int Insert(string НазваниеДолжности) {
  5096. if ((НазваниеДолжности == null)) {
  5097. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5098. }
  5099. else {
  5100. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(НазваниеДолжности));
  5101. }
  5102. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5103. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5104. != global::System.Data.ConnectionState.Open)) {
  5105. this.Adapter.InsertCommand.Connection.Open();
  5106. }
  5107. try {
  5108. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5109. return returnValue;
  5110. }
  5111. finally {
  5112. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5113. this.Adapter.InsertCommand.Connection.Close();
  5114. }
  5115. }
  5116. }
  5117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5119. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5120. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5121. public virtual int Update(string НазваниеДолжности, int Original_id, string Original_НазваниеДолжности, int id) {
  5122. if ((НазваниеДолжности == null)) {
  5123. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5124. }
  5125. else {
  5126. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(НазваниеДолжности));
  5127. }
  5128. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id));
  5129. if ((Original_НазваниеДолжности == null)) {
  5130. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  5131. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5132. }
  5133. else {
  5134. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  5135. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_НазваниеДолжности));
  5136. }
  5137. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id));
  5138. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5139. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5140. != global::System.Data.ConnectionState.Open)) {
  5141. this.Adapter.UpdateCommand.Connection.Open();
  5142. }
  5143. try {
  5144. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5145. return returnValue;
  5146. }
  5147. finally {
  5148. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5149. this.Adapter.UpdateCommand.Connection.Close();
  5150. }
  5151. }
  5152. }
  5153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5155. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5156. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5157. public virtual int Update(string НазваниеДолжности, int Original_id, string Original_НазваниеДолжности) {
  5158. return this.Update(НазваниеДолжности, Original_id, Original_НазваниеДолжности, Original_id);
  5159. }
  5160. }
  5161. /// <summary>
  5162. ///Represents the connection and commands used to retrieve and save data.
  5163. ///</summary>
  5164. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5165. [global::System.ComponentModel.ToolboxItem(true)]
  5166. [global::System.ComponentModel.DataObjectAttribute(true)]
  5167. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5168. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5169. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5170. public partial class PolzovateliTableAdapter : global::System.ComponentModel.Component {
  5171. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5172. private global::System.Data.SqlClient.SqlConnection _connection;
  5173. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5174. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5175. private bool _clearBeforeFill;
  5176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5178. public PolzovateliTableAdapter() {
  5179. this.ClearBeforeFill = true;
  5180. }
  5181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5183. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5184. get {
  5185. if ((this._adapter == null)) {
  5186. this.InitAdapter();
  5187. }
  5188. return this._adapter;
  5189. }
  5190. }
  5191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5193. internal global::System.Data.SqlClient.SqlConnection Connection {
  5194. get {
  5195. if ((this._connection == null)) {
  5196. this.InitConnection();
  5197. }
  5198. return this._connection;
  5199. }
  5200. set {
  5201. this._connection = value;
  5202. if ((this.Adapter.InsertCommand != null)) {
  5203. this.Adapter.InsertCommand.Connection = value;
  5204. }
  5205. if ((this.Adapter.DeleteCommand != null)) {
  5206. this.Adapter.DeleteCommand.Connection = value;
  5207. }
  5208. if ((this.Adapter.UpdateCommand != null)) {
  5209. this.Adapter.UpdateCommand.Connection = value;
  5210. }
  5211. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5212. if ((this.CommandCollection[i] != null)) {
  5213. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5214. }
  5215. }
  5216. }
  5217. }
  5218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5220. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5221. get {
  5222. return this._transaction;
  5223. }
  5224. set {
  5225. this._transaction = value;
  5226. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5227. this.CommandCollection[i].Transaction = this._transaction;
  5228. }
  5229. if (((this.Adapter != null)
  5230. && (this.Adapter.DeleteCommand != null))) {
  5231. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5232. }
  5233. if (((this.Adapter != null)
  5234. && (this.Adapter.InsertCommand != null))) {
  5235. this.Adapter.InsertCommand.Transaction = this._transaction;
  5236. }
  5237. if (((this.Adapter != null)
  5238. && (this.Adapter.UpdateCommand != null))) {
  5239. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5240. }
  5241. }
  5242. }
  5243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5245. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5246. get {
  5247. if ((this._commandCollection == null)) {
  5248. this.InitCommandCollection();
  5249. }
  5250. return this._commandCollection;
  5251. }
  5252. }
  5253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5255. public bool ClearBeforeFill {
  5256. get {
  5257. return this._clearBeforeFill;
  5258. }
  5259. set {
  5260. this._clearBeforeFill = value;
  5261. }
  5262. }
  5263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5265. private void InitAdapter() {
  5266. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5267. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5268. tableMapping.SourceTable = "Table";
  5269. tableMapping.DataSetTable = "Polzovateli";
  5270. tableMapping.ColumnMappings.Add("id", "id");
  5271. tableMapping.ColumnMappings.Add("Фармилия", "Фармилия");
  5272. tableMapping.ColumnMappings.Add("Имя", "Имя");
  5273. tableMapping.ColumnMappings.Add("Отчетсво", "Отчетсво");
  5274. tableMapping.ColumnMappings.Add("Doljnost", "Doljnost");
  5275. tableMapping.ColumnMappings.Add("ДатаПринятияНаРаботу", "ДатаПринятияНаРаботу");
  5276. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  5277. tableMapping.ColumnMappings.Add("Адрес", "Адрес");
  5278. tableMapping.ColumnMappings.Add("СтатусПользователя", "СтатусПользователя");
  5279. tableMapping.ColumnMappings.Add("username", "username");
  5280. tableMapping.ColumnMappings.Add("password", "password");
  5281. this._adapter.TableMappings.Add(tableMapping);
  5282. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5283. this._adapter.DeleteCommand.Connection = this.Connection;
  5284. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Polzovateli] 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_Doljnost = 1 AND [Doljnost] IS NULL) OR ([Doljnost] = @Original_Doljnost)) AND ((@IsNull_ДатаПринятияНаРаботу = 1 AND [ДатаПринятияНаРаботу] IS NULL) OR ([ДатаПринятияНаРаботу] = @Original_ДатаПринятияНаРаботу)) AND ((@IsNull_Телефон = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)) AND ((@IsNull_Адрес = 1 AND [Адрес] IS NULL) OR ([Адрес] = @Original_Адрес)) AND ((@IsNull_СтатусПользователя = 1 AND [СтатусПользователя] IS NULL) OR ([СтатусПользователя] = @Original_СтатусПользователя)) AND ((@IsNull_username = 1 AND [username] IS NULL) OR ([username] = @Original_username)) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)))";
  5285. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5286. 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, "", "", ""));
  5287. 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, "", "", ""));
  5288. 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, "", "", ""));
  5289. 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, "", "", ""));
  5290. 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, "", "", ""));
  5291. 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, "", "", ""));
  5292. 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, "", "", ""));
  5293. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Doljnost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Doljnost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5294. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Doljnost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Doljnost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5295. 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, "", "", ""));
  5296. 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, "", "", ""));
  5297. 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, "", "", ""));
  5298. 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, "", "", ""));
  5299. 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, "", "", ""));
  5300. 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, "", "", ""));
  5301. 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, "", "", ""));
  5302. 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, "", "", ""));
  5303. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_username", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5304. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5305. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5306. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5307. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5308. this._adapter.InsertCommand.Connection = this.Connection;
  5309. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Polzovateli] ([Фармилия], [Имя], [Отчетсво], [Doljnost], [ДатаПринятияНаРаботу], [Телефон], [Адрес], [СтатусПользователя], [username], [password]) VALUES (@Фармилия, @Имя, @Отчетсво, @Doljnost, @ДатаПринятияНаРаботу, @Телефон, @Адрес, @СтатусПользователя, @username, @password);
  5310. SELECT id, Фармилия, Имя, Отчетсво, Doljnost, ДатаПринятияНаРаботу, Телефон, Адрес, СтатусПользователя, username, password FROM Polzovateli WHERE (id = SCOPE_IDENTITY())";
  5311. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5312. 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, "", "", ""));
  5313. 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, "", "", ""));
  5314. 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, "", "", ""));
  5315. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Doljnost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Doljnost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5316. 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, "", "", ""));
  5317. 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, "", "", ""));
  5318. 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, "", "", ""));
  5319. 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, "", "", ""));
  5320. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5321. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5322. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5323. this._adapter.UpdateCommand.Connection = this.Connection;
  5324. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Polzovateli] SET [Фармилия] = @Фармилия, [Имя] = @Имя, [Отчетсво] = @Отчетсво, [Doljnost] = @Doljnost, [ДатаПринятияНаРаботу] = @ДатаПринятияНаРаботу, [Телефон] = @Телефон, [Адрес] = @Адрес, [СтатусПользователя] = @СтатусПользователя, [username] = @username, [password] = @password WHERE (([id] = @Original_id) AND ((@IsNull_Фармилия = 1 AND [Фармилия] IS NULL) OR ([Фармилия] = @Original_Фармилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчетсво = 1 AND [Отчетсво] IS NULL) OR ([Отчетсво] = @Original_Отчетсво)) AND ((@IsNull_Doljnost = 1 AND [Doljnost] IS NULL) OR ([Doljnost] = @Original_Doljnost)) AND ((@IsNull_ДатаПринятияНаРаботу = 1 AND [ДатаПринятияНаРаботу] IS NULL) OR ([ДатаПринятияНаРаботу] = @Original_ДатаПринятияНаРаботу)) AND ((@IsNull_Телефон = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)) AND ((@IsNull_Адрес = 1 AND [Адрес] IS NULL) OR ([Адрес] = @Original_Адрес)) AND ((@IsNull_СтатусПользователя = 1 AND [СтатусПользователя] IS NULL) OR ([СтатусПользователя] = @Original_СтатусПользователя)) AND ((@IsNull_username = 1 AND [username] IS NULL) OR ([username] = @Original_username)) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)));
  5325. SELECT id, Фармилия, Имя, Отчетсво, Doljnost, ДатаПринятияНаРаботу, Телефон, Адрес, СтатусПользователя, username, password FROM Polzovateli WHERE (id = @id)";
  5326. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5327. 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, "", "", ""));
  5328. 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, "", "", ""));
  5329. 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, "", "", ""));
  5330. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Doljnost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Doljnost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5331. 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, "", "", ""));
  5332. 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, "", "", ""));
  5333. 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, "", "", ""));
  5334. 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, "", "", ""));
  5335. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5336. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5337. 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, "", "", ""));
  5338. 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, "", "", ""));
  5339. 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, "", "", ""));
  5340. 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, "", "", ""));
  5341. 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, "", "", ""));
  5342. 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, "", "", ""));
  5343. 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, "", "", ""));
  5344. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Doljnost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Doljnost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5345. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Doljnost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Doljnost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5346. 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, "", "", ""));
  5347. 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, "", "", ""));
  5348. 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, "", "", ""));
  5349. 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, "", "", ""));
  5350. 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, "", "", ""));
  5351. 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, "", "", ""));
  5352. 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, "", "", ""));
  5353. 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, "", "", ""));
  5354. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_username", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5355. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_username", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5356. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5357. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5358. 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, "", "", ""));
  5359. }
  5360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5362. private void InitConnection() {
  5363. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5364. this._connection.ConnectionString = global::Kafe09.Properties.Settings.Default.Kafe09ConnectionString;
  5365. }
  5366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5368. private void InitCommandCollection() {
  5369. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5370. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5371. this._commandCollection[0].Connection = this.Connection;
  5372. this._commandCollection[0].CommandText = "SELECT id, Фармилия, Имя, Отчетсво, Doljnost, ДатаПринятияНаРаботу, Телефон, Адре" +
  5373. "с, СтатусПользователя, username, password FROM dbo.Polzovateli";
  5374. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5375. }
  5376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5378. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5379. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5380. public virtual int Fill(Kafe09DataSet.PolzovateliDataTable dataTable) {
  5381. this.Adapter.SelectCommand = this.CommandCollection[0];
  5382. if ((this.ClearBeforeFill == true)) {
  5383. dataTable.Clear();
  5384. }
  5385. int returnValue = this.Adapter.Fill(dataTable);
  5386. return returnValue;
  5387. }
  5388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5390. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5391. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5392. public virtual Kafe09DataSet.PolzovateliDataTable GetData() {
  5393. this.Adapter.SelectCommand = this.CommandCollection[0];
  5394. Kafe09DataSet.PolzovateliDataTable dataTable = new Kafe09DataSet.PolzovateliDataTable();
  5395. this.Adapter.Fill(dataTable);
  5396. return dataTable;
  5397. }
  5398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5400. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5401. public virtual int Update(Kafe09DataSet.PolzovateliDataTable dataTable) {
  5402. return this.Adapter.Update(dataTable);
  5403. }
  5404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5406. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5407. public virtual int Update(Kafe09DataSet dataSet) {
  5408. return this.Adapter.Update(dataSet, "Polzovateli");
  5409. }
  5410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5412. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5413. public virtual int Update(global::System.Data.DataRow dataRow) {
  5414. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5415. dataRow});
  5416. }
  5417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5419. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5420. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5421. return this.Adapter.Update(dataRows);
  5422. }
  5423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5425. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5426. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5427. public virtual int Delete(int Original_id, string Original_Фармилия, string Original_Имя, string Original_Отчетсво, global::System.Nullable<int> Original_Doljnost, global::System.Nullable<global::System.DateTime> Original_ДатаПринятияНаРаботу, string Original_Телефон, string Original_Адрес, global::System.Nullable<int> Original_СтатусПользователя, string Original_username, string Original_password) {
  5428. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  5429. if ((Original_Фармилия == null)) {
  5430. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5431. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5432. }
  5433. else {
  5434. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5435. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Фармилия));
  5436. }
  5437. if ((Original_Имя == null)) {
  5438. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5439. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5440. }
  5441. else {
  5442. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5443. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Имя));
  5444. }
  5445. if ((Original_Отчетсво == null)) {
  5446. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5447. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5448. }
  5449. else {
  5450. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5451. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Отчетсво));
  5452. }
  5453. if ((Original_Doljnost.HasValue == true)) {
  5454. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5455. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_Doljnost.Value));
  5456. }
  5457. else {
  5458. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5459. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5460. }
  5461. if ((Original_ДатаПринятияНаРаботу.HasValue == true)) {
  5462. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  5463. this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_ДатаПринятияНаРаботу.Value));
  5464. }
  5465. else {
  5466. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  5467. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5468. }
  5469. if ((Original_Телефон == null)) {
  5470. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  5471. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  5472. }
  5473. else {
  5474. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  5475. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Телефон));
  5476. }
  5477. if ((Original_Адрес == null)) {
  5478. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  5479. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  5480. }
  5481. else {
  5482. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  5483. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Адрес));
  5484. }
  5485. if ((Original_СтатусПользователя.HasValue == true)) {
  5486. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  5487. this.Adapter.DeleteCommand.Parameters[16].Value = ((int)(Original_СтатусПользователя.Value));
  5488. }
  5489. else {
  5490. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  5491. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  5492. }
  5493. if ((Original_username == null)) {
  5494. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
  5495. this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
  5496. }
  5497. else {
  5498. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
  5499. this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_username));
  5500. }
  5501. if ((Original_password == null)) {
  5502. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
  5503. this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
  5504. }
  5505. else {
  5506. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
  5507. this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_password));
  5508. }
  5509. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5510. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5511. != global::System.Data.ConnectionState.Open)) {
  5512. this.Adapter.DeleteCommand.Connection.Open();
  5513. }
  5514. try {
  5515. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5516. return returnValue;
  5517. }
  5518. finally {
  5519. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5520. this.Adapter.DeleteCommand.Connection.Close();
  5521. }
  5522. }
  5523. }
  5524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5526. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5527. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5528. public virtual int Insert(string Фармилия, string Имя, string Отчетсво, global::System.Nullable<int> Doljnost, global::System.Nullable<global::System.DateTime> ДатаПринятияНаРаботу, string Телефон, string Адрес, global::System.Nullable<int> СтатусПользователя, string username, string password) {
  5529. if ((Фармилия == null)) {
  5530. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5531. }
  5532. else {
  5533. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Фармилия));
  5534. }
  5535. if ((Имя == null)) {
  5536. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5537. }
  5538. else {
  5539. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Имя));
  5540. }
  5541. if ((Отчетсво == null)) {
  5542. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5543. }
  5544. else {
  5545. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Отчетсво));
  5546. }
  5547. if ((Doljnost.HasValue == true)) {
  5548. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Doljnost.Value));
  5549. }
  5550. else {
  5551. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5552. }
  5553. if ((ДатаПринятияНаРаботу.HasValue == true)) {
  5554. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(ДатаПринятияНаРаботу.Value));
  5555. }
  5556. else {
  5557. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5558. }
  5559. if ((Телефон == null)) {
  5560. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5561. }
  5562. else {
  5563. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Телефон));
  5564. }
  5565. if ((Адрес == null)) {
  5566. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  5567. }
  5568. else {
  5569. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Адрес));
  5570. }
  5571. if ((СтатусПользователя.HasValue == true)) {
  5572. this.Adapter.InsertCommand.Parameters[7].Value = ((int)(СтатусПользователя.Value));
  5573. }
  5574. else {
  5575. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  5576. }
  5577. if ((username == null)) {
  5578. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  5579. }
  5580. else {
  5581. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(username));
  5582. }
  5583. if ((password == null)) {
  5584. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  5585. }
  5586. else {
  5587. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(password));
  5588. }
  5589. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5590. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5591. != global::System.Data.ConnectionState.Open)) {
  5592. this.Adapter.InsertCommand.Connection.Open();
  5593. }
  5594. try {
  5595. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5596. return returnValue;
  5597. }
  5598. finally {
  5599. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5600. this.Adapter.InsertCommand.Connection.Close();
  5601. }
  5602. }
  5603. }
  5604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5606. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5607. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5608. public virtual int Update(
  5609. string Фармилия,
  5610. string Имя,
  5611. string Отчетсво,
  5612. global::System.Nullable<int> Doljnost,
  5613. global::System.Nullable<global::System.DateTime> ДатаПринятияНаРаботу,
  5614. string Телефон,
  5615. string Адрес,
  5616. global::System.Nullable<int> СтатусПользователя,
  5617. string username,
  5618. string password,
  5619. int Original_id,
  5620. string Original_Фармилия,
  5621. string Original_Имя,
  5622. string Original_Отчетсво,
  5623. global::System.Nullable<int> Original_Doljnost,
  5624. global::System.Nullable<global::System.DateTime> Original_ДатаПринятияНаРаботу,
  5625. string Original_Телефон,
  5626. string Original_Адрес,
  5627. global::System.Nullable<int> Original_СтатусПользователя,
  5628. string Original_username,
  5629. string Original_password,
  5630. int id) {
  5631. if ((Фармилия == null)) {
  5632. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5633. }
  5634. else {
  5635. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Фармилия));
  5636. }
  5637. if ((Имя == null)) {
  5638. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5639. }
  5640. else {
  5641. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Имя));
  5642. }
  5643. if ((Отчетсво == null)) {
  5644. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5645. }
  5646. else {
  5647. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Отчетсво));
  5648. }
  5649. if ((Doljnost.HasValue == true)) {
  5650. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Doljnost.Value));
  5651. }
  5652. else {
  5653. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5654. }
  5655. if ((ДатаПринятияНаРаботу.HasValue == true)) {
  5656. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(ДатаПринятияНаРаботу.Value));
  5657. }
  5658. else {
  5659. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5660. }
  5661. if ((Телефон == null)) {
  5662. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5663. }
  5664. else {
  5665. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Телефон));
  5666. }
  5667. if ((Адрес == null)) {
  5668. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5669. }
  5670. else {
  5671. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Адрес));
  5672. }
  5673. if ((СтатусПользователя.HasValue == true)) {
  5674. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(СтатусПользователя.Value));
  5675. }
  5676. else {
  5677. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5678. }
  5679. if ((username == null)) {
  5680. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  5681. }
  5682. else {
  5683. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(username));
  5684. }
  5685. if ((password == null)) {
  5686. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5687. }
  5688. else {
  5689. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(password));
  5690. }
  5691. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_id));
  5692. if ((Original_Фармилия == null)) {
  5693. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  5694. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  5695. }
  5696. else {
  5697. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  5698. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Фармилия));
  5699. }
  5700. if ((Original_Имя == null)) {
  5701. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  5702. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  5703. }
  5704. else {
  5705. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  5706. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Имя));
  5707. }
  5708. if ((Original_Отчетсво == null)) {
  5709. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  5710. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  5711. }
  5712. else {
  5713. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  5714. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Отчетсво));
  5715. }
  5716. if ((Original_Doljnost.HasValue == true)) {
  5717. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  5718. this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_Doljnost.Value));
  5719. }
  5720. else {
  5721. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  5722. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  5723. }
  5724. if ((Original_ДатаПринятияНаРаботу.HasValue == true)) {
  5725. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
  5726. this.Adapter.UpdateCommand.Parameters[20].Value = ((System.DateTime)(Original_ДатаПринятияНаРаботу.Value));
  5727. }
  5728. else {
  5729. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
  5730. this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
  5731. }
  5732. if ((Original_Телефон == null)) {
  5733. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  5734. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  5735. }
  5736. else {
  5737. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  5738. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_Телефон));
  5739. }
  5740. if ((Original_Адрес == null)) {
  5741. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
  5742. this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
  5743. }
  5744. else {
  5745. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
  5746. this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_Адрес));
  5747. }
  5748. if ((Original_СтатусПользователя.HasValue == true)) {
  5749. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
  5750. this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(Original_СтатусПользователя.Value));
  5751. }
  5752. else {
  5753. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
  5754. this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
  5755. }
  5756. if ((Original_username == null)) {
  5757. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
  5758. this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
  5759. }
  5760. else {
  5761. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
  5762. this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_username));
  5763. }
  5764. if ((Original_password == null)) {
  5765. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
  5766. this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
  5767. }
  5768. else {
  5769. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
  5770. this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_password));
  5771. }
  5772. this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(id));
  5773. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5774. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5775. != global::System.Data.ConnectionState.Open)) {
  5776. this.Adapter.UpdateCommand.Connection.Open();
  5777. }
  5778. try {
  5779. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5780. return returnValue;
  5781. }
  5782. finally {
  5783. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5784. this.Adapter.UpdateCommand.Connection.Close();
  5785. }
  5786. }
  5787. }
  5788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5790. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5791. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5792. public virtual int Update(
  5793. string Фармилия,
  5794. string Имя,
  5795. string Отчетсво,
  5796. global::System.Nullable<int> Doljnost,
  5797. global::System.Nullable<global::System.DateTime> ДатаПринятияНаРаботу,
  5798. string Телефон,
  5799. string Адрес,
  5800. global::System.Nullable<int> СтатусПользователя,
  5801. string username,
  5802. string password,
  5803. int Original_id,
  5804. string Original_Фармилия,
  5805. string Original_Имя,
  5806. string Original_Отчетсво,
  5807. global::System.Nullable<int> Original_Doljnost,
  5808. global::System.Nullable<global::System.DateTime> Original_ДатаПринятияНаРаботу,
  5809. string Original_Телефон,
  5810. string Original_Адрес,
  5811. global::System.Nullable<int> Original_СтатусПользователя,
  5812. string Original_username,
  5813. string Original_password) {
  5814. return this.Update(Фармилия, Имя, Отчетсво, Doljnost, ДатаПринятияНаРаботу, Телефон, Адрес, СтатусПользователя, username, password, Original_id, Original_Фармилия, Original_Имя, Original_Отчетсво, Original_Doljnost, Original_ДатаПринятияНаРаботу, Original_Телефон, Original_Адрес, Original_СтатусПользователя, Original_username, Original_password, Original_id);
  5815. }
  5816. }
  5817. /// <summary>
  5818. ///Represents the connection and commands used to retrieve and save data.
  5819. ///</summary>
  5820. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5821. [global::System.ComponentModel.ToolboxItem(true)]
  5822. [global::System.ComponentModel.DataObjectAttribute(true)]
  5823. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5824. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5825. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5826. public partial class SmeniTableAdapter : global::System.ComponentModel.Component {
  5827. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5828. private global::System.Data.SqlClient.SqlConnection _connection;
  5829. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5830. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5831. private bool _clearBeforeFill;
  5832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5834. public SmeniTableAdapter() {
  5835. this.ClearBeforeFill = true;
  5836. }
  5837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5839. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5840. get {
  5841. if ((this._adapter == null)) {
  5842. this.InitAdapter();
  5843. }
  5844. return this._adapter;
  5845. }
  5846. }
  5847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5849. internal global::System.Data.SqlClient.SqlConnection Connection {
  5850. get {
  5851. if ((this._connection == null)) {
  5852. this.InitConnection();
  5853. }
  5854. return this._connection;
  5855. }
  5856. set {
  5857. this._connection = value;
  5858. if ((this.Adapter.InsertCommand != null)) {
  5859. this.Adapter.InsertCommand.Connection = value;
  5860. }
  5861. if ((this.Adapter.DeleteCommand != null)) {
  5862. this.Adapter.DeleteCommand.Connection = value;
  5863. }
  5864. if ((this.Adapter.UpdateCommand != null)) {
  5865. this.Adapter.UpdateCommand.Connection = value;
  5866. }
  5867. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5868. if ((this.CommandCollection[i] != null)) {
  5869. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5870. }
  5871. }
  5872. }
  5873. }
  5874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5876. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5877. get {
  5878. return this._transaction;
  5879. }
  5880. set {
  5881. this._transaction = value;
  5882. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5883. this.CommandCollection[i].Transaction = this._transaction;
  5884. }
  5885. if (((this.Adapter != null)
  5886. && (this.Adapter.DeleteCommand != null))) {
  5887. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5888. }
  5889. if (((this.Adapter != null)
  5890. && (this.Adapter.InsertCommand != null))) {
  5891. this.Adapter.InsertCommand.Transaction = this._transaction;
  5892. }
  5893. if (((this.Adapter != null)
  5894. && (this.Adapter.UpdateCommand != null))) {
  5895. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5896. }
  5897. }
  5898. }
  5899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5901. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5902. get {
  5903. if ((this._commandCollection == null)) {
  5904. this.InitCommandCollection();
  5905. }
  5906. return this._commandCollection;
  5907. }
  5908. }
  5909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5911. public bool ClearBeforeFill {
  5912. get {
  5913. return this._clearBeforeFill;
  5914. }
  5915. set {
  5916. this._clearBeforeFill = value;
  5917. }
  5918. }
  5919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5921. private void InitAdapter() {
  5922. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5923. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5924. tableMapping.SourceTable = "Table";
  5925. tableMapping.DataSetTable = "Smeni";
  5926. tableMapping.ColumnMappings.Add("id", "id");
  5927. tableMapping.ColumnMappings.Add("Пользователь", "Пользователь");
  5928. tableMapping.ColumnMappings.Add("Дата", "Дата");
  5929. this._adapter.TableMappings.Add(tableMapping);
  5930. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5931. this._adapter.DeleteCommand.Connection = this.Connection;
  5932. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Smeni] WHERE (([id] = @Original_id) AND ((@IsNull_Пользователь" +
  5933. " = 1 AND [Пользователь] IS NULL) OR ([Пользователь] = @Original_Пользователь)) A" +
  5934. "ND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Original_Дата)))";
  5935. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5936. 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, "", "", ""));
  5937. 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, "", "", ""));
  5938. 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, "", "", ""));
  5939. 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, "", "", ""));
  5940. 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, "", "", ""));
  5941. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5942. this._adapter.InsertCommand.Connection = this.Connection;
  5943. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Smeni] ([Пользователь], [Дата]) VALUES (@Пользователь, @Дата);" +
  5944. "\r\nSELECT id, Пользователь, Дата FROM Smeni WHERE (id = SCOPE_IDENTITY())";
  5945. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5946. 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, "", "", ""));
  5947. 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, "", "", ""));
  5948. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5949. this._adapter.UpdateCommand.Connection = this.Connection;
  5950. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Smeni] SET [Пользователь] = @Пользователь, [Дата] = @Дата WHERE (([id] = @Original_id) AND ((@IsNull_Пользователь = 1 AND [Пользователь] IS NULL) OR ([Пользователь] = @Original_Пользователь)) AND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Original_Дата)));
  5951. SELECT id, Пользователь, Дата FROM Smeni WHERE (id = @id)";
  5952. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5953. 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, "", "", ""));
  5954. 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, "", "", ""));
  5955. 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, "", "", ""));
  5956. 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, "", "", ""));
  5957. 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, "", "", ""));
  5958. 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, "", "", ""));
  5959. 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, "", "", ""));
  5960. 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, "", "", ""));
  5961. }
  5962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5964. private void InitConnection() {
  5965. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5966. this._connection.ConnectionString = global::Kafe09.Properties.Settings.Default.Kafe09ConnectionString;
  5967. }
  5968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5970. private void InitCommandCollection() {
  5971. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5972. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5973. this._commandCollection[0].Connection = this.Connection;
  5974. this._commandCollection[0].CommandText = "SELECT id, Пользователь, Дата FROM dbo.Smeni";
  5975. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5976. }
  5977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5979. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5980. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5981. public virtual int Fill(Kafe09DataSet.SmeniDataTable dataTable) {
  5982. this.Adapter.SelectCommand = this.CommandCollection[0];
  5983. if ((this.ClearBeforeFill == true)) {
  5984. dataTable.Clear();
  5985. }
  5986. int returnValue = this.Adapter.Fill(dataTable);
  5987. return returnValue;
  5988. }
  5989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5991. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5992. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5993. public virtual Kafe09DataSet.SmeniDataTable GetData() {
  5994. this.Adapter.SelectCommand = this.CommandCollection[0];
  5995. Kafe09DataSet.SmeniDataTable dataTable = new Kafe09DataSet.SmeniDataTable();
  5996. this.Adapter.Fill(dataTable);
  5997. return dataTable;
  5998. }
  5999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6001. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6002. public virtual int Update(Kafe09DataSet.SmeniDataTable dataTable) {
  6003. return this.Adapter.Update(dataTable);
  6004. }
  6005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6007. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6008. public virtual int Update(Kafe09DataSet dataSet) {
  6009. return this.Adapter.Update(dataSet, "Smeni");
  6010. }
  6011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6013. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6014. public virtual int Update(global::System.Data.DataRow dataRow) {
  6015. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6016. dataRow});
  6017. }
  6018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6021. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6022. return this.Adapter.Update(dataRows);
  6023. }
  6024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6026. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6027. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6028. public virtual int Delete(int Original_id, global::System.Nullable<int> Original_Пользователь, global::System.Nullable<global::System.DateTime> Original_Дата) {
  6029. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  6030. if ((Original_Пользователь.HasValue == true)) {
  6031. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6032. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Пользователь.Value));
  6033. }
  6034. else {
  6035. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6036. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6037. }
  6038. if ((Original_Дата.HasValue == true)) {
  6039. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6040. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_Дата.Value));
  6041. }
  6042. else {
  6043. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6044. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6045. }
  6046. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6047. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6048. != global::System.Data.ConnectionState.Open)) {
  6049. this.Adapter.DeleteCommand.Connection.Open();
  6050. }
  6051. try {
  6052. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6053. return returnValue;
  6054. }
  6055. finally {
  6056. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6057. this.Adapter.DeleteCommand.Connection.Close();
  6058. }
  6059. }
  6060. }
  6061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6063. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6064. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6065. public virtual int Insert(global::System.Nullable<int> Пользователь, global::System.Nullable<global::System.DateTime> Дата) {
  6066. if ((Пользователь.HasValue == true)) {
  6067. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Пользователь.Value));
  6068. }
  6069. else {
  6070. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6071. }
  6072. if ((Дата.HasValue == true)) {
  6073. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата.Value));
  6074. }
  6075. else {
  6076. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6077. }
  6078. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6079. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6080. != global::System.Data.ConnectionState.Open)) {
  6081. this.Adapter.InsertCommand.Connection.Open();
  6082. }
  6083. try {
  6084. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6085. return returnValue;
  6086. }
  6087. finally {
  6088. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6089. this.Adapter.InsertCommand.Connection.Close();
  6090. }
  6091. }
  6092. }
  6093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6095. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6096. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6097. public virtual int Update(global::System.Nullable<int> Пользователь, global::System.Nullable<global::System.DateTime> Дата, int Original_id, global::System.Nullable<int> Original_Пользователь, global::System.Nullable<global::System.DateTime> Original_Дата, int id) {
  6098. if ((Пользователь.HasValue == true)) {
  6099. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Пользователь.Value));
  6100. }
  6101. else {
  6102. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6103. }
  6104. if ((Дата.HasValue == true)) {
  6105. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Дата.Value));
  6106. }
  6107. else {
  6108. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6109. }
  6110. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_id));
  6111. if ((Original_Пользователь.HasValue == true)) {
  6112. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  6113. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_Пользователь.Value));
  6114. }
  6115. else {
  6116. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  6117. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6118. }
  6119. if ((Original_Дата.HasValue == true)) {
  6120. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  6121. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_Дата.Value));
  6122. }
  6123. else {
  6124. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  6125. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6126. }
  6127. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(id));
  6128. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6129. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6130. != global::System.Data.ConnectionState.Open)) {
  6131. this.Adapter.UpdateCommand.Connection.Open();
  6132. }
  6133. try {
  6134. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6135. return returnValue;
  6136. }
  6137. finally {
  6138. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6139. this.Adapter.UpdateCommand.Connection.Close();
  6140. }
  6141. }
  6142. }
  6143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6145. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6146. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6147. public virtual int Update(global::System.Nullable<int> Пользователь, global::System.Nullable<global::System.DateTime> Дата, int Original_id, global::System.Nullable<int> Original_Пользователь, global::System.Nullable<global::System.DateTime> Original_Дата) {
  6148. return this.Update(Пользователь, Дата, Original_id, Original_Пользователь, Original_Дата, Original_id);
  6149. }
  6150. }
  6151. /// <summary>
  6152. ///Represents the connection and commands used to retrieve and save data.
  6153. ///</summary>
  6154. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6155. [global::System.ComponentModel.ToolboxItem(true)]
  6156. [global::System.ComponentModel.DataObjectAttribute(true)]
  6157. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6158. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6159. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6160. public partial class StatusiPolzovateleyTableAdapter : global::System.ComponentModel.Component {
  6161. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6162. private global::System.Data.SqlClient.SqlConnection _connection;
  6163. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6164. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6165. private bool _clearBeforeFill;
  6166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6168. public StatusiPolzovateleyTableAdapter() {
  6169. this.ClearBeforeFill = true;
  6170. }
  6171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6173. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6174. get {
  6175. if ((this._adapter == null)) {
  6176. this.InitAdapter();
  6177. }
  6178. return this._adapter;
  6179. }
  6180. }
  6181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6183. internal global::System.Data.SqlClient.SqlConnection Connection {
  6184. get {
  6185. if ((this._connection == null)) {
  6186. this.InitConnection();
  6187. }
  6188. return this._connection;
  6189. }
  6190. set {
  6191. this._connection = value;
  6192. if ((this.Adapter.InsertCommand != null)) {
  6193. this.Adapter.InsertCommand.Connection = value;
  6194. }
  6195. if ((this.Adapter.DeleteCommand != null)) {
  6196. this.Adapter.DeleteCommand.Connection = value;
  6197. }
  6198. if ((this.Adapter.UpdateCommand != null)) {
  6199. this.Adapter.UpdateCommand.Connection = value;
  6200. }
  6201. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6202. if ((this.CommandCollection[i] != null)) {
  6203. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6204. }
  6205. }
  6206. }
  6207. }
  6208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6210. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6211. get {
  6212. return this._transaction;
  6213. }
  6214. set {
  6215. this._transaction = value;
  6216. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6217. this.CommandCollection[i].Transaction = this._transaction;
  6218. }
  6219. if (((this.Adapter != null)
  6220. && (this.Adapter.DeleteCommand != null))) {
  6221. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6222. }
  6223. if (((this.Adapter != null)
  6224. && (this.Adapter.InsertCommand != null))) {
  6225. this.Adapter.InsertCommand.Transaction = this._transaction;
  6226. }
  6227. if (((this.Adapter != null)
  6228. && (this.Adapter.UpdateCommand != null))) {
  6229. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6230. }
  6231. }
  6232. }
  6233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6235. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6236. get {
  6237. if ((this._commandCollection == null)) {
  6238. this.InitCommandCollection();
  6239. }
  6240. return this._commandCollection;
  6241. }
  6242. }
  6243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6245. public bool ClearBeforeFill {
  6246. get {
  6247. return this._clearBeforeFill;
  6248. }
  6249. set {
  6250. this._clearBeforeFill = value;
  6251. }
  6252. }
  6253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6255. private void InitAdapter() {
  6256. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6257. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6258. tableMapping.SourceTable = "Table";
  6259. tableMapping.DataSetTable = "StatusiPolzovateley";
  6260. tableMapping.ColumnMappings.Add("id", "id");
  6261. tableMapping.ColumnMappings.Add("НазваниеСтатуса", "НазваниеСтатуса");
  6262. this._adapter.TableMappings.Add(tableMapping);
  6263. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6264. this._adapter.DeleteCommand.Connection = this.Connection;
  6265. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[StatusiPolzovateley] WHERE (([id] = @Original_id) AND ((@IsNul" +
  6266. "l_НазваниеСтатуса = 1 AND [НазваниеСтатуса] IS NULL) OR ([НазваниеСтатуса] = @Or" +
  6267. "iginal_НазваниеСтатуса)))";
  6268. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6269. 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, "", "", ""));
  6270. 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, "", "", ""));
  6271. 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, "", "", ""));
  6272. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6273. this._adapter.InsertCommand.Connection = this.Connection;
  6274. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[StatusiPolzovateley] ([НазваниеСтатуса]) VALUES (@НазваниеСтат" +
  6275. "уса);\r\nSELECT id, НазваниеСтатуса FROM StatusiPolzovateley WHERE (id = SCOPE_IDE" +
  6276. "NTITY())";
  6277. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6278. 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, "", "", ""));
  6279. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6280. this._adapter.UpdateCommand.Connection = this.Connection;
  6281. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[StatusiPolzovateley] SET [НазваниеСтатуса] = @НазваниеСтатуса WHERE (([id] = @Original_id) AND ((@IsNull_НазваниеСтатуса = 1 AND [НазваниеСтатуса] IS NULL) OR ([НазваниеСтатуса] = @Original_НазваниеСтатуса)));
  6282. SELECT id, НазваниеСтатуса FROM StatusiPolzovateley WHERE (id = @id)";
  6283. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6284. 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, "", "", ""));
  6285. 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, "", "", ""));
  6286. 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, "", "", ""));
  6287. 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, "", "", ""));
  6288. 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, "", "", ""));
  6289. }
  6290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6292. private void InitConnection() {
  6293. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6294. this._connection.ConnectionString = global::Kafe09.Properties.Settings.Default.Kafe09ConnectionString;
  6295. }
  6296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6298. private void InitCommandCollection() {
  6299. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6300. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6301. this._commandCollection[0].Connection = this.Connection;
  6302. this._commandCollection[0].CommandText = "SELECT id, НазваниеСтатуса FROM dbo.StatusiPolzovateley";
  6303. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6304. }
  6305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6307. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6308. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6309. public virtual int Fill(Kafe09DataSet.StatusiPolzovateleyDataTable dataTable) {
  6310. this.Adapter.SelectCommand = this.CommandCollection[0];
  6311. if ((this.ClearBeforeFill == true)) {
  6312. dataTable.Clear();
  6313. }
  6314. int returnValue = this.Adapter.Fill(dataTable);
  6315. return returnValue;
  6316. }
  6317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6319. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6320. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6321. public virtual Kafe09DataSet.StatusiPolzovateleyDataTable GetData() {
  6322. this.Adapter.SelectCommand = this.CommandCollection[0];
  6323. Kafe09DataSet.StatusiPolzovateleyDataTable dataTable = new Kafe09DataSet.StatusiPolzovateleyDataTable();
  6324. this.Adapter.Fill(dataTable);
  6325. return dataTable;
  6326. }
  6327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6329. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6330. public virtual int Update(Kafe09DataSet.StatusiPolzovateleyDataTable dataTable) {
  6331. return this.Adapter.Update(dataTable);
  6332. }
  6333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6335. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6336. public virtual int Update(Kafe09DataSet dataSet) {
  6337. return this.Adapter.Update(dataSet, "StatusiPolzovateley");
  6338. }
  6339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6341. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6342. public virtual int Update(global::System.Data.DataRow dataRow) {
  6343. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6344. dataRow});
  6345. }
  6346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6348. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6349. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6350. return this.Adapter.Update(dataRows);
  6351. }
  6352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6354. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6355. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6356. public virtual int Delete(int Original_id, string Original_НазваниеСтатуса) {
  6357. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  6358. if ((Original_НазваниеСтатуса == null)) {
  6359. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6360. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6361. }
  6362. else {
  6363. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6364. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_НазваниеСтатуса));
  6365. }
  6366. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6367. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6368. != global::System.Data.ConnectionState.Open)) {
  6369. this.Adapter.DeleteCommand.Connection.Open();
  6370. }
  6371. try {
  6372. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6373. return returnValue;
  6374. }
  6375. finally {
  6376. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6377. this.Adapter.DeleteCommand.Connection.Close();
  6378. }
  6379. }
  6380. }
  6381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6383. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6384. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6385. public virtual int Insert(string НазваниеСтатуса) {
  6386. if ((НазваниеСтатуса == null)) {
  6387. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6388. }
  6389. else {
  6390. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(НазваниеСтатуса));
  6391. }
  6392. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6393. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6394. != global::System.Data.ConnectionState.Open)) {
  6395. this.Adapter.InsertCommand.Connection.Open();
  6396. }
  6397. try {
  6398. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6399. return returnValue;
  6400. }
  6401. finally {
  6402. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6403. this.Adapter.InsertCommand.Connection.Close();
  6404. }
  6405. }
  6406. }
  6407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6409. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6410. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6411. public virtual int Update(string НазваниеСтатуса, int Original_id, string Original_НазваниеСтатуса, int id) {
  6412. if ((НазваниеСтатуса == null)) {
  6413. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6414. }
  6415. else {
  6416. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(НазваниеСтатуса));
  6417. }
  6418. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id));
  6419. if ((Original_НазваниеСтатуса == null)) {
  6420. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6421. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6422. }
  6423. else {
  6424. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6425. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_НазваниеСтатуса));
  6426. }
  6427. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id));
  6428. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6429. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6430. != global::System.Data.ConnectionState.Open)) {
  6431. this.Adapter.UpdateCommand.Connection.Open();
  6432. }
  6433. try {
  6434. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6435. return returnValue;
  6436. }
  6437. finally {
  6438. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6439. this.Adapter.UpdateCommand.Connection.Close();
  6440. }
  6441. }
  6442. }
  6443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6445. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6446. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6447. public virtual int Update(string НазваниеСтатуса, int Original_id, string Original_НазваниеСтатуса) {
  6448. return this.Update(НазваниеСтатуса, Original_id, Original_НазваниеСтатуса, Original_id);
  6449. }
  6450. }
  6451. /// <summary>
  6452. ///Represents the connection and commands used to retrieve and save data.
  6453. ///</summary>
  6454. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6455. [global::System.ComponentModel.ToolboxItem(true)]
  6456. [global::System.ComponentModel.DataObjectAttribute(true)]
  6457. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6458. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6459. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6460. public partial class StatusiZakazaTableAdapter : global::System.ComponentModel.Component {
  6461. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6462. private global::System.Data.SqlClient.SqlConnection _connection;
  6463. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6464. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6465. private bool _clearBeforeFill;
  6466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6468. public StatusiZakazaTableAdapter() {
  6469. this.ClearBeforeFill = true;
  6470. }
  6471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6473. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6474. get {
  6475. if ((this._adapter == null)) {
  6476. this.InitAdapter();
  6477. }
  6478. return this._adapter;
  6479. }
  6480. }
  6481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6483. internal global::System.Data.SqlClient.SqlConnection Connection {
  6484. get {
  6485. if ((this._connection == null)) {
  6486. this.InitConnection();
  6487. }
  6488. return this._connection;
  6489. }
  6490. set {
  6491. this._connection = value;
  6492. if ((this.Adapter.InsertCommand != null)) {
  6493. this.Adapter.InsertCommand.Connection = value;
  6494. }
  6495. if ((this.Adapter.DeleteCommand != null)) {
  6496. this.Adapter.DeleteCommand.Connection = value;
  6497. }
  6498. if ((this.Adapter.UpdateCommand != null)) {
  6499. this.Adapter.UpdateCommand.Connection = value;
  6500. }
  6501. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6502. if ((this.CommandCollection[i] != null)) {
  6503. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6504. }
  6505. }
  6506. }
  6507. }
  6508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6510. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6511. get {
  6512. return this._transaction;
  6513. }
  6514. set {
  6515. this._transaction = value;
  6516. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6517. this.CommandCollection[i].Transaction = this._transaction;
  6518. }
  6519. if (((this.Adapter != null)
  6520. && (this.Adapter.DeleteCommand != null))) {
  6521. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6522. }
  6523. if (((this.Adapter != null)
  6524. && (this.Adapter.InsertCommand != null))) {
  6525. this.Adapter.InsertCommand.Transaction = this._transaction;
  6526. }
  6527. if (((this.Adapter != null)
  6528. && (this.Adapter.UpdateCommand != null))) {
  6529. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6530. }
  6531. }
  6532. }
  6533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6535. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6536. get {
  6537. if ((this._commandCollection == null)) {
  6538. this.InitCommandCollection();
  6539. }
  6540. return this._commandCollection;
  6541. }
  6542. }
  6543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6545. public bool ClearBeforeFill {
  6546. get {
  6547. return this._clearBeforeFill;
  6548. }
  6549. set {
  6550. this._clearBeforeFill = value;
  6551. }
  6552. }
  6553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6555. private void InitAdapter() {
  6556. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6557. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6558. tableMapping.SourceTable = "Table";
  6559. tableMapping.DataSetTable = "StatusiZakaza";
  6560. tableMapping.ColumnMappings.Add("id", "id");
  6561. tableMapping.ColumnMappings.Add("НазваниеСтатуса", "НазваниеСтатуса");
  6562. this._adapter.TableMappings.Add(tableMapping);
  6563. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6564. this._adapter.DeleteCommand.Connection = this.Connection;
  6565. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[StatusiZakaza] WHERE (([id] = @Original_id) AND ((@IsNull_Назв" +
  6566. "аниеСтатуса = 1 AND [НазваниеСтатуса] IS NULL) OR ([НазваниеСтатуса] = @Original" +
  6567. "_НазваниеСтатуса)))";
  6568. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6569. 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, "", "", ""));
  6570. 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, "", "", ""));
  6571. 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, "", "", ""));
  6572. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6573. this._adapter.InsertCommand.Connection = this.Connection;
  6574. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[StatusiZakaza] ([НазваниеСтатуса]) VALUES (@НазваниеСтатуса);\r" +
  6575. "\nSELECT id, НазваниеСтатуса FROM StatusiZakaza WHERE (id = SCOPE_IDENTITY())";
  6576. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6577. 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, "", "", ""));
  6578. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6579. this._adapter.UpdateCommand.Connection = this.Connection;
  6580. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[StatusiZakaza] SET [НазваниеСтатуса] = @НазваниеСтатуса WHERE (([id] = @Original_id) AND ((@IsNull_НазваниеСтатуса = 1 AND [НазваниеСтатуса] IS NULL) OR ([НазваниеСтатуса] = @Original_НазваниеСтатуса)));
  6581. SELECT id, НазваниеСтатуса FROM StatusiZakaza WHERE (id = @id)";
  6582. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6583. 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, "", "", ""));
  6584. 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, "", "", ""));
  6585. 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, "", "", ""));
  6586. 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, "", "", ""));
  6587. 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, "", "", ""));
  6588. }
  6589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6591. private void InitConnection() {
  6592. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6593. this._connection.ConnectionString = global::Kafe09.Properties.Settings.Default.Kafe09ConnectionString;
  6594. }
  6595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6597. private void InitCommandCollection() {
  6598. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6599. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6600. this._commandCollection[0].Connection = this.Connection;
  6601. this._commandCollection[0].CommandText = "SELECT id, НазваниеСтатуса FROM dbo.StatusiZakaza";
  6602. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6603. }
  6604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6606. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6607. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6608. public virtual int Fill(Kafe09DataSet.StatusiZakazaDataTable dataTable) {
  6609. this.Adapter.SelectCommand = this.CommandCollection[0];
  6610. if ((this.ClearBeforeFill == true)) {
  6611. dataTable.Clear();
  6612. }
  6613. int returnValue = this.Adapter.Fill(dataTable);
  6614. return returnValue;
  6615. }
  6616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6618. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6619. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6620. public virtual Kafe09DataSet.StatusiZakazaDataTable GetData() {
  6621. this.Adapter.SelectCommand = this.CommandCollection[0];
  6622. Kafe09DataSet.StatusiZakazaDataTable dataTable = new Kafe09DataSet.StatusiZakazaDataTable();
  6623. this.Adapter.Fill(dataTable);
  6624. return dataTable;
  6625. }
  6626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6628. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6629. public virtual int Update(Kafe09DataSet.StatusiZakazaDataTable dataTable) {
  6630. return this.Adapter.Update(dataTable);
  6631. }
  6632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6635. public virtual int Update(Kafe09DataSet dataSet) {
  6636. return this.Adapter.Update(dataSet, "StatusiZakaza");
  6637. }
  6638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6640. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6641. public virtual int Update(global::System.Data.DataRow dataRow) {
  6642. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6643. dataRow});
  6644. }
  6645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6647. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6648. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6649. return this.Adapter.Update(dataRows);
  6650. }
  6651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6653. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6654. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6655. public virtual int Delete(int Original_id, string Original_НазваниеСтатуса) {
  6656. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  6657. if ((Original_НазваниеСтатуса == null)) {
  6658. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6659. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6660. }
  6661. else {
  6662. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6663. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_НазваниеСтатуса));
  6664. }
  6665. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6666. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6667. != global::System.Data.ConnectionState.Open)) {
  6668. this.Adapter.DeleteCommand.Connection.Open();
  6669. }
  6670. try {
  6671. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6672. return returnValue;
  6673. }
  6674. finally {
  6675. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6676. this.Adapter.DeleteCommand.Connection.Close();
  6677. }
  6678. }
  6679. }
  6680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6682. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6683. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6684. public virtual int Insert(string НазваниеСтатуса) {
  6685. if ((НазваниеСтатуса == null)) {
  6686. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6687. }
  6688. else {
  6689. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(НазваниеСтатуса));
  6690. }
  6691. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6692. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6693. != global::System.Data.ConnectionState.Open)) {
  6694. this.Adapter.InsertCommand.Connection.Open();
  6695. }
  6696. try {
  6697. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6698. return returnValue;
  6699. }
  6700. finally {
  6701. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6702. this.Adapter.InsertCommand.Connection.Close();
  6703. }
  6704. }
  6705. }
  6706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6708. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6709. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6710. public virtual int Update(string НазваниеСтатуса, int Original_id, string Original_НазваниеСтатуса, int id) {
  6711. if ((НазваниеСтатуса == null)) {
  6712. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6713. }
  6714. else {
  6715. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(НазваниеСтатуса));
  6716. }
  6717. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id));
  6718. if ((Original_НазваниеСтатуса == null)) {
  6719. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6720. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6721. }
  6722. else {
  6723. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6724. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_НазваниеСтатуса));
  6725. }
  6726. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id));
  6727. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6728. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6729. != global::System.Data.ConnectionState.Open)) {
  6730. this.Adapter.UpdateCommand.Connection.Open();
  6731. }
  6732. try {
  6733. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6734. return returnValue;
  6735. }
  6736. finally {
  6737. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6738. this.Adapter.UpdateCommand.Connection.Close();
  6739. }
  6740. }
  6741. }
  6742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6744. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6745. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6746. public virtual int Update(string НазваниеСтатуса, int Original_id, string Original_НазваниеСтатуса) {
  6747. return this.Update(НазваниеСтатуса, Original_id, Original_НазваниеСтатуса, Original_id);
  6748. }
  6749. }
  6750. /// <summary>
  6751. ///Represents the connection and commands used to retrieve and save data.
  6752. ///</summary>
  6753. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6754. [global::System.ComponentModel.ToolboxItem(true)]
  6755. [global::System.ComponentModel.DataObjectAttribute(true)]
  6756. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6757. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6758. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6759. public partial class StolikiTableAdapter : global::System.ComponentModel.Component {
  6760. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6761. private global::System.Data.SqlClient.SqlConnection _connection;
  6762. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6763. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6764. private bool _clearBeforeFill;
  6765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6767. public StolikiTableAdapter() {
  6768. this.ClearBeforeFill = true;
  6769. }
  6770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6772. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6773. get {
  6774. if ((this._adapter == null)) {
  6775. this.InitAdapter();
  6776. }
  6777. return this._adapter;
  6778. }
  6779. }
  6780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6782. internal global::System.Data.SqlClient.SqlConnection Connection {
  6783. get {
  6784. if ((this._connection == null)) {
  6785. this.InitConnection();
  6786. }
  6787. return this._connection;
  6788. }
  6789. set {
  6790. this._connection = value;
  6791. if ((this.Adapter.InsertCommand != null)) {
  6792. this.Adapter.InsertCommand.Connection = value;
  6793. }
  6794. if ((this.Adapter.DeleteCommand != null)) {
  6795. this.Adapter.DeleteCommand.Connection = value;
  6796. }
  6797. if ((this.Adapter.UpdateCommand != null)) {
  6798. this.Adapter.UpdateCommand.Connection = value;
  6799. }
  6800. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6801. if ((this.CommandCollection[i] != null)) {
  6802. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6803. }
  6804. }
  6805. }
  6806. }
  6807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6809. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6810. get {
  6811. return this._transaction;
  6812. }
  6813. set {
  6814. this._transaction = value;
  6815. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6816. this.CommandCollection[i].Transaction = this._transaction;
  6817. }
  6818. if (((this.Adapter != null)
  6819. && (this.Adapter.DeleteCommand != null))) {
  6820. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6821. }
  6822. if (((this.Adapter != null)
  6823. && (this.Adapter.InsertCommand != null))) {
  6824. this.Adapter.InsertCommand.Transaction = this._transaction;
  6825. }
  6826. if (((this.Adapter != null)
  6827. && (this.Adapter.UpdateCommand != null))) {
  6828. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6829. }
  6830. }
  6831. }
  6832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6834. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6835. get {
  6836. if ((this._commandCollection == null)) {
  6837. this.InitCommandCollection();
  6838. }
  6839. return this._commandCollection;
  6840. }
  6841. }
  6842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6844. public bool ClearBeforeFill {
  6845. get {
  6846. return this._clearBeforeFill;
  6847. }
  6848. set {
  6849. this._clearBeforeFill = value;
  6850. }
  6851. }
  6852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6854. private void InitAdapter() {
  6855. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6856. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6857. tableMapping.SourceTable = "Table";
  6858. tableMapping.DataSetTable = "Stoliki";
  6859. tableMapping.ColumnMappings.Add("id", "id");
  6860. this._adapter.TableMappings.Add(tableMapping);
  6861. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6862. this._adapter.DeleteCommand.Connection = this.Connection;
  6863. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Stoliki] WHERE (([id] = @Original_id))";
  6864. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6865. 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, "", "", ""));
  6866. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6867. this._adapter.InsertCommand.Connection = this.Connection;
  6868. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Stoliki] ([id]) VALUES (@id);\r\nSELECT id FROM Stoliki WHERE (i" +
  6869. "d = @id)";
  6870. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6871. 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, "", "", ""));
  6872. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6873. this._adapter.UpdateCommand.Connection = this.Connection;
  6874. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Stoliki] SET [id] = @id WHERE (([id] = @Original_id));\r\nSELECT id F" +
  6875. "ROM Stoliki WHERE (id = @id)";
  6876. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6877. 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, "", "", ""));
  6878. 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, "", "", ""));
  6879. }
  6880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6882. private void InitConnection() {
  6883. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6884. this._connection.ConnectionString = global::Kafe09.Properties.Settings.Default.Kafe09ConnectionString;
  6885. }
  6886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6888. private void InitCommandCollection() {
  6889. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6890. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6891. this._commandCollection[0].Connection = this.Connection;
  6892. this._commandCollection[0].CommandText = "SELECT id FROM dbo.Stoliki";
  6893. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6894. }
  6895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6897. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6898. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6899. public virtual int Fill(Kafe09DataSet.StolikiDataTable dataTable) {
  6900. this.Adapter.SelectCommand = this.CommandCollection[0];
  6901. if ((this.ClearBeforeFill == true)) {
  6902. dataTable.Clear();
  6903. }
  6904. int returnValue = this.Adapter.Fill(dataTable);
  6905. return returnValue;
  6906. }
  6907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6909. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6910. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6911. public virtual Kafe09DataSet.StolikiDataTable GetData() {
  6912. this.Adapter.SelectCommand = this.CommandCollection[0];
  6913. Kafe09DataSet.StolikiDataTable dataTable = new Kafe09DataSet.StolikiDataTable();
  6914. this.Adapter.Fill(dataTable);
  6915. return dataTable;
  6916. }
  6917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6919. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6920. public virtual int Update(Kafe09DataSet.StolikiDataTable dataTable) {
  6921. return this.Adapter.Update(dataTable);
  6922. }
  6923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6925. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6926. public virtual int Update(Kafe09DataSet dataSet) {
  6927. return this.Adapter.Update(dataSet, "Stoliki");
  6928. }
  6929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6931. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6932. public virtual int Update(global::System.Data.DataRow dataRow) {
  6933. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6934. dataRow});
  6935. }
  6936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6938. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6939. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6940. return this.Adapter.Update(dataRows);
  6941. }
  6942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6944. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6945. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6946. public virtual int Delete(int Original_id) {
  6947. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  6948. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6949. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6950. != global::System.Data.ConnectionState.Open)) {
  6951. this.Adapter.DeleteCommand.Connection.Open();
  6952. }
  6953. try {
  6954. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6955. return returnValue;
  6956. }
  6957. finally {
  6958. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6959. this.Adapter.DeleteCommand.Connection.Close();
  6960. }
  6961. }
  6962. }
  6963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6965. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6966. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6967. public virtual int Insert(int id) {
  6968. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  6969. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6970. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6971. != global::System.Data.ConnectionState.Open)) {
  6972. this.Adapter.InsertCommand.Connection.Open();
  6973. }
  6974. try {
  6975. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6976. return returnValue;
  6977. }
  6978. finally {
  6979. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6980. this.Adapter.InsertCommand.Connection.Close();
  6981. }
  6982. }
  6983. }
  6984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6986. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6987. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6988. public virtual int Update(int id, int Original_id) {
  6989. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id));
  6990. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id));
  6991. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6992. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6993. != global::System.Data.ConnectionState.Open)) {
  6994. this.Adapter.UpdateCommand.Connection.Open();
  6995. }
  6996. try {
  6997. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6998. return returnValue;
  6999. }
  7000. finally {
  7001. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7002. this.Adapter.UpdateCommand.Connection.Close();
  7003. }
  7004. }
  7005. }
  7006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7008. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7009. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7010. public virtual int Update(int Original_id) {
  7011. return this.Update(Original_id, Original_id);
  7012. }
  7013. }
  7014. /// <summary>
  7015. ///Represents the connection and commands used to retrieve and save data.
  7016. ///</summary>
  7017. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7018. [global::System.ComponentModel.ToolboxItem(true)]
  7019. [global::System.ComponentModel.DataObjectAttribute(true)]
  7020. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7021. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7022. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7023. public partial class TipiOplatiTableAdapter : global::System.ComponentModel.Component {
  7024. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7025. private global::System.Data.SqlClient.SqlConnection _connection;
  7026. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7027. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7028. private bool _clearBeforeFill;
  7029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7031. public TipiOplatiTableAdapter() {
  7032. this.ClearBeforeFill = true;
  7033. }
  7034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7036. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7037. get {
  7038. if ((this._adapter == null)) {
  7039. this.InitAdapter();
  7040. }
  7041. return this._adapter;
  7042. }
  7043. }
  7044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7046. internal global::System.Data.SqlClient.SqlConnection Connection {
  7047. get {
  7048. if ((this._connection == null)) {
  7049. this.InitConnection();
  7050. }
  7051. return this._connection;
  7052. }
  7053. set {
  7054. this._connection = value;
  7055. if ((this.Adapter.InsertCommand != null)) {
  7056. this.Adapter.InsertCommand.Connection = value;
  7057. }
  7058. if ((this.Adapter.DeleteCommand != null)) {
  7059. this.Adapter.DeleteCommand.Connection = value;
  7060. }
  7061. if ((this.Adapter.UpdateCommand != null)) {
  7062. this.Adapter.UpdateCommand.Connection = value;
  7063. }
  7064. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7065. if ((this.CommandCollection[i] != null)) {
  7066. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7067. }
  7068. }
  7069. }
  7070. }
  7071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7073. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7074. get {
  7075. return this._transaction;
  7076. }
  7077. set {
  7078. this._transaction = value;
  7079. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7080. this.CommandCollection[i].Transaction = this._transaction;
  7081. }
  7082. if (((this.Adapter != null)
  7083. && (this.Adapter.DeleteCommand != null))) {
  7084. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7085. }
  7086. if (((this.Adapter != null)
  7087. && (this.Adapter.InsertCommand != null))) {
  7088. this.Adapter.InsertCommand.Transaction = this._transaction;
  7089. }
  7090. if (((this.Adapter != null)
  7091. && (this.Adapter.UpdateCommand != null))) {
  7092. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7093. }
  7094. }
  7095. }
  7096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7098. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7099. get {
  7100. if ((this._commandCollection == null)) {
  7101. this.InitCommandCollection();
  7102. }
  7103. return this._commandCollection;
  7104. }
  7105. }
  7106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7108. public bool ClearBeforeFill {
  7109. get {
  7110. return this._clearBeforeFill;
  7111. }
  7112. set {
  7113. this._clearBeforeFill = value;
  7114. }
  7115. }
  7116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7118. private void InitAdapter() {
  7119. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7120. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7121. tableMapping.SourceTable = "Table";
  7122. tableMapping.DataSetTable = "TipiOplati";
  7123. tableMapping.ColumnMappings.Add("id", "id");
  7124. tableMapping.ColumnMappings.Add("Название", "Название");
  7125. this._adapter.TableMappings.Add(tableMapping);
  7126. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7127. this._adapter.DeleteCommand.Connection = this.Connection;
  7128. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TipiOplati] WHERE (([id] = @Original_id) AND ((@IsNull_Названи" +
  7129. "е = 1 AND [Название] IS NULL) OR ([Название] = @Original_Название)))";
  7130. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7131. 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, "", "", ""));
  7132. 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, "", "", ""));
  7133. 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, "", "", ""));
  7134. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7135. this._adapter.InsertCommand.Connection = this.Connection;
  7136. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TipiOplati] ([Название]) VALUES (@Название);\r\nSELECT id, Назва" +
  7137. "ние FROM TipiOplati WHERE (id = SCOPE_IDENTITY())";
  7138. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7139. 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, "", "", ""));
  7140. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7141. this._adapter.UpdateCommand.Connection = this.Connection;
  7142. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TipiOplati] SET [Название] = @Название WHERE (([id] = @Original_id)" +
  7143. " AND ((@IsNull_Название = 1 AND [Название] IS NULL) OR ([Название] = @Original_Н" +
  7144. "азвание)));\r\nSELECT id, Название FROM TipiOplati WHERE (id = @id)";
  7145. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7146. 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, "", "", ""));
  7147. 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, "", "", ""));
  7148. 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, "", "", ""));
  7149. 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, "", "", ""));
  7150. 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, "", "", ""));
  7151. }
  7152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7154. private void InitConnection() {
  7155. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7156. this._connection.ConnectionString = global::Kafe09.Properties.Settings.Default.Kafe09ConnectionString;
  7157. }
  7158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7160. private void InitCommandCollection() {
  7161. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7162. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7163. this._commandCollection[0].Connection = this.Connection;
  7164. this._commandCollection[0].CommandText = "SELECT id, Название FROM dbo.TipiOplati";
  7165. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7166. }
  7167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7169. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7170. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7171. public virtual int Fill(Kafe09DataSet.TipiOplatiDataTable dataTable) {
  7172. this.Adapter.SelectCommand = this.CommandCollection[0];
  7173. if ((this.ClearBeforeFill == true)) {
  7174. dataTable.Clear();
  7175. }
  7176. int returnValue = this.Adapter.Fill(dataTable);
  7177. return returnValue;
  7178. }
  7179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7181. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7182. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7183. public virtual Kafe09DataSet.TipiOplatiDataTable GetData() {
  7184. this.Adapter.SelectCommand = this.CommandCollection[0];
  7185. Kafe09DataSet.TipiOplatiDataTable dataTable = new Kafe09DataSet.TipiOplatiDataTable();
  7186. this.Adapter.Fill(dataTable);
  7187. return dataTable;
  7188. }
  7189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7191. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7192. public virtual int Update(Kafe09DataSet.TipiOplatiDataTable dataTable) {
  7193. return this.Adapter.Update(dataTable);
  7194. }
  7195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7197. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7198. public virtual int Update(Kafe09DataSet dataSet) {
  7199. return this.Adapter.Update(dataSet, "TipiOplati");
  7200. }
  7201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7203. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7204. public virtual int Update(global::System.Data.DataRow dataRow) {
  7205. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7206. dataRow});
  7207. }
  7208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7210. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7211. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7212. return this.Adapter.Update(dataRows);
  7213. }
  7214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7216. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7217. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7218. public virtual int Delete(int Original_id, string Original_Название) {
  7219. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  7220. if ((Original_Название == null)) {
  7221. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7222. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7223. }
  7224. else {
  7225. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7226. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название));
  7227. }
  7228. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7229. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7230. != global::System.Data.ConnectionState.Open)) {
  7231. this.Adapter.DeleteCommand.Connection.Open();
  7232. }
  7233. try {
  7234. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7235. return returnValue;
  7236. }
  7237. finally {
  7238. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7239. this.Adapter.DeleteCommand.Connection.Close();
  7240. }
  7241. }
  7242. }
  7243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7245. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7246. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7247. public virtual int Insert(string Название) {
  7248. if ((Название == null)) {
  7249. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7250. }
  7251. else {
  7252. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  7253. }
  7254. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7255. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7256. != global::System.Data.ConnectionState.Open)) {
  7257. this.Adapter.InsertCommand.Connection.Open();
  7258. }
  7259. try {
  7260. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7261. return returnValue;
  7262. }
  7263. finally {
  7264. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7265. this.Adapter.InsertCommand.Connection.Close();
  7266. }
  7267. }
  7268. }
  7269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7271. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7272. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7273. public virtual int Update(string Название, int Original_id, string Original_Название, int id) {
  7274. if ((Название == null)) {
  7275. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7276. }
  7277. else {
  7278. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  7279. }
  7280. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id));
  7281. if ((Original_Название == null)) {
  7282. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  7283. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7284. }
  7285. else {
  7286. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  7287. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Название));
  7288. }
  7289. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id));
  7290. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7291. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7292. != global::System.Data.ConnectionState.Open)) {
  7293. this.Adapter.UpdateCommand.Connection.Open();
  7294. }
  7295. try {
  7296. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7297. return returnValue;
  7298. }
  7299. finally {
  7300. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7301. this.Adapter.UpdateCommand.Connection.Close();
  7302. }
  7303. }
  7304. }
  7305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7307. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7308. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7309. public virtual int Update(string Название, int Original_id, string Original_Название) {
  7310. return this.Update(Название, Original_id, Original_Название, Original_id);
  7311. }
  7312. }
  7313. /// <summary>
  7314. ///Represents the connection and commands used to retrieve and save data.
  7315. ///</summary>
  7316. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7317. [global::System.ComponentModel.ToolboxItem(true)]
  7318. [global::System.ComponentModel.DataObjectAttribute(true)]
  7319. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7320. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7321. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7322. public partial class ZakazannieBludaTableAdapter : global::System.ComponentModel.Component {
  7323. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7324. private global::System.Data.SqlClient.SqlConnection _connection;
  7325. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7326. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7327. private bool _clearBeforeFill;
  7328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7330. public ZakazannieBludaTableAdapter() {
  7331. this.ClearBeforeFill = true;
  7332. }
  7333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7335. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7336. get {
  7337. if ((this._adapter == null)) {
  7338. this.InitAdapter();
  7339. }
  7340. return this._adapter;
  7341. }
  7342. }
  7343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7345. internal global::System.Data.SqlClient.SqlConnection Connection {
  7346. get {
  7347. if ((this._connection == null)) {
  7348. this.InitConnection();
  7349. }
  7350. return this._connection;
  7351. }
  7352. set {
  7353. this._connection = value;
  7354. if ((this.Adapter.InsertCommand != null)) {
  7355. this.Adapter.InsertCommand.Connection = value;
  7356. }
  7357. if ((this.Adapter.DeleteCommand != null)) {
  7358. this.Adapter.DeleteCommand.Connection = value;
  7359. }
  7360. if ((this.Adapter.UpdateCommand != null)) {
  7361. this.Adapter.UpdateCommand.Connection = value;
  7362. }
  7363. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7364. if ((this.CommandCollection[i] != null)) {
  7365. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7366. }
  7367. }
  7368. }
  7369. }
  7370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7372. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7373. get {
  7374. return this._transaction;
  7375. }
  7376. set {
  7377. this._transaction = value;
  7378. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7379. this.CommandCollection[i].Transaction = this._transaction;
  7380. }
  7381. if (((this.Adapter != null)
  7382. && (this.Adapter.DeleteCommand != null))) {
  7383. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7384. }
  7385. if (((this.Adapter != null)
  7386. && (this.Adapter.InsertCommand != null))) {
  7387. this.Adapter.InsertCommand.Transaction = this._transaction;
  7388. }
  7389. if (((this.Adapter != null)
  7390. && (this.Adapter.UpdateCommand != null))) {
  7391. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7392. }
  7393. }
  7394. }
  7395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7397. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7398. get {
  7399. if ((this._commandCollection == null)) {
  7400. this.InitCommandCollection();
  7401. }
  7402. return this._commandCollection;
  7403. }
  7404. }
  7405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7407. public bool ClearBeforeFill {
  7408. get {
  7409. return this._clearBeforeFill;
  7410. }
  7411. set {
  7412. this._clearBeforeFill = value;
  7413. }
  7414. }
  7415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7417. private void InitAdapter() {
  7418. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7419. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7420. tableMapping.SourceTable = "Table";
  7421. tableMapping.DataSetTable = "ZakazannieBluda";
  7422. tableMapping.ColumnMappings.Add("id", "id");
  7423. tableMapping.ColumnMappings.Add("ЗаказанныеБлюда", "ЗаказанныеБлюда");
  7424. this._adapter.TableMappings.Add(tableMapping);
  7425. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7426. this._adapter.DeleteCommand.Connection = this.Connection;
  7427. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ZakazannieBluda] WHERE (([id] = @Original_id) AND ((@IsNull_За" +
  7428. "казанныеБлюда = 1 AND [ЗаказанныеБлюда] IS NULL) OR ([ЗаказанныеБлюда] = @Origin" +
  7429. "al_ЗаказанныеБлюда)))";
  7430. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7431. 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, "", "", ""));
  7432. 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, "", "", ""));
  7433. 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, "", "", ""));
  7434. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7435. this._adapter.InsertCommand.Connection = this.Connection;
  7436. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ZakazannieBluda] ([ЗаказанныеБлюда]) VALUES (@ЗаказанныеБлюда)" +
  7437. ";\r\nSELECT id, ЗаказанныеБлюда FROM ZakazannieBluda WHERE (id = SCOPE_IDENTITY())" +
  7438. "";
  7439. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7440. 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, "", "", ""));
  7441. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7442. this._adapter.UpdateCommand.Connection = this.Connection;
  7443. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ZakazannieBluda] SET [ЗаказанныеБлюда] = @ЗаказанныеБлюда WHERE (([id] = @Original_id) AND ((@IsNull_ЗаказанныеБлюда = 1 AND [ЗаказанныеБлюда] IS NULL) OR ([ЗаказанныеБлюда] = @Original_ЗаказанныеБлюда)));
  7444. SELECT id, ЗаказанныеБлюда FROM ZakazannieBluda WHERE (id = @id)";
  7445. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7446. 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, "", "", ""));
  7447. 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, "", "", ""));
  7448. 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, "", "", ""));
  7449. 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, "", "", ""));
  7450. 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, "", "", ""));
  7451. }
  7452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7454. private void InitConnection() {
  7455. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7456. this._connection.ConnectionString = global::Kafe09.Properties.Settings.Default.Kafe09ConnectionString;
  7457. }
  7458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7460. private void InitCommandCollection() {
  7461. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7462. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7463. this._commandCollection[0].Connection = this.Connection;
  7464. this._commandCollection[0].CommandText = "SELECT id, ЗаказанныеБлюда FROM dbo.ZakazannieBluda";
  7465. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7466. }
  7467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7469. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7470. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7471. public virtual int Fill(Kafe09DataSet.ZakazannieBludaDataTable dataTable) {
  7472. this.Adapter.SelectCommand = this.CommandCollection[0];
  7473. if ((this.ClearBeforeFill == true)) {
  7474. dataTable.Clear();
  7475. }
  7476. int returnValue = this.Adapter.Fill(dataTable);
  7477. return returnValue;
  7478. }
  7479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7481. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7482. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7483. public virtual Kafe09DataSet.ZakazannieBludaDataTable GetData() {
  7484. this.Adapter.SelectCommand = this.CommandCollection[0];
  7485. Kafe09DataSet.ZakazannieBludaDataTable dataTable = new Kafe09DataSet.ZakazannieBludaDataTable();
  7486. this.Adapter.Fill(dataTable);
  7487. return dataTable;
  7488. }
  7489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7491. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7492. public virtual int Update(Kafe09DataSet.ZakazannieBludaDataTable dataTable) {
  7493. return this.Adapter.Update(dataTable);
  7494. }
  7495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7497. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7498. public virtual int Update(Kafe09DataSet dataSet) {
  7499. return this.Adapter.Update(dataSet, "ZakazannieBluda");
  7500. }
  7501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7503. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7504. public virtual int Update(global::System.Data.DataRow dataRow) {
  7505. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7506. dataRow});
  7507. }
  7508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7510. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7511. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7512. return this.Adapter.Update(dataRows);
  7513. }
  7514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7516. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7517. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7518. public virtual int Delete(int Original_id, global::System.Nullable<int> Original_ЗаказанныеБлюда) {
  7519. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  7520. if ((Original_ЗаказанныеБлюда.HasValue == true)) {
  7521. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7522. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ЗаказанныеБлюда.Value));
  7523. }
  7524. else {
  7525. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7526. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7527. }
  7528. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7529. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7530. != global::System.Data.ConnectionState.Open)) {
  7531. this.Adapter.DeleteCommand.Connection.Open();
  7532. }
  7533. try {
  7534. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7535. return returnValue;
  7536. }
  7537. finally {
  7538. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7539. this.Adapter.DeleteCommand.Connection.Close();
  7540. }
  7541. }
  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.Insert, true)]
  7547. public virtual int Insert(global::System.Nullable<int> ЗаказанныеБлюда) {
  7548. if ((ЗаказанныеБлюда.HasValue == true)) {
  7549. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ЗаказанныеБлюда.Value));
  7550. }
  7551. else {
  7552. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7553. }
  7554. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7555. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7556. != global::System.Data.ConnectionState.Open)) {
  7557. this.Adapter.InsertCommand.Connection.Open();
  7558. }
  7559. try {
  7560. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7561. return returnValue;
  7562. }
  7563. finally {
  7564. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7565. this.Adapter.InsertCommand.Connection.Close();
  7566. }
  7567. }
  7568. }
  7569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7571. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7572. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7573. public virtual int Update(global::System.Nullable<int> ЗаказанныеБлюда, int Original_id, global::System.Nullable<int> Original_ЗаказанныеБлюда, int id) {
  7574. if ((ЗаказанныеБлюда.HasValue == true)) {
  7575. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ЗаказанныеБлюда.Value));
  7576. }
  7577. else {
  7578. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7579. }
  7580. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id));
  7581. if ((Original_ЗаказанныеБлюда.HasValue == true)) {
  7582. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  7583. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ЗаказанныеБлюда.Value));
  7584. }
  7585. else {
  7586. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  7587. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7588. }
  7589. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id));
  7590. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7591. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7592. != global::System.Data.ConnectionState.Open)) {
  7593. this.Adapter.UpdateCommand.Connection.Open();
  7594. }
  7595. try {
  7596. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7597. return returnValue;
  7598. }
  7599. finally {
  7600. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7601. this.Adapter.UpdateCommand.Connection.Close();
  7602. }
  7603. }
  7604. }
  7605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7607. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7608. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7609. public virtual int Update(global::System.Nullable<int> ЗаказанныеБлюда, int Original_id, global::System.Nullable<int> Original_ЗаказанныеБлюда) {
  7610. return this.Update(ЗаказанныеБлюда, Original_id, Original_ЗаказанныеБлюда, Original_id);
  7611. }
  7612. }
  7613. /// <summary>
  7614. ///Represents the connection and commands used to retrieve and save data.
  7615. ///</summary>
  7616. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7617. [global::System.ComponentModel.ToolboxItem(true)]
  7618. [global::System.ComponentModel.DataObjectAttribute(true)]
  7619. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7620. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7621. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7622. public partial class ZakaziTableAdapter : global::System.ComponentModel.Component {
  7623. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7624. private global::System.Data.SqlClient.SqlConnection _connection;
  7625. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7626. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7627. private bool _clearBeforeFill;
  7628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7630. public ZakaziTableAdapter() {
  7631. this.ClearBeforeFill = true;
  7632. }
  7633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7635. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7636. get {
  7637. if ((this._adapter == null)) {
  7638. this.InitAdapter();
  7639. }
  7640. return this._adapter;
  7641. }
  7642. }
  7643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7645. internal global::System.Data.SqlClient.SqlConnection Connection {
  7646. get {
  7647. if ((this._connection == null)) {
  7648. this.InitConnection();
  7649. }
  7650. return this._connection;
  7651. }
  7652. set {
  7653. this._connection = value;
  7654. if ((this.Adapter.InsertCommand != null)) {
  7655. this.Adapter.InsertCommand.Connection = value;
  7656. }
  7657. if ((this.Adapter.DeleteCommand != null)) {
  7658. this.Adapter.DeleteCommand.Connection = value;
  7659. }
  7660. if ((this.Adapter.UpdateCommand != null)) {
  7661. this.Adapter.UpdateCommand.Connection = value;
  7662. }
  7663. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7664. if ((this.CommandCollection[i] != null)) {
  7665. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7666. }
  7667. }
  7668. }
  7669. }
  7670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7672. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7673. get {
  7674. return this._transaction;
  7675. }
  7676. set {
  7677. this._transaction = value;
  7678. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7679. this.CommandCollection[i].Transaction = this._transaction;
  7680. }
  7681. if (((this.Adapter != null)
  7682. && (this.Adapter.DeleteCommand != null))) {
  7683. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7684. }
  7685. if (((this.Adapter != null)
  7686. && (this.Adapter.InsertCommand != null))) {
  7687. this.Adapter.InsertCommand.Transaction = this._transaction;
  7688. }
  7689. if (((this.Adapter != null)
  7690. && (this.Adapter.UpdateCommand != null))) {
  7691. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7692. }
  7693. }
  7694. }
  7695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7697. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7698. get {
  7699. if ((this._commandCollection == null)) {
  7700. this.InitCommandCollection();
  7701. }
  7702. return this._commandCollection;
  7703. }
  7704. }
  7705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7707. public bool ClearBeforeFill {
  7708. get {
  7709. return this._clearBeforeFill;
  7710. }
  7711. set {
  7712. this._clearBeforeFill = value;
  7713. }
  7714. }
  7715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7717. private void InitAdapter() {
  7718. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7719. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7720. tableMapping.SourceTable = "Table";
  7721. tableMapping.DataSetTable = "Zakazi";
  7722. tableMapping.ColumnMappings.Add("id", "id");
  7723. tableMapping.ColumnMappings.Add("СтатусЗаказа", "СтатусЗаказа");
  7724. tableMapping.ColumnMappings.Add("Дата", "Дата");
  7725. tableMapping.ColumnMappings.Add("ТипОплаты", "ТипОплаты");
  7726. tableMapping.ColumnMappings.Add("Смена", "Смена");
  7727. tableMapping.ColumnMappings.Add("Столик", "Столик");
  7728. tableMapping.ColumnMappings.Add("Блюда", "Блюда");
  7729. tableMapping.ColumnMappings.Add("ЗаказанныеБлюда", "ЗаказанныеБлюда");
  7730. this._adapter.TableMappings.Add(tableMapping);
  7731. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7732. this._adapter.DeleteCommand.Connection = this.Connection;
  7733. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Zakazi] WHERE (([id] = @Original_id) AND ((@IsNull_СтатусЗаказа = 1 AND [СтатусЗаказа] IS NULL) OR ([СтатусЗаказа] = @Original_СтатусЗаказа)) AND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Original_Дата)) AND ((@IsNull_ТипОплаты = 1 AND [ТипОплаты] IS NULL) OR ([ТипОплаты] = @Original_ТипОплаты)) AND ((@IsNull_Смена = 1 AND [Смена] IS NULL) OR ([Смена] = @Original_Смена)) AND ((@IsNull_Столик = 1 AND [Столик] IS NULL) OR ([Столик] = @Original_Столик)) AND ((@IsNull_Блюда = 1 AND [Блюда] IS NULL) OR ([Блюда] = @Original_Блюда)) AND ((@IsNull_ЗаказанныеБлюда = 1 AND [ЗаказанныеБлюда] IS NULL) OR ([ЗаказанныеБлюда] = @Original_ЗаказанныеБлюда)))";
  7734. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7735. 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, "", "", ""));
  7736. 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, "", "", ""));
  7737. 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, "", "", ""));
  7738. 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, "", "", ""));
  7739. 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, "", "", ""));
  7740. 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, "", "", ""));
  7741. 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, "", "", ""));
  7742. 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, "", "", ""));
  7743. 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, "", "", ""));
  7744. 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, "", "", ""));
  7745. 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, "", "", ""));
  7746. 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, "", "", ""));
  7747. 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, "", "", ""));
  7748. 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, "", "", ""));
  7749. 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, "", "", ""));
  7750. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7751. this._adapter.InsertCommand.Connection = this.Connection;
  7752. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Zakazi] ([СтатусЗаказа], [Дата], [ТипОплаты], [Смена], [Столик], [Блюда], [ЗаказанныеБлюда]) VALUES (@СтатусЗаказа, @Дата, @ТипОплаты, @Смена, @Столик, @Блюда, @ЗаказанныеБлюда);
  7753. SELECT id, СтатусЗаказа, Дата, ТипОплаты, Смена, Столик, Блюда, ЗаказанныеБлюда FROM Zakazi WHERE (id = SCOPE_IDENTITY())";
  7754. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7755. 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, "", "", ""));
  7756. 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, "", "", ""));
  7757. 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, "", "", ""));
  7758. 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, "", "", ""));
  7759. 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, "", "", ""));
  7760. 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, "", "", ""));
  7761. 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, "", "", ""));
  7762. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7763. this._adapter.UpdateCommand.Connection = this.Connection;
  7764. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Zakazi] SET [СтатусЗаказа] = @СтатусЗаказа, [Дата] = @Дата, [ТипОплаты] = @ТипОплаты, [Смена] = @Смена, [Столик] = @Столик, [Блюда] = @Блюда, [ЗаказанныеБлюда] = @ЗаказанныеБлюда WHERE (([id] = @Original_id) AND ((@IsNull_СтатусЗаказа = 1 AND [СтатусЗаказа] IS NULL) OR ([СтатусЗаказа] = @Original_СтатусЗаказа)) AND ((@IsNull_Дата = 1 AND [Дата] IS NULL) OR ([Дата] = @Original_Дата)) AND ((@IsNull_ТипОплаты = 1 AND [ТипОплаты] IS NULL) OR ([ТипОплаты] = @Original_ТипОплаты)) AND ((@IsNull_Смена = 1 AND [Смена] IS NULL) OR ([Смена] = @Original_Смена)) AND ((@IsNull_Столик = 1 AND [Столик] IS NULL) OR ([Столик] = @Original_Столик)) AND ((@IsNull_Блюда = 1 AND [Блюда] IS NULL) OR ([Блюда] = @Original_Блюда)) AND ((@IsNull_ЗаказанныеБлюда = 1 AND [ЗаказанныеБлюда] IS NULL) OR ([ЗаказанныеБлюда] = @Original_ЗаказанныеБлюда)));
  7765. SELECT id, СтатусЗаказа, Дата, ТипОплаты, Смена, Столик, Блюда, ЗаказанныеБлюда FROM Zakazi WHERE (id = @id)";
  7766. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7767. 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, "", "", ""));
  7768. 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, "", "", ""));
  7769. 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, "", "", ""));
  7770. 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, "", "", ""));
  7771. 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, "", "", ""));
  7772. 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, "", "", ""));
  7773. 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, "", "", ""));
  7774. 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, "", "", ""));
  7775. 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, "", "", ""));
  7776. 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, "", "", ""));
  7777. 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, "", "", ""));
  7778. 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, "", "", ""));
  7779. 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, "", "", ""));
  7780. 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, "", "", ""));
  7781. 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, "", "", ""));
  7782. 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, "", "", ""));
  7783. 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, "", "", ""));
  7784. 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, "", "", ""));
  7785. 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, "", "", ""));
  7786. 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, "", "", ""));
  7787. 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, "", "", ""));
  7788. 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, "", "", ""));
  7789. 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, "", "", ""));
  7790. }
  7791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7793. private void InitConnection() {
  7794. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7795. this._connection.ConnectionString = global::Kafe09.Properties.Settings.Default.Kafe09ConnectionString;
  7796. }
  7797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7799. private void InitCommandCollection() {
  7800. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7801. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7802. this._commandCollection[0].Connection = this.Connection;
  7803. this._commandCollection[0].CommandText = "SELECT id, СтатусЗаказа, Дата, ТипОплаты, Смена, Столик, Блюда, ЗаказанныеБлюда F" +
  7804. "ROM dbo.Zakazi";
  7805. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7806. }
  7807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7809. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7810. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7811. public virtual int Fill(Kafe09DataSet.ZakaziDataTable dataTable) {
  7812. this.Adapter.SelectCommand = this.CommandCollection[0];
  7813. if ((this.ClearBeforeFill == true)) {
  7814. dataTable.Clear();
  7815. }
  7816. int returnValue = this.Adapter.Fill(dataTable);
  7817. return returnValue;
  7818. }
  7819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7821. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7822. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7823. public virtual Kafe09DataSet.ZakaziDataTable GetData() {
  7824. this.Adapter.SelectCommand = this.CommandCollection[0];
  7825. Kafe09DataSet.ZakaziDataTable dataTable = new Kafe09DataSet.ZakaziDataTable();
  7826. this.Adapter.Fill(dataTable);
  7827. return dataTable;
  7828. }
  7829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7831. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7832. public virtual int Update(Kafe09DataSet.ZakaziDataTable dataTable) {
  7833. return this.Adapter.Update(dataTable);
  7834. }
  7835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7837. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7838. public virtual int Update(Kafe09DataSet dataSet) {
  7839. return this.Adapter.Update(dataSet, "Zakazi");
  7840. }
  7841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7843. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7844. public virtual int Update(global::System.Data.DataRow dataRow) {
  7845. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7846. dataRow});
  7847. }
  7848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7850. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7851. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7852. return this.Adapter.Update(dataRows);
  7853. }
  7854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7856. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7857. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7858. public virtual int Delete(int Original_id, global::System.Nullable<int> Original_СтатусЗаказа, global::System.Nullable<global::System.DateTime> Original_Дата, global::System.Nullable<int> Original_ТипОплаты, global::System.Nullable<int> Original_Смена, global::System.Nullable<int> Original_Столик, string Original_Блюда, global::System.Nullable<int> Original_ЗаказанныеБлюда) {
  7859. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  7860. if ((Original_СтатусЗаказа.HasValue == true)) {
  7861. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7862. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_СтатусЗаказа.Value));
  7863. }
  7864. else {
  7865. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7866. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7867. }
  7868. if ((Original_Дата.HasValue == true)) {
  7869. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7870. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_Дата.Value));
  7871. }
  7872. else {
  7873. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7874. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7875. }
  7876. if ((Original_ТипОплаты.HasValue == true)) {
  7877. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7878. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_ТипОплаты.Value));
  7879. }
  7880. else {
  7881. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7882. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7883. }
  7884. if ((Original_Смена.HasValue == true)) {
  7885. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7886. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_Смена.Value));
  7887. }
  7888. else {
  7889. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7890. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7891. }
  7892. if ((Original_Столик.HasValue == true)) {
  7893. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  7894. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_Столик.Value));
  7895. }
  7896. else {
  7897. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  7898. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  7899. }
  7900. if ((Original_Блюда == null)) {
  7901. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  7902. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  7903. }
  7904. else {
  7905. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  7906. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Блюда));
  7907. }
  7908. if ((Original_ЗаказанныеБлюда.HasValue == true)) {
  7909. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  7910. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_ЗаказанныеБлюда.Value));
  7911. }
  7912. else {
  7913. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  7914. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  7915. }
  7916. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7917. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7918. != global::System.Data.ConnectionState.Open)) {
  7919. this.Adapter.DeleteCommand.Connection.Open();
  7920. }
  7921. try {
  7922. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7923. return returnValue;
  7924. }
  7925. finally {
  7926. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7927. this.Adapter.DeleteCommand.Connection.Close();
  7928. }
  7929. }
  7930. }
  7931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7933. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7934. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7935. public virtual int Insert(global::System.Nullable<int> СтатусЗаказа, global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<int> ТипОплаты, global::System.Nullable<int> Смена, global::System.Nullable<int> Столик, string Блюда, global::System.Nullable<int> ЗаказанныеБлюда) {
  7936. if ((СтатусЗаказа.HasValue == true)) {
  7937. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(СтатусЗаказа.Value));
  7938. }
  7939. else {
  7940. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7941. }
  7942. if ((Дата.HasValue == true)) {
  7943. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата.Value));
  7944. }
  7945. else {
  7946. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7947. }
  7948. if ((ТипОплаты.HasValue == true)) {
  7949. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(ТипОплаты.Value));
  7950. }
  7951. else {
  7952. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7953. }
  7954. if ((Смена.HasValue == true)) {
  7955. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Смена.Value));
  7956. }
  7957. else {
  7958. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7959. }
  7960. if ((Столик.HasValue == true)) {
  7961. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Столик.Value));
  7962. }
  7963. else {
  7964. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  7965. }
  7966. if ((Блюда == null)) {
  7967. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  7968. }
  7969. else {
  7970. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Блюда));
  7971. }
  7972. if ((ЗаказанныеБлюда.HasValue == true)) {
  7973. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(ЗаказанныеБлюда.Value));
  7974. }
  7975. else {
  7976. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  7977. }
  7978. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7979. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7980. != global::System.Data.ConnectionState.Open)) {
  7981. this.Adapter.InsertCommand.Connection.Open();
  7982. }
  7983. try {
  7984. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7985. return returnValue;
  7986. }
  7987. finally {
  7988. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7989. this.Adapter.InsertCommand.Connection.Close();
  7990. }
  7991. }
  7992. }
  7993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7995. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7996. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7997. public virtual int Update(
  7998. global::System.Nullable<int> СтатусЗаказа,
  7999. global::System.Nullable<global::System.DateTime> Дата,
  8000. global::System.Nullable<int> ТипОплаты,
  8001. global::System.Nullable<int> Смена,
  8002. global::System.Nullable<int> Столик,
  8003. string Блюда,
  8004. global::System.Nullable<int> ЗаказанныеБлюда,
  8005. int Original_id,
  8006. global::System.Nullable<int> Original_СтатусЗаказа,
  8007. global::System.Nullable<global::System.DateTime> Original_Дата,
  8008. global::System.Nullable<int> Original_ТипОплаты,
  8009. global::System.Nullable<int> Original_Смена,
  8010. global::System.Nullable<int> Original_Столик,
  8011. string Original_Блюда,
  8012. global::System.Nullable<int> Original_ЗаказанныеБлюда,
  8013. int id) {
  8014. if ((СтатусЗаказа.HasValue == true)) {
  8015. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(СтатусЗаказа.Value));
  8016. }
  8017. else {
  8018. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8019. }
  8020. if ((Дата.HasValue == true)) {
  8021. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Дата.Value));
  8022. }
  8023. else {
  8024. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8025. }
  8026. if ((ТипОплаты.HasValue == true)) {
  8027. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(ТипОплаты.Value));
  8028. }
  8029. else {
  8030. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8031. }
  8032. if ((Смена.HasValue == true)) {
  8033. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Смена.Value));
  8034. }
  8035. else {
  8036. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8037. }
  8038. if ((Столик.HasValue == true)) {
  8039. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Столик.Value));
  8040. }
  8041. else {
  8042. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8043. }
  8044. if ((Блюда == null)) {
  8045. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8046. }
  8047. else {
  8048. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Блюда));
  8049. }
  8050. if ((ЗаказанныеБлюда.HasValue == true)) {
  8051. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ЗаказанныеБлюда.Value));
  8052. }
  8053. else {
  8054. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8055. }
  8056. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_id));
  8057. if ((Original_СтатусЗаказа.HasValue == true)) {
  8058. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  8059. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_СтатусЗаказа.Value));
  8060. }
  8061. else {
  8062. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  8063. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  8064. }
  8065. if ((Original_Дата.HasValue == true)) {
  8066. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  8067. this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_Дата.Value));
  8068. }
  8069. else {
  8070. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  8071. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  8072. }
  8073. if ((Original_ТипОплаты.HasValue == true)) {
  8074. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  8075. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ТипОплаты.Value));
  8076. }
  8077. else {
  8078. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  8079. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  8080. }
  8081. if ((Original_Смена.HasValue == true)) {
  8082. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  8083. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_Смена.Value));
  8084. }
  8085. else {
  8086. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  8087. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  8088. }
  8089. if ((Original_Столик.HasValue == true)) {
  8090. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  8091. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_Столик.Value));
  8092. }
  8093. else {
  8094. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  8095. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  8096. }
  8097. if ((Original_Блюда == null)) {
  8098. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  8099. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  8100. }
  8101. else {
  8102. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  8103. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Блюда));
  8104. }
  8105. if ((Original_ЗаказанныеБлюда.HasValue == true)) {
  8106. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  8107. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_ЗаказанныеБлюда.Value));
  8108. }
  8109. else {
  8110. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  8111. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  8112. }
  8113. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(id));
  8114. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8115. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8116. != global::System.Data.ConnectionState.Open)) {
  8117. this.Adapter.UpdateCommand.Connection.Open();
  8118. }
  8119. try {
  8120. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8121. return returnValue;
  8122. }
  8123. finally {
  8124. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8125. this.Adapter.UpdateCommand.Connection.Close();
  8126. }
  8127. }
  8128. }
  8129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8131. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8132. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8133. public virtual int Update(global::System.Nullable<int> СтатусЗаказа, global::System.Nullable<global::System.DateTime> Дата, global::System.Nullable<int> ТипОплаты, global::System.Nullable<int> Смена, global::System.Nullable<int> Столик, string Блюда, global::System.Nullable<int> ЗаказанныеБлюда, int Original_id, global::System.Nullable<int> Original_СтатусЗаказа, global::System.Nullable<global::System.DateTime> Original_Дата, global::System.Nullable<int> Original_ТипОплаты, global::System.Nullable<int> Original_Смена, global::System.Nullable<int> Original_Столик, string Original_Блюда, global::System.Nullable<int> Original_ЗаказанныеБлюда) {
  8134. return this.Update(СтатусЗаказа, Дата, ТипОплаты, Смена, Столик, Блюда, ЗаказанныеБлюда, Original_id, Original_СтатусЗаказа, Original_Дата, Original_ТипОплаты, Original_Смена, Original_Столик, Original_Блюда, Original_ЗаказанныеБлюда, Original_id);
  8135. }
  8136. }
  8137. /// <summary>
  8138. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  8139. ///</summary>
  8140. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8141. [global::System.ComponentModel.ToolboxItem(true)]
  8142. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  8143. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8144. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  8145. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  8146. private UpdateOrderOption _updateOrder;
  8147. private BludaTableAdapter _bludaTableAdapter;
  8148. private DoljnostiTableAdapter _doljnostiTableAdapter;
  8149. private PolzovateliTableAdapter _polzovateliTableAdapter;
  8150. private SmeniTableAdapter _smeniTableAdapter;
  8151. private StatusiPolzovateleyTableAdapter _statusiPolzovateleyTableAdapter;
  8152. private StatusiZakazaTableAdapter _statusiZakazaTableAdapter;
  8153. private StolikiTableAdapter _stolikiTableAdapter;
  8154. private TipiOplatiTableAdapter _tipiOplatiTableAdapter;
  8155. private ZakazannieBludaTableAdapter _zakazannieBludaTableAdapter;
  8156. private ZakaziTableAdapter _zakaziTableAdapter;
  8157. private bool _backupDataSetBeforeUpdate;
  8158. private global::System.Data.IDbConnection _connection;
  8159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8161. public UpdateOrderOption UpdateOrder {
  8162. get {
  8163. return this._updateOrder;
  8164. }
  8165. set {
  8166. this._updateOrder = value;
  8167. }
  8168. }
  8169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8171. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8172. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8173. "a", "System.Drawing.Design.UITypeEditor")]
  8174. public BludaTableAdapter BludaTableAdapter {
  8175. get {
  8176. return this._bludaTableAdapter;
  8177. }
  8178. set {
  8179. this._bludaTableAdapter = value;
  8180. }
  8181. }
  8182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8184. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8185. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8186. "a", "System.Drawing.Design.UITypeEditor")]
  8187. public DoljnostiTableAdapter DoljnostiTableAdapter {
  8188. get {
  8189. return this._doljnostiTableAdapter;
  8190. }
  8191. set {
  8192. this._doljnostiTableAdapter = value;
  8193. }
  8194. }
  8195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8197. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8198. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8199. "a", "System.Drawing.Design.UITypeEditor")]
  8200. public PolzovateliTableAdapter PolzovateliTableAdapter {
  8201. get {
  8202. return this._polzovateliTableAdapter;
  8203. }
  8204. set {
  8205. this._polzovateliTableAdapter = value;
  8206. }
  8207. }
  8208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8210. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8211. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8212. "a", "System.Drawing.Design.UITypeEditor")]
  8213. public SmeniTableAdapter SmeniTableAdapter {
  8214. get {
  8215. return this._smeniTableAdapter;
  8216. }
  8217. set {
  8218. this._smeniTableAdapter = value;
  8219. }
  8220. }
  8221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8223. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8224. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8225. "a", "System.Drawing.Design.UITypeEditor")]
  8226. public StatusiPolzovateleyTableAdapter StatusiPolzovateleyTableAdapter {
  8227. get {
  8228. return this._statusiPolzovateleyTableAdapter;
  8229. }
  8230. set {
  8231. this._statusiPolzovateleyTableAdapter = value;
  8232. }
  8233. }
  8234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8236. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8237. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8238. "a", "System.Drawing.Design.UITypeEditor")]
  8239. public StatusiZakazaTableAdapter StatusiZakazaTableAdapter {
  8240. get {
  8241. return this._statusiZakazaTableAdapter;
  8242. }
  8243. set {
  8244. this._statusiZakazaTableAdapter = value;
  8245. }
  8246. }
  8247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8249. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8250. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8251. "a", "System.Drawing.Design.UITypeEditor")]
  8252. public StolikiTableAdapter StolikiTableAdapter {
  8253. get {
  8254. return this._stolikiTableAdapter;
  8255. }
  8256. set {
  8257. this._stolikiTableAdapter = value;
  8258. }
  8259. }
  8260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8262. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8263. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8264. "a", "System.Drawing.Design.UITypeEditor")]
  8265. public TipiOplatiTableAdapter TipiOplatiTableAdapter {
  8266. get {
  8267. return this._tipiOplatiTableAdapter;
  8268. }
  8269. set {
  8270. this._tipiOplatiTableAdapter = value;
  8271. }
  8272. }
  8273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8275. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8276. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8277. "a", "System.Drawing.Design.UITypeEditor")]
  8278. public ZakazannieBludaTableAdapter ZakazannieBludaTableAdapter {
  8279. get {
  8280. return this._zakazannieBludaTableAdapter;
  8281. }
  8282. set {
  8283. this._zakazannieBludaTableAdapter = value;
  8284. }
  8285. }
  8286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8288. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8289. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8290. "a", "System.Drawing.Design.UITypeEditor")]
  8291. public ZakaziTableAdapter ZakaziTableAdapter {
  8292. get {
  8293. return this._zakaziTableAdapter;
  8294. }
  8295. set {
  8296. this._zakaziTableAdapter = value;
  8297. }
  8298. }
  8299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8301. public bool BackupDataSetBeforeUpdate {
  8302. get {
  8303. return this._backupDataSetBeforeUpdate;
  8304. }
  8305. set {
  8306. this._backupDataSetBeforeUpdate = value;
  8307. }
  8308. }
  8309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8311. [global::System.ComponentModel.Browsable(false)]
  8312. public global::System.Data.IDbConnection Connection {
  8313. get {
  8314. if ((this._connection != null)) {
  8315. return this._connection;
  8316. }
  8317. if (((this._bludaTableAdapter != null)
  8318. && (this._bludaTableAdapter.Connection != null))) {
  8319. return this._bludaTableAdapter.Connection;
  8320. }
  8321. if (((this._doljnostiTableAdapter != null)
  8322. && (this._doljnostiTableAdapter.Connection != null))) {
  8323. return this._doljnostiTableAdapter.Connection;
  8324. }
  8325. if (((this._polzovateliTableAdapter != null)
  8326. && (this._polzovateliTableAdapter.Connection != null))) {
  8327. return this._polzovateliTableAdapter.Connection;
  8328. }
  8329. if (((this._smeniTableAdapter != null)
  8330. && (this._smeniTableAdapter.Connection != null))) {
  8331. return this._smeniTableAdapter.Connection;
  8332. }
  8333. if (((this._statusiPolzovateleyTableAdapter != null)
  8334. && (this._statusiPolzovateleyTableAdapter.Connection != null))) {
  8335. return this._statusiPolzovateleyTableAdapter.Connection;
  8336. }
  8337. if (((this._statusiZakazaTableAdapter != null)
  8338. && (this._statusiZakazaTableAdapter.Connection != null))) {
  8339. return this._statusiZakazaTableAdapter.Connection;
  8340. }
  8341. if (((this._stolikiTableAdapter != null)
  8342. && (this._stolikiTableAdapter.Connection != null))) {
  8343. return this._stolikiTableAdapter.Connection;
  8344. }
  8345. if (((this._tipiOplatiTableAdapter != null)
  8346. && (this._tipiOplatiTableAdapter.Connection != null))) {
  8347. return this._tipiOplatiTableAdapter.Connection;
  8348. }
  8349. if (((this._zakazannieBludaTableAdapter != null)
  8350. && (this._zakazannieBludaTableAdapter.Connection != null))) {
  8351. return this._zakazannieBludaTableAdapter.Connection;
  8352. }
  8353. if (((this._zakaziTableAdapter != null)
  8354. && (this._zakaziTableAdapter.Connection != null))) {
  8355. return this._zakaziTableAdapter.Connection;
  8356. }
  8357. return null;
  8358. }
  8359. set {
  8360. this._connection = value;
  8361. }
  8362. }
  8363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8365. [global::System.ComponentModel.Browsable(false)]
  8366. public int TableAdapterInstanceCount {
  8367. get {
  8368. int count = 0;
  8369. if ((this._bludaTableAdapter != null)) {
  8370. count = (count + 1);
  8371. }
  8372. if ((this._doljnostiTableAdapter != null)) {
  8373. count = (count + 1);
  8374. }
  8375. if ((this._polzovateliTableAdapter != null)) {
  8376. count = (count + 1);
  8377. }
  8378. if ((this._smeniTableAdapter != null)) {
  8379. count = (count + 1);
  8380. }
  8381. if ((this._statusiPolzovateleyTableAdapter != null)) {
  8382. count = (count + 1);
  8383. }
  8384. if ((this._statusiZakazaTableAdapter != null)) {
  8385. count = (count + 1);
  8386. }
  8387. if ((this._stolikiTableAdapter != null)) {
  8388. count = (count + 1);
  8389. }
  8390. if ((this._tipiOplatiTableAdapter != null)) {
  8391. count = (count + 1);
  8392. }
  8393. if ((this._zakazannieBludaTableAdapter != null)) {
  8394. count = (count + 1);
  8395. }
  8396. if ((this._zakaziTableAdapter != null)) {
  8397. count = (count + 1);
  8398. }
  8399. return count;
  8400. }
  8401. }
  8402. /// <summary>
  8403. ///Update rows in top-down order.
  8404. ///</summary>
  8405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8407. private int UpdateUpdatedRows(Kafe09DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8408. int result = 0;
  8409. if ((this._doljnostiTableAdapter != null)) {
  8410. global::System.Data.DataRow[] updatedRows = dataSet.Doljnosti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8411. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8412. if (((updatedRows != null)
  8413. && (0 < updatedRows.Length))) {
  8414. result = (result + this._doljnostiTableAdapter.Update(updatedRows));
  8415. allChangedRows.AddRange(updatedRows);
  8416. }
  8417. }
  8418. if ((this._statusiPolzovateleyTableAdapter != null)) {
  8419. global::System.Data.DataRow[] updatedRows = dataSet.StatusiPolzovateley.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8420. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8421. if (((updatedRows != null)
  8422. && (0 < updatedRows.Length))) {
  8423. result = (result + this._statusiPolzovateleyTableAdapter.Update(updatedRows));
  8424. allChangedRows.AddRange(updatedRows);
  8425. }
  8426. }
  8427. if ((this._polzovateliTableAdapter != null)) {
  8428. global::System.Data.DataRow[] updatedRows = dataSet.Polzovateli.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8429. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8430. if (((updatedRows != null)
  8431. && (0 < updatedRows.Length))) {
  8432. result = (result + this._polzovateliTableAdapter.Update(updatedRows));
  8433. allChangedRows.AddRange(updatedRows);
  8434. }
  8435. }
  8436. if ((this._bludaTableAdapter != null)) {
  8437. global::System.Data.DataRow[] updatedRows = dataSet.Bluda.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8438. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8439. if (((updatedRows != null)
  8440. && (0 < updatedRows.Length))) {
  8441. result = (result + this._bludaTableAdapter.Update(updatedRows));
  8442. allChangedRows.AddRange(updatedRows);
  8443. }
  8444. }
  8445. if ((this._smeniTableAdapter != null)) {
  8446. global::System.Data.DataRow[] updatedRows = dataSet.Smeni.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8447. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8448. if (((updatedRows != null)
  8449. && (0 < updatedRows.Length))) {
  8450. result = (result + this._smeniTableAdapter.Update(updatedRows));
  8451. allChangedRows.AddRange(updatedRows);
  8452. }
  8453. }
  8454. if ((this._statusiZakazaTableAdapter != null)) {
  8455. global::System.Data.DataRow[] updatedRows = dataSet.StatusiZakaza.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8456. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8457. if (((updatedRows != null)
  8458. && (0 < updatedRows.Length))) {
  8459. result = (result + this._statusiZakazaTableAdapter.Update(updatedRows));
  8460. allChangedRows.AddRange(updatedRows);
  8461. }
  8462. }
  8463. if ((this._stolikiTableAdapter != null)) {
  8464. global::System.Data.DataRow[] updatedRows = dataSet.Stoliki.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8465. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8466. if (((updatedRows != null)
  8467. && (0 < updatedRows.Length))) {
  8468. result = (result + this._stolikiTableAdapter.Update(updatedRows));
  8469. allChangedRows.AddRange(updatedRows);
  8470. }
  8471. }
  8472. if ((this._tipiOplatiTableAdapter != null)) {
  8473. global::System.Data.DataRow[] updatedRows = dataSet.TipiOplati.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8474. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8475. if (((updatedRows != null)
  8476. && (0 < updatedRows.Length))) {
  8477. result = (result + this._tipiOplatiTableAdapter.Update(updatedRows));
  8478. allChangedRows.AddRange(updatedRows);
  8479. }
  8480. }
  8481. if ((this._zakazannieBludaTableAdapter != null)) {
  8482. global::System.Data.DataRow[] updatedRows = dataSet.ZakazannieBluda.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8483. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8484. if (((updatedRows != null)
  8485. && (0 < updatedRows.Length))) {
  8486. result = (result + this._zakazannieBludaTableAdapter.Update(updatedRows));
  8487. allChangedRows.AddRange(updatedRows);
  8488. }
  8489. }
  8490. if ((this._zakaziTableAdapter != null)) {
  8491. global::System.Data.DataRow[] updatedRows = dataSet.Zakazi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8492. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8493. if (((updatedRows != null)
  8494. && (0 < updatedRows.Length))) {
  8495. result = (result + this._zakaziTableAdapter.Update(updatedRows));
  8496. allChangedRows.AddRange(updatedRows);
  8497. }
  8498. }
  8499. return result;
  8500. }
  8501. /// <summary>
  8502. ///Insert rows in top-down order.
  8503. ///</summary>
  8504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8506. private int UpdateInsertedRows(Kafe09DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8507. int result = 0;
  8508. if ((this._doljnostiTableAdapter != null)) {
  8509. global::System.Data.DataRow[] addedRows = dataSet.Doljnosti.Select(null, null, global::System.Data.DataViewRowState.Added);
  8510. if (((addedRows != null)
  8511. && (0 < addedRows.Length))) {
  8512. result = (result + this._doljnostiTableAdapter.Update(addedRows));
  8513. allAddedRows.AddRange(addedRows);
  8514. }
  8515. }
  8516. if ((this._statusiPolzovateleyTableAdapter != null)) {
  8517. global::System.Data.DataRow[] addedRows = dataSet.StatusiPolzovateley.Select(null, null, global::System.Data.DataViewRowState.Added);
  8518. if (((addedRows != null)
  8519. && (0 < addedRows.Length))) {
  8520. result = (result + this._statusiPolzovateleyTableAdapter.Update(addedRows));
  8521. allAddedRows.AddRange(addedRows);
  8522. }
  8523. }
  8524. if ((this._polzovateliTableAdapter != null)) {
  8525. global::System.Data.DataRow[] addedRows = dataSet.Polzovateli.Select(null, null, global::System.Data.DataViewRowState.Added);
  8526. if (((addedRows != null)
  8527. && (0 < addedRows.Length))) {
  8528. result = (result + this._polzovateliTableAdapter.Update(addedRows));
  8529. allAddedRows.AddRange(addedRows);
  8530. }
  8531. }
  8532. if ((this._bludaTableAdapter != null)) {
  8533. global::System.Data.DataRow[] addedRows = dataSet.Bluda.Select(null, null, global::System.Data.DataViewRowState.Added);
  8534. if (((addedRows != null)
  8535. && (0 < addedRows.Length))) {
  8536. result = (result + this._bludaTableAdapter.Update(addedRows));
  8537. allAddedRows.AddRange(addedRows);
  8538. }
  8539. }
  8540. if ((this._smeniTableAdapter != null)) {
  8541. global::System.Data.DataRow[] addedRows = dataSet.Smeni.Select(null, null, global::System.Data.DataViewRowState.Added);
  8542. if (((addedRows != null)
  8543. && (0 < addedRows.Length))) {
  8544. result = (result + this._smeniTableAdapter.Update(addedRows));
  8545. allAddedRows.AddRange(addedRows);
  8546. }
  8547. }
  8548. if ((this._statusiZakazaTableAdapter != null)) {
  8549. global::System.Data.DataRow[] addedRows = dataSet.StatusiZakaza.Select(null, null, global::System.Data.DataViewRowState.Added);
  8550. if (((addedRows != null)
  8551. && (0 < addedRows.Length))) {
  8552. result = (result + this._statusiZakazaTableAdapter.Update(addedRows));
  8553. allAddedRows.AddRange(addedRows);
  8554. }
  8555. }
  8556. if ((this._stolikiTableAdapter != null)) {
  8557. global::System.Data.DataRow[] addedRows = dataSet.Stoliki.Select(null, null, global::System.Data.DataViewRowState.Added);
  8558. if (((addedRows != null)
  8559. && (0 < addedRows.Length))) {
  8560. result = (result + this._stolikiTableAdapter.Update(addedRows));
  8561. allAddedRows.AddRange(addedRows);
  8562. }
  8563. }
  8564. if ((this._tipiOplatiTableAdapter != null)) {
  8565. global::System.Data.DataRow[] addedRows = dataSet.TipiOplati.Select(null, null, global::System.Data.DataViewRowState.Added);
  8566. if (((addedRows != null)
  8567. && (0 < addedRows.Length))) {
  8568. result = (result + this._tipiOplatiTableAdapter.Update(addedRows));
  8569. allAddedRows.AddRange(addedRows);
  8570. }
  8571. }
  8572. if ((this._zakazannieBludaTableAdapter != null)) {
  8573. global::System.Data.DataRow[] addedRows = dataSet.ZakazannieBluda.Select(null, null, global::System.Data.DataViewRowState.Added);
  8574. if (((addedRows != null)
  8575. && (0 < addedRows.Length))) {
  8576. result = (result + this._zakazannieBludaTableAdapter.Update(addedRows));
  8577. allAddedRows.AddRange(addedRows);
  8578. }
  8579. }
  8580. if ((this._zakaziTableAdapter != null)) {
  8581. global::System.Data.DataRow[] addedRows = dataSet.Zakazi.Select(null, null, global::System.Data.DataViewRowState.Added);
  8582. if (((addedRows != null)
  8583. && (0 < addedRows.Length))) {
  8584. result = (result + this._zakaziTableAdapter.Update(addedRows));
  8585. allAddedRows.AddRange(addedRows);
  8586. }
  8587. }
  8588. return result;
  8589. }
  8590. /// <summary>
  8591. ///Delete rows in bottom-up order.
  8592. ///</summary>
  8593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8595. private int UpdateDeletedRows(Kafe09DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  8596. int result = 0;
  8597. if ((this._zakaziTableAdapter != null)) {
  8598. global::System.Data.DataRow[] deletedRows = dataSet.Zakazi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8599. if (((deletedRows != null)
  8600. && (0 < deletedRows.Length))) {
  8601. result = (result + this._zakaziTableAdapter.Update(deletedRows));
  8602. allChangedRows.AddRange(deletedRows);
  8603. }
  8604. }
  8605. if ((this._zakazannieBludaTableAdapter != null)) {
  8606. global::System.Data.DataRow[] deletedRows = dataSet.ZakazannieBluda.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8607. if (((deletedRows != null)
  8608. && (0 < deletedRows.Length))) {
  8609. result = (result + this._zakazannieBludaTableAdapter.Update(deletedRows));
  8610. allChangedRows.AddRange(deletedRows);
  8611. }
  8612. }
  8613. if ((this._tipiOplatiTableAdapter != null)) {
  8614. global::System.Data.DataRow[] deletedRows = dataSet.TipiOplati.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8615. if (((deletedRows != null)
  8616. && (0 < deletedRows.Length))) {
  8617. result = (result + this._tipiOplatiTableAdapter.Update(deletedRows));
  8618. allChangedRows.AddRange(deletedRows);
  8619. }
  8620. }
  8621. if ((this._stolikiTableAdapter != null)) {
  8622. global::System.Data.DataRow[] deletedRows = dataSet.Stoliki.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8623. if (((deletedRows != null)
  8624. && (0 < deletedRows.Length))) {
  8625. result = (result + this._stolikiTableAdapter.Update(deletedRows));
  8626. allChangedRows.AddRange(deletedRows);
  8627. }
  8628. }
  8629. if ((this._statusiZakazaTableAdapter != null)) {
  8630. global::System.Data.DataRow[] deletedRows = dataSet.StatusiZakaza.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8631. if (((deletedRows != null)
  8632. && (0 < deletedRows.Length))) {
  8633. result = (result + this._statusiZakazaTableAdapter.Update(deletedRows));
  8634. allChangedRows.AddRange(deletedRows);
  8635. }
  8636. }
  8637. if ((this._smeniTableAdapter != null)) {
  8638. global::System.Data.DataRow[] deletedRows = dataSet.Smeni.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8639. if (((deletedRows != null)
  8640. && (0 < deletedRows.Length))) {
  8641. result = (result + this._smeniTableAdapter.Update(deletedRows));
  8642. allChangedRows.AddRange(deletedRows);
  8643. }
  8644. }
  8645. if ((this._bludaTableAdapter != null)) {
  8646. global::System.Data.DataRow[] deletedRows = dataSet.Bluda.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8647. if (((deletedRows != null)
  8648. && (0 < deletedRows.Length))) {
  8649. result = (result + this._bludaTableAdapter.Update(deletedRows));
  8650. allChangedRows.AddRange(deletedRows);
  8651. }
  8652. }
  8653. if ((this._polzovateliTableAdapter != null)) {
  8654. global::System.Data.DataRow[] deletedRows = dataSet.Polzovateli.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8655. if (((deletedRows != null)
  8656. && (0 < deletedRows.Length))) {
  8657. result = (result + this._polzovateliTableAdapter.Update(deletedRows));
  8658. allChangedRows.AddRange(deletedRows);
  8659. }
  8660. }
  8661. if ((this._statusiPolzovateleyTableAdapter != null)) {
  8662. global::System.Data.DataRow[] deletedRows = dataSet.StatusiPolzovateley.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8663. if (((deletedRows != null)
  8664. && (0 < deletedRows.Length))) {
  8665. result = (result + this._statusiPolzovateleyTableAdapter.Update(deletedRows));
  8666. allChangedRows.AddRange(deletedRows);
  8667. }
  8668. }
  8669. if ((this._doljnostiTableAdapter != null)) {
  8670. global::System.Data.DataRow[] deletedRows = dataSet.Doljnosti.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8671. if (((deletedRows != null)
  8672. && (0 < deletedRows.Length))) {
  8673. result = (result + this._doljnostiTableAdapter.Update(deletedRows));
  8674. allChangedRows.AddRange(deletedRows);
  8675. }
  8676. }
  8677. return result;
  8678. }
  8679. /// <summary>
  8680. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  8681. ///</summary>
  8682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8684. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8685. if (((updatedRows == null)
  8686. || (updatedRows.Length < 1))) {
  8687. return updatedRows;
  8688. }
  8689. if (((allAddedRows == null)
  8690. || (allAddedRows.Count < 1))) {
  8691. return updatedRows;
  8692. }
  8693. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8694. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  8695. global::System.Data.DataRow row = updatedRows[i];
  8696. if ((allAddedRows.Contains(row) == false)) {
  8697. realUpdatedRows.Add(row);
  8698. }
  8699. }
  8700. return realUpdatedRows.ToArray();
  8701. }
  8702. /// <summary>
  8703. ///Update all changes to the dataset.
  8704. ///</summary>
  8705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8707. public virtual int UpdateAll(Kafe09DataSet dataSet) {
  8708. if ((dataSet == null)) {
  8709. throw new global::System.ArgumentNullException("dataSet");
  8710. }
  8711. if ((dataSet.HasChanges() == false)) {
  8712. return 0;
  8713. }
  8714. if (((this._bludaTableAdapter != null)
  8715. && (this.MatchTableAdapterConnection(this._bludaTableAdapter.Connection) == false))) {
  8716. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8717. "r, должны использовать одинаковую строку подключения.");
  8718. }
  8719. if (((this._doljnostiTableAdapter != null)
  8720. && (this.MatchTableAdapterConnection(this._doljnostiTableAdapter.Connection) == false))) {
  8721. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8722. "r, должны использовать одинаковую строку подключения.");
  8723. }
  8724. if (((this._polzovateliTableAdapter != null)
  8725. && (this.MatchTableAdapterConnection(this._polzovateliTableAdapter.Connection) == false))) {
  8726. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8727. "r, должны использовать одинаковую строку подключения.");
  8728. }
  8729. if (((this._smeniTableAdapter != null)
  8730. && (this.MatchTableAdapterConnection(this._smeniTableAdapter.Connection) == false))) {
  8731. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8732. "r, должны использовать одинаковую строку подключения.");
  8733. }
  8734. if (((this._statusiPolzovateleyTableAdapter != null)
  8735. && (this.MatchTableAdapterConnection(this._statusiPolzovateleyTableAdapter.Connection) == false))) {
  8736. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8737. "r, должны использовать одинаковую строку подключения.");
  8738. }
  8739. if (((this._statusiZakazaTableAdapter != null)
  8740. && (this.MatchTableAdapterConnection(this._statusiZakazaTableAdapter.Connection) == false))) {
  8741. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8742. "r, должны использовать одинаковую строку подключения.");
  8743. }
  8744. if (((this._stolikiTableAdapter != null)
  8745. && (this.MatchTableAdapterConnection(this._stolikiTableAdapter.Connection) == false))) {
  8746. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8747. "r, должны использовать одинаковую строку подключения.");
  8748. }
  8749. if (((this._tipiOplatiTableAdapter != null)
  8750. && (this.MatchTableAdapterConnection(this._tipiOplatiTableAdapter.Connection) == false))) {
  8751. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8752. "r, должны использовать одинаковую строку подключения.");
  8753. }
  8754. if (((this._zakazannieBludaTableAdapter != null)
  8755. && (this.MatchTableAdapterConnection(this._zakazannieBludaTableAdapter.Connection) == false))) {
  8756. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8757. "r, должны использовать одинаковую строку подключения.");
  8758. }
  8759. if (((this._zakaziTableAdapter != null)
  8760. && (this.MatchTableAdapterConnection(this._zakaziTableAdapter.Connection) == false))) {
  8761. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8762. "r, должны использовать одинаковую строку подключения.");
  8763. }
  8764. global::System.Data.IDbConnection workConnection = this.Connection;
  8765. if ((workConnection == null)) {
  8766. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  8767. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  8768. }
  8769. bool workConnOpened = false;
  8770. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  8771. == global::System.Data.ConnectionState.Broken)) {
  8772. workConnection.Close();
  8773. }
  8774. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  8775. workConnection.Open();
  8776. workConnOpened = true;
  8777. }
  8778. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  8779. if ((workTransaction == null)) {
  8780. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  8781. "и или текущее состояние не позволяет начать транзакцию.");
  8782. }
  8783. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8784. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8785. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  8786. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  8787. int result = 0;
  8788. global::System.Data.DataSet backupDataSet = null;
  8789. if (this.BackupDataSetBeforeUpdate) {
  8790. backupDataSet = new global::System.Data.DataSet();
  8791. backupDataSet.Merge(dataSet);
  8792. }
  8793. try {
  8794. // ---- Prepare for update -----------
  8795. //
  8796. if ((this._bludaTableAdapter != null)) {
  8797. revertConnections.Add(this._bludaTableAdapter, this._bludaTableAdapter.Connection);
  8798. this._bludaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8799. this._bludaTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8800. if (this._bludaTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8801. this._bludaTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8802. adaptersWithAcceptChangesDuringUpdate.Add(this._bludaTableAdapter.Adapter);
  8803. }
  8804. }
  8805. if ((this._doljnostiTableAdapter != null)) {
  8806. revertConnections.Add(this._doljnostiTableAdapter, this._doljnostiTableAdapter.Connection);
  8807. this._doljnostiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8808. this._doljnostiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8809. if (this._doljnostiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8810. this._doljnostiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8811. adaptersWithAcceptChangesDuringUpdate.Add(this._doljnostiTableAdapter.Adapter);
  8812. }
  8813. }
  8814. if ((this._polzovateliTableAdapter != null)) {
  8815. revertConnections.Add(this._polzovateliTableAdapter, this._polzovateliTableAdapter.Connection);
  8816. this._polzovateliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8817. this._polzovateliTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8818. if (this._polzovateliTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8819. this._polzovateliTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8820. adaptersWithAcceptChangesDuringUpdate.Add(this._polzovateliTableAdapter.Adapter);
  8821. }
  8822. }
  8823. if ((this._smeniTableAdapter != null)) {
  8824. revertConnections.Add(this._smeniTableAdapter, this._smeniTableAdapter.Connection);
  8825. this._smeniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8826. this._smeniTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8827. if (this._smeniTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8828. this._smeniTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8829. adaptersWithAcceptChangesDuringUpdate.Add(this._smeniTableAdapter.Adapter);
  8830. }
  8831. }
  8832. if ((this._statusiPolzovateleyTableAdapter != null)) {
  8833. revertConnections.Add(this._statusiPolzovateleyTableAdapter, this._statusiPolzovateleyTableAdapter.Connection);
  8834. this._statusiPolzovateleyTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8835. this._statusiPolzovateleyTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8836. if (this._statusiPolzovateleyTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8837. this._statusiPolzovateleyTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8838. adaptersWithAcceptChangesDuringUpdate.Add(this._statusiPolzovateleyTableAdapter.Adapter);
  8839. }
  8840. }
  8841. if ((this._statusiZakazaTableAdapter != null)) {
  8842. revertConnections.Add(this._statusiZakazaTableAdapter, this._statusiZakazaTableAdapter.Connection);
  8843. this._statusiZakazaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8844. this._statusiZakazaTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8845. if (this._statusiZakazaTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8846. this._statusiZakazaTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8847. adaptersWithAcceptChangesDuringUpdate.Add(this._statusiZakazaTableAdapter.Adapter);
  8848. }
  8849. }
  8850. if ((this._stolikiTableAdapter != null)) {
  8851. revertConnections.Add(this._stolikiTableAdapter, this._stolikiTableAdapter.Connection);
  8852. this._stolikiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8853. this._stolikiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8854. if (this._stolikiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8855. this._stolikiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8856. adaptersWithAcceptChangesDuringUpdate.Add(this._stolikiTableAdapter.Adapter);
  8857. }
  8858. }
  8859. if ((this._tipiOplatiTableAdapter != null)) {
  8860. revertConnections.Add(this._tipiOplatiTableAdapter, this._tipiOplatiTableAdapter.Connection);
  8861. this._tipiOplatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8862. this._tipiOplatiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8863. if (this._tipiOplatiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8864. this._tipiOplatiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8865. adaptersWithAcceptChangesDuringUpdate.Add(this._tipiOplatiTableAdapter.Adapter);
  8866. }
  8867. }
  8868. if ((this._zakazannieBludaTableAdapter != null)) {
  8869. revertConnections.Add(this._zakazannieBludaTableAdapter, this._zakazannieBludaTableAdapter.Connection);
  8870. this._zakazannieBludaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8871. this._zakazannieBludaTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8872. if (this._zakazannieBludaTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8873. this._zakazannieBludaTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8874. adaptersWithAcceptChangesDuringUpdate.Add(this._zakazannieBludaTableAdapter.Adapter);
  8875. }
  8876. }
  8877. if ((this._zakaziTableAdapter != null)) {
  8878. revertConnections.Add(this._zakaziTableAdapter, this._zakaziTableAdapter.Connection);
  8879. this._zakaziTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8880. this._zakaziTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8881. if (this._zakaziTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8882. this._zakaziTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8883. adaptersWithAcceptChangesDuringUpdate.Add(this._zakaziTableAdapter.Adapter);
  8884. }
  8885. }
  8886. //
  8887. //---- Perform updates -----------
  8888. //
  8889. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  8890. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  8891. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  8892. }
  8893. else {
  8894. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  8895. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  8896. }
  8897. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  8898. //
  8899. //---- Commit updates -----------
  8900. //
  8901. workTransaction.Commit();
  8902. if ((0 < allAddedRows.Count)) {
  8903. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  8904. allAddedRows.CopyTo(rows);
  8905. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  8906. global::System.Data.DataRow row = rows[i];
  8907. row.AcceptChanges();
  8908. }
  8909. }
  8910. if ((0 < allChangedRows.Count)) {
  8911. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  8912. allChangedRows.CopyTo(rows);
  8913. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  8914. global::System.Data.DataRow row = rows[i];
  8915. row.AcceptChanges();
  8916. }
  8917. }
  8918. }
  8919. catch (global::System.Exception ex) {
  8920. workTransaction.Rollback();
  8921. // ---- Restore the dataset -----------
  8922. if (this.BackupDataSetBeforeUpdate) {
  8923. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  8924. dataSet.Clear();
  8925. dataSet.Merge(backupDataSet);
  8926. }
  8927. else {
  8928. if ((0 < allAddedRows.Count)) {
  8929. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  8930. allAddedRows.CopyTo(rows);
  8931. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  8932. global::System.Data.DataRow row = rows[i];
  8933. row.AcceptChanges();
  8934. row.SetAdded();
  8935. }
  8936. }
  8937. }
  8938. throw ex;
  8939. }
  8940. finally {
  8941. if (workConnOpened) {
  8942. workConnection.Close();
  8943. }
  8944. if ((this._bludaTableAdapter != null)) {
  8945. this._bludaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._bludaTableAdapter]));
  8946. this._bludaTableAdapter.Transaction = null;
  8947. }
  8948. if ((this._doljnostiTableAdapter != null)) {
  8949. this._doljnostiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._doljnostiTableAdapter]));
  8950. this._doljnostiTableAdapter.Transaction = null;
  8951. }
  8952. if ((this._polzovateliTableAdapter != null)) {
  8953. this._polzovateliTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._polzovateliTableAdapter]));
  8954. this._polzovateliTableAdapter.Transaction = null;
  8955. }
  8956. if ((this._smeniTableAdapter != null)) {
  8957. this._smeniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._smeniTableAdapter]));
  8958. this._smeniTableAdapter.Transaction = null;
  8959. }
  8960. if ((this._statusiPolzovateleyTableAdapter != null)) {
  8961. this._statusiPolzovateleyTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._statusiPolzovateleyTableAdapter]));
  8962. this._statusiPolzovateleyTableAdapter.Transaction = null;
  8963. }
  8964. if ((this._statusiZakazaTableAdapter != null)) {
  8965. this._statusiZakazaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._statusiZakazaTableAdapter]));
  8966. this._statusiZakazaTableAdapter.Transaction = null;
  8967. }
  8968. if ((this._stolikiTableAdapter != null)) {
  8969. this._stolikiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._stolikiTableAdapter]));
  8970. this._stolikiTableAdapter.Transaction = null;
  8971. }
  8972. if ((this._tipiOplatiTableAdapter != null)) {
  8973. this._tipiOplatiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tipiOplatiTableAdapter]));
  8974. this._tipiOplatiTableAdapter.Transaction = null;
  8975. }
  8976. if ((this._zakazannieBludaTableAdapter != null)) {
  8977. this._zakazannieBludaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._zakazannieBludaTableAdapter]));
  8978. this._zakazannieBludaTableAdapter.Transaction = null;
  8979. }
  8980. if ((this._zakaziTableAdapter != null)) {
  8981. this._zakaziTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._zakaziTableAdapter]));
  8982. this._zakaziTableAdapter.Transaction = null;
  8983. }
  8984. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  8985. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  8986. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  8987. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  8988. global::System.Data.Common.DataAdapter adapter = adapters[i];
  8989. adapter.AcceptChangesDuringUpdate = true;
  8990. }
  8991. }
  8992. }
  8993. return result;
  8994. }
  8995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8997. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  8998. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  8999. }
  9000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9002. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  9003. if ((this._connection != null)) {
  9004. return true;
  9005. }
  9006. if (((this.Connection == null)
  9007. || (inputConnection == null))) {
  9008. return true;
  9009. }
  9010. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  9011. return true;
  9012. }
  9013. return false;
  9014. }
  9015. /// <summary>
  9016. ///Update Order Option
  9017. ///</summary>
  9018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9019. public enum UpdateOrderOption {
  9020. InsertUpdateDelete = 0,
  9021. UpdateInsertDelete = 1,
  9022. }
  9023. /// <summary>
  9024. ///Used to sort self-referenced table's rows
  9025. ///</summary>
  9026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9027. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  9028. private global::System.Data.DataRelation _relation;
  9029. private int _childFirst;
  9030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9032. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  9033. this._relation = relation;
  9034. if (childFirst) {
  9035. this._childFirst = -1;
  9036. }
  9037. else {
  9038. this._childFirst = 1;
  9039. }
  9040. }
  9041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9043. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  9044. global::System.Diagnostics.Debug.Assert((row != null));
  9045. global::System.Data.DataRow root = row;
  9046. distance = 0;
  9047. 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>();
  9048. traversedRows[row] = row;
  9049. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  9050. for (
  9051. ; ((parent != null)
  9052. && (traversedRows.ContainsKey(parent) == false));
  9053. ) {
  9054. distance = (distance + 1);
  9055. root = parent;
  9056. traversedRows[parent] = parent;
  9057. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  9058. }
  9059. if ((distance == 0)) {
  9060. traversedRows.Clear();
  9061. traversedRows[row] = row;
  9062. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  9063. for (
  9064. ; ((parent != null)
  9065. && (traversedRows.ContainsKey(parent) == false));
  9066. ) {
  9067. distance = (distance + 1);
  9068. root = parent;
  9069. traversedRows[parent] = parent;
  9070. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  9071. }
  9072. }
  9073. return root;
  9074. }
  9075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9077. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  9078. if (object.ReferenceEquals(row1, row2)) {
  9079. return 0;
  9080. }
  9081. if ((row1 == null)) {
  9082. return -1;
  9083. }
  9084. if ((row2 == null)) {
  9085. return 1;
  9086. }
  9087. int distance1 = 0;
  9088. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  9089. int distance2 = 0;
  9090. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  9091. if (object.ReferenceEquals(root1, root2)) {
  9092. return (this._childFirst * distance1.CompareTo(distance2));
  9093. }
  9094. else {
  9095. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  9096. && (root2.Table != null)));
  9097. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  9098. return -1;
  9099. }
  9100. else {
  9101. return 1;
  9102. }
  9103. }
  9104. }
  9105. }
  9106. }
  9107. }
  9108. #pragma warning restore 1591