sporttovKNYDataSet.Designer.cs 548 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version:4.0.30319.42000
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace СУБД_Спортивные_товары {
  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("sporttovKNYDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class sporttovKNYDataSet : global::System.Data.DataSet {
  22. private CategoryDataTable tableCategory;
  23. private ManufacturerDataTable tableManufacturer;
  24. private OrderDataTable tableOrder;
  25. private OrderProductDataTable tableOrderProduct;
  26. private PickupPointDataTable tablePickupPoint;
  27. private ProductDataTable tableProduct;
  28. private ProviderDataTable tableProvider;
  29. private RoleDataTable tableRole;
  30. private UserDataTable tableUser;
  31. private global::System.Data.DataRelation relationFK_Order_PickupPoint;
  32. private global::System.Data.DataRelation relationFK_Order_User;
  33. private global::System.Data.DataRelation relationFK__OrderProd__Order__403A8C7D;
  34. private global::System.Data.DataRelation relationFK__OrderProd__Produ__412EB0B6;
  35. private global::System.Data.DataRelation relationFK_Product_Category;
  36. private global::System.Data.DataRelation relationFK_Product_Manufacturer;
  37. private global::System.Data.DataRelation relationFK_Product_Provider;
  38. private global::System.Data.DataRelation relationFK__User__UserRole__398D8EEE;
  39. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  40. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  41. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  42. public sporttovKNYDataSet() {
  43. this.BeginInit();
  44. this.InitClass();
  45. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  46. base.Tables.CollectionChanged += schemaChangedHandler;
  47. base.Relations.CollectionChanged += schemaChangedHandler;
  48. this.EndInit();
  49. }
  50. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  51. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  52. protected sporttovKNYDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  53. base(info, context, false) {
  54. if ((this.IsBinarySerialized(info, context) == true)) {
  55. this.InitVars(false);
  56. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  57. this.Tables.CollectionChanged += schemaChangedHandler1;
  58. this.Relations.CollectionChanged += schemaChangedHandler1;
  59. return;
  60. }
  61. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  62. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  63. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  64. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  65. if ((ds.Tables["Category"] != null)) {
  66. base.Tables.Add(new CategoryDataTable(ds.Tables["Category"]));
  67. }
  68. if ((ds.Tables["Manufacturer"] != null)) {
  69. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  70. }
  71. if ((ds.Tables["Order"] != null)) {
  72. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  73. }
  74. if ((ds.Tables["OrderProduct"] != null)) {
  75. base.Tables.Add(new OrderProductDataTable(ds.Tables["OrderProduct"]));
  76. }
  77. if ((ds.Tables["PickupPoint"] != null)) {
  78. base.Tables.Add(new PickupPointDataTable(ds.Tables["PickupPoint"]));
  79. }
  80. if ((ds.Tables["Product"] != null)) {
  81. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  82. }
  83. if ((ds.Tables["Provider"] != null)) {
  84. base.Tables.Add(new ProviderDataTable(ds.Tables["Provider"]));
  85. }
  86. if ((ds.Tables["Role"] != null)) {
  87. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  88. }
  89. if ((ds.Tables["User"] != null)) {
  90. base.Tables.Add(new UserDataTable(ds.Tables["User"]));
  91. }
  92. this.DataSetName = ds.DataSetName;
  93. this.Prefix = ds.Prefix;
  94. this.Namespace = ds.Namespace;
  95. this.Locale = ds.Locale;
  96. this.CaseSensitive = ds.CaseSensitive;
  97. this.EnforceConstraints = ds.EnforceConstraints;
  98. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  99. this.InitVars();
  100. }
  101. else {
  102. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  103. }
  104. this.GetSerializationData(info, context);
  105. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  106. base.Tables.CollectionChanged += schemaChangedHandler;
  107. this.Relations.CollectionChanged += schemaChangedHandler;
  108. }
  109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  111. [global::System.ComponentModel.Browsable(false)]
  112. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  113. public CategoryDataTable Category {
  114. get {
  115. return this.tableCategory;
  116. }
  117. }
  118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  120. [global::System.ComponentModel.Browsable(false)]
  121. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  122. public ManufacturerDataTable Manufacturer {
  123. get {
  124. return this.tableManufacturer;
  125. }
  126. }
  127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  129. [global::System.ComponentModel.Browsable(false)]
  130. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  131. public OrderDataTable Order {
  132. get {
  133. return this.tableOrder;
  134. }
  135. }
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  138. [global::System.ComponentModel.Browsable(false)]
  139. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  140. public OrderProductDataTable OrderProduct {
  141. get {
  142. return this.tableOrderProduct;
  143. }
  144. }
  145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  147. [global::System.ComponentModel.Browsable(false)]
  148. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  149. public PickupPointDataTable PickupPoint {
  150. get {
  151. return this.tablePickupPoint;
  152. }
  153. }
  154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  156. [global::System.ComponentModel.Browsable(false)]
  157. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  158. public ProductDataTable Product {
  159. get {
  160. return this.tableProduct;
  161. }
  162. }
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  165. [global::System.ComponentModel.Browsable(false)]
  166. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  167. public ProviderDataTable Provider {
  168. get {
  169. return this.tableProvider;
  170. }
  171. }
  172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  174. [global::System.ComponentModel.Browsable(false)]
  175. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  176. public RoleDataTable Role {
  177. get {
  178. return this.tableRole;
  179. }
  180. }
  181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  183. [global::System.ComponentModel.Browsable(false)]
  184. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  185. public UserDataTable User {
  186. get {
  187. return this.tableUser;
  188. }
  189. }
  190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  192. [global::System.ComponentModel.BrowsableAttribute(true)]
  193. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  194. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  195. get {
  196. return this._schemaSerializationMode;
  197. }
  198. set {
  199. this._schemaSerializationMode = value;
  200. }
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  204. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  205. public new global::System.Data.DataTableCollection Tables {
  206. get {
  207. return base.Tables;
  208. }
  209. }
  210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  212. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  213. public new global::System.Data.DataRelationCollection Relations {
  214. get {
  215. return base.Relations;
  216. }
  217. }
  218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  220. protected override void InitializeDerivedDataSet() {
  221. this.BeginInit();
  222. this.InitClass();
  223. this.EndInit();
  224. }
  225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  227. public override global::System.Data.DataSet Clone() {
  228. sporttovKNYDataSet cln = ((sporttovKNYDataSet)(base.Clone()));
  229. cln.InitVars();
  230. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  231. return cln;
  232. }
  233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  235. protected override bool ShouldSerializeTables() {
  236. return false;
  237. }
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  240. protected override bool ShouldSerializeRelations() {
  241. return false;
  242. }
  243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  245. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  246. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  247. this.Reset();
  248. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  249. ds.ReadXml(reader);
  250. if ((ds.Tables["Category"] != null)) {
  251. base.Tables.Add(new CategoryDataTable(ds.Tables["Category"]));
  252. }
  253. if ((ds.Tables["Manufacturer"] != null)) {
  254. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  255. }
  256. if ((ds.Tables["Order"] != null)) {
  257. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  258. }
  259. if ((ds.Tables["OrderProduct"] != null)) {
  260. base.Tables.Add(new OrderProductDataTable(ds.Tables["OrderProduct"]));
  261. }
  262. if ((ds.Tables["PickupPoint"] != null)) {
  263. base.Tables.Add(new PickupPointDataTable(ds.Tables["PickupPoint"]));
  264. }
  265. if ((ds.Tables["Product"] != null)) {
  266. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  267. }
  268. if ((ds.Tables["Provider"] != null)) {
  269. base.Tables.Add(new ProviderDataTable(ds.Tables["Provider"]));
  270. }
  271. if ((ds.Tables["Role"] != null)) {
  272. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  273. }
  274. if ((ds.Tables["User"] != null)) {
  275. base.Tables.Add(new UserDataTable(ds.Tables["User"]));
  276. }
  277. this.DataSetName = ds.DataSetName;
  278. this.Prefix = ds.Prefix;
  279. this.Namespace = ds.Namespace;
  280. this.Locale = ds.Locale;
  281. this.CaseSensitive = ds.CaseSensitive;
  282. this.EnforceConstraints = ds.EnforceConstraints;
  283. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  284. this.InitVars();
  285. }
  286. else {
  287. this.ReadXml(reader);
  288. this.InitVars();
  289. }
  290. }
  291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  293. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  294. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  295. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  296. stream.Position = 0;
  297. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  298. }
  299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  301. internal void InitVars() {
  302. this.InitVars(true);
  303. }
  304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  306. internal void InitVars(bool initTable) {
  307. this.tableCategory = ((CategoryDataTable)(base.Tables["Category"]));
  308. if ((initTable == true)) {
  309. if ((this.tableCategory != null)) {
  310. this.tableCategory.InitVars();
  311. }
  312. }
  313. this.tableManufacturer = ((ManufacturerDataTable)(base.Tables["Manufacturer"]));
  314. if ((initTable == true)) {
  315. if ((this.tableManufacturer != null)) {
  316. this.tableManufacturer.InitVars();
  317. }
  318. }
  319. this.tableOrder = ((OrderDataTable)(base.Tables["Order"]));
  320. if ((initTable == true)) {
  321. if ((this.tableOrder != null)) {
  322. this.tableOrder.InitVars();
  323. }
  324. }
  325. this.tableOrderProduct = ((OrderProductDataTable)(base.Tables["OrderProduct"]));
  326. if ((initTable == true)) {
  327. if ((this.tableOrderProduct != null)) {
  328. this.tableOrderProduct.InitVars();
  329. }
  330. }
  331. this.tablePickupPoint = ((PickupPointDataTable)(base.Tables["PickupPoint"]));
  332. if ((initTable == true)) {
  333. if ((this.tablePickupPoint != null)) {
  334. this.tablePickupPoint.InitVars();
  335. }
  336. }
  337. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  338. if ((initTable == true)) {
  339. if ((this.tableProduct != null)) {
  340. this.tableProduct.InitVars();
  341. }
  342. }
  343. this.tableProvider = ((ProviderDataTable)(base.Tables["Provider"]));
  344. if ((initTable == true)) {
  345. if ((this.tableProvider != null)) {
  346. this.tableProvider.InitVars();
  347. }
  348. }
  349. this.tableRole = ((RoleDataTable)(base.Tables["Role"]));
  350. if ((initTable == true)) {
  351. if ((this.tableRole != null)) {
  352. this.tableRole.InitVars();
  353. }
  354. }
  355. this.tableUser = ((UserDataTable)(base.Tables["User"]));
  356. if ((initTable == true)) {
  357. if ((this.tableUser != null)) {
  358. this.tableUser.InitVars();
  359. }
  360. }
  361. this.relationFK_Order_PickupPoint = this.Relations["FK_Order_PickupPoint"];
  362. this.relationFK_Order_User = this.Relations["FK_Order_User"];
  363. this.relationFK__OrderProd__Order__403A8C7D = this.Relations["FK__OrderProd__Order__403A8C7D"];
  364. this.relationFK__OrderProd__Produ__412EB0B6 = this.Relations["FK__OrderProd__Produ__412EB0B6"];
  365. this.relationFK_Product_Category = this.Relations["FK_Product_Category"];
  366. this.relationFK_Product_Manufacturer = this.Relations["FK_Product_Manufacturer"];
  367. this.relationFK_Product_Provider = this.Relations["FK_Product_Provider"];
  368. this.relationFK__User__UserRole__398D8EEE = this.Relations["FK__User__UserRole__398D8EEE"];
  369. }
  370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  372. private void InitClass() {
  373. this.DataSetName = "sporttovKNYDataSet";
  374. this.Prefix = "";
  375. this.Namespace = "http://tempuri.org/sporttovKNYDataSet.xsd";
  376. this.EnforceConstraints = true;
  377. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  378. this.tableCategory = new CategoryDataTable();
  379. base.Tables.Add(this.tableCategory);
  380. this.tableManufacturer = new ManufacturerDataTable();
  381. base.Tables.Add(this.tableManufacturer);
  382. this.tableOrder = new OrderDataTable();
  383. base.Tables.Add(this.tableOrder);
  384. this.tableOrderProduct = new OrderProductDataTable();
  385. base.Tables.Add(this.tableOrderProduct);
  386. this.tablePickupPoint = new PickupPointDataTable();
  387. base.Tables.Add(this.tablePickupPoint);
  388. this.tableProduct = new ProductDataTable();
  389. base.Tables.Add(this.tableProduct);
  390. this.tableProvider = new ProviderDataTable();
  391. base.Tables.Add(this.tableProvider);
  392. this.tableRole = new RoleDataTable();
  393. base.Tables.Add(this.tableRole);
  394. this.tableUser = new UserDataTable();
  395. base.Tables.Add(this.tableUser);
  396. this.relationFK_Order_PickupPoint = new global::System.Data.DataRelation("FK_Order_PickupPoint", new global::System.Data.DataColumn[] {
  397. this.tablePickupPoint.idPickupPointColumn}, new global::System.Data.DataColumn[] {
  398. this.tableOrder.OrderPickupPointColumn}, false);
  399. this.Relations.Add(this.relationFK_Order_PickupPoint);
  400. this.relationFK_Order_User = new global::System.Data.DataRelation("FK_Order_User", new global::System.Data.DataColumn[] {
  401. this.tableUser.UserIDColumn}, new global::System.Data.DataColumn[] {
  402. this.tableOrder.idUsersColumn}, false);
  403. this.Relations.Add(this.relationFK_Order_User);
  404. this.relationFK__OrderProd__Order__403A8C7D = new global::System.Data.DataRelation("FK__OrderProd__Order__403A8C7D", new global::System.Data.DataColumn[] {
  405. this.tableOrder.OrderIDColumn}, new global::System.Data.DataColumn[] {
  406. this.tableOrderProduct.OrderIDColumn}, false);
  407. this.Relations.Add(this.relationFK__OrderProd__Order__403A8C7D);
  408. this.relationFK__OrderProd__Produ__412EB0B6 = new global::System.Data.DataRelation("FK__OrderProd__Produ__412EB0B6", new global::System.Data.DataColumn[] {
  409. this.tableProduct.ProductArticleNumberColumn}, new global::System.Data.DataColumn[] {
  410. this.tableOrderProduct.ProductArticleNumberColumn}, false);
  411. this.Relations.Add(this.relationFK__OrderProd__Produ__412EB0B6);
  412. this.relationFK_Product_Category = new global::System.Data.DataRelation("FK_Product_Category", new global::System.Data.DataColumn[] {
  413. this.tableCategory.idCategoryColumn}, new global::System.Data.DataColumn[] {
  414. this.tableProduct.ProductCategoryColumn}, false);
  415. this.Relations.Add(this.relationFK_Product_Category);
  416. this.relationFK_Product_Manufacturer = new global::System.Data.DataRelation("FK_Product_Manufacturer", new global::System.Data.DataColumn[] {
  417. this.tableManufacturer.idManufacturerColumn}, new global::System.Data.DataColumn[] {
  418. this.tableProduct.ProductManufacturerColumn}, false);
  419. this.Relations.Add(this.relationFK_Product_Manufacturer);
  420. this.relationFK_Product_Provider = new global::System.Data.DataRelation("FK_Product_Provider", new global::System.Data.DataColumn[] {
  421. this.tableProvider.idProviderColumn}, new global::System.Data.DataColumn[] {
  422. this.tableProduct.ProductProviderColumn}, false);
  423. this.Relations.Add(this.relationFK_Product_Provider);
  424. this.relationFK__User__UserRole__398D8EEE = new global::System.Data.DataRelation("FK__User__UserRole__398D8EEE", new global::System.Data.DataColumn[] {
  425. this.tableRole.RoleIDColumn}, new global::System.Data.DataColumn[] {
  426. this.tableUser.UserRoleColumn}, false);
  427. this.Relations.Add(this.relationFK__User__UserRole__398D8EEE);
  428. }
  429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  431. private bool ShouldSerializeCategory() {
  432. return false;
  433. }
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  436. private bool ShouldSerializeManufacturer() {
  437. return false;
  438. }
  439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  441. private bool ShouldSerializeOrder() {
  442. return false;
  443. }
  444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  446. private bool ShouldSerializeOrderProduct() {
  447. return false;
  448. }
  449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  451. private bool ShouldSerializePickupPoint() {
  452. return false;
  453. }
  454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  456. private bool ShouldSerializeProduct() {
  457. return false;
  458. }
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  461. private bool ShouldSerializeProvider() {
  462. return false;
  463. }
  464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  466. private bool ShouldSerializeRole() {
  467. return false;
  468. }
  469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  471. private bool ShouldSerializeUser() {
  472. return false;
  473. }
  474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  476. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  477. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  478. this.InitVars();
  479. }
  480. }
  481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  483. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  484. sporttovKNYDataSet ds = new sporttovKNYDataSet();
  485. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  486. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  487. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  488. any.Namespace = ds.Namespace;
  489. sequence.Items.Add(any);
  490. type.Particle = sequence;
  491. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  492. if (xs.Contains(dsSchema.TargetNamespace)) {
  493. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  494. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  495. try {
  496. global::System.Xml.Schema.XmlSchema schema = null;
  497. dsSchema.Write(s1);
  498. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  499. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  500. s2.SetLength(0);
  501. schema.Write(s2);
  502. if ((s1.Length == s2.Length)) {
  503. s1.Position = 0;
  504. s2.Position = 0;
  505. for (; ((s1.Position != s1.Length)
  506. && (s1.ReadByte() == s2.ReadByte())); ) {
  507. ;
  508. }
  509. if ((s1.Position == s1.Length)) {
  510. return type;
  511. }
  512. }
  513. }
  514. }
  515. finally {
  516. if ((s1 != null)) {
  517. s1.Close();
  518. }
  519. if ((s2 != null)) {
  520. s2.Close();
  521. }
  522. }
  523. }
  524. xs.Add(dsSchema);
  525. return type;
  526. }
  527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  528. public delegate void CategoryRowChangeEventHandler(object sender, CategoryRowChangeEvent e);
  529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  530. public delegate void ManufacturerRowChangeEventHandler(object sender, ManufacturerRowChangeEvent e);
  531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  532. public delegate void OrderRowChangeEventHandler(object sender, OrderRowChangeEvent e);
  533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  534. public delegate void OrderProductRowChangeEventHandler(object sender, OrderProductRowChangeEvent e);
  535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  536. public delegate void PickupPointRowChangeEventHandler(object sender, PickupPointRowChangeEvent e);
  537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  538. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  540. public delegate void ProviderRowChangeEventHandler(object sender, ProviderRowChangeEvent e);
  541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  542. public delegate void RoleRowChangeEventHandler(object sender, RoleRowChangeEvent e);
  543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  544. public delegate void UserRowChangeEventHandler(object sender, UserRowChangeEvent e);
  545. /// <summary>
  546. ///Represents the strongly named DataTable class.
  547. ///</summary>
  548. [global::System.Serializable()]
  549. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  550. public partial class CategoryDataTable : global::System.Data.TypedTableBase<CategoryRow> {
  551. private global::System.Data.DataColumn columnidCategory;
  552. private global::System.Data.DataColumn columnCategoryName;
  553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  555. public CategoryDataTable() {
  556. this.TableName = "Category";
  557. this.BeginInit();
  558. this.InitClass();
  559. this.EndInit();
  560. }
  561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  563. internal CategoryDataTable(global::System.Data.DataTable table) {
  564. this.TableName = table.TableName;
  565. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  566. this.CaseSensitive = table.CaseSensitive;
  567. }
  568. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  569. this.Locale = table.Locale;
  570. }
  571. if ((table.Namespace != table.DataSet.Namespace)) {
  572. this.Namespace = table.Namespace;
  573. }
  574. this.Prefix = table.Prefix;
  575. this.MinimumCapacity = table.MinimumCapacity;
  576. }
  577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  579. protected CategoryDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  580. base(info, context) {
  581. this.InitVars();
  582. }
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  585. public global::System.Data.DataColumn idCategoryColumn {
  586. get {
  587. return this.columnidCategory;
  588. }
  589. }
  590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  592. public global::System.Data.DataColumn CategoryNameColumn {
  593. get {
  594. return this.columnCategoryName;
  595. }
  596. }
  597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  599. [global::System.ComponentModel.Browsable(false)]
  600. public int Count {
  601. get {
  602. return this.Rows.Count;
  603. }
  604. }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  607. public CategoryRow this[int index] {
  608. get {
  609. return ((CategoryRow)(this.Rows[index]));
  610. }
  611. }
  612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  613. public event CategoryRowChangeEventHandler CategoryRowChanging;
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  615. public event CategoryRowChangeEventHandler CategoryRowChanged;
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  617. public event CategoryRowChangeEventHandler CategoryRowDeleting;
  618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  619. public event CategoryRowChangeEventHandler CategoryRowDeleted;
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  622. public void AddCategoryRow(CategoryRow row) {
  623. this.Rows.Add(row);
  624. }
  625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  627. public CategoryRow AddCategoryRow(string CategoryName) {
  628. CategoryRow rowCategoryRow = ((CategoryRow)(this.NewRow()));
  629. object[] columnValuesArray = new object[] {
  630. null,
  631. CategoryName};
  632. rowCategoryRow.ItemArray = columnValuesArray;
  633. this.Rows.Add(rowCategoryRow);
  634. return rowCategoryRow;
  635. }
  636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  638. public CategoryRow FindByidCategory(int idCategory) {
  639. return ((CategoryRow)(this.Rows.Find(new object[] {
  640. idCategory})));
  641. }
  642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  644. public override global::System.Data.DataTable Clone() {
  645. CategoryDataTable cln = ((CategoryDataTable)(base.Clone()));
  646. cln.InitVars();
  647. return cln;
  648. }
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  651. protected override global::System.Data.DataTable CreateInstance() {
  652. return new CategoryDataTable();
  653. }
  654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  656. internal void InitVars() {
  657. this.columnidCategory = base.Columns["idCategory"];
  658. this.columnCategoryName = base.Columns["CategoryName"];
  659. }
  660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  662. private void InitClass() {
  663. this.columnidCategory = new global::System.Data.DataColumn("idCategory", typeof(int), null, global::System.Data.MappingType.Element);
  664. base.Columns.Add(this.columnidCategory);
  665. this.columnCategoryName = new global::System.Data.DataColumn("CategoryName", typeof(string), null, global::System.Data.MappingType.Element);
  666. base.Columns.Add(this.columnCategoryName);
  667. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  668. this.columnidCategory}, true));
  669. this.columnidCategory.AutoIncrement = true;
  670. this.columnidCategory.AutoIncrementSeed = -1;
  671. this.columnidCategory.AutoIncrementStep = -1;
  672. this.columnidCategory.AllowDBNull = false;
  673. this.columnidCategory.ReadOnly = true;
  674. this.columnidCategory.Unique = true;
  675. this.columnCategoryName.MaxLength = 50;
  676. }
  677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  679. public CategoryRow NewCategoryRow() {
  680. return ((CategoryRow)(this.NewRow()));
  681. }
  682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  684. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  685. return new CategoryRow(builder);
  686. }
  687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  689. protected override global::System.Type GetRowType() {
  690. return typeof(CategoryRow);
  691. }
  692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  694. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  695. base.OnRowChanged(e);
  696. if ((this.CategoryRowChanged != null)) {
  697. this.CategoryRowChanged(this, new CategoryRowChangeEvent(((CategoryRow)(e.Row)), e.Action));
  698. }
  699. }
  700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  702. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  703. base.OnRowChanging(e);
  704. if ((this.CategoryRowChanging != null)) {
  705. this.CategoryRowChanging(this, new CategoryRowChangeEvent(((CategoryRow)(e.Row)), e.Action));
  706. }
  707. }
  708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  710. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  711. base.OnRowDeleted(e);
  712. if ((this.CategoryRowDeleted != null)) {
  713. this.CategoryRowDeleted(this, new CategoryRowChangeEvent(((CategoryRow)(e.Row)), e.Action));
  714. }
  715. }
  716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  718. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  719. base.OnRowDeleting(e);
  720. if ((this.CategoryRowDeleting != null)) {
  721. this.CategoryRowDeleting(this, new CategoryRowChangeEvent(((CategoryRow)(e.Row)), e.Action));
  722. }
  723. }
  724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  726. public void RemoveCategoryRow(CategoryRow row) {
  727. this.Rows.Remove(row);
  728. }
  729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  731. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  732. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  733. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  734. sporttovKNYDataSet ds = new sporttovKNYDataSet();
  735. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  736. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  737. any1.MinOccurs = new decimal(0);
  738. any1.MaxOccurs = decimal.MaxValue;
  739. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  740. sequence.Items.Add(any1);
  741. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  742. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  743. any2.MinOccurs = new decimal(1);
  744. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  745. sequence.Items.Add(any2);
  746. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  747. attribute1.Name = "namespace";
  748. attribute1.FixedValue = ds.Namespace;
  749. type.Attributes.Add(attribute1);
  750. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  751. attribute2.Name = "tableTypeName";
  752. attribute2.FixedValue = "CategoryDataTable";
  753. type.Attributes.Add(attribute2);
  754. type.Particle = sequence;
  755. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  756. if (xs.Contains(dsSchema.TargetNamespace)) {
  757. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  758. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  759. try {
  760. global::System.Xml.Schema.XmlSchema schema = null;
  761. dsSchema.Write(s1);
  762. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  763. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  764. s2.SetLength(0);
  765. schema.Write(s2);
  766. if ((s1.Length == s2.Length)) {
  767. s1.Position = 0;
  768. s2.Position = 0;
  769. for (; ((s1.Position != s1.Length)
  770. && (s1.ReadByte() == s2.ReadByte())); ) {
  771. ;
  772. }
  773. if ((s1.Position == s1.Length)) {
  774. return type;
  775. }
  776. }
  777. }
  778. }
  779. finally {
  780. if ((s1 != null)) {
  781. s1.Close();
  782. }
  783. if ((s2 != null)) {
  784. s2.Close();
  785. }
  786. }
  787. }
  788. xs.Add(dsSchema);
  789. return type;
  790. }
  791. }
  792. /// <summary>
  793. ///Represents the strongly named DataTable class.
  794. ///</summary>
  795. [global::System.Serializable()]
  796. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  797. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  798. private global::System.Data.DataColumn columnidManufacturer;
  799. private global::System.Data.DataColumn columnManufacturerName;
  800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  802. public ManufacturerDataTable() {
  803. this.TableName = "Manufacturer";
  804. this.BeginInit();
  805. this.InitClass();
  806. this.EndInit();
  807. }
  808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  810. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  811. this.TableName = table.TableName;
  812. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  813. this.CaseSensitive = table.CaseSensitive;
  814. }
  815. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  816. this.Locale = table.Locale;
  817. }
  818. if ((table.Namespace != table.DataSet.Namespace)) {
  819. this.Namespace = table.Namespace;
  820. }
  821. this.Prefix = table.Prefix;
  822. this.MinimumCapacity = table.MinimumCapacity;
  823. }
  824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  826. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  827. base(info, context) {
  828. this.InitVars();
  829. }
  830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  832. public global::System.Data.DataColumn idManufacturerColumn {
  833. get {
  834. return this.columnidManufacturer;
  835. }
  836. }
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  839. public global::System.Data.DataColumn ManufacturerNameColumn {
  840. get {
  841. return this.columnManufacturerName;
  842. }
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  846. [global::System.ComponentModel.Browsable(false)]
  847. public int Count {
  848. get {
  849. return this.Rows.Count;
  850. }
  851. }
  852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  854. public ManufacturerRow this[int index] {
  855. get {
  856. return ((ManufacturerRow)(this.Rows[index]));
  857. }
  858. }
  859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  860. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  862. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  864. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  866. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  869. public void AddManufacturerRow(ManufacturerRow row) {
  870. this.Rows.Add(row);
  871. }
  872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  874. public ManufacturerRow AddManufacturerRow(string ManufacturerName) {
  875. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  876. object[] columnValuesArray = new object[] {
  877. null,
  878. ManufacturerName};
  879. rowManufacturerRow.ItemArray = columnValuesArray;
  880. this.Rows.Add(rowManufacturerRow);
  881. return rowManufacturerRow;
  882. }
  883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  885. public ManufacturerRow FindByidManufacturer(int idManufacturer) {
  886. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  887. idManufacturer})));
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  891. public override global::System.Data.DataTable Clone() {
  892. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  893. cln.InitVars();
  894. return cln;
  895. }
  896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  898. protected override global::System.Data.DataTable CreateInstance() {
  899. return new ManufacturerDataTable();
  900. }
  901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  903. internal void InitVars() {
  904. this.columnidManufacturer = base.Columns["idManufacturer"];
  905. this.columnManufacturerName = base.Columns["ManufacturerName"];
  906. }
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  909. private void InitClass() {
  910. this.columnidManufacturer = new global::System.Data.DataColumn("idManufacturer", typeof(int), null, global::System.Data.MappingType.Element);
  911. base.Columns.Add(this.columnidManufacturer);
  912. this.columnManufacturerName = new global::System.Data.DataColumn("ManufacturerName", typeof(string), null, global::System.Data.MappingType.Element);
  913. base.Columns.Add(this.columnManufacturerName);
  914. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  915. this.columnidManufacturer}, true));
  916. this.columnidManufacturer.AutoIncrement = true;
  917. this.columnidManufacturer.AutoIncrementSeed = -1;
  918. this.columnidManufacturer.AutoIncrementStep = -1;
  919. this.columnidManufacturer.AllowDBNull = false;
  920. this.columnidManufacturer.ReadOnly = true;
  921. this.columnidManufacturer.Unique = true;
  922. this.columnManufacturerName.MaxLength = 50;
  923. }
  924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  926. public ManufacturerRow NewManufacturerRow() {
  927. return ((ManufacturerRow)(this.NewRow()));
  928. }
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  931. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  932. return new ManufacturerRow(builder);
  933. }
  934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  936. protected override global::System.Type GetRowType() {
  937. return typeof(ManufacturerRow);
  938. }
  939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  941. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  942. base.OnRowChanged(e);
  943. if ((this.ManufacturerRowChanged != null)) {
  944. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  945. }
  946. }
  947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  949. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  950. base.OnRowChanging(e);
  951. if ((this.ManufacturerRowChanging != null)) {
  952. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  953. }
  954. }
  955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  957. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  958. base.OnRowDeleted(e);
  959. if ((this.ManufacturerRowDeleted != null)) {
  960. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  961. }
  962. }
  963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  965. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  966. base.OnRowDeleting(e);
  967. if ((this.ManufacturerRowDeleting != null)) {
  968. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  969. }
  970. }
  971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  973. public void RemoveManufacturerRow(ManufacturerRow row) {
  974. this.Rows.Remove(row);
  975. }
  976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  978. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  979. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  980. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  981. sporttovKNYDataSet ds = new sporttovKNYDataSet();
  982. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  983. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  984. any1.MinOccurs = new decimal(0);
  985. any1.MaxOccurs = decimal.MaxValue;
  986. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  987. sequence.Items.Add(any1);
  988. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  989. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  990. any2.MinOccurs = new decimal(1);
  991. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  992. sequence.Items.Add(any2);
  993. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  994. attribute1.Name = "namespace";
  995. attribute1.FixedValue = ds.Namespace;
  996. type.Attributes.Add(attribute1);
  997. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  998. attribute2.Name = "tableTypeName";
  999. attribute2.FixedValue = "ManufacturerDataTable";
  1000. type.Attributes.Add(attribute2);
  1001. type.Particle = sequence;
  1002. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1003. if (xs.Contains(dsSchema.TargetNamespace)) {
  1004. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1005. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1006. try {
  1007. global::System.Xml.Schema.XmlSchema schema = null;
  1008. dsSchema.Write(s1);
  1009. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1010. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1011. s2.SetLength(0);
  1012. schema.Write(s2);
  1013. if ((s1.Length == s2.Length)) {
  1014. s1.Position = 0;
  1015. s2.Position = 0;
  1016. for (; ((s1.Position != s1.Length)
  1017. && (s1.ReadByte() == s2.ReadByte())); ) {
  1018. ;
  1019. }
  1020. if ((s1.Position == s1.Length)) {
  1021. return type;
  1022. }
  1023. }
  1024. }
  1025. }
  1026. finally {
  1027. if ((s1 != null)) {
  1028. s1.Close();
  1029. }
  1030. if ((s2 != null)) {
  1031. s2.Close();
  1032. }
  1033. }
  1034. }
  1035. xs.Add(dsSchema);
  1036. return type;
  1037. }
  1038. }
  1039. /// <summary>
  1040. ///Represents the strongly named DataTable class.
  1041. ///</summary>
  1042. [global::System.Serializable()]
  1043. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1044. public partial class OrderDataTable : global::System.Data.TypedTableBase<OrderRow> {
  1045. private global::System.Data.DataColumn columnOrderID;
  1046. private global::System.Data.DataColumn columnOrderDate;
  1047. private global::System.Data.DataColumn columnOrderDeliveryDate;
  1048. private global::System.Data.DataColumn columnOrderPickupPoint;
  1049. private global::System.Data.DataColumn columnidUsers;
  1050. private global::System.Data.DataColumn columnCodeOrder;
  1051. private global::System.Data.DataColumn columnOrderStatus;
  1052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1054. public OrderDataTable() {
  1055. this.TableName = "Order";
  1056. this.BeginInit();
  1057. this.InitClass();
  1058. this.EndInit();
  1059. }
  1060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1062. internal OrderDataTable(global::System.Data.DataTable table) {
  1063. this.TableName = table.TableName;
  1064. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1065. this.CaseSensitive = table.CaseSensitive;
  1066. }
  1067. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1068. this.Locale = table.Locale;
  1069. }
  1070. if ((table.Namespace != table.DataSet.Namespace)) {
  1071. this.Namespace = table.Namespace;
  1072. }
  1073. this.Prefix = table.Prefix;
  1074. this.MinimumCapacity = table.MinimumCapacity;
  1075. }
  1076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1078. protected OrderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1079. base(info, context) {
  1080. this.InitVars();
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1084. public global::System.Data.DataColumn OrderIDColumn {
  1085. get {
  1086. return this.columnOrderID;
  1087. }
  1088. }
  1089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1091. public global::System.Data.DataColumn OrderDateColumn {
  1092. get {
  1093. return this.columnOrderDate;
  1094. }
  1095. }
  1096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1098. public global::System.Data.DataColumn OrderDeliveryDateColumn {
  1099. get {
  1100. return this.columnOrderDeliveryDate;
  1101. }
  1102. }
  1103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1105. public global::System.Data.DataColumn OrderPickupPointColumn {
  1106. get {
  1107. return this.columnOrderPickupPoint;
  1108. }
  1109. }
  1110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1112. public global::System.Data.DataColumn idUsersColumn {
  1113. get {
  1114. return this.columnidUsers;
  1115. }
  1116. }
  1117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1119. public global::System.Data.DataColumn CodeOrderColumn {
  1120. get {
  1121. return this.columnCodeOrder;
  1122. }
  1123. }
  1124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1126. public global::System.Data.DataColumn OrderStatusColumn {
  1127. get {
  1128. return this.columnOrderStatus;
  1129. }
  1130. }
  1131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1133. [global::System.ComponentModel.Browsable(false)]
  1134. public int Count {
  1135. get {
  1136. return this.Rows.Count;
  1137. }
  1138. }
  1139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1141. public OrderRow this[int index] {
  1142. get {
  1143. return ((OrderRow)(this.Rows[index]));
  1144. }
  1145. }
  1146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1147. public event OrderRowChangeEventHandler OrderRowChanging;
  1148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1149. public event OrderRowChangeEventHandler OrderRowChanged;
  1150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1151. public event OrderRowChangeEventHandler OrderRowDeleting;
  1152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1153. public event OrderRowChangeEventHandler OrderRowDeleted;
  1154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1156. public void AddOrderRow(OrderRow row) {
  1157. this.Rows.Add(row);
  1158. }
  1159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1161. public OrderRow AddOrderRow(System.DateTime OrderDate, System.DateTime OrderDeliveryDate, PickupPointRow parentPickupPointRowByFK_Order_PickupPoint, UserRow parentUserRowByFK_Order_User, string CodeOrder, string OrderStatus) {
  1162. OrderRow rowOrderRow = ((OrderRow)(this.NewRow()));
  1163. object[] columnValuesArray = new object[] {
  1164. null,
  1165. OrderDate,
  1166. OrderDeliveryDate,
  1167. null,
  1168. null,
  1169. CodeOrder,
  1170. OrderStatus};
  1171. if ((parentPickupPointRowByFK_Order_PickupPoint != null)) {
  1172. columnValuesArray[3] = parentPickupPointRowByFK_Order_PickupPoint[0];
  1173. }
  1174. if ((parentUserRowByFK_Order_User != null)) {
  1175. columnValuesArray[4] = parentUserRowByFK_Order_User[0];
  1176. }
  1177. rowOrderRow.ItemArray = columnValuesArray;
  1178. this.Rows.Add(rowOrderRow);
  1179. return rowOrderRow;
  1180. }
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1183. public OrderRow FindByOrderID(int OrderID) {
  1184. return ((OrderRow)(this.Rows.Find(new object[] {
  1185. OrderID})));
  1186. }
  1187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1189. public override global::System.Data.DataTable Clone() {
  1190. OrderDataTable cln = ((OrderDataTable)(base.Clone()));
  1191. cln.InitVars();
  1192. return cln;
  1193. }
  1194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1196. protected override global::System.Data.DataTable CreateInstance() {
  1197. return new OrderDataTable();
  1198. }
  1199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1201. internal void InitVars() {
  1202. this.columnOrderID = base.Columns["OrderID"];
  1203. this.columnOrderDate = base.Columns["OrderDate"];
  1204. this.columnOrderDeliveryDate = base.Columns["OrderDeliveryDate"];
  1205. this.columnOrderPickupPoint = base.Columns["OrderPickupPoint"];
  1206. this.columnidUsers = base.Columns["idUsers"];
  1207. this.columnCodeOrder = base.Columns["CodeOrder"];
  1208. this.columnOrderStatus = base.Columns["OrderStatus"];
  1209. }
  1210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1212. private void InitClass() {
  1213. this.columnOrderID = new global::System.Data.DataColumn("OrderID", typeof(int), null, global::System.Data.MappingType.Element);
  1214. base.Columns.Add(this.columnOrderID);
  1215. this.columnOrderDate = new global::System.Data.DataColumn("OrderDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1216. base.Columns.Add(this.columnOrderDate);
  1217. this.columnOrderDeliveryDate = new global::System.Data.DataColumn("OrderDeliveryDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1218. base.Columns.Add(this.columnOrderDeliveryDate);
  1219. this.columnOrderPickupPoint = new global::System.Data.DataColumn("OrderPickupPoint", typeof(int), null, global::System.Data.MappingType.Element);
  1220. base.Columns.Add(this.columnOrderPickupPoint);
  1221. this.columnidUsers = new global::System.Data.DataColumn("idUsers", typeof(int), null, global::System.Data.MappingType.Element);
  1222. base.Columns.Add(this.columnidUsers);
  1223. this.columnCodeOrder = new global::System.Data.DataColumn("CodeOrder", typeof(string), null, global::System.Data.MappingType.Element);
  1224. base.Columns.Add(this.columnCodeOrder);
  1225. this.columnOrderStatus = new global::System.Data.DataColumn("OrderStatus", typeof(string), null, global::System.Data.MappingType.Element);
  1226. base.Columns.Add(this.columnOrderStatus);
  1227. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1228. this.columnOrderID}, true));
  1229. this.columnOrderID.AutoIncrement = true;
  1230. this.columnOrderID.AutoIncrementSeed = -1;
  1231. this.columnOrderID.AutoIncrementStep = -1;
  1232. this.columnOrderID.AllowDBNull = false;
  1233. this.columnOrderID.ReadOnly = true;
  1234. this.columnOrderID.Unique = true;
  1235. this.columnOrderDeliveryDate.AllowDBNull = false;
  1236. this.columnOrderPickupPoint.AllowDBNull = false;
  1237. this.columnCodeOrder.MaxLength = 50;
  1238. this.columnOrderStatus.AllowDBNull = false;
  1239. this.columnOrderStatus.MaxLength = 2147483647;
  1240. }
  1241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1243. public OrderRow NewOrderRow() {
  1244. return ((OrderRow)(this.NewRow()));
  1245. }
  1246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1248. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1249. return new OrderRow(builder);
  1250. }
  1251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1253. protected override global::System.Type GetRowType() {
  1254. return typeof(OrderRow);
  1255. }
  1256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1258. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1259. base.OnRowChanged(e);
  1260. if ((this.OrderRowChanged != null)) {
  1261. this.OrderRowChanged(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1262. }
  1263. }
  1264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1266. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1267. base.OnRowChanging(e);
  1268. if ((this.OrderRowChanging != null)) {
  1269. this.OrderRowChanging(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1270. }
  1271. }
  1272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1274. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1275. base.OnRowDeleted(e);
  1276. if ((this.OrderRowDeleted != null)) {
  1277. this.OrderRowDeleted(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1278. }
  1279. }
  1280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1282. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1283. base.OnRowDeleting(e);
  1284. if ((this.OrderRowDeleting != null)) {
  1285. this.OrderRowDeleting(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1286. }
  1287. }
  1288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1290. public void RemoveOrderRow(OrderRow row) {
  1291. this.Rows.Remove(row);
  1292. }
  1293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1295. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1296. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1297. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1298. sporttovKNYDataSet ds = new sporttovKNYDataSet();
  1299. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1300. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1301. any1.MinOccurs = new decimal(0);
  1302. any1.MaxOccurs = decimal.MaxValue;
  1303. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1304. sequence.Items.Add(any1);
  1305. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1306. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1307. any2.MinOccurs = new decimal(1);
  1308. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1309. sequence.Items.Add(any2);
  1310. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1311. attribute1.Name = "namespace";
  1312. attribute1.FixedValue = ds.Namespace;
  1313. type.Attributes.Add(attribute1);
  1314. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1315. attribute2.Name = "tableTypeName";
  1316. attribute2.FixedValue = "OrderDataTable";
  1317. type.Attributes.Add(attribute2);
  1318. type.Particle = sequence;
  1319. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1320. if (xs.Contains(dsSchema.TargetNamespace)) {
  1321. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1322. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1323. try {
  1324. global::System.Xml.Schema.XmlSchema schema = null;
  1325. dsSchema.Write(s1);
  1326. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1327. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1328. s2.SetLength(0);
  1329. schema.Write(s2);
  1330. if ((s1.Length == s2.Length)) {
  1331. s1.Position = 0;
  1332. s2.Position = 0;
  1333. for (; ((s1.Position != s1.Length)
  1334. && (s1.ReadByte() == s2.ReadByte())); ) {
  1335. ;
  1336. }
  1337. if ((s1.Position == s1.Length)) {
  1338. return type;
  1339. }
  1340. }
  1341. }
  1342. }
  1343. finally {
  1344. if ((s1 != null)) {
  1345. s1.Close();
  1346. }
  1347. if ((s2 != null)) {
  1348. s2.Close();
  1349. }
  1350. }
  1351. }
  1352. xs.Add(dsSchema);
  1353. return type;
  1354. }
  1355. }
  1356. /// <summary>
  1357. ///Represents the strongly named DataTable class.
  1358. ///</summary>
  1359. [global::System.Serializable()]
  1360. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1361. public partial class OrderProductDataTable : global::System.Data.TypedTableBase<OrderProductRow> {
  1362. private global::System.Data.DataColumn columnidOrderProduct;
  1363. private global::System.Data.DataColumn columnOrderID;
  1364. private global::System.Data.DataColumn columnProductArticleNumber;
  1365. private global::System.Data.DataColumn columnCount;
  1366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1368. public OrderProductDataTable() {
  1369. this.TableName = "OrderProduct";
  1370. this.BeginInit();
  1371. this.InitClass();
  1372. this.EndInit();
  1373. }
  1374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1376. internal OrderProductDataTable(global::System.Data.DataTable table) {
  1377. this.TableName = table.TableName;
  1378. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1379. this.CaseSensitive = table.CaseSensitive;
  1380. }
  1381. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1382. this.Locale = table.Locale;
  1383. }
  1384. if ((table.Namespace != table.DataSet.Namespace)) {
  1385. this.Namespace = table.Namespace;
  1386. }
  1387. this.Prefix = table.Prefix;
  1388. this.MinimumCapacity = table.MinimumCapacity;
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1392. protected OrderProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1393. base(info, context) {
  1394. this.InitVars();
  1395. }
  1396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1398. public global::System.Data.DataColumn idOrderProductColumn {
  1399. get {
  1400. return this.columnidOrderProduct;
  1401. }
  1402. }
  1403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1405. public global::System.Data.DataColumn OrderIDColumn {
  1406. get {
  1407. return this.columnOrderID;
  1408. }
  1409. }
  1410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1412. public global::System.Data.DataColumn ProductArticleNumberColumn {
  1413. get {
  1414. return this.columnProductArticleNumber;
  1415. }
  1416. }
  1417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1419. public global::System.Data.DataColumn CountColumn {
  1420. get {
  1421. return this.columnCount;
  1422. }
  1423. }
  1424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1426. [global::System.ComponentModel.Browsable(false)]
  1427. public int Count {
  1428. get {
  1429. return this.Rows.Count;
  1430. }
  1431. }
  1432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1434. public OrderProductRow this[int index] {
  1435. get {
  1436. return ((OrderProductRow)(this.Rows[index]));
  1437. }
  1438. }
  1439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1440. public event OrderProductRowChangeEventHandler OrderProductRowChanging;
  1441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1442. public event OrderProductRowChangeEventHandler OrderProductRowChanged;
  1443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1444. public event OrderProductRowChangeEventHandler OrderProductRowDeleting;
  1445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1446. public event OrderProductRowChangeEventHandler OrderProductRowDeleted;
  1447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1449. public void AddOrderProductRow(OrderProductRow row) {
  1450. this.Rows.Add(row);
  1451. }
  1452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1454. public OrderProductRow AddOrderProductRow(OrderRow parentOrderRowByFK__OrderProd__Order__403A8C7D, ProductRow parentProductRowByFK__OrderProd__Produ__412EB0B6, int Count) {
  1455. OrderProductRow rowOrderProductRow = ((OrderProductRow)(this.NewRow()));
  1456. object[] columnValuesArray = new object[] {
  1457. null,
  1458. null,
  1459. null,
  1460. Count};
  1461. if ((parentOrderRowByFK__OrderProd__Order__403A8C7D != null)) {
  1462. columnValuesArray[1] = parentOrderRowByFK__OrderProd__Order__403A8C7D[0];
  1463. }
  1464. if ((parentProductRowByFK__OrderProd__Produ__412EB0B6 != null)) {
  1465. columnValuesArray[2] = parentProductRowByFK__OrderProd__Produ__412EB0B6[0];
  1466. }
  1467. rowOrderProductRow.ItemArray = columnValuesArray;
  1468. this.Rows.Add(rowOrderProductRow);
  1469. return rowOrderProductRow;
  1470. }
  1471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1473. public OrderProductRow FindByidOrderProduct(int idOrderProduct) {
  1474. return ((OrderProductRow)(this.Rows.Find(new object[] {
  1475. idOrderProduct})));
  1476. }
  1477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1479. public override global::System.Data.DataTable Clone() {
  1480. OrderProductDataTable cln = ((OrderProductDataTable)(base.Clone()));
  1481. cln.InitVars();
  1482. return cln;
  1483. }
  1484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1486. protected override global::System.Data.DataTable CreateInstance() {
  1487. return new OrderProductDataTable();
  1488. }
  1489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1491. internal void InitVars() {
  1492. this.columnidOrderProduct = base.Columns["idOrderProduct"];
  1493. this.columnOrderID = base.Columns["OrderID"];
  1494. this.columnProductArticleNumber = base.Columns["ProductArticleNumber"];
  1495. this.columnCount = base.Columns["Count"];
  1496. }
  1497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1499. private void InitClass() {
  1500. this.columnidOrderProduct = new global::System.Data.DataColumn("idOrderProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1501. base.Columns.Add(this.columnidOrderProduct);
  1502. this.columnOrderID = new global::System.Data.DataColumn("OrderID", typeof(int), null, global::System.Data.MappingType.Element);
  1503. base.Columns.Add(this.columnOrderID);
  1504. this.columnProductArticleNumber = new global::System.Data.DataColumn("ProductArticleNumber", typeof(string), null, global::System.Data.MappingType.Element);
  1505. base.Columns.Add(this.columnProductArticleNumber);
  1506. this.columnCount = new global::System.Data.DataColumn("Count", typeof(int), null, global::System.Data.MappingType.Element);
  1507. base.Columns.Add(this.columnCount);
  1508. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1509. this.columnidOrderProduct}, true));
  1510. this.columnidOrderProduct.AutoIncrement = true;
  1511. this.columnidOrderProduct.AutoIncrementSeed = -1;
  1512. this.columnidOrderProduct.AutoIncrementStep = -1;
  1513. this.columnidOrderProduct.AllowDBNull = false;
  1514. this.columnidOrderProduct.ReadOnly = true;
  1515. this.columnidOrderProduct.Unique = true;
  1516. this.columnOrderID.AllowDBNull = false;
  1517. this.columnProductArticleNumber.AllowDBNull = false;
  1518. this.columnProductArticleNumber.MaxLength = 100;
  1519. }
  1520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1522. public OrderProductRow NewOrderProductRow() {
  1523. return ((OrderProductRow)(this.NewRow()));
  1524. }
  1525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1527. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1528. return new OrderProductRow(builder);
  1529. }
  1530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1532. protected override global::System.Type GetRowType() {
  1533. return typeof(OrderProductRow);
  1534. }
  1535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1537. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1538. base.OnRowChanged(e);
  1539. if ((this.OrderProductRowChanged != null)) {
  1540. this.OrderProductRowChanged(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  1541. }
  1542. }
  1543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1545. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1546. base.OnRowChanging(e);
  1547. if ((this.OrderProductRowChanging != null)) {
  1548. this.OrderProductRowChanging(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  1549. }
  1550. }
  1551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1553. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1554. base.OnRowDeleted(e);
  1555. if ((this.OrderProductRowDeleted != null)) {
  1556. this.OrderProductRowDeleted(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  1557. }
  1558. }
  1559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1561. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1562. base.OnRowDeleting(e);
  1563. if ((this.OrderProductRowDeleting != null)) {
  1564. this.OrderProductRowDeleting(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  1565. }
  1566. }
  1567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1569. public void RemoveOrderProductRow(OrderProductRow row) {
  1570. this.Rows.Remove(row);
  1571. }
  1572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1574. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1575. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1576. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1577. sporttovKNYDataSet ds = new sporttovKNYDataSet();
  1578. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1579. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1580. any1.MinOccurs = new decimal(0);
  1581. any1.MaxOccurs = decimal.MaxValue;
  1582. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1583. sequence.Items.Add(any1);
  1584. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1585. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1586. any2.MinOccurs = new decimal(1);
  1587. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1588. sequence.Items.Add(any2);
  1589. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1590. attribute1.Name = "namespace";
  1591. attribute1.FixedValue = ds.Namespace;
  1592. type.Attributes.Add(attribute1);
  1593. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1594. attribute2.Name = "tableTypeName";
  1595. attribute2.FixedValue = "OrderProductDataTable";
  1596. type.Attributes.Add(attribute2);
  1597. type.Particle = sequence;
  1598. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1599. if (xs.Contains(dsSchema.TargetNamespace)) {
  1600. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1601. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1602. try {
  1603. global::System.Xml.Schema.XmlSchema schema = null;
  1604. dsSchema.Write(s1);
  1605. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1606. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1607. s2.SetLength(0);
  1608. schema.Write(s2);
  1609. if ((s1.Length == s2.Length)) {
  1610. s1.Position = 0;
  1611. s2.Position = 0;
  1612. for (; ((s1.Position != s1.Length)
  1613. && (s1.ReadByte() == s2.ReadByte())); ) {
  1614. ;
  1615. }
  1616. if ((s1.Position == s1.Length)) {
  1617. return type;
  1618. }
  1619. }
  1620. }
  1621. }
  1622. finally {
  1623. if ((s1 != null)) {
  1624. s1.Close();
  1625. }
  1626. if ((s2 != null)) {
  1627. s2.Close();
  1628. }
  1629. }
  1630. }
  1631. xs.Add(dsSchema);
  1632. return type;
  1633. }
  1634. }
  1635. /// <summary>
  1636. ///Represents the strongly named DataTable class.
  1637. ///</summary>
  1638. [global::System.Serializable()]
  1639. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1640. public partial class PickupPointDataTable : global::System.Data.TypedTableBase<PickupPointRow> {
  1641. private global::System.Data.DataColumn columnidPickupPoint;
  1642. private global::System.Data.DataColumn columnPickupPointName;
  1643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1645. public PickupPointDataTable() {
  1646. this.TableName = "PickupPoint";
  1647. this.BeginInit();
  1648. this.InitClass();
  1649. this.EndInit();
  1650. }
  1651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1653. internal PickupPointDataTable(global::System.Data.DataTable table) {
  1654. this.TableName = table.TableName;
  1655. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1656. this.CaseSensitive = table.CaseSensitive;
  1657. }
  1658. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1659. this.Locale = table.Locale;
  1660. }
  1661. if ((table.Namespace != table.DataSet.Namespace)) {
  1662. this.Namespace = table.Namespace;
  1663. }
  1664. this.Prefix = table.Prefix;
  1665. this.MinimumCapacity = table.MinimumCapacity;
  1666. }
  1667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1669. protected PickupPointDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1670. base(info, context) {
  1671. this.InitVars();
  1672. }
  1673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1675. public global::System.Data.DataColumn idPickupPointColumn {
  1676. get {
  1677. return this.columnidPickupPoint;
  1678. }
  1679. }
  1680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1682. public global::System.Data.DataColumn PickupPointNameColumn {
  1683. get {
  1684. return this.columnPickupPointName;
  1685. }
  1686. }
  1687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1689. [global::System.ComponentModel.Browsable(false)]
  1690. public int Count {
  1691. get {
  1692. return this.Rows.Count;
  1693. }
  1694. }
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1697. public PickupPointRow this[int index] {
  1698. get {
  1699. return ((PickupPointRow)(this.Rows[index]));
  1700. }
  1701. }
  1702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1703. public event PickupPointRowChangeEventHandler PickupPointRowChanging;
  1704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1705. public event PickupPointRowChangeEventHandler PickupPointRowChanged;
  1706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1707. public event PickupPointRowChangeEventHandler PickupPointRowDeleting;
  1708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1709. public event PickupPointRowChangeEventHandler PickupPointRowDeleted;
  1710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1712. public void AddPickupPointRow(PickupPointRow row) {
  1713. this.Rows.Add(row);
  1714. }
  1715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1717. public PickupPointRow AddPickupPointRow(string PickupPointName) {
  1718. PickupPointRow rowPickupPointRow = ((PickupPointRow)(this.NewRow()));
  1719. object[] columnValuesArray = new object[] {
  1720. null,
  1721. PickupPointName};
  1722. rowPickupPointRow.ItemArray = columnValuesArray;
  1723. this.Rows.Add(rowPickupPointRow);
  1724. return rowPickupPointRow;
  1725. }
  1726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1728. public PickupPointRow FindByidPickupPoint(int idPickupPoint) {
  1729. return ((PickupPointRow)(this.Rows.Find(new object[] {
  1730. idPickupPoint})));
  1731. }
  1732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1734. public override global::System.Data.DataTable Clone() {
  1735. PickupPointDataTable cln = ((PickupPointDataTable)(base.Clone()));
  1736. cln.InitVars();
  1737. return cln;
  1738. }
  1739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1741. protected override global::System.Data.DataTable CreateInstance() {
  1742. return new PickupPointDataTable();
  1743. }
  1744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1746. internal void InitVars() {
  1747. this.columnidPickupPoint = base.Columns["idPickupPoint"];
  1748. this.columnPickupPointName = base.Columns["PickupPointName"];
  1749. }
  1750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1752. private void InitClass() {
  1753. this.columnidPickupPoint = new global::System.Data.DataColumn("idPickupPoint", typeof(int), null, global::System.Data.MappingType.Element);
  1754. base.Columns.Add(this.columnidPickupPoint);
  1755. this.columnPickupPointName = new global::System.Data.DataColumn("PickupPointName", typeof(string), null, global::System.Data.MappingType.Element);
  1756. base.Columns.Add(this.columnPickupPointName);
  1757. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1758. this.columnidPickupPoint}, true));
  1759. this.columnidPickupPoint.AutoIncrement = true;
  1760. this.columnidPickupPoint.AutoIncrementSeed = -1;
  1761. this.columnidPickupPoint.AutoIncrementStep = -1;
  1762. this.columnidPickupPoint.AllowDBNull = false;
  1763. this.columnidPickupPoint.ReadOnly = true;
  1764. this.columnidPickupPoint.Unique = true;
  1765. this.columnPickupPointName.MaxLength = 2147483647;
  1766. }
  1767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1769. public PickupPointRow NewPickupPointRow() {
  1770. return ((PickupPointRow)(this.NewRow()));
  1771. }
  1772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1774. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1775. return new PickupPointRow(builder);
  1776. }
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1779. protected override global::System.Type GetRowType() {
  1780. return typeof(PickupPointRow);
  1781. }
  1782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1784. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1785. base.OnRowChanged(e);
  1786. if ((this.PickupPointRowChanged != null)) {
  1787. this.PickupPointRowChanged(this, new PickupPointRowChangeEvent(((PickupPointRow)(e.Row)), e.Action));
  1788. }
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1792. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1793. base.OnRowChanging(e);
  1794. if ((this.PickupPointRowChanging != null)) {
  1795. this.PickupPointRowChanging(this, new PickupPointRowChangeEvent(((PickupPointRow)(e.Row)), e.Action));
  1796. }
  1797. }
  1798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1800. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1801. base.OnRowDeleted(e);
  1802. if ((this.PickupPointRowDeleted != null)) {
  1803. this.PickupPointRowDeleted(this, new PickupPointRowChangeEvent(((PickupPointRow)(e.Row)), e.Action));
  1804. }
  1805. }
  1806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1808. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1809. base.OnRowDeleting(e);
  1810. if ((this.PickupPointRowDeleting != null)) {
  1811. this.PickupPointRowDeleting(this, new PickupPointRowChangeEvent(((PickupPointRow)(e.Row)), e.Action));
  1812. }
  1813. }
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1816. public void RemovePickupPointRow(PickupPointRow row) {
  1817. this.Rows.Remove(row);
  1818. }
  1819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1821. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1822. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1823. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1824. sporttovKNYDataSet ds = new sporttovKNYDataSet();
  1825. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1826. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1827. any1.MinOccurs = new decimal(0);
  1828. any1.MaxOccurs = decimal.MaxValue;
  1829. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1830. sequence.Items.Add(any1);
  1831. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1832. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1833. any2.MinOccurs = new decimal(1);
  1834. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1835. sequence.Items.Add(any2);
  1836. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1837. attribute1.Name = "namespace";
  1838. attribute1.FixedValue = ds.Namespace;
  1839. type.Attributes.Add(attribute1);
  1840. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1841. attribute2.Name = "tableTypeName";
  1842. attribute2.FixedValue = "PickupPointDataTable";
  1843. type.Attributes.Add(attribute2);
  1844. type.Particle = sequence;
  1845. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1846. if (xs.Contains(dsSchema.TargetNamespace)) {
  1847. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1848. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1849. try {
  1850. global::System.Xml.Schema.XmlSchema schema = null;
  1851. dsSchema.Write(s1);
  1852. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1853. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1854. s2.SetLength(0);
  1855. schema.Write(s2);
  1856. if ((s1.Length == s2.Length)) {
  1857. s1.Position = 0;
  1858. s2.Position = 0;
  1859. for (; ((s1.Position != s1.Length)
  1860. && (s1.ReadByte() == s2.ReadByte())); ) {
  1861. ;
  1862. }
  1863. if ((s1.Position == s1.Length)) {
  1864. return type;
  1865. }
  1866. }
  1867. }
  1868. }
  1869. finally {
  1870. if ((s1 != null)) {
  1871. s1.Close();
  1872. }
  1873. if ((s2 != null)) {
  1874. s2.Close();
  1875. }
  1876. }
  1877. }
  1878. xs.Add(dsSchema);
  1879. return type;
  1880. }
  1881. }
  1882. /// <summary>
  1883. ///Represents the strongly named DataTable class.
  1884. ///</summary>
  1885. [global::System.Serializable()]
  1886. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1887. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  1888. private global::System.Data.DataColumn columnProductArticleNumber;
  1889. private global::System.Data.DataColumn columnProductName;
  1890. private global::System.Data.DataColumn columnUnit;
  1891. private global::System.Data.DataColumn columnProductCost;
  1892. private global::System.Data.DataColumn columnProductDiscountMax;
  1893. private global::System.Data.DataColumn columnProductManufacturer;
  1894. private global::System.Data.DataColumn columnProductProvider;
  1895. private global::System.Data.DataColumn columnProductCategory;
  1896. private global::System.Data.DataColumn columnProductDiscountAmount;
  1897. private global::System.Data.DataColumn columnProductQuantityInStock;
  1898. private global::System.Data.DataColumn columnProductDescription;
  1899. private global::System.Data.DataColumn columnProductPhoto;
  1900. private global::System.Data.DataColumn columnProductStatus;
  1901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1903. public ProductDataTable() {
  1904. this.TableName = "Product";
  1905. this.BeginInit();
  1906. this.InitClass();
  1907. this.EndInit();
  1908. }
  1909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1911. internal ProductDataTable(global::System.Data.DataTable table) {
  1912. this.TableName = table.TableName;
  1913. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1914. this.CaseSensitive = table.CaseSensitive;
  1915. }
  1916. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1917. this.Locale = table.Locale;
  1918. }
  1919. if ((table.Namespace != table.DataSet.Namespace)) {
  1920. this.Namespace = table.Namespace;
  1921. }
  1922. this.Prefix = table.Prefix;
  1923. this.MinimumCapacity = table.MinimumCapacity;
  1924. }
  1925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1927. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1928. base(info, context) {
  1929. this.InitVars();
  1930. }
  1931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1933. public global::System.Data.DataColumn ProductArticleNumberColumn {
  1934. get {
  1935. return this.columnProductArticleNumber;
  1936. }
  1937. }
  1938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1940. public global::System.Data.DataColumn ProductNameColumn {
  1941. get {
  1942. return this.columnProductName;
  1943. }
  1944. }
  1945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1947. public global::System.Data.DataColumn UnitColumn {
  1948. get {
  1949. return this.columnUnit;
  1950. }
  1951. }
  1952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1954. public global::System.Data.DataColumn ProductCostColumn {
  1955. get {
  1956. return this.columnProductCost;
  1957. }
  1958. }
  1959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1961. public global::System.Data.DataColumn ProductDiscountMaxColumn {
  1962. get {
  1963. return this.columnProductDiscountMax;
  1964. }
  1965. }
  1966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1968. public global::System.Data.DataColumn ProductManufacturerColumn {
  1969. get {
  1970. return this.columnProductManufacturer;
  1971. }
  1972. }
  1973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1975. public global::System.Data.DataColumn ProductProviderColumn {
  1976. get {
  1977. return this.columnProductProvider;
  1978. }
  1979. }
  1980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1982. public global::System.Data.DataColumn ProductCategoryColumn {
  1983. get {
  1984. return this.columnProductCategory;
  1985. }
  1986. }
  1987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1989. public global::System.Data.DataColumn ProductDiscountAmountColumn {
  1990. get {
  1991. return this.columnProductDiscountAmount;
  1992. }
  1993. }
  1994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1996. public global::System.Data.DataColumn ProductQuantityInStockColumn {
  1997. get {
  1998. return this.columnProductQuantityInStock;
  1999. }
  2000. }
  2001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2003. public global::System.Data.DataColumn ProductDescriptionColumn {
  2004. get {
  2005. return this.columnProductDescription;
  2006. }
  2007. }
  2008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2010. public global::System.Data.DataColumn ProductPhotoColumn {
  2011. get {
  2012. return this.columnProductPhoto;
  2013. }
  2014. }
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2017. public global::System.Data.DataColumn ProductStatusColumn {
  2018. get {
  2019. return this.columnProductStatus;
  2020. }
  2021. }
  2022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2024. [global::System.ComponentModel.Browsable(false)]
  2025. public int Count {
  2026. get {
  2027. return this.Rows.Count;
  2028. }
  2029. }
  2030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2032. public ProductRow this[int index] {
  2033. get {
  2034. return ((ProductRow)(this.Rows[index]));
  2035. }
  2036. }
  2037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2038. public event ProductRowChangeEventHandler ProductRowChanging;
  2039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2040. public event ProductRowChangeEventHandler ProductRowChanged;
  2041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2042. public event ProductRowChangeEventHandler ProductRowDeleting;
  2043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2044. public event ProductRowChangeEventHandler ProductRowDeleted;
  2045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2047. public void AddProductRow(ProductRow row) {
  2048. this.Rows.Add(row);
  2049. }
  2050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2052. public ProductRow AddProductRow(string ProductArticleNumber, string ProductName, string Unit, decimal ProductCost, int ProductDiscountMax, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer, ProviderRow parentProviderRowByFK_Product_Provider, CategoryRow parentCategoryRowByFK_Product_Category, byte ProductDiscountAmount, int ProductQuantityInStock, string ProductDescription, string ProductPhoto, string ProductStatus) {
  2053. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2054. object[] columnValuesArray = new object[] {
  2055. ProductArticleNumber,
  2056. ProductName,
  2057. Unit,
  2058. ProductCost,
  2059. ProductDiscountMax,
  2060. null,
  2061. null,
  2062. null,
  2063. ProductDiscountAmount,
  2064. ProductQuantityInStock,
  2065. ProductDescription,
  2066. ProductPhoto,
  2067. ProductStatus};
  2068. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  2069. columnValuesArray[5] = parentManufacturerRowByFK_Product_Manufacturer[0];
  2070. }
  2071. if ((parentProviderRowByFK_Product_Provider != null)) {
  2072. columnValuesArray[6] = parentProviderRowByFK_Product_Provider[0];
  2073. }
  2074. if ((parentCategoryRowByFK_Product_Category != null)) {
  2075. columnValuesArray[7] = parentCategoryRowByFK_Product_Category[0];
  2076. }
  2077. rowProductRow.ItemArray = columnValuesArray;
  2078. this.Rows.Add(rowProductRow);
  2079. return rowProductRow;
  2080. }
  2081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2083. public ProductRow FindByProductArticleNumber(string ProductArticleNumber) {
  2084. return ((ProductRow)(this.Rows.Find(new object[] {
  2085. ProductArticleNumber})));
  2086. }
  2087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2089. public override global::System.Data.DataTable Clone() {
  2090. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2091. cln.InitVars();
  2092. return cln;
  2093. }
  2094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2096. protected override global::System.Data.DataTable CreateInstance() {
  2097. return new ProductDataTable();
  2098. }
  2099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2101. internal void InitVars() {
  2102. this.columnProductArticleNumber = base.Columns["ProductArticleNumber"];
  2103. this.columnProductName = base.Columns["ProductName"];
  2104. this.columnUnit = base.Columns["Unit"];
  2105. this.columnProductCost = base.Columns["ProductCost"];
  2106. this.columnProductDiscountMax = base.Columns["ProductDiscountMax"];
  2107. this.columnProductManufacturer = base.Columns["ProductManufacturer"];
  2108. this.columnProductProvider = base.Columns["ProductProvider"];
  2109. this.columnProductCategory = base.Columns["ProductCategory"];
  2110. this.columnProductDiscountAmount = base.Columns["ProductDiscountAmount"];
  2111. this.columnProductQuantityInStock = base.Columns["ProductQuantityInStock"];
  2112. this.columnProductDescription = base.Columns["ProductDescription"];
  2113. this.columnProductPhoto = base.Columns["ProductPhoto"];
  2114. this.columnProductStatus = base.Columns["ProductStatus"];
  2115. }
  2116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2118. private void InitClass() {
  2119. this.columnProductArticleNumber = new global::System.Data.DataColumn("ProductArticleNumber", typeof(string), null, global::System.Data.MappingType.Element);
  2120. base.Columns.Add(this.columnProductArticleNumber);
  2121. this.columnProductName = new global::System.Data.DataColumn("ProductName", typeof(string), null, global::System.Data.MappingType.Element);
  2122. base.Columns.Add(this.columnProductName);
  2123. this.columnUnit = new global::System.Data.DataColumn("Unit", typeof(string), null, global::System.Data.MappingType.Element);
  2124. base.Columns.Add(this.columnUnit);
  2125. this.columnProductCost = new global::System.Data.DataColumn("ProductCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2126. base.Columns.Add(this.columnProductCost);
  2127. this.columnProductDiscountMax = new global::System.Data.DataColumn("ProductDiscountMax", typeof(int), null, global::System.Data.MappingType.Element);
  2128. base.Columns.Add(this.columnProductDiscountMax);
  2129. this.columnProductManufacturer = new global::System.Data.DataColumn("ProductManufacturer", typeof(int), null, global::System.Data.MappingType.Element);
  2130. base.Columns.Add(this.columnProductManufacturer);
  2131. this.columnProductProvider = new global::System.Data.DataColumn("ProductProvider", typeof(int), null, global::System.Data.MappingType.Element);
  2132. base.Columns.Add(this.columnProductProvider);
  2133. this.columnProductCategory = new global::System.Data.DataColumn("ProductCategory", typeof(int), null, global::System.Data.MappingType.Element);
  2134. base.Columns.Add(this.columnProductCategory);
  2135. this.columnProductDiscountAmount = new global::System.Data.DataColumn("ProductDiscountAmount", typeof(byte), null, global::System.Data.MappingType.Element);
  2136. base.Columns.Add(this.columnProductDiscountAmount);
  2137. this.columnProductQuantityInStock = new global::System.Data.DataColumn("ProductQuantityInStock", typeof(int), null, global::System.Data.MappingType.Element);
  2138. base.Columns.Add(this.columnProductQuantityInStock);
  2139. this.columnProductDescription = new global::System.Data.DataColumn("ProductDescription", typeof(string), null, global::System.Data.MappingType.Element);
  2140. base.Columns.Add(this.columnProductDescription);
  2141. this.columnProductPhoto = new global::System.Data.DataColumn("ProductPhoto", typeof(string), null, global::System.Data.MappingType.Element);
  2142. base.Columns.Add(this.columnProductPhoto);
  2143. this.columnProductStatus = new global::System.Data.DataColumn("ProductStatus", typeof(string), null, global::System.Data.MappingType.Element);
  2144. base.Columns.Add(this.columnProductStatus);
  2145. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2146. this.columnProductArticleNumber}, true));
  2147. this.columnProductArticleNumber.AllowDBNull = false;
  2148. this.columnProductArticleNumber.Unique = true;
  2149. this.columnProductArticleNumber.MaxLength = 100;
  2150. this.columnProductName.AllowDBNull = false;
  2151. this.columnProductName.MaxLength = 2147483647;
  2152. this.columnUnit.MaxLength = 50;
  2153. this.columnProductCost.AllowDBNull = false;
  2154. this.columnProductManufacturer.AllowDBNull = false;
  2155. this.columnProductCategory.AllowDBNull = false;
  2156. this.columnProductQuantityInStock.AllowDBNull = false;
  2157. this.columnProductDescription.AllowDBNull = false;
  2158. this.columnProductDescription.MaxLength = 2147483647;
  2159. this.columnProductPhoto.MaxLength = 2147483647;
  2160. this.columnProductStatus.MaxLength = 2147483647;
  2161. }
  2162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2164. public ProductRow NewProductRow() {
  2165. return ((ProductRow)(this.NewRow()));
  2166. }
  2167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2169. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2170. return new ProductRow(builder);
  2171. }
  2172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2174. protected override global::System.Type GetRowType() {
  2175. return typeof(ProductRow);
  2176. }
  2177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2179. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2180. base.OnRowChanged(e);
  2181. if ((this.ProductRowChanged != null)) {
  2182. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2183. }
  2184. }
  2185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2187. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2188. base.OnRowChanging(e);
  2189. if ((this.ProductRowChanging != null)) {
  2190. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2191. }
  2192. }
  2193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2195. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2196. base.OnRowDeleted(e);
  2197. if ((this.ProductRowDeleted != null)) {
  2198. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2199. }
  2200. }
  2201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2203. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2204. base.OnRowDeleting(e);
  2205. if ((this.ProductRowDeleting != null)) {
  2206. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2207. }
  2208. }
  2209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2211. public void RemoveProductRow(ProductRow row) {
  2212. this.Rows.Remove(row);
  2213. }
  2214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2216. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2217. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2218. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2219. sporttovKNYDataSet ds = new sporttovKNYDataSet();
  2220. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2221. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2222. any1.MinOccurs = new decimal(0);
  2223. any1.MaxOccurs = decimal.MaxValue;
  2224. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2225. sequence.Items.Add(any1);
  2226. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2227. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2228. any2.MinOccurs = new decimal(1);
  2229. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2230. sequence.Items.Add(any2);
  2231. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2232. attribute1.Name = "namespace";
  2233. attribute1.FixedValue = ds.Namespace;
  2234. type.Attributes.Add(attribute1);
  2235. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2236. attribute2.Name = "tableTypeName";
  2237. attribute2.FixedValue = "ProductDataTable";
  2238. type.Attributes.Add(attribute2);
  2239. type.Particle = sequence;
  2240. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2241. if (xs.Contains(dsSchema.TargetNamespace)) {
  2242. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2243. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2244. try {
  2245. global::System.Xml.Schema.XmlSchema schema = null;
  2246. dsSchema.Write(s1);
  2247. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2248. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2249. s2.SetLength(0);
  2250. schema.Write(s2);
  2251. if ((s1.Length == s2.Length)) {
  2252. s1.Position = 0;
  2253. s2.Position = 0;
  2254. for (; ((s1.Position != s1.Length)
  2255. && (s1.ReadByte() == s2.ReadByte())); ) {
  2256. ;
  2257. }
  2258. if ((s1.Position == s1.Length)) {
  2259. return type;
  2260. }
  2261. }
  2262. }
  2263. }
  2264. finally {
  2265. if ((s1 != null)) {
  2266. s1.Close();
  2267. }
  2268. if ((s2 != null)) {
  2269. s2.Close();
  2270. }
  2271. }
  2272. }
  2273. xs.Add(dsSchema);
  2274. return type;
  2275. }
  2276. }
  2277. /// <summary>
  2278. ///Represents the strongly named DataTable class.
  2279. ///</summary>
  2280. [global::System.Serializable()]
  2281. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2282. public partial class ProviderDataTable : global::System.Data.TypedTableBase<ProviderRow> {
  2283. private global::System.Data.DataColumn columnidProvider;
  2284. private global::System.Data.DataColumn columnProviderName;
  2285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2287. public ProviderDataTable() {
  2288. this.TableName = "Provider";
  2289. this.BeginInit();
  2290. this.InitClass();
  2291. this.EndInit();
  2292. }
  2293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2295. internal ProviderDataTable(global::System.Data.DataTable table) {
  2296. this.TableName = table.TableName;
  2297. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2298. this.CaseSensitive = table.CaseSensitive;
  2299. }
  2300. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2301. this.Locale = table.Locale;
  2302. }
  2303. if ((table.Namespace != table.DataSet.Namespace)) {
  2304. this.Namespace = table.Namespace;
  2305. }
  2306. this.Prefix = table.Prefix;
  2307. this.MinimumCapacity = table.MinimumCapacity;
  2308. }
  2309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2311. protected ProviderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2312. base(info, context) {
  2313. this.InitVars();
  2314. }
  2315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2317. public global::System.Data.DataColumn idProviderColumn {
  2318. get {
  2319. return this.columnidProvider;
  2320. }
  2321. }
  2322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2324. public global::System.Data.DataColumn ProviderNameColumn {
  2325. get {
  2326. return this.columnProviderName;
  2327. }
  2328. }
  2329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2331. [global::System.ComponentModel.Browsable(false)]
  2332. public int Count {
  2333. get {
  2334. return this.Rows.Count;
  2335. }
  2336. }
  2337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2339. public ProviderRow this[int index] {
  2340. get {
  2341. return ((ProviderRow)(this.Rows[index]));
  2342. }
  2343. }
  2344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2345. public event ProviderRowChangeEventHandler ProviderRowChanging;
  2346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2347. public event ProviderRowChangeEventHandler ProviderRowChanged;
  2348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2349. public event ProviderRowChangeEventHandler ProviderRowDeleting;
  2350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2351. public event ProviderRowChangeEventHandler ProviderRowDeleted;
  2352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2354. public void AddProviderRow(ProviderRow row) {
  2355. this.Rows.Add(row);
  2356. }
  2357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2359. public ProviderRow AddProviderRow(string ProviderName) {
  2360. ProviderRow rowProviderRow = ((ProviderRow)(this.NewRow()));
  2361. object[] columnValuesArray = new object[] {
  2362. null,
  2363. ProviderName};
  2364. rowProviderRow.ItemArray = columnValuesArray;
  2365. this.Rows.Add(rowProviderRow);
  2366. return rowProviderRow;
  2367. }
  2368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2370. public ProviderRow FindByidProvider(int idProvider) {
  2371. return ((ProviderRow)(this.Rows.Find(new object[] {
  2372. idProvider})));
  2373. }
  2374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2376. public override global::System.Data.DataTable Clone() {
  2377. ProviderDataTable cln = ((ProviderDataTable)(base.Clone()));
  2378. cln.InitVars();
  2379. return cln;
  2380. }
  2381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2383. protected override global::System.Data.DataTable CreateInstance() {
  2384. return new ProviderDataTable();
  2385. }
  2386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2388. internal void InitVars() {
  2389. this.columnidProvider = base.Columns["idProvider"];
  2390. this.columnProviderName = base.Columns["ProviderName"];
  2391. }
  2392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2394. private void InitClass() {
  2395. this.columnidProvider = new global::System.Data.DataColumn("idProvider", typeof(int), null, global::System.Data.MappingType.Element);
  2396. base.Columns.Add(this.columnidProvider);
  2397. this.columnProviderName = new global::System.Data.DataColumn("ProviderName", typeof(string), null, global::System.Data.MappingType.Element);
  2398. base.Columns.Add(this.columnProviderName);
  2399. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2400. this.columnidProvider}, true));
  2401. this.columnidProvider.AutoIncrement = true;
  2402. this.columnidProvider.AutoIncrementSeed = -1;
  2403. this.columnidProvider.AutoIncrementStep = -1;
  2404. this.columnidProvider.AllowDBNull = false;
  2405. this.columnidProvider.ReadOnly = true;
  2406. this.columnidProvider.Unique = true;
  2407. this.columnProviderName.MaxLength = 50;
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2411. public ProviderRow NewProviderRow() {
  2412. return ((ProviderRow)(this.NewRow()));
  2413. }
  2414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2416. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2417. return new ProviderRow(builder);
  2418. }
  2419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2421. protected override global::System.Type GetRowType() {
  2422. return typeof(ProviderRow);
  2423. }
  2424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2426. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2427. base.OnRowChanged(e);
  2428. if ((this.ProviderRowChanged != null)) {
  2429. this.ProviderRowChanged(this, new ProviderRowChangeEvent(((ProviderRow)(e.Row)), e.Action));
  2430. }
  2431. }
  2432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2434. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2435. base.OnRowChanging(e);
  2436. if ((this.ProviderRowChanging != null)) {
  2437. this.ProviderRowChanging(this, new ProviderRowChangeEvent(((ProviderRow)(e.Row)), e.Action));
  2438. }
  2439. }
  2440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2442. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2443. base.OnRowDeleted(e);
  2444. if ((this.ProviderRowDeleted != null)) {
  2445. this.ProviderRowDeleted(this, new ProviderRowChangeEvent(((ProviderRow)(e.Row)), e.Action));
  2446. }
  2447. }
  2448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2450. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2451. base.OnRowDeleting(e);
  2452. if ((this.ProviderRowDeleting != null)) {
  2453. this.ProviderRowDeleting(this, new ProviderRowChangeEvent(((ProviderRow)(e.Row)), e.Action));
  2454. }
  2455. }
  2456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2458. public void RemoveProviderRow(ProviderRow row) {
  2459. this.Rows.Remove(row);
  2460. }
  2461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2463. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2464. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2465. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2466. sporttovKNYDataSet ds = new sporttovKNYDataSet();
  2467. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2468. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2469. any1.MinOccurs = new decimal(0);
  2470. any1.MaxOccurs = decimal.MaxValue;
  2471. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2472. sequence.Items.Add(any1);
  2473. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2474. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2475. any2.MinOccurs = new decimal(1);
  2476. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2477. sequence.Items.Add(any2);
  2478. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2479. attribute1.Name = "namespace";
  2480. attribute1.FixedValue = ds.Namespace;
  2481. type.Attributes.Add(attribute1);
  2482. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2483. attribute2.Name = "tableTypeName";
  2484. attribute2.FixedValue = "ProviderDataTable";
  2485. type.Attributes.Add(attribute2);
  2486. type.Particle = sequence;
  2487. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2488. if (xs.Contains(dsSchema.TargetNamespace)) {
  2489. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2490. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2491. try {
  2492. global::System.Xml.Schema.XmlSchema schema = null;
  2493. dsSchema.Write(s1);
  2494. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2495. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2496. s2.SetLength(0);
  2497. schema.Write(s2);
  2498. if ((s1.Length == s2.Length)) {
  2499. s1.Position = 0;
  2500. s2.Position = 0;
  2501. for (; ((s1.Position != s1.Length)
  2502. && (s1.ReadByte() == s2.ReadByte())); ) {
  2503. ;
  2504. }
  2505. if ((s1.Position == s1.Length)) {
  2506. return type;
  2507. }
  2508. }
  2509. }
  2510. }
  2511. finally {
  2512. if ((s1 != null)) {
  2513. s1.Close();
  2514. }
  2515. if ((s2 != null)) {
  2516. s2.Close();
  2517. }
  2518. }
  2519. }
  2520. xs.Add(dsSchema);
  2521. return type;
  2522. }
  2523. }
  2524. /// <summary>
  2525. ///Represents the strongly named DataTable class.
  2526. ///</summary>
  2527. [global::System.Serializable()]
  2528. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2529. public partial class RoleDataTable : global::System.Data.TypedTableBase<RoleRow> {
  2530. private global::System.Data.DataColumn columnRoleID;
  2531. private global::System.Data.DataColumn columnRoleName;
  2532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2534. public RoleDataTable() {
  2535. this.TableName = "Role";
  2536. this.BeginInit();
  2537. this.InitClass();
  2538. this.EndInit();
  2539. }
  2540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2542. internal RoleDataTable(global::System.Data.DataTable table) {
  2543. this.TableName = table.TableName;
  2544. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2545. this.CaseSensitive = table.CaseSensitive;
  2546. }
  2547. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2548. this.Locale = table.Locale;
  2549. }
  2550. if ((table.Namespace != table.DataSet.Namespace)) {
  2551. this.Namespace = table.Namespace;
  2552. }
  2553. this.Prefix = table.Prefix;
  2554. this.MinimumCapacity = table.MinimumCapacity;
  2555. }
  2556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2558. protected RoleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2559. base(info, context) {
  2560. this.InitVars();
  2561. }
  2562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2564. public global::System.Data.DataColumn RoleIDColumn {
  2565. get {
  2566. return this.columnRoleID;
  2567. }
  2568. }
  2569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2571. public global::System.Data.DataColumn RoleNameColumn {
  2572. get {
  2573. return this.columnRoleName;
  2574. }
  2575. }
  2576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2578. [global::System.ComponentModel.Browsable(false)]
  2579. public int Count {
  2580. get {
  2581. return this.Rows.Count;
  2582. }
  2583. }
  2584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2586. public RoleRow this[int index] {
  2587. get {
  2588. return ((RoleRow)(this.Rows[index]));
  2589. }
  2590. }
  2591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2592. public event RoleRowChangeEventHandler RoleRowChanging;
  2593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2594. public event RoleRowChangeEventHandler RoleRowChanged;
  2595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2596. public event RoleRowChangeEventHandler RoleRowDeleting;
  2597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2598. public event RoleRowChangeEventHandler RoleRowDeleted;
  2599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2601. public void AddRoleRow(RoleRow row) {
  2602. this.Rows.Add(row);
  2603. }
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2606. public RoleRow AddRoleRow(string RoleName) {
  2607. RoleRow rowRoleRow = ((RoleRow)(this.NewRow()));
  2608. object[] columnValuesArray = new object[] {
  2609. null,
  2610. RoleName};
  2611. rowRoleRow.ItemArray = columnValuesArray;
  2612. this.Rows.Add(rowRoleRow);
  2613. return rowRoleRow;
  2614. }
  2615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2617. public RoleRow FindByRoleID(int RoleID) {
  2618. return ((RoleRow)(this.Rows.Find(new object[] {
  2619. RoleID})));
  2620. }
  2621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2623. public override global::System.Data.DataTable Clone() {
  2624. RoleDataTable cln = ((RoleDataTable)(base.Clone()));
  2625. cln.InitVars();
  2626. return cln;
  2627. }
  2628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2630. protected override global::System.Data.DataTable CreateInstance() {
  2631. return new RoleDataTable();
  2632. }
  2633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2635. internal void InitVars() {
  2636. this.columnRoleID = base.Columns["RoleID"];
  2637. this.columnRoleName = base.Columns["RoleName"];
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2641. private void InitClass() {
  2642. this.columnRoleID = new global::System.Data.DataColumn("RoleID", typeof(int), null, global::System.Data.MappingType.Element);
  2643. base.Columns.Add(this.columnRoleID);
  2644. this.columnRoleName = new global::System.Data.DataColumn("RoleName", typeof(string), null, global::System.Data.MappingType.Element);
  2645. base.Columns.Add(this.columnRoleName);
  2646. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2647. this.columnRoleID}, true));
  2648. this.columnRoleID.AutoIncrement = true;
  2649. this.columnRoleID.AutoIncrementSeed = -1;
  2650. this.columnRoleID.AutoIncrementStep = -1;
  2651. this.columnRoleID.AllowDBNull = false;
  2652. this.columnRoleID.ReadOnly = true;
  2653. this.columnRoleID.Unique = true;
  2654. this.columnRoleName.AllowDBNull = false;
  2655. this.columnRoleName.MaxLength = 100;
  2656. }
  2657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2659. public RoleRow NewRoleRow() {
  2660. return ((RoleRow)(this.NewRow()));
  2661. }
  2662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2664. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2665. return new RoleRow(builder);
  2666. }
  2667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2669. protected override global::System.Type GetRowType() {
  2670. return typeof(RoleRow);
  2671. }
  2672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2674. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2675. base.OnRowChanged(e);
  2676. if ((this.RoleRowChanged != null)) {
  2677. this.RoleRowChanged(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2678. }
  2679. }
  2680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2682. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2683. base.OnRowChanging(e);
  2684. if ((this.RoleRowChanging != null)) {
  2685. this.RoleRowChanging(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2686. }
  2687. }
  2688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2690. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2691. base.OnRowDeleted(e);
  2692. if ((this.RoleRowDeleted != null)) {
  2693. this.RoleRowDeleted(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2694. }
  2695. }
  2696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2698. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2699. base.OnRowDeleting(e);
  2700. if ((this.RoleRowDeleting != null)) {
  2701. this.RoleRowDeleting(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2702. }
  2703. }
  2704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2706. public void RemoveRoleRow(RoleRow row) {
  2707. this.Rows.Remove(row);
  2708. }
  2709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2711. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2712. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2713. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2714. sporttovKNYDataSet ds = new sporttovKNYDataSet();
  2715. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2716. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2717. any1.MinOccurs = new decimal(0);
  2718. any1.MaxOccurs = decimal.MaxValue;
  2719. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2720. sequence.Items.Add(any1);
  2721. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2722. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2723. any2.MinOccurs = new decimal(1);
  2724. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2725. sequence.Items.Add(any2);
  2726. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2727. attribute1.Name = "namespace";
  2728. attribute1.FixedValue = ds.Namespace;
  2729. type.Attributes.Add(attribute1);
  2730. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2731. attribute2.Name = "tableTypeName";
  2732. attribute2.FixedValue = "RoleDataTable";
  2733. type.Attributes.Add(attribute2);
  2734. type.Particle = sequence;
  2735. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2736. if (xs.Contains(dsSchema.TargetNamespace)) {
  2737. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2738. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2739. try {
  2740. global::System.Xml.Schema.XmlSchema schema = null;
  2741. dsSchema.Write(s1);
  2742. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2743. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2744. s2.SetLength(0);
  2745. schema.Write(s2);
  2746. if ((s1.Length == s2.Length)) {
  2747. s1.Position = 0;
  2748. s2.Position = 0;
  2749. for (; ((s1.Position != s1.Length)
  2750. && (s1.ReadByte() == s2.ReadByte())); ) {
  2751. ;
  2752. }
  2753. if ((s1.Position == s1.Length)) {
  2754. return type;
  2755. }
  2756. }
  2757. }
  2758. }
  2759. finally {
  2760. if ((s1 != null)) {
  2761. s1.Close();
  2762. }
  2763. if ((s2 != null)) {
  2764. s2.Close();
  2765. }
  2766. }
  2767. }
  2768. xs.Add(dsSchema);
  2769. return type;
  2770. }
  2771. }
  2772. /// <summary>
  2773. ///Represents the strongly named DataTable class.
  2774. ///</summary>
  2775. [global::System.Serializable()]
  2776. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2777. public partial class UserDataTable : global::System.Data.TypedTableBase<UserRow> {
  2778. private global::System.Data.DataColumn columnUserID;
  2779. private global::System.Data.DataColumn columnUserRole;
  2780. private global::System.Data.DataColumn columnUserSurname;
  2781. private global::System.Data.DataColumn columnUserName;
  2782. private global::System.Data.DataColumn columnUserPatronymic;
  2783. private global::System.Data.DataColumn columnUserLogin;
  2784. private global::System.Data.DataColumn columnUserPassword;
  2785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2787. public UserDataTable() {
  2788. this.TableName = "User";
  2789. this.BeginInit();
  2790. this.InitClass();
  2791. this.EndInit();
  2792. }
  2793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2795. internal UserDataTable(global::System.Data.DataTable table) {
  2796. this.TableName = table.TableName;
  2797. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2798. this.CaseSensitive = table.CaseSensitive;
  2799. }
  2800. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2801. this.Locale = table.Locale;
  2802. }
  2803. if ((table.Namespace != table.DataSet.Namespace)) {
  2804. this.Namespace = table.Namespace;
  2805. }
  2806. this.Prefix = table.Prefix;
  2807. this.MinimumCapacity = table.MinimumCapacity;
  2808. }
  2809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2811. protected UserDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2812. base(info, context) {
  2813. this.InitVars();
  2814. }
  2815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2817. public global::System.Data.DataColumn UserIDColumn {
  2818. get {
  2819. return this.columnUserID;
  2820. }
  2821. }
  2822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2824. public global::System.Data.DataColumn UserRoleColumn {
  2825. get {
  2826. return this.columnUserRole;
  2827. }
  2828. }
  2829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2831. public global::System.Data.DataColumn UserSurnameColumn {
  2832. get {
  2833. return this.columnUserSurname;
  2834. }
  2835. }
  2836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2838. public global::System.Data.DataColumn UserNameColumn {
  2839. get {
  2840. return this.columnUserName;
  2841. }
  2842. }
  2843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2845. public global::System.Data.DataColumn UserPatronymicColumn {
  2846. get {
  2847. return this.columnUserPatronymic;
  2848. }
  2849. }
  2850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2852. public global::System.Data.DataColumn UserLoginColumn {
  2853. get {
  2854. return this.columnUserLogin;
  2855. }
  2856. }
  2857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2859. public global::System.Data.DataColumn UserPasswordColumn {
  2860. get {
  2861. return this.columnUserPassword;
  2862. }
  2863. }
  2864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2866. [global::System.ComponentModel.Browsable(false)]
  2867. public int Count {
  2868. get {
  2869. return this.Rows.Count;
  2870. }
  2871. }
  2872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2874. public UserRow this[int index] {
  2875. get {
  2876. return ((UserRow)(this.Rows[index]));
  2877. }
  2878. }
  2879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2880. public event UserRowChangeEventHandler UserRowChanging;
  2881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2882. public event UserRowChangeEventHandler UserRowChanged;
  2883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2884. public event UserRowChangeEventHandler UserRowDeleting;
  2885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2886. public event UserRowChangeEventHandler UserRowDeleted;
  2887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2889. public void AddUserRow(UserRow row) {
  2890. this.Rows.Add(row);
  2891. }
  2892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2894. public UserRow AddUserRow(RoleRow parentRoleRowByFK__User__UserRole__398D8EEE, string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword) {
  2895. UserRow rowUserRow = ((UserRow)(this.NewRow()));
  2896. object[] columnValuesArray = new object[] {
  2897. null,
  2898. null,
  2899. UserSurname,
  2900. UserName,
  2901. UserPatronymic,
  2902. UserLogin,
  2903. UserPassword};
  2904. if ((parentRoleRowByFK__User__UserRole__398D8EEE != null)) {
  2905. columnValuesArray[1] = parentRoleRowByFK__User__UserRole__398D8EEE[0];
  2906. }
  2907. rowUserRow.ItemArray = columnValuesArray;
  2908. this.Rows.Add(rowUserRow);
  2909. return rowUserRow;
  2910. }
  2911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2913. public UserRow FindByUserID(int UserID) {
  2914. return ((UserRow)(this.Rows.Find(new object[] {
  2915. UserID})));
  2916. }
  2917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2919. public override global::System.Data.DataTable Clone() {
  2920. UserDataTable cln = ((UserDataTable)(base.Clone()));
  2921. cln.InitVars();
  2922. return cln;
  2923. }
  2924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2926. protected override global::System.Data.DataTable CreateInstance() {
  2927. return new UserDataTable();
  2928. }
  2929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2931. internal void InitVars() {
  2932. this.columnUserID = base.Columns["UserID"];
  2933. this.columnUserRole = base.Columns["UserRole"];
  2934. this.columnUserSurname = base.Columns["UserSurname"];
  2935. this.columnUserName = base.Columns["UserName"];
  2936. this.columnUserPatronymic = base.Columns["UserPatronymic"];
  2937. this.columnUserLogin = base.Columns["UserLogin"];
  2938. this.columnUserPassword = base.Columns["UserPassword"];
  2939. }
  2940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2942. private void InitClass() {
  2943. this.columnUserID = new global::System.Data.DataColumn("UserID", typeof(int), null, global::System.Data.MappingType.Element);
  2944. base.Columns.Add(this.columnUserID);
  2945. this.columnUserRole = new global::System.Data.DataColumn("UserRole", typeof(int), null, global::System.Data.MappingType.Element);
  2946. base.Columns.Add(this.columnUserRole);
  2947. this.columnUserSurname = new global::System.Data.DataColumn("UserSurname", typeof(string), null, global::System.Data.MappingType.Element);
  2948. base.Columns.Add(this.columnUserSurname);
  2949. this.columnUserName = new global::System.Data.DataColumn("UserName", typeof(string), null, global::System.Data.MappingType.Element);
  2950. base.Columns.Add(this.columnUserName);
  2951. this.columnUserPatronymic = new global::System.Data.DataColumn("UserPatronymic", typeof(string), null, global::System.Data.MappingType.Element);
  2952. base.Columns.Add(this.columnUserPatronymic);
  2953. this.columnUserLogin = new global::System.Data.DataColumn("UserLogin", typeof(string), null, global::System.Data.MappingType.Element);
  2954. base.Columns.Add(this.columnUserLogin);
  2955. this.columnUserPassword = new global::System.Data.DataColumn("UserPassword", typeof(string), null, global::System.Data.MappingType.Element);
  2956. base.Columns.Add(this.columnUserPassword);
  2957. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2958. this.columnUserID}, true));
  2959. this.columnUserID.AutoIncrement = true;
  2960. this.columnUserID.AutoIncrementSeed = -1;
  2961. this.columnUserID.AutoIncrementStep = -1;
  2962. this.columnUserID.AllowDBNull = false;
  2963. this.columnUserID.ReadOnly = true;
  2964. this.columnUserID.Unique = true;
  2965. this.columnUserRole.AllowDBNull = false;
  2966. this.columnUserSurname.AllowDBNull = false;
  2967. this.columnUserSurname.MaxLength = 100;
  2968. this.columnUserName.AllowDBNull = false;
  2969. this.columnUserName.MaxLength = 100;
  2970. this.columnUserPatronymic.AllowDBNull = false;
  2971. this.columnUserPatronymic.MaxLength = 100;
  2972. this.columnUserLogin.AllowDBNull = false;
  2973. this.columnUserLogin.MaxLength = 2147483647;
  2974. this.columnUserPassword.AllowDBNull = false;
  2975. this.columnUserPassword.MaxLength = 2147483647;
  2976. }
  2977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2979. public UserRow NewUserRow() {
  2980. return ((UserRow)(this.NewRow()));
  2981. }
  2982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2984. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2985. return new UserRow(builder);
  2986. }
  2987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2989. protected override global::System.Type GetRowType() {
  2990. return typeof(UserRow);
  2991. }
  2992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2994. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2995. base.OnRowChanged(e);
  2996. if ((this.UserRowChanged != null)) {
  2997. this.UserRowChanged(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  2998. }
  2999. }
  3000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3002. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3003. base.OnRowChanging(e);
  3004. if ((this.UserRowChanging != null)) {
  3005. this.UserRowChanging(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  3006. }
  3007. }
  3008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3010. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3011. base.OnRowDeleted(e);
  3012. if ((this.UserRowDeleted != null)) {
  3013. this.UserRowDeleted(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  3014. }
  3015. }
  3016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3018. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3019. base.OnRowDeleting(e);
  3020. if ((this.UserRowDeleting != null)) {
  3021. this.UserRowDeleting(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  3022. }
  3023. }
  3024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3026. public void RemoveUserRow(UserRow row) {
  3027. this.Rows.Remove(row);
  3028. }
  3029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3031. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3032. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3033. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3034. sporttovKNYDataSet ds = new sporttovKNYDataSet();
  3035. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3036. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3037. any1.MinOccurs = new decimal(0);
  3038. any1.MaxOccurs = decimal.MaxValue;
  3039. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3040. sequence.Items.Add(any1);
  3041. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3042. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3043. any2.MinOccurs = new decimal(1);
  3044. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3045. sequence.Items.Add(any2);
  3046. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3047. attribute1.Name = "namespace";
  3048. attribute1.FixedValue = ds.Namespace;
  3049. type.Attributes.Add(attribute1);
  3050. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3051. attribute2.Name = "tableTypeName";
  3052. attribute2.FixedValue = "UserDataTable";
  3053. type.Attributes.Add(attribute2);
  3054. type.Particle = sequence;
  3055. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3056. if (xs.Contains(dsSchema.TargetNamespace)) {
  3057. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3058. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3059. try {
  3060. global::System.Xml.Schema.XmlSchema schema = null;
  3061. dsSchema.Write(s1);
  3062. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3063. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3064. s2.SetLength(0);
  3065. schema.Write(s2);
  3066. if ((s1.Length == s2.Length)) {
  3067. s1.Position = 0;
  3068. s2.Position = 0;
  3069. for (; ((s1.Position != s1.Length)
  3070. && (s1.ReadByte() == s2.ReadByte())); ) {
  3071. ;
  3072. }
  3073. if ((s1.Position == s1.Length)) {
  3074. return type;
  3075. }
  3076. }
  3077. }
  3078. }
  3079. finally {
  3080. if ((s1 != null)) {
  3081. s1.Close();
  3082. }
  3083. if ((s2 != null)) {
  3084. s2.Close();
  3085. }
  3086. }
  3087. }
  3088. xs.Add(dsSchema);
  3089. return type;
  3090. }
  3091. }
  3092. /// <summary>
  3093. ///Represents strongly named DataRow class.
  3094. ///</summary>
  3095. public partial class CategoryRow : global::System.Data.DataRow {
  3096. private CategoryDataTable tableCategory;
  3097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3099. internal CategoryRow(global::System.Data.DataRowBuilder rb) :
  3100. base(rb) {
  3101. this.tableCategory = ((CategoryDataTable)(this.Table));
  3102. }
  3103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3105. public int idCategory {
  3106. get {
  3107. return ((int)(this[this.tableCategory.idCategoryColumn]));
  3108. }
  3109. set {
  3110. this[this.tableCategory.idCategoryColumn] = value;
  3111. }
  3112. }
  3113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3115. public string CategoryName {
  3116. get {
  3117. try {
  3118. return ((string)(this[this.tableCategory.CategoryNameColumn]));
  3119. }
  3120. catch (global::System.InvalidCastException e) {
  3121. throw new global::System.Data.StrongTypingException("The value for column \'CategoryName\' in table \'Category\' is DBNull.", e);
  3122. }
  3123. }
  3124. set {
  3125. this[this.tableCategory.CategoryNameColumn] = value;
  3126. }
  3127. }
  3128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3130. public bool IsCategoryNameNull() {
  3131. return this.IsNull(this.tableCategory.CategoryNameColumn);
  3132. }
  3133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3135. public void SetCategoryNameNull() {
  3136. this[this.tableCategory.CategoryNameColumn] = global::System.Convert.DBNull;
  3137. }
  3138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3140. public ProductRow[] GetProductRows() {
  3141. if ((this.Table.ChildRelations["FK_Product_Category"] == null)) {
  3142. return new ProductRow[0];
  3143. }
  3144. else {
  3145. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Category"])));
  3146. }
  3147. }
  3148. }
  3149. /// <summary>
  3150. ///Represents strongly named DataRow class.
  3151. ///</summary>
  3152. public partial class ManufacturerRow : global::System.Data.DataRow {
  3153. private ManufacturerDataTable tableManufacturer;
  3154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3156. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  3157. base(rb) {
  3158. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  3159. }
  3160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3162. public int idManufacturer {
  3163. get {
  3164. return ((int)(this[this.tableManufacturer.idManufacturerColumn]));
  3165. }
  3166. set {
  3167. this[this.tableManufacturer.idManufacturerColumn] = value;
  3168. }
  3169. }
  3170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3172. public string ManufacturerName {
  3173. get {
  3174. try {
  3175. return ((string)(this[this.tableManufacturer.ManufacturerNameColumn]));
  3176. }
  3177. catch (global::System.InvalidCastException e) {
  3178. throw new global::System.Data.StrongTypingException("The value for column \'ManufacturerName\' in table \'Manufacturer\' is DBNull.", e);
  3179. }
  3180. }
  3181. set {
  3182. this[this.tableManufacturer.ManufacturerNameColumn] = value;
  3183. }
  3184. }
  3185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3187. public bool IsManufacturerNameNull() {
  3188. return this.IsNull(this.tableManufacturer.ManufacturerNameColumn);
  3189. }
  3190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3192. public void SetManufacturerNameNull() {
  3193. this[this.tableManufacturer.ManufacturerNameColumn] = global::System.Convert.DBNull;
  3194. }
  3195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3197. public ProductRow[] GetProductRows() {
  3198. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  3199. return new ProductRow[0];
  3200. }
  3201. else {
  3202. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  3203. }
  3204. }
  3205. }
  3206. /// <summary>
  3207. ///Represents strongly named DataRow class.
  3208. ///</summary>
  3209. public partial class OrderRow : global::System.Data.DataRow {
  3210. private OrderDataTable tableOrder;
  3211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3213. internal OrderRow(global::System.Data.DataRowBuilder rb) :
  3214. base(rb) {
  3215. this.tableOrder = ((OrderDataTable)(this.Table));
  3216. }
  3217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3219. public int OrderID {
  3220. get {
  3221. return ((int)(this[this.tableOrder.OrderIDColumn]));
  3222. }
  3223. set {
  3224. this[this.tableOrder.OrderIDColumn] = value;
  3225. }
  3226. }
  3227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3229. public System.DateTime OrderDate {
  3230. get {
  3231. try {
  3232. return ((global::System.DateTime)(this[this.tableOrder.OrderDateColumn]));
  3233. }
  3234. catch (global::System.InvalidCastException e) {
  3235. throw new global::System.Data.StrongTypingException("The value for column \'OrderDate\' in table \'Order\' is DBNull.", e);
  3236. }
  3237. }
  3238. set {
  3239. this[this.tableOrder.OrderDateColumn] = value;
  3240. }
  3241. }
  3242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3244. public System.DateTime OrderDeliveryDate {
  3245. get {
  3246. return ((global::System.DateTime)(this[this.tableOrder.OrderDeliveryDateColumn]));
  3247. }
  3248. set {
  3249. this[this.tableOrder.OrderDeliveryDateColumn] = value;
  3250. }
  3251. }
  3252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3254. public int OrderPickupPoint {
  3255. get {
  3256. return ((int)(this[this.tableOrder.OrderPickupPointColumn]));
  3257. }
  3258. set {
  3259. this[this.tableOrder.OrderPickupPointColumn] = value;
  3260. }
  3261. }
  3262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3264. public int idUsers {
  3265. get {
  3266. try {
  3267. return ((int)(this[this.tableOrder.idUsersColumn]));
  3268. }
  3269. catch (global::System.InvalidCastException e) {
  3270. throw new global::System.Data.StrongTypingException("The value for column \'idUsers\' in table \'Order\' is DBNull.", e);
  3271. }
  3272. }
  3273. set {
  3274. this[this.tableOrder.idUsersColumn] = value;
  3275. }
  3276. }
  3277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3279. public string CodeOrder {
  3280. get {
  3281. try {
  3282. return ((string)(this[this.tableOrder.CodeOrderColumn]));
  3283. }
  3284. catch (global::System.InvalidCastException e) {
  3285. throw new global::System.Data.StrongTypingException("The value for column \'CodeOrder\' in table \'Order\' is DBNull.", e);
  3286. }
  3287. }
  3288. set {
  3289. this[this.tableOrder.CodeOrderColumn] = value;
  3290. }
  3291. }
  3292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3294. public string OrderStatus {
  3295. get {
  3296. return ((string)(this[this.tableOrder.OrderStatusColumn]));
  3297. }
  3298. set {
  3299. this[this.tableOrder.OrderStatusColumn] = value;
  3300. }
  3301. }
  3302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3304. public PickupPointRow PickupPointRow {
  3305. get {
  3306. return ((PickupPointRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order_PickupPoint"])));
  3307. }
  3308. set {
  3309. this.SetParentRow(value, this.Table.ParentRelations["FK_Order_PickupPoint"]);
  3310. }
  3311. }
  3312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3314. public UserRow UserRow {
  3315. get {
  3316. return ((UserRow)(this.GetParentRow(this.Table.ParentRelations["FK_Order_User"])));
  3317. }
  3318. set {
  3319. this.SetParentRow(value, this.Table.ParentRelations["FK_Order_User"]);
  3320. }
  3321. }
  3322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3324. public bool IsOrderDateNull() {
  3325. return this.IsNull(this.tableOrder.OrderDateColumn);
  3326. }
  3327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3329. public void SetOrderDateNull() {
  3330. this[this.tableOrder.OrderDateColumn] = global::System.Convert.DBNull;
  3331. }
  3332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3334. public bool IsidUsersNull() {
  3335. return this.IsNull(this.tableOrder.idUsersColumn);
  3336. }
  3337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3339. public void SetidUsersNull() {
  3340. this[this.tableOrder.idUsersColumn] = global::System.Convert.DBNull;
  3341. }
  3342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3344. public bool IsCodeOrderNull() {
  3345. return this.IsNull(this.tableOrder.CodeOrderColumn);
  3346. }
  3347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3349. public void SetCodeOrderNull() {
  3350. this[this.tableOrder.CodeOrderColumn] = global::System.Convert.DBNull;
  3351. }
  3352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3354. public OrderProductRow[] GetOrderProductRows() {
  3355. if ((this.Table.ChildRelations["FK__OrderProd__Order__403A8C7D"] == null)) {
  3356. return new OrderProductRow[0];
  3357. }
  3358. else {
  3359. return ((OrderProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK__OrderProd__Order__403A8C7D"])));
  3360. }
  3361. }
  3362. }
  3363. /// <summary>
  3364. ///Represents strongly named DataRow class.
  3365. ///</summary>
  3366. public partial class OrderProductRow : global::System.Data.DataRow {
  3367. private OrderProductDataTable tableOrderProduct;
  3368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3370. internal OrderProductRow(global::System.Data.DataRowBuilder rb) :
  3371. base(rb) {
  3372. this.tableOrderProduct = ((OrderProductDataTable)(this.Table));
  3373. }
  3374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3376. public int idOrderProduct {
  3377. get {
  3378. return ((int)(this[this.tableOrderProduct.idOrderProductColumn]));
  3379. }
  3380. set {
  3381. this[this.tableOrderProduct.idOrderProductColumn] = value;
  3382. }
  3383. }
  3384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3386. public int OrderID {
  3387. get {
  3388. return ((int)(this[this.tableOrderProduct.OrderIDColumn]));
  3389. }
  3390. set {
  3391. this[this.tableOrderProduct.OrderIDColumn] = value;
  3392. }
  3393. }
  3394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3396. public string ProductArticleNumber {
  3397. get {
  3398. return ((string)(this[this.tableOrderProduct.ProductArticleNumberColumn]));
  3399. }
  3400. set {
  3401. this[this.tableOrderProduct.ProductArticleNumberColumn] = value;
  3402. }
  3403. }
  3404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3406. public int Count {
  3407. get {
  3408. try {
  3409. return ((int)(this[this.tableOrderProduct.CountColumn]));
  3410. }
  3411. catch (global::System.InvalidCastException e) {
  3412. throw new global::System.Data.StrongTypingException("The value for column \'Count\' in table \'OrderProduct\' is DBNull.", e);
  3413. }
  3414. }
  3415. set {
  3416. this[this.tableOrderProduct.CountColumn] = value;
  3417. }
  3418. }
  3419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3421. public OrderRow OrderRow {
  3422. get {
  3423. return ((OrderRow)(this.GetParentRow(this.Table.ParentRelations["FK__OrderProd__Order__403A8C7D"])));
  3424. }
  3425. set {
  3426. this.SetParentRow(value, this.Table.ParentRelations["FK__OrderProd__Order__403A8C7D"]);
  3427. }
  3428. }
  3429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3431. public ProductRow ProductRow {
  3432. get {
  3433. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK__OrderProd__Produ__412EB0B6"])));
  3434. }
  3435. set {
  3436. this.SetParentRow(value, this.Table.ParentRelations["FK__OrderProd__Produ__412EB0B6"]);
  3437. }
  3438. }
  3439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3441. public bool IsCountNull() {
  3442. return this.IsNull(this.tableOrderProduct.CountColumn);
  3443. }
  3444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3446. public void SetCountNull() {
  3447. this[this.tableOrderProduct.CountColumn] = global::System.Convert.DBNull;
  3448. }
  3449. }
  3450. /// <summary>
  3451. ///Represents strongly named DataRow class.
  3452. ///</summary>
  3453. public partial class PickupPointRow : global::System.Data.DataRow {
  3454. private PickupPointDataTable tablePickupPoint;
  3455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3457. internal PickupPointRow(global::System.Data.DataRowBuilder rb) :
  3458. base(rb) {
  3459. this.tablePickupPoint = ((PickupPointDataTable)(this.Table));
  3460. }
  3461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3463. public int idPickupPoint {
  3464. get {
  3465. return ((int)(this[this.tablePickupPoint.idPickupPointColumn]));
  3466. }
  3467. set {
  3468. this[this.tablePickupPoint.idPickupPointColumn] = value;
  3469. }
  3470. }
  3471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3473. public string PickupPointName {
  3474. get {
  3475. try {
  3476. return ((string)(this[this.tablePickupPoint.PickupPointNameColumn]));
  3477. }
  3478. catch (global::System.InvalidCastException e) {
  3479. throw new global::System.Data.StrongTypingException("The value for column \'PickupPointName\' in table \'PickupPoint\' is DBNull.", e);
  3480. }
  3481. }
  3482. set {
  3483. this[this.tablePickupPoint.PickupPointNameColumn] = value;
  3484. }
  3485. }
  3486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3488. public bool IsPickupPointNameNull() {
  3489. return this.IsNull(this.tablePickupPoint.PickupPointNameColumn);
  3490. }
  3491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3493. public void SetPickupPointNameNull() {
  3494. this[this.tablePickupPoint.PickupPointNameColumn] = global::System.Convert.DBNull;
  3495. }
  3496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3498. public OrderRow[] GetOrderRows() {
  3499. if ((this.Table.ChildRelations["FK_Order_PickupPoint"] == null)) {
  3500. return new OrderRow[0];
  3501. }
  3502. else {
  3503. return ((OrderRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Order_PickupPoint"])));
  3504. }
  3505. }
  3506. }
  3507. /// <summary>
  3508. ///Represents strongly named DataRow class.
  3509. ///</summary>
  3510. public partial class ProductRow : global::System.Data.DataRow {
  3511. private ProductDataTable tableProduct;
  3512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3514. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  3515. base(rb) {
  3516. this.tableProduct = ((ProductDataTable)(this.Table));
  3517. }
  3518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3520. public string ProductArticleNumber {
  3521. get {
  3522. return ((string)(this[this.tableProduct.ProductArticleNumberColumn]));
  3523. }
  3524. set {
  3525. this[this.tableProduct.ProductArticleNumberColumn] = value;
  3526. }
  3527. }
  3528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3530. public string ProductName {
  3531. get {
  3532. return ((string)(this[this.tableProduct.ProductNameColumn]));
  3533. }
  3534. set {
  3535. this[this.tableProduct.ProductNameColumn] = value;
  3536. }
  3537. }
  3538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3540. public string Unit {
  3541. get {
  3542. try {
  3543. return ((string)(this[this.tableProduct.UnitColumn]));
  3544. }
  3545. catch (global::System.InvalidCastException e) {
  3546. throw new global::System.Data.StrongTypingException("The value for column \'Unit\' in table \'Product\' is DBNull.", e);
  3547. }
  3548. }
  3549. set {
  3550. this[this.tableProduct.UnitColumn] = value;
  3551. }
  3552. }
  3553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3555. public decimal ProductCost {
  3556. get {
  3557. return ((decimal)(this[this.tableProduct.ProductCostColumn]));
  3558. }
  3559. set {
  3560. this[this.tableProduct.ProductCostColumn] = value;
  3561. }
  3562. }
  3563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3565. public int ProductDiscountMax {
  3566. get {
  3567. try {
  3568. return ((int)(this[this.tableProduct.ProductDiscountMaxColumn]));
  3569. }
  3570. catch (global::System.InvalidCastException e) {
  3571. throw new global::System.Data.StrongTypingException("The value for column \'ProductDiscountMax\' in table \'Product\' is DBNull.", e);
  3572. }
  3573. }
  3574. set {
  3575. this[this.tableProduct.ProductDiscountMaxColumn] = value;
  3576. }
  3577. }
  3578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3580. public int ProductManufacturer {
  3581. get {
  3582. return ((int)(this[this.tableProduct.ProductManufacturerColumn]));
  3583. }
  3584. set {
  3585. this[this.tableProduct.ProductManufacturerColumn] = value;
  3586. }
  3587. }
  3588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3590. public int ProductProvider {
  3591. get {
  3592. try {
  3593. return ((int)(this[this.tableProduct.ProductProviderColumn]));
  3594. }
  3595. catch (global::System.InvalidCastException e) {
  3596. throw new global::System.Data.StrongTypingException("The value for column \'ProductProvider\' in table \'Product\' is DBNull.", e);
  3597. }
  3598. }
  3599. set {
  3600. this[this.tableProduct.ProductProviderColumn] = value;
  3601. }
  3602. }
  3603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3605. public int ProductCategory {
  3606. get {
  3607. return ((int)(this[this.tableProduct.ProductCategoryColumn]));
  3608. }
  3609. set {
  3610. this[this.tableProduct.ProductCategoryColumn] = value;
  3611. }
  3612. }
  3613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3615. public byte ProductDiscountAmount {
  3616. get {
  3617. try {
  3618. return ((byte)(this[this.tableProduct.ProductDiscountAmountColumn]));
  3619. }
  3620. catch (global::System.InvalidCastException e) {
  3621. throw new global::System.Data.StrongTypingException("The value for column \'ProductDiscountAmount\' in table \'Product\' is DBNull.", e);
  3622. }
  3623. }
  3624. set {
  3625. this[this.tableProduct.ProductDiscountAmountColumn] = value;
  3626. }
  3627. }
  3628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3630. public int ProductQuantityInStock {
  3631. get {
  3632. return ((int)(this[this.tableProduct.ProductQuantityInStockColumn]));
  3633. }
  3634. set {
  3635. this[this.tableProduct.ProductQuantityInStockColumn] = value;
  3636. }
  3637. }
  3638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3640. public string ProductDescription {
  3641. get {
  3642. return ((string)(this[this.tableProduct.ProductDescriptionColumn]));
  3643. }
  3644. set {
  3645. this[this.tableProduct.ProductDescriptionColumn] = value;
  3646. }
  3647. }
  3648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3650. public string ProductPhoto {
  3651. get {
  3652. try {
  3653. return ((string)(this[this.tableProduct.ProductPhotoColumn]));
  3654. }
  3655. catch (global::System.InvalidCastException e) {
  3656. throw new global::System.Data.StrongTypingException("The value for column \'ProductPhoto\' in table \'Product\' is DBNull.", e);
  3657. }
  3658. }
  3659. set {
  3660. this[this.tableProduct.ProductPhotoColumn] = value;
  3661. }
  3662. }
  3663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3665. public string ProductStatus {
  3666. get {
  3667. try {
  3668. return ((string)(this[this.tableProduct.ProductStatusColumn]));
  3669. }
  3670. catch (global::System.InvalidCastException e) {
  3671. throw new global::System.Data.StrongTypingException("The value for column \'ProductStatus\' in table \'Product\' is DBNull.", e);
  3672. }
  3673. }
  3674. set {
  3675. this[this.tableProduct.ProductStatusColumn] = value;
  3676. }
  3677. }
  3678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3680. public CategoryRow CategoryRow {
  3681. get {
  3682. return ((CategoryRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Category"])));
  3683. }
  3684. set {
  3685. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Category"]);
  3686. }
  3687. }
  3688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3690. public ManufacturerRow ManufacturerRow {
  3691. get {
  3692. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  3693. }
  3694. set {
  3695. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  3696. }
  3697. }
  3698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3700. public ProviderRow ProviderRow {
  3701. get {
  3702. return ((ProviderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Provider"])));
  3703. }
  3704. set {
  3705. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Provider"]);
  3706. }
  3707. }
  3708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3710. public bool IsUnitNull() {
  3711. return this.IsNull(this.tableProduct.UnitColumn);
  3712. }
  3713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3715. public void SetUnitNull() {
  3716. this[this.tableProduct.UnitColumn] = global::System.Convert.DBNull;
  3717. }
  3718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3720. public bool IsProductDiscountMaxNull() {
  3721. return this.IsNull(this.tableProduct.ProductDiscountMaxColumn);
  3722. }
  3723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3725. public void SetProductDiscountMaxNull() {
  3726. this[this.tableProduct.ProductDiscountMaxColumn] = global::System.Convert.DBNull;
  3727. }
  3728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3730. public bool IsProductProviderNull() {
  3731. return this.IsNull(this.tableProduct.ProductProviderColumn);
  3732. }
  3733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3735. public void SetProductProviderNull() {
  3736. this[this.tableProduct.ProductProviderColumn] = global::System.Convert.DBNull;
  3737. }
  3738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3740. public bool IsProductDiscountAmountNull() {
  3741. return this.IsNull(this.tableProduct.ProductDiscountAmountColumn);
  3742. }
  3743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3745. public void SetProductDiscountAmountNull() {
  3746. this[this.tableProduct.ProductDiscountAmountColumn] = global::System.Convert.DBNull;
  3747. }
  3748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3750. public bool IsProductPhotoNull() {
  3751. return this.IsNull(this.tableProduct.ProductPhotoColumn);
  3752. }
  3753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3755. public void SetProductPhotoNull() {
  3756. this[this.tableProduct.ProductPhotoColumn] = global::System.Convert.DBNull;
  3757. }
  3758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3760. public bool IsProductStatusNull() {
  3761. return this.IsNull(this.tableProduct.ProductStatusColumn);
  3762. }
  3763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3765. public void SetProductStatusNull() {
  3766. this[this.tableProduct.ProductStatusColumn] = global::System.Convert.DBNull;
  3767. }
  3768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3770. public OrderProductRow[] GetOrderProductRows() {
  3771. if ((this.Table.ChildRelations["FK__OrderProd__Produ__412EB0B6"] == null)) {
  3772. return new OrderProductRow[0];
  3773. }
  3774. else {
  3775. return ((OrderProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK__OrderProd__Produ__412EB0B6"])));
  3776. }
  3777. }
  3778. }
  3779. /// <summary>
  3780. ///Represents strongly named DataRow class.
  3781. ///</summary>
  3782. public partial class ProviderRow : global::System.Data.DataRow {
  3783. private ProviderDataTable tableProvider;
  3784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3786. internal ProviderRow(global::System.Data.DataRowBuilder rb) :
  3787. base(rb) {
  3788. this.tableProvider = ((ProviderDataTable)(this.Table));
  3789. }
  3790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3792. public int idProvider {
  3793. get {
  3794. return ((int)(this[this.tableProvider.idProviderColumn]));
  3795. }
  3796. set {
  3797. this[this.tableProvider.idProviderColumn] = value;
  3798. }
  3799. }
  3800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3802. public string ProviderName {
  3803. get {
  3804. try {
  3805. return ((string)(this[this.tableProvider.ProviderNameColumn]));
  3806. }
  3807. catch (global::System.InvalidCastException e) {
  3808. throw new global::System.Data.StrongTypingException("The value for column \'ProviderName\' in table \'Provider\' is DBNull.", e);
  3809. }
  3810. }
  3811. set {
  3812. this[this.tableProvider.ProviderNameColumn] = value;
  3813. }
  3814. }
  3815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3817. public bool IsProviderNameNull() {
  3818. return this.IsNull(this.tableProvider.ProviderNameColumn);
  3819. }
  3820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3822. public void SetProviderNameNull() {
  3823. this[this.tableProvider.ProviderNameColumn] = global::System.Convert.DBNull;
  3824. }
  3825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3827. public ProductRow[] GetProductRows() {
  3828. if ((this.Table.ChildRelations["FK_Product_Provider"] == null)) {
  3829. return new ProductRow[0];
  3830. }
  3831. else {
  3832. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Provider"])));
  3833. }
  3834. }
  3835. }
  3836. /// <summary>
  3837. ///Represents strongly named DataRow class.
  3838. ///</summary>
  3839. public partial class RoleRow : global::System.Data.DataRow {
  3840. private RoleDataTable tableRole;
  3841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3843. internal RoleRow(global::System.Data.DataRowBuilder rb) :
  3844. base(rb) {
  3845. this.tableRole = ((RoleDataTable)(this.Table));
  3846. }
  3847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3849. public int RoleID {
  3850. get {
  3851. return ((int)(this[this.tableRole.RoleIDColumn]));
  3852. }
  3853. set {
  3854. this[this.tableRole.RoleIDColumn] = value;
  3855. }
  3856. }
  3857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3859. public string RoleName {
  3860. get {
  3861. return ((string)(this[this.tableRole.RoleNameColumn]));
  3862. }
  3863. set {
  3864. this[this.tableRole.RoleNameColumn] = value;
  3865. }
  3866. }
  3867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3869. public UserRow[] GetUserRows() {
  3870. if ((this.Table.ChildRelations["FK__User__UserRole__398D8EEE"] == null)) {
  3871. return new UserRow[0];
  3872. }
  3873. else {
  3874. return ((UserRow[])(base.GetChildRows(this.Table.ChildRelations["FK__User__UserRole__398D8EEE"])));
  3875. }
  3876. }
  3877. }
  3878. /// <summary>
  3879. ///Represents strongly named DataRow class.
  3880. ///</summary>
  3881. public partial class UserRow : global::System.Data.DataRow {
  3882. private UserDataTable tableUser;
  3883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3885. internal UserRow(global::System.Data.DataRowBuilder rb) :
  3886. base(rb) {
  3887. this.tableUser = ((UserDataTable)(this.Table));
  3888. }
  3889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3891. public int UserID {
  3892. get {
  3893. return ((int)(this[this.tableUser.UserIDColumn]));
  3894. }
  3895. set {
  3896. this[this.tableUser.UserIDColumn] = value;
  3897. }
  3898. }
  3899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3901. public int UserRole {
  3902. get {
  3903. return ((int)(this[this.tableUser.UserRoleColumn]));
  3904. }
  3905. set {
  3906. this[this.tableUser.UserRoleColumn] = value;
  3907. }
  3908. }
  3909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3911. public string UserSurname {
  3912. get {
  3913. return ((string)(this[this.tableUser.UserSurnameColumn]));
  3914. }
  3915. set {
  3916. this[this.tableUser.UserSurnameColumn] = value;
  3917. }
  3918. }
  3919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3921. public string UserName {
  3922. get {
  3923. return ((string)(this[this.tableUser.UserNameColumn]));
  3924. }
  3925. set {
  3926. this[this.tableUser.UserNameColumn] = value;
  3927. }
  3928. }
  3929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3931. public string UserPatronymic {
  3932. get {
  3933. return ((string)(this[this.tableUser.UserPatronymicColumn]));
  3934. }
  3935. set {
  3936. this[this.tableUser.UserPatronymicColumn] = value;
  3937. }
  3938. }
  3939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3941. public string UserLogin {
  3942. get {
  3943. return ((string)(this[this.tableUser.UserLoginColumn]));
  3944. }
  3945. set {
  3946. this[this.tableUser.UserLoginColumn] = value;
  3947. }
  3948. }
  3949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3951. public string UserPassword {
  3952. get {
  3953. return ((string)(this[this.tableUser.UserPasswordColumn]));
  3954. }
  3955. set {
  3956. this[this.tableUser.UserPasswordColumn] = value;
  3957. }
  3958. }
  3959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3961. public RoleRow RoleRow {
  3962. get {
  3963. return ((RoleRow)(this.GetParentRow(this.Table.ParentRelations["FK__User__UserRole__398D8EEE"])));
  3964. }
  3965. set {
  3966. this.SetParentRow(value, this.Table.ParentRelations["FK__User__UserRole__398D8EEE"]);
  3967. }
  3968. }
  3969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3971. public OrderRow[] GetOrderRows() {
  3972. if ((this.Table.ChildRelations["FK_Order_User"] == null)) {
  3973. return new OrderRow[0];
  3974. }
  3975. else {
  3976. return ((OrderRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Order_User"])));
  3977. }
  3978. }
  3979. }
  3980. /// <summary>
  3981. ///Row event argument class
  3982. ///</summary>
  3983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3984. public class CategoryRowChangeEvent : global::System.EventArgs {
  3985. private CategoryRow eventRow;
  3986. private global::System.Data.DataRowAction eventAction;
  3987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3989. public CategoryRowChangeEvent(CategoryRow row, global::System.Data.DataRowAction action) {
  3990. this.eventRow = row;
  3991. this.eventAction = action;
  3992. }
  3993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3995. public CategoryRow Row {
  3996. get {
  3997. return this.eventRow;
  3998. }
  3999. }
  4000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4002. public global::System.Data.DataRowAction Action {
  4003. get {
  4004. return this.eventAction;
  4005. }
  4006. }
  4007. }
  4008. /// <summary>
  4009. ///Row event argument class
  4010. ///</summary>
  4011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4012. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  4013. private ManufacturerRow eventRow;
  4014. private global::System.Data.DataRowAction eventAction;
  4015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4017. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  4018. this.eventRow = row;
  4019. this.eventAction = action;
  4020. }
  4021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4023. public ManufacturerRow Row {
  4024. get {
  4025. return this.eventRow;
  4026. }
  4027. }
  4028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4030. public global::System.Data.DataRowAction Action {
  4031. get {
  4032. return this.eventAction;
  4033. }
  4034. }
  4035. }
  4036. /// <summary>
  4037. ///Row event argument class
  4038. ///</summary>
  4039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4040. public class OrderRowChangeEvent : global::System.EventArgs {
  4041. private OrderRow eventRow;
  4042. private global::System.Data.DataRowAction eventAction;
  4043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4045. public OrderRowChangeEvent(OrderRow row, global::System.Data.DataRowAction action) {
  4046. this.eventRow = row;
  4047. this.eventAction = action;
  4048. }
  4049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4051. public OrderRow Row {
  4052. get {
  4053. return this.eventRow;
  4054. }
  4055. }
  4056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4058. public global::System.Data.DataRowAction Action {
  4059. get {
  4060. return this.eventAction;
  4061. }
  4062. }
  4063. }
  4064. /// <summary>
  4065. ///Row event argument class
  4066. ///</summary>
  4067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4068. public class OrderProductRowChangeEvent : global::System.EventArgs {
  4069. private OrderProductRow eventRow;
  4070. private global::System.Data.DataRowAction eventAction;
  4071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4073. public OrderProductRowChangeEvent(OrderProductRow row, global::System.Data.DataRowAction action) {
  4074. this.eventRow = row;
  4075. this.eventAction = action;
  4076. }
  4077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4079. public OrderProductRow Row {
  4080. get {
  4081. return this.eventRow;
  4082. }
  4083. }
  4084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4086. public global::System.Data.DataRowAction Action {
  4087. get {
  4088. return this.eventAction;
  4089. }
  4090. }
  4091. }
  4092. /// <summary>
  4093. ///Row event argument class
  4094. ///</summary>
  4095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4096. public class PickupPointRowChangeEvent : global::System.EventArgs {
  4097. private PickupPointRow eventRow;
  4098. private global::System.Data.DataRowAction eventAction;
  4099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4101. public PickupPointRowChangeEvent(PickupPointRow row, global::System.Data.DataRowAction action) {
  4102. this.eventRow = row;
  4103. this.eventAction = action;
  4104. }
  4105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4107. public PickupPointRow Row {
  4108. get {
  4109. return this.eventRow;
  4110. }
  4111. }
  4112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4114. public global::System.Data.DataRowAction Action {
  4115. get {
  4116. return this.eventAction;
  4117. }
  4118. }
  4119. }
  4120. /// <summary>
  4121. ///Row event argument class
  4122. ///</summary>
  4123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4124. public class ProductRowChangeEvent : global::System.EventArgs {
  4125. private ProductRow eventRow;
  4126. private global::System.Data.DataRowAction eventAction;
  4127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4129. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  4130. this.eventRow = row;
  4131. this.eventAction = action;
  4132. }
  4133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4135. public ProductRow Row {
  4136. get {
  4137. return this.eventRow;
  4138. }
  4139. }
  4140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4142. public global::System.Data.DataRowAction Action {
  4143. get {
  4144. return this.eventAction;
  4145. }
  4146. }
  4147. }
  4148. /// <summary>
  4149. ///Row event argument class
  4150. ///</summary>
  4151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4152. public class ProviderRowChangeEvent : global::System.EventArgs {
  4153. private ProviderRow eventRow;
  4154. private global::System.Data.DataRowAction eventAction;
  4155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4157. public ProviderRowChangeEvent(ProviderRow row, global::System.Data.DataRowAction action) {
  4158. this.eventRow = row;
  4159. this.eventAction = action;
  4160. }
  4161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4163. public ProviderRow Row {
  4164. get {
  4165. return this.eventRow;
  4166. }
  4167. }
  4168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4170. public global::System.Data.DataRowAction Action {
  4171. get {
  4172. return this.eventAction;
  4173. }
  4174. }
  4175. }
  4176. /// <summary>
  4177. ///Row event argument class
  4178. ///</summary>
  4179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4180. public class RoleRowChangeEvent : global::System.EventArgs {
  4181. private RoleRow eventRow;
  4182. private global::System.Data.DataRowAction eventAction;
  4183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4185. public RoleRowChangeEvent(RoleRow row, global::System.Data.DataRowAction action) {
  4186. this.eventRow = row;
  4187. this.eventAction = action;
  4188. }
  4189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4191. public RoleRow Row {
  4192. get {
  4193. return this.eventRow;
  4194. }
  4195. }
  4196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4198. public global::System.Data.DataRowAction Action {
  4199. get {
  4200. return this.eventAction;
  4201. }
  4202. }
  4203. }
  4204. /// <summary>
  4205. ///Row event argument class
  4206. ///</summary>
  4207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4208. public class UserRowChangeEvent : global::System.EventArgs {
  4209. private UserRow eventRow;
  4210. private global::System.Data.DataRowAction eventAction;
  4211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4213. public UserRowChangeEvent(UserRow row, global::System.Data.DataRowAction action) {
  4214. this.eventRow = row;
  4215. this.eventAction = action;
  4216. }
  4217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4219. public UserRow Row {
  4220. get {
  4221. return this.eventRow;
  4222. }
  4223. }
  4224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4226. public global::System.Data.DataRowAction Action {
  4227. get {
  4228. return this.eventAction;
  4229. }
  4230. }
  4231. }
  4232. }
  4233. }
  4234. namespace СУБД_Спортивные_товары.sporttovKNYDataSetTableAdapters {
  4235. /// <summary>
  4236. ///Represents the connection and commands used to retrieve and save data.
  4237. ///</summary>
  4238. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4239. [global::System.ComponentModel.ToolboxItem(true)]
  4240. [global::System.ComponentModel.DataObjectAttribute(true)]
  4241. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4242. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4243. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4244. public partial class CategoryTableAdapter : global::System.ComponentModel.Component {
  4245. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4246. private global::System.Data.SqlClient.SqlConnection _connection;
  4247. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4248. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4249. private bool _clearBeforeFill;
  4250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4252. public CategoryTableAdapter() {
  4253. this.ClearBeforeFill = true;
  4254. }
  4255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4257. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4258. get {
  4259. if ((this._adapter == null)) {
  4260. this.InitAdapter();
  4261. }
  4262. return this._adapter;
  4263. }
  4264. }
  4265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4267. internal global::System.Data.SqlClient.SqlConnection Connection {
  4268. get {
  4269. if ((this._connection == null)) {
  4270. this.InitConnection();
  4271. }
  4272. return this._connection;
  4273. }
  4274. set {
  4275. this._connection = value;
  4276. if ((this.Adapter.InsertCommand != null)) {
  4277. this.Adapter.InsertCommand.Connection = value;
  4278. }
  4279. if ((this.Adapter.DeleteCommand != null)) {
  4280. this.Adapter.DeleteCommand.Connection = value;
  4281. }
  4282. if ((this.Adapter.UpdateCommand != null)) {
  4283. this.Adapter.UpdateCommand.Connection = value;
  4284. }
  4285. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4286. if ((this.CommandCollection[i] != null)) {
  4287. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4288. }
  4289. }
  4290. }
  4291. }
  4292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4294. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4295. get {
  4296. return this._transaction;
  4297. }
  4298. set {
  4299. this._transaction = value;
  4300. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4301. this.CommandCollection[i].Transaction = this._transaction;
  4302. }
  4303. if (((this.Adapter != null)
  4304. && (this.Adapter.DeleteCommand != null))) {
  4305. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4306. }
  4307. if (((this.Adapter != null)
  4308. && (this.Adapter.InsertCommand != null))) {
  4309. this.Adapter.InsertCommand.Transaction = this._transaction;
  4310. }
  4311. if (((this.Adapter != null)
  4312. && (this.Adapter.UpdateCommand != null))) {
  4313. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4314. }
  4315. }
  4316. }
  4317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4319. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4320. get {
  4321. if ((this._commandCollection == null)) {
  4322. this.InitCommandCollection();
  4323. }
  4324. return this._commandCollection;
  4325. }
  4326. }
  4327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4329. public bool ClearBeforeFill {
  4330. get {
  4331. return this._clearBeforeFill;
  4332. }
  4333. set {
  4334. this._clearBeforeFill = value;
  4335. }
  4336. }
  4337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4339. private void InitAdapter() {
  4340. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4341. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4342. tableMapping.SourceTable = "Table";
  4343. tableMapping.DataSetTable = "Category";
  4344. tableMapping.ColumnMappings.Add("idCategory", "idCategory");
  4345. tableMapping.ColumnMappings.Add("CategoryName", "CategoryName");
  4346. this._adapter.TableMappings.Add(tableMapping);
  4347. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4348. this._adapter.DeleteCommand.Connection = this.Connection;
  4349. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Category] WHERE (([idCategory] = @Original_idCategory) AND ((@" +
  4350. "IsNull_CategoryName = 1 AND [CategoryName] IS NULL) OR ([CategoryName] = @Origin" +
  4351. "al_CategoryName)))";
  4352. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4353. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idCategory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idCategory", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4354. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CategoryName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4355. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CategoryName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4356. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4357. this._adapter.InsertCommand.Connection = this.Connection;
  4358. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Category] ([CategoryName]) VALUES (@CategoryName);\r\nSELECT idC" +
  4359. "ategory, CategoryName FROM Category WHERE (idCategory = SCOPE_IDENTITY())";
  4360. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4361. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CategoryName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4362. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4363. this._adapter.UpdateCommand.Connection = this.Connection;
  4364. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Category] SET [CategoryName] = @CategoryName WHERE (([idCategory] = @Original_idCategory) AND ((@IsNull_CategoryName = 1 AND [CategoryName] IS NULL) OR ([CategoryName] = @Original_CategoryName)));
  4365. SELECT idCategory, CategoryName FROM Category WHERE (idCategory = @idCategory)";
  4366. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4367. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CategoryName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4368. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idCategory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idCategory", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4369. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CategoryName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4370. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CategoryName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4371. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idCategory", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idCategory", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4372. }
  4373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4375. private void InitConnection() {
  4376. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4377. this._connection.ConnectionString = global::СУБД_Спортивные_товары.Properties.Settings.Default.sporttovKNYConnectionString;
  4378. }
  4379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4381. private void InitCommandCollection() {
  4382. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4383. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4384. this._commandCollection[0].Connection = this.Connection;
  4385. this._commandCollection[0].CommandText = "SELECT idCategory, CategoryName FROM dbo.Category";
  4386. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4387. }
  4388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4390. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4391. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4392. public virtual int Fill(sporttovKNYDataSet.CategoryDataTable dataTable) {
  4393. this.Adapter.SelectCommand = this.CommandCollection[0];
  4394. if ((this.ClearBeforeFill == true)) {
  4395. dataTable.Clear();
  4396. }
  4397. int returnValue = this.Adapter.Fill(dataTable);
  4398. return returnValue;
  4399. }
  4400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4402. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4403. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4404. public virtual sporttovKNYDataSet.CategoryDataTable GetData() {
  4405. this.Adapter.SelectCommand = this.CommandCollection[0];
  4406. sporttovKNYDataSet.CategoryDataTable dataTable = new sporttovKNYDataSet.CategoryDataTable();
  4407. this.Adapter.Fill(dataTable);
  4408. return dataTable;
  4409. }
  4410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4412. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4413. public virtual int Update(sporttovKNYDataSet.CategoryDataTable dataTable) {
  4414. return this.Adapter.Update(dataTable);
  4415. }
  4416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4418. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4419. public virtual int Update(sporttovKNYDataSet dataSet) {
  4420. return this.Adapter.Update(dataSet, "Category");
  4421. }
  4422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4424. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4425. public virtual int Update(global::System.Data.DataRow dataRow) {
  4426. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4427. dataRow});
  4428. }
  4429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4431. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4432. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4433. return this.Adapter.Update(dataRows);
  4434. }
  4435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4437. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4438. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4439. public virtual int Delete(int Original_idCategory, string Original_CategoryName) {
  4440. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idCategory));
  4441. if ((Original_CategoryName == null)) {
  4442. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4443. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4444. }
  4445. else {
  4446. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4447. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CategoryName));
  4448. }
  4449. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4450. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4451. != global::System.Data.ConnectionState.Open)) {
  4452. this.Adapter.DeleteCommand.Connection.Open();
  4453. }
  4454. try {
  4455. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4456. return returnValue;
  4457. }
  4458. finally {
  4459. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4460. this.Adapter.DeleteCommand.Connection.Close();
  4461. }
  4462. }
  4463. }
  4464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4466. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4467. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4468. public virtual int Insert(string CategoryName) {
  4469. if ((CategoryName == null)) {
  4470. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4471. }
  4472. else {
  4473. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CategoryName));
  4474. }
  4475. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4476. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4477. != global::System.Data.ConnectionState.Open)) {
  4478. this.Adapter.InsertCommand.Connection.Open();
  4479. }
  4480. try {
  4481. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4482. return returnValue;
  4483. }
  4484. finally {
  4485. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4486. this.Adapter.InsertCommand.Connection.Close();
  4487. }
  4488. }
  4489. }
  4490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4492. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4493. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4494. public virtual int Update(string CategoryName, int Original_idCategory, string Original_CategoryName, int idCategory) {
  4495. if ((CategoryName == null)) {
  4496. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4497. }
  4498. else {
  4499. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CategoryName));
  4500. }
  4501. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idCategory));
  4502. if ((Original_CategoryName == null)) {
  4503. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  4504. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4505. }
  4506. else {
  4507. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  4508. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CategoryName));
  4509. }
  4510. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idCategory));
  4511. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4512. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4513. != global::System.Data.ConnectionState.Open)) {
  4514. this.Adapter.UpdateCommand.Connection.Open();
  4515. }
  4516. try {
  4517. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4518. return returnValue;
  4519. }
  4520. finally {
  4521. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4522. this.Adapter.UpdateCommand.Connection.Close();
  4523. }
  4524. }
  4525. }
  4526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4528. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4529. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4530. public virtual int Update(string CategoryName, int Original_idCategory, string Original_CategoryName) {
  4531. return this.Update(CategoryName, Original_idCategory, Original_CategoryName, Original_idCategory);
  4532. }
  4533. }
  4534. /// <summary>
  4535. ///Represents the connection and commands used to retrieve and save data.
  4536. ///</summary>
  4537. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4538. [global::System.ComponentModel.ToolboxItem(true)]
  4539. [global::System.ComponentModel.DataObjectAttribute(true)]
  4540. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4541. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4543. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  4544. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4545. private global::System.Data.SqlClient.SqlConnection _connection;
  4546. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4547. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4548. private bool _clearBeforeFill;
  4549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4551. public ManufacturerTableAdapter() {
  4552. this.ClearBeforeFill = true;
  4553. }
  4554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4556. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4557. get {
  4558. if ((this._adapter == null)) {
  4559. this.InitAdapter();
  4560. }
  4561. return this._adapter;
  4562. }
  4563. }
  4564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4566. internal global::System.Data.SqlClient.SqlConnection Connection {
  4567. get {
  4568. if ((this._connection == null)) {
  4569. this.InitConnection();
  4570. }
  4571. return this._connection;
  4572. }
  4573. set {
  4574. this._connection = value;
  4575. if ((this.Adapter.InsertCommand != null)) {
  4576. this.Adapter.InsertCommand.Connection = value;
  4577. }
  4578. if ((this.Adapter.DeleteCommand != null)) {
  4579. this.Adapter.DeleteCommand.Connection = value;
  4580. }
  4581. if ((this.Adapter.UpdateCommand != null)) {
  4582. this.Adapter.UpdateCommand.Connection = value;
  4583. }
  4584. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4585. if ((this.CommandCollection[i] != null)) {
  4586. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4587. }
  4588. }
  4589. }
  4590. }
  4591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4593. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4594. get {
  4595. return this._transaction;
  4596. }
  4597. set {
  4598. this._transaction = value;
  4599. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4600. this.CommandCollection[i].Transaction = this._transaction;
  4601. }
  4602. if (((this.Adapter != null)
  4603. && (this.Adapter.DeleteCommand != null))) {
  4604. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4605. }
  4606. if (((this.Adapter != null)
  4607. && (this.Adapter.InsertCommand != null))) {
  4608. this.Adapter.InsertCommand.Transaction = this._transaction;
  4609. }
  4610. if (((this.Adapter != null)
  4611. && (this.Adapter.UpdateCommand != null))) {
  4612. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4613. }
  4614. }
  4615. }
  4616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4618. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4619. get {
  4620. if ((this._commandCollection == null)) {
  4621. this.InitCommandCollection();
  4622. }
  4623. return this._commandCollection;
  4624. }
  4625. }
  4626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4628. public bool ClearBeforeFill {
  4629. get {
  4630. return this._clearBeforeFill;
  4631. }
  4632. set {
  4633. this._clearBeforeFill = value;
  4634. }
  4635. }
  4636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4638. private void InitAdapter() {
  4639. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4640. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4641. tableMapping.SourceTable = "Table";
  4642. tableMapping.DataSetTable = "Manufacturer";
  4643. tableMapping.ColumnMappings.Add("idManufacturer", "idManufacturer");
  4644. tableMapping.ColumnMappings.Add("ManufacturerName", "ManufacturerName");
  4645. this._adapter.TableMappings.Add(tableMapping);
  4646. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4647. this._adapter.DeleteCommand.Connection = this.Connection;
  4648. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([idManufacturer] = @Original_idManufactu" +
  4649. "rer) AND ((@IsNull_ManufacturerName = 1 AND [ManufacturerName] IS NULL) OR ([Man" +
  4650. "ufacturerName] = @Original_ManufacturerName)))";
  4651. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4652. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idManufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idManufacturer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4653. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ManufacturerName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4654. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ManufacturerName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4655. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4656. this._adapter.InsertCommand.Connection = this.Connection;
  4657. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([ManufacturerName]) VALUES (@ManufacturerName);" +
  4658. "\r\nSELECT idManufacturer, ManufacturerName FROM Manufacturer WHERE (idManufacture" +
  4659. "r = SCOPE_IDENTITY())";
  4660. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4661. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ManufacturerName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4662. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4663. this._adapter.UpdateCommand.Connection = this.Connection;
  4664. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manufacturer] SET [ManufacturerName] = @ManufacturerName WHERE (([idManufacturer] = @Original_idManufacturer) AND ((@IsNull_ManufacturerName = 1 AND [ManufacturerName] IS NULL) OR ([ManufacturerName] = @Original_ManufacturerName)));
  4665. SELECT idManufacturer, ManufacturerName FROM Manufacturer WHERE (idManufacturer = @idManufacturer)";
  4666. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4667. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ManufacturerName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4668. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idManufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idManufacturer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4669. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ManufacturerName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4670. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ManufacturerName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4671. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idManufacturer", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idManufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4672. }
  4673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4675. private void InitConnection() {
  4676. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4677. this._connection.ConnectionString = global::СУБД_Спортивные_товары.Properties.Settings.Default.sporttovKNYConnectionString;
  4678. }
  4679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4681. private void InitCommandCollection() {
  4682. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4683. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4684. this._commandCollection[0].Connection = this.Connection;
  4685. this._commandCollection[0].CommandText = "SELECT idManufacturer, ManufacturerName FROM dbo.Manufacturer";
  4686. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4687. }
  4688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4690. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4691. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4692. public virtual int Fill(sporttovKNYDataSet.ManufacturerDataTable dataTable) {
  4693. this.Adapter.SelectCommand = this.CommandCollection[0];
  4694. if ((this.ClearBeforeFill == true)) {
  4695. dataTable.Clear();
  4696. }
  4697. int returnValue = this.Adapter.Fill(dataTable);
  4698. return returnValue;
  4699. }
  4700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4702. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4703. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4704. public virtual sporttovKNYDataSet.ManufacturerDataTable GetData() {
  4705. this.Adapter.SelectCommand = this.CommandCollection[0];
  4706. sporttovKNYDataSet.ManufacturerDataTable dataTable = new sporttovKNYDataSet.ManufacturerDataTable();
  4707. this.Adapter.Fill(dataTable);
  4708. return dataTable;
  4709. }
  4710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4712. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4713. public virtual int Update(sporttovKNYDataSet.ManufacturerDataTable dataTable) {
  4714. return this.Adapter.Update(dataTable);
  4715. }
  4716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4718. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4719. public virtual int Update(sporttovKNYDataSet dataSet) {
  4720. return this.Adapter.Update(dataSet, "Manufacturer");
  4721. }
  4722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4724. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4725. public virtual int Update(global::System.Data.DataRow dataRow) {
  4726. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4727. dataRow});
  4728. }
  4729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4731. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4732. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4733. return this.Adapter.Update(dataRows);
  4734. }
  4735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4737. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4738. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4739. public virtual int Delete(int Original_idManufacturer, string Original_ManufacturerName) {
  4740. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idManufacturer));
  4741. if ((Original_ManufacturerName == null)) {
  4742. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4743. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4744. }
  4745. else {
  4746. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4747. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ManufacturerName));
  4748. }
  4749. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4750. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4751. != global::System.Data.ConnectionState.Open)) {
  4752. this.Adapter.DeleteCommand.Connection.Open();
  4753. }
  4754. try {
  4755. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4756. return returnValue;
  4757. }
  4758. finally {
  4759. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4760. this.Adapter.DeleteCommand.Connection.Close();
  4761. }
  4762. }
  4763. }
  4764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4766. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4767. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4768. public virtual int Insert(string ManufacturerName) {
  4769. if ((ManufacturerName == null)) {
  4770. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4771. }
  4772. else {
  4773. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ManufacturerName));
  4774. }
  4775. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4776. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4777. != global::System.Data.ConnectionState.Open)) {
  4778. this.Adapter.InsertCommand.Connection.Open();
  4779. }
  4780. try {
  4781. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4782. return returnValue;
  4783. }
  4784. finally {
  4785. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4786. this.Adapter.InsertCommand.Connection.Close();
  4787. }
  4788. }
  4789. }
  4790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4792. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4793. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4794. public virtual int Update(string ManufacturerName, int Original_idManufacturer, string Original_ManufacturerName, int idManufacturer) {
  4795. if ((ManufacturerName == null)) {
  4796. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4797. }
  4798. else {
  4799. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ManufacturerName));
  4800. }
  4801. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idManufacturer));
  4802. if ((Original_ManufacturerName == null)) {
  4803. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  4804. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4805. }
  4806. else {
  4807. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  4808. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_ManufacturerName));
  4809. }
  4810. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idManufacturer));
  4811. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4812. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4813. != global::System.Data.ConnectionState.Open)) {
  4814. this.Adapter.UpdateCommand.Connection.Open();
  4815. }
  4816. try {
  4817. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4818. return returnValue;
  4819. }
  4820. finally {
  4821. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4822. this.Adapter.UpdateCommand.Connection.Close();
  4823. }
  4824. }
  4825. }
  4826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4828. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4829. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4830. public virtual int Update(string ManufacturerName, int Original_idManufacturer, string Original_ManufacturerName) {
  4831. return this.Update(ManufacturerName, Original_idManufacturer, Original_ManufacturerName, Original_idManufacturer);
  4832. }
  4833. }
  4834. /// <summary>
  4835. ///Represents the connection and commands used to retrieve and save data.
  4836. ///</summary>
  4837. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4838. [global::System.ComponentModel.ToolboxItem(true)]
  4839. [global::System.ComponentModel.DataObjectAttribute(true)]
  4840. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4841. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4842. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4843. public partial class OrderTableAdapter : global::System.ComponentModel.Component {
  4844. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4845. private global::System.Data.SqlClient.SqlConnection _connection;
  4846. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4847. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4848. private bool _clearBeforeFill;
  4849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4851. public OrderTableAdapter() {
  4852. this.ClearBeforeFill = true;
  4853. }
  4854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4856. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4857. get {
  4858. if ((this._adapter == null)) {
  4859. this.InitAdapter();
  4860. }
  4861. return this._adapter;
  4862. }
  4863. }
  4864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4866. internal global::System.Data.SqlClient.SqlConnection Connection {
  4867. get {
  4868. if ((this._connection == null)) {
  4869. this.InitConnection();
  4870. }
  4871. return this._connection;
  4872. }
  4873. set {
  4874. this._connection = value;
  4875. if ((this.Adapter.InsertCommand != null)) {
  4876. this.Adapter.InsertCommand.Connection = value;
  4877. }
  4878. if ((this.Adapter.DeleteCommand != null)) {
  4879. this.Adapter.DeleteCommand.Connection = value;
  4880. }
  4881. if ((this.Adapter.UpdateCommand != null)) {
  4882. this.Adapter.UpdateCommand.Connection = value;
  4883. }
  4884. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4885. if ((this.CommandCollection[i] != null)) {
  4886. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4887. }
  4888. }
  4889. }
  4890. }
  4891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4893. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4894. get {
  4895. return this._transaction;
  4896. }
  4897. set {
  4898. this._transaction = value;
  4899. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4900. this.CommandCollection[i].Transaction = this._transaction;
  4901. }
  4902. if (((this.Adapter != null)
  4903. && (this.Adapter.DeleteCommand != null))) {
  4904. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4905. }
  4906. if (((this.Adapter != null)
  4907. && (this.Adapter.InsertCommand != null))) {
  4908. this.Adapter.InsertCommand.Transaction = this._transaction;
  4909. }
  4910. if (((this.Adapter != null)
  4911. && (this.Adapter.UpdateCommand != null))) {
  4912. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4913. }
  4914. }
  4915. }
  4916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4918. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4919. get {
  4920. if ((this._commandCollection == null)) {
  4921. this.InitCommandCollection();
  4922. }
  4923. return this._commandCollection;
  4924. }
  4925. }
  4926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4928. public bool ClearBeforeFill {
  4929. get {
  4930. return this._clearBeforeFill;
  4931. }
  4932. set {
  4933. this._clearBeforeFill = value;
  4934. }
  4935. }
  4936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4938. private void InitAdapter() {
  4939. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4940. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4941. tableMapping.SourceTable = "Table";
  4942. tableMapping.DataSetTable = "Order";
  4943. tableMapping.ColumnMappings.Add("OrderID", "OrderID");
  4944. tableMapping.ColumnMappings.Add("OrderDate", "OrderDate");
  4945. tableMapping.ColumnMappings.Add("OrderDeliveryDate", "OrderDeliveryDate");
  4946. tableMapping.ColumnMappings.Add("OrderPickupPoint", "OrderPickupPoint");
  4947. tableMapping.ColumnMappings.Add("idUsers", "idUsers");
  4948. tableMapping.ColumnMappings.Add("CodeOrder", "CodeOrder");
  4949. tableMapping.ColumnMappings.Add("OrderStatus", "OrderStatus");
  4950. this._adapter.TableMappings.Add(tableMapping);
  4951. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4952. this._adapter.DeleteCommand.Connection = this.Connection;
  4953. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Order] WHERE (([OrderID] = @Original_OrderID) AND ((@IsNull_OrderDate = 1 AND [OrderDate] IS NULL) OR ([OrderDate] = @Original_OrderDate)) AND ([OrderDeliveryDate] = @Original_OrderDeliveryDate) AND ([OrderPickupPoint] = @Original_OrderPickupPoint) AND ((@IsNull_idUsers = 1 AND [idUsers] IS NULL) OR ([idUsers] = @Original_idUsers)) AND ((@IsNull_CodeOrder = 1 AND [CodeOrder] IS NULL) OR ([CodeOrder] = @Original_CodeOrder)))";
  4954. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4955. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4956. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrderDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4957. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4958. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDeliveryDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4959. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderPickupPoint", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderPickupPoint", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4960. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idUsers", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idUsers", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4961. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idUsers", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idUsers", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4962. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodeOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodeOrder", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4963. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodeOrder", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodeOrder", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4964. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4965. this._adapter.InsertCommand.Connection = this.Connection;
  4966. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Order] ([OrderDate], [OrderDeliveryDate], [OrderPickupPoint], [idUsers], [CodeOrder], [OrderStatus]) VALUES (@OrderDate, @OrderDeliveryDate, @OrderPickupPoint, @idUsers, @CodeOrder, @OrderStatus);
  4967. SELECT OrderID, OrderDate, OrderDeliveryDate, OrderPickupPoint, idUsers, CodeOrder, OrderStatus FROM [Order] WHERE (OrderID = SCOPE_IDENTITY())";
  4968. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4969. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4970. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDeliveryDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4971. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderPickupPoint", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4972. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idUsers", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idUsers", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4973. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodeOrder", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodeOrder", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4974. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4975. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4976. this._adapter.UpdateCommand.Connection = this.Connection;
  4977. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Order] SET [OrderDate] = @OrderDate, [OrderDeliveryDate] = @OrderDeliveryDate, [OrderPickupPoint] = @OrderPickupPoint, [idUsers] = @idUsers, [CodeOrder] = @CodeOrder, [OrderStatus] = @OrderStatus WHERE (([OrderID] = @Original_OrderID) AND ((@IsNull_OrderDate = 1 AND [OrderDate] IS NULL) OR ([OrderDate] = @Original_OrderDate)) AND ([OrderDeliveryDate] = @Original_OrderDeliveryDate) AND ([OrderPickupPoint] = @Original_OrderPickupPoint) AND ((@IsNull_idUsers = 1 AND [idUsers] IS NULL) OR ([idUsers] = @Original_idUsers)) AND ((@IsNull_CodeOrder = 1 AND [CodeOrder] IS NULL) OR ([CodeOrder] = @Original_CodeOrder)));
  4978. SELECT OrderID, OrderDate, OrderDeliveryDate, OrderPickupPoint, idUsers, CodeOrder, OrderStatus FROM [Order] WHERE (OrderID = @OrderID)";
  4979. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4980. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4981. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDeliveryDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4982. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderPickupPoint", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4983. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idUsers", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idUsers", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4984. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodeOrder", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodeOrder", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4985. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4986. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4987. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_OrderDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4988. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4989. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDeliveryDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4990. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderPickupPoint", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderPickupPoint", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4991. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idUsers", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idUsers", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4992. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idUsers", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idUsers", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4993. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodeOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodeOrder", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4994. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodeOrder", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodeOrder", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4995. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4996. }
  4997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4999. private void InitConnection() {
  5000. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5001. this._connection.ConnectionString = global::СУБД_Спортивные_товары.Properties.Settings.Default.sporttovKNYConnectionString;
  5002. }
  5003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5005. private void InitCommandCollection() {
  5006. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5007. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5008. this._commandCollection[0].Connection = this.Connection;
  5009. this._commandCollection[0].CommandText = "SELECT OrderID, OrderDate, OrderDeliveryDate, OrderPickupPoint, idUsers, CodeOrde" +
  5010. "r, OrderStatus FROM dbo.[Order]";
  5011. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5012. }
  5013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5015. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5016. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5017. public virtual int Fill(sporttovKNYDataSet.OrderDataTable dataTable) {
  5018. this.Adapter.SelectCommand = this.CommandCollection[0];
  5019. if ((this.ClearBeforeFill == true)) {
  5020. dataTable.Clear();
  5021. }
  5022. int returnValue = this.Adapter.Fill(dataTable);
  5023. return returnValue;
  5024. }
  5025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5027. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5028. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5029. public virtual sporttovKNYDataSet.OrderDataTable GetData() {
  5030. this.Adapter.SelectCommand = this.CommandCollection[0];
  5031. sporttovKNYDataSet.OrderDataTable dataTable = new sporttovKNYDataSet.OrderDataTable();
  5032. this.Adapter.Fill(dataTable);
  5033. return dataTable;
  5034. }
  5035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5037. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5038. public virtual int Update(sporttovKNYDataSet.OrderDataTable dataTable) {
  5039. return this.Adapter.Update(dataTable);
  5040. }
  5041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5043. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5044. public virtual int Update(sporttovKNYDataSet dataSet) {
  5045. return this.Adapter.Update(dataSet, "Order");
  5046. }
  5047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5049. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5050. public virtual int Update(global::System.Data.DataRow dataRow) {
  5051. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5052. dataRow});
  5053. }
  5054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5056. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5057. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5058. return this.Adapter.Update(dataRows);
  5059. }
  5060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5062. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5063. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5064. public virtual int Delete(int Original_OrderID, global::System.Nullable<global::System.DateTime> Original_OrderDate, System.DateTime Original_OrderDeliveryDate, int Original_OrderPickupPoint, global::System.Nullable<int> Original_idUsers, string Original_CodeOrder) {
  5065. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_OrderID));
  5066. if ((Original_OrderDate.HasValue == true)) {
  5067. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5068. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_OrderDate.Value));
  5069. }
  5070. else {
  5071. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5072. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5073. }
  5074. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_OrderDeliveryDate));
  5075. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_OrderPickupPoint));
  5076. if ((Original_idUsers.HasValue == true)) {
  5077. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5078. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_idUsers.Value));
  5079. }
  5080. else {
  5081. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5082. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5083. }
  5084. if ((Original_CodeOrder == null)) {
  5085. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5086. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5087. }
  5088. else {
  5089. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5090. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_CodeOrder));
  5091. }
  5092. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5093. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5094. != global::System.Data.ConnectionState.Open)) {
  5095. this.Adapter.DeleteCommand.Connection.Open();
  5096. }
  5097. try {
  5098. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5099. return returnValue;
  5100. }
  5101. finally {
  5102. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5103. this.Adapter.DeleteCommand.Connection.Close();
  5104. }
  5105. }
  5106. }
  5107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5109. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5110. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5111. public virtual int Insert(global::System.Nullable<global::System.DateTime> OrderDate, System.DateTime OrderDeliveryDate, int OrderPickupPoint, global::System.Nullable<int> idUsers, string CodeOrder, string OrderStatus) {
  5112. if ((OrderDate.HasValue == true)) {
  5113. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(OrderDate.Value));
  5114. }
  5115. else {
  5116. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5117. }
  5118. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(OrderDeliveryDate));
  5119. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(OrderPickupPoint));
  5120. if ((idUsers.HasValue == true)) {
  5121. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(idUsers.Value));
  5122. }
  5123. else {
  5124. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5125. }
  5126. if ((CodeOrder == null)) {
  5127. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5128. }
  5129. else {
  5130. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(CodeOrder));
  5131. }
  5132. if ((OrderStatus == null)) {
  5133. throw new global::System.ArgumentNullException("OrderStatus");
  5134. }
  5135. else {
  5136. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(OrderStatus));
  5137. }
  5138. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5139. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5140. != global::System.Data.ConnectionState.Open)) {
  5141. this.Adapter.InsertCommand.Connection.Open();
  5142. }
  5143. try {
  5144. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5145. return returnValue;
  5146. }
  5147. finally {
  5148. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5149. this.Adapter.InsertCommand.Connection.Close();
  5150. }
  5151. }
  5152. }
  5153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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(global::System.Nullable<global::System.DateTime> OrderDate, System.DateTime OrderDeliveryDate, int OrderPickupPoint, global::System.Nullable<int> idUsers, string CodeOrder, string OrderStatus, int Original_OrderID, global::System.Nullable<global::System.DateTime> Original_OrderDate, System.DateTime Original_OrderDeliveryDate, int Original_OrderPickupPoint, global::System.Nullable<int> Original_idUsers, string Original_CodeOrder, int OrderID) {
  5158. if ((OrderDate.HasValue == true)) {
  5159. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(OrderDate.Value));
  5160. }
  5161. else {
  5162. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5163. }
  5164. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(OrderDeliveryDate));
  5165. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(OrderPickupPoint));
  5166. if ((idUsers.HasValue == true)) {
  5167. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(idUsers.Value));
  5168. }
  5169. else {
  5170. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5171. }
  5172. if ((CodeOrder == null)) {
  5173. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5174. }
  5175. else {
  5176. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(CodeOrder));
  5177. }
  5178. if ((OrderStatus == null)) {
  5179. throw new global::System.ArgumentNullException("OrderStatus");
  5180. }
  5181. else {
  5182. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(OrderStatus));
  5183. }
  5184. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_OrderID));
  5185. if ((Original_OrderDate.HasValue == true)) {
  5186. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  5187. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_OrderDate.Value));
  5188. }
  5189. else {
  5190. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  5191. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  5192. }
  5193. this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(Original_OrderDeliveryDate));
  5194. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_OrderPickupPoint));
  5195. if ((Original_idUsers.HasValue == true)) {
  5196. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  5197. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_idUsers.Value));
  5198. }
  5199. else {
  5200. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  5201. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  5202. }
  5203. if ((Original_CodeOrder == null)) {
  5204. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  5205. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  5206. }
  5207. else {
  5208. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  5209. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_CodeOrder));
  5210. }
  5211. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(OrderID));
  5212. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5213. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5214. != global::System.Data.ConnectionState.Open)) {
  5215. this.Adapter.UpdateCommand.Connection.Open();
  5216. }
  5217. try {
  5218. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5219. return returnValue;
  5220. }
  5221. finally {
  5222. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5223. this.Adapter.UpdateCommand.Connection.Close();
  5224. }
  5225. }
  5226. }
  5227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5229. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5230. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5231. public virtual int Update(global::System.Nullable<global::System.DateTime> OrderDate, System.DateTime OrderDeliveryDate, int OrderPickupPoint, global::System.Nullable<int> idUsers, string CodeOrder, string OrderStatus, int Original_OrderID, global::System.Nullable<global::System.DateTime> Original_OrderDate, System.DateTime Original_OrderDeliveryDate, int Original_OrderPickupPoint, global::System.Nullable<int> Original_idUsers, string Original_CodeOrder) {
  5232. return this.Update(OrderDate, OrderDeliveryDate, OrderPickupPoint, idUsers, CodeOrder, OrderStatus, Original_OrderID, Original_OrderDate, Original_OrderDeliveryDate, Original_OrderPickupPoint, Original_idUsers, Original_CodeOrder, Original_OrderID);
  5233. }
  5234. }
  5235. /// <summary>
  5236. ///Represents the connection and commands used to retrieve and save data.
  5237. ///</summary>
  5238. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5239. [global::System.ComponentModel.ToolboxItem(true)]
  5240. [global::System.ComponentModel.DataObjectAttribute(true)]
  5241. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5242. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5243. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5244. public partial class OrderProductTableAdapter : global::System.ComponentModel.Component {
  5245. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5246. private global::System.Data.SqlClient.SqlConnection _connection;
  5247. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5248. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5249. private bool _clearBeforeFill;
  5250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5252. public OrderProductTableAdapter() {
  5253. this.ClearBeforeFill = true;
  5254. }
  5255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5257. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5258. get {
  5259. if ((this._adapter == null)) {
  5260. this.InitAdapter();
  5261. }
  5262. return this._adapter;
  5263. }
  5264. }
  5265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5267. internal global::System.Data.SqlClient.SqlConnection Connection {
  5268. get {
  5269. if ((this._connection == null)) {
  5270. this.InitConnection();
  5271. }
  5272. return this._connection;
  5273. }
  5274. set {
  5275. this._connection = value;
  5276. if ((this.Adapter.InsertCommand != null)) {
  5277. this.Adapter.InsertCommand.Connection = value;
  5278. }
  5279. if ((this.Adapter.DeleteCommand != null)) {
  5280. this.Adapter.DeleteCommand.Connection = value;
  5281. }
  5282. if ((this.Adapter.UpdateCommand != null)) {
  5283. this.Adapter.UpdateCommand.Connection = value;
  5284. }
  5285. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5286. if ((this.CommandCollection[i] != null)) {
  5287. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5288. }
  5289. }
  5290. }
  5291. }
  5292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5294. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5295. get {
  5296. return this._transaction;
  5297. }
  5298. set {
  5299. this._transaction = value;
  5300. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5301. this.CommandCollection[i].Transaction = this._transaction;
  5302. }
  5303. if (((this.Adapter != null)
  5304. && (this.Adapter.DeleteCommand != null))) {
  5305. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5306. }
  5307. if (((this.Adapter != null)
  5308. && (this.Adapter.InsertCommand != null))) {
  5309. this.Adapter.InsertCommand.Transaction = this._transaction;
  5310. }
  5311. if (((this.Adapter != null)
  5312. && (this.Adapter.UpdateCommand != null))) {
  5313. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5314. }
  5315. }
  5316. }
  5317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5319. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5320. get {
  5321. if ((this._commandCollection == null)) {
  5322. this.InitCommandCollection();
  5323. }
  5324. return this._commandCollection;
  5325. }
  5326. }
  5327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5329. public bool ClearBeforeFill {
  5330. get {
  5331. return this._clearBeforeFill;
  5332. }
  5333. set {
  5334. this._clearBeforeFill = value;
  5335. }
  5336. }
  5337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5339. private void InitAdapter() {
  5340. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5341. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5342. tableMapping.SourceTable = "Table";
  5343. tableMapping.DataSetTable = "OrderProduct";
  5344. tableMapping.ColumnMappings.Add("idOrderProduct", "idOrderProduct");
  5345. tableMapping.ColumnMappings.Add("OrderID", "OrderID");
  5346. tableMapping.ColumnMappings.Add("ProductArticleNumber", "ProductArticleNumber");
  5347. tableMapping.ColumnMappings.Add("Count", "Count");
  5348. this._adapter.TableMappings.Add(tableMapping);
  5349. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5350. this._adapter.DeleteCommand.Connection = this.Connection;
  5351. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[OrderProduct] WHERE (([idOrderProduct] = @Original_idOrderProduct) AND ([OrderID] = @Original_OrderID) AND ([ProductArticleNumber] = @Original_ProductArticleNumber) AND ((@IsNull_Count = 1 AND [Count] IS NULL) OR ([Count] = @Original_Count)))";
  5352. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5353. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idOrderProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idOrderProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5354. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5355. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5356. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5357. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5358. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5359. this._adapter.InsertCommand.Connection = this.Connection;
  5360. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[OrderProduct] ([OrderID], [ProductArticleNumber], [Count]) VAL" +
  5361. "UES (@OrderID, @ProductArticleNumber, @Count);\r\nSELECT idOrderProduct, OrderID, " +
  5362. "ProductArticleNumber, Count FROM OrderProduct WHERE (idOrderProduct = SCOPE_IDEN" +
  5363. "TITY())";
  5364. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5365. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5366. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5367. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5368. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5369. this._adapter.UpdateCommand.Connection = this.Connection;
  5370. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrderProduct] SET [OrderID] = @OrderID, [ProductArticleNumber] = @ProductArticleNumber, [Count] = @Count WHERE (([idOrderProduct] = @Original_idOrderProduct) AND ([OrderID] = @Original_OrderID) AND ([ProductArticleNumber] = @Original_ProductArticleNumber) AND ((@IsNull_Count = 1 AND [Count] IS NULL) OR ([Count] = @Original_Count)));
  5371. SELECT idOrderProduct, OrderID, ProductArticleNumber, Count FROM OrderProduct WHERE (idOrderProduct = @idOrderProduct)";
  5372. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5373. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5374. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5375. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5376. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idOrderProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idOrderProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5377. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5378. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5379. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5380. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5381. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idOrderProduct", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idOrderProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5382. }
  5383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5385. private void InitConnection() {
  5386. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5387. this._connection.ConnectionString = global::СУБД_Спортивные_товары.Properties.Settings.Default.sporttovKNYConnectionString;
  5388. }
  5389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5391. private void InitCommandCollection() {
  5392. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5393. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5394. this._commandCollection[0].Connection = this.Connection;
  5395. this._commandCollection[0].CommandText = "SELECT idOrderProduct, OrderID, ProductArticleNumber, Count FROM dbo.OrderProduct" +
  5396. "";
  5397. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5398. }
  5399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5401. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5402. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5403. public virtual int Fill(sporttovKNYDataSet.OrderProductDataTable dataTable) {
  5404. this.Adapter.SelectCommand = this.CommandCollection[0];
  5405. if ((this.ClearBeforeFill == true)) {
  5406. dataTable.Clear();
  5407. }
  5408. int returnValue = this.Adapter.Fill(dataTable);
  5409. return returnValue;
  5410. }
  5411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5413. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5414. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5415. public virtual sporttovKNYDataSet.OrderProductDataTable GetData() {
  5416. this.Adapter.SelectCommand = this.CommandCollection[0];
  5417. sporttovKNYDataSet.OrderProductDataTable dataTable = new sporttovKNYDataSet.OrderProductDataTable();
  5418. this.Adapter.Fill(dataTable);
  5419. return dataTable;
  5420. }
  5421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5423. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5424. public virtual int Update(sporttovKNYDataSet.OrderProductDataTable dataTable) {
  5425. return this.Adapter.Update(dataTable);
  5426. }
  5427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5429. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5430. public virtual int Update(sporttovKNYDataSet dataSet) {
  5431. return this.Adapter.Update(dataSet, "OrderProduct");
  5432. }
  5433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5435. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5436. public virtual int Update(global::System.Data.DataRow dataRow) {
  5437. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5438. dataRow});
  5439. }
  5440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5442. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5443. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5444. return this.Adapter.Update(dataRows);
  5445. }
  5446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5448. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5449. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5450. public virtual int Delete(int Original_idOrderProduct, int Original_OrderID, string Original_ProductArticleNumber, global::System.Nullable<int> Original_Count) {
  5451. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idOrderProduct));
  5452. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_OrderID));
  5453. if ((Original_ProductArticleNumber == null)) {
  5454. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  5455. }
  5456. else {
  5457. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ProductArticleNumber));
  5458. }
  5459. if ((Original_Count.HasValue == true)) {
  5460. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5461. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Count.Value));
  5462. }
  5463. else {
  5464. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5465. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5466. }
  5467. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5468. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5469. != global::System.Data.ConnectionState.Open)) {
  5470. this.Adapter.DeleteCommand.Connection.Open();
  5471. }
  5472. try {
  5473. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5474. return returnValue;
  5475. }
  5476. finally {
  5477. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5478. this.Adapter.DeleteCommand.Connection.Close();
  5479. }
  5480. }
  5481. }
  5482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5484. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5485. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5486. public virtual int Insert(int OrderID, string ProductArticleNumber, global::System.Nullable<int> Count) {
  5487. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(OrderID));
  5488. if ((ProductArticleNumber == null)) {
  5489. throw new global::System.ArgumentNullException("ProductArticleNumber");
  5490. }
  5491. else {
  5492. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProductArticleNumber));
  5493. }
  5494. if ((Count.HasValue == true)) {
  5495. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Count.Value));
  5496. }
  5497. else {
  5498. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5499. }
  5500. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5501. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5502. != global::System.Data.ConnectionState.Open)) {
  5503. this.Adapter.InsertCommand.Connection.Open();
  5504. }
  5505. try {
  5506. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5507. return returnValue;
  5508. }
  5509. finally {
  5510. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5511. this.Adapter.InsertCommand.Connection.Close();
  5512. }
  5513. }
  5514. }
  5515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5517. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5518. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5519. public virtual int Update(int OrderID, string ProductArticleNumber, global::System.Nullable<int> Count, int Original_idOrderProduct, int Original_OrderID, string Original_ProductArticleNumber, global::System.Nullable<int> Original_Count, int idOrderProduct) {
  5520. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(OrderID));
  5521. if ((ProductArticleNumber == null)) {
  5522. throw new global::System.ArgumentNullException("ProductArticleNumber");
  5523. }
  5524. else {
  5525. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProductArticleNumber));
  5526. }
  5527. if ((Count.HasValue == true)) {
  5528. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Count.Value));
  5529. }
  5530. else {
  5531. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5532. }
  5533. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_idOrderProduct));
  5534. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_OrderID));
  5535. if ((Original_ProductArticleNumber == null)) {
  5536. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  5537. }
  5538. else {
  5539. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_ProductArticleNumber));
  5540. }
  5541. if ((Original_Count.HasValue == true)) {
  5542. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  5543. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Count.Value));
  5544. }
  5545. else {
  5546. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  5547. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5548. }
  5549. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(idOrderProduct));
  5550. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5551. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5552. != global::System.Data.ConnectionState.Open)) {
  5553. this.Adapter.UpdateCommand.Connection.Open();
  5554. }
  5555. try {
  5556. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5557. return returnValue;
  5558. }
  5559. finally {
  5560. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5561. this.Adapter.UpdateCommand.Connection.Close();
  5562. }
  5563. }
  5564. }
  5565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5567. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5568. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5569. public virtual int Update(int OrderID, string ProductArticleNumber, global::System.Nullable<int> Count, int Original_idOrderProduct, int Original_OrderID, string Original_ProductArticleNumber, global::System.Nullable<int> Original_Count) {
  5570. return this.Update(OrderID, ProductArticleNumber, Count, Original_idOrderProduct, Original_OrderID, Original_ProductArticleNumber, Original_Count, Original_idOrderProduct);
  5571. }
  5572. }
  5573. /// <summary>
  5574. ///Represents the connection and commands used to retrieve and save data.
  5575. ///</summary>
  5576. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5577. [global::System.ComponentModel.ToolboxItem(true)]
  5578. [global::System.ComponentModel.DataObjectAttribute(true)]
  5579. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5580. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5581. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5582. public partial class PickupPointTableAdapter : global::System.ComponentModel.Component {
  5583. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5584. private global::System.Data.SqlClient.SqlConnection _connection;
  5585. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5586. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5587. private bool _clearBeforeFill;
  5588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5590. public PickupPointTableAdapter() {
  5591. this.ClearBeforeFill = true;
  5592. }
  5593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5595. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5596. get {
  5597. if ((this._adapter == null)) {
  5598. this.InitAdapter();
  5599. }
  5600. return this._adapter;
  5601. }
  5602. }
  5603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5605. internal global::System.Data.SqlClient.SqlConnection Connection {
  5606. get {
  5607. if ((this._connection == null)) {
  5608. this.InitConnection();
  5609. }
  5610. return this._connection;
  5611. }
  5612. set {
  5613. this._connection = value;
  5614. if ((this.Adapter.InsertCommand != null)) {
  5615. this.Adapter.InsertCommand.Connection = value;
  5616. }
  5617. if ((this.Adapter.DeleteCommand != null)) {
  5618. this.Adapter.DeleteCommand.Connection = value;
  5619. }
  5620. if ((this.Adapter.UpdateCommand != null)) {
  5621. this.Adapter.UpdateCommand.Connection = value;
  5622. }
  5623. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5624. if ((this.CommandCollection[i] != null)) {
  5625. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5626. }
  5627. }
  5628. }
  5629. }
  5630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5632. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5633. get {
  5634. return this._transaction;
  5635. }
  5636. set {
  5637. this._transaction = value;
  5638. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5639. this.CommandCollection[i].Transaction = this._transaction;
  5640. }
  5641. if (((this.Adapter != null)
  5642. && (this.Adapter.DeleteCommand != null))) {
  5643. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5644. }
  5645. if (((this.Adapter != null)
  5646. && (this.Adapter.InsertCommand != null))) {
  5647. this.Adapter.InsertCommand.Transaction = this._transaction;
  5648. }
  5649. if (((this.Adapter != null)
  5650. && (this.Adapter.UpdateCommand != null))) {
  5651. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5652. }
  5653. }
  5654. }
  5655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5657. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5658. get {
  5659. if ((this._commandCollection == null)) {
  5660. this.InitCommandCollection();
  5661. }
  5662. return this._commandCollection;
  5663. }
  5664. }
  5665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5667. public bool ClearBeforeFill {
  5668. get {
  5669. return this._clearBeforeFill;
  5670. }
  5671. set {
  5672. this._clearBeforeFill = value;
  5673. }
  5674. }
  5675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5677. private void InitAdapter() {
  5678. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5679. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5680. tableMapping.SourceTable = "Table";
  5681. tableMapping.DataSetTable = "PickupPoint";
  5682. tableMapping.ColumnMappings.Add("idPickupPoint", "idPickupPoint");
  5683. tableMapping.ColumnMappings.Add("PickupPointName", "PickupPointName");
  5684. this._adapter.TableMappings.Add(tableMapping);
  5685. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5686. this._adapter.DeleteCommand.Connection = this.Connection;
  5687. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[PickupPoint] WHERE (([idPickupPoint] = @Original_idPickupPoint" +
  5688. "))";
  5689. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5690. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idPickupPoint", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idPickupPoint", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5691. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5692. this._adapter.InsertCommand.Connection = this.Connection;
  5693. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[PickupPoint] ([PickupPointName]) VALUES (@PickupPointName);\r\nS" +
  5694. "ELECT idPickupPoint, PickupPointName FROM PickupPoint WHERE (idPickupPoint = SCO" +
  5695. "PE_IDENTITY())";
  5696. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5697. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PickupPointName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PickupPointName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5698. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5699. this._adapter.UpdateCommand.Connection = this.Connection;
  5700. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[PickupPoint] SET [PickupPointName] = @PickupPointName WHERE (([idPi" +
  5701. "ckupPoint] = @Original_idPickupPoint));\r\nSELECT idPickupPoint, PickupPointName F" +
  5702. "ROM PickupPoint WHERE (idPickupPoint = @idPickupPoint)";
  5703. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5704. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PickupPointName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PickupPointName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5705. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idPickupPoint", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idPickupPoint", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5706. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idPickupPoint", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5707. }
  5708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5710. private void InitConnection() {
  5711. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5712. this._connection.ConnectionString = global::СУБД_Спортивные_товары.Properties.Settings.Default.sporttovKNYConnectionString;
  5713. }
  5714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5716. private void InitCommandCollection() {
  5717. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5718. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5719. this._commandCollection[0].Connection = this.Connection;
  5720. this._commandCollection[0].CommandText = "SELECT idPickupPoint, PickupPointName FROM dbo.PickupPoint";
  5721. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5722. }
  5723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5725. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5726. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5727. public virtual int Fill(sporttovKNYDataSet.PickupPointDataTable dataTable) {
  5728. this.Adapter.SelectCommand = this.CommandCollection[0];
  5729. if ((this.ClearBeforeFill == true)) {
  5730. dataTable.Clear();
  5731. }
  5732. int returnValue = this.Adapter.Fill(dataTable);
  5733. return returnValue;
  5734. }
  5735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5737. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5738. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5739. public virtual sporttovKNYDataSet.PickupPointDataTable GetData() {
  5740. this.Adapter.SelectCommand = this.CommandCollection[0];
  5741. sporttovKNYDataSet.PickupPointDataTable dataTable = new sporttovKNYDataSet.PickupPointDataTable();
  5742. this.Adapter.Fill(dataTable);
  5743. return dataTable;
  5744. }
  5745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5748. public virtual int Update(sporttovKNYDataSet.PickupPointDataTable dataTable) {
  5749. return this.Adapter.Update(dataTable);
  5750. }
  5751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5754. public virtual int Update(sporttovKNYDataSet dataSet) {
  5755. return this.Adapter.Update(dataSet, "PickupPoint");
  5756. }
  5757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5759. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5760. public virtual int Update(global::System.Data.DataRow dataRow) {
  5761. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5762. dataRow});
  5763. }
  5764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5766. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5767. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5768. return this.Adapter.Update(dataRows);
  5769. }
  5770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5772. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5773. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5774. public virtual int Delete(int Original_idPickupPoint) {
  5775. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idPickupPoint));
  5776. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5777. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5778. != global::System.Data.ConnectionState.Open)) {
  5779. this.Adapter.DeleteCommand.Connection.Open();
  5780. }
  5781. try {
  5782. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5783. return returnValue;
  5784. }
  5785. finally {
  5786. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5787. this.Adapter.DeleteCommand.Connection.Close();
  5788. }
  5789. }
  5790. }
  5791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5793. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5794. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5795. public virtual int Insert(string PickupPointName) {
  5796. if ((PickupPointName == null)) {
  5797. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5798. }
  5799. else {
  5800. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(PickupPointName));
  5801. }
  5802. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5803. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5804. != global::System.Data.ConnectionState.Open)) {
  5805. this.Adapter.InsertCommand.Connection.Open();
  5806. }
  5807. try {
  5808. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5809. return returnValue;
  5810. }
  5811. finally {
  5812. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5813. this.Adapter.InsertCommand.Connection.Close();
  5814. }
  5815. }
  5816. }
  5817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5819. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5820. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5821. public virtual int Update(string PickupPointName, int Original_idPickupPoint, int idPickupPoint) {
  5822. if ((PickupPointName == null)) {
  5823. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5824. }
  5825. else {
  5826. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(PickupPointName));
  5827. }
  5828. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idPickupPoint));
  5829. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(idPickupPoint));
  5830. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5831. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5832. != global::System.Data.ConnectionState.Open)) {
  5833. this.Adapter.UpdateCommand.Connection.Open();
  5834. }
  5835. try {
  5836. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5837. return returnValue;
  5838. }
  5839. finally {
  5840. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5841. this.Adapter.UpdateCommand.Connection.Close();
  5842. }
  5843. }
  5844. }
  5845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5847. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5848. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5849. public virtual int Update(string PickupPointName, int Original_idPickupPoint) {
  5850. return this.Update(PickupPointName, Original_idPickupPoint, Original_idPickupPoint);
  5851. }
  5852. }
  5853. /// <summary>
  5854. ///Represents the connection and commands used to retrieve and save data.
  5855. ///</summary>
  5856. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5857. [global::System.ComponentModel.ToolboxItem(true)]
  5858. [global::System.ComponentModel.DataObjectAttribute(true)]
  5859. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5860. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5861. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5862. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  5863. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5864. private global::System.Data.SqlClient.SqlConnection _connection;
  5865. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5866. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5867. private bool _clearBeforeFill;
  5868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5870. public ProductTableAdapter() {
  5871. this.ClearBeforeFill = true;
  5872. }
  5873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5875. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5876. get {
  5877. if ((this._adapter == null)) {
  5878. this.InitAdapter();
  5879. }
  5880. return this._adapter;
  5881. }
  5882. }
  5883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5885. internal global::System.Data.SqlClient.SqlConnection Connection {
  5886. get {
  5887. if ((this._connection == null)) {
  5888. this.InitConnection();
  5889. }
  5890. return this._connection;
  5891. }
  5892. set {
  5893. this._connection = value;
  5894. if ((this.Adapter.InsertCommand != null)) {
  5895. this.Adapter.InsertCommand.Connection = value;
  5896. }
  5897. if ((this.Adapter.DeleteCommand != null)) {
  5898. this.Adapter.DeleteCommand.Connection = value;
  5899. }
  5900. if ((this.Adapter.UpdateCommand != null)) {
  5901. this.Adapter.UpdateCommand.Connection = value;
  5902. }
  5903. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5904. if ((this.CommandCollection[i] != null)) {
  5905. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5906. }
  5907. }
  5908. }
  5909. }
  5910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5912. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5913. get {
  5914. return this._transaction;
  5915. }
  5916. set {
  5917. this._transaction = value;
  5918. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5919. this.CommandCollection[i].Transaction = this._transaction;
  5920. }
  5921. if (((this.Adapter != null)
  5922. && (this.Adapter.DeleteCommand != null))) {
  5923. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5924. }
  5925. if (((this.Adapter != null)
  5926. && (this.Adapter.InsertCommand != null))) {
  5927. this.Adapter.InsertCommand.Transaction = this._transaction;
  5928. }
  5929. if (((this.Adapter != null)
  5930. && (this.Adapter.UpdateCommand != null))) {
  5931. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5932. }
  5933. }
  5934. }
  5935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5937. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5938. get {
  5939. if ((this._commandCollection == null)) {
  5940. this.InitCommandCollection();
  5941. }
  5942. return this._commandCollection;
  5943. }
  5944. }
  5945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5947. public bool ClearBeforeFill {
  5948. get {
  5949. return this._clearBeforeFill;
  5950. }
  5951. set {
  5952. this._clearBeforeFill = value;
  5953. }
  5954. }
  5955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5957. private void InitAdapter() {
  5958. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5959. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5960. tableMapping.SourceTable = "Table";
  5961. tableMapping.DataSetTable = "Product";
  5962. tableMapping.ColumnMappings.Add("ProductArticleNumber", "ProductArticleNumber");
  5963. tableMapping.ColumnMappings.Add("ProductName", "ProductName");
  5964. tableMapping.ColumnMappings.Add("Unit", "Unit");
  5965. tableMapping.ColumnMappings.Add("ProductCost", "ProductCost");
  5966. tableMapping.ColumnMappings.Add("ProductDiscountMax", "ProductDiscountMax");
  5967. tableMapping.ColumnMappings.Add("ProductManufacturer", "ProductManufacturer");
  5968. tableMapping.ColumnMappings.Add("ProductProvider", "ProductProvider");
  5969. tableMapping.ColumnMappings.Add("ProductCategory", "ProductCategory");
  5970. tableMapping.ColumnMappings.Add("ProductDiscountAmount", "ProductDiscountAmount");
  5971. tableMapping.ColumnMappings.Add("ProductQuantityInStock", "ProductQuantityInStock");
  5972. tableMapping.ColumnMappings.Add("ProductDescription", "ProductDescription");
  5973. tableMapping.ColumnMappings.Add("ProductPhoto", "ProductPhoto");
  5974. tableMapping.ColumnMappings.Add("ProductStatus", "ProductStatus");
  5975. this._adapter.TableMappings.Add(tableMapping);
  5976. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5977. this._adapter.DeleteCommand.Connection = this.Connection;
  5978. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([ProductArticleNumber] = @Original_ProductArticleNumber) AND ((@IsNull_Unit = 1 AND [Unit] IS NULL) OR ([Unit] = @Original_Unit)) AND ([ProductCost] = @Original_ProductCost) AND ((@IsNull_ProductDiscountMax = 1 AND [ProductDiscountMax] IS NULL) OR ([ProductDiscountMax] = @Original_ProductDiscountMax)) AND ([ProductManufacturer] = @Original_ProductManufacturer) AND ((@IsNull_ProductProvider = 1 AND [ProductProvider] IS NULL) OR ([ProductProvider] = @Original_ProductProvider)) AND ([ProductCategory] = @Original_ProductCategory) AND ((@IsNull_ProductDiscountAmount = 1 AND [ProductDiscountAmount] IS NULL) OR ([ProductDiscountAmount] = @Original_ProductDiscountAmount)) AND ([ProductQuantityInStock] = @Original_ProductQuantityInStock))";
  5979. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5980. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5981. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Unit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Unit", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5982. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Unit", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Unit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5983. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 4, "ProductCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5984. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductDiscountMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountMax", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5985. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductDiscountMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountMax", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5986. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductManufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductManufacturer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5987. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductProvider", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductProvider", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5988. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductProvider", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductProvider", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5989. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductCategory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductCategory", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5990. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductDiscountAmount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5991. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductDiscountAmount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5992. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductQuantityInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductQuantityInStock", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5993. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5994. this._adapter.InsertCommand.Connection = this.Connection;
  5995. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([ProductArticleNumber], [ProductName], [Unit], [ProductCost], [ProductDiscountMax], [ProductManufacturer], [ProductProvider], [ProductCategory], [ProductDiscountAmount], [ProductQuantityInStock], [ProductDescription], [ProductPhoto], [ProductStatus]) VALUES (@ProductArticleNumber, @ProductName, @Unit, @ProductCost, @ProductDiscountMax, @ProductManufacturer, @ProductProvider, @ProductCategory, @ProductDiscountAmount, @ProductQuantityInStock, @ProductDescription, @ProductPhoto, @ProductStatus);
  5996. SELECT ProductArticleNumber, ProductName, Unit, ProductCost, ProductDiscountMax, ProductManufacturer, ProductProvider, ProductCategory, ProductDiscountAmount, ProductQuantityInStock, ProductDescription, ProductPhoto, ProductStatus FROM Product WHERE (ProductArticleNumber = @ProductArticleNumber)";
  5997. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5998. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5999. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6000. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Unit", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Unit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6001. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 4, "ProductCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6002. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDiscountMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountMax", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6003. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductManufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductManufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6004. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductProvider", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductProvider", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6005. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCategory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductCategory", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6006. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDiscountAmount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6007. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductQuantityInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductQuantityInStock", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6008. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDescription", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDescription", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6009. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductPhoto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6010. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6011. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6012. this._adapter.UpdateCommand.Connection = this.Connection;
  6013. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Product] SET [ProductArticleNumber] = @ProductArticleNumber, [Produ" +
  6014. "ctName] = @ProductName, [Unit] = @Unit, [ProductCost] = @ProductCost, [ProductDi" +
  6015. "scountMax] = @ProductDiscountMax, [ProductManufacturer] = @ProductManufacturer, " +
  6016. "[ProductProvider] = @ProductProvider, [ProductCategory] = @ProductCategory, [Pro" +
  6017. "ductDiscountAmount] = @ProductDiscountAmount, [ProductQuantityInStock] = @Produc" +
  6018. "tQuantityInStock, [ProductDescription] = @ProductDescription, [ProductPhoto] = @" +
  6019. "ProductPhoto, [ProductStatus] = @ProductStatus WHERE (([ProductArticleNumber] = " +
  6020. "@Original_ProductArticleNumber) AND ((@IsNull_Unit = 1 AND [Unit] IS NULL) OR ([" +
  6021. "Unit] = @Original_Unit)) AND ([ProductCost] = @Original_ProductCost) AND ((@IsNu" +
  6022. "ll_ProductDiscountMax = 1 AND [ProductDiscountMax] IS NULL) OR ([ProductDiscount" +
  6023. "Max] = @Original_ProductDiscountMax)) AND ([ProductManufacturer] = @Original_Pro" +
  6024. "ductManufacturer) AND ((@IsNull_ProductProvider = 1 AND [ProductProvider] IS NUL" +
  6025. "L) OR ([ProductProvider] = @Original_ProductProvider)) AND ([ProductCategory] = " +
  6026. "@Original_ProductCategory) AND ((@IsNull_ProductDiscountAmount = 1 AND [ProductD" +
  6027. "iscountAmount] IS NULL) OR ([ProductDiscountAmount] = @Original_ProductDiscountA" +
  6028. "mount)) AND ([ProductQuantityInStock] = @Original_ProductQuantityInStock));\r\nSEL" +
  6029. "ECT ProductArticleNumber, ProductName, Unit, ProductCost, ProductDiscountMax, Pr" +
  6030. "oductManufacturer, ProductProvider, ProductCategory, ProductDiscountAmount, Prod" +
  6031. "uctQuantityInStock, ProductDescription, ProductPhoto, ProductStatus FROM Product" +
  6032. " WHERE (ProductArticleNumber = @ProductArticleNumber)";
  6033. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6034. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6035. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6036. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Unit", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Unit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6037. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 4, "ProductCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6038. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDiscountMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountMax", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6039. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductManufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductManufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6040. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductProvider", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductProvider", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6041. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCategory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductCategory", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6042. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDiscountAmount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6043. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductQuantityInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductQuantityInStock", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6044. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDescription", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDescription", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6045. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductPhoto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6046. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6047. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6048. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Unit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Unit", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6049. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Unit", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Unit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6050. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 4, "ProductCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6051. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductDiscountMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountMax", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6052. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductDiscountMax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountMax", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6053. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductManufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductManufacturer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6054. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductProvider", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductProvider", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6055. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductProvider", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductProvider", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6056. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductCategory", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductCategory", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6057. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductDiscountAmount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6058. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductDiscountAmount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6059. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductQuantityInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductQuantityInStock", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6060. }
  6061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6063. private void InitConnection() {
  6064. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6065. this._connection.ConnectionString = global::СУБД_Спортивные_товары.Properties.Settings.Default.sporttovKNYConnectionString;
  6066. }
  6067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6069. private void InitCommandCollection() {
  6070. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6071. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6072. this._commandCollection[0].Connection = this.Connection;
  6073. this._commandCollection[0].CommandText = "SELECT ProductArticleNumber, ProductName, Unit, ProductCost, ProductDiscountMax, " +
  6074. "ProductManufacturer, ProductProvider, ProductCategory, ProductDiscountAmount, Pr" +
  6075. "oductQuantityInStock, ProductDescription, ProductPhoto, ProductStatus FROM dbo.P" +
  6076. "roduct";
  6077. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6078. }
  6079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6081. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6082. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6083. public virtual int Fill(sporttovKNYDataSet.ProductDataTable dataTable) {
  6084. this.Adapter.SelectCommand = this.CommandCollection[0];
  6085. if ((this.ClearBeforeFill == true)) {
  6086. dataTable.Clear();
  6087. }
  6088. int returnValue = this.Adapter.Fill(dataTable);
  6089. return returnValue;
  6090. }
  6091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6093. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6094. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6095. public virtual sporttovKNYDataSet.ProductDataTable GetData() {
  6096. this.Adapter.SelectCommand = this.CommandCollection[0];
  6097. sporttovKNYDataSet.ProductDataTable dataTable = new sporttovKNYDataSet.ProductDataTable();
  6098. this.Adapter.Fill(dataTable);
  6099. return dataTable;
  6100. }
  6101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6103. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6104. public virtual int Update(sporttovKNYDataSet.ProductDataTable dataTable) {
  6105. return this.Adapter.Update(dataTable);
  6106. }
  6107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6109. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6110. public virtual int Update(sporttovKNYDataSet dataSet) {
  6111. return this.Adapter.Update(dataSet, "Product");
  6112. }
  6113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6115. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6116. public virtual int Update(global::System.Data.DataRow dataRow) {
  6117. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6118. dataRow});
  6119. }
  6120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6122. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6123. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6124. return this.Adapter.Update(dataRows);
  6125. }
  6126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6128. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6129. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6130. public virtual int Delete(string Original_ProductArticleNumber, string Original_Unit, decimal Original_ProductCost, global::System.Nullable<int> Original_ProductDiscountMax, int Original_ProductManufacturer, global::System.Nullable<int> Original_ProductProvider, int Original_ProductCategory, global::System.Nullable<byte> Original_ProductDiscountAmount, int Original_ProductQuantityInStock) {
  6131. if ((Original_ProductArticleNumber == null)) {
  6132. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  6133. }
  6134. else {
  6135. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_ProductArticleNumber));
  6136. }
  6137. if ((Original_Unit == null)) {
  6138. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6139. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6140. }
  6141. else {
  6142. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6143. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Unit));
  6144. }
  6145. this.Adapter.DeleteCommand.Parameters[3].Value = ((decimal)(Original_ProductCost));
  6146. if ((Original_ProductDiscountMax.HasValue == true)) {
  6147. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  6148. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ProductDiscountMax.Value));
  6149. }
  6150. else {
  6151. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  6152. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  6153. }
  6154. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_ProductManufacturer));
  6155. if ((Original_ProductProvider.HasValue == true)) {
  6156. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6157. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_ProductProvider.Value));
  6158. }
  6159. else {
  6160. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6161. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6162. }
  6163. this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_ProductCategory));
  6164. if ((Original_ProductDiscountAmount.HasValue == true)) {
  6165. this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0));
  6166. this.Adapter.DeleteCommand.Parameters[11].Value = ((byte)(Original_ProductDiscountAmount.Value));
  6167. }
  6168. else {
  6169. this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1));
  6170. this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value;
  6171. }
  6172. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_ProductQuantityInStock));
  6173. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6174. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6175. != global::System.Data.ConnectionState.Open)) {
  6176. this.Adapter.DeleteCommand.Connection.Open();
  6177. }
  6178. try {
  6179. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6180. return returnValue;
  6181. }
  6182. finally {
  6183. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6184. this.Adapter.DeleteCommand.Connection.Close();
  6185. }
  6186. }
  6187. }
  6188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6190. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6191. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6192. public virtual int Insert(string ProductArticleNumber, string ProductName, string Unit, decimal ProductCost, global::System.Nullable<int> ProductDiscountMax, int ProductManufacturer, global::System.Nullable<int> ProductProvider, int ProductCategory, global::System.Nullable<byte> ProductDiscountAmount, int ProductQuantityInStock, string ProductDescription, string ProductPhoto, string ProductStatus) {
  6193. if ((ProductArticleNumber == null)) {
  6194. throw new global::System.ArgumentNullException("ProductArticleNumber");
  6195. }
  6196. else {
  6197. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ProductArticleNumber));
  6198. }
  6199. if ((ProductName == null)) {
  6200. throw new global::System.ArgumentNullException("ProductName");
  6201. }
  6202. else {
  6203. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProductName));
  6204. }
  6205. if ((Unit == null)) {
  6206. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6207. }
  6208. else {
  6209. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Unit));
  6210. }
  6211. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(ProductCost));
  6212. if ((ProductDiscountMax.HasValue == true)) {
  6213. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(ProductDiscountMax.Value));
  6214. }
  6215. else {
  6216. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6217. }
  6218. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ProductManufacturer));
  6219. if ((ProductProvider.HasValue == true)) {
  6220. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(ProductProvider.Value));
  6221. }
  6222. else {
  6223. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  6224. }
  6225. this.Adapter.InsertCommand.Parameters[7].Value = ((int)(ProductCategory));
  6226. if ((ProductDiscountAmount.HasValue == true)) {
  6227. this.Adapter.InsertCommand.Parameters[8].Value = ((byte)(ProductDiscountAmount.Value));
  6228. }
  6229. else {
  6230. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  6231. }
  6232. this.Adapter.InsertCommand.Parameters[9].Value = ((int)(ProductQuantityInStock));
  6233. if ((ProductDescription == null)) {
  6234. throw new global::System.ArgumentNullException("ProductDescription");
  6235. }
  6236. else {
  6237. this.Adapter.InsertCommand.Parameters[10].Value = ((string)(ProductDescription));
  6238. }
  6239. if ((ProductPhoto == null)) {
  6240. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  6241. }
  6242. else {
  6243. this.Adapter.InsertCommand.Parameters[11].Value = ((string)(ProductPhoto));
  6244. }
  6245. if ((ProductStatus == null)) {
  6246. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  6247. }
  6248. else {
  6249. this.Adapter.InsertCommand.Parameters[12].Value = ((string)(ProductStatus));
  6250. }
  6251. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6252. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6253. != global::System.Data.ConnectionState.Open)) {
  6254. this.Adapter.InsertCommand.Connection.Open();
  6255. }
  6256. try {
  6257. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6258. return returnValue;
  6259. }
  6260. finally {
  6261. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6262. this.Adapter.InsertCommand.Connection.Close();
  6263. }
  6264. }
  6265. }
  6266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6268. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6269. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6270. public virtual int Update(
  6271. string ProductArticleNumber,
  6272. string ProductName,
  6273. string Unit,
  6274. decimal ProductCost,
  6275. global::System.Nullable<int> ProductDiscountMax,
  6276. int ProductManufacturer,
  6277. global::System.Nullable<int> ProductProvider,
  6278. int ProductCategory,
  6279. global::System.Nullable<byte> ProductDiscountAmount,
  6280. int ProductQuantityInStock,
  6281. string ProductDescription,
  6282. string ProductPhoto,
  6283. string ProductStatus,
  6284. string Original_ProductArticleNumber,
  6285. string Original_Unit,
  6286. decimal Original_ProductCost,
  6287. global::System.Nullable<int> Original_ProductDiscountMax,
  6288. int Original_ProductManufacturer,
  6289. global::System.Nullable<int> Original_ProductProvider,
  6290. int Original_ProductCategory,
  6291. global::System.Nullable<byte> Original_ProductDiscountAmount,
  6292. int Original_ProductQuantityInStock) {
  6293. if ((ProductArticleNumber == null)) {
  6294. throw new global::System.ArgumentNullException("ProductArticleNumber");
  6295. }
  6296. else {
  6297. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ProductArticleNumber));
  6298. }
  6299. if ((ProductName == null)) {
  6300. throw new global::System.ArgumentNullException("ProductName");
  6301. }
  6302. else {
  6303. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProductName));
  6304. }
  6305. if ((Unit == null)) {
  6306. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6307. }
  6308. else {
  6309. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Unit));
  6310. }
  6311. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(ProductCost));
  6312. if ((ProductDiscountMax.HasValue == true)) {
  6313. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ProductDiscountMax.Value));
  6314. }
  6315. else {
  6316. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6317. }
  6318. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ProductManufacturer));
  6319. if ((ProductProvider.HasValue == true)) {
  6320. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ProductProvider.Value));
  6321. }
  6322. else {
  6323. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6324. }
  6325. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(ProductCategory));
  6326. if ((ProductDiscountAmount.HasValue == true)) {
  6327. this.Adapter.UpdateCommand.Parameters[8].Value = ((byte)(ProductDiscountAmount.Value));
  6328. }
  6329. else {
  6330. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6331. }
  6332. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(ProductQuantityInStock));
  6333. if ((ProductDescription == null)) {
  6334. throw new global::System.ArgumentNullException("ProductDescription");
  6335. }
  6336. else {
  6337. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(ProductDescription));
  6338. }
  6339. if ((ProductPhoto == null)) {
  6340. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  6341. }
  6342. else {
  6343. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(ProductPhoto));
  6344. }
  6345. if ((ProductStatus == null)) {
  6346. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6347. }
  6348. else {
  6349. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(ProductStatus));
  6350. }
  6351. if ((Original_ProductArticleNumber == null)) {
  6352. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  6353. }
  6354. else {
  6355. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_ProductArticleNumber));
  6356. }
  6357. if ((Original_Unit == null)) {
  6358. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  6359. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  6360. }
  6361. else {
  6362. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  6363. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Unit));
  6364. }
  6365. this.Adapter.UpdateCommand.Parameters[16].Value = ((decimal)(Original_ProductCost));
  6366. if ((Original_ProductDiscountMax.HasValue == true)) {
  6367. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  6368. this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_ProductDiscountMax.Value));
  6369. }
  6370. else {
  6371. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  6372. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  6373. }
  6374. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_ProductManufacturer));
  6375. if ((Original_ProductProvider.HasValue == true)) {
  6376. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  6377. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_ProductProvider.Value));
  6378. }
  6379. else {
  6380. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  6381. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  6382. }
  6383. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(Original_ProductCategory));
  6384. if ((Original_ProductDiscountAmount.HasValue == true)) {
  6385. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
  6386. this.Adapter.UpdateCommand.Parameters[24].Value = ((byte)(Original_ProductDiscountAmount.Value));
  6387. }
  6388. else {
  6389. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
  6390. this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
  6391. }
  6392. this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_ProductQuantityInStock));
  6393. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6394. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6395. != global::System.Data.ConnectionState.Open)) {
  6396. this.Adapter.UpdateCommand.Connection.Open();
  6397. }
  6398. try {
  6399. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6400. return returnValue;
  6401. }
  6402. finally {
  6403. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6404. this.Adapter.UpdateCommand.Connection.Close();
  6405. }
  6406. }
  6407. }
  6408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6410. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6411. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6412. public virtual int Update(
  6413. string ProductName,
  6414. string Unit,
  6415. decimal ProductCost,
  6416. global::System.Nullable<int> ProductDiscountMax,
  6417. int ProductManufacturer,
  6418. global::System.Nullable<int> ProductProvider,
  6419. int ProductCategory,
  6420. global::System.Nullable<byte> ProductDiscountAmount,
  6421. int ProductQuantityInStock,
  6422. string ProductDescription,
  6423. string ProductPhoto,
  6424. string ProductStatus,
  6425. string Original_ProductArticleNumber,
  6426. string Original_Unit,
  6427. decimal Original_ProductCost,
  6428. global::System.Nullable<int> Original_ProductDiscountMax,
  6429. int Original_ProductManufacturer,
  6430. global::System.Nullable<int> Original_ProductProvider,
  6431. int Original_ProductCategory,
  6432. global::System.Nullable<byte> Original_ProductDiscountAmount,
  6433. int Original_ProductQuantityInStock) {
  6434. return this.Update(Original_ProductArticleNumber, ProductName, Unit, ProductCost, ProductDiscountMax, ProductManufacturer, ProductProvider, ProductCategory, ProductDiscountAmount, ProductQuantityInStock, ProductDescription, ProductPhoto, ProductStatus, Original_ProductArticleNumber, Original_Unit, Original_ProductCost, Original_ProductDiscountMax, Original_ProductManufacturer, Original_ProductProvider, Original_ProductCategory, Original_ProductDiscountAmount, Original_ProductQuantityInStock);
  6435. }
  6436. }
  6437. /// <summary>
  6438. ///Represents the connection and commands used to retrieve and save data.
  6439. ///</summary>
  6440. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6441. [global::System.ComponentModel.ToolboxItem(true)]
  6442. [global::System.ComponentModel.DataObjectAttribute(true)]
  6443. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6444. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6445. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6446. public partial class ProviderTableAdapter : global::System.ComponentModel.Component {
  6447. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6448. private global::System.Data.SqlClient.SqlConnection _connection;
  6449. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6450. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6451. private bool _clearBeforeFill;
  6452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6454. public ProviderTableAdapter() {
  6455. this.ClearBeforeFill = true;
  6456. }
  6457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6459. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6460. get {
  6461. if ((this._adapter == null)) {
  6462. this.InitAdapter();
  6463. }
  6464. return this._adapter;
  6465. }
  6466. }
  6467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6469. internal global::System.Data.SqlClient.SqlConnection Connection {
  6470. get {
  6471. if ((this._connection == null)) {
  6472. this.InitConnection();
  6473. }
  6474. return this._connection;
  6475. }
  6476. set {
  6477. this._connection = value;
  6478. if ((this.Adapter.InsertCommand != null)) {
  6479. this.Adapter.InsertCommand.Connection = value;
  6480. }
  6481. if ((this.Adapter.DeleteCommand != null)) {
  6482. this.Adapter.DeleteCommand.Connection = value;
  6483. }
  6484. if ((this.Adapter.UpdateCommand != null)) {
  6485. this.Adapter.UpdateCommand.Connection = value;
  6486. }
  6487. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6488. if ((this.CommandCollection[i] != null)) {
  6489. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6490. }
  6491. }
  6492. }
  6493. }
  6494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6496. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6497. get {
  6498. return this._transaction;
  6499. }
  6500. set {
  6501. this._transaction = value;
  6502. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6503. this.CommandCollection[i].Transaction = this._transaction;
  6504. }
  6505. if (((this.Adapter != null)
  6506. && (this.Adapter.DeleteCommand != null))) {
  6507. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6508. }
  6509. if (((this.Adapter != null)
  6510. && (this.Adapter.InsertCommand != null))) {
  6511. this.Adapter.InsertCommand.Transaction = this._transaction;
  6512. }
  6513. if (((this.Adapter != null)
  6514. && (this.Adapter.UpdateCommand != null))) {
  6515. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6516. }
  6517. }
  6518. }
  6519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6521. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6522. get {
  6523. if ((this._commandCollection == null)) {
  6524. this.InitCommandCollection();
  6525. }
  6526. return this._commandCollection;
  6527. }
  6528. }
  6529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6531. public bool ClearBeforeFill {
  6532. get {
  6533. return this._clearBeforeFill;
  6534. }
  6535. set {
  6536. this._clearBeforeFill = value;
  6537. }
  6538. }
  6539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6541. private void InitAdapter() {
  6542. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6543. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6544. tableMapping.SourceTable = "Table";
  6545. tableMapping.DataSetTable = "Provider";
  6546. tableMapping.ColumnMappings.Add("idProvider", "idProvider");
  6547. tableMapping.ColumnMappings.Add("ProviderName", "ProviderName");
  6548. this._adapter.TableMappings.Add(tableMapping);
  6549. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6550. this._adapter.DeleteCommand.Connection = this.Connection;
  6551. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Provider] WHERE (([idProvider] = @Original_idProvider) AND ((@" +
  6552. "IsNull_ProviderName = 1 AND [ProviderName] IS NULL) OR ([ProviderName] = @Origin" +
  6553. "al_ProviderName)))";
  6554. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6555. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idProvider", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idProvider", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6556. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProviderName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProviderName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6557. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProviderName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProviderName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6558. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6559. this._adapter.InsertCommand.Connection = this.Connection;
  6560. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Provider] ([ProviderName]) VALUES (@ProviderName);\r\nSELECT idP" +
  6561. "rovider, ProviderName FROM Provider WHERE (idProvider = SCOPE_IDENTITY())";
  6562. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6563. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProviderName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProviderName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6564. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6565. this._adapter.UpdateCommand.Connection = this.Connection;
  6566. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Provider] SET [ProviderName] = @ProviderName WHERE (([idProvider] = @Original_idProvider) AND ((@IsNull_ProviderName = 1 AND [ProviderName] IS NULL) OR ([ProviderName] = @Original_ProviderName)));
  6567. SELECT idProvider, ProviderName FROM Provider WHERE (idProvider = @idProvider)";
  6568. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6569. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProviderName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProviderName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6570. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idProvider", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idProvider", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6571. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProviderName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProviderName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6572. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProviderName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProviderName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6573. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idProvider", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idProvider", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6574. }
  6575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6577. private void InitConnection() {
  6578. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6579. this._connection.ConnectionString = global::СУБД_Спортивные_товары.Properties.Settings.Default.sporttovKNYConnectionString;
  6580. }
  6581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6583. private void InitCommandCollection() {
  6584. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6585. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6586. this._commandCollection[0].Connection = this.Connection;
  6587. this._commandCollection[0].CommandText = "SELECT idProvider, ProviderName FROM dbo.Provider";
  6588. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6589. }
  6590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6592. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6593. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6594. public virtual int Fill(sporttovKNYDataSet.ProviderDataTable dataTable) {
  6595. this.Adapter.SelectCommand = this.CommandCollection[0];
  6596. if ((this.ClearBeforeFill == true)) {
  6597. dataTable.Clear();
  6598. }
  6599. int returnValue = this.Adapter.Fill(dataTable);
  6600. return returnValue;
  6601. }
  6602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6604. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6605. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6606. public virtual sporttovKNYDataSet.ProviderDataTable GetData() {
  6607. this.Adapter.SelectCommand = this.CommandCollection[0];
  6608. sporttovKNYDataSet.ProviderDataTable dataTable = new sporttovKNYDataSet.ProviderDataTable();
  6609. this.Adapter.Fill(dataTable);
  6610. return dataTable;
  6611. }
  6612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6614. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6615. public virtual int Update(sporttovKNYDataSet.ProviderDataTable dataTable) {
  6616. return this.Adapter.Update(dataTable);
  6617. }
  6618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6620. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6621. public virtual int Update(sporttovKNYDataSet dataSet) {
  6622. return this.Adapter.Update(dataSet, "Provider");
  6623. }
  6624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6626. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6627. public virtual int Update(global::System.Data.DataRow dataRow) {
  6628. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6629. dataRow});
  6630. }
  6631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6633. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6634. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6635. return this.Adapter.Update(dataRows);
  6636. }
  6637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6639. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6640. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6641. public virtual int Delete(int Original_idProvider, string Original_ProviderName) {
  6642. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idProvider));
  6643. if ((Original_ProviderName == null)) {
  6644. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6645. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6646. }
  6647. else {
  6648. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6649. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ProviderName));
  6650. }
  6651. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6652. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6653. != global::System.Data.ConnectionState.Open)) {
  6654. this.Adapter.DeleteCommand.Connection.Open();
  6655. }
  6656. try {
  6657. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6658. return returnValue;
  6659. }
  6660. finally {
  6661. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6662. this.Adapter.DeleteCommand.Connection.Close();
  6663. }
  6664. }
  6665. }
  6666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6668. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6669. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6670. public virtual int Insert(string ProviderName) {
  6671. if ((ProviderName == null)) {
  6672. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6673. }
  6674. else {
  6675. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ProviderName));
  6676. }
  6677. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6678. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6679. != global::System.Data.ConnectionState.Open)) {
  6680. this.Adapter.InsertCommand.Connection.Open();
  6681. }
  6682. try {
  6683. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6684. return returnValue;
  6685. }
  6686. finally {
  6687. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6688. this.Adapter.InsertCommand.Connection.Close();
  6689. }
  6690. }
  6691. }
  6692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6694. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6695. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6696. public virtual int Update(string ProviderName, int Original_idProvider, string Original_ProviderName, int idProvider) {
  6697. if ((ProviderName == null)) {
  6698. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6699. }
  6700. else {
  6701. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ProviderName));
  6702. }
  6703. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idProvider));
  6704. if ((Original_ProviderName == null)) {
  6705. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6706. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6707. }
  6708. else {
  6709. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6710. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_ProviderName));
  6711. }
  6712. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idProvider));
  6713. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6714. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6715. != global::System.Data.ConnectionState.Open)) {
  6716. this.Adapter.UpdateCommand.Connection.Open();
  6717. }
  6718. try {
  6719. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6720. return returnValue;
  6721. }
  6722. finally {
  6723. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6724. this.Adapter.UpdateCommand.Connection.Close();
  6725. }
  6726. }
  6727. }
  6728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6730. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6731. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6732. public virtual int Update(string ProviderName, int Original_idProvider, string Original_ProviderName) {
  6733. return this.Update(ProviderName, Original_idProvider, Original_ProviderName, Original_idProvider);
  6734. }
  6735. }
  6736. /// <summary>
  6737. ///Represents the connection and commands used to retrieve and save data.
  6738. ///</summary>
  6739. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6740. [global::System.ComponentModel.ToolboxItem(true)]
  6741. [global::System.ComponentModel.DataObjectAttribute(true)]
  6742. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6743. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6744. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6745. public partial class RoleTableAdapter : global::System.ComponentModel.Component {
  6746. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6747. private global::System.Data.SqlClient.SqlConnection _connection;
  6748. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6749. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6750. private bool _clearBeforeFill;
  6751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6753. public RoleTableAdapter() {
  6754. this.ClearBeforeFill = true;
  6755. }
  6756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6758. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6759. get {
  6760. if ((this._adapter == null)) {
  6761. this.InitAdapter();
  6762. }
  6763. return this._adapter;
  6764. }
  6765. }
  6766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6768. internal global::System.Data.SqlClient.SqlConnection Connection {
  6769. get {
  6770. if ((this._connection == null)) {
  6771. this.InitConnection();
  6772. }
  6773. return this._connection;
  6774. }
  6775. set {
  6776. this._connection = value;
  6777. if ((this.Adapter.InsertCommand != null)) {
  6778. this.Adapter.InsertCommand.Connection = value;
  6779. }
  6780. if ((this.Adapter.DeleteCommand != null)) {
  6781. this.Adapter.DeleteCommand.Connection = value;
  6782. }
  6783. if ((this.Adapter.UpdateCommand != null)) {
  6784. this.Adapter.UpdateCommand.Connection = value;
  6785. }
  6786. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6787. if ((this.CommandCollection[i] != null)) {
  6788. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6789. }
  6790. }
  6791. }
  6792. }
  6793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6795. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6796. get {
  6797. return this._transaction;
  6798. }
  6799. set {
  6800. this._transaction = value;
  6801. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6802. this.CommandCollection[i].Transaction = this._transaction;
  6803. }
  6804. if (((this.Adapter != null)
  6805. && (this.Adapter.DeleteCommand != null))) {
  6806. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6807. }
  6808. if (((this.Adapter != null)
  6809. && (this.Adapter.InsertCommand != null))) {
  6810. this.Adapter.InsertCommand.Transaction = this._transaction;
  6811. }
  6812. if (((this.Adapter != null)
  6813. && (this.Adapter.UpdateCommand != null))) {
  6814. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6815. }
  6816. }
  6817. }
  6818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6820. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6821. get {
  6822. if ((this._commandCollection == null)) {
  6823. this.InitCommandCollection();
  6824. }
  6825. return this._commandCollection;
  6826. }
  6827. }
  6828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6830. public bool ClearBeforeFill {
  6831. get {
  6832. return this._clearBeforeFill;
  6833. }
  6834. set {
  6835. this._clearBeforeFill = value;
  6836. }
  6837. }
  6838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6840. private void InitAdapter() {
  6841. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6842. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6843. tableMapping.SourceTable = "Table";
  6844. tableMapping.DataSetTable = "Role";
  6845. tableMapping.ColumnMappings.Add("RoleID", "RoleID");
  6846. tableMapping.ColumnMappings.Add("RoleName", "RoleName");
  6847. this._adapter.TableMappings.Add(tableMapping);
  6848. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6849. this._adapter.DeleteCommand.Connection = this.Connection;
  6850. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Role] WHERE (([RoleID] = @Original_RoleID) AND ([RoleName] = @" +
  6851. "Original_RoleName))";
  6852. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6853. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RoleID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6854. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RoleName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6855. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6856. this._adapter.InsertCommand.Connection = this.Connection;
  6857. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Role] ([RoleName]) VALUES (@RoleName);\r\nSELECT RoleID, RoleNam" +
  6858. "e FROM Role WHERE (RoleID = SCOPE_IDENTITY())";
  6859. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6860. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RoleName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6861. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6862. this._adapter.UpdateCommand.Connection = this.Connection;
  6863. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Role] SET [RoleName] = @RoleName WHERE (([RoleID] = @Original_RoleI" +
  6864. "D) AND ([RoleName] = @Original_RoleName));\r\nSELECT RoleID, RoleName FROM Role WH" +
  6865. "ERE (RoleID = @RoleID)";
  6866. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6867. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RoleName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6868. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RoleID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6869. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RoleName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6870. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RoleID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "RoleID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6871. }
  6872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6874. private void InitConnection() {
  6875. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6876. this._connection.ConnectionString = global::СУБД_Спортивные_товары.Properties.Settings.Default.sporttovKNYConnectionString;
  6877. }
  6878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6880. private void InitCommandCollection() {
  6881. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6882. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6883. this._commandCollection[0].Connection = this.Connection;
  6884. this._commandCollection[0].CommandText = "SELECT RoleID, RoleName FROM dbo.Role";
  6885. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6886. }
  6887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6889. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6890. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6891. public virtual int Fill(sporttovKNYDataSet.RoleDataTable dataTable) {
  6892. this.Adapter.SelectCommand = this.CommandCollection[0];
  6893. if ((this.ClearBeforeFill == true)) {
  6894. dataTable.Clear();
  6895. }
  6896. int returnValue = this.Adapter.Fill(dataTable);
  6897. return returnValue;
  6898. }
  6899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6901. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6902. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6903. public virtual sporttovKNYDataSet.RoleDataTable GetData() {
  6904. this.Adapter.SelectCommand = this.CommandCollection[0];
  6905. sporttovKNYDataSet.RoleDataTable dataTable = new sporttovKNYDataSet.RoleDataTable();
  6906. this.Adapter.Fill(dataTable);
  6907. return dataTable;
  6908. }
  6909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6911. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6912. public virtual int Update(sporttovKNYDataSet.RoleDataTable dataTable) {
  6913. return this.Adapter.Update(dataTable);
  6914. }
  6915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6917. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6918. public virtual int Update(sporttovKNYDataSet dataSet) {
  6919. return this.Adapter.Update(dataSet, "Role");
  6920. }
  6921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6923. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6924. public virtual int Update(global::System.Data.DataRow dataRow) {
  6925. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6926. dataRow});
  6927. }
  6928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6930. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6931. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6932. return this.Adapter.Update(dataRows);
  6933. }
  6934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6936. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6937. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6938. public virtual int Delete(int Original_RoleID, string Original_RoleName) {
  6939. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_RoleID));
  6940. if ((Original_RoleName == null)) {
  6941. throw new global::System.ArgumentNullException("Original_RoleName");
  6942. }
  6943. else {
  6944. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_RoleName));
  6945. }
  6946. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6947. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6948. != global::System.Data.ConnectionState.Open)) {
  6949. this.Adapter.DeleteCommand.Connection.Open();
  6950. }
  6951. try {
  6952. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6953. return returnValue;
  6954. }
  6955. finally {
  6956. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6957. this.Adapter.DeleteCommand.Connection.Close();
  6958. }
  6959. }
  6960. }
  6961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6963. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6964. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6965. public virtual int Insert(string RoleName) {
  6966. if ((RoleName == null)) {
  6967. throw new global::System.ArgumentNullException("RoleName");
  6968. }
  6969. else {
  6970. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(RoleName));
  6971. }
  6972. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6973. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6974. != global::System.Data.ConnectionState.Open)) {
  6975. this.Adapter.InsertCommand.Connection.Open();
  6976. }
  6977. try {
  6978. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6979. return returnValue;
  6980. }
  6981. finally {
  6982. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6983. this.Adapter.InsertCommand.Connection.Close();
  6984. }
  6985. }
  6986. }
  6987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6989. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6990. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6991. public virtual int Update(string RoleName, int Original_RoleID, string Original_RoleName, int RoleID) {
  6992. if ((RoleName == null)) {
  6993. throw new global::System.ArgumentNullException("RoleName");
  6994. }
  6995. else {
  6996. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(RoleName));
  6997. }
  6998. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_RoleID));
  6999. if ((Original_RoleName == null)) {
  7000. throw new global::System.ArgumentNullException("Original_RoleName");
  7001. }
  7002. else {
  7003. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_RoleName));
  7004. }
  7005. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(RoleID));
  7006. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7007. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7008. != global::System.Data.ConnectionState.Open)) {
  7009. this.Adapter.UpdateCommand.Connection.Open();
  7010. }
  7011. try {
  7012. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7013. return returnValue;
  7014. }
  7015. finally {
  7016. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7017. this.Adapter.UpdateCommand.Connection.Close();
  7018. }
  7019. }
  7020. }
  7021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7023. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7024. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7025. public virtual int Update(string RoleName, int Original_RoleID, string Original_RoleName) {
  7026. return this.Update(RoleName, Original_RoleID, Original_RoleName, Original_RoleID);
  7027. }
  7028. }
  7029. /// <summary>
  7030. ///Represents the connection and commands used to retrieve and save data.
  7031. ///</summary>
  7032. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7033. [global::System.ComponentModel.ToolboxItem(true)]
  7034. [global::System.ComponentModel.DataObjectAttribute(true)]
  7035. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7036. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7037. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7038. public partial class UserTableAdapter : global::System.ComponentModel.Component {
  7039. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7040. private global::System.Data.SqlClient.SqlConnection _connection;
  7041. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7042. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7043. private bool _clearBeforeFill;
  7044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7046. public UserTableAdapter() {
  7047. this.ClearBeforeFill = true;
  7048. }
  7049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7051. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7052. get {
  7053. if ((this._adapter == null)) {
  7054. this.InitAdapter();
  7055. }
  7056. return this._adapter;
  7057. }
  7058. }
  7059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7061. internal global::System.Data.SqlClient.SqlConnection Connection {
  7062. get {
  7063. if ((this._connection == null)) {
  7064. this.InitConnection();
  7065. }
  7066. return this._connection;
  7067. }
  7068. set {
  7069. this._connection = value;
  7070. if ((this.Adapter.InsertCommand != null)) {
  7071. this.Adapter.InsertCommand.Connection = value;
  7072. }
  7073. if ((this.Adapter.DeleteCommand != null)) {
  7074. this.Adapter.DeleteCommand.Connection = value;
  7075. }
  7076. if ((this.Adapter.UpdateCommand != null)) {
  7077. this.Adapter.UpdateCommand.Connection = value;
  7078. }
  7079. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7080. if ((this.CommandCollection[i] != null)) {
  7081. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7082. }
  7083. }
  7084. }
  7085. }
  7086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7088. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7089. get {
  7090. return this._transaction;
  7091. }
  7092. set {
  7093. this._transaction = value;
  7094. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7095. this.CommandCollection[i].Transaction = this._transaction;
  7096. }
  7097. if (((this.Adapter != null)
  7098. && (this.Adapter.DeleteCommand != null))) {
  7099. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7100. }
  7101. if (((this.Adapter != null)
  7102. && (this.Adapter.InsertCommand != null))) {
  7103. this.Adapter.InsertCommand.Transaction = this._transaction;
  7104. }
  7105. if (((this.Adapter != null)
  7106. && (this.Adapter.UpdateCommand != null))) {
  7107. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7108. }
  7109. }
  7110. }
  7111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7113. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7114. get {
  7115. if ((this._commandCollection == null)) {
  7116. this.InitCommandCollection();
  7117. }
  7118. return this._commandCollection;
  7119. }
  7120. }
  7121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7123. public bool ClearBeforeFill {
  7124. get {
  7125. return this._clearBeforeFill;
  7126. }
  7127. set {
  7128. this._clearBeforeFill = value;
  7129. }
  7130. }
  7131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7133. private void InitAdapter() {
  7134. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7135. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7136. tableMapping.SourceTable = "Table";
  7137. tableMapping.DataSetTable = "User";
  7138. tableMapping.ColumnMappings.Add("UserID", "UserID");
  7139. tableMapping.ColumnMappings.Add("UserRole", "UserRole");
  7140. tableMapping.ColumnMappings.Add("UserSurname", "UserSurname");
  7141. tableMapping.ColumnMappings.Add("UserName", "UserName");
  7142. tableMapping.ColumnMappings.Add("UserPatronymic", "UserPatronymic");
  7143. tableMapping.ColumnMappings.Add("UserLogin", "UserLogin");
  7144. tableMapping.ColumnMappings.Add("UserPassword", "UserPassword");
  7145. this._adapter.TableMappings.Add(tableMapping);
  7146. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7147. this._adapter.DeleteCommand.Connection = this.Connection;
  7148. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[User] WHERE (([UserID] = @Original_UserID) AND ([UserRole] = @" +
  7149. "Original_UserRole) AND ([UserSurname] = @Original_UserSurname) AND ([UserName] =" +
  7150. " @Original_UserName) AND ([UserPatronymic] = @Original_UserPatronymic))";
  7151. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7152. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7153. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7154. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7155. 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, "", "", ""));
  7156. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7157. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7158. this._adapter.InsertCommand.Connection = this.Connection;
  7159. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[User] ([UserRole], [UserSurname], [UserName], [UserPatronymic], [UserLogin], [UserPassword]) VALUES (@UserRole, @UserSurname, @UserName, @UserPatronymic, @UserLogin, @UserPassword);
  7160. SELECT UserID, UserRole, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword FROM [User] WHERE (UserID = SCOPE_IDENTITY())";
  7161. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7162. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7163. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7164. 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, "", "", ""));
  7165. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7166. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserLogin", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserLogin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7167. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPassword", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPassword", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7168. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7169. this._adapter.UpdateCommand.Connection = this.Connection;
  7170. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[User] SET [UserRole] = @UserRole, [UserSurname] = @UserSurname, [UserName] = @UserName, [UserPatronymic] = @UserPatronymic, [UserLogin] = @UserLogin, [UserPassword] = @UserPassword WHERE (([UserID] = @Original_UserID) AND ([UserRole] = @Original_UserRole) AND ([UserSurname] = @Original_UserSurname) AND ([UserName] = @Original_UserName) AND ([UserPatronymic] = @Original_UserPatronymic));
  7171. SELECT UserID, UserRole, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword FROM [User] WHERE (UserID = @UserID)";
  7172. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7173. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7174. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7175. 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, "", "", ""));
  7176. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7177. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserLogin", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserLogin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7178. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPassword", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPassword", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7179. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7180. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7181. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7182. 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, "", "", ""));
  7183. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7184. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7185. }
  7186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7188. private void InitConnection() {
  7189. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7190. this._connection.ConnectionString = global::СУБД_Спортивные_товары.Properties.Settings.Default.sporttovKNYConnectionString;
  7191. }
  7192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7194. private void InitCommandCollection() {
  7195. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7196. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7197. this._commandCollection[0].Connection = this.Connection;
  7198. this._commandCollection[0].CommandText = "SELECT UserID, UserRole, UserSurname, UserName, UserPatronymic, UserLogin, UserPa" +
  7199. "ssword FROM dbo.[User]";
  7200. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7201. }
  7202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7204. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7205. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7206. public virtual int Fill(sporttovKNYDataSet.UserDataTable dataTable) {
  7207. this.Adapter.SelectCommand = this.CommandCollection[0];
  7208. if ((this.ClearBeforeFill == true)) {
  7209. dataTable.Clear();
  7210. }
  7211. int returnValue = this.Adapter.Fill(dataTable);
  7212. return returnValue;
  7213. }
  7214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7216. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7217. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7218. public virtual sporttovKNYDataSet.UserDataTable GetData() {
  7219. this.Adapter.SelectCommand = this.CommandCollection[0];
  7220. sporttovKNYDataSet.UserDataTable dataTable = new sporttovKNYDataSet.UserDataTable();
  7221. this.Adapter.Fill(dataTable);
  7222. return dataTable;
  7223. }
  7224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7226. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7227. public virtual int Update(sporttovKNYDataSet.UserDataTable dataTable) {
  7228. return this.Adapter.Update(dataTable);
  7229. }
  7230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7232. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7233. public virtual int Update(sporttovKNYDataSet dataSet) {
  7234. return this.Adapter.Update(dataSet, "User");
  7235. }
  7236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7238. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7239. public virtual int Update(global::System.Data.DataRow dataRow) {
  7240. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7241. dataRow});
  7242. }
  7243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7245. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7246. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7247. return this.Adapter.Update(dataRows);
  7248. }
  7249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7251. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7252. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7253. public virtual int Delete(int Original_UserID, int Original_UserRole, string Original_UserSurname, string Original_UserName, string Original_UserPatronymic) {
  7254. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_UserID));
  7255. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_UserRole));
  7256. if ((Original_UserSurname == null)) {
  7257. throw new global::System.ArgumentNullException("Original_UserSurname");
  7258. }
  7259. else {
  7260. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_UserSurname));
  7261. }
  7262. if ((Original_UserName == null)) {
  7263. throw new global::System.ArgumentNullException("Original_UserName");
  7264. }
  7265. else {
  7266. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_UserName));
  7267. }
  7268. if ((Original_UserPatronymic == null)) {
  7269. throw new global::System.ArgumentNullException("Original_UserPatronymic");
  7270. }
  7271. else {
  7272. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_UserPatronymic));
  7273. }
  7274. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7275. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7276. != global::System.Data.ConnectionState.Open)) {
  7277. this.Adapter.DeleteCommand.Connection.Open();
  7278. }
  7279. try {
  7280. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7281. return returnValue;
  7282. }
  7283. finally {
  7284. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7285. this.Adapter.DeleteCommand.Connection.Close();
  7286. }
  7287. }
  7288. }
  7289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7291. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7292. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7293. public virtual int Insert(int UserRole, string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword) {
  7294. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(UserRole));
  7295. if ((UserSurname == null)) {
  7296. throw new global::System.ArgumentNullException("UserSurname");
  7297. }
  7298. else {
  7299. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(UserSurname));
  7300. }
  7301. if ((UserName == null)) {
  7302. throw new global::System.ArgumentNullException("UserName");
  7303. }
  7304. else {
  7305. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(UserName));
  7306. }
  7307. if ((UserPatronymic == null)) {
  7308. throw new global::System.ArgumentNullException("UserPatronymic");
  7309. }
  7310. else {
  7311. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(UserPatronymic));
  7312. }
  7313. if ((UserLogin == null)) {
  7314. throw new global::System.ArgumentNullException("UserLogin");
  7315. }
  7316. else {
  7317. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(UserLogin));
  7318. }
  7319. if ((UserPassword == null)) {
  7320. throw new global::System.ArgumentNullException("UserPassword");
  7321. }
  7322. else {
  7323. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(UserPassword));
  7324. }
  7325. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7326. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7327. != global::System.Data.ConnectionState.Open)) {
  7328. this.Adapter.InsertCommand.Connection.Open();
  7329. }
  7330. try {
  7331. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7332. return returnValue;
  7333. }
  7334. finally {
  7335. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7336. this.Adapter.InsertCommand.Connection.Close();
  7337. }
  7338. }
  7339. }
  7340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7342. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7343. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7344. public virtual int Update(int UserRole, string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, int Original_UserID, int Original_UserRole, string Original_UserSurname, string Original_UserName, string Original_UserPatronymic, int UserID) {
  7345. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(UserRole));
  7346. if ((UserSurname == null)) {
  7347. throw new global::System.ArgumentNullException("UserSurname");
  7348. }
  7349. else {
  7350. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(UserSurname));
  7351. }
  7352. if ((UserName == null)) {
  7353. throw new global::System.ArgumentNullException("UserName");
  7354. }
  7355. else {
  7356. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(UserName));
  7357. }
  7358. if ((UserPatronymic == null)) {
  7359. throw new global::System.ArgumentNullException("UserPatronymic");
  7360. }
  7361. else {
  7362. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(UserPatronymic));
  7363. }
  7364. if ((UserLogin == null)) {
  7365. throw new global::System.ArgumentNullException("UserLogin");
  7366. }
  7367. else {
  7368. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(UserLogin));
  7369. }
  7370. if ((UserPassword == null)) {
  7371. throw new global::System.ArgumentNullException("UserPassword");
  7372. }
  7373. else {
  7374. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(UserPassword));
  7375. }
  7376. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_UserID));
  7377. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_UserRole));
  7378. if ((Original_UserSurname == null)) {
  7379. throw new global::System.ArgumentNullException("Original_UserSurname");
  7380. }
  7381. else {
  7382. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_UserSurname));
  7383. }
  7384. if ((Original_UserName == null)) {
  7385. throw new global::System.ArgumentNullException("Original_UserName");
  7386. }
  7387. else {
  7388. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_UserName));
  7389. }
  7390. if ((Original_UserPatronymic == null)) {
  7391. throw new global::System.ArgumentNullException("Original_UserPatronymic");
  7392. }
  7393. else {
  7394. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_UserPatronymic));
  7395. }
  7396. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(UserID));
  7397. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7398. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7399. != global::System.Data.ConnectionState.Open)) {
  7400. this.Adapter.UpdateCommand.Connection.Open();
  7401. }
  7402. try {
  7403. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7404. return returnValue;
  7405. }
  7406. finally {
  7407. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7408. this.Adapter.UpdateCommand.Connection.Close();
  7409. }
  7410. }
  7411. }
  7412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7414. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7415. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7416. public virtual int Update(int UserRole, string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, int Original_UserID, int Original_UserRole, string Original_UserSurname, string Original_UserName, string Original_UserPatronymic) {
  7417. return this.Update(UserRole, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, Original_UserID, Original_UserRole, Original_UserSurname, Original_UserName, Original_UserPatronymic, Original_UserID);
  7418. }
  7419. }
  7420. /// <summary>
  7421. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  7422. ///</summary>
  7423. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7424. [global::System.ComponentModel.ToolboxItem(true)]
  7425. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  7426. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7427. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  7428. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  7429. private UpdateOrderOption _updateOrder;
  7430. private CategoryTableAdapter _categoryTableAdapter;
  7431. private ManufacturerTableAdapter _manufacturerTableAdapter;
  7432. private OrderTableAdapter _orderTableAdapter;
  7433. private OrderProductTableAdapter _orderProductTableAdapter;
  7434. private PickupPointTableAdapter _pickupPointTableAdapter;
  7435. private ProductTableAdapter _productTableAdapter;
  7436. private ProviderTableAdapter _providerTableAdapter;
  7437. private RoleTableAdapter _roleTableAdapter;
  7438. private UserTableAdapter _userTableAdapter;
  7439. private bool _backupDataSetBeforeUpdate;
  7440. private global::System.Data.IDbConnection _connection;
  7441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7443. public UpdateOrderOption UpdateOrder {
  7444. get {
  7445. return this._updateOrder;
  7446. }
  7447. set {
  7448. this._updateOrder = value;
  7449. }
  7450. }
  7451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7453. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7454. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7455. "a", "System.Drawing.Design.UITypeEditor")]
  7456. public CategoryTableAdapter CategoryTableAdapter {
  7457. get {
  7458. return this._categoryTableAdapter;
  7459. }
  7460. set {
  7461. this._categoryTableAdapter = value;
  7462. }
  7463. }
  7464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7466. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7467. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7468. "a", "System.Drawing.Design.UITypeEditor")]
  7469. public ManufacturerTableAdapter ManufacturerTableAdapter {
  7470. get {
  7471. return this._manufacturerTableAdapter;
  7472. }
  7473. set {
  7474. this._manufacturerTableAdapter = value;
  7475. }
  7476. }
  7477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7479. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7480. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7481. "a", "System.Drawing.Design.UITypeEditor")]
  7482. public OrderTableAdapter OrderTableAdapter {
  7483. get {
  7484. return this._orderTableAdapter;
  7485. }
  7486. set {
  7487. this._orderTableAdapter = value;
  7488. }
  7489. }
  7490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7492. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7493. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7494. "a", "System.Drawing.Design.UITypeEditor")]
  7495. public OrderProductTableAdapter OrderProductTableAdapter {
  7496. get {
  7497. return this._orderProductTableAdapter;
  7498. }
  7499. set {
  7500. this._orderProductTableAdapter = value;
  7501. }
  7502. }
  7503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7505. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7506. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7507. "a", "System.Drawing.Design.UITypeEditor")]
  7508. public PickupPointTableAdapter PickupPointTableAdapter {
  7509. get {
  7510. return this._pickupPointTableAdapter;
  7511. }
  7512. set {
  7513. this._pickupPointTableAdapter = value;
  7514. }
  7515. }
  7516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7518. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7519. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7520. "a", "System.Drawing.Design.UITypeEditor")]
  7521. public ProductTableAdapter ProductTableAdapter {
  7522. get {
  7523. return this._productTableAdapter;
  7524. }
  7525. set {
  7526. this._productTableAdapter = value;
  7527. }
  7528. }
  7529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7531. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7532. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7533. "a", "System.Drawing.Design.UITypeEditor")]
  7534. public ProviderTableAdapter ProviderTableAdapter {
  7535. get {
  7536. return this._providerTableAdapter;
  7537. }
  7538. set {
  7539. this._providerTableAdapter = value;
  7540. }
  7541. }
  7542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7544. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7545. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7546. "a", "System.Drawing.Design.UITypeEditor")]
  7547. public RoleTableAdapter RoleTableAdapter {
  7548. get {
  7549. return this._roleTableAdapter;
  7550. }
  7551. set {
  7552. this._roleTableAdapter = value;
  7553. }
  7554. }
  7555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7557. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  7558. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  7559. "a", "System.Drawing.Design.UITypeEditor")]
  7560. public UserTableAdapter UserTableAdapter {
  7561. get {
  7562. return this._userTableAdapter;
  7563. }
  7564. set {
  7565. this._userTableAdapter = value;
  7566. }
  7567. }
  7568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7570. public bool BackupDataSetBeforeUpdate {
  7571. get {
  7572. return this._backupDataSetBeforeUpdate;
  7573. }
  7574. set {
  7575. this._backupDataSetBeforeUpdate = value;
  7576. }
  7577. }
  7578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7580. [global::System.ComponentModel.Browsable(false)]
  7581. public global::System.Data.IDbConnection Connection {
  7582. get {
  7583. if ((this._connection != null)) {
  7584. return this._connection;
  7585. }
  7586. if (((this._categoryTableAdapter != null)
  7587. && (this._categoryTableAdapter.Connection != null))) {
  7588. return this._categoryTableAdapter.Connection;
  7589. }
  7590. if (((this._manufacturerTableAdapter != null)
  7591. && (this._manufacturerTableAdapter.Connection != null))) {
  7592. return this._manufacturerTableAdapter.Connection;
  7593. }
  7594. if (((this._orderTableAdapter != null)
  7595. && (this._orderTableAdapter.Connection != null))) {
  7596. return this._orderTableAdapter.Connection;
  7597. }
  7598. if (((this._orderProductTableAdapter != null)
  7599. && (this._orderProductTableAdapter.Connection != null))) {
  7600. return this._orderProductTableAdapter.Connection;
  7601. }
  7602. if (((this._pickupPointTableAdapter != null)
  7603. && (this._pickupPointTableAdapter.Connection != null))) {
  7604. return this._pickupPointTableAdapter.Connection;
  7605. }
  7606. if (((this._productTableAdapter != null)
  7607. && (this._productTableAdapter.Connection != null))) {
  7608. return this._productTableAdapter.Connection;
  7609. }
  7610. if (((this._providerTableAdapter != null)
  7611. && (this._providerTableAdapter.Connection != null))) {
  7612. return this._providerTableAdapter.Connection;
  7613. }
  7614. if (((this._roleTableAdapter != null)
  7615. && (this._roleTableAdapter.Connection != null))) {
  7616. return this._roleTableAdapter.Connection;
  7617. }
  7618. if (((this._userTableAdapter != null)
  7619. && (this._userTableAdapter.Connection != null))) {
  7620. return this._userTableAdapter.Connection;
  7621. }
  7622. return null;
  7623. }
  7624. set {
  7625. this._connection = value;
  7626. }
  7627. }
  7628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7630. [global::System.ComponentModel.Browsable(false)]
  7631. public int TableAdapterInstanceCount {
  7632. get {
  7633. int count = 0;
  7634. if ((this._categoryTableAdapter != null)) {
  7635. count = (count + 1);
  7636. }
  7637. if ((this._manufacturerTableAdapter != null)) {
  7638. count = (count + 1);
  7639. }
  7640. if ((this._orderTableAdapter != null)) {
  7641. count = (count + 1);
  7642. }
  7643. if ((this._orderProductTableAdapter != null)) {
  7644. count = (count + 1);
  7645. }
  7646. if ((this._pickupPointTableAdapter != null)) {
  7647. count = (count + 1);
  7648. }
  7649. if ((this._productTableAdapter != null)) {
  7650. count = (count + 1);
  7651. }
  7652. if ((this._providerTableAdapter != null)) {
  7653. count = (count + 1);
  7654. }
  7655. if ((this._roleTableAdapter != null)) {
  7656. count = (count + 1);
  7657. }
  7658. if ((this._userTableAdapter != null)) {
  7659. count = (count + 1);
  7660. }
  7661. return count;
  7662. }
  7663. }
  7664. /// <summary>
  7665. ///Update rows in top-down order.
  7666. ///</summary>
  7667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7669. private int UpdateUpdatedRows(sporttovKNYDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7670. int result = 0;
  7671. if ((this._roleTableAdapter != null)) {
  7672. global::System.Data.DataRow[] updatedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7673. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7674. if (((updatedRows != null)
  7675. && (0 < updatedRows.Length))) {
  7676. result = (result + this._roleTableAdapter.Update(updatedRows));
  7677. allChangedRows.AddRange(updatedRows);
  7678. }
  7679. }
  7680. if ((this._categoryTableAdapter != null)) {
  7681. global::System.Data.DataRow[] updatedRows = dataSet.Category.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7682. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7683. if (((updatedRows != null)
  7684. && (0 < updatedRows.Length))) {
  7685. result = (result + this._categoryTableAdapter.Update(updatedRows));
  7686. allChangedRows.AddRange(updatedRows);
  7687. }
  7688. }
  7689. if ((this._manufacturerTableAdapter != null)) {
  7690. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7691. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7692. if (((updatedRows != null)
  7693. && (0 < updatedRows.Length))) {
  7694. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  7695. allChangedRows.AddRange(updatedRows);
  7696. }
  7697. }
  7698. if ((this._pickupPointTableAdapter != null)) {
  7699. global::System.Data.DataRow[] updatedRows = dataSet.PickupPoint.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7700. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7701. if (((updatedRows != null)
  7702. && (0 < updatedRows.Length))) {
  7703. result = (result + this._pickupPointTableAdapter.Update(updatedRows));
  7704. allChangedRows.AddRange(updatedRows);
  7705. }
  7706. }
  7707. if ((this._providerTableAdapter != null)) {
  7708. global::System.Data.DataRow[] updatedRows = dataSet.Provider.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7709. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7710. if (((updatedRows != null)
  7711. && (0 < updatedRows.Length))) {
  7712. result = (result + this._providerTableAdapter.Update(updatedRows));
  7713. allChangedRows.AddRange(updatedRows);
  7714. }
  7715. }
  7716. if ((this._userTableAdapter != null)) {
  7717. global::System.Data.DataRow[] updatedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7718. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7719. if (((updatedRows != null)
  7720. && (0 < updatedRows.Length))) {
  7721. result = (result + this._userTableAdapter.Update(updatedRows));
  7722. allChangedRows.AddRange(updatedRows);
  7723. }
  7724. }
  7725. if ((this._orderTableAdapter != null)) {
  7726. global::System.Data.DataRow[] updatedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7727. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7728. if (((updatedRows != null)
  7729. && (0 < updatedRows.Length))) {
  7730. result = (result + this._orderTableAdapter.Update(updatedRows));
  7731. allChangedRows.AddRange(updatedRows);
  7732. }
  7733. }
  7734. if ((this._productTableAdapter != null)) {
  7735. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7736. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7737. if (((updatedRows != null)
  7738. && (0 < updatedRows.Length))) {
  7739. result = (result + this._productTableAdapter.Update(updatedRows));
  7740. allChangedRows.AddRange(updatedRows);
  7741. }
  7742. }
  7743. if ((this._orderProductTableAdapter != null)) {
  7744. global::System.Data.DataRow[] updatedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  7745. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  7746. if (((updatedRows != null)
  7747. && (0 < updatedRows.Length))) {
  7748. result = (result + this._orderProductTableAdapter.Update(updatedRows));
  7749. allChangedRows.AddRange(updatedRows);
  7750. }
  7751. }
  7752. return result;
  7753. }
  7754. /// <summary>
  7755. ///Insert rows in top-down order.
  7756. ///</summary>
  7757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7759. private int UpdateInsertedRows(sporttovKNYDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7760. int result = 0;
  7761. if ((this._roleTableAdapter != null)) {
  7762. global::System.Data.DataRow[] addedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Added);
  7763. if (((addedRows != null)
  7764. && (0 < addedRows.Length))) {
  7765. result = (result + this._roleTableAdapter.Update(addedRows));
  7766. allAddedRows.AddRange(addedRows);
  7767. }
  7768. }
  7769. if ((this._categoryTableAdapter != null)) {
  7770. global::System.Data.DataRow[] addedRows = dataSet.Category.Select(null, null, global::System.Data.DataViewRowState.Added);
  7771. if (((addedRows != null)
  7772. && (0 < addedRows.Length))) {
  7773. result = (result + this._categoryTableAdapter.Update(addedRows));
  7774. allAddedRows.AddRange(addedRows);
  7775. }
  7776. }
  7777. if ((this._manufacturerTableAdapter != null)) {
  7778. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  7779. if (((addedRows != null)
  7780. && (0 < addedRows.Length))) {
  7781. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  7782. allAddedRows.AddRange(addedRows);
  7783. }
  7784. }
  7785. if ((this._pickupPointTableAdapter != null)) {
  7786. global::System.Data.DataRow[] addedRows = dataSet.PickupPoint.Select(null, null, global::System.Data.DataViewRowState.Added);
  7787. if (((addedRows != null)
  7788. && (0 < addedRows.Length))) {
  7789. result = (result + this._pickupPointTableAdapter.Update(addedRows));
  7790. allAddedRows.AddRange(addedRows);
  7791. }
  7792. }
  7793. if ((this._providerTableAdapter != null)) {
  7794. global::System.Data.DataRow[] addedRows = dataSet.Provider.Select(null, null, global::System.Data.DataViewRowState.Added);
  7795. if (((addedRows != null)
  7796. && (0 < addedRows.Length))) {
  7797. result = (result + this._providerTableAdapter.Update(addedRows));
  7798. allAddedRows.AddRange(addedRows);
  7799. }
  7800. }
  7801. if ((this._userTableAdapter != null)) {
  7802. global::System.Data.DataRow[] addedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.Added);
  7803. if (((addedRows != null)
  7804. && (0 < addedRows.Length))) {
  7805. result = (result + this._userTableAdapter.Update(addedRows));
  7806. allAddedRows.AddRange(addedRows);
  7807. }
  7808. }
  7809. if ((this._orderTableAdapter != null)) {
  7810. global::System.Data.DataRow[] addedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Added);
  7811. if (((addedRows != null)
  7812. && (0 < addedRows.Length))) {
  7813. result = (result + this._orderTableAdapter.Update(addedRows));
  7814. allAddedRows.AddRange(addedRows);
  7815. }
  7816. }
  7817. if ((this._productTableAdapter != null)) {
  7818. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  7819. if (((addedRows != null)
  7820. && (0 < addedRows.Length))) {
  7821. result = (result + this._productTableAdapter.Update(addedRows));
  7822. allAddedRows.AddRange(addedRows);
  7823. }
  7824. }
  7825. if ((this._orderProductTableAdapter != null)) {
  7826. global::System.Data.DataRow[] addedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  7827. if (((addedRows != null)
  7828. && (0 < addedRows.Length))) {
  7829. result = (result + this._orderProductTableAdapter.Update(addedRows));
  7830. allAddedRows.AddRange(addedRows);
  7831. }
  7832. }
  7833. return result;
  7834. }
  7835. /// <summary>
  7836. ///Delete rows in bottom-up order.
  7837. ///</summary>
  7838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7840. private int UpdateDeletedRows(sporttovKNYDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  7841. int result = 0;
  7842. if ((this._orderProductTableAdapter != null)) {
  7843. global::System.Data.DataRow[] deletedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7844. if (((deletedRows != null)
  7845. && (0 < deletedRows.Length))) {
  7846. result = (result + this._orderProductTableAdapter.Update(deletedRows));
  7847. allChangedRows.AddRange(deletedRows);
  7848. }
  7849. }
  7850. if ((this._productTableAdapter != null)) {
  7851. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7852. if (((deletedRows != null)
  7853. && (0 < deletedRows.Length))) {
  7854. result = (result + this._productTableAdapter.Update(deletedRows));
  7855. allChangedRows.AddRange(deletedRows);
  7856. }
  7857. }
  7858. if ((this._orderTableAdapter != null)) {
  7859. global::System.Data.DataRow[] deletedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7860. if (((deletedRows != null)
  7861. && (0 < deletedRows.Length))) {
  7862. result = (result + this._orderTableAdapter.Update(deletedRows));
  7863. allChangedRows.AddRange(deletedRows);
  7864. }
  7865. }
  7866. if ((this._userTableAdapter != null)) {
  7867. global::System.Data.DataRow[] deletedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7868. if (((deletedRows != null)
  7869. && (0 < deletedRows.Length))) {
  7870. result = (result + this._userTableAdapter.Update(deletedRows));
  7871. allChangedRows.AddRange(deletedRows);
  7872. }
  7873. }
  7874. if ((this._providerTableAdapter != null)) {
  7875. global::System.Data.DataRow[] deletedRows = dataSet.Provider.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7876. if (((deletedRows != null)
  7877. && (0 < deletedRows.Length))) {
  7878. result = (result + this._providerTableAdapter.Update(deletedRows));
  7879. allChangedRows.AddRange(deletedRows);
  7880. }
  7881. }
  7882. if ((this._pickupPointTableAdapter != null)) {
  7883. global::System.Data.DataRow[] deletedRows = dataSet.PickupPoint.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7884. if (((deletedRows != null)
  7885. && (0 < deletedRows.Length))) {
  7886. result = (result + this._pickupPointTableAdapter.Update(deletedRows));
  7887. allChangedRows.AddRange(deletedRows);
  7888. }
  7889. }
  7890. if ((this._manufacturerTableAdapter != null)) {
  7891. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7892. if (((deletedRows != null)
  7893. && (0 < deletedRows.Length))) {
  7894. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  7895. allChangedRows.AddRange(deletedRows);
  7896. }
  7897. }
  7898. if ((this._categoryTableAdapter != null)) {
  7899. global::System.Data.DataRow[] deletedRows = dataSet.Category.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7900. if (((deletedRows != null)
  7901. && (0 < deletedRows.Length))) {
  7902. result = (result + this._categoryTableAdapter.Update(deletedRows));
  7903. allChangedRows.AddRange(deletedRows);
  7904. }
  7905. }
  7906. if ((this._roleTableAdapter != null)) {
  7907. global::System.Data.DataRow[] deletedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  7908. if (((deletedRows != null)
  7909. && (0 < deletedRows.Length))) {
  7910. result = (result + this._roleTableAdapter.Update(deletedRows));
  7911. allChangedRows.AddRange(deletedRows);
  7912. }
  7913. }
  7914. return result;
  7915. }
  7916. /// <summary>
  7917. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  7918. ///</summary>
  7919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7921. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  7922. if (((updatedRows == null)
  7923. || (updatedRows.Length < 1))) {
  7924. return updatedRows;
  7925. }
  7926. if (((allAddedRows == null)
  7927. || (allAddedRows.Count < 1))) {
  7928. return updatedRows;
  7929. }
  7930. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7931. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  7932. global::System.Data.DataRow row = updatedRows[i];
  7933. if ((allAddedRows.Contains(row) == false)) {
  7934. realUpdatedRows.Add(row);
  7935. }
  7936. }
  7937. return realUpdatedRows.ToArray();
  7938. }
  7939. /// <summary>
  7940. ///Update all changes to the dataset.
  7941. ///</summary>
  7942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7944. public virtual int UpdateAll(sporttovKNYDataSet dataSet) {
  7945. if ((dataSet == null)) {
  7946. throw new global::System.ArgumentNullException("dataSet");
  7947. }
  7948. if ((dataSet.HasChanges() == false)) {
  7949. return 0;
  7950. }
  7951. if (((this._categoryTableAdapter != null)
  7952. && (this.MatchTableAdapterConnection(this._categoryTableAdapter.Connection) == false))) {
  7953. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  7954. "tring.");
  7955. }
  7956. if (((this._manufacturerTableAdapter != null)
  7957. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  7958. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  7959. "tring.");
  7960. }
  7961. if (((this._orderTableAdapter != null)
  7962. && (this.MatchTableAdapterConnection(this._orderTableAdapter.Connection) == false))) {
  7963. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  7964. "tring.");
  7965. }
  7966. if (((this._orderProductTableAdapter != null)
  7967. && (this.MatchTableAdapterConnection(this._orderProductTableAdapter.Connection) == false))) {
  7968. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  7969. "tring.");
  7970. }
  7971. if (((this._pickupPointTableAdapter != null)
  7972. && (this.MatchTableAdapterConnection(this._pickupPointTableAdapter.Connection) == false))) {
  7973. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  7974. "tring.");
  7975. }
  7976. if (((this._productTableAdapter != null)
  7977. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  7978. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  7979. "tring.");
  7980. }
  7981. if (((this._providerTableAdapter != null)
  7982. && (this.MatchTableAdapterConnection(this._providerTableAdapter.Connection) == false))) {
  7983. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  7984. "tring.");
  7985. }
  7986. if (((this._roleTableAdapter != null)
  7987. && (this.MatchTableAdapterConnection(this._roleTableAdapter.Connection) == false))) {
  7988. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  7989. "tring.");
  7990. }
  7991. if (((this._userTableAdapter != null)
  7992. && (this.MatchTableAdapterConnection(this._userTableAdapter.Connection) == false))) {
  7993. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  7994. "tring.");
  7995. }
  7996. global::System.Data.IDbConnection workConnection = this.Connection;
  7997. if ((workConnection == null)) {
  7998. throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
  7999. "ger TableAdapter property to a valid TableAdapter instance.");
  8000. }
  8001. bool workConnOpened = false;
  8002. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  8003. == global::System.Data.ConnectionState.Broken)) {
  8004. workConnection.Close();
  8005. }
  8006. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  8007. workConnection.Open();
  8008. workConnOpened = true;
  8009. }
  8010. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  8011. if ((workTransaction == null)) {
  8012. throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
  8013. "ctions or the current state is not allowing the transaction to begin.");
  8014. }
  8015. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8016. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8017. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  8018. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  8019. int result = 0;
  8020. global::System.Data.DataSet backupDataSet = null;
  8021. if (this.BackupDataSetBeforeUpdate) {
  8022. backupDataSet = new global::System.Data.DataSet();
  8023. backupDataSet.Merge(dataSet);
  8024. }
  8025. try {
  8026. // ---- Prepare for update -----------
  8027. //
  8028. if ((this._categoryTableAdapter != null)) {
  8029. revertConnections.Add(this._categoryTableAdapter, this._categoryTableAdapter.Connection);
  8030. this._categoryTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8031. this._categoryTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8032. if (this._categoryTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8033. this._categoryTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8034. adaptersWithAcceptChangesDuringUpdate.Add(this._categoryTableAdapter.Adapter);
  8035. }
  8036. }
  8037. if ((this._manufacturerTableAdapter != null)) {
  8038. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  8039. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8040. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8041. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8042. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8043. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  8044. }
  8045. }
  8046. if ((this._orderTableAdapter != null)) {
  8047. revertConnections.Add(this._orderTableAdapter, this._orderTableAdapter.Connection);
  8048. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8049. this._orderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8050. if (this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8051. this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8052. adaptersWithAcceptChangesDuringUpdate.Add(this._orderTableAdapter.Adapter);
  8053. }
  8054. }
  8055. if ((this._orderProductTableAdapter != null)) {
  8056. revertConnections.Add(this._orderProductTableAdapter, this._orderProductTableAdapter.Connection);
  8057. this._orderProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8058. this._orderProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8059. if (this._orderProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8060. this._orderProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8061. adaptersWithAcceptChangesDuringUpdate.Add(this._orderProductTableAdapter.Adapter);
  8062. }
  8063. }
  8064. if ((this._pickupPointTableAdapter != null)) {
  8065. revertConnections.Add(this._pickupPointTableAdapter, this._pickupPointTableAdapter.Connection);
  8066. this._pickupPointTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8067. this._pickupPointTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8068. if (this._pickupPointTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8069. this._pickupPointTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8070. adaptersWithAcceptChangesDuringUpdate.Add(this._pickupPointTableAdapter.Adapter);
  8071. }
  8072. }
  8073. if ((this._productTableAdapter != null)) {
  8074. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  8075. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8076. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8077. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8078. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8079. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  8080. }
  8081. }
  8082. if ((this._providerTableAdapter != null)) {
  8083. revertConnections.Add(this._providerTableAdapter, this._providerTableAdapter.Connection);
  8084. this._providerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8085. this._providerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8086. if (this._providerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8087. this._providerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8088. adaptersWithAcceptChangesDuringUpdate.Add(this._providerTableAdapter.Adapter);
  8089. }
  8090. }
  8091. if ((this._roleTableAdapter != null)) {
  8092. revertConnections.Add(this._roleTableAdapter, this._roleTableAdapter.Connection);
  8093. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8094. this._roleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8095. if (this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8096. this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8097. adaptersWithAcceptChangesDuringUpdate.Add(this._roleTableAdapter.Adapter);
  8098. }
  8099. }
  8100. if ((this._userTableAdapter != null)) {
  8101. revertConnections.Add(this._userTableAdapter, this._userTableAdapter.Connection);
  8102. this._userTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8103. this._userTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8104. if (this._userTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8105. this._userTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8106. adaptersWithAcceptChangesDuringUpdate.Add(this._userTableAdapter.Adapter);
  8107. }
  8108. }
  8109. //
  8110. //---- Perform updates -----------
  8111. //
  8112. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  8113. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  8114. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  8115. }
  8116. else {
  8117. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  8118. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  8119. }
  8120. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  8121. //
  8122. //---- Commit updates -----------
  8123. //
  8124. workTransaction.Commit();
  8125. if ((0 < allAddedRows.Count)) {
  8126. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  8127. allAddedRows.CopyTo(rows);
  8128. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  8129. global::System.Data.DataRow row = rows[i];
  8130. row.AcceptChanges();
  8131. }
  8132. }
  8133. if ((0 < allChangedRows.Count)) {
  8134. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  8135. allChangedRows.CopyTo(rows);
  8136. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  8137. global::System.Data.DataRow row = rows[i];
  8138. row.AcceptChanges();
  8139. }
  8140. }
  8141. }
  8142. catch (global::System.Exception ex) {
  8143. workTransaction.Rollback();
  8144. // ---- Restore the dataset -----------
  8145. if (this.BackupDataSetBeforeUpdate) {
  8146. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  8147. dataSet.Clear();
  8148. dataSet.Merge(backupDataSet);
  8149. }
  8150. else {
  8151. if ((0 < allAddedRows.Count)) {
  8152. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  8153. allAddedRows.CopyTo(rows);
  8154. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  8155. global::System.Data.DataRow row = rows[i];
  8156. row.AcceptChanges();
  8157. row.SetAdded();
  8158. }
  8159. }
  8160. }
  8161. throw ex;
  8162. }
  8163. finally {
  8164. if (workConnOpened) {
  8165. workConnection.Close();
  8166. }
  8167. if ((this._categoryTableAdapter != null)) {
  8168. this._categoryTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._categoryTableAdapter]));
  8169. this._categoryTableAdapter.Transaction = null;
  8170. }
  8171. if ((this._manufacturerTableAdapter != null)) {
  8172. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  8173. this._manufacturerTableAdapter.Transaction = null;
  8174. }
  8175. if ((this._orderTableAdapter != null)) {
  8176. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderTableAdapter]));
  8177. this._orderTableAdapter.Transaction = null;
  8178. }
  8179. if ((this._orderProductTableAdapter != null)) {
  8180. this._orderProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderProductTableAdapter]));
  8181. this._orderProductTableAdapter.Transaction = null;
  8182. }
  8183. if ((this._pickupPointTableAdapter != null)) {
  8184. this._pickupPointTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._pickupPointTableAdapter]));
  8185. this._pickupPointTableAdapter.Transaction = null;
  8186. }
  8187. if ((this._productTableAdapter != null)) {
  8188. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  8189. this._productTableAdapter.Transaction = null;
  8190. }
  8191. if ((this._providerTableAdapter != null)) {
  8192. this._providerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._providerTableAdapter]));
  8193. this._providerTableAdapter.Transaction = null;
  8194. }
  8195. if ((this._roleTableAdapter != null)) {
  8196. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._roleTableAdapter]));
  8197. this._roleTableAdapter.Transaction = null;
  8198. }
  8199. if ((this._userTableAdapter != null)) {
  8200. this._userTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._userTableAdapter]));
  8201. this._userTableAdapter.Transaction = null;
  8202. }
  8203. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  8204. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  8205. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  8206. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  8207. global::System.Data.Common.DataAdapter adapter = adapters[i];
  8208. adapter.AcceptChangesDuringUpdate = true;
  8209. }
  8210. }
  8211. }
  8212. return result;
  8213. }
  8214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8216. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  8217. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  8218. }
  8219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8221. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  8222. if ((this._connection != null)) {
  8223. return true;
  8224. }
  8225. if (((this.Connection == null)
  8226. || (inputConnection == null))) {
  8227. return true;
  8228. }
  8229. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  8230. return true;
  8231. }
  8232. return false;
  8233. }
  8234. /// <summary>
  8235. ///Update Order Option
  8236. ///</summary>
  8237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8238. public enum UpdateOrderOption {
  8239. InsertUpdateDelete = 0,
  8240. UpdateInsertDelete = 1,
  8241. }
  8242. /// <summary>
  8243. ///Used to sort self-referenced table's rows
  8244. ///</summary>
  8245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8246. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  8247. private global::System.Data.DataRelation _relation;
  8248. private int _childFirst;
  8249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8251. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  8252. this._relation = relation;
  8253. if (childFirst) {
  8254. this._childFirst = -1;
  8255. }
  8256. else {
  8257. this._childFirst = 1;
  8258. }
  8259. }
  8260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8262. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  8263. global::System.Diagnostics.Debug.Assert((row != null));
  8264. global::System.Data.DataRow root = row;
  8265. distance = 0;
  8266. 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>();
  8267. traversedRows[row] = row;
  8268. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  8269. for (
  8270. ; ((parent != null)
  8271. && (traversedRows.ContainsKey(parent) == false));
  8272. ) {
  8273. distance = (distance + 1);
  8274. root = parent;
  8275. traversedRows[parent] = parent;
  8276. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  8277. }
  8278. if ((distance == 0)) {
  8279. traversedRows.Clear();
  8280. traversedRows[row] = row;
  8281. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  8282. for (
  8283. ; ((parent != null)
  8284. && (traversedRows.ContainsKey(parent) == false));
  8285. ) {
  8286. distance = (distance + 1);
  8287. root = parent;
  8288. traversedRows[parent] = parent;
  8289. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  8290. }
  8291. }
  8292. return root;
  8293. }
  8294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8296. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  8297. if (object.ReferenceEquals(row1, row2)) {
  8298. return 0;
  8299. }
  8300. if ((row1 == null)) {
  8301. return -1;
  8302. }
  8303. if ((row2 == null)) {
  8304. return 1;
  8305. }
  8306. int distance1 = 0;
  8307. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  8308. int distance2 = 0;
  8309. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  8310. if (object.ReferenceEquals(root1, root2)) {
  8311. return (this._childFirst * distance1.CompareTo(distance2));
  8312. }
  8313. else {
  8314. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  8315. && (root2.Table != null)));
  8316. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  8317. return -1;
  8318. }
  8319. else {
  8320. return 1;
  8321. }
  8322. }
  8323. }
  8324. }
  8325. }
  8326. }
  8327. #pragma warning restore 1591